@plumile/ui 0.1.113 → 0.1.115

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 (440) hide show
  1. package/lib/esm/_virtual/_rolldown/runtime.js +5 -5
  2. package/lib/esm/atomic/atoms/modal/Modal.js +14 -14
  3. package/lib/esm/atomic/atoms/modal/Modal.js.map +1 -1
  4. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
  5. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
  6. package/lib/esm/focus/focusable.js +1 -1
  7. package/lib/esm/focus/focusable.js.map +1 -1
  8. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
  9. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
  10. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
  11. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
  12. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
  13. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
  14. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
  15. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
  16. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
  17. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
  18. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
  19. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
  20. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
  21. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
  22. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
  23. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
  24. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
  25. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
  26. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
  27. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
  28. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
  29. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
  30. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
  31. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  32. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
  33. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  34. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  35. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  36. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  37. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
  38. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  39. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  40. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  41. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
  42. package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
  43. package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
  44. package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
  45. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
  46. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
  47. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
  48. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
  49. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
  50. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
  51. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
  52. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
  53. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
  54. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
  55. package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
  56. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
  57. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
  58. package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
  59. package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
  60. package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
  61. package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
  62. package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
  63. package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
  64. package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
  65. package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
  66. package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
  67. package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
  68. package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
  69. package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
  70. package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
  71. package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
  72. package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
  73. package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
  74. package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
  75. package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
  76. package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
  77. package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
  78. package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
  79. package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
  80. package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
  81. package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
  82. package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
  83. package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
  84. package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
  85. package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
  86. package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
  87. package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
  88. package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
  89. package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
  90. package/lib/esm/node_modules/lodash-es/isString.js +3 -3
  91. package/lib/esm/node_modules/lodash-es/keys.js +4 -4
  92. package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
  93. package/lib/esm/node_modules/lodash-es/map.js +3 -3
  94. package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
  95. package/lib/esm/node_modules/lodash-es/max.js +3 -3
  96. package/lib/esm/node_modules/lodash-es/min.js +3 -3
  97. package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
  98. package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
  99. package/lib/esm/node_modules/lodash-es/size.js +4 -4
  100. package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
  101. package/lib/esm/node_modules/lodash-es/union.js +6 -6
  102. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
  103. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
  104. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
  105. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
  106. package/lib/types/atomic/atoms/modal/Modal.d.ts.map +1 -1
  107. package/package.json +2 -2
  108. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
  109. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
  110. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
  111. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
  112. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
  113. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
  114. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  115. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
  116. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
  117. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
  118. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
  119. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
  120. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
  121. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
  122. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
  123. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
  124. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
  125. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
  126. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
  127. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
  128. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
  129. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
  130. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
  131. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
  132. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
  133. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
  134. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
  135. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
  136. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
  137. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
  138. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
  139. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
  140. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
  141. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
  142. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
  143. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
  144. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
  145. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
  146. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
  147. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
  148. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
  149. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
  150. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  151. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  152. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  153. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  154. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
  155. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  156. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  157. package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
  158. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
  159. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
  160. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
  161. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
  162. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
  163. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
  164. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
  165. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
  166. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
  167. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
  168. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
  169. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
  170. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
  171. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
  172. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
  173. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
  174. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
  175. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
  176. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
  177. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
  178. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
  179. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
  180. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
  181. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
  182. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
  183. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
  184. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
  185. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
  186. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
  187. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
  188. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
  189. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
  190. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
  191. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
  192. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
  193. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
  194. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
  195. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
  196. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
  197. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
  198. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
  199. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
  200. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
  201. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
  202. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
  203. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
  204. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
  205. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
  206. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
  207. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
  208. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
  209. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
  210. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
  211. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
  212. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
  213. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
  214. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
  215. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
  216. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
  217. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
  218. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
  219. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
  220. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
  221. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
  222. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
  223. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
  224. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
  225. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
  226. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
  227. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
  228. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
  229. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
  230. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
  231. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
  232. package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
  233. package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
  234. package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
  235. package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
  236. package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
  237. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
  238. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
  239. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
  240. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
  241. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
  242. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
  243. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
  244. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
  245. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
  246. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
  247. package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
  248. package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
  249. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
  250. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
  251. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
  252. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
  253. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
  254. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
  255. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
  256. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
  257. package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
  258. package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
  259. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
  260. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
  261. package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
  262. package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
  263. package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
  264. package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
  265. package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
  266. package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
  267. package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
  268. package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
  269. package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
  270. package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
  271. package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
  272. package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
  273. package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
  274. package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
  275. package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
  276. package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
  277. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
  278. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
  279. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
  280. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
  281. package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
  282. package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
  283. package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
  284. package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
  285. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
  286. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
  287. package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
  288. package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
  289. package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
  290. package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
  291. package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
  292. package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
  293. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
  294. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
  295. package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
  296. package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
  297. package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
  298. package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
  299. package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
  300. package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
  301. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
  302. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
  303. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
  304. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
  305. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
  306. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
  307. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
  308. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
  309. package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
  310. package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
  311. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
  312. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
  313. package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
  314. package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
  315. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
  316. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
  317. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
  318. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
  319. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
  320. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
  321. package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
  322. package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
  323. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
  324. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
  325. package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
  326. package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
  327. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
  328. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
  329. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
  330. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
  331. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
  332. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
  333. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
  334. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
  335. package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
  336. package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
  337. package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
  338. package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
  339. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  340. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  341. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  342. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  343. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  344. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  345. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  346. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  347. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
  348. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
  349. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
  350. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
  351. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
  352. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
  353. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
  354. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
  355. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
  356. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
  357. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
  358. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
  359. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
  360. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
  361. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
  362. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
  363. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
  364. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
  365. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
  366. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
  367. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
  368. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
  369. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
  370. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
  371. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
  372. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
  373. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
  374. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
  375. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
  376. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
  377. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
  378. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
  379. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
  380. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
  381. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
  382. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
  383. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
  384. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
  385. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
  386. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
  387. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
  388. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
  389. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
  390. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
  391. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
  392. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
  393. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
  394. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
  395. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
  396. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
  397. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
  398. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
  399. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
  400. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
  401. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
  402. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
  403. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
  404. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
  405. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
  406. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
  407. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
  408. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
  409. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  410. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  411. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
  412. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
  413. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
  414. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
  415. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  416. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  417. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  418. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  419. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
  420. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
  421. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
  422. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
  423. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
  424. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
  425. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
  426. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
  427. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
  428. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
  429. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  430. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  431. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
  432. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
  433. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
  434. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
  435. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
  436. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
  437. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
  438. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
  439. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
  440. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
