ranui 0.2.0-alpha.7 → 0.2.1-alpha.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 (331) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  5. package/dist/arc-D25LhgTs.cjs +1 -0
  6. package/dist/arc-DRPGof21.js +82 -0
  7. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  11. package/dist/array-By5736M5.js +7 -0
  12. package/dist/array-C3cbN3GY.cjs +1 -0
  13. package/dist/arrow-down-Bi5kqUrX.js +12 -0
  14. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  15. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  16. package/dist/builder.d.ts +4 -4
  17. package/dist/builder.js +39 -30
  18. package/dist/builtin-BkM0LLof.js +416 -0
  19. package/dist/button-D0zcnKnG.js +117 -0
  20. package/dist/button.js +1 -1
  21. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  22. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  23. package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
  24. package/dist/card.js +1 -1
  25. package/dist/channel-C9WSNwcS.cjs +1 -0
  26. package/dist/channel-k5-UxdcV.js +5 -0
  27. package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  30. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  31. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  32. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  33. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  34. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  35. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  36. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  37. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  38. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  39. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  40. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  41. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  42. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  43. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  44. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  45. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  46. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  47. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  48. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  49. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  50. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  51. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  52. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  53. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  54. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  55. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  56. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  57. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  58. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  59. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  60. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  61. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  62. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  63. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  64. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  65. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  66. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  67. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  68. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  69. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  70. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  71. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  72. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  73. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  74. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  75. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  76. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  77. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  78. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  79. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  80. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  82. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  83. package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
  84. package/dist/colorpicker.js +1 -1
  85. package/dist/components/colorpicker/index.d.ts +3 -3
  86. package/dist/components/glass/index.d.ts +52 -0
  87. package/dist/components/icon/builtin.d.ts +9 -0
  88. package/dist/components/icon/core-icons.d.ts +13 -0
  89. package/dist/components/icon/index.d.ts +8 -0
  90. package/dist/components/mermaid/index.d.ts +52 -0
  91. package/dist/components/modal/index.d.ts +9 -0
  92. package/dist/components/route/index.d.ts +10 -4
  93. package/dist/components/router/index.d.ts +3 -0
  94. package/dist/content-Rry-U6ir.js +39 -0
  95. package/dist/content.js +5 -0
  96. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  97. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  98. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  99. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  100. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  101. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  102. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  103. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  104. package/dist/dagre-D1-W1tt6.cjs +1 -0
  105. package/dist/dagre-D8GLTwuf.js +1578 -0
  106. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  107. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  108. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  109. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  110. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  111. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  112. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  113. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  114. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  115. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  116. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  117. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  118. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  119. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  120. package/dist/dist-C0Fwsvsq.js +70 -0
  121. package/dist/dist-C20XxSsP.cjs +1 -0
  122. package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
  123. package/dist/dropdown.js +1 -1
  124. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  125. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  126. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  127. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  128. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  129. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  130. package/dist/factory-BkvRcCOx.js +482 -0
  131. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  132. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  133. package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
  134. package/dist/form.js +1 -1
  135. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  136. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  137. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  138. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  139. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  140. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  141. package/dist/glass-Bj1Zf8Hy.js +115 -0
  142. package/dist/glass.js +5 -0
  143. package/dist/graphlib-CCKThIKP.js +1104 -0
  144. package/dist/graphlib-Du-578Js.cjs +1 -0
  145. package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
  146. package/dist/icon.js +4 -3
  147. package/dist/icons.js +5 -0
  148. package/dist/iife/button.iife.js +1 -1
  149. package/dist/iife/card.iife.js +1 -1
  150. package/dist/iife/checkbox.iife.js +1 -1
  151. package/dist/iife/colorpicker.iife.js +2 -2
  152. package/dist/iife/content.iife.js +1 -0
  153. package/dist/iife/dropdown.iife.js +1 -1
  154. package/dist/iife/form.iife.js +1 -1
  155. package/dist/iife/glass.iife.js +1 -0
  156. package/dist/iife/icon.iife.js +1 -1
  157. package/dist/iife/image.iife.js +1 -1
  158. package/dist/iife/input.iife.js +1 -1
  159. package/dist/iife/loading.iife.js +1 -1
  160. package/dist/iife/math.iife.js +14 -14
  161. package/dist/iife/mermaid.iife.js +3535 -0
  162. package/dist/iife/message.iife.js +1 -1
  163. package/dist/iife/modal.iife.js +1 -1
  164. package/dist/iife/player.iife.js +8 -8
  165. package/dist/iife/popover.iife.js +1 -1
  166. package/dist/iife/progress.iife.js +1 -1
  167. package/dist/iife/radar.iife.js +1 -1
  168. package/dist/iife/route.iife.js +1 -1
  169. package/dist/iife/router.iife.js +1 -1
  170. package/dist/iife/scratch.iife.js +1 -1
  171. package/dist/iife/section.iife.js +1 -1
  172. package/dist/iife/select.iife.js +2 -2
  173. package/dist/iife/skeleton.iife.js +1 -1
  174. package/dist/iife/tab.iife.js +1 -1
  175. package/dist/iife/tabpane.iife.js +1 -1
  176. package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
  177. package/dist/image.js +1 -1
  178. package/dist/index.cjs +257 -23
  179. package/dist/index.d.ts +11 -1
  180. package/dist/index.iife.js +3842 -74
  181. package/dist/index.js +86 -78
  182. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  183. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  184. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  185. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  186. package/dist/init-1VpIn1S3.js +16 -0
  187. package/dist/init-CbDwVtpO.cjs +1 -0
  188. package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
  189. package/dist/input.js +1 -1
  190. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  191. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  192. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  193. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  194. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  195. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  196. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  197. package/dist/katex-Pg2EqTH0.js +23485 -0
  198. package/dist/line-BIPmUVxO.js +33 -0
  199. package/dist/line-CAB5QHC6.cjs +1 -0
  200. package/dist/linear-B2AM4ZBe.js +259 -0
  201. package/dist/linear-CSAfNEpl.cjs +1 -0
  202. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  203. package/dist/link.js +1 -1
  204. package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
  205. package/dist/loading.js +1 -1
  206. package/dist/map-BC2bk_rV.cjs +1 -0
  207. package/dist/map-DMSWkcq6.js +208 -0
  208. package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
  209. package/dist/math.js +1 -1
  210. package/dist/mermaid-CMhm7npE.js +261 -0
  211. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  212. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  213. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  214. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  215. package/dist/mermaid.js +5 -0
  216. package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
  217. package/dist/message.js +1 -1
  218. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  219. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  220. package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
  221. package/dist/modal.js +1 -1
  222. package/dist/ordinal-BMN81JG2.js +64 -0
  223. package/dist/ordinal-BplLHIij.cjs +1 -0
  224. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  225. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  226. package/dist/path-Bja5PoYn.js +82 -0
  227. package/dist/path-DmfWsuKi.cjs +1 -0
  228. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  229. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  230. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  231. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  232. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  233. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  234. package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
  235. package/dist/player.js +1 -1
  236. package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
  237. package/dist/popover.js +1 -1
  238. package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
  239. package/dist/progress.js +1 -1
  240. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  241. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  242. package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
  243. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  244. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  245. package/dist/radar.js +1 -1
  246. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  247. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  248. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  249. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  251. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  252. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  253. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  254. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  255. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  256. package/dist/ranui.css +1 -1
  257. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  258. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  259. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  260. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  261. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  262. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  263. package/dist/route-pR5P4ann.js +116 -0
  264. package/dist/route.js +1 -1
  265. package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
  266. package/dist/router.js +1 -1
  267. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  268. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  269. package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
  270. package/dist/scratch.js +1 -1
  271. package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
  272. package/dist/section.js +1 -1
  273. package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
  274. package/dist/select.js +1 -1
  275. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  276. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  277. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  278. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  279. package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
  280. package/dist/skeleton.js +1 -1
  281. package/dist/src-C9EhKhbk.cjs +1 -0
  282. package/dist/src-DtRLxcYO.js +2104 -0
  283. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  284. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  285. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  286. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  287. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  288. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  289. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  290. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  291. package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
  292. package/dist/tab.js +1 -1
  293. package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
  294. package/dist/tabpane.js +1 -1
  295. package/dist/test/unit/icon.builtin.test.d.ts +1 -0
  296. package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
  297. package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
  298. package/dist/test/unit/utils.router.match.test.d.ts +1 -0
  299. package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
  300. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  301. package/dist/theme-switch.js +1 -1
  302. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  303. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  304. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  305. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  306. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  307. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  308. package/dist/utils/builder/core.d.ts +153 -16
  309. package/dist/utils/builder/factory.d.ts +1 -1
  310. package/dist/utils/builder/index.d.ts +3 -3
  311. package/dist/utils/builder/signal.d.ts +93 -64
  312. package/dist/utils/router/index.d.ts +13 -3
  313. package/dist/utils/router.js +95 -54
  314. package/dist/utils/theme.d.ts +1 -1
  315. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  316. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  317. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  318. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  319. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  320. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  321. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  322. package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
  323. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  324. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  325. package/docs/BUILDER.md +383 -0
  326. package/docs/COMPONENTS.md +21 -3
  327. package/package.json +31 -3
  328. package/dist/button-Be_uHDZG.js +0 -117
  329. package/dist/factory-BdsO0dEW.js +0 -165
  330. package/dist/route-MQZpn2BP.js +0 -88
  331. package/dist/signal-CSSZxlK5.js +0 -57
@@ -0,0 +1,161 @@
1
+ var kw=Object.create,Ss=Object.defineProperty,Ow=Object.getOwnPropertyDescriptor,yp=Object.getOwnPropertyNames,Lw=Object.getPrototypeOf,Dw=Object.prototype.hasOwnProperty,i=(e,t)=>Ss(e,"name",{value:t,configurable:!0}),Mw=(e,t)=>function(){return e&&(t=(0,e[yp(e)[0]])(e=0)),t},V=(e,t)=>function(){return t||(0,e[yp(e)[0]])((t={exports:{}}).exports,t),t.exports},xr=(e,t)=>{for(var r in t)Ss(e,r,{get:t[r],enumerable:!0})},Fo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yp(t))!Dw.call(e,a)&&a!==r&&Ss(e,a,{get:()=>t[a],enumerable:!(n=Ow(t,a))||n.enumerable});return e},Sl=(e,t,r)=>(Fo(e,t,"default"),r&&Fo(r,t,"default")),gp=(e,t,r)=>(r=e!=null?kw(Lw(e)):{},Fo(t||!e||!e.__esModule?Ss(r,"default",{value:e,enumerable:!0}):r,e)),vp=e=>Fo(Ss({},"__esModule",{value:!0}),e),wl={};xr(wl,{AnnotatedTextEdit:()=>ir,ChangeAnnotation:()=>Yr,ChangeAnnotationIdentifier:()=>je,CodeAction:()=>Hc,CodeActionContext:()=>Vc,CodeActionKind:()=>Wc,CodeActionTriggerKind:()=>zi,CodeDescription:()=>bc,CodeLens:()=>Yc,Color:()=>yo,ColorInformation:()=>vc,ColorPresentation:()=>Tc,Command:()=>Hr,CompletionItem:()=>Lc,CompletionItemKind:()=>wc,CompletionItemLabelDetails:()=>Oc,CompletionItemTag:()=>Nc,CompletionList:()=>Dc,CreateFile:()=>oa,DeleteFile:()=>ua,Diagnostic:()=>Mi,DiagnosticRelatedInformation:()=>go,DiagnosticSeverity:()=>Ac,DiagnosticTag:()=>Ec,DocumentHighlight:()=>zc,DocumentHighlightKind:()=>Fc,DocumentLink:()=>Jc,DocumentSymbol:()=>qc,DocumentUri:()=>hc,EOL:()=>Sg,FoldingRange:()=>Rc,FoldingRangeKind:()=>$c,FormattingOptions:()=>Xc,Hover:()=>Mc,InlayHint:()=>of,InlayHintKind:()=>$o,InlayHintLabelPart:()=>Ro,InlineCompletionContext:()=>df,InlineCompletionItem:()=>uf,InlineCompletionList:()=>cf,InlineCompletionTriggerKind:()=>ff,InlineValueContext:()=>sf,InlineValueEvaluatableExpression:()=>af,InlineValueText:()=>rf,InlineValueVariableLookup:()=>nf,InsertReplaceEdit:()=>Pc,InsertTextFormat:()=>Ic,InsertTextMode:()=>kc,Location:()=>Di,LocationLink:()=>gc,MarkedString:()=>Fi,MarkupContent:()=>ca,MarkupKind:()=>To,OptionalVersionedTextDocumentIdentifier:()=>Gi,ParameterInformation:()=>xc,Position:()=>ne,Range:()=>J,RenameFile:()=>la,SelectedCompletionInfo:()=>pf,SelectionRange:()=>Zc,SemanticTokenModifiers:()=>ef,SemanticTokenTypes:()=>Qc,SemanticTokens:()=>tf,SignatureInformation:()=>Gc,StringValue:()=>lf,SymbolInformation:()=>Kc,SymbolKind:()=>jc,SymbolTag:()=>Uc,TextDocument:()=>hf,TextDocumentEdit:()=>xi,TextDocumentIdentifier:()=>Cc,TextDocumentItem:()=>Sc,TextEdit:()=>jt,URI:()=>ho,VersionedTextDocumentIdentifier:()=>_c,WorkspaceChange:()=>_g,WorkspaceEdit:()=>vo,WorkspaceFolder:()=>mf,WorkspaceSymbol:()=>Bc,integer:()=>yc,uinteger:()=>Li});var hc,ho,yc,Li,ne,J,Di,gc,yo,vc,Tc,$c,Rc,go,Ac,Ec,bc,Mi,Hr,jt,Yr,je,ir,xi,oa,la,ua,vo,Ai,Fu,_g,Cc,_c,Gi,Sc,To,ca,wc,Ic,Nc,Pc,kc,Oc,Lc,Dc,Fi,Mc,xc,Gc,Fc,zc,jc,Uc,Kc,Bc,qc,Wc,zi,Vc,Hc,Yc,Xc,Jc,Zc,Qc,ef,tf,rf,nf,af,sf,$o,Ro,of,lf,uf,cf,ff,pf,df,mf,Sg,hf,rh,E,ws=Mw({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){"use strict";(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(hc||(hc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(ho||(ho={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(yc||(yc={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Li||(Li={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Li.MAX_VALUE),a===Number.MAX_VALUE&&(a=Li.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.objectLiteral(a)&&E.uinteger(a.line)&&E.uinteger(a.character)}i(r,"is"),e.is=r})(ne||(ne={})),(function(e){function t(n,a,s,o){if(E.uinteger(n)&&E.uinteger(a)&&E.uinteger(s)&&E.uinteger(o))return{start:ne.create(n,a),end:ne.create(s,o)};if(ne.is(n)&&ne.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return E.objectLiteral(a)&&ne.is(a.start)&&ne.is(a.end)}i(r,"is"),e.is=r})(J||(J={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.objectLiteral(a)&&J.is(a.range)&&(E.string(a.uri)||E.undefined(a.uri))}i(r,"is"),e.is=r})(Di||(Di={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return E.objectLiteral(a)&&J.is(a.targetRange)&&E.string(a.targetUri)&&J.is(a.targetSelectionRange)&&(J.is(a.originSelectionRange)||E.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(gc||(gc={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&E.numberRange(a.red,0,1)&&E.numberRange(a.green,0,1)&&E.numberRange(a.blue,0,1)&&E.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(yo||(yo={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&J.is(a.range)&&yo.is(a.color)}i(r,"is"),e.is=r})(vc||(vc={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&E.string(a.label)&&(E.undefined(a.textEdit)||jt.is(a))&&(E.undefined(a.additionalTextEdits)||E.typedArray(a.additionalTextEdits,jt.is))}i(r,"is"),e.is=r})(Tc||(Tc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})($c||($c={})),(function(e){function t(n,a,s,o,l,u){const c={startLine:n,endLine:a};return E.defined(s)&&(c.startCharacter=s),E.defined(o)&&(c.endCharacter=o),E.defined(l)&&(c.kind=l),E.defined(u)&&(c.collapsedText=u),c}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&E.uinteger(a.startLine)&&E.uinteger(a.startLine)&&(E.undefined(a.startCharacter)||E.uinteger(a.startCharacter))&&(E.undefined(a.endCharacter)||E.uinteger(a.endCharacter))&&(E.undefined(a.kind)||E.string(a.kind))}i(r,"is"),e.is=r})(Rc||(Rc={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&Di.is(a.location)&&E.string(a.message)}i(r,"is"),e.is=r})(go||(go={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ac||(Ac={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Ec||(Ec={})),(function(e){function t(r){const n=r;return E.objectLiteral(n)&&E.string(n.href)}i(t,"is"),e.is=t})(bc||(bc={})),(function(e){function t(n,a,s,o,l,u){let c={range:n,message:a};return E.defined(s)&&(c.severity=s),E.defined(o)&&(c.code=o),E.defined(l)&&(c.source=l),E.defined(u)&&(c.relatedInformation=u),c}i(t,"create"),e.create=t;function r(n){var a;let s=n;return E.defined(s)&&J.is(s.range)&&E.string(s.message)&&(E.number(s.severity)||E.undefined(s.severity))&&(E.integer(s.code)||E.string(s.code)||E.undefined(s.code))&&(E.undefined(s.codeDescription)||E.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&(E.string(s.source)||E.undefined(s.source))&&(E.undefined(s.relatedInformation)||E.typedArray(s.relatedInformation,go.is))}i(r,"is"),e.is=r})(Mi||(Mi={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return E.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.string(a.title)&&E.string(a.command)}i(r,"is"),e.is=r})(Hr||(Hr={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return E.objectLiteral(o)&&E.string(o.newText)&&J.is(o.range)}i(a,"is"),e.is=a})(jt||(jt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&E.string(a.label)&&(E.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(E.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(Yr||(Yr={})),(function(e){function t(r){const n=r;return E.string(n)}i(t,"is"),e.is=t})(je||(je={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return jt.is(o)&&(Yr.is(o.annotationId)||je.is(o.annotationId))}i(a,"is"),e.is=a})(ir||(ir={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&Gi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(xi||(xi={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&E.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||E.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||E.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(oa||(oa={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&E.string(a.oldUri)&&E.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||E.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||E.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(la||(la={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&E.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||E.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||E.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(ua||(ua={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>E.string(a.kind)?oa.is(a)||la.is(a)||ua.is(a):xi.is(a)))}i(t,"is"),e.is=t})(vo||(vo={})),Ai=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=jt.insert(e,t):je.is(r)?(a=r,n=ir.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ir.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=jt.replace(e,t):je.is(r)?(a=r,n=ir.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ir.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=jt.del(e):je.is(t)?(n=t,r=ir.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=ir.del(e,n)),this.edits.push(r),n!==void 0)return n}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 new Error("Text edit change is not configured to manage change annotations.")}},Fu=class{static{i(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 r;if(je.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},_g=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Fu(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(xi.is(t)){const r=new Ai(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new Ai(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}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(Gi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new Ai(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new Ai(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Fu,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,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;Yr.is(t)||je.is(t)?n=t:r=t;let a,s;if(n===void 0?a=oa.create(e,r):(s=je.is(n)?n:this._changeAnnotations.manage(n),a=oa.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;Yr.is(r)||je.is(r)?a=r:n=r;let s,o;if(a===void 0?s=la.create(e,t,n):(o=je.is(a)?a:this._changeAnnotations.manage(a),s=la.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;Yr.is(t)||je.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ua.create(e,r):(s=je.is(n)?n:this._changeAnnotations.manage(n),a=ua.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.string(a.uri)}i(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.string(a.uri)&&E.integer(a.version)}i(r,"is"),e.is=r})(_c||(_c={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.string(a.uri)&&(a.version===null||E.integer(a.version))}i(r,"is"),e.is=r})(Gi||(Gi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.string(a.uri)&&E.string(a.languageId)&&E.integer(a.version)&&E.string(a.text)}i(r,"is"),e.is=r})(Sc||(Sc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(To||(To={})),(function(e){function t(r){const n=r;return E.objectLiteral(r)&&To.is(n.kind)&&E.string(n.value)}i(t,"is"),e.is=t})(ca||(ca={})),(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})(wc||(wc={})),(function(e){e.PlainText=1,e.Snippet=2})(Ic||(Ic={})),(function(e){e.Deprecated=1})(Nc||(Nc={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&E.string(a.newText)&&J.is(a.insert)&&J.is(a.replace)}i(r,"is"),e.is=r})(Pc||(Pc={})),(function(e){e.asIs=1,e.adjustIndentation=2})(kc||(kc={})),(function(e){function t(r){const n=r;return n&&(E.string(n.detail)||n.detail===void 0)&&(E.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(Oc||(Oc={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(Lc||(Lc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(Dc||(Dc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return E.string(a)||E.objectLiteral(a)&&E.string(a.language)&&E.string(a.value)}i(r,"is"),e.is=r})(Fi||(Fi={})),(function(e){function t(r){let n=r;return!!n&&E.objectLiteral(n)&&(ca.is(n.contents)||Fi.is(n.contents)||E.typedArray(n.contents,Fi.is))&&(r.range===void 0||J.is(r.range))}i(t,"is"),e.is=t})(Mc||(Mc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})(xc||(xc={})),(function(e){function t(r,n,...a){let s={label:r};return E.defined(n)&&(s.documentation=n),E.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Gc||(Gc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Fc||(Fc={})),(function(e){function t(r,n){let a={range:r};return E.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(zc||(zc={})),(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})(jc||(jc={})),(function(e){e.Deprecated=1})(Uc||(Uc={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(Kc||(Kc={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(Bc||(Bc={})),(function(e){function t(n,a,s,o,l,u){let c={name:n,detail:a,kind:s,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}i(t,"create"),e.create=t;function r(n){let a=n;return a&&E.string(a.name)&&E.number(a.kind)&&J.is(a.range)&&J.is(a.selectionRange)&&(a.detail===void 0||E.string(a.detail))&&(a.deprecated===void 0||E.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(qc||(qc={})),(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"})(Wc||(Wc={})),(function(e){e.Invoked=1,e.Automatic=2})(zi||(zi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.typedArray(a.diagnostics,Mi.is)&&(a.only===void 0||E.typedArray(a.only,E.string))&&(a.triggerKind===void 0||a.triggerKind===zi.Invoked||a.triggerKind===zi.Automatic)}i(r,"is"),e.is=r})(Vc||(Vc={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):Hr.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&E.string(a.title)&&(a.diagnostics===void 0||E.typedArray(a.diagnostics,Mi.is))&&(a.kind===void 0||E.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||Hr.is(a.command))&&(a.isPreferred===void 0||E.boolean(a.isPreferred))&&(a.edit===void 0||vo.is(a.edit))}i(r,"is"),e.is=r})(Hc||(Hc={})),(function(e){function t(n,a){let s={range:n};return E.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&J.is(a.range)&&(E.undefined(a.command)||Hr.is(a.command))}i(r,"is"),e.is=r})(Yc||(Yc={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&E.uinteger(a.tabSize)&&E.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(Xc||(Xc={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return E.defined(a)&&J.is(a.range)&&(E.undefined(a.target)||E.string(a.target))}i(r,"is"),e.is=r})(Jc||(Jc={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return E.objectLiteral(a)&&J.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(Zc||(Zc={})),(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"})(Qc||(Qc={})),(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"})(ef||(ef={})),(function(e){function t(r){const n=r;return E.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(tf||(tf={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&J.is(a.range)&&E.string(a.text)}i(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&J.is(a.range)&&E.boolean(a.caseSensitiveLookup)&&(E.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(nf||(nf={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&J.is(a.range)&&(E.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(af||(af={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return E.defined(a)&&J.is(n.stoppedLocation)}i(r,"is"),e.is=r})(sf||(sf={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})($o||($o={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&(a.tooltip===void 0||E.string(a.tooltip)||ca.is(a.tooltip))&&(a.location===void 0||Di.is(a.location))&&(a.command===void 0||Hr.is(a.command))}i(r,"is"),e.is=r})(Ro||(Ro={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return E.objectLiteral(a)&&ne.is(a.position)&&(E.string(a.label)||E.typedArray(a.label,Ro.is))&&(a.kind===void 0||$o.is(a.kind))&&a.textEdits===void 0||E.typedArray(a.textEdits,jt.is)&&(a.tooltip===void 0||E.string(a.tooltip)||ca.is(a.tooltip))&&(a.paddingLeft===void 0||E.boolean(a.paddingLeft))&&(a.paddingRight===void 0||E.boolean(a.paddingRight))}i(r,"is"),e.is=r})(of||(of={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(lf||(lf={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(uf||(uf={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(cf||(cf={})),(function(e){e.Invoked=0,e.Automatic=1})(ff||(ff={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(pf||(pf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(df||(df={})),(function(e){function t(r){const n=r;return E.objectLiteral(n)&&ho.is(n.uri)&&E.string(n.name)}i(t,"is"),e.is=t})(mf||(mf={})),Sg=[`
2
+ `,`\r
3
+ `,"\r"],(function(e){function t(s,o,l,u){return new rh(s,o,l,u)}i(t,"create"),e.create=t;function r(s){let o=s;return!!(E.defined(o)&&E.string(o.uri)&&(E.undefined(o.languageId)||E.string(o.languageId))&&E.uinteger(o.lineCount)&&E.func(o.getText)&&E.func(o.positionAt)&&E.func(o.offsetAt))}i(r,"is"),e.is=r;function n(s,o){let l=s.getText(),u=a(o,(f,p)=>{let m=f.range.start.line-p.range.start.line;return m===0?f.range.start.character-p.range.start.character:m}),c=l.length;for(let f=u.length-1;f>=0;f--){let p=u[f],m=s.offsetAt(p.range.start),T=s.offsetAt(p.range.end);if(T<=c)l=l.substring(0,m)+p.newText+l.substring(T,l.length);else throw new Error("Overlapping edit");c=m}return l}i(n,"applyEdits"),e.applyEdits=n;function a(s,o){if(s.length<=1)return s;const l=s.length/2|0,u=s.slice(0,l),c=s.slice(l);a(u,o),a(c,o);let f=0,p=0,m=0;for(;f<u.length&&p<c.length;)o(u[f],c[p])<=0?s[m++]=u[f++]:s[m++]=c[p++];for(;f<u.length;)s[m++]=u[f++];for(;p<c.length;)s[m++]=c[p++];return s}i(a,"mergeSort")})(hf||(hf={})),rh=class{static{i(this,"FullTextDocument")}constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,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),r=this.offsetAt(e.end);return this._content.substring(t,r)}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,r=!0;for(let n=0;n<t.length;n++){r&&(e.push(n),r=!1);let a=t.charAt(n);r=a==="\r"||a===`
4
+ `,a==="\r"&&n+1<t.length&&t.charAt(n+1)===`
5
+ `&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(n===0)return ne.create(0,e);for(;r<n;){let s=Math.floor((r+n)/2);t[s]>e?n=s:r=s+1}let a=r-1;return ne.create(a,e-t[a])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)}get lineCount(){return this.getLineOffsets().length}},(function(e){const t=Object.prototype.toString;function r(T){return typeof T<"u"}i(r,"defined"),e.defined=r;function n(T){return typeof T>"u"}i(n,"undefined"),e.undefined=n;function a(T){return T===!0||T===!1}i(a,"boolean"),e.boolean=a;function s(T){return t.call(T)==="[object String]"}i(s,"string"),e.string=s;function o(T){return t.call(T)==="[object Number]"}i(o,"number"),e.number=o;function l(T,g,_){return t.call(T)==="[object Number]"&&g<=T&&T<=_}i(l,"numberRange"),e.numberRange=l;function u(T){return t.call(T)==="[object Number]"&&-2147483648<=T&&T<=2147483647}i(u,"integer"),e.integer=u;function c(T){return t.call(T)==="[object Number]"&&0<=T&&T<=2147483647}i(c,"uinteger"),e.uinteger=c;function f(T){return t.call(T)==="[object Function]"}i(f,"func"),e.func=f;function p(T){return T!==null&&typeof T=="object"}i(p,"objectLiteral"),e.objectLiteral=p;function m(T,g){return Array.isArray(T)&&T.every(g)}i(m,"typedArray"),e.typedArray=m})(E||(E={}))}}),_n=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}i(r,"RAL"),(function(n){function a(s){if(s===void 0)throw new Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a})(r||(r={})),e.default=r}}),Is=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(u){return u===!0||u===!1}i(t,"boolean"),e.boolean=t;function r(u){return typeof u=="string"||u instanceof String}i(r,"string"),e.string=r;function n(u){return typeof u=="number"||u instanceof Number}i(n,"number"),e.number=n;function a(u){return u instanceof Error}i(a,"error"),e.error=a;function s(u){return typeof u=="function"}i(s,"func"),e.func=s;function o(u){return Array.isArray(u)}i(o,"array"),e.array=o;function l(u){return o(u)&&u.every(c=>r(c))}i(l,"stringArray"),e.stringArray=l}}),qa=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=_n(),r;(function(s){const o={dispose(){}};s.None=function(){return o}})(r||(e.Event=r={}));var n=class{static{i(this,"CallbackList")}add(s,o=null,l){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(o),Array.isArray(l)&&l.push({dispose:i(()=>this.remove(s,o),"dispose")})}remove(s,o=null){if(!this._callbacks)return;let l=!1;for(let u=0,c=this._callbacks.length;u<c;u++)if(this._callbacks[u]===s)if(this._contexts[u]===o){this._callbacks.splice(u,1),this._contexts.splice(u,1);return}else l=!0;if(l)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...s){if(!this._callbacks)return[];const o=[],l=this._callbacks.slice(0),u=this._contexts.slice(0);for(let c=0,f=l.length;c<f;c++)try{o.push(l[c].apply(u[c],s))}catch(p){(0,t.default)().console.error(p)}return o}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},a=class wg{static{i(this,"Emitter")}constructor(o){this._options=o}get event(){return this._event||(this._event=(o,l,u)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(o,l);const c={dispose:i(()=>{this._callbacks&&(this._callbacks.remove(o,l),c.dispose=wg._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(u)&&u.push(c),c}),this._event}fire(o){this._callbacks&&this._callbacks.invoke.call(this._callbacks,o)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=a,a._noop=function(){}}}),Il=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=_n(),r=Is(),n=qa(),a;(function(u){u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function c(f){const p=f;return p&&(p===u.None||p===u.Cancelled||r.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}i(c,"is"),u.is=c})(a||(e.CancellationToken=a={}));var s=Object.freeze(function(u,c){const f=(0,t.default)().timer.setTimeout(u.bind(c),0);return{dispose(){f.dispose()}}}),o=class{static{i(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},l=class{static{i(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token.cancel():this._token=a.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=a.None}};e.CancellationTokenSource=l}}),Ig=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=Is(),r;(function(y){y.ParseError=-32700,y.InvalidRequest=-32600,y.MethodNotFound=-32601,y.InvalidParams=-32602,y.InternalError=-32603,y.jsonrpcReservedErrorRangeStart=-32099,y.serverErrorStart=-32099,y.MessageWriteError=-32099,y.MessageReadError=-32098,y.PendingResponseRejected=-32097,y.ConnectionInactive=-32096,y.ServerNotInitialized=-32002,y.UnknownErrorCode=-32001,y.jsonrpcReservedErrorRangeEnd=-32e3,y.serverErrorEnd=-32e3})(r||(e.ErrorCodes=r={})),e.ResponseError=class Ng extends Error{static{i(this,"ResponseError")}constructor(v,C,$){super(C),this.code=t.number(v)?v:r.UnknownErrorCode,this.data=$,Object.setPrototypeOf(this,Ng.prototype)}toJson(){const v={code:this.code,message:this.message};return this.data!==void 0&&(v.data=this.data),v}};var n=class Ao{static{i(this,"ParameterStructures")}constructor(v){this.kind=v}static is(v){return v===Ao.auto||v===Ao.byName||v===Ao.byPosition}toString(){return this.kind}};e.ParameterStructures=n,n.auto=new n("auto"),n.byPosition=new n("byPosition"),n.byName=new n("byName");var a=class{static{i(this,"AbstractMessageSignature")}constructor(y,v){this.method=y,this.numberOfParams=v}get parameterStructures(){return n.auto}};e.AbstractMessageSignature=a;var s=class extends a{static{i(this,"RequestType0")}constructor(y){super(y,0)}};e.RequestType0=s;var o=class extends a{static{i(this,"RequestType")}constructor(y,v=n.auto){super(y,1),this._parameterStructures=v}get parameterStructures(){return this._parameterStructures}};e.RequestType=o;var l=class extends a{static{i(this,"RequestType1")}constructor(y,v=n.auto){super(y,1),this._parameterStructures=v}get parameterStructures(){return this._parameterStructures}};e.RequestType1=l;var u=class extends a{static{i(this,"RequestType2")}constructor(y){super(y,2)}};e.RequestType2=u;var c=class extends a{static{i(this,"RequestType3")}constructor(y){super(y,3)}};e.RequestType3=c;var f=class extends a{static{i(this,"RequestType4")}constructor(y){super(y,4)}};e.RequestType4=f;var p=class extends a{static{i(this,"RequestType5")}constructor(y){super(y,5)}};e.RequestType5=p;var m=class extends a{static{i(this,"RequestType6")}constructor(y){super(y,6)}};e.RequestType6=m;var T=class extends a{static{i(this,"RequestType7")}constructor(y){super(y,7)}};e.RequestType7=T;var g=class extends a{static{i(this,"RequestType8")}constructor(y){super(y,8)}};e.RequestType8=g;var _=class extends a{static{i(this,"RequestType9")}constructor(y){super(y,9)}};e.RequestType9=_;var I=class extends a{static{i(this,"NotificationType")}constructor(y,v=n.auto){super(y,1),this._parameterStructures=v}get parameterStructures(){return this._parameterStructures}};e.NotificationType=I;var N=class extends a{static{i(this,"NotificationType0")}constructor(y){super(y,0)}};e.NotificationType0=N;var S=class extends a{static{i(this,"NotificationType1")}constructor(y,v=n.auto){super(y,1),this._parameterStructures=v}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=S;var A=class extends a{static{i(this,"NotificationType2")}constructor(y){super(y,2)}};e.NotificationType2=A;var k=class extends a{static{i(this,"NotificationType3")}constructor(y){super(y,3)}};e.NotificationType3=k;var ae=class extends a{static{i(this,"NotificationType4")}constructor(y){super(y,4)}};e.NotificationType4=ae;var Z=class extends a{static{i(this,"NotificationType5")}constructor(y){super(y,5)}};e.NotificationType5=Z;var H=class extends a{static{i(this,"NotificationType6")}constructor(y){super(y,6)}};e.NotificationType6=H;var ge=class extends a{static{i(this,"NotificationType7")}constructor(y){super(y,7)}};e.NotificationType7=ge;var ie=class extends a{static{i(this,"NotificationType8")}constructor(y){super(y,8)}};e.NotificationType8=ie;var _e=class extends a{static{i(this,"NotificationType9")}constructor(y){super(y,9)}};e.NotificationType9=_e;var P;(function(y){function v(R){const b=R;return b&&t.string(b.method)&&(t.string(b.id)||t.number(b.id))}i(v,"isRequest"),y.isRequest=v;function C(R){const b=R;return b&&t.string(b.method)&&R.id===void 0}i(C,"isNotification"),y.isNotification=C;function $(R){const b=R;return b&&(b.result!==void 0||!!b.error)&&(t.string(b.id)||t.number(b.id)||b.id===null)}i($,"isResponse"),y.isResponse=$})(P||(e.Message=P={}))}}),Pg=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var r;(function(s){s.None=0,s.First=1,s.AsOld=s.First,s.Last=2,s.AsNew=s.Last})(r||(e.Touch=r={}));var n=class{static{i(this,"LinkedMap")}constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(s){return this._map.has(s)}get(s,o=r.None){const l=this._map.get(s);if(l)return o!==r.None&&this.touch(l,o),l.value}set(s,o,l=r.None){let u=this._map.get(s);if(u)u.value=o,l!==r.None&&this.touch(u,l);else{switch(u={key:s,value:o,next:void 0,previous:void 0},l){case r.None:this.addItemLast(u);break;case r.First:this.addItemFirst(u);break;case r.Last:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(s,u),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){const l=this._state;let u=this._head;for(;u;){if(o?s.bind(o)(u.value,u.key,this):s(u.value,u.key,this),this._state!==l)throw new Error("LinkedMap got modified during iteration.");u=u.next}}keys(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const u={value:o.key,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}values(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const u={value:o.value,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}entries(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const u={value:[o.key,o.value],done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,l=this.size;for(;o&&l>s;)this._map.delete(o.key),o=o.next,l--;this._head=o,this._size=l,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const o=s.next,l=s.previous;if(!o||!l)throw new Error("Invalid list");o.previous=l,l.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==r.First&&o!==r.Last)){if(o===r.First){if(s===this._head)return;const l=s.next,u=s.previous;s===this._tail?(u.next=void 0,this._tail=u):(l.previous=u,u.next=l),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===r.Last){if(s===this._tail)return;const l=s.next,u=s.previous;s===this._head?(l.previous=void 0,this._head=l):(l.previous=u,u.next=l),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((o,l)=>{s.push([l,o])}),s}fromJSON(s){this.clear();for(const[o,l]of s)this.set(o,l)}};e.LinkedMap=n;var a=class extends n{static{i(this,"LRUCache")}constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=r.AsNew){return super.get(s,o)}peek(s){return super.get(s,r.None)}set(s,o){return super.set(s,o,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=a}}),xw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),Gw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=Il(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;const u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){const c=this.buffers.get(u);if(c===void 0)return;const f=new Int32Array(c,0,1);Atomics.store(f,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(l){const u=l.$cancellationData;return u===void 0?new t.CancellationTokenSource:new s(u)}};e.SharedArrayReceiverStrategy=o}}),kg=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=_n(),r=class{static{i(this,"Semaphore")}constructor(n=1){if(n<=0)throw new Error("Capacity must be greater than 0");this._capacity=n,this._active=0,this._waiting=[]}lock(n){return new Promise((a,s)=>{this._waiting.push({thunk:n,resolve:a,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const n=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const a=n.thunk();a instanceof Promise?a.then(s=>{this._active--,n.resolve(s),this.runNext()},s=>{this._active--,n.reject(s),this.runNext()}):(this._active--,n.resolve(a),this.runNext())}catch(a){this._active--,n.reject(a),this.runNext()}}};e.Semaphore=r}}),Fw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=_n(),r=Is(),n=qa(),a=kg(),s;(function(c){function f(p){let m=p;return m&&r.func(m.listen)&&r.func(m.dispose)&&r.func(m.onError)&&r.func(m.onClose)&&r.func(m.onPartialMessage)}i(f,"is"),c.is=f})(s||(e.MessageReader=s={}));var o=class{static{i(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(c){this.errorEmitter.fire(this.asError(c))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(c){this.partialMessageEmitter.fire(c)}asError(c){return c instanceof Error?c:new Error(`Reader received error. Reason: ${r.string(c.message)?c.message:"unknown"}`)}};e.AbstractMessageReader=o;var l;(function(c){function f(p){let m,T;const g=new Map;let _;const I=new Map;if(p===void 0||typeof p=="string")m=p??"utf-8";else{if(m=p.charset??"utf-8",p.contentDecoder!==void 0&&(T=p.contentDecoder,g.set(T.name,T)),p.contentDecoders!==void 0)for(const N of p.contentDecoders)g.set(N.name,N);if(p.contentTypeDecoder!==void 0&&(_=p.contentTypeDecoder,I.set(_.name,_)),p.contentTypeDecoders!==void 0)for(const N of p.contentTypeDecoders)I.set(N.name,N)}return _===void 0&&(_=(0,t.default)().applicationJson.decoder,I.set(_.name,_)),{charset:m,contentDecoder:T,contentDecoders:g,contentTypeDecoder:_,contentTypeDecoders:I}}i(f,"fromOptions"),c.fromOptions=f})(l||(l={}));var u=class extends o{static{i(this,"ReadableStreamMessageReader")}constructor(c,f){super(),this.readable=c,this.options=l.fromOptions(f),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new a.Semaphore(1)}set partialMessageTimeout(c){this._partialMessageTimeout=c}get partialMessageTimeout(){return this._partialMessageTimeout}listen(c){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=c;const f=this.readable.onData(p=>{this.onData(p)});return this.readable.onError(p=>this.fireError(p)),this.readable.onClose(()=>this.fireClose()),f}onData(c){try{for(this.buffer.append(c);;){if(this.nextMessageLength===-1){const p=this.buffer.tryReadHeaders(!0);if(!p)return;const m=p.get("content-length");if(!m){this.fireError(new Error(`Header must provide a Content-Length property.
6
+ ${JSON.stringify(Object.fromEntries(p))}`));return}const T=parseInt(m);if(isNaN(T)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=T}const f=this.buffer.tryReadBody(this.nextMessageLength);if(f===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const p=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(f):f,m=await this.options.contentTypeDecoder.decode(p,this.options);this.callback(m)}).catch(p=>{this.fireError(p)})}}catch(f){this.fireError(f)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((c,f)=>{this.partialMessageTimer=void 0,c===this.messageToken&&(this.firePartialMessage({messageToken:c,waitingTime:f}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};e.ReadableStreamMessageReader=u}}),zw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=_n(),r=Is(),n=kg(),a=qa(),s="Content-Length: ",o=`\r
7
+ `,l;(function(p){function m(T){let g=T;return g&&r.func(g.dispose)&&r.func(g.onClose)&&r.func(g.onError)&&r.func(g.write)}i(m,"is"),p.is=m})(l||(e.MessageWriter=l={}));var u=class{static{i(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(p,m,T){this.errorEmitter.fire([this.asError(p),m,T])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(p){return p instanceof Error?p:new Error(`Writer received error. Reason: ${r.string(p.message)?p.message:"unknown"}`)}};e.AbstractMessageWriter=u;var c;(function(p){function m(T){return T===void 0||typeof T=="string"?{charset:T??"utf-8",contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:T.charset??"utf-8",contentEncoder:T.contentEncoder,contentTypeEncoder:T.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}i(m,"fromOptions"),p.fromOptions=m})(c||(c={}));var f=class extends u{static{i(this,"WriteableStreamMessageWriter")}constructor(p,m){super(),this.writable=p,this.options=c.fromOptions(m),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(T=>this.fireError(T)),this.writable.onClose(()=>this.fireClose())}async write(p){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(p,this.options).then(m=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(m):m).then(m=>{const T=[];return T.push(s,m.byteLength.toString(),o),T.push(o),this.doWrite(p,T,m)},m=>{throw this.fireError(m),m}))}async doWrite(p,m,T){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(T)}catch(g){return this.handleError(g,p),Promise.reject(g)}}handleError(p,m){this.errorCount++,this.fireError(p,m,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=f}}),jw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
8
+ `,a=class{static{i(this,"AbstractMessageBuffer")}constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){const o=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:for(;l<this._chunks.length;){const T=this._chunks[l];for(u=0;u<T.length;){switch(T[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}c+=T.byteLength,l++}if(o!==4)return;const f=this._read(c+u),p=new Map,m=this.toString(f,"ascii").split(n);if(m.length<2)return p;for(let T=0;T<m.length-2;T++){const g=m[T],_=g.indexOf(":");if(_===-1)throw new Error(`Message header must separate key and value using ':'
9
+ ${g}`);const I=g.substr(0,_),N=g.substr(_+1).trim();p.set(s?I.toLowerCase():I,N)}return p}tryReadBody(s){if(!(this._totalLength<s))return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0)return this.emptyBuffer();if(s>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===s){const c=this._chunks[0];return this._chunks.shift(),this._totalLength-=s,this.asNative(c)}if(this._chunks[0].byteLength>s){const c=this._chunks[0],f=this.asNative(c,s);return this._chunks[0]=c.slice(s),this._totalLength-=s,f}const o=this.allocNative(s);let l=0,u=0;for(;s>0;){const c=this._chunks[u];if(c.byteLength>s){const f=c.slice(0,s);o.set(f,l),l+=s,this._chunks[u]=c.slice(s),this._totalLength-=s,s-=s}else o.set(c,l),l+=c.byteLength,this._chunks.shift(),this._totalLength-=c.byteLength,s-=c.byteLength}return o}};e.AbstractMessageBuffer=a}}),Uw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=_n(),r=Is(),n=Ig(),a=Pg(),s=qa(),o=Il(),l;(function(v){v.type=new n.NotificationType("$/cancelRequest")})(l||(l={}));var u;(function(v){function C($){return typeof $=="string"||typeof $=="number"}i(C,"is"),v.is=C})(u||(e.ProgressToken=u={}));var c;(function(v){v.type=new n.NotificationType("$/progress")})(c||(c={}));var f=class{static{i(this,"ProgressType")}constructor(){}};e.ProgressType=f;var p;(function(v){function C($){return r.func($)}i(C,"is"),v.is=C})(p||(p={})),e.NullLogger=Object.freeze({error:i(()=>{},"error"),warn:i(()=>{},"warn"),info:i(()=>{},"info"),log:i(()=>{},"log")});var m;(function(v){v[v.Off=0]="Off",v[v.Messages=1]="Messages",v[v.Compact=2]="Compact",v[v.Verbose=3]="Verbose"})(m||(e.Trace=m={}));var T;(function(v){v.Off="off",v.Messages="messages",v.Compact="compact",v.Verbose="verbose"})(T||(e.TraceValues=T={})),(function(v){function C(R){if(!r.string(R))return v.Off;switch(R=R.toLowerCase(),R){case"off":return v.Off;case"messages":return v.Messages;case"compact":return v.Compact;case"verbose":return v.Verbose;default:return v.Off}}i(C,"fromString"),v.fromString=C;function $(R){switch(R){case v.Off:return"off";case v.Messages:return"messages";case v.Compact:return"compact";case v.Verbose:return"verbose";default:return"off"}}i($,"toString"),v.toString=$})(m||(e.Trace=m={}));var g;(function(v){v.Text="text",v.JSON="json"})(g||(e.TraceFormat=g={})),(function(v){function C($){return r.string($)?($=$.toLowerCase(),$==="json"?v.JSON:v.Text):v.Text}i(C,"fromString"),v.fromString=C})(g||(e.TraceFormat=g={}));var _;(function(v){v.type=new n.NotificationType("$/setTrace")})(_||(e.SetTraceNotification=_={}));var I;(function(v){v.type=new n.NotificationType("$/logTrace")})(I||(e.LogTraceNotification=I={}));var N;(function(v){v[v.Closed=1]="Closed",v[v.Disposed=2]="Disposed",v[v.AlreadyListening=3]="AlreadyListening"})(N||(e.ConnectionErrors=N={}));var S=class Og extends Error{static{i(this,"ConnectionError")}constructor(C,$){super($),this.code=C,Object.setPrototypeOf(this,Og.prototype)}};e.ConnectionError=S;var A;(function(v){function C($){const R=$;return R&&r.func(R.cancelUndispatched)}i(C,"is"),v.is=C})(A||(e.ConnectionStrategy=A={}));var k;(function(v){function C($){const R=$;return R&&(R.kind===void 0||R.kind==="id")&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}i(C,"is"),v.is=C})(k||(e.IdCancellationReceiverStrategy=k={}));var ae;(function(v){function C($){const R=$;return R&&R.kind==="request"&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}i(C,"is"),v.is=C})(ae||(e.RequestCancellationReceiverStrategy=ae={}));var Z;(function(v){v.Message=Object.freeze({createCancellationTokenSource($){return new o.CancellationTokenSource}});function C($){return k.is($)||ae.is($)}i(C,"is"),v.is=C})(Z||(e.CancellationReceiverStrategy=Z={}));var H;(function(v){v.Message=Object.freeze({sendCancellation($,R){return $.sendNotification(l.type,{id:R})},cleanup($){}});function C($){const R=$;return R&&r.func(R.sendCancellation)&&r.func(R.cleanup)}i(C,"is"),v.is=C})(H||(e.CancellationSenderStrategy=H={}));var ge;(function(v){v.Message=Object.freeze({receiver:Z.Message,sender:H.Message});function C($){const R=$;return R&&Z.is(R.receiver)&&H.is(R.sender)}i(C,"is"),v.is=C})(ge||(e.CancellationStrategy=ge={}));var ie;(function(v){function C($){const R=$;return R&&r.func(R.handleMessage)}i(C,"is"),v.is=C})(ie||(e.MessageStrategy=ie={}));var _e;(function(v){function C($){const R=$;return R&&(ge.is(R.cancellationStrategy)||A.is(R.connectionStrategy)||ie.is(R.messageStrategy))}i(C,"is"),v.is=C})(_e||(e.ConnectionOptions=_e={}));var P;(function(v){v[v.New=1]="New",v[v.Listening=2]="Listening",v[v.Closed=3]="Closed",v[v.Disposed=4]="Disposed"})(P||(P={}));function y(v,C,$,R){const b=$!==void 0?$:e.NullLogger;let O=0,M=0,D=0;const x="2.0";let B;const Y=new Map;let q;const Ne=new Map,se=new Map;let Oe,Le=new a.LinkedMap,Pe=new Map,Ve=new Set,We=new Map,te=m.Off,Mt=g.Text,Ae,bt=P.New;const Vn=new s.Emitter,ti=new s.Emitter,ri=new s.Emitter,ni=new s.Emitter,ai=new s.Emitter,Ct=R&&R.cancellationStrategy?R.cancellationStrategy:ge.Message;function Hn(h){if(h===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+h.toString()}i(Hn,"createRequestQueueKey");function ii(h){return h===null?"res-unknown-"+(++D).toString():"res-"+h.toString()}i(ii,"createResponseQueueKey");function si(){return"not-"+(++M).toString()}i(si,"createNotificationQueueKey");function oi(h,w){n.Message.isRequest(w)?h.set(Hn(w.id),w):n.Message.isResponse(w)?h.set(ii(w.id),w):h.set(si(),w)}i(oi,"addMessageToQueue");function li(h){}i(li,"cancelUndispatched");function Yn(){return bt===P.Listening}i(Yn,"isListening");function Xn(){return bt===P.Closed}i(Xn,"isClosed");function xt(){return bt===P.Disposed}i(xt,"isDisposed");function Jn(){(bt===P.New||bt===P.Listening)&&(bt=P.Closed,ti.fire(void 0))}i(Jn,"closeHandler");function ui(h){Vn.fire([h,void 0,void 0])}i(ui,"readErrorHandler");function ci(h){Vn.fire(h)}i(ci,"writeErrorHandler"),v.onClose(Jn),v.onError(ui),C.onClose(Jn),C.onError(ci);function Zn(){Oe||Le.size===0||(Oe=(0,t.default)().timer.setImmediate(()=>{Oe=void 0,fi()}))}i(Zn,"triggerMessageQueue");function Qn(h){n.Message.isRequest(h)?pi(h):n.Message.isNotification(h)?mi(h):n.Message.isResponse(h)?di(h):hi(h)}i(Qn,"handleMessage");function fi(){if(Le.size===0)return;const h=Le.shift();try{const w=R?.messageStrategy;ie.is(w)?w.handleMessage(h,Qn):Qn(h)}finally{Zn()}}i(fi,"processMessageQueue");const Ys=i(h=>{try{if(n.Message.isNotification(h)&&h.method===l.type.method){const w=h.params.id,L=Hn(w),G=Le.get(L);if(n.Message.isRequest(G)){const ue=R?.connectionStrategy,Ee=ue&&ue.cancelUndispatched?ue.cancelUndispatched(G,li):void 0;if(Ee&&(Ee.error!==void 0||Ee.result!==void 0)){Le.delete(L),We.delete(w),Ee.id=G.id,Cr(Ee,h.method,Date.now()),C.write(Ee).catch(()=>b.error("Sending response for canceled message failed."));return}}const de=We.get(w);if(de!==void 0){de.cancel(),Ur(h);return}else Ve.add(w)}oi(Le,h)}finally{Zn()}},"callback");function pi(h){if(xt())return;function w(Q,Te,oe){const De={jsonrpc:x,id:h.id};Q instanceof n.ResponseError?De.error=Q.toJson():De.result=Q===void 0?null:Q,Cr(De,Te,oe),C.write(De).catch(()=>b.error("Sending response failed."))}i(w,"reply");function L(Q,Te,oe){const De={jsonrpc:x,id:h.id,error:Q.toJson()};Cr(De,Te,oe),C.write(De).catch(()=>b.error("Sending response failed."))}i(L,"replyError");function G(Q,Te,oe){Q===void 0&&(Q=null);const De={jsonrpc:x,id:h.id,result:Q};Cr(De,Te,oe),C.write(De).catch(()=>b.error("Sending response failed."))}i(G,"replySuccess"),vi(h);const de=Y.get(h.method);let ue,Ee;de&&(ue=de.type,Ee=de.handler);const Se=Date.now();if(Ee||B){const Q=h.id??String(Date.now()),Te=k.is(Ct.receiver)?Ct.receiver.createCancellationTokenSource(Q):Ct.receiver.createCancellationTokenSource(h);h.id!==null&&Ve.has(h.id)&&Te.cancel(),h.id!==null&&We.set(Q,Te);try{let oe;if(Ee)if(h.params===void 0){if(ue!==void 0&&ue.numberOfParams!==0){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines ${ue.numberOfParams} params but received none.`),h.method,Se);return}oe=Ee(Te.token)}else if(Array.isArray(h.params)){if(ue!==void 0&&ue.parameterStructures===n.ParameterStructures.byName){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by name but received parameters by position`),h.method,Se);return}oe=Ee(...h.params,Te.token)}else{if(ue!==void 0&&ue.parameterStructures===n.ParameterStructures.byPosition){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${h.method} defines parameters by position but received parameters by name`),h.method,Se);return}oe=Ee(h.params,Te.token)}else B&&(oe=B(h.method,h.params,Te.token));const De=oe;oe?De.then?De.then(He=>{We.delete(Q),w(He,h.method,Se)},He=>{We.delete(Q),He instanceof n.ResponseError?L(He,h.method,Se):He&&r.string(He.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${He.message}`),h.method,Se):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,Se)}):(We.delete(Q),w(oe,h.method,Se)):(We.delete(Q),G(oe,h.method,Se))}catch(oe){We.delete(Q),oe instanceof n.ResponseError?w(oe,h.method,Se):oe&&r.string(oe.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed with message: ${oe.message}`),h.method,Se):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${h.method} failed unexpectedly without providing any details.`),h.method,Se)}}else L(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${h.method}`),h.method,Se)}i(pi,"handleRequest");function di(h){if(!xt())if(h.id===null)h.error?b.error(`Received response message without id: Error is:
10
+ ${JSON.stringify(h.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const w=h.id,L=Pe.get(w);if(Ti(h,L),L!==void 0){Pe.delete(w);try{if(h.error){const G=h.error;L.reject(new n.ResponseError(G.code,G.message,G.data))}else if(h.result!==void 0)L.resolve(h.result);else throw new Error("Should never happen.")}catch(G){G.message?b.error(`Response handler '${L.method}' failed with message: ${G.message}`):b.error(`Response handler '${L.method}' failed unexpectedly.`)}}}}i(di,"handleResponse");function mi(h){if(xt())return;let w,L;if(h.method===l.type.method){const G=h.params.id;Ve.delete(G),Ur(h);return}else{const G=Ne.get(h.method);G&&(L=G.handler,w=G.type)}if(L||q)try{if(Ur(h),L)if(h.params===void 0)w!==void 0&&w.numberOfParams!==0&&w.parameterStructures!==n.ParameterStructures.byName&&b.error(`Notification ${h.method} defines ${w.numberOfParams} params but received none.`),L();else if(Array.isArray(h.params)){const G=h.params;h.method===c.type.method&&G.length===2&&u.is(G[0])?L({token:G[0],value:G[1]}):(w!==void 0&&(w.parameterStructures===n.ParameterStructures.byName&&b.error(`Notification ${h.method} defines parameters by name but received parameters by position`),w.numberOfParams!==h.params.length&&b.error(`Notification ${h.method} defines ${w.numberOfParams} params but received ${G.length} arguments`)),L(...G))}else w!==void 0&&w.parameterStructures===n.ParameterStructures.byPosition&&b.error(`Notification ${h.method} defines parameters by position but received parameters by name`),L(h.params);else q&&q(h.method,h.params)}catch(G){G.message?b.error(`Notification handler '${h.method}' failed with message: ${G.message}`):b.error(`Notification handler '${h.method}' failed unexpectedly.`)}else ri.fire(h)}i(mi,"handleNotification");function hi(h){if(!h){b.error("Received empty message.");return}b.error(`Received message which is neither a response nor a notification message:
11
+ ${JSON.stringify(h,null,4)}`);const w=h;if(r.string(w.id)||r.number(w.id)){const L=w.id,G=Pe.get(L);G&&G.reject(new Error("The received response has neither a result nor an error property."))}}i(hi,"handleInvalidMessage");function gt(h){if(h!=null)switch(te){case m.Verbose:return JSON.stringify(h,null,4);case m.Compact:return JSON.stringify(h);default:return}}i(gt,"stringifyTrace");function yi(h){if(!(te===m.Off||!Ae))if(Mt===g.Text){let w;(te===m.Verbose||te===m.Compact)&&h.params&&(w=`Params: ${gt(h.params)}
12
+
13
+ `),Ae.log(`Sending request '${h.method} - (${h.id})'.`,w)}else Gt("send-request",h)}i(yi,"traceSendingRequest");function gi(h){if(!(te===m.Off||!Ae))if(Mt===g.Text){let w;(te===m.Verbose||te===m.Compact)&&(h.params?w=`Params: ${gt(h.params)}
14
+
15
+ `:w=`No parameters provided.
16
+
17
+ `),Ae.log(`Sending notification '${h.method}'.`,w)}else Gt("send-notification",h)}i(gi,"traceSendingNotification");function Cr(h,w,L){if(!(te===m.Off||!Ae))if(Mt===g.Text){let G;(te===m.Verbose||te===m.Compact)&&(h.error&&h.error.data?G=`Error data: ${gt(h.error.data)}
18
+
19
+ `:h.result?G=`Result: ${gt(h.result)}
20
+
21
+ `:h.error===void 0&&(G=`No result returned.
22
+
23
+ `)),Ae.log(`Sending response '${w} - (${h.id})'. Processing request took ${Date.now()-L}ms`,G)}else Gt("send-response",h)}i(Cr,"traceSendingResponse");function vi(h){if(!(te===m.Off||!Ae))if(Mt===g.Text){let w;(te===m.Verbose||te===m.Compact)&&h.params&&(w=`Params: ${gt(h.params)}
24
+
25
+ `),Ae.log(`Received request '${h.method} - (${h.id})'.`,w)}else Gt("receive-request",h)}i(vi,"traceReceivedRequest");function Ur(h){if(!(te===m.Off||!Ae||h.method===I.type.method))if(Mt===g.Text){let w;(te===m.Verbose||te===m.Compact)&&(h.params?w=`Params: ${gt(h.params)}
26
+
27
+ `:w=`No parameters provided.
28
+
29
+ `),Ae.log(`Received notification '${h.method}'.`,w)}else Gt("receive-notification",h)}i(Ur,"traceReceivedNotification");function Ti(h,w){if(!(te===m.Off||!Ae))if(Mt===g.Text){let L;if((te===m.Verbose||te===m.Compact)&&(h.error&&h.error.data?L=`Error data: ${gt(h.error.data)}
30
+
31
+ `:h.result?L=`Result: ${gt(h.result)}
32
+
33
+ `:h.error===void 0&&(L=`No result returned.
34
+
35
+ `)),w){const G=h.error?` Request failed: ${h.error.message} (${h.error.code}).`:"";Ae.log(`Received response '${w.method} - (${h.id})' in ${Date.now()-w.timerStart}ms.${G}`,L)}else Ae.log(`Received response ${h.id} without active response promise.`,L)}else Gt("receive-response",h)}i(Ti,"traceReceivedResponse");function Gt(h,w){if(!Ae||te===m.Off)return;const L={isLSPMessage:!0,type:h,message:w,timestamp:Date.now()};Ae.log(L)}i(Gt,"logLSPMessage");function tr(){if(Xn())throw new S(N.Closed,"Connection is closed.");if(xt())throw new S(N.Disposed,"Connection is disposed.")}i(tr,"throwIfClosedOrDisposed");function $i(){if(Yn())throw new S(N.AlreadyListening,"Connection is already listening")}i($i,"throwIfListening");function Ri(){if(!Yn())throw new Error("Call listen() first.")}i(Ri,"throwIfNotListening");function rr(h){return h===void 0?null:h}i(rr,"undefinedToNull");function ea(h){if(h!==null)return h}i(ea,"nullToUndefined");function d(h){return h!=null&&!Array.isArray(h)&&typeof h=="object"}i(d,"isNamedParam");function re(h,w){switch(h){case n.ParameterStructures.auto:return d(w)?ea(w):[rr(w)];case n.ParameterStructures.byName:if(!d(w))throw new Error("Received parameters by name but param is not an object literal.");return ea(w);case n.ParameterStructures.byPosition:return[rr(w)];default:throw new Error(`Unknown parameter structure ${h.toString()}`)}}i(re,"computeSingleParam");function ve(h,w){let L;const G=h.numberOfParams;switch(G){case 0:L=void 0;break;case 1:L=re(h.parameterStructures,w[0]);break;default:L=[];for(let de=0;de<w.length&&de<G;de++)L.push(rr(w[de]));if(w.length<G)for(let de=w.length;de<G;de++)L.push(null);break}return L}i(ve,"computeMessageParams");const W={sendNotification:i((h,...w)=>{tr();let L,G;if(r.string(h)){L=h;const ue=w[0];let Ee=0,Se=n.ParameterStructures.auto;n.ParameterStructures.is(ue)&&(Ee=1,Se=ue);let Q=w.length;const Te=Q-Ee;switch(Te){case 0:G=void 0;break;case 1:G=re(Se,w[Ee]);break;default:if(Se===n.ParameterStructures.byName)throw new Error(`Received ${Te} parameters for 'by Name' notification parameter structure.`);G=w.slice(Ee,Q).map(oe=>rr(oe));break}}else{const ue=w;L=h.method,G=ve(h,ue)}const de={jsonrpc:x,method:L,params:G};return gi(de),C.write(de).catch(ue=>{throw b.error("Sending notification failed."),ue})},"sendNotification"),onNotification:i((h,w)=>{tr();let L;return r.func(h)?q=h:w&&(r.string(h)?(L=h,Ne.set(h,{type:void 0,handler:w})):(L=h.method,Ne.set(h.method,{type:h,handler:w}))),{dispose:i(()=>{L!==void 0?Ne.delete(L):q=void 0},"dispose")}},"onNotification"),onProgress:i((h,w,L)=>{if(se.has(w))throw new Error(`Progress handler for token ${w} already registered`);return se.set(w,L),{dispose:i(()=>{se.delete(w)},"dispose")}},"onProgress"),sendProgress:i((h,w,L)=>W.sendNotification(c.type,{token:w,value:L}),"sendProgress"),onUnhandledProgress:ni.event,sendRequest:i((h,...w)=>{tr(),Ri();let L,G,de;if(r.string(h)){L=h;const Q=w[0],Te=w[w.length-1];let oe=0,De=n.ParameterStructures.auto;n.ParameterStructures.is(Q)&&(oe=1,De=Q);let He=w.length;o.CancellationToken.is(Te)&&(He=He-1,de=Te);const Ft=He-oe;switch(Ft){case 0:G=void 0;break;case 1:G=re(De,w[oe]);break;default:if(De===n.ParameterStructures.byName)throw new Error(`Received ${Ft} parameters for 'by Name' request parameter structure.`);G=w.slice(oe,He).map(Pw=>rr(Pw));break}}else{const Q=w;L=h.method,G=ve(h,Q);const Te=h.numberOfParams;de=o.CancellationToken.is(Q[Te])?Q[Te]:void 0}const ue=O++;let Ee;de&&(Ee=de.onCancellationRequested(()=>{const Q=Ct.sender.sendCancellation(W,ue);return Q===void 0?(b.log(`Received no promise from cancellation strategy when cancelling id ${ue}`),Promise.resolve()):Q.catch(()=>{b.log(`Sending cancellation messages for id ${ue} failed`)})}));const Se={jsonrpc:x,id:ue,method:L,params:G};return yi(Se),typeof Ct.sender.enableCancellation=="function"&&Ct.sender.enableCancellation(Se),new Promise(async(Q,Te)=>{const oe=i(Ft=>{Q(Ft),Ct.sender.cleanup(ue),Ee?.dispose()},"resolveWithCleanup"),De=i(Ft=>{Te(Ft),Ct.sender.cleanup(ue),Ee?.dispose()},"rejectWithCleanup"),He={method:L,timerStart:Date.now(),resolve:oe,reject:De};try{await C.write(Se),Pe.set(ue,He)}catch(Ft){throw b.error("Sending request failed."),He.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Ft.message?Ft.message:"Unknown reason")),Ft}})},"sendRequest"),onRequest:i((h,w)=>{tr();let L=null;return p.is(h)?(L=void 0,B=h):r.string(h)?(L=null,w!==void 0&&(L=h,Y.set(h,{handler:w,type:void 0}))):w!==void 0&&(L=h.method,Y.set(h.method,{type:h,handler:w})),{dispose:i(()=>{L!==null&&(L!==void 0?Y.delete(L):B=void 0)},"dispose")}},"onRequest"),hasPendingResponse:i(()=>Pe.size>0,"hasPendingResponse"),trace:i(async(h,w,L)=>{let G=!1,de=g.Text;L!==void 0&&(r.boolean(L)?G=L:(G=L.sendNotification||!1,de=L.traceFormat||g.Text)),te=h,Mt=de,te===m.Off?Ae=void 0:Ae=w,G&&!Xn()&&!xt()&&await W.sendNotification(_.type,{value:m.toString(h)})},"trace"),onError:Vn.event,onClose:ti.event,onUnhandledNotification:ri.event,onDispose:ai.event,end:i(()=>{C.end()},"end"),dispose:i(()=>{if(xt())return;bt=P.Disposed,ai.fire(void 0);const h=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const w of Pe.values())w.reject(h);Pe=new Map,We=new Map,Ve=new Set,Le=new a.LinkedMap,r.func(C.dispose)&&C.dispose(),r.func(v.dispose)&&v.dispose()},"dispose"),listen:i(()=>{tr(),$i(),bt=P.Listening,v.listen(Ys)},"listen"),inspect:i(()=>{(0,t.default)().console.log("inspect")},"inspect")};return W.onNotification(I.type,h=>{if(te===m.Off||!Ae)return;const w=te===m.Verbose||te===m.Compact;Ae.log(h.message,w?h.verbose:void 0)}),W.onNotification(c.type,h=>{const w=se.get(h.token);w?w(h.value):ni.fire(h)}),W}i(y,"createMessageConnection"),e.createMessageConnection=y}}),yf=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=Ig();Object.defineProperty(e,"Message",{enumerable:!0,get:i(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:i(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:i(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:i(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:i(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:i(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:i(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:i(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:i(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:i(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:i(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:i(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:i(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:i(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:i(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:i(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:i(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:i(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:i(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:i(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:i(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:i(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:i(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:i(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:i(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:i(function(){return t.ParameterStructures},"get")});var r=Pg();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:i(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:i(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:i(function(){return r.Touch},"get")});var n=xw();Object.defineProperty(e,"Disposable",{enumerable:!0,get:i(function(){return n.Disposable},"get")});var a=qa();Object.defineProperty(e,"Event",{enumerable:!0,get:i(function(){return a.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:i(function(){return a.Emitter},"get")});var s=Il();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:i(function(){return s.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:i(function(){return s.CancellationToken},"get")});var o=Gw();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:i(function(){return o.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:i(function(){return o.SharedArrayReceiverStrategy},"get")});var l=Fw();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:i(function(){return l.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:i(function(){return l.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:i(function(){return l.ReadableStreamMessageReader},"get")});var u=zw();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:i(function(){return u.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:i(function(){return u.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:i(function(){return u.WriteableStreamMessageWriter},"get")});var c=jw();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:i(function(){return c.AbstractMessageBuffer},"get")});var f=Uw();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:i(function(){return f.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:i(function(){return f.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:i(function(){return f.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:i(function(){return f.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:i(function(){return f.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:i(function(){return f.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:i(function(){return f.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:i(function(){return f.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:i(function(){return f.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:i(function(){return f.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:i(function(){return f.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:i(function(){return f.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:i(function(){return f.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:i(function(){return f.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:i(function(){return f.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:i(function(){return f.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:i(function(){return f.MessageStrategy},"get")}),e.RAL=_n().default}}),Kw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=yf(),r=class Lg extends t.AbstractMessageBuffer{static{i(this,"MessageBuffer")}constructor(c="utf-8"){super(c),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Lg.emptyBuffer}fromString(c,f){return new TextEncoder().encode(c)}toString(c,f){return f==="ascii"?this.asciiDecoder.decode(c):new TextDecoder(f).decode(c)}asNative(c,f){return f===void 0?c:c.slice(0,f)}allocNative(c){return new Uint8Array(c)}};r.emptyBuffer=new Uint8Array(0);var n=class{static{i(this,"ReadableStreamWrapper")}constructor(u){this.socket=u,this._onData=new t.Emitter,this._messageListener=c=>{c.data.arrayBuffer().then(f=>{this._onData.fire(new Uint8Array(f))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}onData(u){return this._onData.event(u)}},a=class{static{i(this,"WritableStreamWrapper")}constructor(u){this.socket=u}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}write(u,c){if(typeof u=="string"){if(c!==void 0&&c!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${c}`);this.socket.send(u)}else this.socket.send(u);return Promise.resolve()}end(){this.socket.close()}},s=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:i(u=>new r(u),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:i((u,c)=>{if(c.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${c.charset}`);return Promise.resolve(s.encode(JSON.stringify(u,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:i((u,c)=>{if(!(u instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(c.charset).decode(u)))},"decode")})}),stream:Object.freeze({asReadableStream:i(u=>new n(u),"asReadableStream"),asWritableStream:i(u=>new a(u),"asWritableStream")}),console,timer:Object.freeze({setTimeout(u,c,...f){const p=setTimeout(u,c,...f);return{dispose:i(()=>clearTimeout(p),"dispose")}},setImmediate(u,...c){const f=setTimeout(u,0,...c);return{dispose:i(()=>clearTimeout(f),"dispose")}},setInterval(u,c,...f){const p=setInterval(u,c,...f);return{dispose:i(()=>clearInterval(p),"dispose")}}})});function l(){return o}i(l,"RIL"),(function(u){function c(){t.RAL.install(o)}i(c,"install"),u.install=c})(l||(l={})),e.default=l}}),Wa=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(l,u,c,f){f===void 0&&(f=c);var p=Object.getOwnPropertyDescriptor(u,c);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:i(function(){return u[c]},"get")}),Object.defineProperty(l,f,p)}):(function(l,u,c,f){f===void 0&&(f=c),l[f]=u[c]})),r=e&&e.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&t(u,l,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,Kw().default.install();var n=yf();r(yf(),e);var a=class extends n.AbstractMessageReader{static{i(this,"BrowserMessageReader")}constructor(l){super(),this._onData=new n.Emitter,this._messageListener=u=>{this._onData.fire(u.data)},l.addEventListener("error",u=>this.fireError(u)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}};e.BrowserMessageReader=a;var s=class extends n.AbstractMessageWriter{static{i(this,"BrowserMessageWriter")}constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",u=>this.fireError(u))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(u){return this.handleError(u,l),Promise.reject(u)}}handleError(l,u){this.errorCount++,this.fireError(l,u,this.errorCount)}end(){}};e.BrowserMessageWriter=s;function o(l,u,c,f){return c===void 0&&(c=n.NullLogger),n.ConnectionStrategy.is(f)&&(f={connectionStrategy:f}),(0,n.createMessageConnection)(l,u,c,f)}i(o,"createMessageConnection"),e.createMessageConnection=o}}),nh=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){"use strict";t.exports=Wa()}}),Re=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=Wa(),r;(function(u){u.clientToServer="clientToServer",u.serverToClient="serverToClient",u.both="both"})(r||(e.MessageDirection=r={}));var n=class{static{i(this,"RegistrationType")}constructor(u){this.method=u}};e.RegistrationType=n;var a=class extends t.RequestType0{static{i(this,"ProtocolRequestType0")}constructor(u){super(u)}};e.ProtocolRequestType0=a;var s=class extends t.RequestType{static{i(this,"ProtocolRequestType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolRequestType=s;var o=class extends t.NotificationType0{static{i(this,"ProtocolNotificationType0")}constructor(u){super(u)}};e.ProtocolNotificationType0=o;var l=class extends t.NotificationType{static{i(this,"ProtocolNotificationType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolNotificationType=l}}),Tp=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(f){return f===!0||f===!1}i(t,"boolean"),e.boolean=t;function r(f){return typeof f=="string"||f instanceof String}i(r,"string"),e.string=r;function n(f){return typeof f=="number"||f instanceof Number}i(n,"number"),e.number=n;function a(f){return f instanceof Error}i(a,"error"),e.error=a;function s(f){return typeof f=="function"}i(s,"func"),e.func=s;function o(f){return Array.isArray(f)}i(o,"array"),e.array=o;function l(f){return o(f)&&f.every(p=>r(p))}i(l,"stringArray"),e.stringArray=l;function u(f,p){return Array.isArray(f)&&f.every(p)}i(u,"typedArray"),e.typedArray=u;function c(f){return f!==null&&typeof f=="object"}i(c,"objectLiteral"),e.objectLiteral=c}}),Bw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ImplementationRequest=r={}))}}),qw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.TypeDefinitionRequest=r={}))}}),Ww=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=Re(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(r||(e.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolNotificationType(a.method)})(n||(e.DidChangeWorkspaceFoldersNotification=n={}))}}),Vw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=Re(),r;(function(n){n.method="workspace/configuration",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ConfigurationRequest=r={}))}}),Hw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(n||(e.ColorPresentationRequest=n={}))}}),Yw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.FoldingRangeRefreshRequest=n={}))}}),Xw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.DeclarationRequest=r={}))}}),Jw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.SelectionRangeRequest=r={}))}}),Zw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=Wa(),r=Re(),n;(function(o){o.type=new t.ProgressType;function l(u){return u===o.type}i(l,"is"),o.is=l})(n||(e.WorkDoneProgress=n={}));var a;(function(o){o.method="window/workDoneProgress/create",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType(o.method)})(a||(e.WorkDoneProgressCreateRequest=a={}));var s;(function(o){o.method="window/workDoneProgress/cancel",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method)})(s||(e.WorkDoneProgressCancelNotification=s={}))}}),Qw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=Re(),r;(function(s){s.method="textDocument/prepareCallHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.CallHierarchyPrepareRequest=r={}));var n;(function(s){s.method="callHierarchy/incomingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.CallHierarchyIncomingCallsRequest=n={}));var a;(function(s){s.method="callHierarchy/outgoingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.CallHierarchyOutgoingCallsRequest=a={}))}}),eI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=Re(),r;(function(u){u.Relative="relative"})(r||(e.TokenFormat=r={}));var n;(function(u){u.method="textDocument/semanticTokens",u.type=new t.RegistrationType(u.method)})(n||(e.SemanticTokensRegistrationType=n={}));var a;(function(u){u.method="textDocument/semanticTokens/full",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(a||(e.SemanticTokensRequest=a={}));var s;(function(u){u.method="textDocument/semanticTokens/full/delta",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(s||(e.SemanticTokensDeltaRequest=s={}));var o;(function(u){u.method="textDocument/semanticTokens/range",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=n.method})(o||(e.SemanticTokensRangeRequest=o={}));var l;(function(u){u.method="workspace/semanticTokens/refresh",u.messageDirection=t.MessageDirection.serverToClient,u.type=new t.ProtocolRequestType0(u.method)})(l||(e.SemanticTokensRefreshRequest=l={}))}}),tI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=Re(),r;(function(n){n.method="window/showDocument",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ShowDocumentRequest=r={}))}}),rI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.LinkedEditingRangeRequest=r={}))}}),nI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=Re(),r;(function(c){c.file="file",c.folder="folder"})(r||(e.FileOperationPatternKind=r={}));var n;(function(c){c.method="workspace/willCreateFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(n||(e.WillCreateFilesRequest=n={}));var a;(function(c){c.method="workspace/didCreateFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(a||(e.DidCreateFilesNotification=a={}));var s;(function(c){c.method="workspace/willRenameFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(s||(e.WillRenameFilesRequest=s={}));var o;(function(c){c.method="workspace/didRenameFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(o||(e.DidRenameFilesNotification=o={}));var l;(function(c){c.method="workspace/didDeleteFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolNotificationType(c.method)})(l||(e.DidDeleteFilesNotification=l={}));var u;(function(c){c.method="workspace/willDeleteFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)})(u||(e.WillDeleteFilesRequest=u={}))}}),aI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=Re(),r;(function(s){s.document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global"})(r||(e.UniquenessLevel=r={}));var n;(function(s){s.$import="import",s.$export="export",s.local="local"})(n||(e.MonikerKind=n={}));var a;(function(s){s.method="textDocument/moniker",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.MonikerRequest=a={}))}}),iI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Re(),r;(function(s){s.method="textDocument/prepareTypeHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.TypeHierarchyPrepareRequest=r={}));var n;(function(s){s.method="typeHierarchy/supertypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.TypeHierarchySupertypesRequest=n={}));var a;(function(s){s.method="typeHierarchy/subtypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.TypeHierarchySubtypesRequest=a={}))}}),sI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=Re(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.InlineValueRefreshRequest=n={}))}}),oI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=Re(),r;(function(s){s.method="textDocument/inlayHint",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.InlayHintRequest=r={}));var n;(function(s){s.method="inlayHint/resolve",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.InlayHintResolveRequest=n={}));var a;(function(s){s.method="workspace/inlayHint/refresh",s.messageDirection=t.MessageDirection.serverToClient,s.type=new t.ProtocolRequestType0(s.method)})(a||(e.InlayHintRefreshRequest=a={}))}}),lI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=Wa(),r=Tp(),n=Re(),a;(function(c){function f(p){const m=p;return m&&r.boolean(m.retriggerRequest)}i(f,"is"),c.is=f})(a||(e.DiagnosticServerCancellationData=a={}));var s;(function(c){c.Full="full",c.Unchanged="unchanged"})(s||(e.DocumentDiagnosticReportKind=s={}));var o;(function(c){c.method="textDocument/diagnostic",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method),c.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var l;(function(c){c.method="workspace/diagnostic",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method),c.partialResult=new t.ProgressType})(l||(e.WorkspaceDiagnosticRequest=l={}));var u;(function(c){c.method="workspace/diagnostic/refresh",c.messageDirection=n.MessageDirection.serverToClient,c.type=new n.ProtocolRequestType0(c.method)})(u||(e.DiagnosticRefreshRequest=u={}))}}),uI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=(ws(),vp(wl)),r=Tp(),n=Re(),a;(function(g){g.Markup=1,g.Code=2;function _(I){return I===1||I===2}i(_,"is"),g.is=_})(a||(e.NotebookCellKind=a={}));var s;(function(g){function _(S,A){const k={executionOrder:S};return(A===!0||A===!1)&&(k.success=A),k}i(_,"create"),g.create=_;function I(S){const A=S;return r.objectLiteral(A)&&t.uinteger.is(A.executionOrder)&&(A.success===void 0||r.boolean(A.success))}i(I,"is"),g.is=I;function N(S,A){return S===A?!0:S==null||A===null||A===void 0?!1:S.executionOrder===A.executionOrder&&S.success===A.success}i(N,"equals"),g.equals=N})(s||(e.ExecutionSummary=s={}));var o;(function(g){function _(A,k){return{kind:A,document:k}}i(_,"create"),g.create=_;function I(A){const k=A;return r.objectLiteral(k)&&a.is(k.kind)&&t.DocumentUri.is(k.document)&&(k.metadata===void 0||r.objectLiteral(k.metadata))}i(I,"is"),g.is=I;function N(A,k){const ae=new Set;return A.document!==k.document&&ae.add("document"),A.kind!==k.kind&&ae.add("kind"),A.executionSummary!==k.executionSummary&&ae.add("executionSummary"),(A.metadata!==void 0||k.metadata!==void 0)&&!S(A.metadata,k.metadata)&&ae.add("metadata"),(A.executionSummary!==void 0||k.executionSummary!==void 0)&&!s.equals(A.executionSummary,k.executionSummary)&&ae.add("executionSummary"),ae}i(N,"diff"),g.diff=N;function S(A,k){if(A===k)return!0;if(A==null||k===null||k===void 0||typeof A!=typeof k||typeof A!="object")return!1;const ae=Array.isArray(A),Z=Array.isArray(k);if(ae!==Z)return!1;if(ae&&Z){if(A.length!==k.length)return!1;for(let H=0;H<A.length;H++)if(!S(A[H],k[H]))return!1}if(r.objectLiteral(A)&&r.objectLiteral(k)){const H=Object.keys(A),ge=Object.keys(k);if(H.length!==ge.length||(H.sort(),ge.sort(),!S(H,ge)))return!1;for(let ie=0;ie<H.length;ie++){const _e=H[ie];if(!S(A[_e],k[_e]))return!1}}return!0}i(S,"equalsMetadata")})(o||(e.NotebookCell=o={}));var l;(function(g){function _(N,S,A,k){return{uri:N,notebookType:S,version:A,cells:k}}i(_,"create"),g.create=_;function I(N){const S=N;return r.objectLiteral(S)&&r.string(S.uri)&&t.integer.is(S.version)&&r.typedArray(S.cells,o.is)}i(I,"is"),g.is=I})(l||(e.NotebookDocument=l={}));var u;(function(g){g.method="notebookDocument/sync",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.RegistrationType(g.method)})(u||(e.NotebookDocumentSyncRegistrationType=u={}));var c;(function(g){g.method="notebookDocument/didOpen",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(c||(e.DidOpenNotebookDocumentNotification=c={}));var f;(function(g){function _(N){const S=N;return r.objectLiteral(S)&&t.uinteger.is(S.start)&&t.uinteger.is(S.deleteCount)&&(S.cells===void 0||r.typedArray(S.cells,o.is))}i(_,"is"),g.is=_;function I(N,S,A){const k={start:N,deleteCount:S};return A!==void 0&&(k.cells=A),k}i(I,"create"),g.create=I})(f||(e.NotebookCellArrayChange=f={}));var p;(function(g){g.method="notebookDocument/didChange",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(p||(e.DidChangeNotebookDocumentNotification=p={}));var m;(function(g){g.method="notebookDocument/didSave",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(m||(e.DidSaveNotebookDocumentNotification=m={}));var T;(function(g){g.method="notebookDocument/didClose",g.messageDirection=n.MessageDirection.clientToServer,g.type=new n.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(T||(e.DidCloseNotebookDocumentNotification=T={}))}}),cI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var t=Re(),r;(function(n){n.method="textDocument/inlineCompletion",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.InlineCompletionRequest=r={}))}}),fI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Re(),r=(ws(),vp(wl)),n=Tp(),a=Bw();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:i(function(){return a.ImplementationRequest},"get")});var s=qw();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:i(function(){return s.TypeDefinitionRequest},"get")});var o=Ww();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:i(function(){return o.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:i(function(){return o.DidChangeWorkspaceFoldersNotification},"get")});var l=Vw();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:i(function(){return l.ConfigurationRequest},"get")});var u=Hw();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:i(function(){return u.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:i(function(){return u.ColorPresentationRequest},"get")});var c=Yw();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:i(function(){return c.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:i(function(){return c.FoldingRangeRefreshRequest},"get")});var f=Xw();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:i(function(){return f.DeclarationRequest},"get")});var p=Jw();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:i(function(){return p.SelectionRangeRequest},"get")});var m=Zw();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:i(function(){return m.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:i(function(){return m.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:i(function(){return m.WorkDoneProgressCancelNotification},"get")});var T=Qw();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:i(function(){return T.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:i(function(){return T.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:i(function(){return T.CallHierarchyPrepareRequest},"get")});var g=eI();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:i(function(){return g.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:i(function(){return g.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:i(function(){return g.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:i(function(){return g.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:i(function(){return g.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:i(function(){return g.SemanticTokensRegistrationType},"get")});var _=tI();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:i(function(){return _.ShowDocumentRequest},"get")});var I=rI();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:i(function(){return I.LinkedEditingRangeRequest},"get")});var N=nI();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:i(function(){return N.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:i(function(){return N.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:i(function(){return N.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:i(function(){return N.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:i(function(){return N.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:i(function(){return N.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:i(function(){return N.WillDeleteFilesRequest},"get")});var S=aI();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:i(function(){return S.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:i(function(){return S.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:i(function(){return S.MonikerRequest},"get")});var A=iI();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchySupertypesRequest},"get")});var k=sI();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:i(function(){return k.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:i(function(){return k.InlineValueRefreshRequest},"get")});var ae=oI();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:i(function(){return ae.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:i(function(){return ae.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:i(function(){return ae.InlayHintRefreshRequest},"get")});var Z=lI();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:i(function(){return Z.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:i(function(){return Z.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:i(function(){return Z.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:i(function(){return Z.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:i(function(){return Z.DiagnosticRefreshRequest},"get")});var H=uI();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:i(function(){return H.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:i(function(){return H.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:i(function(){return H.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:i(function(){return H.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:i(function(){return H.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:i(function(){return H.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:i(function(){return H.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:i(function(){return H.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:i(function(){return H.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:i(function(){return H.DidCloseNotebookDocumentNotification},"get")});var ge=cI();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:i(function(){return ge.InlineCompletionRequest},"get")});var ie;(function(d){function re(ve){const W=ve;return n.string(W)||n.string(W.language)||n.string(W.scheme)||n.string(W.pattern)}i(re,"is"),d.is=re})(ie||(e.TextDocumentFilter=ie={}));var _e;(function(d){function re(ve){const W=ve;return n.objectLiteral(W)&&(n.string(W.notebookType)||n.string(W.scheme)||n.string(W.pattern))}i(re,"is"),d.is=re})(_e||(e.NotebookDocumentFilter=_e={}));var P;(function(d){function re(ve){const W=ve;return n.objectLiteral(W)&&(n.string(W.notebook)||_e.is(W.notebook))&&(W.language===void 0||n.string(W.language))}i(re,"is"),d.is=re})(P||(e.NotebookCellTextDocumentFilter=P={}));var y;(function(d){function re(ve){if(!Array.isArray(ve))return!1;for(let W of ve)if(!n.string(W)&&!ie.is(W)&&!P.is(W))return!1;return!0}i(re,"is"),d.is=re})(y||(e.DocumentSelector=y={}));var v;(function(d){d.method="client/registerCapability",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType(d.method)})(v||(e.RegistrationRequest=v={}));var C;(function(d){d.method="client/unregisterCapability",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType(d.method)})(C||(e.UnregistrationRequest=C={}));var $;(function(d){d.Create="create",d.Rename="rename",d.Delete="delete"})($||(e.ResourceOperationKind=$={}));var R;(function(d){d.Abort="abort",d.Transactional="transactional",d.TextOnlyTransactional="textOnlyTransactional",d.Undo="undo"})(R||(e.FailureHandlingKind=R={}));var b;(function(d){d.UTF8="utf-8",d.UTF16="utf-16",d.UTF32="utf-32"})(b||(e.PositionEncodingKind=b={}));var O;(function(d){function re(ve){const W=ve;return W&&n.string(W.id)&&W.id.length>0}i(re,"hasId"),d.hasId=re})(O||(e.StaticRegistrationOptions=O={}));var M;(function(d){function re(ve){const W=ve;return W&&(W.documentSelector===null||y.is(W.documentSelector))}i(re,"is"),d.is=re})(M||(e.TextDocumentRegistrationOptions=M={}));var D;(function(d){function re(W){const h=W;return n.objectLiteral(h)&&(h.workDoneProgress===void 0||n.boolean(h.workDoneProgress))}i(re,"is"),d.is=re;function ve(W){const h=W;return h&&n.boolean(h.workDoneProgress)}i(ve,"hasWorkDoneProgress"),d.hasWorkDoneProgress=ve})(D||(e.WorkDoneProgressOptions=D={}));var x;(function(d){d.method="initialize",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(x||(e.InitializeRequest=x={}));var B;(function(d){d.unknownProtocolVersion=1})(B||(e.InitializeErrorCodes=B={}));var Y;(function(d){d.method="initialized",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Y||(e.InitializedNotification=Y={}));var q;(function(d){d.method="shutdown",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType0(d.method)})(q||(e.ShutdownRequest=q={}));var Ne;(function(d){d.method="exit",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType0(d.method)})(Ne||(e.ExitNotification=Ne={}));var se;(function(d){d.method="workspace/didChangeConfiguration",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(se||(e.DidChangeConfigurationNotification=se={}));var Oe;(function(d){d.Error=1,d.Warning=2,d.Info=3,d.Log=4,d.Debug=5})(Oe||(e.MessageType=Oe={}));var Le;(function(d){d.method="window/showMessage",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(Le||(e.ShowMessageNotification=Le={}));var Pe;(function(d){d.method="window/showMessageRequest",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType(d.method)})(Pe||(e.ShowMessageRequest=Pe={}));var Ve;(function(d){d.method="window/logMessage",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(Ve||(e.LogMessageNotification=Ve={}));var We;(function(d){d.method="telemetry/event",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(We||(e.TelemetryEventNotification=We={}));var te;(function(d){d.None=0,d.Full=1,d.Incremental=2})(te||(e.TextDocumentSyncKind=te={}));var Mt;(function(d){d.method="textDocument/didOpen",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Mt||(e.DidOpenTextDocumentNotification=Mt={}));var Ae;(function(d){function re(W){let h=W;return h!=null&&typeof h.text=="string"&&h.range!==void 0&&(h.rangeLength===void 0||typeof h.rangeLength=="number")}i(re,"isIncremental"),d.isIncremental=re;function ve(W){let h=W;return h!=null&&typeof h.text=="string"&&h.range===void 0&&h.rangeLength===void 0}i(ve,"isFull"),d.isFull=ve})(Ae||(e.TextDocumentContentChangeEvent=Ae={}));var bt;(function(d){d.method="textDocument/didChange",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(bt||(e.DidChangeTextDocumentNotification=bt={}));var Vn;(function(d){d.method="textDocument/didClose",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Vn||(e.DidCloseTextDocumentNotification=Vn={}));var ti;(function(d){d.method="textDocument/didSave",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(ti||(e.DidSaveTextDocumentNotification=ti={}));var ri;(function(d){d.Manual=1,d.AfterDelay=2,d.FocusOut=3})(ri||(e.TextDocumentSaveReason=ri={}));var ni;(function(d){d.method="textDocument/willSave",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(ni||(e.WillSaveTextDocumentNotification=ni={}));var ai;(function(d){d.method="textDocument/willSaveWaitUntil",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ai||(e.WillSaveTextDocumentWaitUntilRequest=ai={}));var Ct;(function(d){d.method="workspace/didChangeWatchedFiles",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolNotificationType(d.method)})(Ct||(e.DidChangeWatchedFilesNotification=Ct={}));var Hn;(function(d){d.Created=1,d.Changed=2,d.Deleted=3})(Hn||(e.FileChangeType=Hn={}));var ii;(function(d){function re(ve){const W=ve;return n.objectLiteral(W)&&(r.URI.is(W.baseUri)||r.WorkspaceFolder.is(W.baseUri))&&n.string(W.pattern)}i(re,"is"),d.is=re})(ii||(e.RelativePattern=ii={}));var si;(function(d){d.Create=1,d.Change=2,d.Delete=4})(si||(e.WatchKind=si={}));var oi;(function(d){d.method="textDocument/publishDiagnostics",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolNotificationType(d.method)})(oi||(e.PublishDiagnosticsNotification=oi={}));var li;(function(d){d.Invoked=1,d.TriggerCharacter=2,d.TriggerForIncompleteCompletions=3})(li||(e.CompletionTriggerKind=li={}));var Yn;(function(d){d.method="textDocument/completion",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Yn||(e.CompletionRequest=Yn={}));var Xn;(function(d){d.method="completionItem/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Xn||(e.CompletionResolveRequest=Xn={}));var xt;(function(d){d.method="textDocument/hover",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(xt||(e.HoverRequest=xt={}));var Jn;(function(d){d.Invoked=1,d.TriggerCharacter=2,d.ContentChange=3})(Jn||(e.SignatureHelpTriggerKind=Jn={}));var ui;(function(d){d.method="textDocument/signatureHelp",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ui||(e.SignatureHelpRequest=ui={}));var ci;(function(d){d.method="textDocument/definition",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(ci||(e.DefinitionRequest=ci={}));var Zn;(function(d){d.method="textDocument/references",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Zn||(e.ReferencesRequest=Zn={}));var Qn;(function(d){d.method="textDocument/documentHighlight",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Qn||(e.DocumentHighlightRequest=Qn={}));var fi;(function(d){d.method="textDocument/documentSymbol",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(fi||(e.DocumentSymbolRequest=fi={}));var Ys;(function(d){d.method="textDocument/codeAction",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ys||(e.CodeActionRequest=Ys={}));var pi;(function(d){d.method="codeAction/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(pi||(e.CodeActionResolveRequest=pi={}));var di;(function(d){d.method="workspace/symbol",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(di||(e.WorkspaceSymbolRequest=di={}));var mi;(function(d){d.method="workspaceSymbol/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(mi||(e.WorkspaceSymbolResolveRequest=mi={}));var hi;(function(d){d.method="textDocument/codeLens",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(hi||(e.CodeLensRequest=hi={}));var gt;(function(d){d.method="codeLens/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(gt||(e.CodeLensResolveRequest=gt={}));var yi;(function(d){d.method="workspace/codeLens/refresh",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType0(d.method)})(yi||(e.CodeLensRefreshRequest=yi={}));var gi;(function(d){d.method="textDocument/documentLink",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(gi||(e.DocumentLinkRequest=gi={}));var Cr;(function(d){d.method="documentLink/resolve",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Cr||(e.DocumentLinkResolveRequest=Cr={}));var vi;(function(d){d.method="textDocument/formatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(vi||(e.DocumentFormattingRequest=vi={}));var Ur;(function(d){d.method="textDocument/rangeFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ur||(e.DocumentRangeFormattingRequest=Ur={}));var Ti;(function(d){d.method="textDocument/rangesFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ti||(e.DocumentRangesFormattingRequest=Ti={}));var Gt;(function(d){d.method="textDocument/onTypeFormatting",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Gt||(e.DocumentOnTypeFormattingRequest=Gt={}));var tr;(function(d){d.Identifier=1})(tr||(e.PrepareSupportDefaultBehavior=tr={}));var $i;(function(d){d.method="textDocument/rename",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})($i||(e.RenameRequest=$i={}));var Ri;(function(d){d.method="textDocument/prepareRename",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(Ri||(e.PrepareRenameRequest=Ri={}));var rr;(function(d){d.method="workspace/executeCommand",d.messageDirection=t.MessageDirection.clientToServer,d.type=new t.ProtocolRequestType(d.method)})(rr||(e.ExecuteCommandRequest=rr={}));var ea;(function(d){d.method="workspace/applyEdit",d.messageDirection=t.MessageDirection.serverToClient,d.type=new t.ProtocolRequestType("workspace/applyEdit")})(ea||(e.ApplyWorkspaceEditRequest=ea={}))}}),pI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=Wa();function r(n,a,s,o){return t.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,t.createMessageConnection)(n,a,s,o)}i(r,"createProtocolConnection"),e.createProtocolConnection=r}}),dI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(s,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:i(function(){return o[l]},"get")}),Object.defineProperty(s,u,c)}):(function(s,o,l,u){u===void 0&&(u=l),s[u]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,r(Wa(),e),r((ws(),vp(wl)),e),r(Re(),e),r(fI(),e);var n=pI();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:i(function(){return n.createProtocolConnection},"get")});var a;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(a||(e.LSPErrorCodes=a={}))}}),mI=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(s,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:i(function(){return o[l]},"get")}),Object.defineProperty(s,u,c)}):(function(s,o,l,u){u===void 0&&(u=l),s[u]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=nh();r(nh(),e),r(dI(),e);function a(s,o,l,u){return(0,n.createMessageConnection)(s,o,l,u)}i(a,"createProtocolConnection"),e.createProtocolConnection=a}}),Dg={};xr(Dg,{AbstractAstReflection:()=>Ap,AbstractCstNode:()=>bm,AbstractLangiumParser:()=>_m,AbstractParserErrorMessageProvider:()=>ES,AbstractThreadedAsyncParser:()=>Hx,AstUtils:()=>Ep,BiMap:()=>El,Cancellation:()=>fe,CompositeCstNodeImpl:()=>Cu,ContextCache:()=>ku,CstNodeBuilder:()=>TS,CstUtils:()=>$p,DEFAULT_TOKENIZE_OPTIONS:()=>Bm,DONE_RESULT:()=>Ye,DatatypeSymbol:()=>Tl,DefaultAstNodeDescriptionProvider:()=>QS,DefaultAstNodeLocator:()=>tw,DefaultAsyncParser:()=>Tw,DefaultCommentProvider:()=>vw,DefaultConfigurationProvider:()=>rw,DefaultDocumentBuilder:()=>nw,DefaultDocumentValidator:()=>ZS,DefaultHydrator:()=>Rw,DefaultIndexManager:()=>aw,DefaultJsonSerializer:()=>HS,DefaultLangiumDocumentFactory:()=>FS,DefaultLangiumDocuments:()=>zS,DefaultLangiumProfiler:()=>Qx,DefaultLexer:()=>qm,DefaultLexerErrorMessageProvider:()=>sw,DefaultLinker:()=>jS,DefaultNameProvider:()=>US,DefaultReferenceDescriptionProvider:()=>ew,DefaultReferences:()=>KS,DefaultScopeComputation:()=>BS,DefaultScopeProvider:()=>VS,DefaultServiceRegistry:()=>YS,DefaultTokenBuilder:()=>wu,DefaultValueConverter:()=>Om,DefaultWorkspaceLock:()=>$w,DefaultWorkspaceManager:()=>iw,Deferred:()=>Tr,Disposable:()=>Rn,DisposableCache:()=>Pu,DocumentCache:()=>WS,DocumentState:()=>X,DocumentValidator:()=>vt,EMPTY_SCOPE:()=>Bx,EMPTY_STREAM:()=>La,EmptyFileSystem:()=>th,EmptyFileSystemProvider:()=>bw,ErrorWithLocation:()=>Gl,GrammarAST:()=>Gg,GrammarUtils:()=>Qp,IndentationAwareLexer:()=>Xx,IndentationAwareTokenBuilder:()=>Ew,JSDocDocumentationProvider:()=>gw,LangiumCompletionParser:()=>bS,LangiumParser:()=>AS,LangiumParserErrorMessageProvider:()=>Sm,LeafCstNodeImpl:()=>vl,LexingMode:()=>Tn,MapScope:()=>Kx,Module:()=>Jf,MultiMap:()=>$r,MultiMapScope:()=>qS,OperationCancelled:()=>Vt,ParserWorker:()=>Yx,ProfilingTask:()=>_w,Reduction:()=>cs,RefResolving:()=>Qr,RegExpUtils:()=>td,RootCstNodeImpl:()=>Cm,SimpleCache:()=>Fm,StreamImpl:()=>Wt,StreamScope:()=>Vf,TextDocument:()=>Rl,TreeStreamImpl:()=>Da,URI:()=>ft,UriTrie:()=>xm,UriUtils:()=>Je,VALIDATE_EACH_NODE:()=>JS,ValidationCategory:()=>bl,ValidationRegistry:()=>XS,ValueConverter:()=>Bt,WorkspaceCache:()=>zm,assertCondition:()=>ed,assertUnreachable:()=>Gr,createCompletionParser:()=>Nm,createDefaultCoreModule:()=>xu,createDefaultSharedCoreModule:()=>Gu,createGrammarConfig:()=>Td,createLangiumParser:()=>Pm,createParser:()=>_u,delayNextTick:()=>Iu,diagnosticData:()=>vn,eagerLoad:()=>Zm,getDiagnosticRange:()=>Um,indentationBuilderDefaultOptions:()=>Qf,inject:()=>_s,interruptAndCheck:()=>Fe,isAstNode:()=>ke,isAstNodeDescription:()=>Rp,isAstNodeWithComment:()=>jm,isCompositeCstNode:()=>fr,isIMultiModeLexerDefinition:()=>Du,isJSDoc:()=>Vm,isLeafCstNode:()=>Sn,isLinkingError:()=>nn,isMultiReference:()=>Ht,isNamed:()=>Gm,isOperationCancelled:()=>Wn,isReference:()=>Xe,isRootCstNode:()=>Nl,isTokenTypeArray:()=>Lu,isTokenTypeDictionary:()=>Cl,loadGrammarFromJson:()=>ze,parseJSDoc:()=>Wm,prepareLangiumParser:()=>km,setInterruptionPeriod:()=>Lm,startCancelableOperation:()=>Nu,stream:()=>le,toDiagnosticData:()=>Km,toDiagnosticSeverity:()=>ls});var $p={};xr($p,{DefaultNameRegexp:()=>Hp,RangeComparison:()=>qt,compareRange:()=>Wp,findCommentNode:()=>Yp,findDeclarationNodeAtOffset:()=>nv,findLeafNodeAtOffset:()=>xl,findLeafNodeBeforeOffset:()=>Xp,flattenCst:()=>rv,getDatatypeNode:()=>tv,getInteriorNodes:()=>sv,getNextNode:()=>av,getPreviousNode:()=>Zp,getStartlineNode:()=>iv,inRange:()=>Vp,isChildNode:()=>qp,isCommentNode:()=>rl,streamCst:()=>Fa,toDocumentSegment:()=>za,tokenToRange:()=>fs});function ke(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}i(ke,"isAstNode");function Xe(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"ref"in e}i(Xe,"isReference");function Ht(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"items"in e}i(Ht,"isMultiReference");function Rp(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}i(Rp,"isAstNodeDescription");function nn(e){return typeof e=="object"&&e!==null&&typeof e.info=="object"&&typeof e.message=="string"}i(nn,"isLinkingError");var Ap=class{static{i(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const t=this.types[e.container.$type];if(!t)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=t.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return ke(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const n=r[t];if(n!==void 0)return n;{const a=this.types[e],s=a?a.superTypes.some(o=>this.isSubtype(o,t)):!1;return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),n=[];for(const a of r)this.isSubtype(a,e)&&n.push(a);return this.allSubtypes[e]=n,n}}};function fr(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}i(fr,"isCompositeCstNode");function Sn(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}i(Sn,"isLeafCstNode");function Nl(e){return fr(e)&&typeof e.fullText=="string"}i(Nl,"isRootCstNode");var Wt=class sr{static{i(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){const t={state:this.startFn(),next:i(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const t=this.iterator();let r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){const t=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){const n=this.map(a=>[t?t(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(t){return new sr(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Ye})}join(t=","){const r=this.iterator();let n="",a,s=!1;do a=r.next(),a.done||(s&&(n+=t),n+=Mg(a.value)),s=!0;while(!a.done);return n}indexOf(t,r=0){const n=this.iterator();let a=0,s=n.next();for(;!s.done;){if(a>=r&&s.value===t)return a;s=n.next(),a++}return-1}every(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){const r=this.iterator();let n=0,a=r.next();for(;!a.done;)t(a.value,n),a=r.next(),n++}map(t){return new sr(this.startFn,r=>{const{done:n,value:a}=this.nextFn(r);return n?Ye:{done:!1,value:t(a)}})}filter(t){return new sr(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return Ye})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){const n=this.iterator();let a=r,s=n.next();for(;!s.done;)a===void 0?a=s.value:a=t(a,s.value),s=n.next();return a}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){const a=t.next();if(a.done)return n;const s=this.recursiveReduce(t,r,n);return s===void 0?a.value:r(s,a.value)}find(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){const r=this.iterator();let n=0,a=r.next();for(;!a.done;){if(t(a.value))return n;a=r.next(),n++}return-1}includes(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new sr(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const s=r.iterator.next();if(s.done)r.iterator=void 0;else return s}const{done:n,value:a}=this.nextFn(r.this);if(!n){const s=t(a);if(us(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(r.iterator);return Ye})}flat(t){if(t===void 0&&(t=1),t<=0)return this;const r=t>1?this.flat(t-1):this;return new sr(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}const{done:a,value:s}=r.nextFn(n.this);if(!a)if(us(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(n.iterator);return Ye})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(t=1){return new sr(()=>{const r=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(t){return new sr(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?Ye:this.nextFn(r.state)))}distinct(t){return new sr(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const a=t?t(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return Ye})}exclude(t,r){const n=new Set;for(const a of t){const s=r?r(a):a;n.add(s)}return this.filter(a=>{const s=r?r(a):a;return!n.has(s)})}};function Mg(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}i(Mg,"toString");function us(e){return!!e&&typeof e[Symbol.iterator]=="function"}i(us,"isIterable");var La=new Wt(()=>{},()=>Ye),Ye=Object.freeze({done:!0,value:void 0});function le(...e){if(e.length===1){const t=e[0];if(t instanceof Wt)return t;if(us(t))return new Wt(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Wt(()=>({index:0}),r=>r.index<t.length?{done:!1,value:t[r.index++]}:Ye)}return e.length>1?new Wt(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){const r=e[t.collIndex++];us(r)?t.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return Ye}):La}i(le,"stream");var Da=class extends Wt{static{i(this,"TreeStreamImpl")}constructor(e,t,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),n=>{for(n.pruned&&(n.iterators.pop(),n.pruned=!1);n.iterators.length>0;){const a=n.iterators[n.iterators.length-1].next();if(a.done)n.iterators.pop();else return n.iterators.push(t(a.value)[Symbol.iterator]()),a}return Ye})}iterator(){const e={state:this.startFn(),next:i(()=>this.nextFn(e.state),"next"),prune:i(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},cs;(function(e){function t(s){return s.reduce((o,l)=>o+l,0)}i(t,"sum"),e.sum=t;function r(s){return s.reduce((o,l)=>o*l,0)}i(r,"product"),e.product=r;function n(s){return s.reduce((o,l)=>Math.min(o,l))}i(n,"min"),e.min=n;function a(s){return s.reduce((o,l)=>Math.max(o,l))}i(a,"max"),e.max=a})(cs||(cs={}));var Ep={};xr(Ep,{assignMandatoryProperties:()=>bp,copyAstNode:()=>Uo,findRootNode:()=>Na,getContainerOfType:()=>wn,getDocument:()=>It,getReferenceNodes:()=>zo,hasContainerOfType:()=>xg,linkContentToContainer:()=>Ma,streamAllContents:()=>Rr,streamAst:()=>Nt,streamContents:()=>Ns,streamReferences:()=>xa});function Ma(e,t={}){for(const[r,n]of Object.entries(e))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,s)=>{ke(a)&&(a.$container=e,a.$containerProperty=r,a.$containerIndex=s,t.deep&&Ma(a,t))}):ke(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&Ma(n,t)))}i(Ma,"linkContentToContainer");function wn(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}i(wn,"getContainerOfType");function xg(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}i(xg,"hasContainerOfType");function It(e){const t=Na(e).$document;if(!t)throw new Error("AST node has no document.");return t}i(It,"getDocument");function Na(e){for(;e.$container;)e=e.$container;return e}i(Na,"findRootNode");function zo(e){return Xe(e)?e.ref?[e.ref]:[]:Ht(e)?e.items.map(t=>t.ref):[]}i(zo,"getReferenceNodes");function Ns(e,t){if(!e)throw new Error("Node must be an AstNode.");const r=t?.range;return new Wt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){const a=n.keys[n.keyIndex];if(!a.startsWith("$")){const s=e[a];if(ke(s)){if(n.keyIndex++,jo(s,r))return{done:!1,value:s}}else if(Array.isArray(s)){for(;n.arrayIndex<s.length;){const o=s[n.arrayIndex++];if(ke(o)&&jo(o,r))return{done:!1,value:o}}n.arrayIndex=0}}n.keyIndex++}return Ye})}i(Ns,"streamContents");function Rr(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new Da(e,r=>Ns(r,t))}i(Rr,"streamAllContents");function Nt(e,t){if(e){if(t?.range&&!jo(e,t.range))return new Da(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new Da(e,r=>Ns(r,t),{includeRoot:!0})}i(Nt,"streamAst");function jo(e,t){if(!t)return!0;const r=e.$cstNode?.range;return r?Vp(r,t):!1}i(jo,"isAstNodeInRange");function xa(e){return new Wt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const r=t.keys[t.keyIndex];if(!r.startsWith("$")){const n=e[r];if(Xe(n)||Ht(n))return t.keyIndex++,{done:!1,value:{reference:n,container:e,property:r}};if(Array.isArray(n)){for(;t.arrayIndex<n.length;){const a=t.arrayIndex++,s=n[a];if(Xe(s)||Ht(n))return{done:!1,value:{reference:s,container:e,property:r,index:a}}}t.arrayIndex=0}}t.keyIndex++}return Ye})}i(xa,"streamReferences");function bp(e,t){const r=e.getTypeMetaData(t.$type),n=t;for(const a of Object.values(r.properties))a.defaultValue!==void 0&&n[a.name]===void 0&&(n[a.name]=Cp(a.defaultValue))}i(bp,"assignMandatoryProperties");function Cp(e){return Array.isArray(e)?[...e.map(Cp)]:e}i(Cp,"copyDefaultValue");function Uo(e,t,r){const n={$type:e.$type};r&&(r.set(e,n),r.set(n,e));for(const[a,s]of Object.entries(e))if(!a.startsWith("$"))if(ke(s))n[a]=Uo(s,t,r);else if(Xe(s))n[a]=t(n,a,s.$refNode,s.$refText,s);else if(Array.isArray(s)){const o=[];for(const l of s)ke(l)?o.push(Uo(l,t,r)):Xe(l)?o.push(t(n,a,l.$refNode,l.$refText,l)):o.push(l);n[a]=o}else n[a]=s;return Ma(n,{deep:!0}),n}i(Uo,"copyAstNode");var Gg={};xr(Gg,{AbstractElement:()=>at,AbstractParserRule:()=>Hi,AbstractRule:()=>Aa,AbstractType:()=>ct,Action:()=>Sr,Alternatives:()=>Yi,ArrayLiteral:()=>Ko,ArrayType:()=>Bo,Assignment:()=>wr,BooleanLiteral:()=>qo,CharacterRange:()=>Ir,Condition:()=>Nr,Conjunction:()=>Xi,CrossReference:()=>Pr,Disjunction:()=>Ji,EndOfFile:()=>Wo,Grammar:()=>lr,GrammarImport:()=>Vo,Group:()=>an,InferredType:()=>Ho,InfixRule:()=>Kt,InfixRuleOperatorList:()=>Zi,InfixRuleOperators:()=>Yo,Interface:()=>Ea,Keyword:()=>ba,LangiumGrammarAstReflection:()=>Bp,LangiumGrammarTerminals:()=>hI,NamedArgument:()=>Ca,NegatedToken:()=>sn,Negation:()=>Xo,NumberLiteral:()=>Jo,Parameter:()=>_a,ParameterReference:()=>Zo,ParserRule:()=>_t,ReferenceType:()=>Qi,RegexToken:()=>on,ReturnType:()=>Qo,RuleCall:()=>ln,SimpleType:()=>Sa,StringLiteral:()=>el,TerminalAlternatives:()=>un,TerminalElement:()=>it,TerminalGroup:()=>cn,TerminalRule:()=>ur,TerminalRuleCall:()=>fn,Type:()=>es,TypeAttribute:()=>pn,TypeDefinition:()=>dn,UnionType:()=>tl,UnorderedGroup:()=>ts,UntilToken:()=>mn,ValueLiteral:()=>hn,Wildcard:()=>wa,isAbstractElement:()=>Pl,isAbstractParserRule:()=>In,isAbstractRule:()=>Fg,isAbstractType:()=>zg,isAction:()=>kr,isAlternatives:()=>kl,isArrayLiteral:()=>jg,isArrayType:()=>_p,isAssignment:()=>pr,isBooleanLiteral:()=>Sp,isCharacterRange:()=>wp,isCondition:()=>Ug,isConjunction:()=>Ip,isCrossReference:()=>Nn,isDisjunction:()=>Np,isEndOfFile:()=>Pp,isGrammar:()=>Kg,isGrammarImport:()=>Bg,isGroup:()=>Pn,isInferredType:()=>Ps,isInfixRule:()=>Ga,isInfixRuleOperatorList:()=>qg,isInfixRuleOperators:()=>Wg,isInterface:()=>kp,isKeyword:()=>dr,isNamedArgument:()=>Vg,isNegatedToken:()=>Op,isNegation:()=>Lp,isNumberLiteral:()=>Hg,isParameter:()=>Yg,isParameterReference:()=>Dp,isParserRule:()=>Qe,isReferenceType:()=>Mp,isRegexToken:()=>xp,isReturnType:()=>Gp,isRuleCall:()=>mr,isSimpleType:()=>Ol,isStringLiteral:()=>Xg,isTerminalAlternatives:()=>Fp,isTerminalElement:()=>Jg,isTerminalGroup:()=>zp,isTerminalRule:()=>At,isTerminalRuleCall:()=>Ll,isType:()=>Dl,isTypeAttribute:()=>Zg,isTypeDefinition:()=>Qg,isUnionType:()=>jp,isUnorderedGroup:()=>Ml,isUntilToken:()=>Up,isValueLiteral:()=>ev,isWildcard:()=>Kp,reflection:()=>z});var hI={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},at={$type:"AbstractElement",cardinality:"cardinality"};function Pl(e){return z.isInstance(e,at.$type)}i(Pl,"isAbstractElement");var Hi={$type:"AbstractParserRule"};function In(e){return z.isInstance(e,Hi.$type)}i(In,"isAbstractParserRule");var Aa={$type:"AbstractRule"};function Fg(e){return z.isInstance(e,Aa.$type)}i(Fg,"isAbstractRule");var ct={$type:"AbstractType"};function zg(e){return z.isInstance(e,ct.$type)}i(zg,"isAbstractType");var Sr={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function kr(e){return z.isInstance(e,Sr.$type)}i(kr,"isAction");var Yi={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function kl(e){return z.isInstance(e,Yi.$type)}i(kl,"isAlternatives");var Ko={$type:"ArrayLiteral",elements:"elements"};function jg(e){return z.isInstance(e,Ko.$type)}i(jg,"isArrayLiteral");var Bo={$type:"ArrayType",elementType:"elementType"};function _p(e){return z.isInstance(e,Bo.$type)}i(_p,"isArrayType");var wr={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function pr(e){return z.isInstance(e,wr.$type)}i(pr,"isAssignment");var qo={$type:"BooleanLiteral",true:"true"};function Sp(e){return z.isInstance(e,qo.$type)}i(Sp,"isBooleanLiteral");var Ir={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function wp(e){return z.isInstance(e,Ir.$type)}i(wp,"isCharacterRange");var Nr={$type:"Condition"};function Ug(e){return z.isInstance(e,Nr.$type)}i(Ug,"isCondition");var Xi={$type:"Conjunction",left:"left",right:"right"};function Ip(e){return z.isInstance(e,Xi.$type)}i(Ip,"isConjunction");var Pr={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Nn(e){return z.isInstance(e,Pr.$type)}i(Nn,"isCrossReference");var Ji={$type:"Disjunction",left:"left",right:"right"};function Np(e){return z.isInstance(e,Ji.$type)}i(Np,"isDisjunction");var Wo={$type:"EndOfFile",cardinality:"cardinality"};function Pp(e){return z.isInstance(e,Wo.$type)}i(Pp,"isEndOfFile");var lr={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function Kg(e){return z.isInstance(e,lr.$type)}i(Kg,"isGrammar");var Vo={$type:"GrammarImport",path:"path"};function Bg(e){return z.isInstance(e,Vo.$type)}i(Bg,"isGrammarImport");var an={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Pn(e){return z.isInstance(e,an.$type)}i(Pn,"isGroup");var Ho={$type:"InferredType",name:"name"};function Ps(e){return z.isInstance(e,Ho.$type)}i(Ps,"isInferredType");var Kt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ga(e){return z.isInstance(e,Kt.$type)}i(Ga,"isInfixRule");var Zi={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function qg(e){return z.isInstance(e,Zi.$type)}i(qg,"isInfixRuleOperatorList");var Yo={$type:"InfixRuleOperators",precedences:"precedences"};function Wg(e){return z.isInstance(e,Yo.$type)}i(Wg,"isInfixRuleOperators");var Ea={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function kp(e){return z.isInstance(e,Ea.$type)}i(kp,"isInterface");var ba={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function dr(e){return z.isInstance(e,ba.$type)}i(dr,"isKeyword");var Ca={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function Vg(e){return z.isInstance(e,Ca.$type)}i(Vg,"isNamedArgument");var sn={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Op(e){return z.isInstance(e,sn.$type)}i(Op,"isNegatedToken");var Xo={$type:"Negation",value:"value"};function Lp(e){return z.isInstance(e,Xo.$type)}i(Lp,"isNegation");var Jo={$type:"NumberLiteral",value:"value"};function Hg(e){return z.isInstance(e,Jo.$type)}i(Hg,"isNumberLiteral");var _a={$type:"Parameter",name:"name"};function Yg(e){return z.isInstance(e,_a.$type)}i(Yg,"isParameter");var Zo={$type:"ParameterReference",parameter:"parameter"};function Dp(e){return z.isInstance(e,Zo.$type)}i(Dp,"isParameterReference");var _t={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Qe(e){return z.isInstance(e,_t.$type)}i(Qe,"isParserRule");var Qi={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function Mp(e){return z.isInstance(e,Qi.$type)}i(Mp,"isReferenceType");var on={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function xp(e){return z.isInstance(e,on.$type)}i(xp,"isRegexToken");var Qo={$type:"ReturnType",name:"name"};function Gp(e){return z.isInstance(e,Qo.$type)}i(Gp,"isReturnType");var ln={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function mr(e){return z.isInstance(e,ln.$type)}i(mr,"isRuleCall");var Sa={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function Ol(e){return z.isInstance(e,Sa.$type)}i(Ol,"isSimpleType");var el={$type:"StringLiteral",value:"value"};function Xg(e){return z.isInstance(e,el.$type)}i(Xg,"isStringLiteral");var un={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Fp(e){return z.isInstance(e,un.$type)}i(Fp,"isTerminalAlternatives");var it={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Jg(e){return z.isInstance(e,it.$type)}i(Jg,"isTerminalElement");var cn={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function zp(e){return z.isInstance(e,cn.$type)}i(zp,"isTerminalGroup");var ur={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function At(e){return z.isInstance(e,ur.$type)}i(At,"isTerminalRule");var fn={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Ll(e){return z.isInstance(e,fn.$type)}i(Ll,"isTerminalRuleCall");var es={$type:"Type",name:"name",type:"type"};function Dl(e){return z.isInstance(e,es.$type)}i(Dl,"isType");var pn={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function Zg(e){return z.isInstance(e,pn.$type)}i(Zg,"isTypeAttribute");var dn={$type:"TypeDefinition"};function Qg(e){return z.isInstance(e,dn.$type)}i(Qg,"isTypeDefinition");var tl={$type:"UnionType",types:"types"};function jp(e){return z.isInstance(e,tl.$type)}i(jp,"isUnionType");var ts={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Ml(e){return z.isInstance(e,ts.$type)}i(Ml,"isUnorderedGroup");var mn={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Up(e){return z.isInstance(e,mn.$type)}i(Up,"isUntilToken");var hn={$type:"ValueLiteral"};function ev(e){return z.isInstance(e,hn.$type)}i(ev,"isValueLiteral");var wa={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Kp(e){return z.isInstance(e,wa.$type)}i(Kp,"isWildcard");var Bp=class extends Ap{static{i(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:at.$type,properties:{cardinality:{name:at.cardinality}},superTypes:[]},AbstractParserRule:{name:Hi.$type,properties:{},superTypes:[Aa.$type,ct.$type]},AbstractRule:{name:Aa.$type,properties:{},superTypes:[]},AbstractType:{name:ct.$type,properties:{},superTypes:[]},Action:{name:Sr.$type,properties:{cardinality:{name:Sr.cardinality},feature:{name:Sr.feature},inferredType:{name:Sr.inferredType},operator:{name:Sr.operator},type:{name:Sr.type,referenceType:ct.$type}},superTypes:[at.$type]},Alternatives:{name:Yi.$type,properties:{cardinality:{name:Yi.cardinality},elements:{name:Yi.elements,defaultValue:[]}},superTypes:[at.$type]},ArrayLiteral:{name:Ko.$type,properties:{elements:{name:Ko.elements,defaultValue:[]}},superTypes:[hn.$type]},ArrayType:{name:Bo.$type,properties:{elementType:{name:Bo.elementType}},superTypes:[dn.$type]},Assignment:{name:wr.$type,properties:{cardinality:{name:wr.cardinality},feature:{name:wr.feature},operator:{name:wr.operator},predicate:{name:wr.predicate},terminal:{name:wr.terminal}},superTypes:[at.$type]},BooleanLiteral:{name:qo.$type,properties:{true:{name:qo.true,defaultValue:!1}},superTypes:[Nr.$type,hn.$type]},CharacterRange:{name:Ir.$type,properties:{cardinality:{name:Ir.cardinality},left:{name:Ir.left},lookahead:{name:Ir.lookahead},parenthesized:{name:Ir.parenthesized,defaultValue:!1},right:{name:Ir.right}},superTypes:[it.$type]},Condition:{name:Nr.$type,properties:{},superTypes:[]},Conjunction:{name:Xi.$type,properties:{left:{name:Xi.left},right:{name:Xi.right}},superTypes:[Nr.$type]},CrossReference:{name:Pr.$type,properties:{cardinality:{name:Pr.cardinality},deprecatedSyntax:{name:Pr.deprecatedSyntax,defaultValue:!1},isMulti:{name:Pr.isMulti,defaultValue:!1},terminal:{name:Pr.terminal},type:{name:Pr.type,referenceType:ct.$type}},superTypes:[at.$type]},Disjunction:{name:Ji.$type,properties:{left:{name:Ji.left},right:{name:Ji.right}},superTypes:[Nr.$type]},EndOfFile:{name:Wo.$type,properties:{cardinality:{name:Wo.cardinality}},superTypes:[at.$type]},Grammar:{name:lr.$type,properties:{imports:{name:lr.imports,defaultValue:[]},interfaces:{name:lr.interfaces,defaultValue:[]},isDeclared:{name:lr.isDeclared,defaultValue:!1},name:{name:lr.name},rules:{name:lr.rules,defaultValue:[]},types:{name:lr.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Vo.$type,properties:{path:{name:Vo.path}},superTypes:[]},Group:{name:an.$type,properties:{cardinality:{name:an.cardinality},elements:{name:an.elements,defaultValue:[]},guardCondition:{name:an.guardCondition},predicate:{name:an.predicate}},superTypes:[at.$type]},InferredType:{name:Ho.$type,properties:{name:{name:Ho.name}},superTypes:[ct.$type]},InfixRule:{name:Kt.$type,properties:{call:{name:Kt.call},dataType:{name:Kt.dataType},inferredType:{name:Kt.inferredType},name:{name:Kt.name},operators:{name:Kt.operators},parameters:{name:Kt.parameters,defaultValue:[]},returnType:{name:Kt.returnType,referenceType:ct.$type}},superTypes:[Hi.$type]},InfixRuleOperatorList:{name:Zi.$type,properties:{associativity:{name:Zi.associativity},operators:{name:Zi.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Yo.$type,properties:{precedences:{name:Yo.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ea.$type,properties:{attributes:{name:Ea.attributes,defaultValue:[]},name:{name:Ea.name},superTypes:{name:Ea.superTypes,defaultValue:[],referenceType:ct.$type}},superTypes:[ct.$type]},Keyword:{name:ba.$type,properties:{cardinality:{name:ba.cardinality},predicate:{name:ba.predicate},value:{name:ba.value}},superTypes:[at.$type]},NamedArgument:{name:Ca.$type,properties:{calledByName:{name:Ca.calledByName,defaultValue:!1},parameter:{name:Ca.parameter,referenceType:_a.$type},value:{name:Ca.value}},superTypes:[]},NegatedToken:{name:sn.$type,properties:{cardinality:{name:sn.cardinality},lookahead:{name:sn.lookahead},parenthesized:{name:sn.parenthesized,defaultValue:!1},terminal:{name:sn.terminal}},superTypes:[it.$type]},Negation:{name:Xo.$type,properties:{value:{name:Xo.value}},superTypes:[Nr.$type]},NumberLiteral:{name:Jo.$type,properties:{value:{name:Jo.value}},superTypes:[hn.$type]},Parameter:{name:_a.$type,properties:{name:{name:_a.name}},superTypes:[]},ParameterReference:{name:Zo.$type,properties:{parameter:{name:Zo.parameter,referenceType:_a.$type}},superTypes:[Nr.$type]},ParserRule:{name:_t.$type,properties:{dataType:{name:_t.dataType},definition:{name:_t.definition},entry:{name:_t.entry,defaultValue:!1},fragment:{name:_t.fragment,defaultValue:!1},inferredType:{name:_t.inferredType},name:{name:_t.name},parameters:{name:_t.parameters,defaultValue:[]},returnType:{name:_t.returnType,referenceType:ct.$type}},superTypes:[Hi.$type]},ReferenceType:{name:Qi.$type,properties:{isMulti:{name:Qi.isMulti,defaultValue:!1},referenceType:{name:Qi.referenceType}},superTypes:[dn.$type]},RegexToken:{name:on.$type,properties:{cardinality:{name:on.cardinality},lookahead:{name:on.lookahead},parenthesized:{name:on.parenthesized,defaultValue:!1},regex:{name:on.regex}},superTypes:[it.$type]},ReturnType:{name:Qo.$type,properties:{name:{name:Qo.name}},superTypes:[]},RuleCall:{name:ln.$type,properties:{arguments:{name:ln.arguments,defaultValue:[]},cardinality:{name:ln.cardinality},predicate:{name:ln.predicate},rule:{name:ln.rule,referenceType:Aa.$type}},superTypes:[at.$type]},SimpleType:{name:Sa.$type,properties:{primitiveType:{name:Sa.primitiveType},stringType:{name:Sa.stringType},typeRef:{name:Sa.typeRef,referenceType:ct.$type}},superTypes:[dn.$type]},StringLiteral:{name:el.$type,properties:{value:{name:el.value}},superTypes:[hn.$type]},TerminalAlternatives:{name:un.$type,properties:{cardinality:{name:un.cardinality},elements:{name:un.elements,defaultValue:[]},lookahead:{name:un.lookahead},parenthesized:{name:un.parenthesized,defaultValue:!1}},superTypes:[it.$type]},TerminalElement:{name:it.$type,properties:{cardinality:{name:it.cardinality},lookahead:{name:it.lookahead},parenthesized:{name:it.parenthesized,defaultValue:!1}},superTypes:[at.$type]},TerminalGroup:{name:cn.$type,properties:{cardinality:{name:cn.cardinality},elements:{name:cn.elements,defaultValue:[]},lookahead:{name:cn.lookahead},parenthesized:{name:cn.parenthesized,defaultValue:!1}},superTypes:[it.$type]},TerminalRule:{name:ur.$type,properties:{definition:{name:ur.definition},fragment:{name:ur.fragment,defaultValue:!1},hidden:{name:ur.hidden,defaultValue:!1},name:{name:ur.name},type:{name:ur.type}},superTypes:[Aa.$type]},TerminalRuleCall:{name:fn.$type,properties:{cardinality:{name:fn.cardinality},lookahead:{name:fn.lookahead},parenthesized:{name:fn.parenthesized,defaultValue:!1},rule:{name:fn.rule,referenceType:ur.$type}},superTypes:[it.$type]},Type:{name:es.$type,properties:{name:{name:es.name},type:{name:es.type}},superTypes:[ct.$type]},TypeAttribute:{name:pn.$type,properties:{defaultValue:{name:pn.defaultValue},isOptional:{name:pn.isOptional,defaultValue:!1},name:{name:pn.name},type:{name:pn.type}},superTypes:[]},TypeDefinition:{name:dn.$type,properties:{},superTypes:[]},UnionType:{name:tl.$type,properties:{types:{name:tl.types,defaultValue:[]}},superTypes:[dn.$type]},UnorderedGroup:{name:ts.$type,properties:{cardinality:{name:ts.cardinality},elements:{name:ts.elements,defaultValue:[]}},superTypes:[at.$type]},UntilToken:{name:mn.$type,properties:{cardinality:{name:mn.cardinality},lookahead:{name:mn.lookahead},parenthesized:{name:mn.parenthesized,defaultValue:!1},terminal:{name:mn.terminal}},superTypes:[it.$type]},ValueLiteral:{name:hn.$type,properties:{},superTypes:[]},Wildcard:{name:wa.$type,properties:{cardinality:{name:wa.cardinality},lookahead:{name:wa.lookahead},parenthesized:{name:wa.parenthesized,defaultValue:!1}},superTypes:[it.$type]}}}},z=new Bp;function tv(e){let t=e,r=!1;for(;t;){const n=wn(t.grammarSource,Qe);if(n&&n.dataType)t=t.container,r=!0;else return r?t:void 0}}i(tv,"getDatatypeNode");function Fa(e){return new Da(e,t=>fr(t)?t.content:[],{includeRoot:!0})}i(Fa,"streamCst");function rv(e){return Fa(e).filter(Sn)}i(rv,"flattenCst");function qp(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}i(qp,"isChildNode");function fs(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}i(fs,"tokenToRange");function za(e){if(!e)return;const{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}i(za,"toDocumentSegment");var qt;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(qt||(qt={}));function Wp(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return qt.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return qt.After;const r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&n?qt.Inside:r?qt.OverlapBack:n?qt.OverlapFront:qt.Outside}i(Wp,"compareRange");function Vp(e,t){return Wp(e,t)>qt.After}i(Vp,"inRange");var Hp=/^[\w\p{L}]$/u;function nv(e,t,r=Hp){if(e){if(t>0){const n=t-e.offset,a=e.text.charAt(n);r.test(a)||t--}return xl(e,t)}}i(nv,"findDeclarationNodeAtOffset");function Yp(e,t){if(e){const r=Zp(e,!0);if(r&&rl(r,t))return r;if(Nl(e)){const n=e.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){const s=e.content[a];if(rl(s,t))return s}}}}i(Yp,"findCommentNode");function rl(e,t){return Sn(e)&&t.includes(e.tokenType.name)}i(rl,"isCommentNode");function xl(e,t){if(Sn(e))return e;if(fr(e)){const r=Jp(e,t,!1);if(r)return xl(r,t)}}i(xl,"findLeafNodeAtOffset");function Xp(e,t){if(Sn(e))return e;if(fr(e)){const r=Jp(e,t,!0);if(r)return Xp(r,t)}}i(Xp,"findLeafNodeBeforeOffset");function Jp(e,t,r){let n=0,a=e.content.length-1,s;for(;n<=a;){const o=Math.floor((n+a)/2),l=e.content[o];if(l.offset<=t&&l.end>t)return l;l.end<=t?(s=r?l:void 0,n=o+1):a=o-1}return s}i(Jp,"binarySearch");function Zp(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);for(;n>0;){n--;const a=r.content[n];if(t||!a.hidden)return a}e=r}}i(Zp,"getPreviousNode");function av(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);const a=r.content.length-1;for(;n<a;){n++;const s=r.content[n];if(t||!s.hidden)return s}e=r}}i(av,"getNextNode");function iv(e){if(e.range.start.character===0)return e;const t=e.range.start.line;let r=e,n;for(;e.container;){const a=e.container,s=n??a.content.indexOf(e);if(s===0?(e=a,n=void 0):(n=s-1,e=a.content[n]),e.range.start.line!==t)break;r=e}return r}i(iv,"getStartlineNode");function sv(e,t){const r=ov(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}i(sv,"getInteriorNodes");function ov(e,t){const r=gf(e),n=gf(t);let a;for(let s=0;s<r.length&&s<n.length;s++){const o=r[s],l=n[s];if(o.parent===l.parent)a={parent:o.parent,a:o.index,b:l.index};else break}return a}i(ov,"getCommonParent");function gf(e){const t=[];for(;e.container;){const r=e.container,n=r.content.indexOf(e);t.push({parent:r,index:n}),e=r}return t.reverse()}i(gf,"getParentChain");var Qp={};xr(Qp,{findAssignment:()=>pd,findNameAssignment:()=>ql,findNodeForKeyword:()=>fd,findNodeForProperty:()=>Ul,findNodesForKeyword:()=>mv,findNodesForKeywordInternal:()=>Bl,findNodesForProperty:()=>cd,getActionAtElement:()=>md,getActionType:()=>yd,getAllReachableRules:()=>jl,getAllRulesUsedForCrossReferences:()=>dv,getCrossReferenceTerminal:()=>ld,getEntryRule:()=>id,getExplicitRuleType:()=>Os,getHiddenRules:()=>sd,getRuleType:()=>gd,getRuleTypeName:()=>Tv,getTypeName:()=>An,isArrayCardinality:()=>yv,isArrayOperator:()=>gv,isCommentTerminal:()=>ud,isDataType:()=>vv,isDataTypeRule:()=>ks,isOptionalCardinality:()=>hv,terminalRegex:()=>Ls});var Gl=class extends Error{static{i(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Gr(e,t="Error: Got unexpected value."){throw new Error(t)}i(Gr,"assertUnreachable");function ed(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}i(ed,"assertCondition");var td={};xr(td,{NEWLINE_REGEXP:()=>uv,escapeRegExp:()=>Va,getTerminalParts:()=>fv,isMultilineComment:()=>rd,isWhitespace:()=>zl,partialMatches:()=>nd,partialRegExp:()=>ad,whitespaceCharacters:()=>pv});function U(e){return e.charCodeAt(0)}i(U,"cc");function Eo(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}i(Eo,"insertToSet");function fa(e,t){if(e[t]===!0)throw"duplicate flag "+t;e[t],e[t]=!0}i(fa,"addFlag");function Xr(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}i(Xr,"ASSERT_EXISTS");function ji(){throw Error("Internal Error - Should never get here!")}i(ji,"ASSERT_NEVER_REACH_HERE");function vf(e){return e.type==="Character"}i(vf,"isCharacter");var nl=[];for(let e=U("0");e<=U("9");e++)nl.push(e);var al=[U("_")].concat(nl);for(let e=U("a");e<=U("z");e++)al.push(e);for(let e=U("A");e<=U("Z");e++)al.push(e);var ah=[U(" "),U("\f"),U(`
36
+ `),U("\r"),U(" "),U("\v"),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U(" "),U("\u2028"),U("\u2029"),U(" "),U(" "),U(" "),U("\uFEFF")],yI=/[0-9a-fA-F]/,Xs=/[0-9]/,gI=/[1-9]/,lv=class{static{i(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":fa(r,"global");break;case"i":fa(r,"ignoreCase");break;case"m":fa(r,"multiLine");break;case"u":fa(r,"unicode");break;case"y":fa(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}Xr(t);const r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return ji()}quantifier(e=!1){let t;const r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:n,atMost:a}):t={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Xr(t);break}if(!(e===!0&&t===void 0)&&Xr(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Xr(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):ji()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[U(`
37
+ `),U("\r"),U("\u2028"),U("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=nl;break;case"D":e=nl,t=!0;break;case"s":e=ah;break;case"S":e=ah,t=!0;break;case"w":e=al;break;case"W":e=al,t=!0;break}return Xr(e)?{type:"Set",value:e,complement:t}:ji()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=U("\f");break;case"n":e=U(`
38
+ `);break;case"r":e=U("\r");break;case"t":e=U(" ");break;case"v":e=U("\v");break}return Xr(e)?{type:"Character",value:e}:ji()}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:U("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:U(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
39
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:U(this.popChar())}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,vf(r)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();if(n.type,vf(n)){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else Eo(r.value,e),e.push(U("-")),Eo(n.value,e)}else Eo(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
40
+ `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:U("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;const t=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(gI.test(e)===!1)throw Error("Expecting a positive integer");for(;Xs.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(Xs.test(e)===!1)throw Error("Expecting an integer");for(;Xs.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case`
41
+ `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:U(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return Xs.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
42
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
43
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let r=0;r<e;r++){const n=this.popChar();if(yI.test(n)===!1)throw Error("Expecting a HexDecimal digits");t+=n}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},Fl=class{static{i(this,"BaseRegExpVisitor")}visitChildren(e){for(const t in e){const r=e[t];e.hasOwnProperty(t)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(n=>{this.visit(n)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},uv=/\r?\n/gm,cv=new lv,vI=class extends Fl{static{i(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const t=String.fromCharCode(e.value);if(!this.multiline&&t===`
44
+ `&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=Va(t);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=!!`
45
+ `.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},yn=new vI;function fv(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;const t=cv.pattern(e),r=[];for(const n of t.value.value)yn.reset(e),yn.visit(n),r.push({start:yn.startRegexp,end:yn.endRegex});return r}catch{return[]}}i(fv,"getTerminalParts");function rd(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),yn.reset(e),yn.visit(cv.pattern(e)),yn.multiline}catch{return!1}}i(rd,"isMultilineComment");var pv=`\f
46
+ \r \v              \u2028\u2029   \uFEFF`.split("");function zl(e){const t=typeof e=="string"?new RegExp(e):e;return pv.some(r=>t.test(r))}i(zl,"isWhitespace");function Va(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(Va,"escapeRegExp");function nd(e,t){const r=ad(e),n=t.match(r);return!!n&&n[0].length>0}i(nd,"partialMatches");function ad(e){typeof e=="string"&&(e=new RegExp(e));const t=e,r=e.source;let n=0;function a(){let s="",o;function l(c){s+=r.substr(n,c),n+=c}i(l,"appendRaw");function u(c){s+="(?:"+r.substr(n,c)+"|$)",n+=c}for(i(u,"appendOptional");n<r.length;)switch(r[n]){case"\\":switch(r[n+1]){case"c":u(3);break;case"x":u(4);break;case"u":t.unicode?r[n+2]==="{"?u(r.indexOf("}",n)-n+1):u(6):u(2);break;case"p":case"P":t.unicode?u(r.indexOf("}",n)-n+1):u(2);break;case"k":u(r.indexOf(">",n)-n+1);break;default:u(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=n,o=o.exec(r)||[],u(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=n,o=o.exec(r),o?l(o[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":s+="(?:",n+=3,s+=a()+"|$)";break;case"=":s+="(?=",n+=3,s+=a()+")";break;case"!":o=n,n+=3,a(),s+=r.substr(o,n-o);break;case"<":switch(r[n+3]){case"=":case"!":o=n,n+=4,a(),s+=r.substr(o,n-o);break;default:l(r.indexOf(">",n)-n+1),s+=a()+"|$)";break}break}else l(1),s+=a()+"|$)";break;case")":return++n,s;default:u(1);break}return s}return i(a,"process"),new RegExp(a(),e.flags)}i(ad,"partialRegExp");function id(e){return e.rules.find(t=>Qe(t)&&t.entry)}i(id,"getEntryRule");function sd(e){return e.rules.filter(t=>At(t)&&t.hidden)}i(sd,"getHiddenRules");function jl(e,t){const r=new Set,n=id(e);if(!n)return new Set(e.rules);const a=[n].concat(sd(e));for(const o of a)od(o,r,t);const s=new Set;for(const o of e.rules)(r.has(o.name)||At(o)&&o.hidden)&&s.add(o);return s}i(jl,"getAllReachableRules");function od(e,t,r){t.add(e.name),Rr(e).forEach(n=>{if(mr(n)||r&&Ll(n)){const a=n.rule.ref;a&&!t.has(a.name)&&od(a,t,r)}})}i(od,"ruleDfs");function dv(e){const t=new Set;return Rr(e).forEach(r=>{Nn(r)&&(Qe(r.type.ref)&&t.add(r.type.ref),Ps(r.type.ref)&&Qe(r.type.ref.$container)&&t.add(r.type.ref.$container))}),t}i(dv,"getAllRulesUsedForCrossReferences");function ld(e){if(e.terminal)return e.terminal;if(e.type.ref)return ql(e.type.ref)?.terminal}i(ld,"getCrossReferenceTerminal");function ud(e){return e.hidden&&!zl(Ls(e))}i(ud,"isCommentTerminal");function cd(e,t){return!e||!t?[]:Kl(e,t,e.astNode,!0)}i(cd,"findNodesForProperty");function Ul(e,t,r){if(!e||!t)return;const n=Kl(e,t,e.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}i(Ul,"findNodeForProperty");function Kl(e,t,r,n){if(!n){const a=wn(e.grammarSource,pr);if(a&&a.feature===t)return[e]}return fr(e)&&e.astNode===r?e.content.flatMap(a=>Kl(a,t,r,!1)):[]}i(Kl,"findNodesForPropertyInternal");function mv(e,t){return e?Bl(e,t,e?.astNode):[]}i(mv,"findNodesForKeyword");function fd(e,t,r){if(!e)return;const n=Bl(e,t,e?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}i(fd,"findNodeForKeyword");function Bl(e,t,r){if(e.astNode!==r)return[];if(dr(e.grammarSource)&&e.grammarSource.value===t)return[e];const n=Fa(e).iterator();let a;const s=[];do if(a=n.next(),!a.done){const o=a.value;o.astNode===r?dr(o.grammarSource)&&o.grammarSource.value===t&&s.push(o):n.prune()}while(!a.done);return s}i(Bl,"findNodesForKeywordInternal");function pd(e){const t=e.astNode;for(;t===e.container?.astNode;){const r=wn(e.grammarSource,pr);if(r)return r;e=e.container}}i(pd,"findAssignment");function ql(e){let t=e;return Ps(t)&&(kr(t.$container)?t=t.$container.$container:In(t.$container)?t=t.$container:Gr(t.$container)),dd(e,t,new Map)}i(ql,"findNameAssignment");function dd(e,t,r){function n(a,s){let o;return wn(a,pr)||(o=dd(s,s,r)),r.set(e,o),o}if(i(n,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(const a of Rr(t)){if(pr(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(mr(a)&&Qe(a.rule.ref))return n(a,a.rule.ref);if(Ol(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}i(dd,"findNameAssignmentInternal");function md(e){const t=e.$container;if(Pn(t)){const r=t.elements,n=r.indexOf(e);for(let a=n-1;a>=0;a--){const s=r[a];if(kr(s))return s;{const o=Rr(r[a]).find(kr);if(o)return o}}}if(Pl(t))return md(t)}i(md,"getActionAtElement");function hv(e,t){return e==="?"||e==="*"||Pn(t)&&!!t.guardCondition}i(hv,"isOptionalCardinality");function yv(e){return e==="*"||e==="+"}i(yv,"isArrayCardinality");function gv(e){return e==="+="}i(gv,"isArrayOperator");function ks(e){return hd(e,new Set)}i(ks,"isDataTypeRule");function hd(e,t){if(t.has(e))return!0;t.add(e);for(const r of Rr(e))if(mr(r)){if(!r.rule.ref||Qe(r.rule.ref)&&!hd(r.rule.ref,t)||Ga(r.rule.ref))return!1}else{if(pr(r))return!1;if(kr(r))return!1}return!!e.definition}i(hd,"isDataTypeRuleInternal");function vv(e){return il(e.type,new Set)}i(vv,"isDataType");function il(e,t){if(t.has(e))return!0;if(t.add(e),_p(e))return!1;if(Mp(e))return!1;if(jp(e))return e.types.every(r=>il(r,t));if(Ol(e)){if(e.primitiveType!==void 0)return!0;if(e.stringType!==void 0)return!0;if(e.typeRef!==void 0){const r=e.typeRef.ref;return Dl(r)?il(r.type,t):!1}else return!1}else return!1}i(il,"isDataTypeInternal");function Os(e){if(!At(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t)return t.name}}}i(Os,"getExplicitRuleType");function An(e){if(In(e))return Qe(e)&&ks(e)?e.name:Os(e)??e.name;if(kp(e)||Dl(e)||Gp(e))return e.name;if(kr(e)){const t=yd(e);if(t)return t}else if(Ps(e))return e.name;throw new Error("Cannot get name of Unknown Type")}i(An,"getTypeName");function yd(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return An(e.type.ref)}i(yd,"getActionType");function Tv(e){return At(e)?e.type?.name??"string":Qe(e)&&ks(e)?e.name:Os(e)??e.name}i(Tv,"getRuleTypeName");function gd(e){return At(e)?e.type?.name??"string":Os(e)??e.name}i(gd,"getRuleType");function Ls(e){const t={s:!1,i:!1,u:!1},r=kn(e.definition,t),n=Object.entries(t).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}i(Ls,"terminalRegex");var vd=/[\s\S]/.source;function kn(e,t){if(Fp(e))return $v(e);if(zp(e))return Rv(e);if(wp(e))return bv(e);if(Ll(e)){const r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return Yt(kn(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else{if(Op(e))return Ev(e);if(Up(e))return Av(e);if(xp(e)){const r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),a=e.regex.substring(r+1);return t&&(t.i=a.includes("i"),t.s=a.includes("s"),t.u=a.includes("u")),Yt(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else{if(Kp(e))return Yt(vd,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}}}i(kn,"abstractElementToRegex");function $v(e){return Yt(e.elements.map(t=>kn(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i($v,"terminalAlternativesToRegex");function Rv(e){return Yt(e.elements.map(t=>kn(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i(Rv,"terminalGroupToRegex");function Av(e){return Yt(`${vd}*?${kn(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}i(Av,"untilTokenToRegex");function Ev(e){return Yt(`(?!${kn(e.terminal)})${vd}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}i(Ev,"negateTokenToRegex");function bv(e){return e.right?Yt(`[${bo(e.left)}-${bo(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Yt(bo(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i(bv,"characterRangeToRegex");function bo(e){return Va(e.value)}i(bo,"keywordToRegex");function Yt(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`),t.cardinality?`${e}${t.cardinality}`:e}i(Yt,"withCardinality");function Td(e){const t=[],r=e.Grammar;for(const n of r.rules)At(n)&&ud(n)&&rd(Ls(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:Hp}}i(Td,"createGrammarConfig");var Cv=typeof global=="object"&&global&&global.Object===Object&&global,TI=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Cv||TI||Function("return this")(),$t=Jt.Symbol,_v=Object.prototype,$I=_v.hasOwnProperty,RI=_v.toString,Ei=$t?$t.toStringTag:void 0;function Sv(e){var t=$I.call(e,Ei),r=e[Ei];try{e[Ei]=void 0;var n=!0}catch{}var a=RI.call(e);return n&&(t?e[Ei]=r:delete e[Ei]),a}i(Sv,"getRawTag");var AI=Sv,EI=Object.prototype.toString;function wv(e){return EI.call(e)}i(wv,"objectToString");var bI=wv,CI="[object Null]",_I="[object Undefined]",ih=$t?$t.toStringTag:void 0;function Iv(e){return e==null?e===void 0?_I:CI:ih&&ih in Object(e)?AI(e):bI(e)}i(Iv,"baseGetTag");var Fr=Iv;function Nv(e){return e!=null&&typeof e=="object"}i(Nv,"isObjectLike");var Ot=Nv,SI="[object Symbol]";function Pv(e){return typeof e=="symbol"||Ot(e)&&Fr(e)==SI}i(Pv,"isSymbol");var Wl=Pv;function kv(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}i(kv,"arrayMap");var Ds=kv,ee=Array.isArray,wI=1/0,sh=$t?$t.prototype:void 0,oh=sh?sh.toString:void 0;function $d(e){if(typeof e=="string")return e;if(ee(e))return Ds(e,$d)+"";if(Wl(e))return oh?oh.call(e):"";var t=e+"";return t=="0"&&1/e==-wI?"-0":t}i($d,"baseToString");var II=$d,NI=/\s/;function Ov(e){for(var t=e.length;t--&&NI.test(e.charAt(t)););return t}i(Ov,"trimmedEndIndex");var PI=Ov,kI=/^\s+/;function Lv(e){return e&&e.slice(0,PI(e)+1).replace(kI,"")}i(Lv,"baseTrim");var OI=Lv;function Dv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(Dv,"isObject");var Rt=Dv,lh=NaN,LI=/^[-+]0x[0-9a-f]+$/i,DI=/^0b[01]+$/i,MI=/^0o[0-7]+$/i,xI=parseInt;function Mv(e){if(typeof e=="number")return e;if(Wl(e))return lh;if(Rt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=OI(e);var r=DI.test(e);return r||MI.test(e)?xI(e.slice(2),r?2:8):LI.test(e)?lh:+e}i(Mv,"toNumber");var GI=Mv,uh=1/0,FI=17976931348623157e292;function xv(e){return e?(e=GI(e),e===uh||e===-uh?(e<0?-1:1)*FI:e===e?e:0):e===0?e:0}i(xv,"toFinite");var zI=xv;function Gv(e){var t=zI(e),r=t%1;return t===t?r?t-r:t:0}i(Gv,"toInteger");var Ms=Gv;function Fv(e){return e}i(Fv,"identity");var xs=Fv,jI="[object AsyncFunction]",UI="[object Function]",KI="[object GeneratorFunction]",BI="[object Proxy]";function zv(e){if(!Rt(e))return!1;var t=Fr(e);return t==UI||t==KI||t==jI||t==BI}i(zv,"isFunction");var Ar=zv,zu=Jt["__core-js_shared__"],ch=(function(){var e=/[^.]+$/.exec(zu&&zu.keys&&zu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function jv(e){return!!ch&&ch in e}i(jv,"isMasked");var qI=jv,WI=Function.prototype.toString;function Uv(e){if(e!=null){try{return WI.call(e)}catch{}try{return e+""}catch{}}return""}i(Uv,"toSource");var On=Uv,VI=/[\\^$.*+?()[\]{}|]/g,HI=/^\[object .+?Constructor\]$/,YI=Function.prototype,XI=Object.prototype,JI=YI.toString,ZI=XI.hasOwnProperty,QI=RegExp("^"+JI.call(ZI).replace(VI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kv(e){return!Rt(e)||qI(e)?!1:(Ar(e)?QI:HI).test(On(e))}i(Kv,"baseIsNative");var eN=Kv;function Bv(e,t){return e?.[t]}i(Bv,"getValue");var tN=Bv;function qv(e,t){var r=tN(e,t);return eN(r)?r:void 0}i(qv,"getNative");var Ln=qv,Tf=Ln(Jt,"WeakMap"),fh=Object.create,rN=(function(){function e(){}return i(e,"object"),function(t){if(!Rt(t))return{};if(fh)return fh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Wv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}i(Wv,"apply");var nN=Wv;function Vv(){}i(Vv,"noop");var Ge=Vv;function Hv(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}i(Hv,"copyArray");var aN=Hv,iN=800,sN=16,oN=Date.now;function Yv(e){var t=0,r=0;return function(){var n=oN(),a=sN-(n-r);if(r=n,a>0){if(++t>=iN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}i(Yv,"shortOut");var lN=Yv;function Xv(e){return function(){return e}}i(Xv,"constant");var uN=Xv,sl=(function(){try{var e=Ln(Object,"defineProperty");return e({},"",{}),e}catch{}})(),cN=lN(sl?function(e,t){return sl(e,"toString",{configurable:!0,enumerable:!1,value:uN(t),writable:!0})}:xs);function Jv(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}i(Jv,"arrayEach");var Zv=Jv;function Qv(e,t,r,n){for(var a=e.length,s=r+(n?1:-1);n?s--:++s<a;)if(t(e[s],s,e))return s;return-1}i(Qv,"baseFindIndex");var eT=Qv;function tT(e){return e!==e}i(tT,"baseIsNaN");var fN=tT;function rT(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}i(rT,"strictIndexOf");var pN=rT;function nT(e,t,r){return t===t?pN(e,t,r):eT(e,fN,r)}i(nT,"baseIndexOf");var Rd=nT;function aT(e,t){return!!(e!=null&&e.length)&&Rd(e,t,0)>-1}i(aT,"arrayIncludes");var iT=aT,dN=9007199254740991,mN=/^(?:0|[1-9]\d*)$/;function sT(e,t){var r=typeof e;return t=t??dN,!!t&&(r=="number"||r!="symbol"&&mN.test(e))&&e>-1&&e%1==0&&e<t}i(sT,"isIndex");var Vl=sT;function oT(e,t,r){t=="__proto__"&&sl?sl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}i(oT,"baseAssignValue");var Ad=oT;function lT(e,t){return e===t||e!==e&&t!==t}i(lT,"eq");var Gs=lT,hN=Object.prototype.hasOwnProperty;function uT(e,t,r){var n=e[t];(!(hN.call(e,t)&&Gs(n,r))||r===void 0&&!(t in e))&&Ad(e,t,r)}i(uT,"assignValue");var Hl=uT;function cT(e,t,r,n){var a=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=n?n(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),a?Ad(r,l,u):Hl(r,l,u)}return r}i(cT,"copyObject");var Fs=cT,ph=Math.max;function fT(e,t,r){return t=ph(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=ph(n.length-t,0),o=Array(s);++a<s;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),nN(e,this,l)}}i(fT,"overRest");var yN=fT;function pT(e,t){return cN(yN(e,t,xs),e+"")}i(pT,"baseRest");var Ed=pT,gN=9007199254740991;function dT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gN}i(dT,"isLength");var bd=dT;function mT(e){return e!=null&&bd(e.length)&&!Ar(e)}i(mT,"isArrayLike");var Zt=mT;function hT(e,t,r){if(!Rt(r))return!1;var n=typeof t;return(n=="number"?Zt(r)&&Vl(t,r.length):n=="string"&&t in r)?Gs(r[t],e):!1}i(hT,"isIterateeCall");var Yl=hT;function yT(e){return Ed(function(t,r){var n=-1,a=r.length,s=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,o&&Yl(r[0],r[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,s)}return t})}i(yT,"createAssigner");var vN=yT,TN=Object.prototype;function gT(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||TN)}i(gT,"isPrototype");var zs=gT;function vT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(vT,"baseTimes");var $N=vT,RN="[object Arguments]";function TT(e){return Ot(e)&&Fr(e)==RN}i(TT,"baseIsArguments");var dh=TT,$T=Object.prototype,AN=$T.hasOwnProperty,EN=$T.propertyIsEnumerable,Xl=dh((function(){return arguments})())?dh:function(e){return Ot(e)&&AN.call(e,"callee")&&!EN.call(e,"callee")};function RT(){return!1}i(RT,"stubFalse");var bN=RT,AT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mh=AT&&typeof module=="object"&&module&&!module.nodeType&&module,hh=mh&&mh.exports===AT?Jt.Buffer:void 0,ps=(hh?hh.isBuffer:void 0)||bN,CN="[object Arguments]",_N="[object Array]",SN="[object Boolean]",wN="[object Date]",IN="[object Error]",NN="[object Function]",PN="[object Map]",kN="[object Number]",ON="[object Object]",LN="[object RegExp]",DN="[object Set]",MN="[object String]",xN="[object WeakMap]",GN="[object ArrayBuffer]",FN="[object DataView]",zN="[object Float32Array]",jN="[object Float64Array]",UN="[object Int8Array]",KN="[object Int16Array]",BN="[object Int32Array]",qN="[object Uint8Array]",WN="[object Uint8ClampedArray]",VN="[object Uint16Array]",HN="[object Uint32Array]",me={};me[zN]=me[jN]=me[UN]=me[KN]=me[BN]=me[qN]=me[WN]=me[VN]=me[HN]=!0;me[CN]=me[_N]=me[GN]=me[SN]=me[FN]=me[wN]=me[IN]=me[NN]=me[PN]=me[kN]=me[ON]=me[LN]=me[DN]=me[MN]=me[xN]=!1;function ET(e){return Ot(e)&&bd(e.length)&&!!me[Fr(e)]}i(ET,"baseIsTypedArray");var YN=ET;function bT(e){return function(t){return e(t)}}i(bT,"baseUnary");var js=bT,CT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rs=CT&&typeof module=="object"&&module&&!module.nodeType&&module,ju=rs&&rs.exports===CT&&Cv.process,Or=(function(){try{var e=rs&&rs.require&&rs.require("util").types;return e||ju&&ju.binding&&ju.binding("util")}catch{}})(),yh=Or&&Or.isTypedArray,Cd=yh?js(yh):YN,XN=Object.prototype.hasOwnProperty;function _T(e,t){var r=ee(e),n=!r&&Xl(e),a=!r&&!n&&ps(e),s=!r&&!n&&!a&&Cd(e),o=r||n||a||s,l=o?$N(e.length,String):[],u=l.length;for(var c in e)(t||XN.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vl(c,u)))&&l.push(c);return l}i(_T,"arrayLikeKeys");var ST=_T;function wT(e,t){return function(r){return e(t(r))}}i(wT,"overArg");var IT=wT,JN=IT(Object.keys,Object),ZN=Object.prototype.hasOwnProperty;function NT(e){if(!zs(e))return JN(e);var t=[];for(var r in Object(e))ZN.call(e,r)&&r!="constructor"&&t.push(r);return t}i(NT,"baseKeys");var PT=NT;function kT(e){return Zt(e)?ST(e):PT(e)}i(kT,"keys");var pt=kT,QN=Object.prototype.hasOwnProperty,dt=vN(function(e,t){if(zs(t)||Zt(t)){Fs(t,pt(t),e);return}for(var r in t)QN.call(t,r)&&Hl(e,r,t[r])});function OT(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}i(OT,"nativeKeysIn");var eP=OT,tP=Object.prototype.hasOwnProperty;function LT(e){if(!Rt(e))return eP(e);var t=zs(e),r=[];for(var n in e)n=="constructor"&&(t||!tP.call(e,n))||r.push(n);return r}i(LT,"baseKeysIn");var rP=LT;function DT(e){return Zt(e)?ST(e,!0):rP(e)}i(DT,"keysIn");var Jl=DT,nP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aP=/^\w*$/;function MT(e,t){if(ee(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wl(e)?!0:aP.test(e)||!nP.test(e)||t!=null&&e in Object(t)}i(MT,"isKey");var _d=MT,ds=Ln(Object,"create");function xT(){this.__data__=ds?ds(null):{},this.size=0}i(xT,"hashClear");var iP=xT;function GT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(GT,"hashDelete");var sP=GT,oP="__lodash_hash_undefined__",lP=Object.prototype.hasOwnProperty;function FT(e){var t=this.__data__;if(ds){var r=t[e];return r===oP?void 0:r}return lP.call(t,e)?t[e]:void 0}i(FT,"hashGet");var uP=FT,cP=Object.prototype.hasOwnProperty;function zT(e){var t=this.__data__;return ds?t[e]!==void 0:cP.call(t,e)}i(zT,"hashHas");var fP=zT,pP="__lodash_hash_undefined__";function jT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ds&&t===void 0?pP:t,this}i(jT,"hashSet");var dP=jT;function Dn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Dn,"Hash");Dn.prototype.clear=iP;Dn.prototype.delete=sP;Dn.prototype.get=uP;Dn.prototype.has=fP;Dn.prototype.set=dP;var gh=Dn;function UT(){this.__data__=[],this.size=0}i(UT,"listCacheClear");var mP=UT;function KT(e,t){for(var r=e.length;r--;)if(Gs(e[r][0],t))return r;return-1}i(KT,"assocIndexOf");var Zl=KT,hP=Array.prototype.splice;function BT(e){var t=this.__data__,r=Zl(t,e);return r<0?!1:(r==t.length-1?t.pop():hP.call(t,r,1),--this.size,!0)}i(BT,"listCacheDelete");var yP=BT;function qT(e){var t=this.__data__,r=Zl(t,e);return r<0?void 0:t[r][1]}i(qT,"listCacheGet");var gP=qT;function WT(e){return Zl(this.__data__,e)>-1}i(WT,"listCacheHas");var vP=WT;function VT(e,t){var r=this.__data__,n=Zl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(VT,"listCacheSet");var TP=VT;function Mn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Mn,"ListCache");Mn.prototype.clear=mP;Mn.prototype.delete=yP;Mn.prototype.get=gP;Mn.prototype.has=vP;Mn.prototype.set=TP;var Ql=Mn,ms=Ln(Jt,"Map");function HT(){this.size=0,this.__data__={hash:new gh,map:new(ms||Ql),string:new gh}}i(HT,"mapCacheClear");var $P=HT;function YT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(YT,"isKeyable");var RP=YT;function XT(e,t){var r=e.__data__;return RP(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(XT,"getMapData");var eu=XT;function JT(e){var t=eu(this,e).delete(e);return this.size-=t?1:0,t}i(JT,"mapCacheDelete");var AP=JT;function ZT(e){return eu(this,e).get(e)}i(ZT,"mapCacheGet");var EP=ZT;function QT(e){return eu(this,e).has(e)}i(QT,"mapCacheHas");var bP=QT;function e$(e,t){var r=eu(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(e$,"mapCacheSet");var CP=e$;function xn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(xn,"MapCache");xn.prototype.clear=$P;xn.prototype.delete=AP;xn.prototype.get=EP;xn.prototype.has=bP;xn.prototype.set=CP;var tu=xn,_P="Expected a function";function ru(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(_P);var r=i(function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var o=e.apply(this,n);return r.cache=s.set(a,o)||s,o},"memoized");return r.cache=new(ru.Cache||tu),r}i(ru,"memoize");ru.Cache=tu;var SP=ru,wP=500;function t$(e){var t=SP(e,function(n){return r.size===wP&&r.clear(),n}),r=t.cache;return t}i(t$,"memoizeCapped");var IP=t$,NP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PP=/\\(\\)?/g,kP=IP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NP,function(r,n,a,s){t.push(a?s.replace(PP,"$1"):n||r)}),t});function r$(e){return e==null?"":II(e)}i(r$,"toString");var OP=r$;function n$(e,t){return ee(e)?e:_d(e,t)?[e]:kP(OP(e))}i(n$,"castPath");var nu=n$,LP=1/0;function a$(e){if(typeof e=="string"||Wl(e))return e;var t=e+"";return t=="0"&&1/e==-LP?"-0":t}i(a$,"toKey");var Us=a$;function i$(e,t){t=nu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Us(t[r++])];return r&&r==n?e:void 0}i(i$,"baseGet");var Sd=i$;function s$(e,t,r){var n=e==null?void 0:Sd(e,t);return n===void 0?r:n}i(s$,"get");var DP=s$;function o$(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}i(o$,"arrayPush");var wd=o$,vh=$t?$t.isConcatSpreadable:void 0;function l$(e){return ee(e)||Xl(e)||!!(vh&&e&&e[vh])}i(l$,"isFlattenable");var MP=l$;function Id(e,t,r,n,a){var s=-1,o=e.length;for(r||(r=MP),a||(a=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?Id(l,t-1,r,n,a):wd(a,l):n||(a[a.length]=l)}return a}i(Id,"baseFlatten");var Nd=Id;function u$(e){return e!=null&&e.length?Nd(e,1):[]}i(u$,"flatten");var Pt=u$,c$=IT(Object.getPrototypeOf,Object);function f$(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(a);++n<a;)s[n]=e[n+t];return s}i(f$,"baseSlice");var p$=f$;function d$(e,t,r,n){var a=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++a]);++a<s;)r=t(r,e[a],a,e);return r}i(d$,"arrayReduce");var xP=d$;function m$(){this.__data__=new Ql,this.size=0}i(m$,"stackClear");var GP=m$;function h$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}i(h$,"stackDelete");var FP=h$;function y$(e){return this.__data__.get(e)}i(y$,"stackGet");var zP=y$;function g$(e){return this.__data__.has(e)}i(g$,"stackHas");var jP=g$,UP=200;function v$(e,t){var r=this.__data__;if(r instanceof Ql){var n=r.__data__;if(!ms||n.length<UP-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new tu(n)}return r.set(e,t),this.size=r.size,this}i(v$,"stackSet");var KP=v$;function Gn(e){var t=this.__data__=new Ql(e);this.size=t.size}i(Gn,"Stack");Gn.prototype.clear=GP;Gn.prototype.delete=FP;Gn.prototype.get=zP;Gn.prototype.has=jP;Gn.prototype.set=KP;var ns=Gn;function T$(e,t){return e&&Fs(t,pt(t),e)}i(T$,"baseAssign");var BP=T$;function $$(e,t){return e&&Fs(t,Jl(t),e)}i($$,"baseAssignIn");var qP=$$,R$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Th=R$&&typeof module=="object"&&module&&!module.nodeType&&module,$h=Th&&Th.exports===R$?Jt.Buffer:void 0,Rh=$h?$h.allocUnsafe:void 0;function A$(e,t){if(t)return e.slice();var r=e.length,n=Rh?Rh(r):new e.constructor(r);return e.copy(n),n}i(A$,"cloneBuffer");var WP=A$;function E$(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}i(E$,"arrayFilter");var Pd=E$;function b$(){return[]}i(b$,"stubArray");var C$=b$,VP=Object.prototype.propertyIsEnumerable,Ah=Object.getOwnPropertySymbols,kd=Ah?function(e){return e==null?[]:(e=Object(e),Pd(Ah(e),function(t){return VP.call(e,t)}))}:C$;function _$(e,t){return Fs(e,kd(e),t)}i(_$,"copySymbols");var HP=_$,S$=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)wd(t,kd(e)),e=c$(e);return t}:C$;function w$(e,t){return Fs(e,S$(e),t)}i(w$,"copySymbolsIn");var YP=w$;function I$(e,t,r){var n=t(e);return ee(e)?n:wd(n,r(e))}i(I$,"baseGetAllKeys");var N$=I$;function P$(e){return N$(e,pt,kd)}i(P$,"getAllKeys");var $f=P$;function k$(e){return N$(e,Jl,S$)}i(k$,"getAllKeysIn");var O$=k$,Rf=Ln(Jt,"DataView"),Af=Ln(Jt,"Promise"),Pa=Ln(Jt,"Set"),Eh="[object Map]",XP="[object Object]",bh="[object Promise]",Ch="[object Set]",_h="[object WeakMap]",Sh="[object DataView]",JP=On(Rf),ZP=On(ms),QP=On(Af),ek=On(Pa),tk=On(Tf),Jr=Fr;(Rf&&Jr(new Rf(new ArrayBuffer(1)))!=Sh||ms&&Jr(new ms)!=Eh||Af&&Jr(Af.resolve())!=bh||Pa&&Jr(new Pa)!=Ch||Tf&&Jr(new Tf)!=_h)&&(Jr=i(function(e){var t=Fr(e),r=t==XP?e.constructor:void 0,n=r?On(r):"";if(n)switch(n){case JP:return Sh;case ZP:return Eh;case QP:return bh;case ek:return Ch;case tk:return _h}return t},"getTag"));var ja=Jr,rk=Object.prototype.hasOwnProperty;function L$(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&rk.call(e,"index")&&(r.index=e.index,r.input=e.input),r}i(L$,"initCloneArray");var nk=L$,ol=Jt.Uint8Array;function D$(e){var t=new e.constructor(e.byteLength);return new ol(t).set(new ol(e)),t}i(D$,"cloneArrayBuffer");var Od=D$;function M$(e,t){var r=t?Od(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}i(M$,"cloneDataView");var ak=M$,ik=/\w*$/;function x$(e){var t=new e.constructor(e.source,ik.exec(e));return t.lastIndex=e.lastIndex,t}i(x$,"cloneRegExp");var sk=x$,wh=$t?$t.prototype:void 0,Ih=wh?wh.valueOf:void 0;function G$(e){return Ih?Object(Ih.call(e)):{}}i(G$,"cloneSymbol");var ok=G$;function F$(e,t){var r=t?Od(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}i(F$,"cloneTypedArray");var lk=F$,uk="[object Boolean]",ck="[object Date]",fk="[object Map]",pk="[object Number]",dk="[object RegExp]",mk="[object Set]",hk="[object String]",yk="[object Symbol]",gk="[object ArrayBuffer]",vk="[object DataView]",Tk="[object Float32Array]",$k="[object Float64Array]",Rk="[object Int8Array]",Ak="[object Int16Array]",Ek="[object Int32Array]",bk="[object Uint8Array]",Ck="[object Uint8ClampedArray]",_k="[object Uint16Array]",Sk="[object Uint32Array]";function z$(e,t,r){var n=e.constructor;switch(t){case gk:return Od(e);case uk:case ck:return new n(+e);case vk:return ak(e,r);case Tk:case $k:case Rk:case Ak:case Ek:case bk:case Ck:case _k:case Sk:return lk(e,r);case fk:return new n;case pk:case hk:return new n(e);case dk:return sk(e);case mk:return new n;case yk:return ok(e)}}i(z$,"initCloneByTag");var wk=z$;function j$(e){return typeof e.constructor=="function"&&!zs(e)?rN(c$(e)):{}}i(j$,"initCloneObject");var Ik=j$,Nk="[object Map]";function U$(e){return Ot(e)&&ja(e)==Nk}i(U$,"baseIsMap");var Pk=U$,Nh=Or&&Or.isMap,kk=Nh?js(Nh):Pk,Ok="[object Set]";function K$(e){return Ot(e)&&ja(e)==Ok}i(K$,"baseIsSet");var Lk=K$,Ph=Or&&Or.isSet,Dk=Ph?js(Ph):Lk,Mk=1,xk=2,Gk=4,B$="[object Arguments]",Fk="[object Array]",zk="[object Boolean]",jk="[object Date]",Uk="[object Error]",q$="[object Function]",Kk="[object GeneratorFunction]",Bk="[object Map]",qk="[object Number]",W$="[object Object]",Wk="[object RegExp]",Vk="[object Set]",Hk="[object String]",Yk="[object Symbol]",Xk="[object WeakMap]",Jk="[object ArrayBuffer]",Zk="[object DataView]",Qk="[object Float32Array]",eO="[object Float64Array]",tO="[object Int8Array]",rO="[object Int16Array]",nO="[object Int32Array]",aO="[object Uint8Array]",iO="[object Uint8ClampedArray]",sO="[object Uint16Array]",oO="[object Uint32Array]",ce={};ce[B$]=ce[Fk]=ce[Jk]=ce[Zk]=ce[zk]=ce[jk]=ce[Qk]=ce[eO]=ce[tO]=ce[rO]=ce[nO]=ce[Bk]=ce[qk]=ce[W$]=ce[Wk]=ce[Vk]=ce[Hk]=ce[Yk]=ce[aO]=ce[iO]=ce[sO]=ce[oO]=!0;ce[Uk]=ce[q$]=ce[Xk]=!1;function as(e,t,r,n,a,s){var o,l=t&Mk,u=t&xk,c=t&Gk;if(r&&(o=a?r(e,n,a,s):r(e)),o!==void 0)return o;if(!Rt(e))return e;var f=ee(e);if(f){if(o=nk(e),!l)return aN(e,o)}else{var p=ja(e),m=p==q$||p==Kk;if(ps(e))return WP(e,l);if(p==W$||p==B$||m&&!a){if(o=u||m?{}:Ik(e),!l)return u?YP(e,qP(o,e)):HP(e,BP(o,e))}else{if(!ce[p])return a?e:{};o=wk(e,p,l)}}s||(s=new ns);var T=s.get(e);if(T)return T;s.set(e,o),Dk(e)?e.forEach(function(_){o.add(as(_,t,r,_,e,s))}):kk(e)&&e.forEach(function(_,I){o.set(I,as(_,t,r,I,e,s))});var g=f?void 0:(c?u?O$:$f:u?Jl:pt)(e);return Zv(g||e,function(_,I){g&&(I=_,_=e[I]),Hl(o,I,as(_,t,r,I,e,s))}),o}i(as,"baseClone");var lO=as,uO=4;function V$(e){return lO(e,uO)}i(V$,"clone");var qe=V$;function H$(e){for(var t=-1,r=e==null?0:e.length,n=0,a=[];++t<r;){var s=e[t];s&&(a[n++]=s)}return a}i(H$,"compact");var Ks=H$,cO="__lodash_hash_undefined__";function Y$(e){return this.__data__.set(e,cO),this}i(Y$,"setCacheAdd");var fO=Y$;function X$(e){return this.__data__.has(e)}i(X$,"setCacheHas");var pO=X$;function hs(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new tu;++t<r;)this.add(e[t])}i(hs,"SetCache");hs.prototype.add=hs.prototype.push=fO;hs.prototype.has=pO;var Ld=hs;function J$(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}i(J$,"arraySome");var Z$=J$;function Q$(e,t){return e.has(t)}i(Q$,"cacheHas");var Dd=Q$,dO=1,mO=2;function eR(e,t,r,n,a,s){var o=r&dO,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var p=-1,m=!0,T=r&mO?new Ld:void 0;for(s.set(e,t),s.set(t,e);++p<l;){var g=e[p],_=t[p];if(n)var I=o?n(_,g,p,t,e,s):n(g,_,p,e,t,s);if(I!==void 0){if(I)continue;m=!1;break}if(T){if(!Z$(t,function(N,S){if(!Dd(T,S)&&(g===N||a(g,N,r,n,s)))return T.push(S)})){m=!1;break}}else if(!(g===_||a(g,_,r,n,s))){m=!1;break}}return s.delete(e),s.delete(t),m}i(eR,"equalArrays");var tR=eR;function rR(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}i(rR,"mapToArray");var hO=rR;function nR(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(nR,"setToArray");var Md=nR,yO=1,gO=2,vO="[object Boolean]",TO="[object Date]",$O="[object Error]",RO="[object Map]",AO="[object Number]",EO="[object RegExp]",bO="[object Set]",CO="[object String]",_O="[object Symbol]",SO="[object ArrayBuffer]",wO="[object DataView]",kh=$t?$t.prototype:void 0,Uu=kh?kh.valueOf:void 0;function aR(e,t,r,n,a,s,o){switch(r){case wO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case SO:return!(e.byteLength!=t.byteLength||!s(new ol(e),new ol(t)));case vO:case TO:case AO:return Gs(+e,+t);case $O:return e.name==t.name&&e.message==t.message;case EO:case CO:return e==t+"";case RO:var l=hO;case bO:var u=n&yO;if(l||(l=Md),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=gO,o.set(e,t);var f=tR(l(e),l(t),n,a,s,o);return o.delete(e),f;case _O:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}i(aR,"equalByTag");var IO=aR,NO=1,PO=Object.prototype.hasOwnProperty;function iR(e,t,r,n,a,s){var o=r&NO,l=$f(e),u=l.length;if(u!=$f(t).length&&!o)return!1;for(var c=u;c--;){var f=l[c];if(!(o?f in t:PO.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var T=!0;s.set(e,t),s.set(t,e);for(var g=o;++c<u;){f=l[c];var _=e[f],I=t[f];if(n)var N=o?n(I,_,f,t,e,s):n(_,I,f,e,t,s);if(!(N===void 0?_===I||a(_,I,r,n,s):N)){T=!1;break}g||(g=f=="constructor")}if(T&&!g){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(T=!1)}return s.delete(e),s.delete(t),T}i(iR,"equalObjects");var kO=iR,OO=1,Oh="[object Arguments]",Lh="[object Array]",Js="[object Object]",Dh=Object.prototype.hasOwnProperty;function sR(e,t,r,n,a,s){var o=ee(e),l=ee(t),u=o?Lh:ja(e),c=l?Lh:ja(t);u=u==Oh?Js:u,c=c==Oh?Js:c;var f=u==Js,p=c==Js,m=u==c;if(m&&ps(e)){if(!ps(t))return!1;o=!0,f=!1}if(m&&!f)return s||(s=new ns),o||Cd(e)?tR(e,t,r,n,a,s):IO(e,t,u,r,n,a,s);if(!(r&OO)){var T=f&&Dh.call(e,"__wrapped__"),g=p&&Dh.call(t,"__wrapped__");if(T||g){var _=T?e.value():e,I=g?t.value():t;return s||(s=new ns),a(_,I,r,n,s)}}return m?(s||(s=new ns),kO(e,t,r,n,a,s)):!1}i(sR,"baseIsEqualDeep");var LO=sR;function xd(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ot(e)&&!Ot(t)?e!==e&&t!==t:LO(e,t,r,n,xd,a)}i(xd,"baseIsEqual");var oR=xd,DO=1,MO=2;function lR(e,t,r,n){var a=r.length,s=a,o=!n;if(e==null)return!s;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=r[a];var u=l[0],c=e[u],f=l[1];if(o&&l[2]){if(c===void 0&&!(u in e))return!1}else{var p=new ns;if(n)var m=n(c,f,u,e,t,p);if(!(m===void 0?oR(f,c,DO|MO,n,p):m))return!1}}return!0}i(lR,"baseIsMatch");var xO=lR;function uR(e){return e===e&&!Rt(e)}i(uR,"isStrictComparable");var cR=uR;function fR(e){for(var t=pt(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cR(a)]}return t}i(fR,"getMatchData");var GO=fR;function pR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}i(pR,"matchesStrictComparable");var dR=pR;function mR(e){var t=GO(e);return t.length==1&&t[0][2]?dR(t[0][0],t[0][1]):function(r){return r===e||xO(r,e,t)}}i(mR,"baseMatches");var FO=mR;function hR(e,t){return e!=null&&t in Object(e)}i(hR,"baseHasIn");var zO=hR;function yR(e,t,r){t=nu(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var o=Us(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&bd(a)&&Vl(o,a)&&(ee(e)||Xl(e)))}i(yR,"hasPath");var gR=yR;function vR(e,t){return e!=null&&gR(e,t,zO)}i(vR,"hasIn");var jO=vR,UO=1,KO=2;function TR(e,t){return _d(e)&&cR(t)?dR(Us(e),t):function(r){var n=DP(r,e);return n===void 0&&n===t?jO(r,e):oR(t,n,UO|KO)}}i(TR,"baseMatchesProperty");var BO=TR;function $R(e){return function(t){return t?.[e]}}i($R,"baseProperty");var qO=$R;function RR(e){return function(t){return Sd(t,e)}}i(RR,"basePropertyDeep");var WO=RR;function AR(e){return _d(e)?qO(Us(e)):WO(e)}i(AR,"property");var VO=AR;function ER(e){return typeof e=="function"?e:e==null?xs:typeof e=="object"?ee(e)?BO(e[0],e[1]):FO(e):VO(e)}i(ER,"baseIteratee");var Qt=ER;function bR(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var o=e[a];t(n,o,r(o),e)}return n}i(bR,"arrayAggregator");var HO=bR;function CR(e){return function(t,r,n){for(var a=-1,s=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++a];if(r(s[u],u,s)===!1)break}return t}}i(CR,"createBaseFor");var YO=CR();function _R(e,t){return e&&YO(e,t,pt)}i(_R,"baseForOwn");var XO=_R;function SR(e,t){return function(r,n){if(r==null)return r;if(!Zt(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}i(SR,"createBaseEach");var Fn=SR(XO);function wR(e,t,r,n){return Fn(e,function(a,s,o){t(n,a,r(a),o)}),n}i(wR,"baseAggregator");var JO=wR;function IR(e,t){return function(r,n){var a=ee(r)?HO:JO,s=t?t():{};return a(r,e,Qt(n,2),s)}}i(IR,"createAggregator");var ZO=IR,NR=Object.prototype,QO=NR.hasOwnProperty,Gd=Ed(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Yl(t[0],t[1],a)&&(n=1);++r<n;)for(var s=t[r],o=Jl(s),l=-1,u=o.length;++l<u;){var c=o[l],f=e[c];(f===void 0||Gs(f,NR[c])&&!QO.call(e,c))&&(e[c]=s[c])}return e});function PR(e){return Ot(e)&&Zt(e)}i(PR,"isArrayLikeObject");var Mh=PR;function kR(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}i(kR,"arrayIncludesWith");var OR=kR,eL=200;function LR(e,t,r,n){var a=-1,s=iT,o=!0,l=e.length,u=[],c=t.length;if(!l)return u;r&&(t=Ds(t,js(r))),n?(s=OR,o=!1):t.length>=eL&&(s=Dd,o=!1,t=new Ld(t));e:for(;++a<l;){var f=e[a],p=r==null?f:r(f);if(f=n||f!==0?f:0,o&&p===p){for(var m=c;m--;)if(t[m]===p)continue e;u.push(f)}else s(t,p,n)||u.push(f)}return u}i(LR,"baseDifference");var tL=LR,au=Ed(function(e,t){return Mh(e)?tL(e,Nd(t,1,Mh,!0)):[]});function DR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}i(DR,"last");var En=DR;function MR(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:Ms(t),p$(e,t<0?0:t,n)):[]}i(MR,"drop");var Ke=MR;function xR(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:Ms(t),t=n-t,p$(e,0,t<0?0:t)):[]}i(xR,"dropRight");var ys=xR;function GR(e){return typeof e=="function"?e:xs}i(GR,"castFunction");var rL=GR;function FR(e,t){return(ee(e)?Zv:Fn)(e,rL(t))}i(FR,"forEach");var K=FR;function zR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}i(zR,"arrayEvery");var nL=zR;function jR(e,t){var r=!0;return Fn(e,function(n,a,s){return r=!!t(n,a,s),r}),r}i(jR,"baseEvery");var aL=jR;function UR(e,t,r){var n=ee(e)?nL:aL;return r&&Yl(e,t,r)&&(t=void 0),n(e,Qt(t,3))}i(UR,"every");var kt=UR;function KR(e,t){var r=[];return Fn(e,function(n,a,s){t(n,a,s)&&r.push(n)}),r}i(KR,"baseFilter");var BR=KR;function qR(e,t){return(ee(e)?Pd:BR)(e,Qt(t,3))}i(qR,"filter");var Et=qR;function WR(e){return function(t,r,n){var a=Object(t);if(!Zt(t)){var s=Qt(r,3);t=pt(t),r=i(function(l){return s(a[l],l,a)},"predicate")}var o=e(t,r,n);return o>-1?a[s?t[o]:o]:void 0}}i(WR,"createFind");var iL=WR,sL=Math.max;function VR(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Ms(r);return a<0&&(a=sL(n+a,0)),eT(e,Qt(t,3),a)}i(VR,"findIndex");var Ua=iL(VR);function HR(e){return e&&e.length?e[0]:void 0}i(HR,"head");var Lt=HR;function YR(e,t){var r=-1,n=Zt(e)?Array(e.length):[];return Fn(e,function(a,s,o){n[++r]=t(a,s,o)}),n}i(YR,"baseMap");var oL=YR;function XR(e,t){return(ee(e)?Ds:oL)(e,Qt(t,3))}i(XR,"map");var F=XR;function JR(e,t){return Nd(F(e,t),1)}i(JR,"flatMap");var Tt=JR,lL=Object.prototype.hasOwnProperty,uL=ZO(function(e,t,r){lL.call(e,r)?e[r].push(t):Ad(e,r,[t])}),cL=Object.prototype.hasOwnProperty;function ZR(e,t){return e!=null&&cL.call(e,t)}i(ZR,"baseHas");var fL=ZR;function QR(e,t){return e!=null&&gR(e,t,fL)}i(QR,"has");var j=QR,pL="[object String]";function eA(e){return typeof e=="string"||!ee(e)&&Ot(e)&&Fr(e)==pL}i(eA,"isString");var st=eA;function tA(e,t){return Ds(t,function(r){return e[r]})}i(tA,"baseValues");var dL=tA;function rA(e){return e==null?[]:dL(e,pt(e))}i(rA,"values");var Me=rA,mL=Math.max;function nA(e,t,r,n){e=Zt(e)?e:Me(e),r=r&&!n?Ms(r):0;var a=e.length;return r<0&&(r=mL(a+r,0)),st(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rd(e,t,r)>-1}i(nA,"includes");var nt=nA,hL=Math.max;function aA(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Ms(r);return a<0&&(a=hL(n+a,0)),Rd(e,t,a)}i(aA,"indexOf");var xh=aA,yL="[object Map]",gL="[object Set]",vL=Object.prototype.hasOwnProperty;function iA(e){if(e==null)return!0;if(Zt(e)&&(ee(e)||typeof e=="string"||typeof e.splice=="function"||ps(e)||Cd(e)||Xl(e)))return!e.length;var t=ja(e);if(t==yL||t==gL)return!e.size;if(zs(e))return!PT(e).length;for(var r in e)if(vL.call(e,r))return!1;return!0}i(iA,"isEmpty");var pe=iA,TL="[object RegExp]";function sA(e){return Ot(e)&&Fr(e)==TL}i(sA,"baseIsRegExp");var $L=sA,Gh=Or&&Or.isRegExp,hr=Gh?js(Gh):$L;function oA(e){return e===void 0}i(oA,"isUndefined");var yr=oA,RL="Expected a function";function lA(e){if(typeof e!="function")throw new TypeError(RL);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}i(lA,"negate");var AL=lA;function uA(e,t,r,n){if(!Rt(e))return e;t=nu(t,e);for(var a=-1,s=t.length,o=s-1,l=e;l!=null&&++a<s;){var u=Us(t[a]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=o){var f=l[u];c=n?n(f,u,l):void 0,c===void 0&&(c=Rt(f)?f:Vl(t[a+1])?[]:{})}Hl(l,u,c),l=l[u]}return e}i(uA,"baseSet");var EL=uA;function cA(e,t,r){for(var n=-1,a=t.length,s={};++n<a;){var o=t[n],l=Sd(e,o);r(l,o)&&EL(s,nu(o,e),l)}return s}i(cA,"basePickBy");var bL=cA;function fA(e,t){if(e==null)return{};var r=Ds(O$(e),function(n){return[n]});return t=Qt(t),bL(e,r,function(n,a){return t(n,a[0])})}i(fA,"pickBy");var Dt=fA;function pA(e,t,r,n,a){return a(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}i(pA,"baseReduce");var CL=pA;function dA(e,t,r){var n=ee(e)?xP:CL,a=arguments.length<3;return n(e,Qt(t,4),r,a,Fn)}i(dA,"reduce");var mt=dA;function mA(e,t){return(ee(e)?Pd:BR)(e,AL(Qt(t,3)))}i(mA,"reject");var iu=mA;function hA(e,t){var r;return Fn(e,function(n,a,s){return r=t(n,a,s),!r}),!!r}i(hA,"baseSome");var _L=hA;function yA(e,t,r){var n=ee(e)?Z$:_L;return r&&Yl(e,t,r)&&(t=void 0),n(e,Qt(t,3))}i(yA,"some");var gA=yA,SL=Pa&&1/Md(new Pa([,-0]))[1]==1/0?function(e){return new Pa(e)}:Ge,wL=200;function vA(e,t,r){var n=-1,a=iT,s=e.length,o=!0,l=[],u=l;if(r)o=!1,a=OR;else if(s>=wL){var c=t?null:SL(e);if(c)return Md(c);o=!1,a=Dd,u=new Ld}else u=t?[]:l;e:for(;++n<s;){var f=e[n],p=t?t(f):f;if(f=r||f!==0?f:0,o&&p===p){for(var m=u.length;m--;)if(u[m]===p)continue e;t&&u.push(p),l.push(f)}else a(u,p,r)||(u!==l&&u.push(p),l.push(f))}return l}i(vA,"baseUniq");var IL=vA;function TA(e){return e&&e.length?IL(e):[]}i(TA,"uniq");var Fd=TA;function ll(e){console&&console.error&&console.error(`Error: ${e}`)}i(ll,"PRINT_ERROR");function zd(e){console&&console.warn&&console.warn(`Warning: ${e}`)}i(zd,"PRINT_WARNING");function jd(e){const t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}i(jd,"timer");function Ud(e){function t(){}i(t,"FakeConstructor"),t.prototype=e;const r=new t;function n(){return typeof r.bar}return i(n,"fakeAccess"),n(),n(),e}i(Ud,"toFastProperties");function $A(e){return RA(e)?e.LABEL:e.name}i($A,"tokenLabel");function RA(e){return st(e.LABEL)&&e.LABEL!==""}i(RA,"hasTokenLabel");var er=class{static{i(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),K(this.definition,t=>{t.accept(e)})}},et=class extends er{static{i(this,"NonTerminal")}constructor(e){super([]),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},Ha=class extends er{static{i(this,"Rule")}constructor(e){super(e.definition),this.orgText="",dt(this,Dt(e,t=>t!==void 0))}},ot=class extends er{static{i(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,dt(this,Dt(e,t=>t!==void 0))}},Be=class extends er{static{i(this,"Option")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},ht=class extends er{static{i(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},yt=class extends er{static{i(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},be=class extends er{static{i(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},lt=class extends er{static{i(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,dt(this,Dt(e,t=>t!==void 0))}},ut=class extends er{static{i(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,dt(this,Dt(e,t=>t!==void 0))}},ye=class{static{i(this,"Terminal")}constructor(e){this.idx=1,dt(this,Dt(e,t=>t!==void 0))}accept(e){e.visit(this)}};function AA(e){return F(e,is)}i(AA,"serializeGrammar");function is(e){function t(r){return F(r,is)}if(i(t,"convertDefinition"),e instanceof et){const r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return st(e.label)&&(r.label=e.label),r}else{if(e instanceof ot)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Be)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ht)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof yt)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:is(new ye({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof lt)return{type:"RepetitionWithSeparator",idx:e.idx,separator:is(new ye({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof be)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof ut)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ye){const r={type:"Terminal",name:e.terminalType.name,label:$A(e.terminalType),idx:e.idx};st(e.label)&&(r.terminalLabel=e.label);const n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=hr(n)?n.source:n),r}else{if(e instanceof Ha)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}i(is,"serializeProduction");var Ya=class{static{i(this,"GAstVisitor")}visit(e){const t=e;switch(t.constructor){case et:return this.visitNonTerminal(t);case ot:return this.visitAlternative(t);case Be:return this.visitOption(t);case ht:return this.visitRepetitionMandatory(t);case yt:return this.visitRepetitionMandatoryWithSeparator(t);case lt:return this.visitRepetitionWithSeparator(t);case be:return this.visitRepetition(t);case ut:return this.visitAlternation(t);case ye:return this.visitTerminal(t);case Ha:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function EA(e){return e instanceof ot||e instanceof Be||e instanceof be||e instanceof ht||e instanceof yt||e instanceof lt||e instanceof ye||e instanceof Ha}i(EA,"isSequenceProd");function gs(e,t=[]){return e instanceof Be||e instanceof be||e instanceof lt?!0:e instanceof ut?gA(e.definition,r=>gs(r,t)):e instanceof et&&nt(t,e)?!1:e instanceof er?(e instanceof et&&t.push(e),kt(e.definition,r=>gs(r,t))):!1}i(gs,"isOptionalProd");function bA(e){return e instanceof ut}i(bA,"isBranchingProd");function St(e){if(e instanceof et)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof ut)return"OR";if(e instanceof ht)return"AT_LEAST_ONE";if(e instanceof yt)return"AT_LEAST_ONE_SEP";if(e instanceof lt)return"MANY_SEP";if(e instanceof be)return"MANY";if(e instanceof ye)return"CONSUME";throw Error("non exhaustive match")}i(St,"getProductionDslName");var su=class{static{i(this,"RestWalker")}walk(e,t=[]){K(e.definition,(r,n)=>{const a=Ke(e.definition,n+1);if(r instanceof et)this.walkProdRef(r,a,t);else if(r instanceof ye)this.walkTerminal(r,a,t);else if(r instanceof ot)this.walkFlat(r,a,t);else if(r instanceof Be)this.walkOption(r,a,t);else if(r instanceof ht)this.walkAtLeastOne(r,a,t);else if(r instanceof yt)this.walkAtLeastOneSep(r,a,t);else if(r instanceof lt)this.walkManySep(r,a,t);else if(r instanceof be)this.walkMany(r,a,t);else if(r instanceof ut)this.walkOr(r,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){const n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){const n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){const n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){const n=Ef(e,t,r);this.walk(e,n)}walkMany(e,t,r){const n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){const n=Ef(e,t,r);this.walk(e,n)}walkOr(e,t,r){const n=t.concat(r);K(e.definition,a=>{const s=new ot({definition:[a]});this.walk(s,n)})}};function Ef(e,t,r){return[new Be({definition:[new ye({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}i(Ef,"restForRepetitionWithSeparator");function Xa(e){if(e instanceof et)return Xa(e.referencedRule);if(e instanceof ye)return SA(e);if(EA(e))return CA(e);if(bA(e))return _A(e);throw Error("non exhaustive match")}i(Xa,"first");function CA(e){let t=[];const r=e.definition;let n=0,a=r.length>n,s,o=!0;for(;a&&o;)s=r[n],o=gs(s),t=t.concat(Xa(s)),n=n+1,a=r.length>n;return Fd(t)}i(CA,"firstForSequence");function _A(e){return Fd(Pt(F(e.definition,t=>Xa(t))))}i(_A,"firstForBranching");function SA(e){return[e.terminalType]}i(SA,"firstForTerminal");var wA="_~IN~_",NL=class extends su{static{i(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){const n=NA(e.referencedRule,e.idx)+this.topProd.name,a=Xa(new ot({definition:t.concat(r)}));this.follows[n]=a}};function IA(e){const t={};return K(e,r=>{const n=new NL(r).startWalking();dt(t,n)}),t}i(IA,"computeAllProdsFollows");function NA(e,t){return e.name+t+wA}i(NA,"buildBetweenProdsFollowPrefix");var Co={},PL=new lv;function Bs(e){const t=e.toString();if(Co.hasOwnProperty(t))return Co[t];{const r=PL.pattern(t);return Co[t]=r,r}}i(Bs,"getRegExpAst");function PA(){Co={}}i(PA,"clearRegExpParserCache");var kA="Complement Sets are not supported for first char optimization",ul=`Unable to use "first char" lexer optimizations:
47
+ `;function OA(e,t=!1){try{const r=Bs(e);return cl(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===kA)t&&zd(`${ul} Unable to optimize: < ${e.toString()} >
48
+ Complement Sets cannot be automatically optimized.
49
+ This will disable the lexer's first char optimizations.
50
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=`
51
+ This will disable the lexer's first char optimizations.
52
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),ll(`${ul}
53
+ Failed parsing: < ${e.toString()} >
54
+ Using the @chevrotain/regexp-to-ast library
55
+ Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}i(OA,"getOptimizedStartCodesIndices");function cl(e,t,r){switch(e.type){case"Disjunction":for(let a=0;a<e.value.length;a++)cl(e.value[a],t,r);break;case"Alternative":const n=e.value;for(let a=0;a<n.length;a++){const s=n[a];switch(s.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const o=s;switch(o.type){case"Character":Ui(o.value,t,r);break;case"Set":if(o.complement===!0)throw Error(kA);K(o.value,u=>{if(typeof u=="number")Ui(u,t,r);else{const c=u;if(r===!0)for(let f=c.from;f<=c.to;f++)Ui(f,t,r);else{for(let f=c.from;f<=c.to&&f<Bi;f++)Ui(f,t,r);if(c.to>=Bi){const f=c.from>=Bi?c.from:Bi,p=c.to,m=gr(f),T=gr(p);for(let g=m;g<=T;g++)t[g]=g}}}});break;case"Group":cl(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}const l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&fl(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Me(t)}i(cl,"firstCharOptimizedIndices");function Ui(e,t,r){const n=gr(e);t[n]=n,r===!0&&LA(e,t)}i(Ui,"addOptimizedIdxToResult");function LA(e,t){const r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){const a=gr(n.charCodeAt(0));t[a]=a}else{const a=r.toLowerCase();if(a!==r){const s=gr(a.charCodeAt(0));t[s]=s}}}i(LA,"handleIgnoreCase");function bf(e,t){return Ua(e.value,r=>{if(typeof r=="number")return nt(t,r);{const n=r;return Ua(t,a=>n.from<=a&&a<=n.to)!==void 0}})}i(bf,"findCode");function fl(e){const t=e.quantifier;return t&&t.atLeast===0?!0:e.value?ee(e.value)?kt(e.value,fl):fl(e.value):!1}i(fl,"isWholeOptional");var kL=class extends Fl{static{i(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){nt(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?bf(e,this.targetCharCodes)===void 0&&(this.found=!0):bf(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function ou(e,t){if(t instanceof RegExp){const r=Bs(t),n=new kL(e);return n.visit(r),n.found}else return Ua(t,r=>nt(e,r.charCodeAt(0)))!==void 0}i(ou,"canMatchCharCode");var bn="PATTERN",Ki="defaultMode",Zs="modes";function DA(e,t){t=Gd(t,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
56
+ `],tracer:i((S,A)=>A(),"tracer")});const r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{rE()});let n;r("Reject Lexer.NA",()=>{n=iu(e,S=>S[bn]===Ze.NA)});let a=!1,s;r("Transform Patterns",()=>{a=!1,s=F(n,S=>{const A=S[bn];if(hr(A)){const k=A.source;return k.length===1&&k!=="^"&&k!=="$"&&k!=="."&&!A.ignoreCase?k:k.length===2&&k[0]==="\\"&&!nt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],k[1])?k[1]:Cf(A)}else{if(Ar(A))return a=!0,{exec:A};if(typeof A=="object")return a=!0,A;if(typeof A=="string"){if(A.length===1)return A;{const k=A.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&");return Cf(new RegExp(k))}}else throw Error("non exhaustive match")}})});let o,l,u,c,f;r("misc mapping",()=>{o=F(n,S=>S.tokenTypeIdx),l=F(n,S=>{const A=S.GROUP;if(A!==Ze.SKIPPED){if(st(A))return A;if(yr(A))return!1;throw Error("non exhaustive match")}}),u=F(n,S=>{const A=S.LONGER_ALT;if(A)return ee(A)?F(A,k=>xh(n,k)):[xh(n,A)]}),c=F(n,S=>S.PUSH_MODE),f=F(n,S=>j(S,"POP_MODE"))});let p;r("Line Terminator Handling",()=>{const S=qd(t.lineTerminatorCharacters);p=F(n,A=>!1),t.positionTracking!=="onlyOffset"&&(p=F(n,A=>j(A,"LINE_BREAKS")?!!A.LINE_BREAKS:Bd(A,S)===!1&&ou(S,A.PATTERN)))});let m,T,g,_;r("Misc Mapping #2",()=>{m=F(n,Kd),T=F(s,eE),g=mt(n,(S,A)=>{const k=A.GROUP;return st(k)&&k!==Ze.SKIPPED&&(S[k]=[]),S},{}),_=F(s,(S,A)=>({pattern:s[A],longerAlt:u[A],canLineTerminator:p[A],isCustom:m[A],short:T[A],group:l[A],push:c[A],pop:f[A],tokenTypeIdx:o[A],tokenType:n[A]}))});let I=!0,N=[];return t.safeMode||r("First Char Optimization",()=>{N=mt(n,(S,A,k)=>{if(typeof A.PATTERN=="string")_o(S,gr(A.PATTERN.charCodeAt(0)),_[k]);else if(ee(A.START_CHARS_HINT)){let ae;K(A.START_CHARS_HINT,Z=>{const H=gr(typeof Z=="string"?Z.charCodeAt(0):Z);ae!==H&&(ae=H,_o(S,H,_[k]))})}else if(hr(A.PATTERN))if(A.PATTERN.unicode)I=!1,t.ensureOptimizations&&ll(`${ul} Unable to analyze < ${A.PATTERN.toString()} > pattern.
57
+ The regexp unicode flag is not currently supported by the regexp-to-ast library.
58
+ This will disable the lexer's first char optimizations.
59
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const ae=OA(A.PATTERN,t.ensureOptimizations);pe(ae)&&(I=!1),K(ae,Z=>{_o(S,Z,_[k])})}else t.ensureOptimizations&&ll(`${ul} TokenType: <${A.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
60
+ This will disable the lexer's first char optimizations.
61
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),I=!1;return S},[])}),{emptyGroups:g,patternIdxToConfig:_,charCodeToPatternIdxToConfig:N,hasCustom:a,canBeOptimized:I}}i(DA,"analyzeTokenTypes");function MA(e,t){let r=[];const n=GA(e);r=r.concat(n.errors);const a=FA(n.valid),s=a.valid;return r=r.concat(a.errors),r=r.concat(xA(s)),r=r.concat(qA(s)),r=r.concat(WA(s,t)),r=r.concat(VA(s)),r}i(MA,"validatePatterns");function xA(e){let t=[];const r=Et(e,n=>hr(n[bn]));return t=t.concat(zA(r)),t=t.concat(UA(r)),t=t.concat(KA(r)),t=t.concat(BA(r)),t=t.concat(jA(r)),t}i(xA,"validateRegExpPattern");function GA(e){const t=Et(e,r=>!j(r,bn));return{errors:F(t,r=>({message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:Ce.MISSING_PATTERN,tokenTypes:[r]})),valid:au(e,t)}}i(GA,"findMissingPatterns");function FA(e){const t=Et(e,r=>{const n=r[bn];return!hr(n)&&!Ar(n)&&!j(n,"exec")&&!st(n)});return{errors:F(t,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Ce.INVALID_PATTERN,tokenTypes:[r]})),valid:au(e,t)}}i(FA,"findInvalidPatterns");var OL=/[^\\][$]/;function zA(e){class t extends Fl{static{i(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(n){this.found=!0}}return F(Et(e,r=>{const n=r.PATTERN;try{const a=Bs(n),s=new t;return s.visit(a),s.found}catch{return OL.test(n.source)}}),r=>({message:`Unexpected RegExp Anchor Error:
62
+ Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
63
+ See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ce.EOI_ANCHOR_FOUND,tokenTypes:[r]}))}i(zA,"findEndOfInputAnchor");function jA(e){return F(Et(e,t=>t.PATTERN.test("")),t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:Ce.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}i(jA,"findEmptyMatchRegExps");var LL=/[^\\[][\^]|^\^/;function UA(e){class t extends Fl{static{i(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(n){this.found=!0}}return F(Et(e,r=>{const n=r.PATTERN;try{const a=Bs(n),s=new t;return s.visit(a),s.found}catch{return LL.test(n.source)}}),r=>({message:`Unexpected RegExp Anchor Error:
64
+ Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
65
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ce.SOI_ANCHOR_FOUND,tokenTypes:[r]}))}i(UA,"findStartOfInputAnchor");function KA(e){return F(Et(e,t=>{const r=t[bn];return r instanceof RegExp&&(r.multiline||r.global)}),t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Ce.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}i(KA,"findUnsupportedFlags");function BA(e){const t=[];let r=F(e,n=>mt(e,(a,s)=>(n.PATTERN.source===s.PATTERN.source&&!nt(t,s)&&s.PATTERN!==Ze.NA&&(t.push(s),a.push(s)),a),[]));return r=Ks(r),F(Et(r,n=>n.length>1),n=>{const a=F(n,s=>s.name);return{message:`The same RegExp pattern ->${Lt(n).PATTERN}<-has been used in all of the following Token Types: ${a.join(", ")} <-`,type:Ce.DUPLICATE_PATTERNS_FOUND,tokenTypes:n}})}i(BA,"findDuplicatePatterns");function qA(e){return F(Et(e,t=>{if(!j(t,"GROUP"))return!1;const r=t.GROUP;return r!==Ze.SKIPPED&&r!==Ze.NA&&!st(r)}),t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Ce.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}i(qA,"findInvalidGroupType");function WA(e,t){return F(Et(e,r=>r.PUSH_MODE!==void 0&&!nt(t,r.PUSH_MODE)),r=>({message:`Token Type: ->${r.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${r.PUSH_MODE}<-which does not exist`,type:Ce.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}))}i(WA,"findModesThatDoNotExist");function VA(e){const t=[],r=mt(e,(n,a,s)=>{const o=a.PATTERN;return o===Ze.NA||(st(o)?n.push({str:o,idx:s,tokenType:a}):hr(o)&&YA(o)&&n.push({str:o.source,idx:s,tokenType:a})),n},[]);return K(e,(n,a)=>{K(r,({str:s,idx:o,tokenType:l})=>{if(a<o&&HA(s,n.PATTERN)){const u=`Token: ->${l.name}<- can never be matched.
66
+ Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
67
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:u,type:Ce.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),t}i(VA,"findUnreachablePatterns");function HA(e,t){if(hr(t)){if(XA(t))return!1;const r=t.exec(e);return r!==null&&r.index===0}else{if(Ar(t))return t(e,0,[],{});if(j(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}i(HA,"tryToMatchStrToPattern");function YA(e){return Ua([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>e.source.indexOf(t)!==-1)===void 0}i(YA,"noMetaChar");function XA(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}i(XA,"usesLookAheadOrBehind");function Cf(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}i(Cf,"addStickyFlag");function JA(e,t,r){const n=[];return j(e,Ki)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ki+`> property in its definition
68
+ `,type:Ce.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),j(e,Zs)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Zs+`> property in its definition
69
+ `,type:Ce.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),j(e,Zs)&&j(e,Ki)&&!j(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Ki}: <${e.defaultMode}>which does not exist
70
+ `,type:Ce.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),j(e,Zs)&&K(e.modes,(a,s)=>{K(a,(o,l)=>{yr(o)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${l}>
71
+ `,type:Ce.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):j(o,"LONGER_ALT")&&K(ee(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT],u=>{!yr(u)&&!nt(a,u)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${o.name}> outside of mode <${s}>
72
+ `,type:Ce.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),n}i(JA,"performRuntimeChecks");function ZA(e,t,r){const n=[];let a=!1;const s=iu(Ks(Pt(Me(e.modes))),l=>l[bn]===Ze.NA),o=qd(r);return t&&K(s,l=>{const u=Bd(l,o);if(u!==!1){const c={message:tE(l,u),type:u.issue,tokenType:l};n.push(c)}else j(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(a=!0):ou(o,l.PATTERN)&&(a=!0)}),t&&!a&&n.push({message:`Warning: No LINE_BREAKS Found.
73
+ This Lexer has been defined to track line and column information,
74
+ But none of the Token Types can be identified as matching a line terminator.
75
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
76
+ for details.`,type:Ce.NO_LINE_BREAKS_FLAGS}),n}i(ZA,"performWarningRuntimeChecks");function QA(e){const t={};return K(pt(e),r=>{const n=e[r];if(ee(n))t[r]=[];else throw Error("non exhaustive match")}),t}i(QA,"cloneEmptyGroups");function Kd(e){const t=e.PATTERN;if(hr(t))return!1;if(Ar(t))return!0;if(j(t,"exec"))return!0;if(st(t))return!1;throw Error("non exhaustive match")}i(Kd,"isCustomPattern");function eE(e){return st(e)&&e.length===1?e.charCodeAt(0):!1}i(eE,"isShortPattern");var DL={test:i(function(e){const t=e.length;for(let r=this.lastIndex;r<t;r++){const n=e.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return e.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};function Bd(e,t){if(j(e,"LINE_BREAKS"))return!1;if(hr(e.PATTERN)){try{ou(t,e.PATTERN)}catch(r){return{issue:Ce.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(st(e.PATTERN))return!1;if(Kd(e))return{issue:Ce.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}i(Bd,"checkLineBreaksIssues");function tE(e,t){if(t.issue===Ce.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
77
+ The problem is in the <${e.name}> Token Type
78
+ Root cause: ${t.errMsg}.
79
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Ce.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
80
+ The problem is in the <${e.name}> Token Type
81
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}i(tE,"buildLineBreakIssueMessage");function qd(e){return F(e,t=>st(t)?t.charCodeAt(0):t)}i(qd,"getCharCodes");function _o(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}i(_o,"addToMapOfArrays");var Bi=256,So=[];function gr(e){return e<Bi?e:So[e]}i(gr,"charCodeToOptimizedIndex");function rE(){if(pe(So)){So=new Array(65536);for(let e=0;e<65536;e++)So[e]=e>255?255+~~(e/255):e}}i(rE,"initCharCodeToOptimizedIndexMap");function Ja(e,t){const r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}i(Ja,"tokenStructuredMatcher");function vs(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}i(vs,"tokenStructuredMatcherNoCategories");var Fh=1,nE={};function Za(e){const t=aE(e);iE(t),oE(t),sE(t),K(t,r=>{r.isParent=r.categoryMatches.length>0})}i(Za,"augmentTokenTypes");function aE(e){let t=qe(e),r=e,n=!0;for(;n;){r=Ks(Pt(F(r,s=>s.CATEGORIES)));const a=au(r,t);t=t.concat(a),pe(a)?n=!1:r=a}return t}i(aE,"expandCategories");function iE(e){K(e,t=>{Vd(t)||(nE[Fh]=t,t.tokenTypeIdx=Fh++),_f(t)&&!ee(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),_f(t)||(t.CATEGORIES=[]),lE(t)||(t.categoryMatches=[]),uE(t)||(t.categoryMatchesMap={})})}i(iE,"assignTokenDefaultProps");function sE(e){K(e,t=>{t.categoryMatches=[],K(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(nE[n].tokenTypeIdx)})})}i(sE,"assignCategoriesTokensProp");function oE(e){K(e,t=>{Wd([],t)})}i(oE,"assignCategoriesMapProp");function Wd(e,t){K(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),K(t.CATEGORIES,r=>{const n=e.concat(t);nt(n,r)||Wd(n,r)})}i(Wd,"singleAssignCategoriesToksMap");function Vd(e){return j(e,"tokenTypeIdx")}i(Vd,"hasShortKeyProperty");function _f(e){return j(e,"CATEGORIES")}i(_f,"hasCategoriesProperty");function lE(e){return j(e,"categoryMatches")}i(lE,"hasExtendingTokensTypesProperty");function uE(e){return j(e,"categoryMatchesMap")}i(uE,"hasExtendingTokensTypesMapProperty");function cE(e){return j(e,"tokenTypeIdx")}i(cE,"isTokenType");var Sf={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,a,s){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}},Ce;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Ce||(Ce={}));var qi={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
82
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Sf,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(qi);var Ze=class{static{i(this,"Lexer")}constructor(e,t=qi){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(n,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&`${s}${n}`;const{time:o,value:l}=jd(a),u=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${s}<-- <${n}> time: ${o}ms`),this.traceInitIndent--,l}else return a()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
83
+ a boolean 2nd argument is no longer supported`);this.config=dt({},qi,t);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===qi.lineTerminatorsPattern)this.config.lineTerminatorsPattern=DL;else if(this.config.lineTerminatorCharacters===qi.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
84
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),ee(e)?n={modes:{defaultMode:qe(e)},defaultMode:Ki}:(a=!1,n=qe(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(JA(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(ZA(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},K(n.modes,(o,l)=>{n.modes[l]=iu(o,u=>yr(u))});const s=pt(n.modes);if(K(n.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(MA(o,s))}),pe(this.lexerDefinitionErrors)){Za(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=DA(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=dt({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=n.defaultMode,!pe(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const o=F(this.lexerDefinitionErrors,l=>l.message).join(`-----------------------
85
+ `);throw new Error(`Errors detected in definition of Lexer:
86
+ `+o)}K(this.lexerDefinitionWarning,o=>{zd(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(a&&(this.handleModes=Ge),this.trackStartLines===!1&&(this.computeNewColumn=xs),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Ge),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const o=mt(this.canModeBeOptimized,(l,u,c)=>(u===!1&&l.push(c),l),[]);if(t.ensureOptimizations&&!pe(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized.
87
+ Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
88
+ Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{PA()}),this.TRACE_INIT("toFastProperties",()=>{Ud(this)})})}tokenize(e,t=this.defaultMode){if(!pe(this.lexerDefinitionErrors)){const r=F(this.lexerDefinitionErrors,n=>n.message).join(`-----------------------
89
+ `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
90
+ `+r)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,a,s,o,l,u,c,f,p,m,T,g,_,I;const N=e,S=N.length;let A=0,k=0;const ae=this.hasCustom?0:Math.floor(e.length/10),Z=new Array(ae),H=[];let ge=this.trackStartLines?1:void 0,ie=this.trackStartLines?1:void 0;const _e=QA(this.emptyGroups),P=this.trackStartLines,y=this.config.lineTerminatorsPattern;let v=0,C=[],$=[];const R=[],b=[];Object.freeze(b);let O=!1;const M=i(Y=>{if(R.length===1&&Y.tokenType.PUSH_MODE===void 0){const q=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Y);H.push({offset:Y.startOffset,line:Y.startLine,column:Y.startColumn,length:Y.image.length,message:q})}else{R.pop();const q=En(R);C=this.patternIdxToConfig[q],$=this.charCodeToPatternIdxToConfig[q],v=C.length;const Ne=this.canModeBeOptimized[q]&&this.config.safeMode===!1;$&&Ne?O=!0:O=!1}},"pop_mode");function D(Y){R.push(Y),$=this.charCodeToPatternIdxToConfig[Y],C=this.patternIdxToConfig[Y],v=C.length,v=C.length;const q=this.canModeBeOptimized[Y]&&this.config.safeMode===!1;$&&q?O=!0:O=!1}i(D,"push_mode"),D.call(this,t);let x;const B=this.config.recoveryEnabled;for(;A<S;){l=null,f=-1;const Y=N.charCodeAt(A);let q;if(O){const se=gr(Y),Oe=$[se];q=Oe!==void 0?Oe:b}else q=C;const Ne=q.length;for(r=0;r<Ne;r++){x=q[r];const se=x.pattern;u=null;const Oe=x.short;if(Oe!==!1?Y===Oe&&(f=1,l=se):x.isCustom===!0?(I=se.exec(N,A,Z,_e),I!==null?(l=I[0],f=l.length,I.payload!==void 0&&(u=I.payload)):l=null):(se.lastIndex=A,f=this.matchLength(se,e,A)),f!==-1){if(o=x.longerAlt,o!==void 0){l=e.substring(A,A+f);const Le=o.length;for(a=0;a<Le;a++){const Pe=C[o[a]],Ve=Pe.pattern;if(c=null,Pe.isCustom===!0?(I=Ve.exec(N,A,Z,_e),I!==null?(s=I[0],I.payload!==void 0&&(c=I.payload)):s=null):(Ve.lastIndex=A,s=this.match(Ve,e,A)),s&&s.length>l.length){l=s,f=s.length,u=c,x=Pe;break}}}break}}if(f!==-1){if(p=x.group,p!==void 0&&(l=l!==null?l:e.substring(A,A+f),m=x.tokenTypeIdx,T=this.createTokenInstance(l,A,m,x.tokenType,ge,ie,f),this.handlePayload(T,u),p===!1?k=this.addToken(Z,k,T):_e[p].push(T)),P===!0&&x.canLineTerminator===!0){let se=0,Oe,Le;y.lastIndex=0;do l=l!==null?l:e.substring(A,A+f),Oe=y.test(l),Oe===!0&&(Le=y.lastIndex-1,se++);while(Oe===!0);se!==0?(ge=ge+se,ie=f-Le,this.updateTokenEndLineColumnLocation(T,p,Le,se,ge,ie,f)):ie=this.computeNewColumn(ie,f)}else ie=this.computeNewColumn(ie,f);A=A+f,this.handleModes(x,M,D,T)}else{const se=A,Oe=ge,Le=ie;let Pe=B===!1;for(;Pe===!1&&A<S;)for(A++,n=0;n<v;n++){const Ve=C[n],We=Ve.pattern,te=Ve.short;if(te!==!1?N.charCodeAt(A)===te&&(Pe=!0):Ve.isCustom===!0?Pe=We.exec(N,A,Z,_e)!==null:(We.lastIndex=A,Pe=We.exec(e)!==null),Pe===!0)break}if(g=A-se,ie=this.computeNewColumn(ie,g),_=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(N,se,g,Oe,Le,En(R)),H.push({offset:se,line:Oe,column:Le,length:g,message:_}),B===!1)break}}return this.hasCustom||(Z.length=k),{tokens:Z,groups:_e,errors:H}}handleModes(e,t,r,n){if(e.pop===!0){const a=e.push;t(n),a!==void 0&&r.call(this,a)}else e.push!==void 0&&r.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,r,n,a,s,o){let l,u;t!==void 0&&(l=r===o-1,u=l?-1:0,n===1&&l===!0||(e.endLine=a+u,e.endColumn=s-1+-u))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,a,s){return{image:e,startOffset:t,startLine:a,startColumn:s,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,a,s,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:a,endLine:a,startColumn:s,endColumn:s+o-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,t++,t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){t!==null&&(e.payload=t)}match(e,t,r){return e.test(t)===!0?t.substring(r,e.lastIndex):null}matchLength(e,t,r){return e.test(t)===!0?e.lastIndex-r:-1}};Ze.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";Ze.NA=/NOT_APPLICABLE/;function $n(e){return Hd(e)?e.LABEL:e.name}i($n,"tokenLabel");function Hd(e){return st(e.LABEL)&&e.LABEL!==""}i(Hd,"hasTokenLabel");var ML="parent",zh="categories",jh="label",Uh="group",Kh="push_mode",Bh="pop_mode",qh="longer_alt",Wh="line_breaks",Vh="start_chars_hint";function ka(e){return fE(e)}i(ka,"createToken");function fE(e){const t=e.pattern,r={};if(r.name=e.name,yr(t)||(r.PATTERN=t),j(e,ML))throw`The parent property is no longer supported.
91
+ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return j(e,zh)&&(r.CATEGORIES=e[zh]),Za([r]),j(e,jh)&&(r.LABEL=e[jh]),j(e,Uh)&&(r.GROUP=e[Uh]),j(e,Bh)&&(r.POP_MODE=e[Bh]),j(e,Kh)&&(r.PUSH_MODE=e[Kh]),j(e,qh)&&(r.LONGER_ALT=e[qh]),j(e,Wh)&&(r.LINE_BREAKS=e[Wh]),j(e,Vh)&&(r.START_CHARS_HINT=e[Vh]),r}i(fE,"createTokenInternal");var Lr=ka({name:"EOF",pattern:Ze.NA});Za([Lr]);function qs(e,t,r,n,a,s,o,l){return{image:t,startOffset:r,endOffset:n,startLine:a,endLine:s,startColumn:o,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}i(qs,"createTokenInstance");function Yd(e,t){return Ja(e,t)}i(Yd,"tokenMatcher");var Ia={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){return`Expecting ${Hd(e)?`--> ${$n(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:a}){const s="Expecting: ",o=`
92
+ but found: '`+Lt(t).image+"'";return n?s+n+o:`Expecting: one of these possible Token sequences:
93
+ ${F(F(mt(e,(l,u)=>l.concat(u),[]),l=>`[${F(l,u=>$n(u)).join(", ")}]`),(l,u)=>` ${u+1}. ${l}`).join(`
94
+ `)}`+o},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){const a="Expecting: ",s=`
95
+ but found: '`+Lt(t).image+"'";return r?a+r+s:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences::
96
+ <${F(e,o=>`[${F(o,l=>$n(l)).join(",")}]`).join(" ,")}>`+s}};Object.freeze(Ia);var xL={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
97
+ inside top level rule: ->`+e.name+"<-"}},gn={buildDuplicateFoundError(e,t){function r(c){return c instanceof ye?c.terminalType.name:c instanceof et?c.nonTerminalName:""}i(r,"getExtraProductionArgument");const n=e.name,a=Lt(t),s=a.idx,o=St(a),l=r(a);let u=`->${o}${s>0?s:""}<- ${l?`with argument: ->${l}<-`:""}
98
+ appears more than once (${t.length} times) in the top level rule: ->${n}<-.
99
+ For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
100
+ `;return u=u.replace(/[ \t]+/g," "),u=u.replace(/\s\s+/g,`
101
+ `),u},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
102
+ The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
103
+ To resolve this make sure each Terminal and Non-Terminal names are unique
104
+ This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
105
+ and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){const t=F(e.prefixPath,n=>$n(n)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
106
+ in <OR${r}> inside <${e.topLevelRule.name}> Rule,
107
+ <${t}> may appears as a prefix path in all these alternatives.
108
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
109
+ For Further details.`},buildAlternationAmbiguityError(e){const t=e.alternation.idx===0?"":e.alternation.idx,r=e.prefixPath.length===0;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,
110
+ `;if(r)n+=`These alternatives are all empty (match no tokens), making them indistinguishable.
111
+ Only the last alternative may be empty.
112
+ `;else{const a=F(e.prefixPath,s=>$n(s)).join(", ");n+=`<${a}> may appears as a prefix path in all these alternatives.
113
+ `}return n+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
114
+ For Further details.`,n},buildEmptyRepetitionError(e){let t=St(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
115
+ This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
116
+ Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
117
+ <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
118
+ has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){const t=e.topLevelRule.name;return`Left Recursion found in grammar.
119
+ rule: <${t}> can be invoked from itself (directly or indirectly)
120
+ without consuming any Tokens. The grammar path that causes this is:
121
+ ${`${t} --> ${F(e.leftRecursionPath,r=>r.name).concat([t]).join(" --> ")}`}
122
+ To fix this refactor your grammar to remove the left recursion.
123
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof Ha?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function pE(e,t){const r=new GL(e,t);return r.resolveRefs(),r.errors}i(pE,"resolveGrammar");var GL=class extends Ya{static{i(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){K(Me(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:tt.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},FL=class extends su{static{i(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=qe(this.path.ruleStack).reverse(),this.occurrenceStack=qe(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){pe(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},zL=class extends FL{static{i(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const n=new ot({definition:t.concat(r)});this.possibleTokTypes=Xa(n),this.found=!0}}},lu=class extends su{static{i(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},jL=class extends lu{static{i(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){const n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ye&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkMany(e,t,r)}},Hh=class extends lu{static{i(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){const n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ye&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkManySep(e,t,r)}},UL=class extends lu{static{i(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){const n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ye&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOne(e,t,r)}},Yh=class extends lu{static{i(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){const n=Lt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof ye&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOneSep(e,t,r)}};function pl(e,t,r=[]){r=qe(r);let n=[],a=0;function s(l){return l.concat(Ke(e,a+1))}i(s,"remainingPathWith");function o(l){const u=pl(s(l),t,r);return n.concat(u)}for(i(o,"getAlternativesForProd");r.length<t&&a<e.length;){const l=e[a];if(l instanceof ot)return o(l.definition);if(l instanceof et)return o(l.definition);if(l instanceof Be)n=o(l.definition);else{if(l instanceof ht)return o(l.definition.concat([new be({definition:l.definition})]));if(l instanceof yt)return o([new ot({definition:l.definition}),new be({definition:[new ye({terminalType:l.separator})].concat(l.definition)})]);if(l instanceof lt)n=o(l.definition.concat([new be({definition:[new ye({terminalType:l.separator})].concat(l.definition)})]));else if(l instanceof be)n=o(l.definition.concat([new be({definition:l.definition})]));else{if(l instanceof ut)return K(l.definition,u=>{pe(u.definition)===!1&&(n=o(u.definition))}),n;if(l instanceof ye)r.push(l.terminalType);else throw Error("non exhaustive match")}}a++}return n.push({partialPath:r,suffixDef:Ke(e,a)}),n}i(pl,"possiblePathsFrom");function Xd(e,t,r,n){const a="EXIT_NONE_TERMINAL",s=[a],o="EXIT_ALTERNATIVE";let l=!1;const u=t.length,c=u-n-1,f=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!pe(p);){const m=p.pop();if(m===o){l&&En(p).idx<=c&&p.pop();continue}const T=m.def,g=m.idx,_=m.ruleStack,I=m.occurrenceStack;if(pe(T))continue;const N=T[0];if(N===a){const S={idx:g,def:Ke(T),ruleStack:ys(_),occurrenceStack:ys(I)};p.push(S)}else if(N instanceof ye)if(g<u-1){const S=g+1,A=t[S];if(r(A,N.terminalType)){const k={idx:S,def:Ke(T),ruleStack:_,occurrenceStack:I};p.push(k)}}else if(g===u-1)f.push({nextTokenType:N.terminalType,nextTokenOccurrence:N.idx,ruleStack:_,occurrenceStack:I}),l=!0;else throw Error("non exhaustive match");else if(N instanceof et){const S=qe(_);S.push(N.nonTerminalName);const A=qe(I);A.push(N.idx);const k={idx:g,def:N.definition.concat(s,Ke(T)),ruleStack:S,occurrenceStack:A};p.push(k)}else if(N instanceof Be){const S={idx:g,def:Ke(T),ruleStack:_,occurrenceStack:I};p.push(S),p.push(o);const A={idx:g,def:N.definition.concat(Ke(T)),ruleStack:_,occurrenceStack:I};p.push(A)}else if(N instanceof ht){const S=new be({definition:N.definition,idx:N.idx}),A={idx:g,def:N.definition.concat([S],Ke(T)),ruleStack:_,occurrenceStack:I};p.push(A)}else if(N instanceof yt){const S=new be({definition:[new ye({terminalType:N.separator})].concat(N.definition),idx:N.idx}),A={idx:g,def:N.definition.concat([S],Ke(T)),ruleStack:_,occurrenceStack:I};p.push(A)}else if(N instanceof lt){const S={idx:g,def:Ke(T),ruleStack:_,occurrenceStack:I};p.push(S),p.push(o);const A=new be({definition:[new ye({terminalType:N.separator})].concat(N.definition),idx:N.idx}),k={idx:g,def:N.definition.concat([A],Ke(T)),ruleStack:_,occurrenceStack:I};p.push(k)}else if(N instanceof be){const S={idx:g,def:Ke(T),ruleStack:_,occurrenceStack:I};p.push(S),p.push(o);const A=new be({definition:N.definition,idx:N.idx}),k={idx:g,def:N.definition.concat([A],Ke(T)),ruleStack:_,occurrenceStack:I};p.push(k)}else if(N instanceof ut)for(let S=N.definition.length-1;S>=0;S--){const A={idx:g,def:N.definition[S].definition.concat(Ke(T)),ruleStack:_,occurrenceStack:I};p.push(A),p.push(o)}else if(N instanceof ot)p.push({idx:g,def:N.definition.concat(Ke(T)),ruleStack:_,occurrenceStack:I});else if(N instanceof Ha)p.push(dE(N,g,_,I));else throw Error("non exhaustive match")}return f}i(Xd,"nextPossibleTokensAfter");function dE(e,t,r,n){const a=qe(r);a.push(e.name);const s=qe(n);return s.push(1),{idx:t,def:e.definition,ruleStack:a,occurrenceStack:s}}i(dE,"expandTopLevelRule");var $e;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})($e||($e={}));function uu(e){if(e instanceof Be||e==="Option")return $e.OPTION;if(e instanceof be||e==="Repetition")return $e.REPETITION;if(e instanceof ht||e==="RepetitionMandatory")return $e.REPETITION_MANDATORY;if(e instanceof yt||e==="RepetitionMandatoryWithSeparator")return $e.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof lt||e==="RepetitionWithSeparator")return $e.REPETITION_WITH_SEPARATOR;if(e instanceof ut||e==="Alternation")return $e.ALTERNATION;throw Error("non exhaustive match")}i(uu,"getProdType");function wf(e){const{occurrence:t,rule:r,prodType:n,maxLookahead:a}=e,s=uu(n);return s===$e.ALTERNATION?Ws(t,r,a):Vs(t,r,s,a)}i(wf,"getLookaheadPaths");function mE(e,t,r,n,a,s){const o=Ws(e,t,r);return s(o,n,Zd(o)?vs:Ja,a)}i(mE,"buildLookaheadFuncForOr");function hE(e,t,r,n,a,s){const o=Vs(e,t,a,r),l=Zd(o)?vs:Ja;return s(o[0],l,n)}i(hE,"buildLookaheadFuncForOptionalProd");function yE(e,t,r,n){const a=e.length,s=kt(e,o=>kt(o,l=>l.length===1));if(t)return function(o){const l=F(o,u=>u.GATE);for(let u=0;u<a;u++){const c=e[u],f=c.length,p=l[u];if(!(p!==void 0&&p.call(this)===!1))e:for(let m=0;m<f;m++){const T=c[m],g=T.length;for(let _=0;_<g;_++)if(r(this.LA(_+1),T[_])===!1)continue e;return u}}};if(s&&!n){const o=mt(F(e,l=>Pt(l)),(l,u,c)=>(K(u,f=>{j(l,f.tokenTypeIdx)||(l[f.tokenTypeIdx]=c),K(f.categoryMatches,p=>{j(l,p)||(l[p]=c)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let o=0;o<a;o++){const l=e[o],u=l.length;e:for(let c=0;c<u;c++){const f=l[c],p=f.length;for(let m=0;m<p;m++)if(r(this.LA(m+1),f[m])===!1)continue e;return o}}}}i(yE,"buildAlternativesLookAheadFunc");function gE(e,t,r){const n=kt(e,s=>s.length===1),a=e.length;if(n&&!r){const s=Pt(e);if(s.length===1&&pe(s[0].categoryMatches)){const o=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const o=mt(s,(l,u,c)=>(l[u.tokenTypeIdx]=!0,K(u.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){const l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let s=0;s<a;s++){const o=e[s],l=o.length;for(let u=0;u<l;u++)if(t(this.LA(u+1),o[u])===!1)continue e;return!0}return!1}}i(gE,"buildSingleAlternativeLookaheadFunction");var KL=class extends su{static{i(this,"RestDefinitionFinderWalker")}constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=r.concat(n),!0):!1}walkOption(e,t,r){this.checkIsTarget(e,$e.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,$e.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,$e.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,$e.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,$e.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},vE=class extends Ya{static{i(this,"InsideDefinitionFinderVisitor")}constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,$e.OPTION)}visitRepetition(e){this.checkIsTarget(e,$e.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,$e.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,$e.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,$e.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,$e.ALTERNATION)}};function If(e){const t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}i(If,"initializeArrayOfArrays");function wo(e){let t=[""];for(let r=0;r<e.length;r++){const n=e[r],a=[];for(let s=0;s<t.length;s++){const o=t[s];a.push(o+"_"+n.tokenTypeIdx);for(let l=0;l<n.categoryMatches.length;l++){const u="_"+n.categoryMatches[l];a.push(o+u)}}t=a}return t}i(wo,"pathToHashKeys");function TE(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;const a=e[n];for(let s=0;s<t.length;s++)if(a[t[s]]===!0)return!1}return!0}i(TE,"isUniquePrefixHash");function Jd(e,t){const r=F(e,o=>pl([o],1)),n=If(r.length),a=F(r,o=>{const l={};return K(o,u=>{K(wo(u.partialPath),c=>{l[c]=!0})}),l});let s=r;for(let o=1;o<=t;o++){const l=s;s=If(l.length);for(let u=0;u<l.length;u++){const c=l[u];for(let f=0;f<c.length;f++){const p=c[f].partialPath,m=c[f].suffixDef,T=wo(p);if(TE(a,T,u)||pe(m)||p.length===t){const g=n[u];if(dl(g,p)===!1){g.push(p);for(let _=0;_<T.length;_++){const I=T[_];a[u][I]=!0}}}else{const g=pl(m,o+1,p);s[u]=s[u].concat(g),K(g,_=>{K(wo(_.partialPath),I=>{a[u][I]=!0})})}}}}return n}i(Jd,"lookAheadSequenceFromAlternatives");function Ws(e,t,r,n){const a=new vE(e,$e.ALTERNATION,n);return t.accept(a),Jd(a.result,r)}i(Ws,"getLookaheadPathsForOr");function Vs(e,t,r,n){const a=new vE(e,r);t.accept(a);const s=a.result,o=new KL(t,e,r).startWalking();return Jd([new ot({definition:s}),new ot({definition:o})],n)}i(Vs,"getLookaheadPathsForOptionalProd");function dl(e,t){e:for(let r=0;r<e.length;r++){const n=e[r];if(n.length===t.length){for(let a=0;a<n.length;a++){const s=t[a],o=n[a];if(!(s===o||o.categoryMatchesMap[s.tokenTypeIdx]!==void 0))continue e}return!0}}return!1}i(dl,"containsPath");function $E(e,t){return e.length<t.length&&kt(e,(r,n)=>{const a=t[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}i($E,"isStrictPrefixOfPath");function Zd(e){return kt(e,t=>kt(t,r=>kt(r,n=>pe(n.categoryMatches))))}i(Zd,"areTokenCategoriesNotUsed");function RE(e){return F(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),t=>Object.assign({type:tt.CUSTOM_LOOKAHEAD_VALIDATION},t))}i(RE,"validateLookahead");function AE(e,t,r,n){const a=Tt(e,u=>EE(u,r)),s=OE(e,t,r),o=Tt(e,u=>IE(u,r)),l=Tt(e,u=>CE(u,e,n,r));return a.concat(s,o,l)}i(AE,"validateGrammar");function EE(e,t){const r=new BL;e.accept(r);const n=r.allProductions;return F(Me(Dt(uL(n,bE),a=>a.length>1)),a=>{const s=Lt(a),o=t.buildDuplicateFoundError(e,a),l=St(s),u={message:o,type:tt.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:l,occurrence:s.idx},c=Qd(s);return c&&(u.parameter=c),u})}i(EE,"validateDuplicateProductions");function bE(e){return`${St(e)}_#_${e.idx}_#_${Qd(e)}`}i(bE,"identifyProductionForDuplicates");function Qd(e){return e instanceof ye?e.terminalType.name:e instanceof et?e.nonTerminalName:""}i(Qd,"getExtraProductionArgument");var BL=class extends Ya{static{i(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function CE(e,t,r,n){const a=[];if(mt(t,(s,o)=>o.name===e.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});a.push({message:s,type:tt.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}i(CE,"validateRuleDoesNotAlreadyExist");function _E(e,t,r){const n=[];let a;return nt(t,e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:a,type:tt.INVALID_RULE_OVERRIDE,ruleName:e})),n}i(_E,"validateRuleIsOverridden");function em(e,t,r,n=[]){const a=[],s=ss(t.definition);if(pe(s))return[];{const o=e.name;nt(s,e)&&a.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:tt.LEFT_RECURSION,ruleName:o});const l=Tt(au(s,n.concat([e])),u=>{const c=qe(n);return c.push(u),em(e,u,r,c)});return a.concat(l)}}i(em,"validateNoLeftRecursion");function ss(e){let t=[];if(pe(e))return t;const r=Lt(e);if(r instanceof et)t.push(r.referencedRule);else if(r instanceof ot||r instanceof Be||r instanceof ht||r instanceof yt||r instanceof lt||r instanceof be)t=t.concat(ss(r.definition));else if(r instanceof ut)t=Pt(F(r.definition,s=>ss(s.definition)));else if(!(r instanceof ye))throw Error("non exhaustive match");const n=gs(r),a=e.length>1;if(n&&a){const s=Ke(e);return t.concat(ss(s))}else return t}i(ss,"getFirstNoneTerminal");var tm=class extends Ya{static{i(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function SE(e,t){const r=new tm;e.accept(r);const n=r.alternations;return Tt(n,a=>Tt(ys(a.definition),(s,o)=>pe(Xd([s],[],Ja,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:a,emptyChoiceIdx:o}),type:tt.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:a.idx,alternative:o+1}]:[]))}i(SE,"validateEmptyOrAlternative");function wE(e,t,r){const n=new tm;e.accept(n);let a=n.alternations;return a=iu(a,s=>s.ignoreAmbiguities===!0),Tt(a,s=>{const o=s.idx,l=Ws(o,e,s.maxLookahead||t,s),u=PE(l,s,e,r),c=kE(l,s,e,r);return u.concat(c)})}i(wE,"validateAmbiguousAlternationAlternatives");var qL=class extends Ya{static{i(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function IE(e,t){const r=new tm;e.accept(r);const n=r.alternations;return Tt(n,a=>a.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:a}),type:tt.TOO_MANY_ALTS,ruleName:e.name,occurrence:a.idx}]:[])}i(IE,"validateTooManyAlts");function NE(e,t,r){const n=[];return K(e,a=>{const s=new qL;a.accept(s);const o=s.allProductions;K(o,l=>{const u=uu(l),c=l.maxLookahead||t,f=l.idx,p=Vs(f,a,u,c)[0];if(pe(Pt(p))){const m=r.buildEmptyRepetitionError({topLevelRule:a,repetition:l});n.push({message:m,type:tt.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}i(NE,"validateSomeNonEmptyLookaheadPath");function PE(e,t,r,n){const a=[];return F(mt(e,(s,o,l)=>(t.definition[l].ignoreAmbiguities===!0||K(o,u=>{const c=[l];K(e,(f,p)=>{l!==p&&dl(f,u)&&t.definition[p].ignoreAmbiguities!==!0&&c.push(p)}),c.length>1&&!dl(a,u)&&(a.push(u),s.push({alts:c,path:u}))}),s),[]),s=>{const o=F(s.alts,l=>l+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:o,prefixPath:s.path}),type:tt.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:s.alts}})}i(PE,"checkAlternativesAmbiguities");function kE(e,t,r,n){const a=mt(e,(s,o,l)=>{const u=F(o,c=>({idx:l,path:c}));return s.concat(u)},[]);return Ks(Tt(a,s=>{if(t.definition[s.idx].ignoreAmbiguities===!0)return[];const o=s.idx,l=s.path;return F(Et(a,u=>t.definition[u.idx].ignoreAmbiguities!==!0&&u.idx<o&&$E(u.path,l)),u=>{const c=[u.idx+1,o+1],f=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:c,prefixPath:u.path}),type:tt.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:f,alternatives:c}})}))}i(kE,"checkPrefixAlternativesAmbiguities");function OE(e,t,r){const n=[],a=F(t,s=>s.name);return K(e,s=>{const o=s.name;if(nt(a,o)){const l=r.buildNamespaceConflictError(s);n.push({message:l,type:tt.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}i(OE,"checkTerminalAndNoneTerminalsNameSpace");function LE(e){const t=Gd(e,{errMsgProvider:xL}),r={};return K(e.rules,n=>{r[n.name]=n}),pE(r,t.errMsgProvider)}i(LE,"resolveGrammar");function DE(e){return e=Gd(e,{errMsgProvider:gn}),AE(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}i(DE,"validateGrammar");var ME="MismatchedTokenException",xE="NoViableAltException",GE="EarlyExitException",FE="NotAllInputParsedException",zE=[ME,xE,GE,FE];Object.freeze(zE);function Ts(e){return nt(zE,e.name)}i(Ts,"isRecognitionException");var cu=class extends Error{static{i(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},jE=class extends cu{static{i(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=ME}},WL=class extends cu{static{i(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=xE}},VL=class extends cu{static{i(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=FE}},HL=class extends cu{static{i(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=GE}},Ku={},UE="InRuleRecoveryException",YL=class extends Error{static{i(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=UE}},XL=class{static{i(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=j(e,"recoveryEnabled")?e.recoveryEnabled:vr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=KE)}getTokenToInsert(e){const t=qs(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){const a=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let l=!1;const u=this.LA(1);let c=this.LA(1);const f=i(()=>{const p=this.LA(0),m=new jE(this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:u,previous:p,ruleName:this.getCurrRuleFullName()}),u,this.LA(0));m.resyncedTokens=ys(o),this.SAVE_ERROR(m)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(c,n)){f();return}else if(r.call(this)){f(),e.apply(this,t);return}else this.tokenMatcher(c,a)?l=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){const r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new YL("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||pe(t))return!1;const r=this.LA(1);return Ua(t,n=>this.tokenMatcher(r,n))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey();return nt(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),r=2;for(;;){const n=Ua(e,a=>Yd(t,a));if(n!==void 0)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Ku;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return F(e,(r,n)=>n===0?Ku:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){return Pt(F(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===Ku)return[Lr];const t=e.ruleName+e.idxInCallingRule+wA+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,Lr)||t.push(e),t}reSyncTo(e){const t=[];let r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return ys(t)}attemptInRepetitionRecovery(e,t,r,n,a,s,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:qe(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return F(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function KE(e,t,r,n,a,s,o){const l=this.getKeyForAutomaticLookahead(n,a);let u=this.firstAfterRepMap[l];if(u===void 0){const m=this.getCurrRuleFullName(),T=this.getGAstProductions()[m];u=new s(T,a).startWalking(),this.firstAfterRepMap[l]=u}let c=u.token,f=u.occurrence;const p=u.isEndOfRule;this.RULE_STACK.length===1&&p&&c===void 0&&(c=Lr,f=1),!(c===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(c,f,o)&&this.tryInRepetitionRecovery(e,t,r,c)}i(KE,"attemptInRepetitionRecovery");var JL=4,zr=8,ZL=8,BE=1<<zr,qE=2<<zr,Nf=3<<zr,Pf=4<<zr,kf=5<<zr,Io=6<<zr;function No(e,t,r){return r|t|e}i(No,"getKeyForAutomaticLookahead");32-ZL;var rm=class{static{i(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=(t=e?.maxLookahead)!==null&&t!==void 0?t:vr.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if(pe(t)){const r=this.validateEmptyOrAlternatives(e.rules),n=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...r,...n,...a]}return t}validateNoLeftRecursion(e){return Tt(e,t=>em(t,t,gn))}validateEmptyOrAlternatives(e){return Tt(e,t=>SE(t,gn))}validateAmbiguousAlternationAlternatives(e,t){return Tt(e,r=>wE(r,t,gn))}validateSomeNonEmptyLookaheadPath(e,t){return NE(e,t,gn)}buildLookaheadForAlternation(e){return mE(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,yE)}buildLookaheadForOptional(e){return hE(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,uu(e.prodType),gE)}},QL=class{static{i(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=j(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:vr.dynamicTokensEnabled,this.maxLookahead=j(e,"maxLookahead")?e.maxLookahead:vr.maxLookahead,this.lookaheadStrategy=j(e,"lookaheadStrategy")?e.lookaheadStrategy:new rm({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){K(e,t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{const{alternation:r,repetition:n,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=WE(t);K(r,u=>{const c=u.idx===0?"":u.idx;this.TRACE_INIT(`${St(u)}${c}`,()=>{const f=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:t,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=No(this.fullRuleNameToShort[t.name],BE,u.idx);this.setLaFuncCache(p,f)})}),K(n,u=>{this.computeLookaheadFunc(t,u.idx,Nf,"Repetition",u.maxLookahead,St(u))}),K(a,u=>{this.computeLookaheadFunc(t,u.idx,qE,"Option",u.maxLookahead,St(u))}),K(s,u=>{this.computeLookaheadFunc(t,u.idx,Pf,"RepetitionMandatory",u.maxLookahead,St(u))}),K(o,u=>{this.computeLookaheadFunc(t,u.idx,Io,"RepetitionMandatoryWithSeparator",u.maxLookahead,St(u))}),K(l,u=>{this.computeLookaheadFunc(t,u.idx,kf,"RepetitionWithSeparator",u.maxLookahead,St(u))})})})}computeLookaheadFunc(e,t,r,n,a,s){this.TRACE_INIT(`${s}${t===0?"":t}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),l=No(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,t){return No(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},eD=class extends Ya{static{i(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Qs=new eD;function WE(e){Qs.reset(),e.accept(Qs);const t=Qs.dslMethods;return Qs.reset(),t}i(WE,"collectMethods");function Of(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}i(Of,"setNodeLocationOnlyOffset");function Lf(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}i(Lf,"setNodeLocationFull");function VE(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}i(VE,"addTerminalToCst");function HE(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}i(HE,"addNoneTerminalToCst");var tD="name";function nm(e,t){Object.defineProperty(e,tD,{enumerable:!1,configurable:!0,writable:!1,value:t})}i(nm,"defineNameProp");function YE(e,t){const r=pt(e),n=r.length;for(let a=0;a<n;a++){const s=e[r[a]],o=s.length;for(let l=0;l<o;l++){const u=s[l];u.tokenTypeIdx===void 0&&this[u.name](u.children,t)}}}i(YE,"defaultVisit");function XE(e,t){const r=i(function(){},"derivedConstructor");return nm(r,e+"BaseSemantics"),r.prototype={visit:i(function(n,a){if(ee(n)&&(n=n[0]),!yr(n))return this[n.name](n.children,a)},"visit"),validateVisitor:i(function(){const n=ZE(this,t);if(!pe(n)){const a=F(n,s=>s.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
124
+ ${a.join(`
125
+
126
+ `).replace(/\n/g,`
127
+ `)}`)}},"validateVisitor")},r.prototype.constructor=r,r._RULE_NAMES=t,r}i(XE,"createBaseSemanticVisitorConstructor");function JE(e,t,r){const n=i(function(){},"derivedConstructor");nm(n,e+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return K(t,s=>{a[s]=YE}),n.prototype=a,n.prototype.constructor=n,n}i(JE,"createBaseVisitorConstructorWithDefaults");var Df;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Df||(Df={}));function ZE(e,t){return QE(e,t)}i(ZE,"validateVisitor");function QE(e,t){return Ks(F(Et(t,r=>Ar(e[r])===!1),r=>({msg:`Missing visitor method: <${r}> on ${e.constructor.name} CST Visitor.`,type:Df.MISSING_METHOD,methodName:r})))}i(QE,"validateMissingCstMethods");var rD=class{static{i(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=j(e,"nodeLocationTracking")?e.nodeLocationTracking:vr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Ge,this.cstFinallyStateUpdate=Ge,this.cstPostTerminal=Ge,this.cstPostNonTerminal=Ge,this.cstPostRule=Ge;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Lf,this.setNodeLocationFromNode=Lf,this.cstPostRule=Ge,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Of,this.setNodeLocationFromNode=Of,this.cstPostRule=Ge,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Ge,this.setNodeLocationFromNode=Ge,this.cstPostRule=Ge,this.setInitialNodeLocation=Ge;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){const t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];VE(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];HE(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(yr(this.baseCstVisitorConstructor)){const e=XE(this.className,pt(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(yr(this.baseCstVisitorWithDefaultsConstructor)){const e=JE(this.className,pt(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},nD=class{static{i(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ml}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?ml:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},aD=class{static{i(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=hl){if(nt(this.definedRulesNames,e)){const a={message:gn.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:tt.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(a)}this.definedRulesNames.push(e);const n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=hl){const n=_E(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);const a=this.defineRule(e,t,r);return this[e]=a,a}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if(Ts(n))return!1;throw n}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return AA(Me(this.gastProductionsCache))}},iD=class{static{i(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=vs,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},j(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
128
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
129
+ For Further details.`);if(ee(e)){if(pe(e))throw Error(`A Token Vocabulary cannot be empty.
130
+ Note that the first argument for the parser constructor
131
+ is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
132
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
133
+ For Further details.`)}if(ee(e))this.tokensMap=mt(e,(n,a)=>(n[a.name]=a,n),{});else if(j(e,"modes")&&kt(Pt(Me(e.modes)),cE)){const n=Fd(Pt(Me(e.modes)));this.tokensMap=mt(n,(a,s)=>(a[s.name]=s,a),{})}else if(Rt(e))this.tokensMap=qe(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Lr;const r=kt(j(e,"modes")?Pt(Me(e.modes)):Me(e),n=>pe(n.categoryMatches));this.tokenMatcher=r?vs:Ja,Za(Me(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
134
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const n=j(r,"resyncEnabled")?r.resyncEnabled:hl.resyncEnabled,a=j(r,"recoveryValueFunc")?r.recoveryValueFunc:hl.recoveryValueFunc,s=this.ruleShortNameIdx<<JL+zr;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let o;return this.outputCst===!0?o=i(function(...u){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,u);const c=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(c),c}catch(c){return this.invokeRuleCatch(c,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):o=i(function(...u){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,u)}catch(c){return this.invokeRuleCatch(c,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(o,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){const n=this.RULE_STACK.length===1,a=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Ts(e)){const s=e;if(a){const o=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(o))if(s.resyncedTokens=this.reSyncTo(o),this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return r(e);else{if(this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,s.partialCstResult=l}throw s}}else{if(n)return this.moveToTerminatedState(),r(e);throw s}}else throw e}optionInternal(e,t){const r=this.getKeyForAutomaticLookahead(qE,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof e!="function"){a=e.DEF;const s=e.GATE;if(s!==void 0){const o=n;n=i(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(n.call(this)===!0)return a.call(this)}atLeastOneInternal(e,t){const r=this.getKeyForAutomaticLookahead(Pf,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;const s=t.GATE;if(s!==void 0){const o=n;n=i(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=t;if(n.call(this)===!0){let s=this.doSingleRepetition(a);for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,$e.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],n,Pf,e,UL)}atLeastOneSepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(Io,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);const s=i(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,s,n,Yh],s,Io,e,Yh)}else throw this.raiseEarlyExitException(e,$e.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){const r=this.getKeyForAutomaticLookahead(Nf,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;const o=t.GATE;if(o!==void 0){const l=n;n=i(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=t;let s=!0;for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,Nf,e,jL,s)}manySepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(kf,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);const s=i(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,s,n,Hh],s,kf,e,Hh)}}repetitionSepSecondInternal(e,t,r,n,a){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,a],r,Io,e,a)}doSingleRepetition(e){const t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){const r=this.getKeyForAutomaticLookahead(BE,t),n=ee(e)?e:e.DEF,a=this.getLaFuncFromCache(r).call(this,n);if(a!==void 0)return n[a].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new VL(t,e))}}subruleInternal(e,t,r){let n;try{const a=r!==void 0?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,a),this.cstPostNonTerminal(n,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),n}catch(a){throw this.subruleInternalError(a,r,e.ruleName)}}subruleInternalError(e,t,r){throw Ts(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{const a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),n=a):this.consumeInternalError(e,a,r)}catch(a){n=this.consumeInternalRecovery(e,t,a)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n;const a=this.LA(0);throw r!==void 0&&r.ERR_MSG?n=r.ERR_MSG:n=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new jE(n,t,a))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(a){throw a.name===UE?r:a}}else throw r}saveRecogState(){const e=this.errors,t=qe(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Lr)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},sD=class{static{i(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=j(e,"errorMessageProvider")?e.errorMessageProvider:vr.errorMessageProvider}SAVE_ERROR(e){if(Ts(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:qe(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return qe(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){const n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],s=Vs(e,a,t,this.maxLookahead)[0],o=[];for(let u=1;u<=this.maxLookahead;u++)o.push(this.LA(u));const l=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:o,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new HL(l,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const r=this.getCurrRuleFullName(),n=this.getGAstProductions()[r],a=Ws(e,n,this.maxLookahead),s=[];for(let u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new WL(l,this.LA(1),o))}},oD=class{static{i(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){const r=this.gastProductionsCache[e];if(yr(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Xd([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=Lt(e.ruleStack),r=this.getGAstProductions()[t];return new zL(r,e).startWalking()}},fu={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(fu);var Xh=!0,Jh=Math.pow(2,zr)-1,eb=ka({name:"RECORDING_PHASE_TOKEN",pattern:Ze.NA});Za([eb]);var tb=qs(eb,`This IToken indicates the Parser is in Recording Phase
135
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(tb);var lD={name:`This CSTNode indicates the Parser is in Recording Phase
136
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},uD=class{static{i(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(r,n){return this.consumeInternalRecord(r,e,n)},this[`SUBRULE${t}`]=function(r,n){return this.subruleInternalRecord(r,e,n)},this[`OPTION${t}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${t}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${t}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${t}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${t}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${t}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let t=0;t<10;t++){const r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return ml}topLevelRuleRecord(e,t){try{const r=new Ha({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
137
+ This error was thrown during the "grammar recording phase" For more info see:
138
+ https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,t){return pa.call(this,Be,e,t)}atLeastOneInternalRecord(e,t){pa.call(this,ht,t,e)}atLeastOneSepFirstInternalRecord(e,t){pa.call(this,yt,t,e,Xh)}manyInternalRecord(e,t){pa.call(this,be,t,e)}manySepFirstInternalRecord(e,t){pa.call(this,lt,t,e,Xh)}orInternalRecord(e,t){return rb.call(this,e,t)}subruleInternalRecord(e,t,r){if($s(t),!e||j(e,"ruleName")===!1){const o=new Error(`<SUBRULE${Mf(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
139
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const n=En(this.recordingProdStack),a=e.ruleName,s=new et({idx:t,nonTerminalName:a,label:r?.LABEL,referencedRule:void 0});return n.definition.push(s),this.outputCst?lD:fu}consumeInternalRecord(e,t,r){if($s(t),!Vd(e)){const s=new Error(`<CONSUME${Mf(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
140
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}const n=En(this.recordingProdStack),a=new ye({idx:t,terminalType:e,label:r?.LABEL});return n.definition.push(a),tb}};function pa(e,t,r,n=!1){$s(r);const a=En(this.recordingProdStack),s=Ar(t)?t:t.DEF,o=new e({definition:[],idx:r});return n&&(o.separator=t.SEP),j(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),a.definition.push(o),this.recordingProdStack.pop(),fu}i(pa,"recordProd");function rb(e,t){$s(t);const r=En(this.recordingProdStack),n=ee(e)===!1,a=n===!1?e:e.DEF,s=new ut({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});return j(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),s.hasPredicates=gA(a,o=>Ar(o.GATE)),r.definition.push(s),K(a,o=>{const l=new ot({definition:[]});s.definition.push(l),j(o,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=o.IGNORE_AMBIGUITIES:j(o,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),o.ALT.call(this),this.recordingProdStack.pop()}),fu}i(rb,"recordOrProd");function Mf(e){return e===0?"":`${e}`}i(Mf,"getIdxSuffix");function $s(e){if(e<0||e>Jh){const t=new Error(`Invalid DSL Method idx value: <${e}>
141
+ Idx value must be a none negative value smaller than ${Jh+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}i($s,"assertMethodIdxIsValid");var cD=class{static{i(this,"PerformanceTracer")}initPerformanceTracer(e){if(j(e,"traceInitPerf")){const t=e.traceInitPerf,r=typeof t=="number";this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=vr.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&`${r}${e}`;const{time:n,value:a}=jd(t),s=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,a}else return t()}};function nb(e,t){t.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;const s=Object.getOwnPropertyDescriptor(n,a);s&&(s.get||s.set)?Object.defineProperty(e.prototype,a,s):e.prototype[a]=r.prototype[a]})})}i(nb,"applyMixins");var ml=qs(Lr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(ml);var vr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Ia,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),hl=Object.freeze({recoveryValueFunc:i(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),tt;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(tt||(tt={}));function xf(e=void 0){return function(){return e}}i(xf,"EMPTY_ALT");var am=class ab{static{i(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{Ud(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),K(this.definedRulesNames,a=>{const s=this[a].originalGrammarAction;let o;this.TRACE_INIT(`${a} Rule`,()=>{o=this.topLevelRuleRecord(a,s)}),this.gastProductionsCache[a]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=LE({rules:Me(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(pe(n)&&this.skipValidations===!1){const a=DE({rules:Me(this.gastProductionsCache),tokenTypes:Me(this.tokensMap),errMsgProvider:gn,grammarName:r}),s=RE({lookaheadStrategy:this.lookaheadStrategy,rules:Me(this.gastProductionsCache),tokenTypes:Me(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,s)}}),pe(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const a=IA(Me(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,s;(s=(a=this.lookaheadStrategy).initialize)===null||s===void 0||s.call(a,{rules:Me(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Me(this.gastProductionsCache))})),!ab.DEFER_DEFINITION_ERRORS_HANDLING&&!pe(this.definitionErrors))throw t=F(this.definitionErrors,a=>a.message),new Error(`Parser Definition Errors detected:
142
+ ${t.join(`
143
+ -------------------------------
144
+ `)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),j(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
145
+ Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
146
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
147
+ For further details.`);this.skipValidations=j(r,"skipValidations")?r.skipValidations:vr.skipValidations}};am.DEFER_DEFINITION_ERRORS_HANDLING=!1;nb(am,[XL,QL,rD,nD,iD,aD,sD,oD,uD,cD]);var fD=class extends am{static{i(this,"EmbeddedActionsParser")}constructor(e,t=vr){const r=qe(t);r.outputCst=!1,super(e,r)}};function ib(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}i(ib,"arrayMap");var sb=ib;function ob(){this.__data__=[],this.size=0}i(ob,"listCacheClear");var pD=ob;function lb(e,t){return e===t||e!==e&&t!==t}i(lb,"eq");var ub=lb;function cb(e,t){for(var r=e.length;r--;)if(ub(e[r][0],t))return r;return-1}i(cb,"assocIndexOf");var pu=cb,dD=Array.prototype.splice;function fb(e){var t=this.__data__,r=pu(t,e);return r<0?!1:(r==t.length-1?t.pop():dD.call(t,r,1),--this.size,!0)}i(fb,"listCacheDelete");var mD=fb;function pb(e){var t=this.__data__,r=pu(t,e);return r<0?void 0:t[r][1]}i(pb,"listCacheGet");var hD=pb;function db(e){return pu(this.__data__,e)>-1}i(db,"listCacheHas");var yD=db;function mb(e,t){var r=this.__data__,n=pu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(mb,"listCacheSet");var gD=mb;function zn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(zn,"ListCache");zn.prototype.clear=pD;zn.prototype.delete=mD;zn.prototype.get=hD;zn.prototype.has=yD;zn.prototype.set=gD;var du=zn;function hb(){this.__data__=new du,this.size=0}i(hb,"stackClear");var vD=hb;function yb(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}i(yb,"stackDelete");var TD=yb;function gb(e){return this.__data__.get(e)}i(gb,"stackGet");var $D=gb;function vb(e){return this.__data__.has(e)}i(vb,"stackHas");var RD=vb,Tb=typeof global=="object"&&global&&global.Object===Object&&global,AD=typeof self=="object"&&self&&self.Object===Object&&self,Er=Tb||AD||Function("return this")(),Xt=Er.Symbol,$b=Object.prototype,ED=$b.hasOwnProperty,bD=$b.toString,bi=Xt?Xt.toStringTag:void 0;function Rb(e){var t=ED.call(e,bi),r=e[bi];try{e[bi]=void 0;var n=!0}catch{}var a=bD.call(e);return n&&(t?e[bi]=r:delete e[bi]),a}i(Rb,"getRawTag");var CD=Rb,_D=Object.prototype.toString;function Ab(e){return _D.call(e)}i(Ab,"objectToString");var SD=Ab,wD="[object Null]",ID="[object Undefined]",Zh=Xt?Xt.toStringTag:void 0;function Eb(e){return e==null?e===void 0?ID:wD:Zh&&Zh in Object(e)?CD(e):SD(e)}i(Eb,"baseGetTag");var Qa=Eb;function bb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(bb,"isObject");var im=bb,ND="[object AsyncFunction]",PD="[object Function]",kD="[object GeneratorFunction]",OD="[object Proxy]";function Cb(e){if(!im(e))return!1;var t=Qa(e);return t==PD||t==kD||t==ND||t==OD}i(Cb,"isFunction");var _b=Cb,Bu=Er["__core-js_shared__"],Qh=(function(){var e=/[^.]+$/.exec(Bu&&Bu.keys&&Bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Sb(e){return!!Qh&&Qh in e}i(Sb,"isMasked");var LD=Sb,DD=Function.prototype.toString;function wb(e){if(e!=null){try{return DD.call(e)}catch{}try{return e+""}catch{}}return""}i(wb,"toSource");var jn=wb,MD=/[\\^$.*+?()[\]{}|]/g,xD=/^\[object .+?Constructor\]$/,GD=Function.prototype,FD=Object.prototype,zD=GD.toString,jD=FD.hasOwnProperty,UD=RegExp("^"+zD.call(jD).replace(MD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ib(e){return!im(e)||LD(e)?!1:(_b(e)?UD:xD).test(jn(e))}i(Ib,"baseIsNative");var KD=Ib;function Nb(e,t){return e?.[t]}i(Nb,"getValue");var BD=Nb;function Pb(e,t){var r=BD(e,t);return KD(r)?r:void 0}i(Pb,"getNative");var ei=Pb,Rs=ei(Er,"Map"),As=ei(Object,"create");function kb(){this.__data__=As?As(null):{},this.size=0}i(kb,"hashClear");var qD=kb;function Ob(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(Ob,"hashDelete");var WD=Ob,VD="__lodash_hash_undefined__",HD=Object.prototype.hasOwnProperty;function Lb(e){var t=this.__data__;if(As){var r=t[e];return r===VD?void 0:r}return HD.call(t,e)?t[e]:void 0}i(Lb,"hashGet");var YD=Lb,XD=Object.prototype.hasOwnProperty;function Db(e){var t=this.__data__;return As?t[e]!==void 0:XD.call(t,e)}i(Db,"hashHas");var JD=Db,ZD="__lodash_hash_undefined__";function Mb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=As&&t===void 0?ZD:t,this}i(Mb,"hashSet");var QD=Mb;function Un(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Un,"Hash");Un.prototype.clear=qD;Un.prototype.delete=WD;Un.prototype.get=YD;Un.prototype.has=JD;Un.prototype.set=QD;var ey=Un;function xb(){this.size=0,this.__data__={hash:new ey,map:new(Rs||du),string:new ey}}i(xb,"mapCacheClear");var e0=xb;function Gb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(Gb,"isKeyable");var t0=Gb;function Fb(e,t){var r=e.__data__;return t0(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(Fb,"getMapData");var mu=Fb;function zb(e){var t=mu(this,e).delete(e);return this.size-=t?1:0,t}i(zb,"mapCacheDelete");var r0=zb;function jb(e){return mu(this,e).get(e)}i(jb,"mapCacheGet");var n0=jb;function Ub(e){return mu(this,e).has(e)}i(Ub,"mapCacheHas");var a0=Ub;function Kb(e,t){var r=mu(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(Kb,"mapCacheSet");var i0=Kb;function Kn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Kn,"MapCache");Kn.prototype.clear=e0;Kn.prototype.delete=r0;Kn.prototype.get=n0;Kn.prototype.has=a0;Kn.prototype.set=i0;var hu=Kn,s0=200;function Bb(e,t){var r=this.__data__;if(r instanceof du){var n=r.__data__;if(!Rs||n.length<s0-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new hu(n)}return r.set(e,t),this.size=r.size,this}i(Bb,"stackSet");var o0=Bb;function Bn(e){var t=this.__data__=new du(e);this.size=t.size}i(Bn,"Stack");Bn.prototype.clear=vD;Bn.prototype.delete=TD;Bn.prototype.get=$D;Bn.prototype.has=RD;Bn.prototype.set=o0;var Po=Bn,l0="__lodash_hash_undefined__";function qb(e){return this.__data__.set(e,l0),this}i(qb,"setCacheAdd");var u0=qb;function Wb(e){return this.__data__.has(e)}i(Wb,"setCacheHas");var c0=Wb;function Es(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new hu;++t<r;)this.add(e[t])}i(Es,"SetCache");Es.prototype.add=Es.prototype.push=u0;Es.prototype.has=c0;var Vb=Es;function Hb(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}i(Hb,"arraySome");var f0=Hb;function Yb(e,t){return e.has(t)}i(Yb,"cacheHas");var Xb=Yb,p0=1,d0=2;function Jb(e,t,r,n,a,s){var o=r&p0,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var p=-1,m=!0,T=r&d0?new Vb:void 0;for(s.set(e,t),s.set(t,e);++p<l;){var g=e[p],_=t[p];if(n)var I=o?n(_,g,p,t,e,s):n(g,_,p,e,t,s);if(I!==void 0){if(I)continue;m=!1;break}if(T){if(!f0(t,function(N,S){if(!Xb(T,S)&&(g===N||a(g,N,r,n,s)))return T.push(S)})){m=!1;break}}else if(!(g===_||a(g,_,r,n,s))){m=!1;break}}return s.delete(e),s.delete(t),m}i(Jb,"equalArrays");var Zb=Jb,ty=Er.Uint8Array;function Qb(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}i(Qb,"mapToArray");var m0=Qb;function eC(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(eC,"setToArray");var sm=eC,h0=1,y0=2,g0="[object Boolean]",v0="[object Date]",T0="[object Error]",$0="[object Map]",R0="[object Number]",A0="[object RegExp]",E0="[object Set]",b0="[object String]",C0="[object Symbol]",_0="[object ArrayBuffer]",S0="[object DataView]",ry=Xt?Xt.prototype:void 0,qu=ry?ry.valueOf:void 0;function tC(e,t,r,n,a,s,o){switch(r){case S0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _0:return!(e.byteLength!=t.byteLength||!s(new ty(e),new ty(t)));case g0:case v0:case R0:return ub(+e,+t);case T0:return e.name==t.name&&e.message==t.message;case A0:case b0:return e==t+"";case $0:var l=m0;case E0:var u=n&h0;if(l||(l=sm),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=y0,o.set(e,t);var f=Zb(l(e),l(t),n,a,s,o);return o.delete(e),f;case C0:if(qu)return qu.call(e)==qu.call(t)}return!1}i(tC,"equalByTag");var w0=tC;function rC(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}i(rC,"arrayPush");var nC=rC,rt=Array.isArray;function aC(e,t,r){var n=t(e);return rt(e)?n:nC(n,r(e))}i(aC,"baseGetAllKeys");var I0=aC;function iC(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}i(iC,"arrayFilter");var sC=iC;function oC(){return[]}i(oC,"stubArray");var N0=oC,P0=Object.prototype.propertyIsEnumerable,ny=Object.getOwnPropertySymbols,k0=ny?function(e){return e==null?[]:(e=Object(e),sC(ny(e),function(t){return P0.call(e,t)}))}:N0;function lC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(lC,"baseTimes");var O0=lC;function uC(e){return e!=null&&typeof e=="object"}i(uC,"isObjectLike");var Ka=uC,L0="[object Arguments]";function cC(e){return Ka(e)&&Qa(e)==L0}i(cC,"baseIsArguments");var ay=cC,fC=Object.prototype,D0=fC.hasOwnProperty,M0=fC.propertyIsEnumerable,yu=ay((function(){return arguments})())?ay:function(e){return Ka(e)&&D0.call(e,"callee")&&!M0.call(e,"callee")};function pC(){return!1}i(pC,"stubFalse");var x0=pC,dC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iy=dC&&typeof module=="object"&&module&&!module.nodeType&&module,sy=iy&&iy.exports===dC?Er.Buffer:void 0,yl=(sy?sy.isBuffer:void 0)||x0,G0=9007199254740991,F0=/^(?:0|[1-9]\d*)$/;function mC(e,t){var r=typeof e;return t=t??G0,!!t&&(r=="number"||r!="symbol"&&F0.test(e))&&e>-1&&e%1==0&&e<t}i(mC,"isIndex");var hC=mC,z0=9007199254740991;function yC(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z0}i(yC,"isLength");var om=yC,j0="[object Arguments]",U0="[object Array]",K0="[object Boolean]",B0="[object Date]",q0="[object Error]",W0="[object Function]",V0="[object Map]",H0="[object Number]",Y0="[object Object]",X0="[object RegExp]",J0="[object Set]",Z0="[object String]",Q0="[object WeakMap]",eM="[object ArrayBuffer]",tM="[object DataView]",rM="[object Float32Array]",nM="[object Float64Array]",aM="[object Int8Array]",iM="[object Int16Array]",sM="[object Int32Array]",oM="[object Uint8Array]",lM="[object Uint8ClampedArray]",uM="[object Uint16Array]",cM="[object Uint32Array]",he={};he[rM]=he[nM]=he[aM]=he[iM]=he[sM]=he[oM]=he[lM]=he[uM]=he[cM]=!0;he[j0]=he[U0]=he[eM]=he[K0]=he[tM]=he[B0]=he[q0]=he[W0]=he[V0]=he[H0]=he[Y0]=he[X0]=he[J0]=he[Z0]=he[Q0]=!1;function gC(e){return Ka(e)&&om(e.length)&&!!he[Qa(e)]}i(gC,"baseIsTypedArray");var fM=gC;function vC(e){return function(t){return e(t)}}i(vC,"baseUnary");var pM=vC,TC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,os=TC&&typeof module=="object"&&module&&!module.nodeType&&module,Wu=os&&os.exports===TC&&Tb.process,oy=(function(){try{var e=os&&os.require&&os.require("util").types;return e||Wu&&Wu.binding&&Wu.binding("util")}catch{}})(),ly=oy&&oy.isTypedArray,lm=ly?pM(ly):fM,dM=Object.prototype.hasOwnProperty;function $C(e,t){var r=rt(e),n=!r&&yu(e),a=!r&&!n&&yl(e),s=!r&&!n&&!a&&lm(e),o=r||n||a||s,l=o?O0(e.length,String):[],u=l.length;for(var c in e)(t||dM.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||hC(c,u)))&&l.push(c);return l}i($C,"arrayLikeKeys");var mM=$C,hM=Object.prototype;function RC(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||hM)}i(RC,"isPrototype");var AC=RC;function EC(e,t){return function(r){return e(t(r))}}i(EC,"overArg");var yM=EC(Object.keys,Object),gM=Object.prototype.hasOwnProperty;function bC(e){if(!AC(e))return yM(e);var t=[];for(var r in Object(e))gM.call(e,r)&&r!="constructor"&&t.push(r);return t}i(bC,"baseKeys");var CC=bC;function _C(e){return e!=null&&om(e.length)&&!_b(e)}i(_C,"isArrayLike");var gu=_C;function SC(e){return gu(e)?mM(e):CC(e)}i(SC,"keys");var um=SC;function wC(e){return I0(e,um,k0)}i(wC,"getAllKeys");var uy=wC,vM=1,TM=Object.prototype.hasOwnProperty;function IC(e,t,r,n,a,s){var o=r&vM,l=uy(e),u=l.length;if(u!=uy(t).length&&!o)return!1;for(var c=u;c--;){var f=l[c];if(!(o?f in t:TM.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var T=!0;s.set(e,t),s.set(t,e);for(var g=o;++c<u;){f=l[c];var _=e[f],I=t[f];if(n)var N=o?n(I,_,f,t,e,s):n(_,I,f,e,t,s);if(!(N===void 0?_===I||a(_,I,r,n,s):N)){T=!1;break}g||(g=f=="constructor")}if(T&&!g){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(T=!1)}return s.delete(e),s.delete(t),T}i(IC,"equalObjects");var $M=IC,Gf=ei(Er,"DataView"),Ff=ei(Er,"Promise"),Oa=ei(Er,"Set"),zf=ei(Er,"WeakMap"),cy="[object Map]",RM="[object Object]",fy="[object Promise]",py="[object Set]",dy="[object WeakMap]",my="[object DataView]",AM=jn(Gf),EM=jn(Rs),bM=jn(Ff),CM=jn(Oa),_M=jn(zf),Zr=Qa;(Gf&&Zr(new Gf(new ArrayBuffer(1)))!=my||Rs&&Zr(new Rs)!=cy||Ff&&Zr(Ff.resolve())!=fy||Oa&&Zr(new Oa)!=py||zf&&Zr(new zf)!=dy)&&(Zr=i(function(e){var t=Qa(e),r=t==RM?e.constructor:void 0,n=r?jn(r):"";if(n)switch(n){case AM:return my;case EM:return cy;case bM:return fy;case CM:return py;case _M:return dy}return t},"getTag"));var jf=Zr,SM=1,hy="[object Arguments]",yy="[object Array]",eo="[object Object]",gy=Object.prototype.hasOwnProperty;function NC(e,t,r,n,a,s){var o=rt(e),l=rt(t),u=o?yy:jf(e),c=l?yy:jf(t);u=u==hy?eo:u,c=c==hy?eo:c;var f=u==eo,p=c==eo,m=u==c;if(m&&yl(e)){if(!yl(t))return!1;o=!0,f=!1}if(m&&!f)return s||(s=new Po),o||lm(e)?Zb(e,t,r,n,a,s):w0(e,t,u,r,n,a,s);if(!(r&SM)){var T=f&&gy.call(e,"__wrapped__"),g=p&&gy.call(t,"__wrapped__");if(T||g){var _=T?e.value():e,I=g?t.value():t;return s||(s=new Po),a(_,I,r,n,s)}}return m?(s||(s=new Po),$M(e,t,r,n,a,s)):!1}i(NC,"baseIsEqualDeep");var wM=NC;function cm(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:wM(e,t,r,n,cm,a)}i(cm,"baseIsEqual");var PC=cm,IM=1,NM=2;function kC(e,t,r,n){var a=r.length,s=a,o=!n;if(e==null)return!s;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=r[a];var u=l[0],c=e[u],f=l[1];if(o&&l[2]){if(c===void 0&&!(u in e))return!1}else{var p=new Po;if(n)var m=n(c,f,u,e,t,p);if(!(m===void 0?PC(f,c,IM|NM,n,p):m))return!1}}return!0}i(kC,"baseIsMatch");var PM=kC;function OC(e){return e===e&&!im(e)}i(OC,"isStrictComparable");var LC=OC;function DC(e){for(var t=um(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,LC(a)]}return t}i(DC,"getMatchData");var kM=DC;function MC(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}i(MC,"matchesStrictComparable");var xC=MC;function GC(e){var t=kM(e);return t.length==1&&t[0][2]?xC(t[0][0],t[0][1]):function(r){return r===e||PM(r,e,t)}}i(GC,"baseMatches");var OM=GC,LM="[object Symbol]";function FC(e){return typeof e=="symbol"||Ka(e)&&Qa(e)==LM}i(FC,"isSymbol");var vu=FC,DM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MM=/^\w*$/;function zC(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vu(e)?!0:MM.test(e)||!DM.test(e)||t!=null&&e in Object(t)}i(zC,"isKey");var fm=zC,xM="Expected a function";function Tu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xM);var r=i(function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var o=e.apply(this,n);return r.cache=s.set(a,o)||s,o},"memoized");return r.cache=new(Tu.Cache||hu),r}i(Tu,"memoize");Tu.Cache=hu;var GM=Tu,FM=500;function jC(e){var t=GM(e,function(n){return r.size===FM&&r.clear(),n}),r=t.cache;return t}i(jC,"memoizeCapped");var zM=jC,jM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UM=/\\(\\)?/g,KM=zM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jM,function(r,n,a,s){t.push(a?s.replace(UM,"$1"):n||r)}),t}),BM=1/0,vy=Xt?Xt.prototype:void 0,Ty=vy?vy.toString:void 0;function pm(e){if(typeof e=="string")return e;if(rt(e))return sb(e,pm)+"";if(vu(e))return Ty?Ty.call(e):"";var t=e+"";return t=="0"&&1/e==-BM?"-0":t}i(pm,"baseToString");var qM=pm;function UC(e){return e==null?"":qM(e)}i(UC,"toString");var WM=UC;function KC(e,t){return rt(e)?e:fm(e,t)?[e]:KM(WM(e))}i(KC,"castPath");var BC=KC,VM=1/0;function qC(e){if(typeof e=="string"||vu(e))return e;var t=e+"";return t=="0"&&1/e==-VM?"-0":t}i(qC,"toKey");var $u=qC;function WC(e,t){t=BC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[$u(t[r++])];return r&&r==n?e:void 0}i(WC,"baseGet");var VC=WC;function HC(e,t,r){var n=e==null?void 0:VC(e,t);return n===void 0?r:n}i(HC,"get");var HM=HC;function YC(e,t){return e!=null&&t in Object(e)}i(YC,"baseHasIn");var YM=YC;function XC(e,t,r){t=BC(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var o=$u(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&om(a)&&hC(o,a)&&(rt(e)||yu(e)))}i(XC,"hasPath");var XM=XC;function JC(e,t){return e!=null&&XM(e,t,YM)}i(JC,"hasIn");var JM=JC,ZM=1,QM=2;function ZC(e,t){return fm(e)&&LC(t)?xC($u(e),t):function(r){var n=HM(r,e);return n===void 0&&n===t?JM(r,e):PC(t,n,ZM|QM)}}i(ZC,"baseMatchesProperty");var ex=ZC;function QC(e){return e}i(QC,"identity");var dm=QC;function e_(e){return function(t){return t?.[e]}}i(e_,"baseProperty");var tx=e_;function t_(e){return function(t){return VC(t,e)}}i(t_,"basePropertyDeep");var rx=t_;function r_(e){return fm(e)?tx($u(e)):rx(e)}i(r_,"property");var nx=r_;function n_(e){return typeof e=="function"?e:e==null?dm:typeof e=="object"?rt(e)?ex(e[0],e[1]):OM(e):nx(e)}i(n_,"baseIteratee");var Ru=n_;function a_(e){return function(t,r,n){for(var a=-1,s=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++a];if(r(s[u],u,s)===!1)break}return t}}i(a_,"createBaseFor");var ax=a_();function i_(e,t){return e&&ax(e,t,um)}i(i_,"baseForOwn");var ix=i_;function s_(e,t){return function(r,n){if(r==null)return r;if(!gu(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}i(s_,"createBaseEach");var Au=s_(ix);function o_(e,t){var r=-1,n=gu(e)?Array(e.length):[];return Au(e,function(a,s,o){n[++r]=t(a,s,o)}),n}i(o_,"baseMap");var sx=o_;function l_(e,t){return(rt(e)?sb:sx)(e,Ru(t,3))}i(l_,"map");var cr=l_;function u_(e,t){var r=[];return Au(e,function(n,a,s){t(n,a,s)&&r.push(n)}),r}i(u_,"baseFilter");var ox=u_;function c_(e,t){return(rt(e)?sC:ox)(e,Ru(t,3))}i(c_,"filter");var lx=c_;function Cn(e,t,r){return`${e.name}_${t}_${r}`}i(Cn,"buildATNKey");var Dr=1,ux=2,f_=4,p_=5,Hs=7,cx=8,fx=9,px=10,dx=11,d_=12,mm=class{static{i(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},hm=class extends mm{static{i(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},m_=class extends mm{static{i(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},ym=class extends mm{static{i(this,"RuleTransition")}constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};function h_(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};y_(t,e);const r=e.length;for(let n=0;n<r;n++){const a=e[n],s=jr(t,a,a);s!==void 0&&S_(t,a,s)}return t}i(h_,"createATN");function y_(e,t){const r=t.length;for(let n=0;n<r;n++){const a=t[n],s=xe(e,a,void 0,{type:ux}),o=xe(e,a,void 0,{type:Hs});s.stop=o,e.ruleToStartState.set(a,s),e.ruleToStopState.set(a,o)}}i(y_,"createRuleStartAndStopATNStates");function gm(e,t,r){return r instanceof ye?Eu(e,t,r.terminalType,r):r instanceof et?__(e,t,r):r instanceof ut?R_(e,t,r):r instanceof Be?A_(e,t,r):r instanceof be?g_(e,t,r):r instanceof lt?v_(e,t,r):r instanceof ht?T_(e,t,r):r instanceof yt?$_(e,t,r):jr(e,t,r)}i(gm,"atom");function g_(e,t,r){const n=xe(e,t,r,{type:p_});return br(e,n),Tm(e,t,r,qn(e,t,n,r,jr(e,t,r)))}i(g_,"repetition");function v_(e,t,r){const n=xe(e,t,r,{type:p_});return br(e,n),Tm(e,t,r,qn(e,t,n,r,jr(e,t,r)),Eu(e,t,r.separator,r))}i(v_,"repetitionSep");function T_(e,t,r){const n=xe(e,t,r,{type:f_});return br(e,n),vm(e,t,r,qn(e,t,n,r,jr(e,t,r)))}i(T_,"repetitionMandatory");function $_(e,t,r){const n=xe(e,t,r,{type:f_});return br(e,n),vm(e,t,r,qn(e,t,n,r,jr(e,t,r)),Eu(e,t,r.separator,r))}i($_,"repetitionMandatorySep");function R_(e,t,r){const n=xe(e,t,r,{type:Dr});return br(e,n),qn(e,t,n,r,...cr(r.definition,a=>gm(e,t,a)))}i(R_,"alternation");function A_(e,t,r){const n=xe(e,t,r,{type:Dr});return br(e,n),E_(e,t,r,qn(e,t,n,r,jr(e,t,r)))}i(A_,"option");function jr(e,t,r){const n=lx(cr(r.definition,a=>gm(e,t,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:C_(e,n)}i(jr,"block");function vm(e,t,r,n,a){const s=n.left,o=n.right,l=xe(e,t,r,{type:dx});br(e,l);const u=xe(e,t,r,{type:d_});return s.loopback=l,u.loopback=l,e.decisionMap[Cn(t,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,we(o,l),a===void 0?(we(l,s),we(l,u)):(we(l,u),we(l,a.left),we(a.right,s)),{left:s,right:u}}i(vm,"plus");function Tm(e,t,r,n,a){const s=n.left,o=n.right,l=xe(e,t,r,{type:px});br(e,l);const u=xe(e,t,r,{type:d_}),c=xe(e,t,r,{type:fx});return l.loopback=c,u.loopback=c,we(l,s),we(l,u),we(o,c),a!==void 0?(we(c,u),we(c,a.left),we(a.right,s)):we(c,l),e.decisionMap[Cn(t,a?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}i(Tm,"star");function E_(e,t,r,n){const a=n.left,s=n.right;return we(a,s),e.decisionMap[Cn(t,"Option",r.idx)]=a,n}i(E_,"optional");function br(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}i(br,"defineDecisionState");function qn(e,t,r,n,...a){const s=xe(e,t,n,{type:cx,start:r});r.end=s;for(const l of a)l!==void 0?(we(r,l.left),we(l.right,s)):we(r,s);const o={left:r,right:s};return e.decisionMap[Cn(t,b_(n),n.idx)]=r,o}i(qn,"makeAlts");function b_(e){if(e instanceof ut)return"Alternation";if(e instanceof Be)return"Option";if(e instanceof be)return"Repetition";if(e instanceof lt)return"RepetitionWithSeparator";if(e instanceof ht)return"RepetitionMandatory";if(e instanceof yt)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}i(b_,"getProdType");function C_(e,t){const r=t.length;for(let s=0;s<r-1;s++){const o=t[s];let l;o.left.transitions.length===1&&(l=o.left.transitions[0]);const u=l instanceof ym,c=l,f=t[s+1].left;o.left.type===Dr&&o.right.type===Dr&&l!==void 0&&(u&&c.followState===o.right||l.target===o.right)?(u?c.followState=f:l.target=f,w_(e,o.right)):we(o.right,f)}const n=t[0],a=t[r-1];return{left:n.left,right:a.right}}i(C_,"makeBlock");function Eu(e,t,r,n){const a=xe(e,t,n,{type:Dr}),s=xe(e,t,n,{type:Dr});return bu(a,new hm(s,r)),{left:a,right:s}}i(Eu,"tokenRef");function __(e,t,r){const n=r.referencedRule,a=e.ruleToStartState.get(n),s=xe(e,t,r,{type:Dr}),o=xe(e,t,r,{type:Dr});return bu(s,new ym(a,n,o)),{left:s,right:o}}i(__,"ruleRef");function S_(e,t,r){const n=e.ruleToStartState.get(t);we(n,r.left);const a=e.ruleToStopState.get(t);return we(r.right,a),{left:n,right:a}}i(S_,"buildRuleHandle");function we(e,t){bu(e,new m_(t))}i(we,"epsilon");function xe(e,t,r,n){const a=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(a),a}i(xe,"newState");function bu(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}i(bu,"addTransition");function w_(e,t){e.states.splice(e.states.indexOf(t),1)}i(w_,"removeState");var gl={},Uf=class{static{i(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const t=$m(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return cr(this.configs,e=>e.alt)}get key(){let e="";for(const t in this.map)e+=t+":";return e}};function $m(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}i($m,"getATNConfigKey");function I_(e,t,r){for(var n=-1,a=e.length;++n<a;){var s=e[n],o=t(s);if(o!=null&&(l===void 0?o===o&&!vu(o):r(o,l)))var l=o,u=s}return u}i(I_,"baseExtremum");var mx=I_;function N_(e,t){return e<t}i(N_,"baseLt");var hx=N_;function P_(e){return e&&e.length?mx(e,dm,hx):void 0}i(P_,"min");var yx=P_,$y=Xt?Xt.isConcatSpreadable:void 0;function k_(e){return rt(e)||yu(e)||!!($y&&e&&e[$y])}i(k_,"isFlattenable");var gx=k_;function Rm(e,t,r,n,a){var s=-1,o=e.length;for(r||(r=gx),a||(a=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?Rm(l,t-1,r,n,a):nC(a,l):n||(a[a.length]=l)}return a}i(Rm,"baseFlatten");var O_=Rm;function L_(e,t){return O_(cr(e,t),1)}i(L_,"flatMap");var vx=L_;function D_(e,t,r,n){for(var a=e.length,s=r+(n?1:-1);n?s--:++s<a;)if(t(e[s],s,e))return s;return-1}i(D_,"baseFindIndex");var Tx=D_;function M_(e){return e!==e}i(M_,"baseIsNaN");var $x=M_;function x_(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}i(x_,"strictIndexOf");var Rx=x_;function G_(e,t,r){return t===t?Rx(e,t,r):Tx(e,$x,r)}i(G_,"baseIndexOf");var Ax=G_;function F_(e,t){return!!(e!=null&&e.length)&&Ax(e,t,0)>-1}i(F_,"arrayIncludes");var Ex=F_;function z_(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}i(z_,"arrayIncludesWith");var bx=z_;function j_(){}i(j_,"noop");var Cx=j_,_x=Oa&&1/sm(new Oa([,-0]))[1]==1/0?function(e){return new Oa(e)}:Cx,Sx=200;function U_(e,t,r){var n=-1,a=Ex,s=e.length,o=!0,l=[],u=l;if(r)o=!1,a=bx;else if(s>=Sx){var c=t?null:_x(e);if(c)return sm(c);o=!1,a=Xb,u=new Vb}else u=t?[]:l;e:for(;++n<s;){var f=e[n],p=t?t(f):f;if(f=r||f!==0?f:0,o&&p===p){for(var m=u.length;m--;)if(u[m]===p)continue e;t&&u.push(p),l.push(f)}else a(u,p,r)||(u!==l&&u.push(p),l.push(f))}return l}i(U_,"baseUniq");var wx=U_;function K_(e,t){return e&&e.length?wx(e,Ru(t,2)):[]}i(K_,"uniqBy");var Ix=K_;function B_(e){return e!=null&&e.length?O_(e,1):[]}i(B_,"flatten");var Nx=B_;function q_(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}i(q_,"arrayEach");var Px=q_;function W_(e){return typeof e=="function"?e:dm}i(W_,"castFunction");var kx=W_;function V_(e,t){return(rt(e)?Px:Au)(e,kx(t))}i(V_,"forEach");var Vu=V_,Ox="[object Map]",Lx="[object Set]",Dx=Object.prototype.hasOwnProperty;function H_(e){if(e==null)return!0;if(gu(e)&&(rt(e)||typeof e=="string"||typeof e.splice=="function"||yl(e)||lm(e)||yu(e)))return!e.length;var t=jf(e);if(t==Ox||t==Lx)return!e.size;if(AC(e))return!CC(e).length;for(var r in e)if(Dx.call(e,r))return!1;return!0}i(H_,"isEmpty");var Mx=H_;function Y_(e,t,r,n){var a=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++a]);++a<s;)r=t(r,e[a],a,e);return r}i(Y_,"arrayReduce");var xx=Y_;function X_(e,t,r,n,a){return a(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}i(X_,"baseReduce");var Gx=X_;function J_(e,t,r){var n=rt(e)?xx:Gx,a=arguments.length<3;return n(e,Ru(t,4),r,a,Au)}i(J_,"reduce");var Ry=J_;function Z_(e,t){const r={};return n=>{const a=n.toString();let s=r[a];return s!==void 0||(s={atnStartState:e,decision:t,states:{}},r[a]=s),s}}i(Z_,"createDFACache");var Q_=class{static{i(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="";const t=this.predicates.length;for(let r=0;r<t;r++)e+=this.predicates[r]===!0?"1":"0";return e}},Ay=new Q_,Fx=class extends rm{static{i(this,"LLStarLookaheadStrategy")}constructor(e){var t;super(),this.logging=(t=e?.logging)!==null&&t!==void 0?t:(r=>console.log(r))}initialize(e){this.atn=h_(e.rules),this.dfas=eS(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=Cn(r,"Alternation",t),u=this.atn.decisionMap[l].decision,c=cr(wf({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),f=>cr(f,p=>p[0]));if(Kf(c,!1)&&!a){const f=Ry(c,(p,m,T)=>(Vu(m,g=>{g&&(p[g.tokenTypeIdx]=T,Vu(g.categoryMatches,_=>{p[_]=T}))}),p),{});return n?function(p){var m;const T=this.LA(1),g=f[T.tokenTypeIdx];if(p!==void 0&&g!==void 0){const _=(m=p[g])===null||m===void 0?void 0:m.GATE;if(_!==void 0&&_.call(this)===!1)return}return g}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return n?function(f){const p=new Q_,m=f===void 0?0:f.length;for(let g=0;g<m;g++){const _=f?.[g].GATE;p.set(g,_===void 0||_.call(this))}const T=ko.call(this,s,u,p,o);return typeof T=="number"?T:void 0}:function(){const f=ko.call(this,s,u,Ay,o);return typeof f=="number"?f:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:t,rule:r,prodType:n,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=Cn(r,n,t),u=this.atn.decisionMap[l].decision,c=cr(wf({maxLookahead:1,occurrence:t,prodType:n,rule:r}),f=>cr(f,p=>p[0]));if(Kf(c)&&c[0][0]&&!a){const f=c[0],p=Nx(f);if(p.length===1&&Mx(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const m=Ry(p,(T,g)=>(g!==void 0&&(T[g.tokenTypeIdx]=!0,Vu(g.categoryMatches,_=>{T[_]=!0})),T),{});return function(){const T=this.LA(1);return m[T.tokenTypeIdx]===!0}}}return function(){const f=ko.call(this,s,u,Ay,o);return typeof f=="object"?!1:f===0}}};function Kf(e,t=!0){const r=new Set;for(const n of e){const a=new Set;for(const s of n){if(s===void 0){if(t)break;return!1}const o=[s.tokenTypeIdx].concat(s.categoryMatches);for(const l of o)if(r.has(l)){if(!a.has(l))return!1}else r.add(l),a.add(l)}}return!0}i(Kf,"isLL1Sequence");function eS(e){const t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=Z_(e.decisionStates[n],n);return r}i(eS,"initATNSimulator");function ko(e,t,r,n){const a=e[t](r);let s=a.start;return s===void 0&&(s=Em(a,Am(fS(a.atnStartState))),a.start=s),tS.apply(this,[a,s,r,n])}i(ko,"adaptivePredict");function tS(e,t,r,n){let a=t,s=1;const o=[];let l=this.LA(s++);for(;;){let u=oS(a,l);if(u===void 0&&(u=rS.apply(this,[e,a,l,s,r,n])),u===gl)return sS(o,a,l);if(u.isAcceptState===!0)return u.prediction;a=u,o.push(l),l=this.LA(s++)}}i(tS,"performLookahead");function rS(e,t,r,n,a,s){const o=lS(t.configs,r,a);if(o.size===0)return Bf(e,t,r,gl),gl;let l=Am(o);const u=cS(o,a);if(u!==void 0)l.isAcceptState=!0,l.prediction=u,l.configs.uniqueAlt=u;else if(hS(o)){const c=yx(o.alts);l.isAcceptState=!0,l.prediction=c,l.configs.uniqueAlt=c,nS.apply(this,[e,n,o.alts,s])}return l=Bf(e,t,r,l),l}i(rS,"computeLookaheadTarget");function nS(e,t,r,n){const a=[];for(let u=1;u<=t;u++)a.push(this.LA(u).tokenType);const s=e.atnStartState,o=s.rule,l=s.production;n(aS({topLevelRule:o,ambiguityIndices:r,production:l,prefixPath:a}))}i(nS,"reportLookaheadAmbiguity");function aS(e){const t=cr(e.prefixPath,a=>$n(a)).join(", "),r=e.production.idx===0?"":e.production.idx;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${iS(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
148
+ <${t}> may appears as a prefix path in all these alternatives.
149
+ `;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
150
+ For Further details.`,n}i(aS,"buildAmbiguityError");function iS(e){if(e instanceof et)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof ut)return"OR";if(e instanceof ht)return"AT_LEAST_ONE";if(e instanceof yt)return"AT_LEAST_ONE_SEP";if(e instanceof lt)return"MANY_SEP";if(e instanceof be)return"MANY";if(e instanceof ye)return"CONSUME";throw Error("non exhaustive match")}i(iS,"getProductionDslName");function sS(e,t,r){return{actualToken:r,possibleTokenTypes:Ix(vx(t.configs.elements,n=>n.state.transitions).filter(n=>n instanceof hm).map(n=>n.tokenType),n=>n.tokenTypeIdx),tokenPath:e}}i(sS,"buildAdaptivePredictError");function oS(e,t){return e.edges[t.tokenTypeIdx]}i(oS,"getExistingTargetState");function lS(e,t,r){const n=new Uf,a=[];for(const o of e.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===Hs){a.push(o);continue}const l=o.state.transitions.length;for(let u=0;u<l;u++){const c=o.state.transitions[u],f=uS(c,t);f!==void 0&&n.add({state:f,alt:o.alt,stack:o.stack})}}let s;if(a.length===0&&n.size===1&&(s=n),s===void 0){s=new Uf;for(const o of n.elements)bs(o,s)}if(a.length>0&&!dS(s))for(const o of a)s.add(o);return s}i(lS,"computeReachSet");function uS(e,t){if(e instanceof hm&&Yd(t,e.tokenType))return e.target}i(uS,"getReachableTarget");function cS(e,t){let r;for(const n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}i(cS,"getUniqueAlt");function Am(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}i(Am,"newDFAState");function Bf(e,t,r,n){return n=Em(e,n),t.edges[r.tokenTypeIdx]=n,n}i(Bf,"addDFAEdge");function Em(e,t){if(t===gl)return t;const r=t.configs.key,n=e.states[r];return n!==void 0?n:(t.configs.finalize(),e.states[r]=t,t)}i(Em,"addDFAState");function fS(e){const t=new Uf,r=e.transitions.length;for(let n=0;n<r;n++)bs({state:e.transitions[n].target,alt:n,stack:[]},t);return t}i(fS,"computeStartState");function bs(e,t){const r=e.state;if(r.type===Hs){if(e.stack.length>0){const a=[...e.stack];bs({state:a.pop(),alt:e.alt,stack:a},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);const n=r.transitions.length;for(let a=0;a<n;a++){const s=r.transitions[a],o=pS(e,s);o!==void 0&&bs(o,t)}}i(bs,"closure");function pS(e,t){if(t instanceof m_)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof ym){const r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}i(pS,"getEpsilonTarget");function dS(e){for(const t of e.elements)if(t.state.type===Hs)return!0;return!1}i(dS,"hasConfigInRuleStopState");function mS(e){for(const t of e.elements)if(t.state.type!==Hs)return!1;return!0}i(mS,"allConfigsInRuleStopStates");function hS(e){if(mS(e))return!0;const t=yS(e.elements);return gS(t)&&!vS(t)}i(hS,"hasConflictTerminatingPrediction");function yS(e){const t=new Map;for(const r of e){const n=$m(r,!1);let a=t.get(n);a===void 0&&(a={},t.set(n,a)),a[r.alt]=!0}return t}i(yS,"getConflictingAltSets");function gS(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}i(gS,"hasConflictingAltSet");function vS(e){for(const t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}i(vS,"hasStateAssociatedWithOneAlt");ws();var TS=class{static{i(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Cm(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new Cu;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new vl(e.startOffset,e.image.length,fs(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){const t=[];for(const a of e){const s=new vl(a.startOffset,a.image.length,fs(a),a.tokenType,!0);s.root=this.rootNode,t.push(s)}let r=this.current,n=!1;if(r.content.length>0){r.content.push(...t);return}for(;r.container;){const a=r.container.content.indexOf(r);if(a>0){r.container.content.splice(a,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){const t=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},bm=class{static{i(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},vl=class extends bm{static{i(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},Cu=class extends bm{static{i(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new zx(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){const{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line<r.start.line?r.start:n.end}}return this._rangeCache}else return{start:ne.create(0,0),end:ne.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},zx=class $S extends Array{static{i(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,$S.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...n){return this.addParents(n),super.splice(t,r,...n)}addParents(t){for(const r of t)r.container=this.parent}},Cm=class extends Cu{static{i(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},Tl=Symbol("Datatype");function Oo(e){return e.$type===Tl}i(Oo,"isDataTypeNode");var Ey="​",RS=i(e=>e.endsWith(Ey)?e:e+Ey,"withRuleSuffix"),_m=class{static{i(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition,r=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new Ux(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new CS(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},AS=class extends _m{static{i(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new TS,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const r=this.computeRuleType(e);let n;Ga(e)&&(n=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(RS(e.name),this.startImplementation(r,n,t).bind(this));return this.allRules.set(e.name,a),Qe(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const t=e.name,r=new Map;for(let n=0;n<e.operators.precedences.length;n++){const a=e.operators.precedences[n];for(const s of a.operators)r.set(s.value,{precedence:n,rightAssoc:a.associativity==="right"})}this.operatorPrecedence.set(t,r)}computeRuleType(e){return Ga(e)?An(e):e.fragment?void 0:ks(e)?Tl:An(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);const r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;const n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");const a=this.doParse(n);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,Ma(a,{deep:!0}),{value:a,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),t===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{const a=!this.isRecording()&&e!==void 0;if(a){const s={$type:e};this.stack.push(s),e===Tl?s.value="":t!==void 0&&(s.$infixName=t)}return r(n),a?this.construct():void 0}}extractHiddenTokens(e){const t=this.lexerResult.hidden;if(!t.length)return[];const r=e.startOffset;for(let n=0;n<t.length;n++)if(t[n].startOffset>r)return t.splice(0,n);return t.splice(0,t.length)}consume(e,t,r){const n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){const a=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(a);const s=this.nodeBuilder.buildLeafNode(n,r),{assignment:o,crossRef:l}=this.getAssignment(r),u=this.current;if(o){const c=dr(r)?n.image:this.converter.convert(n.image,s);this.assign(o.operator,o.feature,c,s,l)}else if(Oo(u)){let c=n.image;dr(r)||(c=this.converter.convert(c,s).toString()),u.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,n,a){let s;!this.isRecording()&&!r&&(s=this.nodeBuilder.buildCompositeNode(n));let o;try{o=this.wrapper.wrapSubrule(e,t,a)}finally{this.isRecording()||(o===void 0&&!r&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,n,s))}}performSubruleAssignment(e,t,r){const{assignment:n,crossRef:a}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,a);else if(!n){const s=this.current;if(Oo(s))s.value+=e.toString();else if(typeof e=="object"&&e){const o=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(o)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);const n={$type:e};this.stack.push(n),this.assign(t.operator,t.feature,r,r.$cstNode)}else r.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):Oo(e)?this.converter.convert(e.value,e.$cstNode):(bp(this.astReflection,e),e)}constructInfix(e,t){const r=e.parts;if(!Array.isArray(r)||r.length===0)return;const n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let a=0,s=-1;for(let g=0;g<n.length;g++){const _=n[g],I=t.get(_)??{precedence:1/0,rightAssoc:!1};I.precedence>s?(s=I.precedence,a=g):I.precedence===s&&(I.rightAssoc||(a=g))}const o=n.slice(0,a),l=n.slice(a+1),u=r.slice(0,a+1),c=r.slice(a+1),f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},p={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:l},m=this.constructInfix(f,t),T=this.constructInfix(p,t);return{$type:e.$type,$cstNode:e.$cstNode,left:m,operator:n[a],right:T}}getAssignment(e){if(!this.assignmentMap.has(e)){const t=wn(e,pr);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Nn(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,a){const s=this.current;let o;switch(a==="single"&&typeof r=="string"?o=this.linker.buildReference(s,t,n,r):a==="multi"&&typeof r=="string"?o=this.linker.buildMultiReference(s,t,n,r):o=r,e){case"=":s[t]=o;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(o)}}assignWithoutOverride(e,t){for(const[n,a]of Object.entries(t)){const s=e[n];s===void 0?e[n]=a:Array.isArray(s)&&Array.isArray(a)&&(a.push(...s),e[n]=a)}const r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},ES=class{static{i(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return Ia.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Ia.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Ia.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Ia.buildEarlyExitMessage(e)}},Sm=class extends ES{static{i(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},bS=class extends _m{static{i(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const r=this.wrapper.DEFINE_RULE(RS(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,a){this.before(n),this.wrapper.wrapSubrule(e,t,a),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},jx={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new Sm},CS=class extends fD{static{i(this,"ChevrotainWrapper")}constructor(e,t){const r=t&&"maxLookahead"in t;super(e,{...jx,lookaheadStrategy:r?new rm({maxLookahead:t.maxLookahead}):new Fx({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},Ux=class extends CS{static{i(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};function _u(e,t,r){return _S({parser:t,tokens:r,ruleNames:new Map},e),t}i(_u,"createParser");function _S(e,t){const r=jl(t,!1),n=le(t.rules).filter(Qe).filter(s=>r.has(s));for(const s of n){const o={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(s,Mr(o,s.definition))}const a=le(t.rules).filter(Ga).filter(s=>r.has(s));for(const s of a)e.parser.rule(s,SS(e,s))}i(_S,"buildRules");function SS(e,t){const r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(At(r))throw new Error("Cannot use terminal rule in infix expression");const n=t.operators.precedences.flatMap(p=>p.operators),a={$type:"Group",elements:[]},s={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(s,o);const l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...s,$container:o};o.elements.push(l,u);const c=n.map(p=>e.tokens[p.value]).map((p,m)=>({ALT:i(()=>e.parser.consume(m,p,l),"ALT")}));let f;return p=>{f??(f=Su(e,r)),e.parser.subrule(0,f,!1,s,p),e.parser.many(0,{DEF:i(()=>{e.parser.alternatives(0,c),e.parser.subrule(1,f,!1,u,p)},"DEF")})}}i(SS,"buildInfixRule");function Mr(e,t,r=!1){let n;if(dr(t))n=LS(e,t);else if(kr(t))n=wS(e,t);else if(pr(t))n=Mr(e,t.terminal);else if(Nn(t))n=wm(e,t);else if(mr(t))n=IS(e,t);else if(kl(t))n=PS(e,t);else if(Ml(t))n=kS(e,t);else if(Pn(t))n=OS(e,t);else if(Pp(t)){const a=e.consume++;n=i(()=>e.parser.consume(a,Lr,t),"method")}else throw new Gl(t.$cstNode,`Unexpected element type: ${t.$type}`);return Im(e,r?void 0:Cs(t),n,t.cardinality)}i(Mr,"buildElement");function wS(e,t){const r=An(t);return()=>e.parser.action(r,t)}i(wS,"buildAction");function IS(e,t){const r=t.rule.ref;if(In(r)){const n=e.subrule++,a=Qe(r)&&r.fragment,s=t.arguments.length>0?NS(r,t.arguments):()=>({});let o;return l=>{o??(o=Su(e,r)),e.parser.subrule(n,o,a,t,s(l))}}else if(At(r)){const n=e.consume++,a=$l(e,r.name);return()=>e.parser.consume(n,a,t)}else if(r)Gr(r);else throw new Gl(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}i(IS,"buildRuleCall");function NS(e,t){if(t.some(r=>r.calledByName)){const r=t.map(n=>({parameterName:n.parameter?.ref?.name,predicate:wt(n.value)}));return n=>{const a={};for(const{parameterName:s,predicate:o}of r)s&&(a[s]=o(n));return a}}else{const r=t.map(n=>wt(n.value));return n=>{const a={};for(let s=0;s<r.length;s++)if(s<e.parameters.length){const o=e.parameters[s].name,l=r[s];a[o]=l(n)}return a}}}i(NS,"buildRuleCallPredicate");function wt(e){if(Np(e)){const t=wt(e.left),r=wt(e.right);return n=>t(n)||r(n)}else if(Ip(e)){const t=wt(e.left),r=wt(e.right);return n=>t(n)&&r(n)}else if(Lp(e)){const t=wt(e.value);return r=>!t(r)}else if(Dp(e)){const t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(Sp(e)){const t=!!e.true;return()=>t}Gr(e)}i(wt,"buildPredicate");function PS(e,t){if(t.elements.length===1)return Mr(e,t.elements[0]);{const r=[];for(const a of t.elements){const s={ALT:Mr(e,a,!0)},o=Cs(a);o&&(s.GATE=wt(o)),r.push(s)}const n=e.or++;return a=>e.parser.alternatives(n,r.map(s=>{const o={ALT:i(()=>s.ALT(a),"ALT")},l=s.GATE;return l&&(o.GATE=()=>l(a)),o}))}}i(PS,"buildAlternatives");function kS(e,t){if(t.elements.length===1)return Mr(e,t.elements[0]);const r=[];for(const l of t.elements){const u={ALT:Mr(e,l,!0)},c=Cs(l);c&&(u.GATE=wt(c)),r.push(u)}const n=e.or++,a=i((l,u)=>`uGroup_${l}_${u.getRuleStack().join("-")}`,"idFunc"),s=i(l=>e.parser.alternatives(n,r.map((u,c)=>{const f={ALT:i(()=>!0,"ALT")},p=e.parser;f.ALT=()=>{if(u.ALT(l),!p.isRecording()){const T=a(n,p);p.unorderedGroups.get(T)||p.unorderedGroups.set(T,[]);const g=p.unorderedGroups.get(T);typeof g?.[c]>"u"&&(g[c]=!0)}};const m=u.GATE;return m?f.GATE=()=>m(l):f.GATE=()=>!p.unorderedGroups.get(a(n,p))?.[c],f})),"alternatives"),o=Im(e,Cs(t),s,"*");return l=>{o(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(a(n,e.parser))}}i(kS,"buildUnorderedGroup");function OS(e,t){const r=t.elements.map(n=>Mr(e,n));return n=>r.forEach(a=>a(n))}i(OS,"buildGroup");function Cs(e){if(Pn(e))return e.guardCondition}i(Cs,"getGuardCondition");function wm(e,t,r=t.terminal){if(r)if(mr(r)&&Qe(r.rule.ref)){const n=r.rule.ref,a=e.subrule++;let s;return o=>{s??(s=Su(e,n)),e.parser.subrule(a,s,!1,t,o)}}else if(mr(r)&&At(r.rule.ref)){const n=e.consume++,a=$l(e,r.rule.ref.name);return()=>e.parser.consume(n,a,t)}else if(dr(r)){const n=e.consume++,a=$l(e,r.value);return()=>e.parser.consume(n,a,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const n=ql(t.type.ref)?.terminal;if(!n)throw new Error("Could not find name assignment for type: "+An(t.type.ref));return wm(e,t,n)}}i(wm,"buildCrossReference");function LS(e,t){const r=e.consume++,n=e.tokens[t.value];if(!n)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}i(LS,"buildKeyword");function Im(e,t,r,n){const a=t&&wt(t);if(!n)if(a){const s=e.or++;return o=>e.parser.alternatives(s,[{ALT:i(()=>r(o),"ALT"),GATE:i(()=>a(o),"GATE")},{ALT:xf(),GATE:i(()=>!a(o),"GATE")}])}else return r;if(n==="*"){const s=e.many++;return o=>e.parser.many(s,{DEF:i(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else if(n==="+"){const s=e.many++;if(a){const o=e.or++;return l=>e.parser.alternatives(o,[{ALT:i(()=>e.parser.atLeastOne(s,{DEF:i(()=>r(l),"DEF")}),"ALT"),GATE:i(()=>a(l),"GATE")},{ALT:xf(),GATE:i(()=>!a(l),"GATE")}])}else return o=>e.parser.atLeastOne(s,{DEF:i(()=>r(o),"DEF")})}else if(n==="?"){const s=e.optional++;return o=>e.parser.optional(s,{DEF:i(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else Gr(n)}i(Im,"wrap");function Su(e,t){const r=DS(e,t),n=e.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}i(Su,"getRule");function DS(e,t){if(In(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,a=t.$type;for(;!Qe(n);)(Pn(n)||kl(n)||Ml(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,e.ruleNames.set(t,a),a}}i(DS,"getRuleName");function $l(e,t){const r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}i($l,"getToken");function Nm(e){const t=e.Grammar,r=e.parser.Lexer,n=new bS(e);return _u(t,n,r.definition),n.finalize(),n}i(Nm,"createCompletionParser");function Pm(e){const t=km(e);return t.finalize(),t}i(Pm,"createLangiumParser");function km(e){const t=e.Grammar,r=e.parser.Lexer;return _u(t,new AS(e),r.definition)}i(km,"prepareLangiumParser");var wu=class{static{i(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){const r=le(jl(e,!1)),n=this.buildTerminalTokens(r),a=this.buildKeywordTokens(r,n,t);return a.push(...n),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(At).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){const t=Ls(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return typeof r=="function"&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=zl(t)?Ze.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const t=new RegExp(e,e.flags+"y");return(r,n)=>(t.lastIndex=n,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(In).flatMap(n=>Rr(n).filter(dr)).distinct(n=>n.value).toArray().sort((n,a)=>a.value.length-n.value.length).map(n=>this.buildKeywordToken(n,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){const n=this.buildKeywordPattern(e,r),a={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return typeof n=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,t){return t?new RegExp(Va(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((r,n)=>{const a=n?.PATTERN;return a?.source&&nd("^"+a.source+"$",e.value)&&r.push(n),r},[])}},Om=class{static{i(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(Nn(r)&&(r=ld(r)),mr(r)){const n=r.rule.ref;if(!n)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return Bt.convertInt(t);case"STRING":return Bt.convertString(t);case"ID":return Bt.convertID(t)}switch(gd(e)?.toLowerCase()){case"number":return Bt.convertNumber(t);case"boolean":return Bt.convertBoolean(t);case"bigint":return Bt.convertBigint(t);case"date":return Bt.convertDate(t);default:return t}}},Bt;(function(e){function t(c){let f="";for(let p=1;p<c.length-1;p++){const m=c.charAt(p);if(m==="\\"){const T=c.charAt(++p);f+=r(T)}else f+=m}return f}i(t,"convertString"),e.convertString=t;function r(c){switch(c){case"b":return"\b";case"f":return"\f";case"n":return`
151
+ `;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return c}}i(r,"convertEscapeCharacter");function n(c){return c.charAt(0)==="^"?c.substring(1):c}i(n,"convertID"),e.convertID=n;function a(c){return parseInt(c)}i(a,"convertInt"),e.convertInt=a;function s(c){return BigInt(c)}i(s,"convertBigint"),e.convertBigint=s;function o(c){return new Date(c)}i(o,"convertDate"),e.convertDate=o;function l(c){return Number(c)}i(l,"convertNumber"),e.convertNumber=l;function u(c){return c.toLowerCase()==="true"}i(u,"convertBoolean"),e.convertBoolean=u})(Bt||(Bt={}));var fe={};Sl(fe,gp(Il(),1));function Iu(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}i(Iu,"delayNextTick");var Lo=0,MS=10;function Nu(){return Lo=performance.now(),new fe.CancellationTokenSource}i(Nu,"startCancelableOperation");function Lm(e){MS=e}i(Lm,"setInterruptionPeriod");var Vt=Symbol("OperationCancelled");function Wn(e){return e===Vt}i(Wn,"isOperationCancelled");async function Fe(e){if(e===fe.CancellationToken.None)return;const t=performance.now();if(t-Lo>=MS&&(Lo=t,await Iu(),Lo=performance.now()),e.isCancellationRequested)throw Vt}i(Fe,"interruptAndCheck");var Tr=class{static{i(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}},by=class qf{static{i(this,"FullTextDocument")}constructor(t,r,n,a){this._uri=t,this._languageId=r,this._version=n,this._content=a,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(const n of t)if(qf.isIncremental(n)){const a=Mm(n.range),s=this.offsetAt(a.start),o=this.offsetAt(a.end);this._content=this._content.substring(0,s)+n.text+this._content.substring(o,this._content.length);const l=Math.max(a.start.line,0),u=Math.max(a.end.line,0);let c=this._lineOffsets;const f=Wf(n.text,!1,s);if(u-l===f.length)for(let m=0,T=f.length;m<T;m++)c[m+l+1]=f[m];else f.length<1e4?c.splice(l+1,u-l,...f):this._lineOffsets=c=c.slice(0,l+1).concat(f,c.slice(u+1));const p=n.text.length-(o-s);if(p!==0)for(let m=l+1+f.length,T=c.length;m<T;m++)c[m]=c[m]+p}else if(qf.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Wf(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);const r=this.getLineOffsets();let n=0,a=r.length;if(a===0)return{line:0,character:t};for(;n<a;){const o=Math.floor((n+a)/2);r[o]>t?a=o:n=o+1}const s=n-1;return t=this.ensureBeforeEOL(t,r[s]),{line:s,character:t-r[s]}}offsetAt(t){const r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;const n=r[t.line];if(t.character<=0)return n;const a=t.line+1<r.length?r[t.line+1]:this._content.length,s=Math.min(n+t.character,a);return this.ensureBeforeEOL(s,n)}ensureBeforeEOL(t,r){for(;t>r&&Dm(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Rl;(function(e){function t(a,s,o,l){return new by(a,s,o,l)}i(t,"create"),e.create=t;function r(a,s,o){if(a instanceof by)return a.update(s,o),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}i(r,"update"),e.update=r;function n(a,s){const o=a.getText(),l=Al(s.map(xS),(f,p)=>{const m=f.range.start.line-p.range.start.line;return m===0?f.range.start.character-p.range.start.character:m});let u=0;const c=[];for(const f of l){const p=a.offsetAt(f.range.start);if(p<u)throw new Error("Overlapping edit");p>u&&c.push(o.substring(u,p)),f.newText.length&&c.push(f.newText),u=a.offsetAt(f.range.end)}return c.push(o.substr(u)),c.join("")}i(n,"applyEdits"),e.applyEdits=n})(Rl||(Rl={}));function Al(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);Al(n,t),Al(a,t);let s=0,o=0,l=0;for(;s<n.length&&o<a.length;)t(n[s],a[o])<=0?e[l++]=n[s++]:e[l++]=a[o++];for(;s<n.length;)e[l++]=n[s++];for(;o<a.length;)e[l++]=a[o++];return e}i(Al,"mergeSort");function Wf(e,t,r=0){const n=t?[r]:[];for(let a=0;a<e.length;a++){const s=e.charCodeAt(a);Dm(s)&&(s===13&&a+1<e.length&&e.charCodeAt(a+1)===10&&a++,n.push(r+a+1))}return n}i(Wf,"computeLineOffsets");function Dm(e){return e===13||e===10}i(Dm,"isEOL");function Mm(e){const t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}i(Mm,"getWellformedRange");function xS(e){const t=Mm(e.range);return t!==e.range?{newText:e.newText,range:t}:e}i(xS,"getWellformedEdit");var GS;(()=>{"use strict";var e={975:P=>{function y($){if(typeof $!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify($))}i(y,"e");function v($,R){for(var b,O="",M=0,D=-1,x=0,B=0;B<=$.length;++B){if(B<$.length)b=$.charCodeAt(B);else{if(b===47)break;b=47}if(b===47){if(!(D===B-1||x===1))if(D!==B-1&&x===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var Y=O.lastIndexOf("/");if(Y!==O.length-1){Y===-1?(O="",M=0):M=(O=O.slice(0,Y)).length-1-O.lastIndexOf("/"),D=B,x=0;continue}}else if(O.length===2||O.length===1){O="",M=0,D=B,x=0;continue}}R&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+$.slice(D+1,B):O=$.slice(D+1,B),M=B-D-1;D=B,x=0}else b===46&&x!==-1?++x:x=-1}return O}i(v,"r");var C={resolve:i(function(){for(var $,R="",b=!1,O=arguments.length-1;O>=-1&&!b;O--){var M;O>=0?M=arguments[O]:($===void 0&&($=process.cwd()),M=$),y(M),M.length!==0&&(R=M+"/"+R,b=M.charCodeAt(0)===47)}return R=v(R,!b),b?R.length>0?"/"+R:"/":R.length>0?R:"."},"resolve"),normalize:i(function($){if(y($),$.length===0)return".";var R=$.charCodeAt(0)===47,b=$.charCodeAt($.length-1)===47;return($=v($,!R)).length!==0||R||($="."),$.length>0&&b&&($+="/"),R?"/"+$:$},"normalize"),isAbsolute:i(function($){return y($),$.length>0&&$.charCodeAt(0)===47},"isAbsolute"),join:i(function(){if(arguments.length===0)return".";for(var $,R=0;R<arguments.length;++R){var b=arguments[R];y(b),b.length>0&&($===void 0?$=b:$+="/"+b)}return $===void 0?".":C.normalize($)},"join"),relative:i(function($,R){if(y($),y(R),$===R||($=C.resolve($))===(R=C.resolve(R)))return"";for(var b=1;b<$.length&&$.charCodeAt(b)===47;++b);for(var O=$.length,M=O-b,D=1;D<R.length&&R.charCodeAt(D)===47;++D);for(var x=R.length-D,B=M<x?M:x,Y=-1,q=0;q<=B;++q){if(q===B){if(x>B){if(R.charCodeAt(D+q)===47)return R.slice(D+q+1);if(q===0)return R.slice(D+q)}else M>B&&($.charCodeAt(b+q)===47?Y=q:q===0&&(Y=0));break}var Ne=$.charCodeAt(b+q);if(Ne!==R.charCodeAt(D+q))break;Ne===47&&(Y=q)}var se="";for(q=b+Y+1;q<=O;++q)q!==O&&$.charCodeAt(q)!==47||(se.length===0?se+="..":se+="/..");return se.length>0?se+R.slice(D+Y):(D+=Y,R.charCodeAt(D)===47&&++D,R.slice(D))},"relative"),_makeLong:i(function($){return $},"_makeLong"),dirname:i(function($){if(y($),$.length===0)return".";for(var R=$.charCodeAt(0),b=R===47,O=-1,M=!0,D=$.length-1;D>=1;--D)if((R=$.charCodeAt(D))===47){if(!M){O=D;break}}else M=!1;return O===-1?b?"/":".":b&&O===1?"//":$.slice(0,O)},"dirname"),basename:i(function($,R){if(R!==void 0&&typeof R!="string")throw new TypeError('"ext" argument must be a string');y($);var b,O=0,M=-1,D=!0;if(R!==void 0&&R.length>0&&R.length<=$.length){if(R.length===$.length&&R===$)return"";var x=R.length-1,B=-1;for(b=$.length-1;b>=0;--b){var Y=$.charCodeAt(b);if(Y===47){if(!D){O=b+1;break}}else B===-1&&(D=!1,B=b+1),x>=0&&(Y===R.charCodeAt(x)?--x==-1&&(M=b):(x=-1,M=B))}return O===M?M=B:M===-1&&(M=$.length),$.slice(O,M)}for(b=$.length-1;b>=0;--b)if($.charCodeAt(b)===47){if(!D){O=b+1;break}}else M===-1&&(D=!1,M=b+1);return M===-1?"":$.slice(O,M)},"basename"),extname:i(function($){y($);for(var R=-1,b=0,O=-1,M=!0,D=0,x=$.length-1;x>=0;--x){var B=$.charCodeAt(x);if(B!==47)O===-1&&(M=!1,O=x+1),B===46?R===-1?R=x:D!==1&&(D=1):R!==-1&&(D=-1);else if(!M){b=x+1;break}}return R===-1||O===-1||D===0||D===1&&R===O-1&&R===b+1?"":$.slice(R,O)},"extname"),format:i(function($){if($===null||typeof $!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return(function(R,b){var O=b.dir||b.root,M=b.base||(b.name||"")+(b.ext||"");return O?O===b.root?O+M:O+"/"+M:M})(0,$)},"format"),parse:i(function($){y($);var R={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return R;var b,O=$.charCodeAt(0),M=O===47;M?(R.root="/",b=1):b=0;for(var D=-1,x=0,B=-1,Y=!0,q=$.length-1,Ne=0;q>=b;--q)if((O=$.charCodeAt(q))!==47)B===-1&&(Y=!1,B=q+1),O===46?D===-1?D=q:Ne!==1&&(Ne=1):D!==-1&&(Ne=-1);else if(!Y){x=q+1;break}return D===-1||B===-1||Ne===0||Ne===1&&D===B-1&&D===x+1?B!==-1&&(R.base=R.name=x===0&&M?$.slice(1,B):$.slice(x,B)):(x===0&&M?(R.name=$.slice(1,D),R.base=$.slice(1,B)):(R.name=$.slice(x,D),R.base=$.slice(x,B)),R.ext=$.slice(D,B)),x>0?R.dir=$.slice(0,x-1):M&&(R.dir="/"),R},"parse"),sep:"/",delimiter:":",win32:null,posix:null};C.posix=C,P.exports=C}},t={};function r(P){var y=t[P];if(y!==void 0)return y.exports;var v=t[P]={exports:{}};return e[P](v,v.exports,r),v.exports}i(r,"r"),r.d=(P,y)=>{for(var v in y)r.o(y,v)&&!r.o(P,v)&&Object.defineProperty(P,v,{enumerable:!0,get:y[v]})},r.o=(P,y)=>Object.prototype.hasOwnProperty.call(P,y),r.r=P=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})};var n={};let a;r.r(n),r.d(n,{URI:i(()=>m,"URI"),Utils:i(()=>_e,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(P,y){if(!P.scheme&&y)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${P.authority}", path: "${P.path}", query: "${P.query}", fragment: "${P.fragment}"}`);if(P.scheme&&!s.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!o.test(P.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}i(u,"a");const c="",f="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static{i(this,"l")}static isUri(y){return y instanceof m||!!y&&typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="string"&&typeof y.with=="function"&&typeof y.toString=="function"}scheme;authority;path;query;fragment;constructor(y,v,C,$,R,b=!1){typeof y=="object"?(this.scheme=y.scheme||c,this.authority=y.authority||c,this.path=y.path||c,this.query=y.query||c,this.fragment=y.fragment||c):(this.scheme=(function(O,M){return O||M?O:"file"})(y,b),this.authority=v||c,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==f&&(M=f+M):M=f}return M})(this.scheme,C||c),this.query=$||c,this.fragment=R||c,u(this,b))}get fsPath(){return S(this,!1)}with(y){if(!y)return this;let{scheme:v,authority:C,path:$,query:R,fragment:b}=y;return v===void 0?v=this.scheme:v===null&&(v=c),C===void 0?C=this.authority:C===null&&(C=c),$===void 0?$=this.path:$===null&&($=c),R===void 0?R=this.query:R===null&&(R=c),b===void 0?b=this.fragment:b===null&&(b=c),v===this.scheme&&C===this.authority&&$===this.path&&R===this.query&&b===this.fragment?this:new g(v,C,$,R,b)}static parse(y,v=!1){const C=p.exec(y);return C?new g(C[2]||c,Z(C[4]||c),Z(C[5]||c),Z(C[7]||c),Z(C[9]||c),v):new g(c,c,c,c,c)}static file(y){let v=c;if(a&&(y=y.replace(/\\/g,f)),y[0]===f&&y[1]===f){const C=y.indexOf(f,2);C===-1?(v=y.substring(2),y=f):(v=y.substring(2,C),y=y.substring(C)||f)}return new g("file",v,y,c,c)}static from(y){const v=new g(y.scheme,y.authority,y.path,y.query,y.fragment);return u(v,!0),v}toString(y=!1){return A(this,y)}toJSON(){return this}static revive(y){if(y){if(y instanceof m)return y;{const v=new g(y);return v._formatted=y.external,v._fsPath=y._sep===T?y.fsPath:null,v}}return y}}const T=a?1:void 0;class g extends m{static{i(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath}toString(y=!1){return y?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)}toJSON(){const y={$mid:1};return this._fsPath&&(y.fsPath=this._fsPath,y._sep=T),this._formatted&&(y.external=this._formatted),this.path&&(y.path=this.path),this.scheme&&(y.scheme=this.scheme),this.authority&&(y.authority=this.authority),this.query&&(y.query=this.query),this.fragment&&(y.fragment=this.fragment),y}}const _={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function I(P,y,v){let C,$=-1;for(let R=0;R<P.length;R++){const b=P.charCodeAt(R);if(b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===45||b===46||b===95||b===126||y&&b===47||v&&b===91||v&&b===93||v&&b===58)$!==-1&&(C+=encodeURIComponent(P.substring($,R)),$=-1),C!==void 0&&(C+=P.charAt(R));else{C===void 0&&(C=P.substr(0,R));const O=_[b];O!==void 0?($!==-1&&(C+=encodeURIComponent(P.substring($,R)),$=-1),C+=O):$===-1&&($=R)}}return $!==-1&&(C+=encodeURIComponent(P.substring($))),C!==void 0?C:P}i(I,"m");function N(P){let y;for(let v=0;v<P.length;v++){const C=P.charCodeAt(v);C===35||C===63?(y===void 0&&(y=P.substr(0,v)),y+=_[C]):y!==void 0&&(y+=P[v])}return y!==void 0?y:P}i(N,"y");function S(P,y){let v;return v=P.authority&&P.path.length>1&&P.scheme==="file"?`//${P.authority}${P.path}`:P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?y?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,a&&(v=v.replace(/\//g,"\\")),v}i(S,"v");function A(P,y){const v=y?N:I;let C="",{scheme:$,authority:R,path:b,query:O,fragment:M}=P;if($&&(C+=$,C+=":"),(R||$==="file")&&(C+=f,C+=f),R){let D=R.indexOf("@");if(D!==-1){const x=R.substr(0,D);R=R.substr(D+1),D=x.lastIndexOf(":"),D===-1?C+=v(x,!1,!1):(C+=v(x.substr(0,D),!1,!1),C+=":",C+=v(x.substr(D+1),!1,!0)),C+="@"}R=R.toLowerCase(),D=R.lastIndexOf(":"),D===-1?C+=v(R,!1,!0):(C+=v(R.substr(0,D),!1,!0),C+=R.substr(D))}if(b){if(b.length>=3&&b.charCodeAt(0)===47&&b.charCodeAt(2)===58){const D=b.charCodeAt(1);D>=65&&D<=90&&(b=`/${String.fromCharCode(D+32)}:${b.substr(3)}`)}else if(b.length>=2&&b.charCodeAt(1)===58){const D=b.charCodeAt(0);D>=65&&D<=90&&(b=`${String.fromCharCode(D+32)}:${b.substr(2)}`)}C+=v(b,!0,!1)}return O&&(C+="?",C+=v(O,!1,!1)),M&&(C+="#",C+=y?M:I(M,!1,!1)),C}i(A,"b");function k(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+k(P.substr(3)):P}}i(k,"C");const ae=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(P){return P.match(ae)?P.replace(ae,(y=>k(y))):P}i(Z,"w");var H=r(975);const ge=H.posix||H,ie="/";var _e;(function(P){P.joinPath=function(y,...v){return y.with({path:ge.join(y.path,...v)})},P.resolvePath=function(y,...v){let C=y.path,$=!1;C[0]!==ie&&(C=ie+C,$=!0);let R=ge.resolve(C,...v);return $&&R[0]===ie&&!y.authority&&(R=R.substring(1)),y.with({path:R})},P.dirname=function(y){if(y.path.length===0||y.path===ie)return y;let v=ge.dirname(y.path);return v.length===1&&v.charCodeAt(0)===46&&(v=""),y.with({path:v})},P.basename=function(y){return ge.basename(y.path)},P.extname=function(y){return ge.extname(y.path)}})(_e||(_e={})),GS=n})();var{URI:ft,Utils:Ci}=GS,Je;(function(e){e.basename=Ci.basename,e.dirname=Ci.dirname,e.extname=Ci.extname,e.joinPath=Ci.joinPath,e.resolvePath=Ci.resolvePath;const t=typeof process=="object"&&process?.platform==="win32";function r(o,l){return o?.toString()===l?.toString()}i(r,"equals"),e.equals=r;function n(o,l){const u=typeof o=="string"?ft.parse(o).path:o.path,c=typeof l=="string"?ft.parse(l).path:l.path,f=u.split("/").filter(T=>T.length>0),p=c.split("/").filter(T=>T.length>0);if(t){const T=/^[A-Z]:$/;if(f[0]&&T.test(f[0])&&(f[0]=f[0].toLowerCase()),p[0]&&T.test(p[0])&&(p[0]=p[0].toLowerCase()),f[0]!==p[0])return c.substring(1)}let m=0;for(;m<f.length&&f[m]===p[m];m++);return"../".repeat(f.length-m)+p.slice(m).join("/")}i(n,"relative"),e.relative=n;function a(o){return ft.parse(o.toString()).toString()}i(a,"normalize"),e.normalize=a;function s(o,l){let u=typeof o=="string"?o:o.path,c=typeof l=="string"?l:l.path;return c.charAt(c.length-1)==="/"&&(c=c.slice(0,-1)),u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),c===u?!0:c.length<u.length||c.charAt(u.length)!=="/"?!1:c.startsWith(u)}i(s,"contains"),e.contains=s})(Je||(Je={}));var xm=class{static{i(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return Je.normalize(e)}clear(){this.root.children.clear()}insert(e,t){const r=this.getNode(this.normalizeUri(e),!0);r.element=t}delete(e){const t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return this.getNode(this.normalizeUri(e),!1)!==void 0}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:Je.joinPath(ft.parse(t),r.name).toString(),element:r.element}}findChildren(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(n=>({name:n.name,uri:Je.joinPath(ft.parse(t),n.name).toString(),element:n.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const t=this.getNode(Je.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){const r=e.split("/");e.charAt(e.length-1)==="/"&&r.pop();let n=this.root;for(const a of r){let s=n.children.get(a);if(!s)if(t)s={name:a,children:new Map,parent:n},n.children.set(a,s);else return;n=s}return n}collectValues(e){const t=[];e.element&&t.push(e.element);for(const r of e.children.values())t.push(...this.collectValues(r));return t}},X;(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(X||(X={}));var FS=class{static{i(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=fe.CancellationToken.None){const r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return t=t??ft.parse(e.uri),fe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return fe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if(typeof t=="string"){const n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else if("$model"in t){const n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{const n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if(typeof t=="string"){const n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else{const n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let a;if(r)a={parseResult:e,uri:t,state:X.Parsed,references:[],textDocument:r};else{const s=this.createTextDocumentGetter(t,n);a={parseResult:e,uri:t,state:X.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,t){const r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),a=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{const s=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:s})}return r!==a&&(e.parseResult=await this.parseAsync(e.uri,a,t),e.parseResult.value.$document=e),e.state=X.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){const r=this.serviceRegistry;let n;return()=>n??(n=Rl.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},zS=class{static{i(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new xm,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return le(this.documentTrie.all())}addDocument(e){const t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){const t=e.toString();return this.documentTrie.find(t)}getDocuments(e){const t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(n=>(this.addDocument(n),n));{const n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,X.Changed),r}deleteDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=X.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){const t=e.toString(),r=this.documentTrie.findAll(t);for(const n of r)n.state=X.Changed;return this.documentTrie.delete(t),r}},Qr=Symbol("RefResolving"),jS=class{static{i(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=fe.CancellationToken.None){if(this.profiler?.isActive("linking")){const r=this.profiler.createTask("linking",this.languageId);r.start();try{for(const n of Nt(e.parseResult.value))await Fe(t),xa(n).forEach(a=>{const s=`${n.$type}:${a.property}`;r.startSubTask(s);try{this.doLink(a,e)}finally{r.stopSubTask(s)}})}finally{r.stop()}}else for(const r of Nt(e.parseResult.value))await Fe(t),xa(r).forEach(n=>this.doLink(n,e))}doLink(e,t){const r=e.reference;if("_ref"in r&&r._ref===void 0){r._ref=Qr;try{const n=this.getCandidate(e);nn(n)?r._ref=n:(r._nodeDescription=n,r._ref=this.loadAstNode(n)??this.createLinkingError(e,n))}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);const a=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${a}`}}t.references.push(r)}else if("_items"in r&&r._items===void 0){r._items=Qr;try{const n=this.getCandidates(e),a=[];if(nn(n))r._linkingError=n;else for(const s of n){const o=this.loadAstNode(s);o&&a.push({ref:o,$nodeDescription:s})}r._items=a}catch(n){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${n}`},r._items=[]}t.references.push(r)}}unlink(e){for(const t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(r=>`${r.documentUri}#${r.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,r,n){const a=this,s={$refNode:r,$refText:n,_ref:void 0,get ref(){if(ke(this._ref))return this._ref;if(Rp(this._nodeDescription)){const o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:s,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=Qr;const o=Na(e).$document,l=a.getLinkedNode({reference:s,container:e,property:t});if(l.error&&o&&o.state<X.ComputedScopes){this._ref=void 0;return}this._ref=l.node??l.error,this._nodeDescription=l.descr,o?.references.push(this)}else this._ref===Qr&&a.throwCyclicReferenceError(e,t,n);return ke(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return nn(this._ref)?this._ref:void 0}};return s}buildMultiReference(e,t,r,n){const a=this,s={$refNode:r,$refText:n,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=Qr;const o=Na(e).$document,l=a.getCandidates({reference:s,container:e,property:t}),u=[];if(nn(l))this._linkingError=l;else for(const c of l){const f=a.loadAstNode(c);f&&u.push({ref:f,$nodeDescription:c})}this._items=u,o?.references.push(this)}else this._items===Qr&&a.throwCyclicReferenceError(e,t,n);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=a.createLinkingError({reference:s,container:e,property:t})}};return s}throwCyclicReferenceError(e,t,r){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{const t=this.getCandidate(e);if(nn(t))return{error:t};const r=this.loadAstNode(t);return r?{node:r,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);const r=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${r}`}}}}loadAstNode(e){if(e.node)return e.node;const t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){const r=Na(e.container).$document;return r&&r.state<X.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`),{info:e,message:`Could not resolve reference to ${this.reflection.getReferenceType(e)} named '${e.reference.$refText}'.`,targetDescription:t}}};function Gm(e){return typeof e.name=="string"}i(Gm,"isNamed");var US=class{static{i(this,"DefaultNameProvider")}getName(e){if(Gm(e))return e.name}getNameNode(e){return Ul(e.$cstNode,"name")}},KS=class{static{i(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=Nt(e.Grammar).some(t=>Nn(t)&&t.isMulti)}findDeclarations(e){if(e){const t=pd(e),r=e.astNode;if(t&&r){const n=r[t.feature];if(Xe(n)||Ht(n))return zo(n);if(Array.isArray(n)){for(const a of n)if((Xe(a)||Ht(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return zo(a)}}if(r){const n=this.nameProvider.getNameNode(r);if(n&&(n===e||qp(e,n)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(const n of xa(r))if(Ht(n.reference)&&n.reference.items.some(a=>a.ref===e))return n.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const t=this.findDeclarations(e),r=[];for(const n of t){const a=this.nameProvider.getNameNode(n)??n.$cstNode;a&&r.push(a)}return r}findReferences(e,t){const r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(a=>Je.equals(a.sourceUri,t.documentUri))),r.push(...n),le(r)}getSelfReferences(e){const t=this.getSelfNodes(e),r=[];for(const n of t){const a=this.nameProvider.getNameNode(n);if(a){const s=It(n),o=this.nodeLocator.getAstNodePath(n);r.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:za(a),local:!0})}}return r}},$r=class{static{i(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return cs.sum(le(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const n=r.indexOf(t);if(n>=0)return r.length===1?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const t=this.map.get(e);return t?le(t):La}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(n=>e(n,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return le(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return le(this.map.keys())}values(){return le(this.map.values()).flat()}entriesGroupedByKey(){return le(this.map.entries())}},El=class{static{i(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}},BS=class{static{i(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=fe.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=Ns,n=fe.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,t);for(const s of r(e))await Fe(n),this.addExportedSymbol(s,a,t);return a}addExportedSymbol(e,t,r){const n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=fe.CancellationToken.None){const r=e.parseResult.value,n=new $r;for(const a of Rr(r))await Fe(t),this.addLocalSymbol(a,e,n);return n}addLocalSymbol(e,t,r){const n=e.$container;if(n){const a=this.nameProvider.getName(e);a&&r.add(n,this.descriptions.createDescription(e,a,t))}}},Vf=class{static{i(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===t):this.elements.find(n=>n.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(n=>n.name.toLowerCase()===t):this.elements.filter(n=>n.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},Kx=class{static{i(this,"MapScope")}constructor(e,t,r){this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(a,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?le(n).concat(this.outerScope.getElements(e)):le(n)}getAllElements(){let e=le(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},qS=class{static{i(this,"MultiMapScope")}constructor(e,t,r){this.elements=new $r,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.add(a,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||r.length===0)&&this.outerScope?le(r).concat(this.outerScope.getElements(e)):le(r)}getAllElements(){let e=le(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Bx={getElement(){},getElements(){return La},getAllElements(){return La}},Pu=class{static{i(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},Fm=class extends Pu{static{i(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},ku=class extends Pu{static{i(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){const a=r();return n.set(t,a),a}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},WS=class extends ku{static{i(this,"DocumentCache")}constructor(e,t){super(r=>r.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,r=>{this.clear(r.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{for(const a of n)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{const a=r.concat(n);for(const s of a)this.clear(s)}))}},zm=class extends Fm{static{i(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{n.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},VS=class{static{i(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new zm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),n=It(e.container).localSymbols;if(n){let s=e.container;do n.has(s)&&t.push(n.getStream(s).filter(o=>this.reflection.isSubtype(o.type,r))),s=s.$container;while(s)}let a=this.getGlobalScope(r,e);for(let s=t.length-1;s>=0;s--)a=this.createScope(t[s],a);return a}createScope(e,t,r){return new Vf(le(e),t,r)}createScopeForNodes(e,t,r){return new Vf(le(e).map(n=>{const a=this.nameProvider.getName(n);if(a)return this.descriptions.createDescription(n,a)}).nonNullable(),t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new qS(this.indexManager.allElements(e)))}};function jm(e){return typeof e.$comment=="string"}i(jm,"isAstNodeWithComment");function Hf(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}i(Hf,"isIntermediateReference");var HS=class{static{i(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){const r=t??{},n=t?.replacer,a=i((o,l)=>this.replacer(o,l,r),"defaultReplacer"),s=n?(o,l)=>n(o,l,a):a;try{return this.currentDocument=It(e),JSON.stringify(e,s,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){const r=t??{},n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,t,{refText:r,sourceText:n,textRegions:a,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(Xe(t)){const l=t.ref,u=r?t.$refText:void 0;if(l){const c=It(l);let f="";this.currentDocument&&this.currentDocument!==c&&(o?f=o(c.uri,l):f=c.uri.toString());const p=this.astNodeLocator.getAstNodePath(l);return{$ref:`${f}#${p}`,$refText:u}}else return{$error:t.error?.message??"Could not resolve reference",$refText:u}}else if(Ht(t)){const l=r?t.$refText:void 0,u=[];for(const c of t.items){const f=c.ref,p=It(c.ref);let m="";this.currentDocument&&this.currentDocument!==p&&(o?m=o(p.uri,f):m=p.uri.toString());const T=this.astNodeLocator.getAstNodePath(f);u.push(`${m}#${T}`)}return{$refs:u,$refText:l}}else if(ke(t)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(l??(l={...t}),l.$sourceText=t.$cstNode?.text),s){l??(l={...t});const u=this.commentProvider.getComment(t);u&&(l.$comment=u.replace(/\r/g,""))}return l??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=i(r=>({offset:r.offset,end:r.end,length:r.length,range:r.range}),"createDocumentSegment");if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),n=r.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{const s=cd(e.$cstNode,a).map(t);s.length!==0&&(n[a]=s)}),e}}linkNode(e,t,r,n,a,s){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let c=0;c<u.length;c++){const f=u[c];Hf(f)?u[c]=this.reviveReference(e,l,t,f,r):ke(f)&&this.linkNode(f,t,r,e,l,c)}else Hf(u)?e[l]=this.reviveReference(e,l,t,u,r):ke(u)&&this.linkNode(u,t,r,e,l);const o=e;o.$container=n,o.$containerProperty=a,o.$containerIndex=s}reviveReference(e,t,r,n,a){let s=n.$refText,o=n.$error,l;if(n.$ref){const u=this.getRefNode(r,n.$ref,a.uriConverter);if(ke(u))return s||(s=this.nameProvider.getName(u)),{$refText:s??"",ref:u};o=u}else if(n.$refs){const u=[];for(const c of n.$refs){const f=this.getRefNode(r,c,a.uriConverter);ke(f)&&u.push({ref:f})}if(u.length===0)l={$refText:s??"",items:u},o??(o="Could not resolve multi-reference");else return{$refText:s??"",items:u}}if(o)return l??(l={$refText:s??"",ref:void 0}),l.error={info:{container:e,property:t,reference:l},message:o},l}getRefNode(e,t,r){try{const n=t.indexOf("#");if(n===0){const l=this.astNodeLocator.getAstNode(e,t.substring(1));return l||"Could not resolve path: "+t}if(n<0){const l=r?r(t):ft.parse(t),u=this.langiumDocuments.getDocument(l);return u?u.parseResult.value:"Could not find document for URI: "+t}const a=r?r(t.substring(0,n)):ft.parse(t.substring(0,n)),s=this.langiumDocuments.getDocument(a);if(!s)return"Could not find document for URI: "+t;if(n===t.length-1)return s.parseResult.value;const o=this.astNodeLocator.getAstNode(s.parseResult.value,t.substring(n+1));return o||"Could not resolve URI: "+t}catch(n){return String(n)}}},YS=class{static{i(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){const t=e.LanguageMetaData;for(const r of t.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(r,e);if(t.fileNames)for(const r of t.fileNames)this.fileNameMap.has(r)&&console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(r,e);this.languageIdMap.set(t.languageId,e)}getServices(e){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const t=this.textDocuments?.get(e)?.languageId;if(t!==void 0){const s=this.languageIdMap.get(t);if(s)return s}const r=Je.extname(e),n=Je.basename(e),a=this.fileNameMap.get(n)??this.fileExtensionMap.get(r);if(!a)throw t?new Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${r}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};function vn(e){return{code:e}}i(vn,"diagnosticData");var bl;(function(e){e.defaults=["fast","slow","built-in"],e.all=e.defaults})(bl||(bl={}));var XS=class{static{i(this,"ValidationRegistry")}constructor(e){this.entries=new $r,this.knownCategories=new Set(bl.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if(r==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(r);for(const[n,a]of Object.entries(e)){const s=a;if(Array.isArray(s))for(const o of s){const l={check:this.wrapValidationException(o,t),category:r};this.addEntry(n,l)}else if(typeof s=="function"){const o={check:this.wrapValidationException(s,t),category:r};this.addEntry(n,o)}else Gr(s)}}wrapValidationException(e,t){return async(r,n,a)=>{await this.handleException(()=>e.call(t,r,n,a),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(a){if(Wn(a))throw a;console.error(`${t}:`,a),a instanceof Error&&a.stack&&console.error(a.stack),r("error",`${t}: ${a instanceof Error?a.message:String(a)}`,{node:n})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=le(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(n=>t.includes(n.category))),r.map(n=>n.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,a,s,o)=>{await this.handleException(()=>e.call(r,n,a,s,o),t,a,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},JS=Object.freeze({validateNode:!0,validateChildren:!0}),ZS=class{static{i(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=fe.CancellationToken.None){const n=e.parseResult,a=[];if(await Fe(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,a,t),t.stopAfterLexingErrors&&a.some(s=>s.data?.code===vt.LexingError)||(this.processParsingErrors(n,a,t),t.stopAfterParsingErrors&&a.some(s=>s.data?.code===vt.ParsingError))||(this.processLinkingErrors(e,a,t),t.stopAfterLinkingErrors&&a.some(s=>s.data?.code===vt.LinkingError))))return a;try{a.push(...await this.validateAst(n.value,t,r))}catch(s){if(Wn(s))throw s;console.error("An error occurred during validation:",s)}return await Fe(r),a}processLexingErrors(e,t,r){const n=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of n){const s=a.severity??"error",o={severity:ls(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:Km(s),source:this.getSource()};t.push(o)}}processParsingErrors(e,t,r){for(const n of e.parserErrors){let a;if(isNaN(n.token.startOffset)){if("previousToken"in n){const s=n.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};a={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};a={start:o,end:o}}}}else a=fs(n.token);if(a){const s={severity:ls("error"),range:a,message:n.message,data:vn(vt.ParsingError),source:this.getSource()};t.push(s)}}}processLinkingErrors(e,t,r){for(const n of e.references){const a=n.error;if(a){const s={node:a.info.container,range:n.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:vt.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};t.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,t,r=fe.CancellationToken.None){const n=[],a=i((s,o,l)=>{n.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,t,a,r),await this.validateAstNodes(e,t,a,r),await this.validateAstAfter(e,t,a,r),n}async validateAstBefore(e,t,r,n=fe.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const s of a)await Fe(n),await s(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=fe.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const s=Nt(e).iterator();for(const o of s){a.startSubTask(o.$type);const l=this.validateSingleNodeOptions(o,t);if(l.validateNode)try{const u=this.validationRegistry.getChecks(o.$type,t.categories);for(const c of u)await c(o,r,n)}finally{a.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{a.stop()}}else{const a=Nt(e).iterator();for(const s of a){await Fe(n);const o=this.validateSingleNodeOptions(s,t);if(o.validateNode){const l=this.validationRegistry.getChecks(s.$type,t.categories);for(const u of l)await u(s,r,n)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,t){return JS}async validateAstAfter(e,t,r,n=fe.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const s of a)await Fe(n),await s(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:Um(r),severity:ls(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function Um(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=Ul(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=fd(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}i(Um,"getDiagnosticRange");function ls(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}i(ls,"toDiagnosticSeverity");function Km(e){switch(e){case"error":return vn(vt.LexingError);case"warning":return vn(vt.LexingWarning);case"info":return vn(vt.LexingInfo);case"hint":return vn(vt.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}i(Km,"toDiagnosticData");var vt;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(vt||(vt={}));var QS=class{static{i(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){const n=r??It(e);t??(t=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${a} has no name.`);let s;const o=i(()=>s??(s=za(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return o()},selectionSegment:za(e.$cstNode),type:e.$type,documentUri:n.uri,path:a}}},ew=class{static{i(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=fe.CancellationToken.None){const r=[],n=e.parseResult.value;for(const a of Nt(n))await Fe(t),xa(a).forEach(s=>{s.reference.error||r.push(...this.createInfoDescriptions(s))});return r}createInfoDescriptions(e){const t=e.reference;if(t.error||!t.$refNode)return[];let r=[];Xe(t)&&t.$nodeDescription?r=[t.$nodeDescription]:Ht(t)&&(r=t.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const n=It(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),s=[],o=za(t.$refNode);for(const l of r)s.push({sourceUri:n,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Je.equals(l.documentUri,n)});return s}},tw=class{static{i(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((r,n)=>{if(!r||n.length===0)return r;const a=n.indexOf(this.indexSeparator);if(a>0){const s=n.substring(0,a),o=parseInt(n.substring(a+1));return r[s]?.[o]}return r[n]},e)}},Ou={};Sl(Ou,gp(qa(),1));var rw=class{static{i(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Tr,this.onConfigurationSectionUpdateEmitter=new Ou.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(n=>({section:this.toSectionName(n.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((n,a)=>{this.updateSectionConfiguration(n.section,r[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([t,r])=>{this.updateSectionConfiguration(t,r),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:r})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},to=gp(mI(),1),Rn;(function(e){function t(r){return{dispose:i(async()=>await r(),"dispose")}}i(t,"create"),e.create=t})(Rn||(Rn={}));var nw=class{static{i(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $r,this.documentPhaseListeners=new $r,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=X.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=fe.CancellationToken.None){for(const n of e){const a=n.uri.toString();if(n.state===X.Validated){if(typeof t.validation=="boolean"&&t.validation)this.resetToState(n,X.IndexedReferences);else if(typeof t.validation=="object"){const s=this.findMissingValidationCategories(n,t);s.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(a)?.result}),n.state=X.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=X.Changed,await this.emitUpdate(e.map(n=>n.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=fe.CancellationToken.None){this.currentState=X.Changed;const n=[];for(const l of t){const u=this.langiumDocuments.deleteDocuments(l);for(const c of u)n.push(c.uri),this.cleanUpDeleted(c)}const a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of a){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=X.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,X.Changed)}const s=le(a).concat(n).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,X.ComputedScopes)),await this.emitUpdate(a,n),await Fe(r);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state<X.Validated||!this.buildState.get(l.uri.toString())?.completed||this.resultsAreIncomplete(l,this.updateBuildOptions)).toArray());await this.buildDocuments(o,this.updateBuildOptions,r)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){const r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set;return le(t===void 0||t.validation===!0?n:typeof t.validation=="object"?t.validation.categories??n:[]).filter(s=>!a.has(s)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t<r;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;t<r&&([e[t],e[r]]=[e[r],e[t]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Rn.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case X.Changed:case X.Parsed:this.indexManager.removeContent(e.uri);case X.IndexedContent:e.localSymbols=void 0;case X.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case X.Linked:this.indexManager.removeReferences(e.uri);case X.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case X.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=X.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,X.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,X.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,X.ComputedScopes,r,async s=>{s.localSymbols=await this.serviceRegistry.getServices(s.uri).references.ScopeComputation.collectLocalSymbols(s,r)});const n=e.filter(s=>this.shouldLink(s));await this.runCancelable(n,X.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(n,X.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const a=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(a,X.Validated,r,async s=>{await this.validate(s,r),this.markAsCompleted(s)})}markAsCompleted(e){const t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(const r of e){const n=r.uri.toString(),a=this.buildState.get(n);(!a||a.completed)&&this.buildState.set(n,{completed:!1,options:t,result:a?.result})}}async runCancelable(e,t,r,n){for(const s of e)s.state<t&&(await Fe(r),await n(s),s.state=t,await this.notifyDocumentPhase(s,t,r));const a=e.filter(s=>s.state===t);await this.notifyBuildPhase(a,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Rn.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Rn.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return t&&"path"in t?n=t:r=t,r??(r=fe.CancellationToken.None),n?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){const n=this.langiumDocuments.getDocument(t);if(n){if(n.state>=e)return Promise.resolve(t);if(r.isCancellationRequested)return Promise.reject(Vt);if(this.currentState>=e&&e>n.state)return Promise.reject(new to.ResponseError(to.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${X[n.state]}, requiring ${X[e]}, but workspace state is already ${X[this.currentState]}. Returning undefined.`))}else return Promise.reject(new to.ResponseError(to.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`));return new Promise((a,s)=>{const o=this.onDocumentPhase(e,u=>{Je.equals(u.uri,t)&&(o.dispose(),l.dispose(),a(u.uri))}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(Vt)})})}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Vt):new Promise((r,n)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),s.dispose(),r()}),s=t.onCancellationRequested(()=>{a.dispose(),s.dispose(),n(Vt)})})}async notifyDocumentPhase(e,t,r){const n=this.documentPhaseListeners.get(t).slice();for(const a of n)try{await Fe(r),await a(e,r)}catch(s){if(!Wn(s))throw s}}async notifyBuildPhase(e,t,r){if(e.length===0)return;const n=this.buildPhaseListeners.get(t).slice();for(const a of n)await Fe(r),await a(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){const r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),a=typeof n.validation=="object"?{...n.validation}:{};a.categories=this.findMissingValidationCategories(e,n);const s=await r.validateDocument(e,a,t);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;const o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=le(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},aw=class{static{i(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new ku,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=It(e).uri,n=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{Je.equals(s.targetUri,r)&&s.targetPath===t&&n.push(s)})}),le(n)}allElements(e,t){let r=le(this.symbolIndex.keys());return t&&(r=r.filter(n=>!t||t.has(n))),r.map(n=>this.getFileDescriptions(n,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(r=>this.astReflection.isSubtype(r.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){const t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=fe.CancellationToken.None){const r=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),n=e.uri.toString();this.symbolIndex.set(n,r),this.symbolByTypeIndex.clear(n)}async updateReferences(e,t=fe.CancellationToken.None){const r=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),r)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(n=>!n.local&&t.has(n.targetUri.toString())):!1}},iw=class{static{i(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Tr,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(e,t=fe.CancellationToken.None){const r=await this.performStartup(e);await Fe(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=[],r=i(s=>{t.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,r);const n=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,n)));const a=le(n).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(a,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async r=>{t(await this.langiumDocuments.getOrCreateDocument(r))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return ft.parse(e.uri)}async traverseFolder(e,t){try{const r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async n=>{this.shouldIncludeEntry(n)&&(n.isDirectory?await this.traverseFolder(n.uri,t):n.isFile&&t.push(n.uri))}))}catch(r){console.error("Failure to read directory content of "+e.toString(!0),r)}}async searchFolder(e){const t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){const t=Je.basename(e.uri);return t.startsWith(".")?!1:e.isDirectory?t!=="node_modules"&&t!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},sw=class{static{i(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,a){return Sf.buildUnexpectedCharactersMessage(e,t,r,n,a)}buildUnableToPopLexerModeMessage(e){return Sf.buildUnableToPopLexerModeMessage(e)}},Bm={mode:"full"},qm=class{static{i(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=Cl(t)?Object.values(t):t,n=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Ze(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Bm){const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(Cl(e))return e;const t=Du(e)?Object.values(e.modes).flat():e,r={};return t.forEach(n=>r[n.name]=n),r}};function Lu(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}i(Lu,"isTokenTypeArray");function Du(e){return e&&"modes"in e&&"defaultMode"in e}i(Du,"isIMultiModeLexerDefinition");function Cl(e){return!Lu(e)&&!Du(e)}i(Cl,"isTokenTypeDictionary");ws();function Wm(e,t,r){let n,a;typeof e=="string"?(a=t,n=r):(a=e.range.start,n=t),a||(a=ne.create(0,0));const s=Hm(e),o=Mu(n);return cw({index:0,tokens:ow({lines:s,position:a,options:o}),position:a})}i(Wm,"parseJSDoc");function Vm(e,t){const r=Mu(t),n=Hm(e);if(n.length===0)return!1;const a=n[0],s=n[n.length-1],o=r.start,l=r.end;return!!o?.exec(a)&&!!l?.exec(s)}i(Vm,"isJSDoc");function Hm(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(uv)}i(Hm,"getLines");var Cy=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,qx=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function ow(e){const t=[];let r=e.position.line,n=e.position.character;for(let a=0;a<e.lines.length;a++){const s=a===0,o=a===e.lines.length-1;let l=e.lines[a],u=0;if(s&&e.options.start){const c=e.options.start?.exec(l);c&&(u=c.index+c[0].length)}else{const c=e.options.line?.exec(l);c&&(u=c.index+c[0].length)}if(o){const c=e.options.end?.exec(l);c&&(l=l.substring(0,c.index))}if(l=l.substring(0,uw(l)),_l(l,u)>=l.length){if(t.length>0){const c=ne.create(r,n);t.push({type:"break",content:"",range:J.create(c,c)})}}else{Cy.lastIndex=u;const c=Cy.exec(l);if(c){const f=c[0],p=c[1],m=ne.create(r,n+u),T=ne.create(r,n+u+f.length);t.push({type:"tag",content:p,range:J.create(m,T)}),u+=f.length,u=_l(l,u)}if(u<l.length){const f=l.substring(u),p=Array.from(f.matchAll(qx));t.push(...lw(p,f,r,n+u))}}r++,n=0}return t.length>0&&t[t.length-1].type==="break"?t.slice(0,-1):t}i(ow,"tokenize");function lw(e,t,r,n){const a=[];if(e.length===0){const s=ne.create(r,n),o=ne.create(r,n+t.length);a.push({type:"text",content:t,range:J.create(s,o)})}else{let s=0;for(const l of e){const u=l.index,c=t.substring(s,u);c.length>0&&a.push({type:"text",content:t.substring(s,u),range:J.create(ne.create(r,s+n),ne.create(r,u+n))});let f=c.length+1;const p=l[1];if(a.push({type:"inline-tag",content:p,range:J.create(ne.create(r,s+f+n),ne.create(r,s+f+p.length+n))}),f+=p.length,l.length===4){f+=l[2].length;const m=l[3];a.push({type:"text",content:m,range:J.create(ne.create(r,s+f+n),ne.create(r,s+f+m.length+n))})}else a.push({type:"text",content:"",range:J.create(ne.create(r,s+f+n),ne.create(r,s+f+n))});s=u+l[0].length}const o=t.substring(s);o.length>0&&a.push({type:"text",content:o,range:J.create(ne.create(r,s+n),ne.create(r,s+n+o.length))})}return a}i(lw,"buildInlineTokens");var Wx=/\S/,Vx=/\s*$/;function _l(e,t){const r=e.substring(t).match(Wx);return r?t+r.index:e.length}i(_l,"skipWhitespace");function uw(e){const t=e.match(Vx);if(t&&typeof t.index=="number")return t.index}i(uw,"lastCharacter");function cw(e){const t=ne.create(e.position.line,e.position.character);if(e.tokens.length===0)return new _y([],J.create(t,t));const r=[];for(;e.index<e.tokens.length;){const s=fw(e,r[r.length-1]);s&&r.push(s)}const n=r[0]?.range.start??t,a=r[r.length-1]?.range.end??t;return new _y(r,J.create(n,a))}i(cw,"parseJSDocComment");function fw(e,t){const r=e.tokens[e.index];if(r.type==="tag")return Xm(e,!1);if(r.type==="text"||r.type==="inline-tag")return Ym(e);pw(r,t),e.index++}i(fw,"parseJSDocElement");function pw(e,t){if(t){const r=new yw("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}i(pw,"appendEmptyLine");function Ym(e){let t=e.tokens[e.index];const r=t;let n=t;const a=[];for(;t&&t.type!=="break"&&t.type!=="tag";)a.push(dw(e)),n=t,t=e.tokens[e.index];return new Yf(a,J.create(r.range.start,n.range.end))}i(Ym,"parseJSDocText");function dw(e){return e.tokens[e.index].type==="inline-tag"?Xm(e,!0):Jm(e)}i(dw,"parseJSDocInline");function Xm(e,t){const r=e.tokens[e.index++],n=r.content.substring(1);if(e.tokens[e.index]?.type==="text")if(t){const a=Jm(e);return new Hu(n,new Yf([a],a.range),t,J.create(r.range.start,a.range.end))}else{const a=Ym(e);return new Hu(n,a,t,J.create(r.range.start,a.range.end))}else{const a=r.range;return new Hu(n,new Yf([],a),t,a)}}i(Xm,"parseJSDocTag");function Jm(e){const t=e.tokens[e.index++];return new yw(t.content,t.range)}i(Jm,"parseJSDocLine");function Mu(e){if(!e)return Mu({start:"/**",end:"*/",line:"*"});const{start:t,end:r,line:n}=e;return{start:Do(t,!0),end:Do(r,!1),line:Do(n,!0)}}i(Mu,"normalizeOptions");function Do(e,t){if(typeof e=="string"||typeof e=="object"){const r=typeof e=="string"?Va(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return e}i(Do,"normalizeOption");var _y=class{static{i(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Xf(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const n=r.toMarkdown(e);t+=Xf(t)+n}return t.trim()}},Hu=class{static{i(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
152
+ ${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const a=mw(this.name,t,e??{});if(typeof a=="string")return a}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return this.content.inlines.length===1?n=`${n} — ${t}`:this.content.inlines.length>1&&(n=`${n}
153
+ ${t}`),this.inline?`{${n}}`:n}};function mw(e,t,r){if(e==="linkplain"||e==="linkcode"||e==="link"){const n=t.indexOf(" ");let a=t;if(n>0){const s=_l(t,n);a=t.substring(s),t=t.substring(0,n)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(a=`\`${a}\``),r.renderLink?.(t,a)??hw(t,a)}}i(mw,"renderInlineTag");function hw(e,t){try{return ft.parse(e,!0),`[${t}](${e})`}catch{return e}}i(hw,"renderLinkDefault");var Yf=class{static{i(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){const r=this.inlines[t],n=this.inlines[t+1];e+=r.toString(),n&&n.range.start.line>r.range.start.line&&(e+=`
154
+ `)}return e}toMarkdown(e){let t="";for(let r=0;r<this.inlines.length;r++){const n=this.inlines[r],a=this.inlines[r+1];t+=n.toMarkdown(e),a&&a.range.start.line>n.range.start.line&&(t+=`
155
+ `)}return t}},yw=class{static{i(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function Xf(e){return e.endsWith(`
156
+ `)?`
157
+ `:`
158
+
159
+ `}i(Xf,"fillNewlines");var gw=class{static{i(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&Vm(t))return Wm(t).toMarkdown({renderLink:i((r,n)=>this.documentationLinkRenderer(e,r,n),"renderLink"),renderTag:i(r=>this.documentationTagRenderer(e,r),"renderTag")})}documentationLinkRenderer(e,t,r){const n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){const a=n.nameSegment.range.start.line+1,s=n.nameSegment.range.start.character+1;return`[${r}](${n.documentUri.with({fragment:`L${a},${s}`}).toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){const r=It(e).localSymbols;if(!r)return;let n=e;do{const a=r.getStream(n).find(s=>s.name===t);if(a)return a;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(r=>r.name===t)}},vw=class{static{i(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return jm(e)?e.$comment:Yp(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},Tw=class{static{i(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},Hx=class{static{i(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){const r=await this.acquireParserWorker(t),n=new Tr;let a;const s=t.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(o=>{const l=this.hydrator.hydrate(o);n.resolve(l)}).catch(o=>{n.reject(o)}).finally(()=>{s.dispose(),clearTimeout(a)}),n.promise}terminateWorker(e){e.terminate();const t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(const r of this.workerPool)if(r.ready)return r.lock(),r;const t=new Tr;return e.onCancellationRequested(()=>{const r=this.queue.indexOf(t);r>=0&&this.queue.splice(r,1),t.reject(Vt)}),this.queue.push(t),t.promise}},Yx=class{static{i(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new Ou.Emitter,this.deferred=new Tr,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(a=>{const s=a;this.deferred.resolve(s),this.unlock()}),r(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Vt),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Tr,this.sendMessage(e),this.deferred.promise}},$w=class{static{i(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new fe.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=Nu();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=fe.CancellationToken.None){const n=new Tr,a={action:t,deferred:n,cancellationToken:r};return e.push(a),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:t,deferred:r,cancellationToken:n})=>{try{const a=await Promise.resolve().then(()=>t(n));r.resolve(a)}catch(a){Wn(a)?r.resolve(void 0):r.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Rw=class{static{i(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new El,this.tokenTypeIdMap=new El,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(t=>({...t,message:t.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const t=new Map,r=new Map;for(const n of Nt(e))t.set(n,{});if(e.$cstNode)for(const n of Fa(e.$cstNode))r.set(n,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const s=[];r[n]=s;for(const o of a)ke(o)?s.push(this.dehydrateAstNode(o,t)):Xe(o)?s.push(this.dehydrateReference(o,t)):s.push(o)}else ke(a)?r[n]=this.dehydrateAstNode(a,t):Xe(a)?r[n]=this.dehydrateReference(a,t):a!==void 0&&(r[n]=a);return r}dehydrateReference(e,t){const r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){const r=t.cstNodes.get(e);return Nl(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),fr(e)?r.content=e.content.map(n=>this.dehydrateCstNode(n,t)):Sn(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){const t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){const t=new Map,r=new Map;for(const a of Nt(e))t.set(a,{});let n;if(e.$cstNode)for(const a of Fa(e.$cstNode)){let s;"fullText"in a?(s=new Cm(a.fullText),n=s):"content"in a?s=new Cu:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(r.set(a,s),s.root=n)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const s=[];r[n]=s;for(const o of a)ke(o)?s.push(this.setParent(this.hydrateAstNode(o,t),r)):Xe(o)?s.push(this.hydrateReference(o,r,n,t)):s.push(o)}else ke(a)?r[n]=this.setParent(this.hydrateAstNode(a,t),r):Xe(a)?r[n]=this.hydrateReference(a,r,n,t):a!==void 0&&(r[n]=a);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){const n=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),fr(n))for(const a of e.content){const s=this.hydrateCstNode(a,t,r++);n.content.push(s)}return n}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,a=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new vl(r,n,{start:{line:a,character:s},end:{line:o,character:l}},t,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const t of Nt(this.grammar))Pl(t)&&this.grammarElementIdMap.set(t,e++)}};function xu(e){return{documentation:{CommentProvider:i(t=>new vw(t),"CommentProvider"),DocumentationProvider:i(t=>new gw(t),"DocumentationProvider")},parser:{AsyncParser:i(t=>new Tw(t),"AsyncParser"),GrammarConfig:i(t=>Td(t),"GrammarConfig"),LangiumParser:i(t=>Pm(t),"LangiumParser"),CompletionParser:i(t=>Nm(t),"CompletionParser"),ValueConverter:i(()=>new Om,"ValueConverter"),TokenBuilder:i(()=>new wu,"TokenBuilder"),Lexer:i(t=>new qm(t),"Lexer"),ParserErrorMessageProvider:i(()=>new Sm,"ParserErrorMessageProvider"),LexerErrorMessageProvider:i(()=>new sw,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:i(()=>new tw,"AstNodeLocator"),AstNodeDescriptionProvider:i(t=>new QS(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:i(t=>new ew(t),"ReferenceDescriptionProvider")},references:{Linker:i(t=>new jS(t),"Linker"),NameProvider:i(()=>new US,"NameProvider"),ScopeProvider:i(t=>new VS(t),"ScopeProvider"),ScopeComputation:i(t=>new BS(t),"ScopeComputation"),References:i(t=>new KS(t),"References")},serializer:{Hydrator:i(t=>new Rw(t),"Hydrator"),JsonSerializer:i(t=>new HS(t),"JsonSerializer")},validation:{DocumentValidator:i(t=>new ZS(t),"DocumentValidator"),ValidationRegistry:i(t=>new XS(t),"ValidationRegistry")},shared:i(()=>e.shared,"shared")}}i(xu,"createDefaultCoreModule");function Gu(e){return{ServiceRegistry:i(t=>new YS(t),"ServiceRegistry"),workspace:{LangiumDocuments:i(t=>new zS(t),"LangiumDocuments"),LangiumDocumentFactory:i(t=>new FS(t),"LangiumDocumentFactory"),DocumentBuilder:i(t=>new nw(t),"DocumentBuilder"),IndexManager:i(t=>new aw(t),"IndexManager"),WorkspaceManager:i(t=>new iw(t),"WorkspaceManager"),FileSystemProvider:i(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:i(()=>new $w,"WorkspaceLock"),ConfigurationProvider:i(t=>new rw(t),"ConfigurationProvider")},profilers:{}}}i(Gu,"createDefaultSharedCoreModule");var Jf;(function(e){e.merge=(t,r)=>Ba(Ba({},t),r)})(Jf||(Jf={}));function _s(e,t,r,n,a,s,o,l,u){return Qm([e,t,r,n,a,s,o,l,u].reduce(Ba,{}))}i(_s,"inject");var Aw=Symbol("isProxy");function Zm(e){if(e&&e[Aw])for(const t of Object.values(e))Zm(t);return e}i(Zm,"eagerLoad");function Qm(e,t){const r=new Proxy({},{deleteProperty:i(()=>!1,"deleteProperty"),set:i(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:i((n,a)=>a===Aw?!0:Zf(n,a,e,t||r),"get"),getOwnPropertyDescriptor:i((n,a)=>(Zf(n,a,e,t||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:i((n,a)=>a in e,"has"),ownKeys:i(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}i(Qm,"_inject");var Sy=Symbol();function Zf(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===Sy)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){const a=r[t];e[t]=Sy;try{e[t]=typeof a=="function"?a(n):Qm(a,n)}catch(s){throw e[t]=s instanceof Error?s:void 0,s}return e[t]}else return}i(Zf,"_resolve");function Ba(e,t){if(t){for(const[r,n]of Object.entries(t))if(n!=null)if(typeof n=="object"){const a=e[r];typeof a=="object"&&a!==null?e[r]=Ba(a,n):e[r]=Ba({},n)}else e[r]=n}return e}i(Ba,"_merge");var Qf={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},Tn;(function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"})(Tn||(Tn={}));var Ew=class extends wu{static{i(this,"IndentationAwareTokenBuilder")}constructor(e=Qf){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...Qf,...e},this.indentTokenType=ka({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=ka({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){const r=super.buildTokens(e,t);if(!Lu(r))throw new Error("Invalid tokens built by default builder");const{indentTokenName:n,dedentTokenName:a,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options;let l,u,c;const f=[];for(const p of r){for(const[m,T]of o)p.name===m?p.PUSH_MODE=Tn.IGNORE_INDENTATION:p.name===T&&(p.POP_MODE=!0);p.name===a?l=p:p.name===n?u=p:p.name===s?c=p:f.push(p)}if(!l||!u||!c)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[Tn.REGULAR]:[l,u,...f,c],[Tn.IGNORE_INDENTATION]:[...f,c]},defaultMode:Tn.REGULAR}:[l,u,c,...f]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r
160
+ `.includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,t,r,n){const a=this.getLineNumber(t,n);return qs(e,r,n,n+r.length,a,a,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,n);return a<=s?null:(this.indentationStack.push(a),o)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,n);if(a>=s)return null;const l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;const u=this.indentationStack.length-l-1,c=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let f=0;f<u;f++){const p=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(c-1));r.push(p),this.indentationStack.pop()}return null}buildTerminalToken(e){const t=super.buildTerminalToken(e),{indentTokenName:r,dedentTokenName:n,whitespaceTokenName:a}=this.options;return t.name===r?this.indentTokenType:t.name===n?this.dedentTokenType:t.name===a?ka({name:a,pattern:this.whitespaceRegExp,group:Ze.SKIPPED}):t}flushRemainingDedents(e){const t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},Xx=class extends qm{static{i(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof Ew)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=Bm){const r=super.tokenize(e),n=r.report;t?.mode==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];const{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=s.tokenTypeIdx,u=[],c=r.tokens.length-1;for(let f=0;f<c;f++){const p=r.tokens[f],m=r.tokens[f+1];if(p.tokenTypeIdx===o&&m.tokenTypeIdx===l){f++;continue}u.push(p)}return c>=0&&u.push(r.tokens[c]),r.tokens=u,r}},eh={};xr(eh,{AstUtils:()=>Ep,BiMap:()=>El,Cancellation:()=>fe,ContextCache:()=>ku,CstUtils:()=>$p,DONE_RESULT:()=>Ye,Deferred:()=>Tr,Disposable:()=>Rn,DisposableCache:()=>Pu,DocumentCache:()=>WS,EMPTY_STREAM:()=>La,ErrorWithLocation:()=>Gl,GrammarUtils:()=>Qp,MultiMap:()=>$r,OperationCancelled:()=>Vt,Reduction:()=>cs,RegExpUtils:()=>td,SimpleCache:()=>Fm,StreamImpl:()=>Wt,TreeStreamImpl:()=>Da,URI:()=>ft,UriTrie:()=>xm,UriUtils:()=>Je,WorkspaceCache:()=>zm,assertCondition:()=>ed,assertUnreachable:()=>Gr,delayNextTick:()=>Iu,interruptAndCheck:()=>Fe,isOperationCancelled:()=>Wn,loadGrammarFromJson:()=>ze,setInterruptionPeriod:()=>Lm,startCancelableOperation:()=>Nu,stream:()=>le});Sl(eh,Ou);var bw=class{static{i(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},th={fileSystemProvider:i(()=>new bw,"fileSystemProvider")},Jx={Grammar:i(()=>{},"Grammar"),LanguageMetaData:i(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Zx={AstReflection:i(()=>new Bp,"AstReflection")};function Cw(){const e=_s(Gu(th),Zx),t=_s(xu({shared:e}),Jx);return e.ServiceRegistry.register(t),t}i(Cw,"createMinimalGrammarServices");function ze(e){const t=Cw(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,ft.parse(`memory:/${r.name??"grammar"}.langium`)),r}i(ze,"loadGrammarFromJson");Sl(Dg,eh);var Qx=class{static{i(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new $r}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(t=>this.activeCategories.add(t)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(t=>this.activeCategories.delete(t)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return`${e}${t}`,new _w(r=>this.records.add(e,this.dumpRecord(e,r)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);const r=[];for(const s of t.entries.keys()){const o=t.entries.get(s),l=o.reduce((u,c)=>u+c);r.push({name:`${t.identifier}.${s}`,count:o.length,duration:l})}const n=t.duration-r.map(s=>s.duration).reduce((s,o)=>s+o,0);r.push({name:t.identifier,count:1,duration:n}),r.sort((s,o)=>o.duration-s.duration);function a(s){return Math.round(100*s)/100}return i(a,"Round"),console.table(r.map(s=>({Element:s.name,Count:s.count,"Self %":a(100*s.duration/t.duration),"Time (ms)":a(s.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(r=>r===t[0])).flatMap(t=>t[1])}},_w=class{static{i(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new $r,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(t=>t.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);const r=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=r);const n=r-t.content;this.entries.add(e,n)}},ep;(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(ep||(ep={}));var tp;(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(tp||(tp={}));var rp;(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(rp||(rp={}));var np;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(np||(np={}));var ap;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(ap||(ap={}));var ip;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(ip||(ip={}));var sp;(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(sp||(sp={}));var op;(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(op||(op={}));var lp;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(lp||(lp={}));var up;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(up||(up={}));var cp;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(cp||(cp={}));var fp;(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(fp||(fp={}));var pp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(pp||(pp={}));var dp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(dp||(dp={}));var mp;(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(mp||(mp={}));({...ep.Terminals,...tp.Terminals,...rp.Terminals,...np.Terminals,...ap.Terminals,...ip.Terminals,...sp.Terminals,...op.Terminals,...lp.Terminals,...up.Terminals,...cp.Terminals,...fp.Terminals,...dp.Terminals,...pp.Terminals,...mp.Terminals});var wy={$type:"AbnfAlternation",alternatives:"alternatives"},Iy={$type:"AbnfConcatenation",elements:"elements"},Yu={$type:"AbnfElement",primary:"primary",repeat:"repeat"},Ny={$type:"AbnfGroup",element:"element"},Py={$type:"AbnfNumVal",value:"value"},ky={$type:"AbnfOptionalGroup",element:"element"},ta={$type:"AbnfPrimary"},Xu={$type:"AbnfRule",definition:"definition",name:"name"},Oy={$type:"AbnfRuleName",name:"name"},Ly={$type:"AbnfStringLiteral",value:"value"},ro={$type:"Accelerator",name:"name",x:"x",y:"y"},Ju={$type:"Alignment",direction:"direction",members:"members"},no={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},_i={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},Zu={$type:"Annotations",x:"x",y:"y"},Ut={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function e1(e){return Ie.isInstance(e,Ut.$type)}i(e1,"isArchitecture");var ao={$type:"Axis",label:"label",name:"name"},Mo={$type:"Branch",name:"name",order:"order"};function t1(e){return Ie.isInstance(e,Mo.$type)}i(t1,"isBranch");var Dy={$type:"Checkout",branch:"branch"},io={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},Qu={$type:"ClassDefStatement",className:"className",styleText:"styleText"},da={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function r1(e){return Ie.isInstance(e,da.$type)}i(r1,"isCommit");var so={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},Kr={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},oo={$type:"Curve",entries:"entries",label:"label",name:"name"},en={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};function n1(e){return Ie.isInstance(e,en.$type)}i(n1,"isCynefin");var lo={$type:"Deaccelerator",name:"name",x:"x",y:"y"},My={$type:"Decorator",strategy:"strategy"},ra={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},xo={$type:"DomainBlock",domain:"domain",items:"items"};function a1(e){return Ie.isInstance(e,xo.$type)}i(a1,"isDomainBlock");var hp={$type:"DomainItem",label:"label"};function i1(e){return Ie.isInstance(e,hp.$type)}i(i1,"isDomainItem");var xy={$type:"EbnfChoice",alternatives:"alternatives"},Gy={$type:"EbnfExceptionPostfix",except:"except"},Fy={$type:"EbnfGroup",element:"element"},zy={$type:"EbnfNonTerminal",name:"name"},jy={$type:"EbnfOneOrMorePostfix",operator:"operator"},Uy={$type:"EbnfOptional",element:"element"},Ky={$type:"EbnfOptionalPostfix",operator:"operator"},Si={$type:"EbnfPostfix"},Br={$type:"EbnfPrimary"},By={$type:"EbnfRepetition",element:"element"},ec={$type:"EbnfRule",definition:"definition",name:"name"},qy={$type:"EbnfSequence",elements:"elements"},Wy={$type:"EbnfSpecial",text:"text"},tc={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},Vy={$type:"EbnfTerminal",value:"value"},Hy={$type:"EbnfZeroOrMorePostfix",operator:"operator"},zt={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},na={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},qr={$type:"EmFrame"},wi={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},Yy={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},rc={$type:"EmModelEntity",name:"name"};function s1(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}i(s1,"isEmModelEntityType");var uo={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},or={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function Sw(e){return Ie.isInstance(e,or.$type)}i(Sw,"isEmResetFrame");var _r={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},nc={$type:"Entry",axis:"axis",value:"value"},nr={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Xy={$type:"Evolution",stages:"stages"},co={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},ac={$type:"Evolve",component:"component",target:"target"},tn={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function o1(e){return Ie.isInstance(e,tn.$type)}i(o1,"isGitGraph");var Ii={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},Wi={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function l1(e){return Ie.isInstance(e,Wi.$type)}i(l1,"isInfo");var Ni={$type:"Item",classSelector:"classSelector",name:"name"},ic={$type:"Junction",id:"id",in:"in"},Pi={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},fo={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Wr={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},ma={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function u1(e){return Ie.isInstance(e,ma.$type)}i(u1,"isMerge");var po={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},sc={$type:"Option",name:"name",value:"value"},ha={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function c1(e){return Ie.isInstance(e,ha.$type)}i(c1,"isPacket");var ya={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function f1(e){return Ie.isInstance(e,ya.$type)}i(f1,"isPacketBlock");var Jy={$type:"PegAny",dot:"dot"},Zy={$type:"PegGroup",element:"element"},Qy={$type:"PegIdentifier",name:"name"},eg={$type:"PegLiteral",value:"value"},tg={$type:"PegOrderedChoice",alternatives:"alternatives"},oc={$type:"PegPrefix",operator:"operator",suffix:"suffix"},ki={$type:"PegPrimary"},lc={$type:"PegRule",definition:"definition",name:"name"},rg={$type:"PegSequence",elements:"elements"},uc={$type:"PegSuffix",operator:"operator",primary:"primary"},rn={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function p1(e){return Ie.isInstance(e,rn.$type)}i(p1,"isPie");var Go={$type:"PieSection",label:"label",value:"value"};function d1(e){return Ie.isInstance(e,Go.$type)}i(d1,"isPieSection");var cc={$type:"Pipeline",components:"components",parent:"parent"},mo={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Vr={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},ga={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function m1(e){return Ie.isInstance(e,ga.$type)}i(m1,"isRailroad");var va={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function h1(e){return Ie.isInstance(e,va.$type)}i(h1,"isRailroadAbnf");var ng={$type:"RailroadChoiceExpr",alternatives:"alternatives"},Ta={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function y1(e){return Ie.isInstance(e,Ta.$type)}i(y1,"isRailroadEbnf");var ar={$type:"RailroadExpression"},ag={$type:"RailroadNonTerminalExpr",name:"name"},ig={$type:"RailroadOneOrMoreExpr",element:"element"},sg={$type:"RailroadOptionalExpr",element:"element"},$a={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};function g1(e){return Ie.isInstance(e,$a.$type)}i(g1,"isRailroadPeg");var fc={$type:"RailroadRule",definition:"definition",name:"name"},og={$type:"RailroadSequenceExpr",elements:"elements"},lg={$type:"RailroadSpecialExpr",text:"text"},ug={$type:"RailroadTerminalExpr",value:"value"},cg={$type:"RailroadZeroOrMoreExpr",element:"element"},pc={$type:"Section",classSelector:"classSelector",name:"name"},aa={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},dc={$type:"Size",height:"height",width:"width"},ia={$type:"Statement"},Vi={$type:"Transition",from:"from",label:"label",to:"to"};function v1(e){return Ie.isInstance(e,Vi.$type)}i(v1,"isTransition");var Ra={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function T1(e){return Ie.isInstance(e,Ra.$type)}i(T1,"isTreemap");var mc={$type:"TreemapRow",indent:"indent",item:"item"},sa={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},Oi={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ue={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function $1(e){return Ie.isInstance(e,Ue.$type)}i($1,"isWardley");var ww=class extends Ap{constructor(){super(...arguments),this.types={AbnfAlternation:{name:wy.$type,properties:{alternatives:{name:wy.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:Iy.$type,properties:{elements:{name:Iy.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:Yu.$type,properties:{primary:{name:Yu.primary},repeat:{name:Yu.repeat}},superTypes:[]},AbnfGroup:{name:Ny.$type,properties:{element:{name:Ny.element}},superTypes:[ta.$type]},AbnfNumVal:{name:Py.$type,properties:{value:{name:Py.value}},superTypes:[ta.$type]},AbnfOptionalGroup:{name:ky.$type,properties:{element:{name:ky.element}},superTypes:[ta.$type]},AbnfPrimary:{name:ta.$type,properties:{},superTypes:[]},AbnfRule:{name:Xu.$type,properties:{definition:{name:Xu.definition},name:{name:Xu.name}},superTypes:[]},AbnfRuleName:{name:Oy.$type,properties:{name:{name:Oy.name}},superTypes:[ta.$type]},AbnfStringLiteral:{name:Ly.$type,properties:{value:{name:Ly.value}},superTypes:[ta.$type]},Accelerator:{name:ro.$type,properties:{name:{name:ro.name},x:{name:ro.x},y:{name:ro.y}},superTypes:[]},Alignment:{name:Ju.$type,properties:{direction:{name:Ju.direction},members:{name:Ju.members,defaultValue:[]}},superTypes:[]},Anchor:{name:no.$type,properties:{evolution:{name:no.evolution},name:{name:no.name},visibility:{name:no.visibility}},superTypes:[]},Annotation:{name:_i.$type,properties:{number:{name:_i.number},text:{name:_i.text},x:{name:_i.x},y:{name:_i.y}},superTypes:[]},Annotations:{name:Zu.$type,properties:{x:{name:Zu.x},y:{name:Zu.y}},superTypes:[]},Architecture:{name:Ut.$type,properties:{accDescr:{name:Ut.accDescr},accTitle:{name:Ut.accTitle},alignments:{name:Ut.alignments,defaultValue:[]},edges:{name:Ut.edges,defaultValue:[]},groups:{name:Ut.groups,defaultValue:[]},junctions:{name:Ut.junctions,defaultValue:[]},services:{name:Ut.services,defaultValue:[]},title:{name:Ut.title}},superTypes:[]},Axis:{name:ao.$type,properties:{label:{name:ao.label},name:{name:ao.name}},superTypes:[]},Branch:{name:Mo.$type,properties:{name:{name:Mo.name},order:{name:Mo.order}},superTypes:[ia.$type]},Checkout:{name:Dy.$type,properties:{branch:{name:Dy.branch}},superTypes:[ia.$type]},CherryPicking:{name:io.$type,properties:{id:{name:io.id},parent:{name:io.parent},tags:{name:io.tags,defaultValue:[]}},superTypes:[ia.$type]},ClassDefStatement:{name:Qu.$type,properties:{className:{name:Qu.className},styleText:{name:Qu.styleText}},superTypes:[]},Commit:{name:da.$type,properties:{id:{name:da.id},message:{name:da.message},tags:{name:da.tags,defaultValue:[]},type:{name:da.type}},superTypes:[ia.$type]},Common:{name:so.$type,properties:{accDescr:{name:so.accDescr},accTitle:{name:so.accTitle},title:{name:so.title}},superTypes:[]},Component:{name:Kr.$type,properties:{decorator:{name:Kr.decorator},evolution:{name:Kr.evolution},inertia:{name:Kr.inertia,defaultValue:!1},label:{name:Kr.label},name:{name:Kr.name},visibility:{name:Kr.visibility}},superTypes:[]},Curve:{name:oo.$type,properties:{entries:{name:oo.entries,defaultValue:[]},label:{name:oo.label},name:{name:oo.name}},superTypes:[]},Cynefin:{name:en.$type,properties:{accDescr:{name:en.accDescr},accTitle:{name:en.accTitle},domains:{name:en.domains,defaultValue:[]},title:{name:en.title},transitions:{name:en.transitions,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:lo.$type,properties:{name:{name:lo.name},x:{name:lo.x},y:{name:lo.y}},superTypes:[]},Decorator:{name:My.$type,properties:{strategy:{name:My.strategy}},superTypes:[]},Direction:{name:ra.$type,properties:{accDescr:{name:ra.accDescr},accTitle:{name:ra.accTitle},dir:{name:ra.dir},statements:{name:ra.statements,defaultValue:[]},title:{name:ra.title}},superTypes:[tn.$type]},DomainBlock:{name:xo.$type,properties:{domain:{name:xo.domain},items:{name:xo.items,defaultValue:[]}},superTypes:[]},DomainItem:{name:hp.$type,properties:{label:{name:hp.label}},superTypes:[]},EbnfChoice:{name:xy.$type,properties:{alternatives:{name:xy.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:Gy.$type,properties:{except:{name:Gy.except}},superTypes:[Si.$type]},EbnfGroup:{name:Fy.$type,properties:{element:{name:Fy.element}},superTypes:[Br.$type]},EbnfNonTerminal:{name:zy.$type,properties:{name:{name:zy.name}},superTypes:[Br.$type]},EbnfOneOrMorePostfix:{name:jy.$type,properties:{operator:{name:jy.operator}},superTypes:[Si.$type]},EbnfOptional:{name:Uy.$type,properties:{element:{name:Uy.element}},superTypes:[Br.$type]},EbnfOptionalPostfix:{name:Ky.$type,properties:{operator:{name:Ky.operator}},superTypes:[Si.$type]},EbnfPostfix:{name:Si.$type,properties:{},superTypes:[]},EbnfPrimary:{name:Br.$type,properties:{},superTypes:[]},EbnfRepetition:{name:By.$type,properties:{element:{name:By.element}},superTypes:[Br.$type]},EbnfRule:{name:ec.$type,properties:{definition:{name:ec.definition},name:{name:ec.name}},superTypes:[]},EbnfSequence:{name:qy.$type,properties:{elements:{name:qy.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:Wy.$type,properties:{text:{name:Wy.text}},superTypes:[Br.$type]},EbnfTerm:{name:tc.$type,properties:{base:{name:tc.base},postfixes:{name:tc.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:Vy.$type,properties:{value:{name:Vy.value}},superTypes:[Br.$type]},EbnfZeroOrMorePostfix:{name:Hy.$type,properties:{operator:{name:Hy.operator}},superTypes:[Si.$type]},Edge:{name:zt.$type,properties:{lhsDir:{name:zt.lhsDir},lhsGroup:{name:zt.lhsGroup,defaultValue:!1},lhsId:{name:zt.lhsId},lhsInto:{name:zt.lhsInto,defaultValue:!1},rhsDir:{name:zt.rhsDir},rhsGroup:{name:zt.rhsGroup,defaultValue:!1},rhsId:{name:zt.rhsId},rhsInto:{name:zt.rhsInto,defaultValue:!1},title:{name:zt.title}},superTypes:[]},EmDataEntity:{name:na.$type,properties:{dataBlockValue:{name:na.dataBlockValue},dataType:{name:na.dataType},name:{name:na.name}},superTypes:[]},EmFrame:{name:qr.$type,properties:{},superTypes:[]},EmGwt:{name:wi.$type,properties:{givenStatements:{name:wi.givenStatements,defaultValue:[]},sourceFrame:{name:wi.sourceFrame,referenceType:qr.$type},thenStatements:{name:wi.thenStatements,defaultValue:[]},whenStatements:{name:wi.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Yy.$type,properties:{entityIdentifier:{name:Yy.entityIdentifier,referenceType:rc.$type}},superTypes:[]},EmModelEntity:{name:rc.$type,properties:{name:{name:rc.name}},superTypes:[]},EmNoteEntity:{name:uo.$type,properties:{dataBlockValue:{name:uo.dataBlockValue},dataType:{name:uo.dataType},sourceFrame:{name:uo.sourceFrame,referenceType:qr.$type}},superTypes:[]},EmResetFrame:{name:or.$type,properties:{dataInlineValue:{name:or.dataInlineValue},dataReference:{name:or.dataReference,referenceType:na.$type},dataType:{name:or.dataType},entityIdentifier:{name:or.entityIdentifier},modelEntityType:{name:or.modelEntityType},name:{name:or.name},sourceFrames:{name:or.sourceFrames,defaultValue:[],referenceType:qr.$type}},superTypes:[qr.$type]},EmTimeFrame:{name:_r.$type,properties:{dataInlineValue:{name:_r.dataInlineValue},dataReference:{name:_r.dataReference,referenceType:na.$type},dataType:{name:_r.dataType},entityIdentifier:{name:_r.entityIdentifier},modelEntityType:{name:_r.modelEntityType},name:{name:_r.name},sourceFrames:{name:_r.sourceFrames,defaultValue:[],referenceType:qr.$type}},superTypes:[qr.$type]},Entry:{name:nc.$type,properties:{axis:{name:nc.axis,referenceType:ao.$type},value:{name:nc.value}},superTypes:[]},EventModel:{name:nr.$type,properties:{accDescr:{name:nr.accDescr},accTitle:{name:nr.accTitle},dataEntities:{name:nr.dataEntities,defaultValue:[]},frames:{name:nr.frames,defaultValue:[]},gwtEntities:{name:nr.gwtEntities,defaultValue:[]},modelEntities:{name:nr.modelEntities,defaultValue:[]},noteEntities:{name:nr.noteEntities,defaultValue:[]},title:{name:nr.title}},superTypes:[]},Evolution:{name:Xy.$type,properties:{stages:{name:Xy.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:co.$type,properties:{boundary:{name:co.boundary},name:{name:co.name},secondName:{name:co.secondName}},superTypes:[]},Evolve:{name:ac.$type,properties:{component:{name:ac.component},target:{name:ac.target}},superTypes:[]},GitGraph:{name:tn.$type,properties:{accDescr:{name:tn.accDescr},accTitle:{name:tn.accTitle},statements:{name:tn.statements,defaultValue:[]},title:{name:tn.title}},superTypes:[]},Group:{name:Ii.$type,properties:{icon:{name:Ii.icon},id:{name:Ii.id},in:{name:Ii.in},title:{name:Ii.title}},superTypes:[]},Info:{name:Wi.$type,properties:{accDescr:{name:Wi.accDescr},accTitle:{name:Wi.accTitle},title:{name:Wi.title}},superTypes:[]},Item:{name:Ni.$type,properties:{classSelector:{name:Ni.classSelector},name:{name:Ni.name}},superTypes:[]},Junction:{name:ic.$type,properties:{id:{name:ic.id},in:{name:ic.in}},superTypes:[]},Label:{name:Pi.$type,properties:{negX:{name:Pi.negX,defaultValue:!1},negY:{name:Pi.negY,defaultValue:!1},offsetX:{name:Pi.offsetX},offsetY:{name:Pi.offsetY}},superTypes:[]},Leaf:{name:fo.$type,properties:{classSelector:{name:fo.classSelector},name:{name:fo.name},value:{name:fo.value}},superTypes:[Ni.$type]},Link:{name:Wr.$type,properties:{arrow:{name:Wr.arrow},from:{name:Wr.from},fromPort:{name:Wr.fromPort},linkLabel:{name:Wr.linkLabel},to:{name:Wr.to},toPort:{name:Wr.toPort}},superTypes:[]},Merge:{name:ma.$type,properties:{branch:{name:ma.branch},id:{name:ma.id},tags:{name:ma.tags,defaultValue:[]},type:{name:ma.type}},superTypes:[ia.$type]},Note:{name:po.$type,properties:{evolution:{name:po.evolution},text:{name:po.text},visibility:{name:po.visibility}},superTypes:[]},Option:{name:sc.$type,properties:{name:{name:sc.name},value:{name:sc.value,defaultValue:!1}},superTypes:[]},Packet:{name:ha.$type,properties:{accDescr:{name:ha.accDescr},accTitle:{name:ha.accTitle},blocks:{name:ha.blocks,defaultValue:[]},title:{name:ha.title}},superTypes:[]},PacketBlock:{name:ya.$type,properties:{bits:{name:ya.bits},end:{name:ya.end},label:{name:ya.label},start:{name:ya.start}},superTypes:[]},PegAny:{name:Jy.$type,properties:{dot:{name:Jy.dot}},superTypes:[ki.$type]},PegGroup:{name:Zy.$type,properties:{element:{name:Zy.element}},superTypes:[ki.$type]},PegIdentifier:{name:Qy.$type,properties:{name:{name:Qy.name}},superTypes:[ki.$type]},PegLiteral:{name:eg.$type,properties:{value:{name:eg.value}},superTypes:[ki.$type]},PegOrderedChoice:{name:tg.$type,properties:{alternatives:{name:tg.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:oc.$type,properties:{operator:{name:oc.operator},suffix:{name:oc.suffix}},superTypes:[]},PegPrimary:{name:ki.$type,properties:{},superTypes:[]},PegRule:{name:lc.$type,properties:{definition:{name:lc.definition},name:{name:lc.name}},superTypes:[]},PegSequence:{name:rg.$type,properties:{elements:{name:rg.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:uc.$type,properties:{operator:{name:uc.operator},primary:{name:uc.primary}},superTypes:[]},Pie:{name:rn.$type,properties:{accDescr:{name:rn.accDescr},accTitle:{name:rn.accTitle},sections:{name:rn.sections,defaultValue:[]},showData:{name:rn.showData,defaultValue:!1},title:{name:rn.title}},superTypes:[]},PieSection:{name:Go.$type,properties:{label:{name:Go.label},value:{name:Go.value}},superTypes:[]},Pipeline:{name:cc.$type,properties:{components:{name:cc.components,defaultValue:[]},parent:{name:cc.parent}},superTypes:[]},PipelineComponent:{name:mo.$type,properties:{evolution:{name:mo.evolution},label:{name:mo.label},name:{name:mo.name}},superTypes:[]},Radar:{name:Vr.$type,properties:{accDescr:{name:Vr.accDescr},accTitle:{name:Vr.accTitle},axes:{name:Vr.axes,defaultValue:[]},curves:{name:Vr.curves,defaultValue:[]},options:{name:Vr.options,defaultValue:[]},title:{name:Vr.title}},superTypes:[]},Railroad:{name:ga.$type,properties:{accDescr:{name:ga.accDescr},accTitle:{name:ga.accTitle},rules:{name:ga.rules,defaultValue:[]},title:{name:ga.title}},superTypes:[]},RailroadAbnf:{name:va.$type,properties:{accDescr:{name:va.accDescr},accTitle:{name:va.accTitle},rules:{name:va.rules,defaultValue:[]},title:{name:va.title}},superTypes:[]},RailroadChoiceExpr:{name:ng.$type,properties:{alternatives:{name:ng.alternatives,defaultValue:[]}},superTypes:[ar.$type]},RailroadEbnf:{name:Ta.$type,properties:{accDescr:{name:Ta.accDescr},accTitle:{name:Ta.accTitle},rules:{name:Ta.rules,defaultValue:[]},title:{name:Ta.title}},superTypes:[]},RailroadExpression:{name:ar.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:ag.$type,properties:{name:{name:ag.name}},superTypes:[ar.$type]},RailroadOneOrMoreExpr:{name:ig.$type,properties:{element:{name:ig.element}},superTypes:[ar.$type]},RailroadOptionalExpr:{name:sg.$type,properties:{element:{name:sg.element}},superTypes:[ar.$type]},RailroadPeg:{name:$a.$type,properties:{accDescr:{name:$a.accDescr},accTitle:{name:$a.accTitle},rules:{name:$a.rules,defaultValue:[]},title:{name:$a.title}},superTypes:[]},RailroadRule:{name:fc.$type,properties:{definition:{name:fc.definition},name:{name:fc.name}},superTypes:[]},RailroadSequenceExpr:{name:og.$type,properties:{elements:{name:og.elements,defaultValue:[]}},superTypes:[ar.$type]},RailroadSpecialExpr:{name:lg.$type,properties:{text:{name:lg.text}},superTypes:[ar.$type]},RailroadTerminalExpr:{name:ug.$type,properties:{value:{name:ug.value}},superTypes:[ar.$type]},RailroadZeroOrMoreExpr:{name:cg.$type,properties:{element:{name:cg.element}},superTypes:[ar.$type]},Section:{name:pc.$type,properties:{classSelector:{name:pc.classSelector},name:{name:pc.name}},superTypes:[Ni.$type]},Service:{name:aa.$type,properties:{icon:{name:aa.icon},iconText:{name:aa.iconText},id:{name:aa.id},in:{name:aa.in},title:{name:aa.title}},superTypes:[]},Size:{name:dc.$type,properties:{height:{name:dc.height},width:{name:dc.width}},superTypes:[]},Statement:{name:ia.$type,properties:{},superTypes:[]},Transition:{name:Vi.$type,properties:{from:{name:Vi.from},label:{name:Vi.label},to:{name:Vi.to}},superTypes:[]},TreeNode:{name:sa.$type,properties:{classAnnotation:{name:sa.classAnnotation},descAnnotation:{name:sa.descAnnotation},iconAnnotation:{name:sa.iconAnnotation},indent:{name:sa.indent},name:{name:sa.name}},superTypes:[]},TreeView:{name:Oi.$type,properties:{accDescr:{name:Oi.accDescr},accTitle:{name:Oi.accTitle},nodes:{name:Oi.nodes,defaultValue:[]},title:{name:Oi.title}},superTypes:[]},Treemap:{name:Ra.$type,properties:{accDescr:{name:Ra.accDescr},accTitle:{name:Ra.accTitle},title:{name:Ra.title},TreemapRows:{name:Ra.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:mc.$type,properties:{indent:{name:mc.indent},item:{name:mc.item}},superTypes:[]},Wardley:{name:Ue.$type,properties:{accDescr:{name:Ue.accDescr},accelerators:{name:Ue.accelerators,defaultValue:[]},accTitle:{name:Ue.accTitle},anchors:{name:Ue.anchors,defaultValue:[]},annotation:{name:Ue.annotation,defaultValue:[]},annotations:{name:Ue.annotations,defaultValue:[]},components:{name:Ue.components,defaultValue:[]},deaccelerators:{name:Ue.deaccelerators,defaultValue:[]},evolution:{name:Ue.evolution},evolves:{name:Ue.evolves,defaultValue:[]},links:{name:Ue.links,defaultValue:[]},notes:{name:Ue.notes,defaultValue:[]},pipelines:{name:Ue.pipelines,defaultValue:[]},size:{name:Ue.size},title:{name:Ue.title}},superTypes:[]}}}static{i(this,"MermaidAstReflection")}},Ie=new ww,fg,R1=i(()=>fg??(fg=ze(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),pg,A1=i(()=>pg??(pg=ze(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"CynefinGrammarGrammar"),dg,E1=i(()=>dg??(dg=ze('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),mg,b1=i(()=>mg??(mg=ze(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),hg,C1=i(()=>hg??(hg=ze(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),yg,_1=i(()=>yg??(yg=ze(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),gg,S1=i(()=>gg??(gg=ze(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),vg,w1=i(()=>vg??(vg=ze(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),Tg,I1=i(()=>Tg??(Tg=ze('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),$g,N1=i(()=>$g??($g=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadEbnfGrammarGrammar"),Rg,P1=i(()=>Rg??(Rg=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadGrammarGrammar"),Ag,k1=i(()=>Ag??(Ag=ze(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadPegGrammarGrammar"),Eg,O1=i(()=>Eg??(Eg=ze(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),bg,L1=i(()=>bg??(bg=ze(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Cg,D1=i(()=>Cg??(Cg=ze(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),M1={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},x1={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},G1={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},F1={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},z1={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},j1={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},U1={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},K1={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},B1={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},q1={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},W1={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},V1={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},H1={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Y1={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},X1={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},J1={AstReflection:i(()=>new ww,"AstReflection")},Z1={Grammar:i(()=>R1(),"Grammar"),LanguageMetaData:i(()=>M1,"LanguageMetaData"),parser:{}},Q1={Grammar:i(()=>A1(),"Grammar"),LanguageMetaData:i(()=>x1,"LanguageMetaData"),parser:{}},eG={Grammar:i(()=>E1(),"Grammar"),LanguageMetaData:i(()=>G1,"LanguageMetaData"),parser:{}},tG={Grammar:i(()=>b1(),"Grammar"),LanguageMetaData:i(()=>F1,"LanguageMetaData"),parser:{}},rG={Grammar:i(()=>C1(),"Grammar"),LanguageMetaData:i(()=>z1,"LanguageMetaData"),parser:{}},nG={Grammar:i(()=>_1(),"Grammar"),LanguageMetaData:i(()=>j1,"LanguageMetaData"),parser:{}},aG={Grammar:i(()=>S1(),"Grammar"),LanguageMetaData:i(()=>U1,"LanguageMetaData"),parser:{}},iG={Grammar:i(()=>w1(),"Grammar"),LanguageMetaData:i(()=>K1,"LanguageMetaData"),parser:{}},sG={Grammar:i(()=>I1(),"Grammar"),LanguageMetaData:i(()=>B1,"LanguageMetaData"),parser:{}},oG={Grammar:i(()=>N1(),"Grammar"),LanguageMetaData:i(()=>q1,"LanguageMetaData"),parser:{}},lG={Grammar:i(()=>P1(),"Grammar"),LanguageMetaData:i(()=>W1,"LanguageMetaData"),parser:{}},uG={Grammar:i(()=>k1(),"Grammar"),LanguageMetaData:i(()=>V1,"LanguageMetaData"),parser:{}},cG={Grammar:i(()=>O1(),"Grammar"),LanguageMetaData:i(()=>H1,"LanguageMetaData"),parser:{}},fG={Grammar:i(()=>L1(),"Grammar"),LanguageMetaData:i(()=>Y1,"LanguageMetaData"),parser:{}},pG={Grammar:i(()=>D1(),"Grammar"),LanguageMetaData:i(()=>X1,"LanguageMetaData"),parser:{}},dG={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},Iw=class extends Om{static{i(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return n===void 0&&(n=this.runCustomConverter(e,t,r)),n===void 0?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){const n=dG[e.name];if(n===void 0)return;const a=n.exec(t);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
161
+ `)}}},mG=class extends Iw{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},Nw=class extends wu{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){const n=super.buildKeywordTokens(e,t,r);return n.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}},hG=class extends Nw{static{i(this,"CommonTokenBuilder")}};Object.defineProperty(exports,"AbstractMermaidTokenBuilder",{enumerable:!0,get:function(){return Nw}});Object.defineProperty(exports,"AbstractMermaidValueConverter",{enumerable:!0,get:function(){return Iw}});Object.defineProperty(exports,"ArchitectureGrammarGeneratedModule",{enumerable:!0,get:function(){return Z1}});Object.defineProperty(exports,"CommonValueConverter",{enumerable:!0,get:function(){return mG}});Object.defineProperty(exports,"CynefinGrammarGeneratedModule",{enumerable:!0,get:function(){return Q1}});Object.defineProperty(exports,"EmptyFileSystem",{enumerable:!0,get:function(){return th}});Object.defineProperty(exports,"EventModelingGeneratedModule",{enumerable:!0,get:function(){return eG}});Object.defineProperty(exports,"GitGraphGrammarGeneratedModule",{enumerable:!0,get:function(){return tG}});Object.defineProperty(exports,"InfoGrammarGeneratedModule",{enumerable:!0,get:function(){return rG}});Object.defineProperty(exports,"MermaidGeneratedSharedModule",{enumerable:!0,get:function(){return J1}});Object.defineProperty(exports,"PacketGrammarGeneratedModule",{enumerable:!0,get:function(){return nG}});Object.defineProperty(exports,"PieGrammarGeneratedModule",{enumerable:!0,get:function(){return aG}});Object.defineProperty(exports,"RadarGrammarGeneratedModule",{enumerable:!0,get:function(){return iG}});Object.defineProperty(exports,"RailroadAbnfGrammarGeneratedModule",{enumerable:!0,get:function(){return sG}});Object.defineProperty(exports,"RailroadEbnfGrammarGeneratedModule",{enumerable:!0,get:function(){return oG}});Object.defineProperty(exports,"RailroadGrammarGeneratedModule",{enumerable:!0,get:function(){return lG}});Object.defineProperty(exports,"RailroadPegGrammarGeneratedModule",{enumerable:!0,get:function(){return uG}});Object.defineProperty(exports,"TreeViewGrammarGeneratedModule",{enumerable:!0,get:function(){return fG}});Object.defineProperty(exports,"TreemapGrammarGeneratedModule",{enumerable:!0,get:function(){return cG}});Object.defineProperty(exports,"WardleyGrammarGeneratedModule",{enumerable:!0,get:function(){return pG}});Object.defineProperty(exports,"__name",{enumerable:!0,get:function(){return i}});Object.defineProperty(exports,"createDefaultCoreModule",{enumerable:!0,get:function(){return xu}});Object.defineProperty(exports,"createDefaultSharedCoreModule",{enumerable:!0,get:function(){return Gu}});Object.defineProperty(exports,"inject",{enumerable:!0,get:function(){return _s}});Object.defineProperty(exports,"isEmResetFrame",{enumerable:!0,get:function(){return Sw}});