@@ -1,365 +0,0 @@
1
- import { Alternation as e, NonTerminal as t, Option as n, Repetition as r, RepetitionMandatory as i, RepetitionMandatoryWithSeparator as a, RepetitionWithSeparator as o, Terminal as s } from "../../@chevrotain/gast/lib/src/model.js";
2
- import { EOF as c, tokenLabel as l, tokenMatcher as u } from "../../chevrotain/lib/src/scan/tokens_public.js";
3
- import { getLookaheadPaths as d } from "../../chevrotain/lib/src/parse/grammar/lookahead.js";
4
- import { LLkLookaheadStrategy as f } from "../../chevrotain/lib/src/parse/grammar/llk_lookahead.js";
5
- import "../../chevrotain/lib/src/api.js";
6
- import p from "../../lodash-es/map.js";
7
- import { AtomTransition as m, EpsilonTransition as h, RuleTransition as g, buildATNKey as _, createATN as v } from "./atn.js";
8
- import { ATNConfigSet as y, DFA_ERROR as b, getATNConfigKey as x } from "./dfa.js";
9
- import S from "../../lodash-es/min.js";
10
- import C from "../../lodash-es/flatMap.js";
11
- import w from "../../lodash-es/uniqBy.js";
12
- import T from "../../lodash-es/flatten.js";
13
- import E from "../../lodash-es/forEach.js";
14
- import D from "../../lodash-es/isEmpty.js";
15
- import O from "../../lodash-es/reduce.js";
16
- //#region ../../node_modules/chevrotain-allstar/lib/all-star-lookahead.js
17
- function k(e, t) {
18
- let n = {};
19
- return (r) => {
20
- let i = r.toString(), a = n[i];
21
- return a === void 0 ? (a = {
22
- atnStartState: e,
23
- decision: t,
24
- states: {}
25
- }, n[i] = a, a) : a;
26
- };
27
- }
28
- var A = class {
29
- constructor() {
30
- this.predicates = [];
31
- }
32
- is(e) {
33
- return e >= this.predicates.length || this.predicates[e];
34
- }
35
- set(e, t) {
36
- this.predicates[e] = t;
37
- }
38
- toString() {
39
- let e = "", t = this.predicates.length;
40
- for (let n = 0; n < t; n++) e += this.predicates[n] === !0 ? "1" : "0";
41
- return e;
42
- }
43
- }, j = new A(), M = class extends f {
44
- constructor(e) {
45
- super(), this.logging = e?.logging ?? ((e) => console.log(e)), this.incomplete = e?.incomplete ?? !1;
46
- }
47
- initialize(e) {
48
- this.atn = v(e.rules), this.dfas = P(this.atn);
49
- }
50
- validateAmbiguousAlternationAlternatives() {
51
- return [];
52
- }
53
- validateEmptyOrAlternatives() {
54
- return [];
55
- }
56
- buildLookaheadForAlternation(e) {
57
- let { prodOccurrence: t, rule: n, hasPredicates: r, dynamicTokensEnabled: i } = e, a = this.dfas, o = this.logging, s = this.incomplete, c = _(n, "Alternation", t), l = this.atn.decisionMap[c].decision, u = p(d({
58
- maxLookahead: 1,
59
- occurrence: t,
60
- prodType: "Alternation",
61
- rule: n
62
- }), (e) => p(e, (e) => e[0]));
63
- if (N(u, !1) && !i) {
64
- let e = O(u, (e, t, n) => (E(t, (t) => {
65
- t && (e[t.tokenTypeIdx] = n, E(t.categoryMatches, (t) => {
66
- e[t] = n;
67
- }));
68
- }), e), {});
69
- return r ? function(t) {
70
- let n = e[this.LA_FAST(1).tokenTypeIdx];
71
- if (t !== void 0 && n !== void 0) {
72
- let e = t[n]?.GATE;
73
- if (e !== void 0 && e.call(this) === !1) return;
74
- }
75
- return n;
76
- } : function() {
77
- return e[this.LA_FAST(1).tokenTypeIdx];
78
- };
79
- } else if (r) return function(e) {
80
- let t = new A(), n = e === void 0 ? 0 : e.length;
81
- for (let r = 0; r < n; r++) {
82
- let n = e?.[r].GATE;
83
- t.set(r, n === void 0 || n.call(this));
84
- }
85
- let r = F.call(this, a, l, t, o, s);
86
- return typeof r == "number" ? r : void 0;
87
- };
88
- else return function() {
89
- let e = F.call(this, a, l, j, o, s);
90
- return typeof e == "number" ? e : void 0;
91
- };
92
- }
93
- buildLookaheadForOptional(e) {
94
- let { prodOccurrence: t, rule: n, prodType: r, dynamicTokensEnabled: i } = e, a = this.dfas, o = this.logging, s = this.incomplete, c = _(n, r, t), l = this.atn.decisionMap[c].decision, u = p(d({
95
- maxLookahead: 1,
96
- occurrence: t,
97
- prodType: r,
98
- rule: n
99
- }), (e) => p(e, (e) => e[0]));
100
- if (N(u) && u[0][0] && !i) {
101
- let e = u[0], t = T(e);
102
- if (t.length === 1 && D(t[0].categoryMatches)) {
103
- let e = t[0].tokenTypeIdx;
104
- return function() {
105
- return this.LA_FAST(1).tokenTypeIdx === e;
106
- };
107
- } else {
108
- let e = O(t, (e, t) => (t !== void 0 && (e[t.tokenTypeIdx] = !0, E(t.categoryMatches, (t) => {
109
- e[t] = !0;
110
- })), e), {});
111
- return function() {
112
- return e[this.LA_FAST(1).tokenTypeIdx] === !0;
113
- };
114
- }
115
- }
116
- return function() {
117
- let e = F.call(this, a, l, j, o, s);
118
- return typeof e == "object" ? !1 : e === 0;
119
- };
120
- }
121
- };
122
- function N(e, t = !0) {
123
- let n = /* @__PURE__ */ new Set();
124
- for (let r of e) {
125
- let e = /* @__PURE__ */ new Set();
126
- for (let i of r) {
127
- if (i === void 0) {
128
- if (t) break;
129
- return !1;
130
- }
131
- let r = [i.tokenTypeIdx].concat(i.categoryMatches);
132
- for (let t of r) if (n.has(t)) {
133
- if (!e.has(t)) return !1;
134
- } else n.add(t), e.add(t);
135
- }
136
- }
137
- return !0;
138
- }
139
- function P(e) {
140
- let t = e.decisionStates.length, n = Array(t);
141
- for (let r = 0; r < t; r++) n[r] = k(e.decisionStates[r], r);
142
- return n;
143
- }
144
- function F(e, t, n, r, i) {
145
- let a = e[t](n), o = a.start;
146
- return o === void 0 && (o = J(a, K(Y(a.atnStartState))), a.start = o), I.apply(this, [
147
- a,
148
- o,
149
- n,
150
- r,
151
- i
152
- ]);
153
- }
154
- function I(e, t, n, r, i) {
155
- let a = t, o = 1, s = [], l = this.LA_FAST(o++);
156
- for (;;) {
157
- let t = H(a, l);
158
- if (t === void 0 && (t = L.apply(this, [
159
- e,
160
- a,
161
- l,
162
- o,
163
- n,
164
- r
165
- ])), t === b) return V(s, a, l);
166
- if (t.isAcceptState === !0) {
167
- if (i === !0 && u(l, c)) {
168
- let e = ie(a, n);
169
- if (e !== void 0) return e;
170
- }
171
- return t.prediction;
172
- }
173
- a = t, s.push(l), l = this.LA(o++);
174
- }
175
- }
176
- function L(e, t, n, r, i, a) {
177
- let o = U(t.configs, n, i);
178
- if (o.size === 0) return q(e, t, n, b), b;
179
- let s = K(o), c = G(o, i);
180
- if (c !== void 0) s.isAcceptState = !0, s.prediction = c, s.configs.uniqueAlt = c;
181
- else if (ee(o)) {
182
- let t = S(o.alts);
183
- s.isAcceptState = !0, s.prediction = t, s.configs.uniqueAlt = t, R.apply(this, [
184
- e,
185
- r,
186
- o.alts,
187
- a
188
- ]);
189
- }
190
- return s = q(e, t, n, s), s;
191
- }
192
- function R(e, t, n, r) {
193
- let i = [];
194
- for (let e = 1; e <= t; e++) i.push(this.LA(e).tokenType);
195
- let a = e.atnStartState, o = a.rule, s = a.production;
196
- r(z({
197
- topLevelRule: o,
198
- ambiguityIndices: n,
199
- production: s,
200
- prefixPath: i
201
- }));
202
- }
203
- function z(e) {
204
- let t = p(e.prefixPath, (e) => l(e)).join(", "), n = e.production.idx === 0 ? "" : e.production.idx, r = `Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${B(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;
205
- return r += "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.", r;
206
- }
207
- function B(c) {
208
- if (c instanceof t) return "SUBRULE";
209
- if (c instanceof n) return "OPTION";
210
- if (c instanceof e) return "OR";
211
- if (c instanceof i) return "AT_LEAST_ONE";
212
- if (c instanceof a) return "AT_LEAST_ONE_SEP";
213
- if (c instanceof o) return "MANY_SEP";
214
- if (c instanceof r) return "MANY";
215
- if (c instanceof s) return "CONSUME";
216
- throw Error("non exhaustive match");
217
- }
218
- function V(e, t, n) {
219
- return {
220
- actualToken: n,
221
- possibleTokenTypes: w(C(t.configs.elements, (e) => e.state.transitions).filter((e) => e instanceof m).map((e) => e.tokenType), (e) => e.tokenTypeIdx),
222
- tokenPath: e
223
- };
224
- }
225
- function H(e, t) {
226
- return e.edges[t.tokenTypeIdx];
227
- }
228
- function U(e, t, n) {
229
- let r = new y(), i = [];
230
- for (let a of e.elements) {
231
- if (n.is(a.alt) === !1) continue;
232
- if (a.state.type === 7) {
233
- i.push(a);
234
- continue;
235
- }
236
- let e = a.state.transitions.length;
237
- for (let n = 0; n < e; n++) {
238
- let e = a.state.transitions[n], i = W(e, t);
239
- i !== void 0 && r.add({
240
- state: i,
241
- alt: a.alt,
242
- stack: a.stack
243
- });
244
- }
245
- }
246
- let a;
247
- if (i.length === 0 && r.size === 1 && (a = r), a === void 0) {
248
- a = new y();
249
- for (let e of r.elements) X(e, a);
250
- }
251
- if (i.length > 0 && !Q(a)) for (let e of i) a.add(e);
252
- return a;
253
- }
254
- function W(e, t) {
255
- if (e instanceof m && u(t, e.tokenType)) return e.target;
256
- }
257
- function G(e, t) {
258
- let n;
259
- for (let r of e.elements) if (t.is(r.alt) === !0) {
260
- if (n === void 0) n = r.alt;
261
- else if (n !== r.alt) return;
262
- }
263
- return n;
264
- }
265
- function K(e) {
266
- return {
267
- configs: e,
268
- edges: {},
269
- isAcceptState: !1,
270
- prediction: -1
271
- };
272
- }
273
- function q(e, t, n, r) {
274
- return r = J(e, r), t.edges[n.tokenTypeIdx] = r, r;
275
- }
276
- function J(e, t) {
277
- if (t === b) return t;
278
- let n = t.configs.key, r = e.states[n];
279
- return r === void 0 ? (t.configs.finalize(), e.states[n] = t, t) : r;
280
- }
281
- function Y(e) {
282
- let t = new y(), n = e.transitions.length;
283
- for (let r = 0; r < n; r++) X({
284
- state: e.transitions[r].target,
285
- alt: r,
286
- stack: []
287
- }, t);
288
- return t;
289
- }
290
- function X(e, t) {
291
- let n = e.state;
292
- if (n.type === 7) {
293
- if (e.stack.length > 0) {
294
- let n = [...e.stack];
295
- X({
296
- state: n.pop(),
297
- alt: e.alt,
298
- stack: n
299
- }, t);
300
- } else t.add(e);
301
- return;
302
- }
303
- n.epsilonOnlyTransitions || t.add(e);
304
- let r = n.transitions.length;
305
- for (let i = 0; i < r; i++) {
306
- let r = n.transitions[i], a = Z(e, r);
307
- a !== void 0 && X(a, t);
308
- }
309
- }
310
- function Z(e, t) {
311
- if (t instanceof h) return {
312
- state: t.target,
313
- alt: e.alt,
314
- stack: e.stack
315
- };
316
- if (t instanceof g) {
317
- let n = [...e.stack, t.followState];
318
- return {
319
- state: t.target,
320
- alt: e.alt,
321
- stack: n
322
- };
323
- }
324
- }
325
- function Q(e) {
326
- for (let t of e.elements) if (t.state.type === 7) return !0;
327
- return !1;
328
- }
329
- function $(e) {
330
- for (let t of e.elements) if (t.state.type !== 7) return !1;
331
- return !0;
332
- }
333
- function ee(e) {
334
- if ($(e)) return !0;
335
- let t = te(e.elements);
336
- return ne(t) && !re(t);
337
- }
338
- function te(e) {
339
- let t = /* @__PURE__ */ new Map();
340
- for (let n of e) {
341
- let e = x(n, !1), r = t.get(e);
342
- r === void 0 && (r = {}, t.set(e, r)), r[n.alt] = !0;
343
- }
344
- return t;
345
- }
346
- function ne(e) {
347
- for (let t of Array.from(e.values())) if (Object.keys(t).length > 1) return !0;
348
- return !1;
349
- }
350
- function re(e) {
351
- for (let t of Array.from(e.values())) if (Object.keys(t).length === 1) return !0;
352
- return !1;
353
- }
354
- function ie(e, t) {
355
- let n;
356
- for (let r of e.configs.elements) if (!(t.is(r.alt) === !1 || r.state.type === 7)) {
357
- if (n === void 0) n = r.alt;
358
- else if (n !== r.alt) return;
359
- }
360
- return n;
361
- }
362
- //#endregion
363
- export { M as LLStarLookaheadStrategy };
364
-
365
- //# sourceMappingURL=all-star-lookahead.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all-star-lookahead.js","names":[],"sources":["../../../../../../../node_modules/chevrotain-allstar/lib/all-star-lookahead.js"],"sourcesContent":["/******************************************************************************\n * Copyright 2022 TypeFox GmbH\n * This program and the accompanying materials are made available under the\n * terms of the MIT License, which is available in the project root.\n ******************************************************************************/\nimport { tokenMatcher, tokenLabel, NonTerminal, Alternation, Option, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Repetition, Terminal, LLkLookaheadStrategy, getLookaheadPaths, EOF } from \"chevrotain\";\nimport { ATN_RULE_STOP, AtomTransition, buildATNKey, createATN, EpsilonTransition, RuleTransition } from \"./atn.js\";\nimport { ATNConfigSet, DFA_ERROR, getATNConfigKey } from \"./dfa.js\";\nimport min from \"lodash-es/min.js\";\nimport flatMap from \"lodash-es/flatMap.js\";\nimport uniqBy from \"lodash-es/uniqBy.js\";\nimport map from \"lodash-es/map.js\";\nimport flatten from \"lodash-es/flatten.js\";\nimport forEach from \"lodash-es/forEach.js\";\nimport isEmpty from \"lodash-es/isEmpty.js\";\nimport reduce from \"lodash-es/reduce.js\";\nfunction createDFACache(startState, decision) {\n const map = {};\n return (predicateSet) => {\n const key = predicateSet.toString();\n let existing = map[key];\n if (existing !== undefined) {\n return existing;\n }\n else {\n existing = {\n atnStartState: startState,\n decision,\n states: {}\n };\n map[key] = existing;\n return existing;\n }\n };\n}\nclass PredicateSet {\n constructor() {\n this.predicates = [];\n }\n is(index) {\n return index >= this.predicates.length || this.predicates[index];\n }\n set(index, value) {\n this.predicates[index] = value;\n }\n toString() {\n let value = \"\";\n const size = this.predicates.length;\n for (let i = 0; i < size; i++) {\n value += this.predicates[i] === true ? \"1\" : \"0\";\n }\n return value;\n }\n}\nconst EMPTY_PREDICATES = new PredicateSet();\nexport class LLStarLookaheadStrategy extends LLkLookaheadStrategy {\n constructor(options) {\n var _a, _b;\n super();\n this.logging = (_a = options === null || options === void 0 ? void 0 : options.logging) !== null && _a !== void 0 ? _a : ((message) => console.log(message));\n this.incomplete = (_b = options === null || options === void 0 ? void 0 : options.incomplete) !== null && _b !== void 0 ? _b : false;\n }\n initialize(options) {\n this.atn = createATN(options.rules);\n this.dfas = initATNSimulator(this.atn);\n }\n validateAmbiguousAlternationAlternatives() {\n return [];\n }\n validateEmptyOrAlternatives() {\n return [];\n }\n buildLookaheadForAlternation(options) {\n const { prodOccurrence, rule, hasPredicates, dynamicTokensEnabled } = options;\n const dfas = this.dfas;\n const logging = this.logging;\n const incomplete = this.incomplete;\n const key = buildATNKey(rule, 'Alternation', prodOccurrence);\n const decisionState = this.atn.decisionMap[key];\n const decisionIndex = decisionState.decision;\n const partialAlts = map(getLookaheadPaths({\n maxLookahead: 1,\n occurrence: prodOccurrence,\n prodType: \"Alternation\",\n rule: rule\n }), (currAlt) => map(currAlt, (path) => path[0]));\n if (isLL1Sequence(partialAlts, false) && !dynamicTokensEnabled) {\n const choiceToAlt = reduce(partialAlts, (result, currAlt, idx) => {\n forEach(currAlt, (currTokType) => {\n if (currTokType) {\n result[currTokType.tokenTypeIdx] = idx;\n forEach(currTokType.categoryMatches, (currExtendingType) => {\n result[currExtendingType] = idx;\n });\n }\n });\n return result;\n }, {});\n if (hasPredicates) {\n return function (orAlts) {\n var _a;\n const nextToken = this.LA_FAST(1);\n const prediction = choiceToAlt[nextToken.tokenTypeIdx];\n if (orAlts !== undefined && prediction !== undefined) {\n const gate = (_a = orAlts[prediction]) === null || _a === void 0 ? void 0 : _a.GATE;\n if (gate !== undefined && gate.call(this) === false) {\n return undefined;\n }\n }\n return prediction;\n };\n }\n else {\n return function () {\n const nextToken = this.LA_FAST(1);\n return choiceToAlt[nextToken.tokenTypeIdx];\n };\n }\n }\n else if (hasPredicates) {\n return function (orAlts) {\n const predicates = new PredicateSet();\n const length = orAlts === undefined ? 0 : orAlts.length;\n for (let i = 0; i < length; i++) {\n const gate = orAlts === null || orAlts === void 0 ? void 0 : orAlts[i].GATE;\n predicates.set(i, gate === undefined || gate.call(this));\n }\n const result = adaptivePredict.call(this, dfas, decisionIndex, predicates, logging, incomplete);\n return typeof result === 'number' ? result : undefined;\n };\n }\n else {\n return function () {\n const result = adaptivePredict.call(this, dfas, decisionIndex, EMPTY_PREDICATES, logging, incomplete);\n return typeof result === 'number' ? result : undefined;\n };\n }\n }\n buildLookaheadForOptional(options) {\n const { prodOccurrence, rule, prodType, dynamicTokensEnabled } = options;\n const dfas = this.dfas;\n const logging = this.logging;\n const incomplete = this.incomplete;\n const key = buildATNKey(rule, prodType, prodOccurrence);\n const decisionState = this.atn.decisionMap[key];\n const decisionIndex = decisionState.decision;\n const alts = map(getLookaheadPaths({\n maxLookahead: 1,\n occurrence: prodOccurrence,\n prodType,\n rule\n }), (e) => {\n return map(e, (g) => g[0]);\n });\n if (isLL1Sequence(alts) && alts[0][0] && !dynamicTokensEnabled) {\n const alt = alts[0];\n const singleTokensTypes = flatten(alt);\n if (singleTokensTypes.length === 1 &&\n isEmpty(singleTokensTypes[0].categoryMatches)) {\n const expectedTokenType = singleTokensTypes[0];\n const expectedTokenUniqueKey = expectedTokenType.tokenTypeIdx;\n return function () {\n return this.LA_FAST(1).tokenTypeIdx === expectedTokenUniqueKey;\n };\n }\n else {\n const choiceToAlt = reduce(singleTokensTypes, (result, currTokType) => {\n if (currTokType !== undefined) {\n result[currTokType.tokenTypeIdx] = true;\n forEach(currTokType.categoryMatches, (currExtendingType) => {\n result[currExtendingType] = true;\n });\n }\n return result;\n }, {});\n return function () {\n const nextToken = this.LA_FAST(1);\n return choiceToAlt[nextToken.tokenTypeIdx] === true;\n };\n }\n }\n return function () {\n const result = adaptivePredict.call(this, dfas, decisionIndex, EMPTY_PREDICATES, logging, incomplete);\n return typeof result === \"object\" ? false : result === 0;\n };\n }\n}\nfunction isLL1Sequence(sequences, allowEmpty = true) {\n const fullSet = new Set();\n for (const alt of sequences) {\n const altSet = new Set();\n for (const tokType of alt) {\n if (tokType === undefined) {\n if (allowEmpty) {\n // Epsilon production encountered\n break;\n }\n else {\n return false;\n }\n }\n const indices = [tokType.tokenTypeIdx].concat(tokType.categoryMatches);\n for (const index of indices) {\n if (fullSet.has(index)) {\n if (!altSet.has(index)) {\n return false;\n }\n }\n else {\n fullSet.add(index);\n altSet.add(index);\n }\n }\n }\n }\n return true;\n}\nfunction initATNSimulator(atn) {\n const decisionLength = atn.decisionStates.length;\n const decisionToDFA = Array(decisionLength);\n for (let i = 0; i < decisionLength; i++) {\n decisionToDFA[i] = createDFACache(atn.decisionStates[i], i);\n }\n return decisionToDFA;\n}\nfunction adaptivePredict(dfaCaches, decision, predicateSet, logging, incomplete) {\n const dfa = dfaCaches[decision](predicateSet);\n let start = dfa.start;\n if (start === undefined) {\n const closure = computeStartState(dfa.atnStartState);\n start = addDFAState(dfa, newDFAState(closure));\n dfa.start = start;\n }\n const alt = performLookahead.apply(this, [dfa, start, predicateSet, logging, incomplete]);\n return alt;\n}\nfunction performLookahead(dfa, s0, predicateSet, logging, incomplete) {\n let previousD = s0;\n let i = 1;\n const path = [];\n // Using LA_FAST is fine here\n let t = this.LA_FAST(i++);\n while (true) {\n let d = getExistingTargetState(previousD, t);\n if (d === undefined) {\n d = computeLookaheadTarget.apply(this, [dfa, previousD, t, i, predicateSet, logging]);\n }\n if (d === DFA_ERROR) {\n return buildAdaptivePredictError(path, previousD, t);\n }\n if (d.isAcceptState === true) {\n if (incomplete === true && tokenMatcher(t, EOF)) {\n // We run into this case, when we reached the end of the input, but we are in the middle of evaluating a lookahead sequence\n // The sequence is incomplete, but we can still make an educated guess on which alternative is more likely to be correct\n const bestGuess = getBestGuess(previousD, predicateSet);\n if (bestGuess !== undefined) {\n return bestGuess;\n }\n }\n return d.prediction;\n }\n previousD = d;\n path.push(t);\n // We might be reading out of bounds\n // Therefore, no LA_FAST here\n t = this.LA(i++);\n }\n}\nfunction computeLookaheadTarget(dfa, previousD, token, lookahead, predicateSet, logging) {\n const reach = computeReachSet(previousD.configs, token, predicateSet);\n if (reach.size === 0) {\n addDFAEdge(dfa, previousD, token, DFA_ERROR);\n return DFA_ERROR;\n }\n let newState = newDFAState(reach);\n const predictedAlt = getUniqueAlt(reach, predicateSet);\n if (predictedAlt !== undefined) {\n newState.isAcceptState = true;\n newState.prediction = predictedAlt;\n newState.configs.uniqueAlt = predictedAlt;\n }\n else if (hasConflictTerminatingPrediction(reach)) {\n const prediction = min(reach.alts);\n newState.isAcceptState = true;\n newState.prediction = prediction;\n newState.configs.uniqueAlt = prediction;\n reportLookaheadAmbiguity.apply(this, [dfa, lookahead, reach.alts, logging]);\n }\n newState = addDFAEdge(dfa, previousD, token, newState);\n return newState;\n}\nfunction reportLookaheadAmbiguity(dfa, lookahead, ambiguityIndices, logging) {\n const prefixPath = [];\n for (let i = 1; i <= lookahead; i++) {\n prefixPath.push(this.LA(i).tokenType);\n }\n const atnState = dfa.atnStartState;\n const topLevelRule = atnState.rule;\n const production = atnState.production;\n const message = buildAmbiguityError({\n topLevelRule,\n ambiguityIndices,\n production,\n prefixPath\n });\n logging(message);\n}\nfunction buildAmbiguityError(options) {\n const pathMsg = map(options.prefixPath, (currtok) => tokenLabel(currtok)).join(\", \");\n const occurrence = options.production.idx === 0 ? \"\" : options.production.idx;\n let currMessage = `Ambiguous Alternatives Detected: <${options.ambiguityIndices.join(\", \")}> in <${getProductionDslName(options.production)}${occurrence}>` +\n ` inside <${options.topLevelRule.name}> Rule,\\n` +\n `<${pathMsg}> may appears as a prefix path in all these alternatives.\\n`;\n currMessage =\n currMessage +\n `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\\n` +\n `For Further details.`;\n return currMessage;\n}\nfunction getProductionDslName(prod) {\n if (prod instanceof NonTerminal) {\n return \"SUBRULE\";\n }\n else if (prod instanceof Option) {\n return \"OPTION\";\n }\n else if (prod instanceof Alternation) {\n return \"OR\";\n }\n else if (prod instanceof RepetitionMandatory) {\n return \"AT_LEAST_ONE\";\n }\n else if (prod instanceof RepetitionMandatoryWithSeparator) {\n return \"AT_LEAST_ONE_SEP\";\n }\n else if (prod instanceof RepetitionWithSeparator) {\n return \"MANY_SEP\";\n }\n else if (prod instanceof Repetition) {\n return \"MANY\";\n }\n else if (prod instanceof Terminal) {\n return \"CONSUME\";\n }\n else {\n throw Error(\"non exhaustive match\");\n }\n}\nfunction buildAdaptivePredictError(path, previous, current) {\n const nextTransitions = flatMap(previous.configs.elements, (e) => e.state.transitions);\n const nextTokenTypes = uniqBy(nextTransitions\n .filter((e) => e instanceof AtomTransition)\n .map((e) => e.tokenType), (e) => e.tokenTypeIdx);\n return {\n actualToken: current,\n possibleTokenTypes: nextTokenTypes,\n tokenPath: path\n };\n}\nfunction getExistingTargetState(state, token) {\n return state.edges[token.tokenTypeIdx];\n}\nfunction computeReachSet(configs, token, predicateSet) {\n const intermediate = new ATNConfigSet();\n const skippedStopStates = [];\n for (const c of configs.elements) {\n if (predicateSet.is(c.alt) === false) {\n continue;\n }\n if (c.state.type === ATN_RULE_STOP) {\n skippedStopStates.push(c);\n continue;\n }\n const transitionLength = c.state.transitions.length;\n for (let i = 0; i < transitionLength; i++) {\n const transition = c.state.transitions[i];\n const target = getReachableTarget(transition, token);\n if (target !== undefined) {\n intermediate.add({\n state: target,\n alt: c.alt,\n stack: c.stack\n });\n }\n }\n }\n let reach;\n if (skippedStopStates.length === 0 && intermediate.size === 1) {\n reach = intermediate;\n }\n if (reach === undefined) {\n reach = new ATNConfigSet();\n for (const c of intermediate.elements) {\n closure(c, reach);\n }\n }\n if (skippedStopStates.length > 0 && !hasConfigInRuleStopState(reach)) {\n for (const c of skippedStopStates) {\n reach.add(c);\n }\n }\n return reach;\n}\nfunction getReachableTarget(transition, token) {\n if (transition instanceof AtomTransition &&\n tokenMatcher(token, transition.tokenType)) {\n return transition.target;\n }\n return undefined;\n}\nfunction getUniqueAlt(configs, predicateSet) {\n let alt;\n for (const c of configs.elements) {\n if (predicateSet.is(c.alt) === true) {\n if (alt === undefined) {\n alt = c.alt;\n }\n else if (alt !== c.alt) {\n return undefined;\n }\n }\n }\n return alt;\n}\nfunction newDFAState(closure) {\n return {\n configs: closure,\n edges: {},\n isAcceptState: false,\n prediction: -1\n };\n}\nfunction addDFAEdge(dfa, from, token, to) {\n to = addDFAState(dfa, to);\n from.edges[token.tokenTypeIdx] = to;\n return to;\n}\nfunction addDFAState(dfa, state) {\n if (state === DFA_ERROR) {\n return state;\n }\n // Repetitions have the same config set\n // Therefore, storing the key of the config in a map allows us to create a loop in our DFA\n const mapKey = state.configs.key;\n const existing = dfa.states[mapKey];\n if (existing !== undefined) {\n return existing;\n }\n state.configs.finalize();\n dfa.states[mapKey] = state;\n return state;\n}\nfunction computeStartState(atnState) {\n const configs = new ATNConfigSet();\n const numberOfTransitions = atnState.transitions.length;\n for (let i = 0; i < numberOfTransitions; i++) {\n const target = atnState.transitions[i].target;\n const config = {\n state: target,\n alt: i,\n stack: []\n };\n closure(config, configs);\n }\n return configs;\n}\nfunction closure(config, configs) {\n const p = config.state;\n if (p.type === ATN_RULE_STOP) {\n if (config.stack.length > 0) {\n const atnStack = [...config.stack];\n const followState = atnStack.pop();\n const followConfig = {\n state: followState,\n alt: config.alt,\n stack: atnStack\n };\n closure(followConfig, configs);\n }\n else {\n // Dipping into outer context, simply add the config\n // This will stop computation once every config is at the rule stop state\n configs.add(config);\n }\n return;\n }\n if (!p.epsilonOnlyTransitions) {\n configs.add(config);\n }\n const transitionLength = p.transitions.length;\n for (let i = 0; i < transitionLength; i++) {\n const transition = p.transitions[i];\n const c = getEpsilonTarget(config, transition);\n if (c !== undefined) {\n closure(c, configs);\n }\n }\n}\nfunction getEpsilonTarget(config, transition) {\n if (transition instanceof EpsilonTransition) {\n return {\n state: transition.target,\n alt: config.alt,\n stack: config.stack\n };\n }\n else if (transition instanceof RuleTransition) {\n const stack = [...config.stack, transition.followState];\n return {\n state: transition.target,\n alt: config.alt,\n stack\n };\n }\n return undefined;\n}\nfunction hasConfigInRuleStopState(configs) {\n for (const c of configs.elements) {\n if (c.state.type === ATN_RULE_STOP) {\n return true;\n }\n }\n return false;\n}\nfunction allConfigsInRuleStopStates(configs) {\n for (const c of configs.elements) {\n if (c.state.type !== ATN_RULE_STOP) {\n return false;\n }\n }\n return true;\n}\nfunction hasConflictTerminatingPrediction(configs) {\n if (allConfigsInRuleStopStates(configs)) {\n return true;\n }\n const altSets = getConflictingAltSets(configs.elements);\n const heuristic = hasConflictingAltSet(altSets) && !hasStateAssociatedWithOneAlt(altSets);\n return heuristic;\n}\nfunction getConflictingAltSets(configs) {\n const configToAlts = new Map();\n for (const c of configs) {\n const key = getATNConfigKey(c, false);\n let alts = configToAlts.get(key);\n if (alts === undefined) {\n alts = {};\n configToAlts.set(key, alts);\n }\n alts[c.alt] = true;\n }\n return configToAlts;\n}\nfunction hasConflictingAltSet(altSets) {\n for (const value of Array.from(altSets.values())) {\n if (Object.keys(value).length > 1) {\n return true;\n }\n }\n return false;\n}\nfunction hasStateAssociatedWithOneAlt(altSets) {\n for (const value of Array.from(altSets.values())) {\n if (Object.keys(value).length === 1) {\n return true;\n }\n }\n return false;\n}\nfunction getBestGuess(state, predicateSet) {\n let bestAlt = undefined;\n for (const c of state.configs.elements) {\n // Ignore invalid and stop states\n if (predicateSet.is(c.alt) === false || c.state.type === ATN_RULE_STOP) {\n continue;\n }\n if (bestAlt === undefined) {\n bestAlt = c.alt;\n }\n else if (bestAlt !== c.alt) {\n return undefined;\n }\n }\n return bestAlt;\n}\n//# sourceMappingURL=all-star-lookahead.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,EAAe,GAAY,GAAU;CAC1C,IAAM,IAAM,EAAE;CACd,QAAQ,MAAiB;EACrB,IAAM,IAAM,EAAa,UAAU,EAC/B,IAAW,EAAI;EAWf,OAVA,MAAa,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O,KAAK,EAAM,CAAC,WAAW,GAC9B,OAAO;CAGf,OAAO;;AAEX,SAAS,GAAa,GAAO,GAAc;CACvC,IAAI;CACJ,KAAK,IAAM,KAAK,EAAM,QAAQ,UAEtB,QAAa,GAAG,EAAE,IAAI,KAAK,MAAS,EAAE,MAAM,SAAA,IAGhD;MAAI,MAAY,KAAA,GACZ,IAAU,EAAE;OAEX,IAAI,MAAY,EAAE,KACnB;;CAGR,OAAO"}
@@ -1,197 +0,0 @@
1
- import { Alternation as e, NonTerminal as t, Option as n, Repetition as r, RepetitionMandatory as i, RepetitionMandatoryWithSeparator as a, RepetitionWithSeparator as o, Terminal as s } from "../../@chevrotain/gast/lib/src/model.js";
2
- import "../../chevrotain/lib/src/api.js";
3
- import c from "../../lodash-es/map.js";
4
- import l from "../../lodash-es/filter.js";
5
- //#region ../../node_modules/chevrotain-allstar/lib/atn.js
6
- function u(e, t, n) {
7
- return `${e.name}_${t}_${n}`;
8
- }
9
- var d = class {
10
- constructor(e) {
11
- this.target = e;
12
- }
13
- isEpsilon() {
14
- return !1;
15
- }
16
- }, f = class extends d {
17
- constructor(e, t) {
18
- super(e), this.tokenType = t;
19
- }
20
- }, p = class extends d {
21
- constructor(e) {
22
- super(e);
23
- }
24
- isEpsilon() {
25
- return !0;
26
- }
27
- }, m = class extends d {
28
- constructor(e, t, n) {
29
- super(e), this.rule = t, this.followState = n;
30
- }
31
- isEpsilon() {
32
- return !0;
33
- }
34
- };
35
- function h(e) {
36
- let t = {
37
- decisionMap: {},
38
- decisionStates: [],
39
- ruleToStartState: /* @__PURE__ */ new Map(),
40
- ruleToStopState: /* @__PURE__ */ new Map(),
41
- states: []
42
- };
43
- g(t, e);
44
- let n = e.length;
45
- for (let r = 0; r < n; r++) {
46
- let n = e[r], i = w(t, n, n);
47
- i !== void 0 && P(t, n, i);
48
- }
49
- return t;
50
- }
51
- function g(e, t) {
52
- let n = t.length;
53
- for (let r = 0; r < n; r++) {
54
- let n = t[r], i = I(e, n, void 0, { type: 2 }), a = I(e, n, void 0, { type: 7 });
55
- i.stop = a, e.ruleToStartState.set(n, i), e.ruleToStopState.set(n, a);
56
- }
57
- }
58
- function _(c, l, u) {
59
- return u instanceof s ? M(c, l, u.terminalType, u) : u instanceof t ? N(c, l, u) : u instanceof e ? S(c, l, u) : u instanceof n ? C(c, l, u) : u instanceof r ? v(c, l, u) : u instanceof o ? y(c, l, u) : u instanceof i ? b(c, l, u) : u instanceof a ? x(c, l, u) : w(c, l, u);
60
- }
61
- function v(e, t, n) {
62
- let r = I(e, t, n, { type: 5 });
63
- return O(e, r), E(e, t, n, k(e, t, r, n, w(e, t, n)));
64
- }
65
- function y(e, t, n) {
66
- let r = I(e, t, n, { type: 5 });
67
- return O(e, r), E(e, t, n, k(e, t, r, n, w(e, t, n)), M(e, t, n.separator, n));
68
- }
69
- function b(e, t, n) {
70
- let r = I(e, t, n, { type: 4 });
71
- return O(e, r), T(e, t, n, k(e, t, r, n, w(e, t, n)));
72
- }
73
- function x(e, t, n) {
74
- let r = I(e, t, n, { type: 4 });
75
- return O(e, r), T(e, t, n, k(e, t, r, n, w(e, t, n)), M(e, t, n.separator, n));
76
- }
77
- function S(e, t, n) {
78
- let r = I(e, t, n, { type: 1 });
79
- return O(e, r), k(e, t, r, n, ...c(n.definition, (n) => _(e, t, n)));
80
- }
81
- function C(e, t, n) {
82
- let r = I(e, t, n, { type: 1 });
83
- return O(e, r), D(e, t, n, k(e, t, r, n, w(e, t, n)));
84
- }
85
- function w(e, t, n) {
86
- let r = l(c(n.definition, (n) => _(e, t, n)), (e) => e !== void 0);
87
- return r.length === 1 ? r[0] : r.length === 0 ? void 0 : j(e, r);
88
- }
89
- function T(e, t, n, r, i) {
90
- let a = r.left, o = r.right, s = I(e, t, n, { type: 11 });
91
- O(e, s);
92
- let c = I(e, t, n, { type: 12 });
93
- return a.loopback = s, c.loopback = s, e.decisionMap[u(t, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", n.idx)] = s, F(o, s), i === void 0 ? (F(s, a), F(s, c)) : (F(s, c), F(s, i.left), F(i.right, a)), {
94
- left: a,
95
- right: c
96
- };
97
- }
98
- function E(e, t, n, r, i) {
99
- let a = r.left, o = r.right, s = I(e, t, n, { type: 10 });
100
- O(e, s);
101
- let c = I(e, t, n, { type: 12 }), l = I(e, t, n, { type: 9 });
102
- return s.loopback = l, c.loopback = l, F(s, a), F(s, c), F(o, l), i === void 0 ? F(l, s) : (F(l, c), F(l, i.left), F(i.right, a)), e.decisionMap[u(t, i ? "RepetitionWithSeparator" : "Repetition", n.idx)] = s, {
103
- left: s,
104
- right: c
105
- };
106
- }
107
- function D(e, t, n, r) {
108
- let i = r.left, a = r.right;
109
- return F(i, a), e.decisionMap[u(t, "Option", n.idx)] = i, r;
110
- }
111
- function O(e, t) {
112
- return e.decisionStates.push(t), t.decision = e.decisionStates.length - 1, t.decision;
113
- }
114
- function k(e, t, n, r, ...i) {
115
- let a = I(e, t, r, {
116
- type: 8,
117
- start: n
118
- });
119
- n.end = a;
120
- for (let e of i) e === void 0 ? F(n, a) : (F(n, e.left), F(e.right, a));
121
- let o = {
122
- left: n,
123
- right: a
124
- };
125
- return e.decisionMap[u(t, A(r), r.idx)] = n, o;
126
- }
127
- function A(t) {
128
- if (t instanceof e) return "Alternation";
129
- if (t instanceof n) return "Option";
130
- if (t instanceof r) return "Repetition";
131
- if (t instanceof o) return "RepetitionWithSeparator";
132
- if (t instanceof i) return "RepetitionMandatory";
133
- if (t instanceof a) return "RepetitionMandatoryWithSeparator";
134
- throw Error("Invalid production type encountered");
135
- }
136
- function j(e, t) {
137
- let n = t.length;
138
- for (let r = 0; r < n - 1; r++) {
139
- let n = t[r], i;
140
- n.left.transitions.length === 1 && (i = n.left.transitions[0]);
141
- let a = i instanceof m, o = i, s = t[r + 1].left;
142
- n.left.type === 1 && n.right.type === 1 && i !== void 0 && (a && o.followState === n.right || i.target === n.right) ? (a ? o.followState = s : i.target = s, R(e, n.right)) : F(n.right, s);
143
- }
144
- let r = t[0], i = t[n - 1];
145
- return {
146
- left: r.left,
147
- right: i.right
148
- };
149
- }
150
- function M(e, t, n, r) {
151
- let i = I(e, t, r, { type: 1 }), a = I(e, t, r, { type: 1 });
152
- return L(i, new f(a, n)), {
153
- left: i,
154
- right: a
155
- };
156
- }
157
- function N(e, t, n) {
158
- let r = n.referencedRule, i = e.ruleToStartState.get(r), a = I(e, t, n, { type: 1 }), o = I(e, t, n, { type: 1 });
159
- return L(a, new m(i, r, o)), {
160
- left: a,
161
- right: o
162
- };
163
- }
164
- function P(e, t, n) {
165
- let r = e.ruleToStartState.get(t);
166
- F(r, n.left);
167
- let i = e.ruleToStopState.get(t);
168
- return F(n.right, i), {
169
- left: r,
170
- right: i
171
- };
172
- }
173
- function F(e, t) {
174
- L(e, new p(t));
175
- }
176
- function I(e, t, n, r) {
177
- let i = Object.assign({
178
- atn: e,
179
- production: n,
180
- epsilonOnlyTransitions: !1,
181
- rule: t,
182
- transitions: [],
183
- nextTokenWithinRule: [],
184
- stateNumber: e.states.length
185
- }, r);
186
- return e.states.push(i), i;
187
- }
188
- function L(e, t) {
189
- e.transitions.length === 0 && (e.epsilonOnlyTransitions = t.isEpsilon()), e.transitions.push(t);
190
- }
191
- function R(e, t) {
192
- e.states.splice(e.states.indexOf(t), 1);
193
- }
194
- //#endregion
195
- export { f as AtomTransition, p as EpsilonTransition, m as RuleTransition, u as buildATNKey, h as createATN };
196
-
197
- //# sourceMappingURL=atn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atn.js","names":[],"sources":["../../../../../../../node_modules/chevrotain-allstar/lib/atn.js"],"sourcesContent":["/******************************************************************************\n * Copyright 2022 TypeFox GmbH\n * This program and the accompanying materials are made available under the\n * terms of the MIT License, which is available in the project root.\n ******************************************************************************/\nimport map from \"lodash-es/map.js\";\nimport filter from \"lodash-es/filter.js\";\nimport { Alternation, NonTerminal, Option, RepetitionMandatory, Repetition, Terminal, RepetitionWithSeparator, RepetitionMandatoryWithSeparator } from \"chevrotain\";\nexport function buildATNKey(rule, type, occurrence) {\n return `${rule.name}_${type}_${occurrence}`;\n}\nexport const ATN_INVALID_TYPE = 0;\nexport const ATN_BASIC = 1;\nexport const ATN_RULE_START = 2;\nexport const ATN_PLUS_BLOCK_START = 4;\nexport const ATN_STAR_BLOCK_START = 5;\n// Currently unused as the ATN is not used for lexing\nexport const ATN_TOKEN_START = 6;\nexport const ATN_RULE_STOP = 7;\nexport const ATN_BLOCK_END = 8;\nexport const ATN_STAR_LOOP_BACK = 9;\nexport const ATN_STAR_LOOP_ENTRY = 10;\nexport const ATN_PLUS_LOOP_BACK = 11;\nexport const ATN_LOOP_END = 12;\nexport class AbstractTransition {\n constructor(target) {\n this.target = target;\n }\n isEpsilon() {\n return false;\n }\n}\nexport class AtomTransition extends AbstractTransition {\n constructor(target, tokenType) {\n super(target);\n this.tokenType = tokenType;\n }\n}\nexport class EpsilonTransition extends AbstractTransition {\n constructor(target) {\n super(target);\n }\n isEpsilon() {\n return true;\n }\n}\nexport class RuleTransition extends AbstractTransition {\n constructor(ruleStart, rule, followState) {\n super(ruleStart);\n this.rule = rule;\n this.followState = followState;\n }\n isEpsilon() {\n return true;\n }\n}\nexport function createATN(rules) {\n const atn = {\n decisionMap: {},\n decisionStates: [],\n ruleToStartState: new Map(),\n ruleToStopState: new Map(),\n states: []\n };\n createRuleStartAndStopATNStates(atn, rules);\n const ruleLength = rules.length;\n for (let i = 0; i < ruleLength; i++) {\n const rule = rules[i];\n const ruleBlock = block(atn, rule, rule);\n if (ruleBlock === undefined) {\n continue;\n }\n buildRuleHandle(atn, rule, ruleBlock);\n }\n return atn;\n}\nfunction createRuleStartAndStopATNStates(atn, rules) {\n const ruleLength = rules.length;\n for (let i = 0; i < ruleLength; i++) {\n const rule = rules[i];\n const start = newState(atn, rule, undefined, {\n type: ATN_RULE_START\n });\n const stop = newState(atn, rule, undefined, {\n type: ATN_RULE_STOP\n });\n start.stop = stop;\n atn.ruleToStartState.set(rule, start);\n atn.ruleToStopState.set(rule, stop);\n }\n}\nfunction atom(atn, rule, production) {\n if (production instanceof Terminal) {\n return tokenRef(atn, rule, production.terminalType, production);\n }\n else if (production instanceof NonTerminal) {\n return ruleRef(atn, rule, production);\n }\n else if (production instanceof Alternation) {\n return alternation(atn, rule, production);\n }\n else if (production instanceof Option) {\n return option(atn, rule, production);\n }\n else if (production instanceof Repetition) {\n return repetition(atn, rule, production);\n }\n else if (production instanceof RepetitionWithSeparator) {\n return repetitionSep(atn, rule, production);\n }\n else if (production instanceof RepetitionMandatory) {\n return repetitionMandatory(atn, rule, production);\n }\n else if (production instanceof RepetitionMandatoryWithSeparator) {\n return repetitionMandatorySep(atn, rule, production);\n }\n else {\n return block(atn, rule, production);\n }\n}\nfunction repetition(atn, rule, repetition) {\n const starState = newState(atn, rule, repetition, {\n type: ATN_STAR_BLOCK_START\n });\n defineDecisionState(atn, starState);\n const handle = makeAlts(atn, rule, starState, repetition, block(atn, rule, repetition));\n return star(atn, rule, repetition, handle);\n}\nfunction repetitionSep(atn, rule, repetition) {\n const starState = newState(atn, rule, repetition, {\n type: ATN_STAR_BLOCK_START\n });\n defineDecisionState(atn, starState);\n const handle = makeAlts(atn, rule, starState, repetition, block(atn, rule, repetition));\n const sep = tokenRef(atn, rule, repetition.separator, repetition);\n return star(atn, rule, repetition, handle, sep);\n}\nfunction repetitionMandatory(atn, rule, repetition) {\n const plusState = newState(atn, rule, repetition, {\n type: ATN_PLUS_BLOCK_START\n });\n defineDecisionState(atn, plusState);\n const handle = makeAlts(atn, rule, plusState, repetition, block(atn, rule, repetition));\n return plus(atn, rule, repetition, handle);\n}\nfunction repetitionMandatorySep(atn, rule, repetition) {\n const plusState = newState(atn, rule, repetition, {\n type: ATN_PLUS_BLOCK_START\n });\n defineDecisionState(atn, plusState);\n const handle = makeAlts(atn, rule, plusState, repetition, block(atn, rule, repetition));\n const sep = tokenRef(atn, rule, repetition.separator, repetition);\n return plus(atn, rule, repetition, handle, sep);\n}\nfunction alternation(atn, rule, alternation) {\n const start = newState(atn, rule, alternation, {\n type: ATN_BASIC\n });\n defineDecisionState(atn, start);\n const alts = map(alternation.definition, (e) => atom(atn, rule, e));\n const handle = makeAlts(atn, rule, start, alternation, ...alts);\n return handle;\n}\nfunction option(atn, rule, option) {\n const start = newState(atn, rule, option, {\n type: ATN_BASIC\n });\n defineDecisionState(atn, start);\n const handle = makeAlts(atn, rule, start, option, block(atn, rule, option));\n return optional(atn, rule, option, handle);\n}\nfunction block(atn, rule, block) {\n const handles = filter(map(block.definition, (e) => atom(atn, rule, e)), (e) => e !== undefined);\n if (handles.length === 1) {\n return handles[0];\n }\n else if (handles.length === 0) {\n return undefined;\n }\n else {\n return makeBlock(atn, handles);\n }\n}\nfunction plus(atn, rule, plus, handle, sep) {\n const blkStart = handle.left;\n const blkEnd = handle.right;\n const loop = newState(atn, rule, plus, {\n type: ATN_PLUS_LOOP_BACK\n });\n defineDecisionState(atn, loop);\n const end = newState(atn, rule, plus, {\n type: ATN_LOOP_END\n });\n blkStart.loopback = loop;\n end.loopback = loop;\n atn.decisionMap[buildATNKey(rule, sep ? 'RepetitionMandatoryWithSeparator' : 'RepetitionMandatory', plus.idx)] = loop;\n epsilon(blkEnd, loop); // block can see loop back\n // Depending on whether we have a separator we put the exit transition at index 1 or 0\n // This influences the chosen option in the lookahead DFA\n if (sep === undefined) {\n epsilon(loop, blkStart); // loop back to start\n epsilon(loop, end); // exit\n }\n else {\n epsilon(loop, end); // exit\n // loop back to start with separator\n epsilon(loop, sep.left);\n epsilon(sep.right, blkStart);\n }\n return {\n left: blkStart,\n right: end\n };\n}\nfunction star(atn, rule, star, handle, sep) {\n const start = handle.left;\n const end = handle.right;\n const entry = newState(atn, rule, star, {\n type: ATN_STAR_LOOP_ENTRY\n });\n defineDecisionState(atn, entry);\n const loopEnd = newState(atn, rule, star, {\n type: ATN_LOOP_END\n });\n const loop = newState(atn, rule, star, {\n type: ATN_STAR_LOOP_BACK\n });\n entry.loopback = loop;\n loopEnd.loopback = loop;\n epsilon(entry, start); // loop enter edge (alt 2)\n epsilon(entry, loopEnd); // bypass loop edge (alt 1)\n epsilon(end, loop); // block end hits loop back\n if (sep !== undefined) {\n epsilon(loop, loopEnd); // end loop\n // loop back to start of handle using separator\n epsilon(loop, sep.left);\n epsilon(sep.right, start);\n }\n else {\n epsilon(loop, entry); // loop back to entry/exit decision\n }\n atn.decisionMap[buildATNKey(rule, sep ? 'RepetitionWithSeparator' : 'Repetition', star.idx)] = entry;\n return {\n left: entry,\n right: loopEnd\n };\n}\nfunction optional(atn, rule, optional, handle) {\n const start = handle.left;\n const end = handle.right;\n epsilon(start, end);\n atn.decisionMap[buildATNKey(rule, 'Option', optional.idx)] = start;\n return handle;\n}\nfunction defineDecisionState(atn, state) {\n atn.decisionStates.push(state);\n state.decision = atn.decisionStates.length - 1;\n return state.decision;\n}\nfunction makeAlts(atn, rule, start, production, ...alts) {\n const end = newState(atn, rule, production, {\n type: ATN_BLOCK_END,\n start\n });\n start.end = end;\n for (const alt of alts) {\n if (alt !== undefined) {\n // hook alts up to decision block\n epsilon(start, alt.left);\n epsilon(alt.right, end);\n }\n else {\n epsilon(start, end);\n }\n }\n const handle = {\n left: start,\n right: end\n };\n atn.decisionMap[buildATNKey(rule, getProdType(production), production.idx)] = start;\n return handle;\n}\nfunction getProdType(production) {\n if (production instanceof Alternation) {\n return 'Alternation';\n }\n else if (production instanceof Option) {\n return 'Option';\n }\n else if (production instanceof Repetition) {\n return 'Repetition';\n }\n else if (production instanceof RepetitionWithSeparator) {\n return 'RepetitionWithSeparator';\n }\n else if (production instanceof RepetitionMandatory) {\n return 'RepetitionMandatory';\n }\n else if (production instanceof RepetitionMandatoryWithSeparator) {\n return 'RepetitionMandatoryWithSeparator';\n }\n else {\n throw new Error('Invalid production type encountered');\n }\n}\nfunction makeBlock(atn, alts) {\n const altsLength = alts.length;\n for (let i = 0; i < altsLength - 1; i++) {\n const handle = alts[i];\n let transition;\n if (handle.left.transitions.length === 1) {\n transition = handle.left.transitions[0];\n }\n const isRuleTransition = transition instanceof RuleTransition;\n const ruleTransition = transition;\n const next = alts[i + 1].left;\n if (handle.left.type === ATN_BASIC &&\n handle.right.type === ATN_BASIC &&\n transition !== undefined &&\n ((isRuleTransition && ruleTransition.followState === handle.right) ||\n transition.target === handle.right)) {\n // we can avoid epsilon edge to next element\n if (isRuleTransition) {\n ruleTransition.followState = next;\n }\n else {\n transition.target = next;\n }\n removeState(atn, handle.right); // we skipped over this state\n }\n else {\n // need epsilon if previous block's right end node is complex\n epsilon(handle.right, next);\n }\n }\n const first = alts[0];\n const last = alts[altsLength - 1];\n return {\n left: first.left,\n right: last.right\n };\n}\nfunction tokenRef(atn, rule, tokenType, production) {\n const left = newState(atn, rule, production, {\n type: ATN_BASIC\n });\n const right = newState(atn, rule, production, {\n type: ATN_BASIC\n });\n addTransition(left, new AtomTransition(right, tokenType));\n return {\n left,\n right\n };\n}\nfunction ruleRef(atn, currentRule, nonTerminal) {\n const rule = nonTerminal.referencedRule;\n const start = atn.ruleToStartState.get(rule);\n const left = newState(atn, currentRule, nonTerminal, {\n type: ATN_BASIC\n });\n const right = newState(atn, currentRule, nonTerminal, {\n type: ATN_BASIC\n });\n const call = new RuleTransition(start, rule, right);\n addTransition(left, call);\n return {\n left,\n right\n };\n}\nfunction buildRuleHandle(atn, rule, block) {\n const start = atn.ruleToStartState.get(rule);\n epsilon(start, block.left);\n const stop = atn.ruleToStopState.get(rule);\n epsilon(block.right, stop);\n const handle = {\n left: start,\n right: stop\n };\n return handle;\n}\nfunction epsilon(a, b) {\n const transition = new EpsilonTransition(b);\n addTransition(a, transition);\n}\nfunction newState(atn, rule, production, partial) {\n const t = Object.assign({ atn,\n production, epsilonOnlyTransitions: false, rule, transitions: [], nextTokenWithinRule: [], stateNumber: atn.states.length }, partial);\n atn.states.push(t);\n return t;\n}\nfunction addTransition(state, transition) {\n // A single ATN state can only contain epsilon transitions or non-epsilon transitions\n // Because they are never mixed, only setting the property for the first transition is fine\n if (state.transitions.length === 0) {\n state.epsilonOnlyTransitions = transition.isEpsilon();\n }\n state.transitions.push(transition);\n}\nfunction removeState(atn, state) {\n atn.states.splice(atn.states.indexOf(state), 1);\n}\n//# sourceMappingURL=atn.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AAQA,SAAgB,EAAY,GAAM,GAAM,GAAY;CAChD,OAAO,GAAG,EAAK,KAAK,GAAG,EAAK,GAAG;;AAenC,IAAa,IAAb,MAAgC;CAC5B,YAAY,GAAQ;EAChB,KAAK,SAAS;;CAElB,YAAY;EACR,OAAO;;GAGF,IAAb,cAAoC,EAAmB;CACnD,YAAY,GAAQ,GAAW;EAE3B,AADA,MAAM,EAAO,EACb,KAAK,YAAY;;GAGZ,IAAb,cAAuC,EAAmB;CACtD,YAAY,GAAQ;EAChB,MAAM,EAAO;;CAEjB,YAAY;EACR,OAAO;;GAGF,IAAb,cAAoC,EAAmB;CACnD,YAAY,GAAW,GAAM,GAAa;EAGtC,AAFA,MAAM,EAAU,EAChB,KAAK,OAAO,GACZ,KAAK,cAAc;;CAEvB,YAAY;EACR,OAAO;;;AAGf,SAAgB,EAAU,GAAO;CAC7B,IAAM,IAAM;EACR,aAAa,EAAE;EACf,gBAAgB,EAAE;EAClB,kCAAkB,IAAI,KAAK;EAC3B,iCAAiB,IAAI,KAAK;EAC1B,QAAQ,EAAE;EACb;CACD,EAAgC,GAAK,EAAM;CAC3C,IAAM,IAAa,EAAM;CACzB,KAAK,IAAI,IAAI,GAAG,IAAI,GAAY,KAAK;EACjC,IAAM,IAAO,EAAM,IACb,IAAY,EAAM,GAAK,GAAM,EAAK;EACpC,MAAc,KAAA,KAGlB,EAAgB,GAAK,GAAM,EAAU;;CAEzC,OAAO;;AAEX,SAAS,EAAgC,GAAK,GAAO;CACjD,IAAM,IAAa,EAAM;CACzB,KAAK,IAAI,IAAI,GAAG,IAAI,GAAY,KAAK;EACjC,IAAM,IAAO,EAAM,IACb,IAAQ,EAAS,GAAK,GAAM,KAAA,GAAW,EAC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