db-studio 1.2.9 → 1.2.11

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 (528) hide show
  1. package/dist/core-dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  2. package/dist/core-dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  3. package/dist/core-dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  4. package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  5. package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  6. package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  7. package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  8. package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  9. package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  10. package/dist/core-dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  11. package/dist/core-dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  12. package/dist/core-dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  13. package/dist/core-dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  14. package/dist/core-dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  15. package/dist/core-dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  16. package/dist/core-dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  17. package/dist/core-dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  18. package/dist/core-dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  19. package/dist/core-dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  20. package/dist/core-dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  21. package/dist/core-dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  22. package/dist/core-dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  23. package/dist/core-dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  24. package/dist/core-dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  25. package/dist/core-dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  26. package/dist/core-dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  27. package/dist/core-dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  28. package/dist/core-dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  29. package/dist/core-dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  30. package/dist/core-dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  31. package/dist/core-dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  32. package/dist/core-dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  33. package/dist/core-dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  34. package/dist/core-dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  35. package/dist/core-dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  36. package/dist/core-dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  37. package/dist/core-dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  38. package/dist/core-dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  39. package/dist/core-dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  40. package/dist/core-dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  41. package/dist/core-dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  42. package/dist/core-dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  43. package/dist/core-dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  44. package/dist/core-dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  45. package/dist/core-dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  46. package/dist/core-dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  47. package/dist/core-dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  48. package/dist/core-dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  49. package/dist/core-dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  50. package/dist/core-dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  51. package/dist/core-dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  52. package/dist/core-dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  53. package/dist/core-dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  54. package/dist/core-dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  55. package/dist/core-dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  56. package/dist/core-dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  57. package/dist/core-dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  58. package/dist/core-dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  59. package/dist/core-dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  60. package/dist/core-dist/assets/_baseUniq-CAv_sUq0.js +1 -0
  61. package/dist/core-dist/assets/_pathlessLayout-CZkGDKr3.js +385 -0
  62. package/dist/core-dist/assets/_queryId-BlJwBNE7.js +1 -0
  63. package/dist/core-dist/assets/_table-Bg3Jhj3R.js +1 -0
  64. package/dist/core-dist/assets/abap-BdImnpbu.js +1 -0
  65. package/dist/core-dist/assets/abap-DLDM7-KI.js +1 -0
  66. package/dist/core-dist/assets/actionscript-3-CfeIJUat.js +1 -0
  67. package/dist/core-dist/assets/ada-bCR0ucgS.js +1 -0
  68. package/dist/core-dist/assets/andromeeda-C-Jbm3Hp.js +1 -0
  69. package/dist/core-dist/assets/angular-html-CU67Zn6k.js +1 -0
  70. package/dist/core-dist/assets/angular-ts-BwZT4LLn.js +1 -0
  71. package/dist/core-dist/assets/apache-Pmp26Uib.js +1 -0
  72. package/dist/core-dist/assets/apex-D8_7TLub.js +1 -0
  73. package/dist/core-dist/assets/apex-DNDY2TF8.js +1 -0
  74. package/dist/core-dist/assets/apl-dKokRX4l.js +1 -0
  75. package/dist/core-dist/assets/applescript-Co6uUVPk.js +1 -0
  76. package/dist/core-dist/assets/ara-BRHolxvo.js +1 -0
  77. package/dist/core-dist/assets/arc-BJuKLB46.js +1 -0
  78. package/dist/core-dist/assets/architecture-U656AL7Q-CG9_JmIP.js +1 -0
  79. package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-BlKpMHgP.js +36 -0
  80. package/dist/core-dist/assets/asciidoc-Dv7Oe6Be.js +1 -0
  81. package/dist/core-dist/assets/asm-D_Q5rh1f.js +1 -0
  82. package/dist/core-dist/assets/astro-CbQHKStN.js +1 -0
  83. package/dist/core-dist/assets/aurora-x-D-2ljcwZ.js +1 -0
  84. package/dist/core-dist/assets/awk-DMzUqQB5.js +1 -0
  85. package/dist/core-dist/assets/ayu-dark-CmMr59Fi.js +1 -0
  86. package/dist/core-dist/assets/azcli-Y6nb8tq_.js +1 -0
  87. package/dist/core-dist/assets/ballerina-BFfxhgS-.js +1 -0
  88. package/dist/core-dist/assets/bat-BkioyH1T.js +1 -0
  89. package/dist/core-dist/assets/bat-BwHxbl9M.js +1 -0
  90. package/dist/core-dist/assets/beancount-k_qm7-4y.js +1 -0
  91. package/dist/core-dist/assets/berry-uYugtg8r.js +1 -0
  92. package/dist/core-dist/assets/bibtex-CHM0blh-.js +1 -0
  93. package/dist/core-dist/assets/bicep-Bmn6On1c.js +1 -0
  94. package/dist/core-dist/assets/bicep-CFznDFnq.js +2 -0
  95. package/dist/core-dist/assets/blade-D4QpJJKB.js +1 -0
  96. package/dist/core-dist/assets/blockDiagram-VD42YOAC-BzzsEP95.js +122 -0
  97. package/dist/core-dist/assets/bsl-BO_Y6i37.js +1 -0
  98. package/dist/core-dist/assets/c-BIGW1oBm.js +1 -0
  99. package/dist/core-dist/assets/c3-VCDPK7BO.js +1 -0
  100. package/dist/core-dist/assets/c4Diagram-YG6GDRKO-BnbEJDnT.js +10 -0
  101. package/dist/core-dist/assets/cadence-Bv_4Rxtq.js +1 -0
  102. package/dist/core-dist/assets/cairo-KRGpt6FW.js +1 -0
  103. package/dist/core-dist/assets/cameligo-Bf6VGUru.js +1 -0
  104. package/dist/core-dist/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  105. package/dist/core-dist/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  106. package/dist/core-dist/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  107. package/dist/core-dist/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  108. package/dist/core-dist/assets/channel-CymmV4CK.js +1 -0
  109. package/dist/core-dist/assets/chunk-4BX2VUAB-BBlBt29z.js +1 -0
  110. package/dist/core-dist/assets/chunk-55IACEB6-DNkirFYu.js +1 -0
  111. package/dist/core-dist/assets/chunk-B4BG7PRW-DplPr675.js +165 -0
  112. package/dist/core-dist/assets/chunk-DI55MBZ5-CuowJrst.js +220 -0
  113. package/dist/core-dist/assets/chunk-FMBD7UC4-CDLqhL7O.js +15 -0
  114. package/dist/core-dist/assets/chunk-QN33PNHL-T2K3kI4j.js +1 -0
  115. package/dist/core-dist/assets/chunk-QZHKN3VN-Cn74Pd79.js +1 -0
  116. package/dist/core-dist/assets/chunk-TZMSLE5B-jRgtCDM3.js +1 -0
  117. package/dist/core-dist/assets/clarity-D53aC0YG.js +1 -0
  118. package/dist/core-dist/assets/classDiagram-2ON5EDUG-DsppMAOR.js +1 -0
  119. package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-DsppMAOR.js +1 -0
  120. package/dist/core-dist/assets/clojure-Dnu-v4kV.js +1 -0
  121. package/dist/core-dist/assets/clojure-P80f7IUj.js +1 -0
  122. package/dist/core-dist/assets/clone-tRzPOHdE.js +1 -0
  123. package/dist/core-dist/assets/cmake-D1j8_8rp.js +1 -0
  124. package/dist/core-dist/assets/cobol-nwyudZeR.js +1 -0
  125. package/dist/core-dist/assets/code-block-IT6T5CEO-CY4ZkvyN.js +154 -0
  126. package/dist/core-dist/assets/codeowners-Bp6g37R7.js +1 -0
  127. package/dist/core-dist/assets/codeql-DsOJ9woJ.js +1 -0
  128. package/dist/core-dist/assets/codicon-ngg6Pgfi.ttf +0 -0
  129. package/dist/core-dist/assets/coffee-Bd8akH9Z.js +1 -0
  130. package/dist/core-dist/assets/coffee-Ch7k5sss.js +1 -0
  131. package/dist/core-dist/assets/common-lisp-Cg-RD9OK.js +1 -0
  132. package/dist/core-dist/assets/coq-DkFqJrB1.js +1 -0
  133. package/dist/core-dist/assets/cose-bilkent-S5V4N54A-Dj3H49oa.js +1 -0
  134. package/dist/core-dist/assets/cpp-BbWJElDN.js +1 -0
  135. package/dist/core-dist/assets/cpp-CofmeUqb.js +1 -0
  136. package/dist/core-dist/assets/crystal-tKQVLTB8.js +1 -0
  137. package/dist/core-dist/assets/csharp-Co3qMtFm.js +1 -0
  138. package/dist/core-dist/assets/csharp-K5feNrxe.js +1 -0
  139. package/dist/core-dist/assets/csp-D-4FJmMZ.js +1 -0
  140. package/dist/core-dist/assets/css-DPfMkruS.js +1 -0
  141. package/dist/core-dist/assets/css-DdJfP1eB.js +3 -0
  142. package/dist/core-dist/assets/css.worker-DBVD8oXr.js +93 -0
  143. package/dist/core-dist/assets/cssMode-CF1T5vEU.js +1 -0
  144. package/dist/core-dist/assets/csv-fuZLfV_i.js +1 -0
  145. package/dist/core-dist/assets/cue-D82EKSYY.js +1 -0
  146. package/dist/core-dist/assets/cypher-COkxafJQ.js +1 -0
  147. package/dist/core-dist/assets/cypher-cTPe9QuQ.js +1 -0
  148. package/dist/core-dist/assets/cytoscape.esm-5J0xJHOV.js +321 -0
  149. package/dist/core-dist/assets/d-85-TOEBH.js +1 -0
  150. package/dist/core-dist/assets/dagre-6UL2VRFP-Cly5tuXN.js +4 -0
  151. package/dist/core-dist/assets/dark-plus-C3mMm8J8.js +1 -0
  152. package/dist/core-dist/assets/dart-BOtBlQCF.js +1 -0
  153. package/dist/core-dist/assets/dart-CF10PKvl.js +1 -0
  154. package/dist/core-dist/assets/dax-CEL-wOlO.js +1 -0
  155. package/dist/core-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  156. package/dist/core-dist/assets/desktop-BmXAJ9_W.js +1 -0
  157. package/dist/core-dist/assets/diagram-PSM6KHXK-DL2Q8K3B.js +24 -0
  158. package/dist/core-dist/assets/diagram-QEK2KX5R-DizZ-655.js +43 -0
  159. package/dist/core-dist/assets/diagram-S2PKOQOG-BzPXNCcq.js +24 -0
  160. package/dist/core-dist/assets/diff-D97Zzqfu.js +1 -0
  161. package/dist/core-dist/assets/docker-BcOcwvcX.js +1 -0
  162. package/dist/core-dist/assets/dockerfile-BG73LgW2.js +1 -0
  163. package/dist/core-dist/assets/dotenv-Da5cRb03.js +1 -0
  164. package/dist/core-dist/assets/dracula-BzJJZx-M.js +1 -0
  165. package/dist/core-dist/assets/dracula-soft-BXkSAIEj.js +1 -0
  166. package/dist/core-dist/assets/dream-maker-BtqSS_iP.js +1 -0
  167. package/dist/core-dist/assets/ecl-BEgZUVRK.js +1 -0
  168. package/dist/core-dist/assets/edge-BkV0erSs.js +1 -0
  169. package/dist/core-dist/assets/elixir-BkW5O-1t.js +1 -0
  170. package/dist/core-dist/assets/elixir-CDX3lj18.js +1 -0
  171. package/dist/core-dist/assets/elm-DbKCFpqz.js +1 -0
  172. package/dist/core-dist/assets/emacs-lisp-C9XAeP06.js +1 -0
  173. package/dist/core-dist/assets/erDiagram-Q2GNP2WA-BofISlfK.js +60 -0
  174. package/dist/core-dist/assets/erb-BOJIQeun.js +1 -0
  175. package/dist/core-dist/assets/erlang-DsQrWhSR.js +1 -0
  176. package/dist/core-dist/assets/everforest-dark-BgDCqdQA.js +1 -0
  177. package/dist/core-dist/assets/everforest-light-C8M2exoo.js +1 -0
  178. package/dist/core-dist/assets/fennel-BYunw83y.js +1 -0
  179. package/dist/core-dist/assets/fish-BvzEVeQv.js +1 -0
  180. package/dist/core-dist/assets/flow9-BeJ5waoc.js +1 -0
  181. package/dist/core-dist/assets/flowDiagram-NV44I4VS-CraoKtH-.js +162 -0
  182. package/dist/core-dist/assets/fluent-C4IJs8-o.js +1 -0
  183. package/dist/core-dist/assets/format-cell-value-BZxeFaA8.js +7 -0
  184. package/dist/core-dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  185. package/dist/core-dist/assets/fortran-free-form-BxgE0vQu.js +1 -0
  186. package/dist/core-dist/assets/freemarker2-BIvjYnfp.js +3 -0
  187. package/dist/core-dist/assets/fsharp-CXgrBDvD.js +1 -0
  188. package/dist/core-dist/assets/fsharp-PahG7c26.js +1 -0
  189. package/dist/core-dist/assets/ganttDiagram-JELNMOA3-BRvyb8VW.js +267 -0
  190. package/dist/core-dist/assets/gdresource-B7Tvp0Sc.js +1 -0
  191. package/dist/core-dist/assets/gdscript-DTMYz4Jt.js +1 -0
  192. package/dist/core-dist/assets/gdshader-DkwncUOv.js +1 -0
  193. package/dist/core-dist/assets/genie-D0YGMca9.js +1 -0
  194. package/dist/core-dist/assets/gherkin-DyxjwDmM.js +1 -0
  195. package/dist/core-dist/assets/git-commit-F4YmCXRG.js +1 -0
  196. package/dist/core-dist/assets/git-rebase-r7XF79zn.js +1 -0
  197. package/dist/core-dist/assets/gitGraph-F6HP7TQM-XNCl7HYP.js +1 -0
  198. package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-DKWRoQuV.js +65 -0
  199. package/dist/core-dist/assets/github-dark-DHJKELXO.js +1 -0
  200. package/dist/core-dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
  201. package/dist/core-dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  202. package/dist/core-dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  203. package/dist/core-dist/assets/github-light-DAi9KRSo.js +1 -0
  204. package/dist/core-dist/assets/github-light-default-D7oLnXFd.js +1 -0
  205. package/dist/core-dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  206. package/dist/core-dist/assets/gleam-BspZqrRM.js +1 -0
  207. package/dist/core-dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
  208. package/dist/core-dist/assets/glimmer-ts-U6CK756n.js +1 -0
  209. package/dist/core-dist/assets/glsl-DplSGwfg.js +1 -0
  210. package/dist/core-dist/assets/gn-n2N0HUVH.js +1 -0
  211. package/dist/core-dist/assets/gnuplot-DdkO51Og.js +1 -0
  212. package/dist/core-dist/assets/go-Dn2_MT6a.js +1 -0
  213. package/dist/core-dist/assets/go-acbASCJo.js +1 -0
  214. package/dist/core-dist/assets/graph-CiH4Elhg.js +1 -0
  215. package/dist/core-dist/assets/graphql-BxJiqAUM.js +1 -0
  216. package/dist/core-dist/assets/graphql-ChdNCCLP.js +1 -0
  217. package/dist/core-dist/assets/groovy-gcz8RCvz.js +1 -0
  218. package/dist/core-dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  219. package/dist/core-dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  220. package/dist/core-dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  221. package/dist/core-dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  222. package/dist/core-dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  223. package/dist/core-dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  224. package/dist/core-dist/assets/hack-CaT9iCJl.js +1 -0
  225. package/dist/core-dist/assets/haml-B8DHNrY2.js +1 -0
  226. package/dist/core-dist/assets/handlebars-BL8al0AC.js +1 -0
  227. package/dist/core-dist/assets/handlebars-CK7lLchY.js +1 -0
  228. package/dist/core-dist/assets/haskell-Df6bDoY_.js +1 -0
  229. package/dist/core-dist/assets/haxe-CzTSHFRz.js +1 -0
  230. package/dist/core-dist/assets/hcl-BWvSN4gD.js +1 -0
  231. package/dist/core-dist/assets/hcl-DtV1sZF8.js +1 -0
  232. package/dist/core-dist/assets/hjson-D5-asLiD.js +1 -0
  233. package/dist/core-dist/assets/hlsl-D3lLCCz7.js +1 -0
  234. package/dist/core-dist/assets/houston-DnULxvSX.js +1 -0
  235. package/dist/core-dist/assets/html-D4oGQ6da.js +1 -0
  236. package/dist/core-dist/assets/html-GMplVEZG.js +1 -0
  237. package/dist/core-dist/assets/html-derivative-BFtXZ54Q.js +1 -0
  238. package/dist/core-dist/assets/html.worker-CwpTb9lJ.js +470 -0
  239. package/dist/core-dist/assets/htmlMode-UdBCLKNC.js +1 -0
  240. package/dist/core-dist/assets/http-jrhK8wxY.js +1 -0
  241. package/dist/core-dist/assets/hurl-irOxFIW8.js +1 -0
  242. package/dist/core-dist/assets/hxml-Bvhsp5Yf.js +1 -0
  243. package/dist/core-dist/assets/hy-DFXneXwc.js +1 -0
  244. package/dist/core-dist/assets/imba-DGztddWO.js +1 -0
  245. package/dist/core-dist/assets/index-BGJonb8r.js +1 -0
  246. package/dist/core-dist/assets/index-BTbtGsf1.js +1 -0
  247. package/dist/core-dist/assets/index-C1hGVAGZ.css +1 -0
  248. package/dist/core-dist/assets/index-DT0YxcHG.js +1 -0
  249. package/dist/core-dist/assets/index-D_Jinmad.js +93 -0
  250. package/dist/core-dist/assets/index-VbLkqC9g.js +1 -0
  251. package/dist/core-dist/assets/indexes-DUg8pguA.js +1 -0
  252. package/dist/core-dist/assets/info-NVLQJR56-C0BKzANU.js +1 -0
  253. package/dist/core-dist/assets/infoDiagram-WHAUD3N6-CJI0qAk5.js +2 -0
  254. package/dist/core-dist/assets/ini-BEwlwnbL.js +1 -0
  255. package/dist/core-dist/assets/ini-Kd9XrMLS.js +1 -0
  256. package/dist/core-dist/assets/init-Gi6I4Gst.js +1 -0
  257. package/dist/core-dist/assets/java-CXBNlu9o.js +1 -0
  258. package/dist/core-dist/assets/java-CylS5w8V.js +1 -0
  259. package/dist/core-dist/assets/javascript-DVJFYsQU.js +1 -0
  260. package/dist/core-dist/assets/javascript-wDzz0qaB.js +1 -0
  261. package/dist/core-dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  262. package/dist/core-dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  263. package/dist/core-dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  264. package/dist/core-dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  265. package/dist/core-dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  266. package/dist/core-dist/assets/jinja-4LBKfQ-Z.js +1 -0
  267. package/dist/core-dist/assets/jison-wvAkD_A8.js +1 -0
  268. package/dist/core-dist/assets/journeyDiagram-XKPGCS4Q-CbUo2D0u.js +139 -0
  269. package/dist/core-dist/assets/json-Cp-IABpG.js +1 -0
  270. package/dist/core-dist/assets/json.worker-BoL8UZqY.js +58 -0
  271. package/dist/core-dist/assets/json5-C9tS-k6U.js +1 -0
  272. package/dist/core-dist/assets/jsonMode-BxHkXShz.js +7 -0
  273. package/dist/core-dist/assets/jsonc-Des-eS-w.js +1 -0
  274. package/dist/core-dist/assets/jsonl-DcaNXYhu.js +1 -0
  275. package/dist/core-dist/assets/jsonnet-DFQXde-d.js +1 -0
  276. package/dist/core-dist/assets/jssm-C2t-YnRu.js +1 -0
  277. package/dist/core-dist/assets/jsx-g9-lgVsj.js +1 -0
  278. package/dist/core-dist/assets/julia-CxzCAyBv.js +1 -0
  279. package/dist/core-dist/assets/julia-cl7-CwDS.js +1 -0
  280. package/dist/core-dist/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  281. package/dist/core-dist/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  282. package/dist/core-dist/assets/kanagawa-wave-DWedfzmr.js +1 -0
  283. package/dist/core-dist/assets/kanban-definition-3W4ZIXB7-BI8V_-kx.js +89 -0
  284. package/dist/core-dist/assets/katex-DvXFAOB1.css +1 -0
  285. package/dist/core-dist/assets/kdl-DV7GczEv.js +1 -0
  286. package/dist/core-dist/assets/kotlin-BdnUsdx6.js +1 -0
  287. package/dist/core-dist/assets/kotlin-s7OhZKlX.js +1 -0
  288. package/dist/core-dist/assets/kusto-DZf3V79B.js +1 -0
  289. package/dist/core-dist/assets/laserwave-DUszq2jm.js +1 -0
  290. package/dist/core-dist/assets/latex-B4uzh10-.js +1 -0
  291. package/dist/core-dist/assets/layout-BwolAo18.js +1 -0
  292. package/dist/core-dist/assets/lean-BZvkOJ9d.js +1 -0
  293. package/dist/core-dist/assets/less-9HpZscsL.js +2 -0
  294. package/dist/core-dist/assets/less-B1dDrJ26.js +1 -0
  295. package/dist/core-dist/assets/lexon-OrD6JF1K.js +1 -0
  296. package/dist/core-dist/assets/light-plus-B7mTdjB0.js +1 -0
  297. package/dist/core-dist/assets/linear-DmRzTBeT.js +1 -0
  298. package/dist/core-dist/assets/liquid-C5m2c79-.js +1 -0
  299. package/dist/core-dist/assets/liquid-DYVedYrR.js +1 -0
  300. package/dist/core-dist/assets/llvm-BtvRca6l.js +1 -0
  301. package/dist/core-dist/assets/log-2UxHyX5q.js +1 -0
  302. package/dist/core-dist/assets/logo-BtOb2qkB.js +1 -0
  303. package/dist/core-dist/assets/logs-DvzMaNSj.js +1 -0
  304. package/dist/core-dist/assets/lspLanguageFeatures-Bi1yNEJU.js +4 -0
  305. package/dist/core-dist/assets/lua-BbnMAYS6.js +1 -0
  306. package/dist/core-dist/assets/lua-Cyyb5UIc.js +1 -0
  307. package/dist/core-dist/assets/luau-C-HG3fhB.js +1 -0
  308. package/dist/core-dist/assets/m3-B8OfTtLu.js +1 -0
  309. package/dist/core-dist/assets/make-CHLpvVh8.js +1 -0
  310. package/dist/core-dist/assets/markdown-BFxVWTOG.js +1 -0
  311. package/dist/core-dist/assets/markdown-Cvjx9yec.js +1 -0
  312. package/dist/core-dist/assets/marko-DZsq8hO1.js +1 -0
  313. package/dist/core-dist/assets/material-theme-D5KoaKCx.js +1 -0
  314. package/dist/core-dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
  315. package/dist/core-dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  316. package/dist/core-dist/assets/material-theme-ocean-CyktbL80.js +1 -0
  317. package/dist/core-dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  318. package/dist/core-dist/assets/matlab-D7o27uSR.js +1 -0
  319. package/dist/core-dist/assets/mdc-DUICxH0z.js +1 -0
  320. package/dist/core-dist/assets/mdx-Cmh6b_Ma.js +1 -0
  321. package/dist/core-dist/assets/mdx-DIQtb_gN.js +1 -0
  322. package/dist/core-dist/assets/mermaid-VLURNSYL-BwQZ3L24.js +1 -0
  323. package/dist/core-dist/assets/mermaid-mWjccvbQ.js +1 -0
  324. package/dist/core-dist/assets/mermaid-parser.core-GpQo11SQ.js +129 -0
  325. package/dist/core-dist/assets/mermaid.core-BmMdWyIh.js +191 -0
  326. package/dist/core-dist/assets/min-CBpbEBoX.js +1 -0
  327. package/dist/core-dist/assets/min-dark-CafNBF8u.js +1 -0
  328. package/dist/core-dist/assets/min-light-CTRr51gU.js +1 -0
  329. package/dist/core-dist/assets/mindmap-definition-VGOIOE7T-B5j249CZ.js +68 -0
  330. package/dist/core-dist/assets/mips-CiqrrVzr.js +1 -0
  331. package/dist/core-dist/assets/mipsasm-CKIfxQSi.js +1 -0
  332. package/dist/core-dist/assets/mojo-B93PlW-d.js +1 -0
  333. package/dist/core-dist/assets/monokai-D4h5O-jR.js +1 -0
  334. package/dist/core-dist/assets/moonbit-Ba13S78F.js +1 -0
  335. package/dist/core-dist/assets/move-Bu9oaDYs.js +1 -0
  336. package/dist/core-dist/assets/msdax-DmeGPVcC.js +1 -0
  337. package/dist/core-dist/assets/mysql-C_tMU-Nz.js +1 -0
  338. package/dist/core-dist/assets/narrat-DRg8JJMk.js +1 -0
  339. package/dist/core-dist/assets/nextflow-BrzmwbiE.js +1 -0
  340. package/dist/core-dist/assets/nginx-DknmC5AR.js +1 -0
  341. package/dist/core-dist/assets/night-owl-C39BiMTA.js +1 -0
  342. package/dist/core-dist/assets/nim-CVrawwO9.js +1 -0
  343. package/dist/core-dist/assets/nix-CwoSXNpI.js +1 -0
  344. package/dist/core-dist/assets/nord-Ddv68eIx.js +1 -0
  345. package/dist/core-dist/assets/nushell-C-sUppwS.js +1 -0
  346. package/dist/core-dist/assets/objective-c-BDtDVThU.js +1 -0
  347. package/dist/core-dist/assets/objective-c-DXmwc3jG.js +1 -0
  348. package/dist/core-dist/assets/objective-cpp-CLxacb5B.js +1 -0
  349. package/dist/core-dist/assets/ocaml-C0hk2d4L.js +1 -0
  350. package/dist/core-dist/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  351. package/dist/core-dist/assets/one-light-PoHY5YXO.js +1 -0
  352. package/dist/core-dist/assets/openscad-C4EeE6gA.js +1 -0
  353. package/dist/core-dist/assets/ordinal-BENe2yWM.js +1 -0
  354. package/dist/core-dist/assets/packet-BFZMPI3H-B3dLa20l.js +1 -0
  355. package/dist/core-dist/assets/pascal-D93ZcfNL.js +1 -0
  356. package/dist/core-dist/assets/pascal-vHIfCaH5.js +1 -0
  357. package/dist/core-dist/assets/pascaligo-DtZ0uQbO.js +1 -0
  358. package/dist/core-dist/assets/perl-C0TMdlhV.js +1 -0
  359. package/dist/core-dist/assets/perl-Ub6l9XKa.js +1 -0
  360. package/dist/core-dist/assets/pgsql-BlNEE0v7.js +1 -0
  361. package/dist/core-dist/assets/php-BBUBE1dy.js +1 -0
  362. package/dist/core-dist/assets/php-CDn_0X-4.js +1 -0
  363. package/dist/core-dist/assets/pie-7BOR55EZ-SduROXgQ.js +1 -0
  364. package/dist/core-dist/assets/pieDiagram-ADFJNKIX-DWDcg6KO.js +30 -0
  365. package/dist/core-dist/assets/pkl-u5AG7uiY.js +1 -0
  366. package/dist/core-dist/assets/pla-DSh2-awV.js +1 -0
  367. package/dist/core-dist/assets/plastic-3e1v2bzS.js +1 -0
  368. package/dist/core-dist/assets/plsql-ChMvpjG-.js +1 -0
  369. package/dist/core-dist/assets/po-BTJTHyun.js +1 -0
  370. package/dist/core-dist/assets/poimandres-CS3Unz2-.js +1 -0
  371. package/dist/core-dist/assets/polar-C0HS_06l.js +1 -0
  372. package/dist/core-dist/assets/postcss-CXtECtnM.js +1 -0
  373. package/dist/core-dist/assets/postiats-CocnycG-.js +1 -0
  374. package/dist/core-dist/assets/powerquery-CEu0bR-o.js +1 -0
  375. package/dist/core-dist/assets/powerquery-tScXyioY.js +1 -0
  376. package/dist/core-dist/assets/powershell-COWaemsV.js +1 -0
  377. package/dist/core-dist/assets/powershell-Dpen1YoG.js +1 -0
  378. package/dist/core-dist/assets/prisma-Dd19v3D-.js +1 -0
  379. package/dist/core-dist/assets/prolog-CbFg5uaA.js +1 -0
  380. package/dist/core-dist/assets/proto-C7zT0LnQ.js +1 -0
  381. package/dist/core-dist/assets/protobuf-Brw8urJB.js +2 -0
  382. package/dist/core-dist/assets/pug-8SOpv6rk.js +1 -0
  383. package/dist/core-dist/assets/pug-CGlum2m_.js +1 -0
  384. package/dist/core-dist/assets/puppet-BMWR74SV.js +1 -0
  385. package/dist/core-dist/assets/purescript-CklMAg4u.js +1 -0
  386. package/dist/core-dist/assets/python-B6aJPvgy.js +1 -0
  387. package/dist/core-dist/assets/python-DsM0goT4.js +1 -0
  388. package/dist/core-dist/assets/qml-3beO22l8.js +1 -0
  389. package/dist/core-dist/assets/qmldir-C8lEn-DE.js +1 -0
  390. package/dist/core-dist/assets/qsharp-Bw9ernYp.js +1 -0
  391. package/dist/core-dist/assets/qss-IeuSbFQv.js +1 -0
  392. package/dist/core-dist/assets/quadrantDiagram-AYHSOK5B-XoLRHaBF.js +7 -0
  393. package/dist/core-dist/assets/queries.store-DO7682hm.js +1 -0
  394. package/dist/core-dist/assets/r-Dspwwk_N.js +1 -0
  395. package/dist/core-dist/assets/r-j7ic8hl3.js +1 -0
  396. package/dist/core-dist/assets/racket-BqYA7rlc.js +1 -0
  397. package/dist/core-dist/assets/radar-NHE76QYJ-BUhlCoHu.js +1 -0
  398. package/dist/core-dist/assets/raku-DXvB9xmW.js +1 -0
  399. package/dist/core-dist/assets/razor-C1TweQQi.js +1 -0
  400. package/dist/core-dist/assets/razor-CzWHKXwU.js +1 -0
  401. package/dist/core-dist/assets/red-bN70gL4F.js +1 -0
  402. package/dist/core-dist/assets/redis-Bu5POkcn.js +1 -0
  403. package/dist/core-dist/assets/redshift-Bs9aos_-.js +1 -0
  404. package/dist/core-dist/assets/reg-C-SQnVFl.js +1 -0
  405. package/dist/core-dist/assets/regexp-CDVJQ6XC.js +1 -0
  406. package/dist/core-dist/assets/rel-C3B-1QV4.js +1 -0
  407. package/dist/core-dist/assets/requirementDiagram-UZGBJVZJ-DY4QxjKx.js +64 -0
  408. package/dist/core-dist/assets/restructuredtext-CqXO7rUv.js +1 -0
  409. package/dist/core-dist/assets/riscv-BM1_JUlF.js +1 -0
  410. package/dist/core-dist/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  411. package/dist/core-dist/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  412. package/dist/core-dist/assets/rose-pine-qdsjHGoJ.js +1 -0
  413. package/dist/core-dist/assets/rosmsg-BJDFO7_C.js +1 -0
  414. package/dist/core-dist/assets/rst-B0xPkSld.js +1 -0
  415. package/dist/core-dist/assets/ruby-BvKwtOVI.js +1 -0
  416. package/dist/core-dist/assets/ruby-zBfavPgS.js +1 -0
  417. package/dist/core-dist/assets/runner-tab-D0elRWLb.js +915 -0
  418. package/dist/core-dist/assets/runner-tab-Dvl_Svmm.css +1 -0
  419. package/dist/core-dist/assets/rust-B1yitclQ.js +1 -0
  420. package/dist/core-dist/assets/rust-BzKRNQWT.js +1 -0
  421. package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-C4xfe9wH.js +10 -0
  422. package/dist/core-dist/assets/sas-cz2c8ADy.js +1 -0
  423. package/dist/core-dist/assets/sass-Cj5Yp3dK.js +1 -0
  424. package/dist/core-dist/assets/sb-BBc9UKZt.js +1 -0
  425. package/dist/core-dist/assets/scala-C151Ov-r.js +1 -0
  426. package/dist/core-dist/assets/scala-D9hQfWCl.js +1 -0
  427. package/dist/core-dist/assets/schema-BII6kTqY.js +1 -0
  428. package/dist/core-dist/assets/scheme-BPhDTwHR.js +1 -0
  429. package/dist/core-dist/assets/scheme-C98Dy4si.js +1 -0
  430. package/dist/core-dist/assets/scss-CBJaRo0y.js +3 -0
  431. package/dist/core-dist/assets/scss-OYdSNvt2.js +1 -0
  432. package/dist/core-dist/assets/sdbl-DVxCFoDh.js +1 -0
  433. package/dist/core-dist/assets/sequenceDiagram-WL72ISMW-DWhVOvUA.js +145 -0
  434. package/dist/core-dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
  435. package/dist/core-dist/assets/shell-DiJ1NA_G.js +1 -0
  436. package/dist/core-dist/assets/shellscript-Yzrsuije.js +1 -0
  437. package/dist/core-dist/assets/shellsession-BADoaaVG.js +1 -0
  438. package/dist/core-dist/assets/slack-dark-BthQWCQV.js +1 -0
  439. package/dist/core-dist/assets/slack-ochin-DqwNpetd.js +1 -0
  440. package/dist/core-dist/assets/smalltalk-BERRCDM3.js +1 -0
  441. package/dist/core-dist/assets/snazzy-light-Bw305WKR.js +1 -0
  442. package/dist/core-dist/assets/solarized-dark-DXbdFlpD.js +1 -0
  443. package/dist/core-dist/assets/solarized-light-L9t79GZl.js +1 -0
  444. package/dist/core-dist/assets/solidity-Db0IVjzk.js +1 -0
  445. package/dist/core-dist/assets/solidity-rGO070M0.js +1 -0
  446. package/dist/core-dist/assets/sophia-CnS9iZB_.js +1 -0
  447. package/dist/core-dist/assets/soy-Brmx7dQM.js +1 -0
  448. package/dist/core-dist/assets/sparql-CJmd_6j2.js +1 -0
  449. package/dist/core-dist/assets/sparql-rVzFXLq3.js +1 -0
  450. package/dist/core-dist/assets/spinner-MM9EZ74I.js +1 -0
  451. package/dist/core-dist/assets/splunk-BtCnVYZw.js +1 -0
  452. package/dist/core-dist/assets/sql-BLtJtn59.js +1 -0
  453. package/dist/core-dist/assets/sql-ClhHkBeG.js +1 -0
  454. package/dist/core-dist/assets/ssh-config-_ykCGR6B.js +1 -0
  455. package/dist/core-dist/assets/st-CHwy0fLd.js +1 -0
  456. package/dist/core-dist/assets/stata-BH5u7GGu.js +1 -0
  457. package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-B70Aswf4.js +1 -0
  458. package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-Dc-RHAld.js +1 -0
  459. package/dist/core-dist/assets/stylus-BEDo0Tqx.js +1 -0
  460. package/dist/core-dist/assets/svelte-zxCyuUbr.js +1 -0
  461. package/dist/core-dist/assets/swift-CnmFD0ga.js +1 -0
  462. package/dist/core-dist/assets/swift-Dg5xB15N.js +1 -0
  463. package/dist/core-dist/assets/synthwave-84-CbfX1IO0.js +1 -0
  464. package/dist/core-dist/assets/system-verilog-CnnmHF94.js +1 -0
  465. package/dist/core-dist/assets/systemd-4A_iFExJ.js +1 -0
  466. package/dist/core-dist/assets/systemverilog-Bs9z6M-B.js +1 -0
  467. package/dist/core-dist/assets/talonscript-CkByrt1z.js +1 -0
  468. package/dist/core-dist/assets/tasl-QIJgUcNo.js +1 -0
  469. package/dist/core-dist/assets/tcl-Dm6ycUr_.js +1 -0
  470. package/dist/core-dist/assets/tcl-dwOrl1Do.js +1 -0
  471. package/dist/core-dist/assets/templ-W15q3VgB.js +1 -0
  472. package/dist/core-dist/assets/terraform-BETggiCN.js +1 -0
  473. package/dist/core-dist/assets/tex-CvyZ59Mk.js +1 -0
  474. package/dist/core-dist/assets/timeline-definition-IT6M3QCI-CjREf6gn.js +61 -0
  475. package/dist/core-dist/assets/tokyo-night-hegEt444.js +1 -0
  476. package/dist/core-dist/assets/toml-vGWfd6FD.js +1 -0
  477. package/dist/core-dist/assets/treemap-KMMF4GRG-Bbfo1cUw.js +1 -0
  478. package/dist/core-dist/assets/ts-tags-zn1MmPIZ.js +1 -0
  479. package/dist/core-dist/assets/ts.worker-BH9nVgjN.js +67718 -0
  480. package/dist/core-dist/assets/tsMode-womOZTe5.js +11 -0
  481. package/dist/core-dist/assets/tsv-B_m7g4N7.js +1 -0
  482. package/dist/core-dist/assets/tsx-COt5Ahok.js +1 -0
  483. package/dist/core-dist/assets/turtle-BsS91CYL.js +1 -0
  484. package/dist/core-dist/assets/twig-CO9l9SDP.js +1 -0
  485. package/dist/core-dist/assets/twig-Csy3S7wG.js +1 -0
  486. package/dist/core-dist/assets/typescript-BPQ3VLAy.js +1 -0
  487. package/dist/core-dist/assets/typescript-ClkwQ9Fj.js +1 -0
  488. package/dist/core-dist/assets/typespec-BGHnOYBU.js +1 -0
  489. package/dist/core-dist/assets/typespec-Btyra-wh.js +1 -0
  490. package/dist/core-dist/assets/typst-DHCkPAjA.js +1 -0
  491. package/dist/core-dist/assets/v-BcVCzyr7.js +1 -0
  492. package/dist/core-dist/assets/vala-CsfeWuGM.js +1 -0
  493. package/dist/core-dist/assets/vb-D17OF-Vu.js +1 -0
  494. package/dist/core-dist/assets/vb-Db0cS2oM.js +1 -0
  495. package/dist/core-dist/assets/verilog-BQ8w6xss.js +1 -0
  496. package/dist/core-dist/assets/vesper-DU1UobuO.js +1 -0
  497. package/dist/core-dist/assets/vhdl-CeAyd5Ju.js +1 -0
  498. package/dist/core-dist/assets/viml-CJc9bBzg.js +1 -0
  499. package/dist/core-dist/assets/visualizer-BTAd--C0.js +1 -0
  500. package/dist/core-dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
  501. package/dist/core-dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
  502. package/dist/core-dist/assets/vitesse-light-CVO1_9PV.js +1 -0
  503. package/dist/core-dist/assets/vue-DN_0RTcg.js +1 -0
  504. package/dist/core-dist/assets/vue-html-AaS7Mt5G.js +1 -0
  505. package/dist/core-dist/assets/vue-vine-CQOfvN7w.js +1 -0
  506. package/dist/core-dist/assets/vyper-CDx5xZoG.js +1 -0
  507. package/dist/core-dist/assets/wasm-CG6Dc4jp.js +1 -0
  508. package/dist/core-dist/assets/wasm-MzD3tlZU.js +1 -0
  509. package/dist/core-dist/assets/wenyan-BV7otONQ.js +1 -0
  510. package/dist/core-dist/assets/wgsl-BTesnYfV.js +298 -0
  511. package/dist/core-dist/assets/wgsl-Dx-B1_4e.js +1 -0
  512. package/dist/core-dist/assets/wikitext-BhOHFoWU.js +1 -0
  513. package/dist/core-dist/assets/wit-5i3qLPDT.js +1 -0
  514. package/dist/core-dist/assets/wolfram-lXgVvXCa.js +1 -0
  515. package/dist/core-dist/assets/xml-BIMxtbHt.js +1 -0
  516. package/dist/core-dist/assets/xml-sdJ4AIDG.js +1 -0
  517. package/dist/core-dist/assets/xsl-CtQFsRM5.js +1 -0
  518. package/dist/core-dist/assets/xychartDiagram-PRI3JC2R-kLx_CqKx.js +7 -0
  519. package/dist/core-dist/assets/yaml-Buea-lGh.js +1 -0
  520. package/dist/core-dist/assets/yaml-DblqwOQB.js +1 -0
  521. package/dist/core-dist/assets/zenscript-DVFEvuxE.js +1 -0
  522. package/dist/core-dist/assets/zig-VOosw3JB.js +1 -0
  523. package/dist/core-dist/image.png +0 -0
  524. package/dist/core-dist/index.html +14 -0
  525. package/dist/core-dist/vite.svg +1 -0
  526. package/dist/index.js +44 -44
  527. package/dist/index.js.map +1 -1
  528. package/package.json +2 -2
@@ -0,0 +1,129 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-NVLQJR56-C0BKzANU.js","assets/index-D_Jinmad.js","assets/index-C1hGVAGZ.css","assets/min-CBpbEBoX.js","assets/_baseUniq-CAv_sUq0.js","assets/mermaid.core-BmMdWyIh.js","assets/_pathlessLayout-CZkGDKr3.js","assets/queries.store-DO7682hm.js","assets/index-VbLkqC9g.js","assets/spinner-MM9EZ74I.js","assets/packet-BFZMPI3H-B3dLa20l.js","assets/pie-7BOR55EZ-SduROXgQ.js","assets/architecture-U656AL7Q-CG9_JmIP.js","assets/gitGraph-F6HP7TQM-XNCl7HYP.js","assets/radar-NHE76QYJ-BUhlCoHu.js","assets/treemap-KMMF4GRG-Bbfo1cUw.js"])))=>i.map(i=>d[i]);
2
+ import{_ as wt}from"./index-D_Jinmad.js";import{m as st,f as kd,d as Id}from"./min-CBpbEBoX.js";import{b as Cd,l as wd,d as Nd,m as _d,r as wo,n as Rs}from"./_baseUniq-CAv_sUq0.js";import{b7 as bd}from"./mermaid.core-BmMdWyIh.js";function Ld(t,e){return Cd(st(t,e))}function Od(t,e){return t&&t.length?wd(t,Nd(e)):[]}function le(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function ze(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"}function Pd(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function ai(t){return typeof t=="object"&&t!==null&&le(t.container)&&ze(t.reference)&&typeof t.message=="string"}class dc{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,n){return le(e)&&this.isSubtype(e.$type,n)}isSubtype(e,n){if(e===n)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[n];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,n);return r[n]=s,s}}getAllSubTypes(e){const n=this.allSubtypes[e];if(n)return n;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Tr(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function hc(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function pc(t){return Tr(t)&&typeof t.fullText=="string"}class ne{constructor(e,n){this.startFn=e,this.nextFn=n}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let n=0,r=e.next();for(;!r.done;)n++,r=e.next();return n}toArray(){const e=[],n=this.iterator();let r;do r=n.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,n){const r=this.map(i=>[e?e(i):i,n?n(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new ne(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),n=>{let r;if(!n.firstDone){do if(r=this.nextFn(n.first),!r.done)return r;while(!r.done);n.firstDone=!0}do if(r=n.iterator.next(),!r.done)return r;while(!r.done);return Ae})}join(e=","){const n=this.iterator();let r="",i,s=!1;do i=n.next(),i.done||(s&&(r+=e),r+=Md(i.value)),s=!0;while(!i.done);return r}indexOf(e,n=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=n&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(!e(r.value))return!1;r=n.next()}return!0}some(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return!0;r=n.next()}return!1}forEach(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;)e(i.value,r),i=n.next(),r++}map(e){return new ne(this.startFn,n=>{const{done:r,value:i}=this.nextFn(n);return r?Ae:{done:!1,value:e(i)}})}filter(e){return new ne(this.startFn,n=>{let r;do if(r=this.nextFn(n),!r.done&&e(r.value))return r;while(!r.done);return Ae})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,n){const r=this.iterator();let i=n,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,n){return this.recursiveReduce(this.iterator(),e,n)}recursiveReduce(e,n,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,n,r);return s===void 0?i.value:n(s,i.value)}find(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}}findIndex(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(e(i.value))return r;i=n.next(),r++}return-1}includes(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(r.value===e)return!0;r=n.next()}return!1}flatMap(e){return new ne(()=>({this:this.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(n.this);if(!r){const s=e(i);if(Ei(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(n.iterator);return Ae})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const n=e>1?this.flat(e-1):this;return new ne(()=>({this:n.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=n.nextFn(r.this);if(!i)if(Ei(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return Ae})}head(){const n=this.iterator().next();if(!n.done)return n.value}tail(e=1){return new ne(()=>{const n=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(n).done)return n;return n},this.nextFn)}limit(e){return new ne(()=>({size:0,state:this.startFn()}),n=>(n.size++,n.size>e?Ae:this.nextFn(n.state)))}distinct(e){return new ne(()=>({set:new Set,internalState:this.startFn()}),n=>{let r;do if(r=this.nextFn(n.internalState),!r.done){const i=e?e(r.value):r.value;if(!n.set.has(i))return n.set.add(i),r}while(!r.done);return Ae})}exclude(e,n){const r=new Set;for(const i of e){const s=n?n(i):i;r.add(s)}return this.filter(i=>{const s=n?n(i):i;return!r.has(s)})}}function Md(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function Ei(t){return!!t&&typeof t[Symbol.iterator]=="function"}const Dd=new ne(()=>{},()=>Ae),Ae=Object.freeze({done:!0,value:void 0});function re(...t){if(t.length===1){const e=t[0];if(e instanceof ne)return e;if(Ei(e))return new ne(()=>e[Symbol.iterator](),n=>n.next());if(typeof e.length=="number")return new ne(()=>({index:0}),n=>n.index<e.length?{done:!1,value:e[n.index++]}:Ae)}return t.length>1?new ne(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const n=e.iterator.next();if(!n.done)return n;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const n=t[e.collIndex++];Ei(n)?e.iterator=n[Symbol.iterator]():n&&typeof n.length=="number"&&(e.array=n)}}while(e.iterator||e.array||e.collIndex<t.length);return Ae}):Dd}class Fa extends ne{constructor(e,n,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[n(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(n(a.value)[Symbol.iterator]()),a}return Ae})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Zs;(function(t){function e(s){return s.reduce((a,o)=>a+o,0)}t.sum=e;function n(s){return s.reduce((a,o)=>a*o,0)}t.product=n;function r(s){return s.reduce((a,o)=>Math.min(a,o))}t.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}t.max=i})(Zs||(Zs={}));function Qs(t){return new Fa(t,e=>Tr(e)?e.content:[],{includeRoot:!0})}function Fd(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function ea(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function $i(t){if(!t)return;const{offset:e,end:n,range:r}=t;return{range:r,offset:e,end:n,length:n-e}}var rt;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(rt||(rt={}));function Gd(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return rt.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return rt.After;const n=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,r=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return n&&r?rt.Inside:n?rt.OverlapBack:r?rt.OverlapFront:rt.Outside}function Ud(t,e){return Gd(t,e)>rt.After}const Bd=/^[\w\p{L}]$/u;function jd(t,e){if(t){const n=Kd(t,!0);if(n&&No(n,e))return n;if(pc(t)){const r=t.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=t.content[i];if(No(s,e))return s}}}}function No(t,e){return hc(t)&&e.includes(t.tokenType.name)}function Kd(t,e=!0){for(;t.container;){const n=t.container;let r=n.content.indexOf(t);for(;r>0;){r--;const i=n.content[r];if(e||!i.hidden)return i}t=n}}class mc extends Error{constructor(e,n){super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}}function Sr(t){throw new Error("Error! The input value was not handled.")}const Dr="AbstractRule",Fr="AbstractType",As="Condition",_o="TypeDefinition",Es="ValueLiteral",On="AbstractElement";function Vd(t){return F.isInstance(t,On)}const Gr="ArrayLiteral",Ur="ArrayType",Pn="BooleanLiteral";function Hd(t){return F.isInstance(t,Pn)}const Mn="Conjunction";function Wd(t){return F.isInstance(t,Mn)}const Dn="Disjunction";function zd(t){return F.isInstance(t,Dn)}const Br="Grammar",$s="GrammarImport",Fn="InferredType";function gc(t){return F.isInstance(t,Fn)}const Gn="Interface";function yc(t){return F.isInstance(t,Gn)}const xs="NamedArgument",Un="Negation";function qd(t){return F.isInstance(t,Un)}const jr="NumberLiteral",Kr="Parameter",Bn="ParameterReference";function Yd(t){return F.isInstance(t,Bn)}const jn="ParserRule";function _e(t){return F.isInstance(t,jn)}const Vr="ReferenceType",oi="ReturnType";function Xd(t){return F.isInstance(t,oi)}const Kn="SimpleType";function Jd(t){return F.isInstance(t,Kn)}const Hr="StringLiteral",Yt="TerminalRule";function Ut(t){return F.isInstance(t,Yt)}const Vn="Type";function Tc(t){return F.isInstance(t,Vn)}const Ss="TypeAttribute",Wr="UnionType",Hn="Action";function zi(t){return F.isInstance(t,Hn)}const Wn="Alternatives";function vc(t){return F.isInstance(t,Wn)}const zn="Assignment";function Lt(t){return F.isInstance(t,zn)}const qn="CharacterRange";function Zd(t){return F.isInstance(t,qn)}const Yn="CrossReference";function Ga(t){return F.isInstance(t,Yn)}const Xn="EndOfFile";function Qd(t){return F.isInstance(t,Xn)}const Jn="Group";function Ua(t){return F.isInstance(t,Jn)}const Zn="Keyword";function Ot(t){return F.isInstance(t,Zn)}const Qn="NegatedToken";function eh(t){return F.isInstance(t,Qn)}const er="RegexToken";function th(t){return F.isInstance(t,er)}const tr="RuleCall";function Pt(t){return F.isInstance(t,tr)}const nr="TerminalAlternatives";function nh(t){return F.isInstance(t,nr)}const rr="TerminalGroup";function rh(t){return F.isInstance(t,rr)}const ir="TerminalRuleCall";function ih(t){return F.isInstance(t,ir)}const sr="UnorderedGroup";function Rc(t){return F.isInstance(t,sr)}const ar="UntilToken";function sh(t){return F.isInstance(t,ar)}const or="Wildcard";function ah(t){return F.isInstance(t,or)}class Ac extends dc{getAllTypes(){return[On,Dr,Fr,Hn,Wn,Gr,Ur,zn,Pn,qn,As,Mn,Yn,Dn,Xn,Br,$s,Jn,Fn,Gn,Zn,xs,Qn,Un,jr,Kr,Bn,jn,Vr,er,oi,tr,Kn,Hr,nr,rr,Yt,ir,Vn,Ss,_o,Wr,sr,ar,Es,or]}computeIsSubtype(e,n){switch(e){case Hn:case Wn:case zn:case qn:case Yn:case Xn:case Jn:case Zn:case Qn:case er:case tr:case nr:case rr:case ir:case sr:case ar:case or:return this.isSubtype(On,n);case Gr:case jr:case Hr:return this.isSubtype(Es,n);case Ur:case Vr:case Kn:case Wr:return this.isSubtype(_o,n);case Pn:return this.isSubtype(As,n)||this.isSubtype(Es,n);case Mn:case Dn:case Un:case Bn:return this.isSubtype(As,n);case Fn:case Gn:case Vn:return this.isSubtype(Fr,n);case jn:return this.isSubtype(Dr,n)||this.isSubtype(Fr,n);case Yt:return this.isSubtype(Dr,n);default:return!1}}getReferenceType(e){const n=`${e.container.$type}:${e.property}`;switch(n){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Fr;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Dr;case"Grammar:usedGrammars":return Br;case"NamedArgument:parameter":case"ParameterReference:parameter":return Kr;case"TerminalRuleCall:rule":return Yt;default:throw new Error(`${n} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case On:return{name:On,properties:[{name:"cardinality"},{name:"lookahead"}]};case Gr:return{name:Gr,properties:[{name:"elements",defaultValue:[]}]};case Ur:return{name:Ur,properties:[{name:"elementType"}]};case Pn:return{name:Pn,properties:[{name:"true",defaultValue:!1}]};case Mn:return{name:Mn,properties:[{name:"left"},{name:"right"}]};case Dn:return{name:Dn,properties:[{name:"left"},{name:"right"}]};case Br:return{name:Br,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case $s:return{name:$s,properties:[{name:"path"}]};case Fn:return{name:Fn,properties:[{name:"name"}]};case Gn:return{name:Gn,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case xs:return{name:xs,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case Un:return{name:Un,properties:[{name:"value"}]};case jr:return{name:jr,properties:[{name:"value"}]};case Kr:return{name:Kr,properties:[{name:"name"}]};case Bn:return{name:Bn,properties:[{name:"parameter"}]};case jn:return{name:jn,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case Vr:return{name:Vr,properties:[{name:"referenceType"}]};case oi:return{name:oi,properties:[{name:"name"}]};case Kn:return{name:Kn,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case Hr:return{name:Hr,properties:[{name:"value"}]};case Yt:return{name:Yt,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case Vn:return{name:Vn,properties:[{name:"name"},{name:"type"}]};case Ss:return{name:Ss,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case Wr:return{name:Wr,properties:[{name:"types",defaultValue:[]}]};case Hn:return{name:Hn,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case Wn:return{name:Wn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case zn:return{name:zn,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case qn:return{name:qn,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case Yn:return{name:Yn,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case Xn:return{name:Xn,properties:[{name:"cardinality"},{name:"lookahead"}]};case Jn:return{name:Jn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case Zn:return{name:Zn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case Qn:return{name:Qn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case er:return{name:er,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case tr:return{name:tr,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case nr:return{name:nr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case rr:return{name:rr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case ir:return{name:ir,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case sr:return{name:sr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case ar:return{name:ar,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case or:return{name:or,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const F=new Ac;function oh(t){for(const[e,n]of Object.entries(t))e.startsWith("$")||(Array.isArray(n)?n.forEach((r,i)=>{le(r)&&(r.$container=t,r.$containerProperty=e,r.$containerIndex=i)}):le(n)&&(n.$container=t,n.$containerProperty=e))}function qi(t,e){let n=t;for(;n;){if(e(n))return n;n=n.$container}}function pt(t){const n=ta(t).$document;if(!n)throw new Error("AST node has no document.");return n}function ta(t){for(;t.$container;)t=t.$container;return t}function Ba(t,e){if(!t)throw new Error("Node must be an AstNode.");const n=e?.range;return new ne(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=t[i];if(le(s)){if(r.keyIndex++,bo(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=r.arrayIndex++,o=s[a];if(le(o)&&bo(o,n))return{done:!1,value:o}}r.arrayIndex=0}}r.keyIndex++}return Ae})}function kr(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new Fa(t,n=>Ba(n,e))}function Jt(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new Fa(t,n=>Ba(n,e),{includeRoot:!0})}function bo(t,e){var n;if(!e)return!0;const r=(n=t.$cstNode)===null||n===void 0?void 0:n.range;return r?Ud(r,e):!1}function Ec(t){return new ne(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const n=e.keys[e.keyIndex];if(!n.startsWith("$")){const r=t[n];if(ze(r))return e.keyIndex++,{done:!1,value:{reference:r,container:t,property:n}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(ze(s))return{done:!1,value:{reference:s,container:t,property:n,index:i}}}e.arrayIndex=0}}e.keyIndex++}return Ae})}function lh(t,e){const n=t.getTypeMetaData(e.$type),r=e;for(const i of n.properties)i.defaultValue!==void 0&&r[i.name]===void 0&&(r[i.name]=$c(i.defaultValue))}function $c(t){return Array.isArray(t)?[...t.map($c)]:t}function N(t){return t.charCodeAt(0)}function ks(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function Nn(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function qt(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function uh(){throw Error("Internal Error - Should never get here!")}function Lo(t){return t.type==="Character"}const xi=[];for(let t=N("0");t<=N("9");t++)xi.push(t);const Si=[N("_")].concat(xi);for(let t=N("a");t<=N("z");t++)Si.push(t);for(let t=N("A");t<=N("Z");t++)Si.push(t);const Oo=[N(" "),N("\f"),N(`
3
+ `),N("\r"),N(" "),N("\v"),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N(" "),N("\u2028"),N("\u2029"),N(" "),N(" "),N(" "),N("\uFEFF")],ch=/[0-9a-fA-F]/,zr=/[0-9]/,fh=/[1-9]/;class xc{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 n=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":Nn(r,"global");break;case"i":Nn(r,"ignoreCase");break;case"m":Nn(r,"multiLine");break;case"u":Nn(r,"unicode");break;case"y":Nn(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:n,loc:this.loc(0)}}disjunction(){const e=[],n=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(n)}}alternative(){const e=[],n=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(n)}}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 n;switch(this.popChar()){case"=":n="Lookahead";break;case"!":n="NegativeLookahead";break}qt(n);const r=this.disjunction();return this.consumeChar(")"),{type:n,value:r,loc:this.loc(e)}}return uh()}quantifier(e=!1){let n;const r=this.idx;switch(this.popChar()){case"*":n={atLeast:0,atMost:1/0};break;case"+":n={atLeast:1,atMost:1/0};break;case"?":n={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":n={atLeast:i,atMost:i};break;case",":let s;this.isDigit()?(s=this.integerIncludingZero(),n={atLeast:i,atMost:s}):n={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&n===void 0)return;qt(n);break}if(!(e===!0&&n===void 0)&&qt(n))return this.peekChar(0)==="?"?(this.consumeChar("?"),n.greedy=!1):n.greedy=!0,n.type="Quantifier",n.loc=this.loc(r),n}atom(){let e;const n=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}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),qt(e))return e.loc=this.loc(n),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[N(`
4
+ `),N("\r"),N("\u2028"),N("\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,n=!1;switch(this.popChar()){case"d":e=xi;break;case"D":e=xi,n=!0;break;case"s":e=Oo;break;case"S":e=Oo,n=!0;break;case"w":e=Si;break;case"W":e=Si,n=!0;break}if(qt(e))return{type:"Set",value:e,complement:n}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=N("\f");break;case"n":e=N(`
5
+ `);break;case"r":e=N("\r");break;case"t":e=N(" ");break;case"v":e=N("\v");break}if(qt(e))return{type:"Character",value:e}}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:N("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:N(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
6
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:N(e)}}}characterClass(){const e=[];let n=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),n=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,Lo(r)&&this.isRangeDash()){this.consumeChar("-");const i=this.classAtom();if(i.type,Lo(i)){if(i.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:i.value})}else ks(r.value,e),e.push(N("-")),ks(i.value,e)}else ks(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:n,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
7
+ `: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:N("\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 n=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:e,value:n};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(fh.test(e)===!1)throw Error("Expecting a positive integer");for(;zr.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(zr.test(e)===!1)throw Error("Expecting an integer");for(;zr.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case`
8
+ `: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:N(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 zr.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
9
+ `: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)==="!");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`
10
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let n="";for(let i=0;i<e;i++){const s=this.popChar();if(ch.test(s)===!1)throw Error("Expecting a HexDecimal digits");n+=s}return{type:"Character",value:parseInt(n,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}}}class Yi{visitChildren(e){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(i=>{this.visit(i)},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"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){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}const dh=/\r?\n/gm,hh=new xc;class ph extends Yi{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 n=String.fromCharCode(e.value);if(!this.multiline&&n===`
11
+ `&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=Xi(n);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){const n=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(n);this.multiline=!!`
12
+ `.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const n=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}}const Is=new ph;function mh(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),Is.reset(t),Is.visit(hh.pattern(t)),Is.multiline}catch{return!1}}const gh=`\f
13
+ \r \v              \u2028\u2029   \uFEFF`.split("");function na(t){const e=typeof t=="string"?new RegExp(t):t;return gh.some(n=>e.test(n))}function Xi(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yh(t){return Array.prototype.map.call(t,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:Xi(e)).join("")}function Th(t,e){const n=vh(t),r=e.match(n);return!!r&&r[0].length>0}function vh(t){typeof t=="string"&&(t=new RegExp(t));const e=t,n=t.source;let r=0;function i(){let s="",a;function o(u){s+=n.substr(r,u),r+=u}function l(u){s+="(?:"+n.substr(r,u)+"|$)",r+=u}for(;r<n.length;)switch(n[r]){case"\\":switch(n[r+1]){case"c":l(3);break;case"x":l(4);break;case"u":e.unicode?n[r+2]==="{"?l(n.indexOf("}",r)-r+1):l(6):l(2);break;case"p":case"P":e.unicode?l(n.indexOf("}",r)-r+1):l(2);break;case"k":l(n.indexOf(">",r)-r+1);break;default:l(2);break}break;case"[":a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],l(a[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):l(1);break;case"(":if(n[r+1]==="?")switch(n[r+2]){case":":s+="(?:",r+=3,s+=i()+"|$)";break;case"=":s+="(?=",r+=3,s+=i()+")";break;case"!":a=r,r+=3,i(),s+=n.substr(a,r-a);break;case"<":switch(n[r+3]){case"=":case"!":a=r,r+=4,i(),s+=n.substr(a,r-a);break;default:o(n.indexOf(">",r)-r+1),s+=i()+"|$)";break}break}else o(1),s+=i()+"|$)";break;case")":return++r,s;default:l(1);break}return s}return new RegExp(i(),t.flags)}function Rh(t){return t.rules.find(e=>_e(e)&&e.entry)}function Ah(t){return t.rules.filter(e=>Ut(e)&&e.hidden)}function Sc(t,e){const n=new Set,r=Rh(t);if(!r)return new Set(t.rules);const i=[r].concat(Ah(t));for(const a of i)kc(a,n,e);const s=new Set;for(const a of t.rules)(n.has(a.name)||Ut(a)&&a.hidden)&&s.add(a);return s}function kc(t,e,n){e.add(t.name),kr(t).forEach(r=>{if(Pt(r)||n){const i=r.rule.ref;i&&!e.has(i.name)&&kc(i,e,n)}})}function Eh(t){if(t.terminal)return t.terminal;if(t.type.ref){const e=Cc(t.type.ref);return e?.terminal}}function $h(t){return t.hidden&&!na(Ha(t))}function xh(t,e){return!t||!e?[]:ja(t,e,t.astNode,!0)}function Ic(t,e,n){if(!t||!e)return;const r=ja(t,e,t.astNode,!0);if(r.length!==0)return n!==void 0?n=Math.max(0,Math.min(n,r.length-1)):n=0,r[n]}function ja(t,e,n,r){if(!r){const i=qi(t.grammarSource,Lt);if(i&&i.feature===e)return[t]}return Tr(t)&&t.astNode===n?t.content.flatMap(i=>ja(i,e,n,!1)):[]}function Sh(t,e,n){if(!t)return;const r=kh(t,e,t?.astNode);if(r.length!==0)return n!==void 0?n=Math.max(0,Math.min(n,r.length-1)):n=0,r[n]}function kh(t,e,n){if(t.astNode!==n)return[];if(Ot(t.grammarSource)&&t.grammarSource.value===e)return[t];const r=Qs(t).iterator();let i;const s=[];do if(i=r.next(),!i.done){const a=i.value;a.astNode===n?Ot(a.grammarSource)&&a.grammarSource.value===e&&s.push(a):r.prune()}while(!i.done);return s}function Ih(t){var e;const n=t.astNode;for(;n===((e=t.container)===null||e===void 0?void 0:e.astNode);){const r=qi(t.grammarSource,Lt);if(r)return r;t=t.container}}function Cc(t){let e=t;return gc(e)&&(zi(e.$container)?e=e.$container.$container:_e(e.$container)?e=e.$container:Sr(e.$container)),wc(t,e,new Map)}function wc(t,e,n){var r;function i(s,a){let o;return qi(s,Lt)||(o=wc(a,a,n)),n.set(t,o),o}if(n.has(t))return n.get(t);n.set(t,void 0);for(const s of kr(e)){if(Lt(s)&&s.feature.toLowerCase()==="name")return n.set(t,s),s;if(Pt(s)&&_e(s.rule.ref))return i(s,s.rule.ref);if(Jd(s)&&(!((r=s.typeRef)===null||r===void 0)&&r.ref))return i(s,s.typeRef.ref)}}function Nc(t){return _c(t,new Set)}function _c(t,e){if(e.has(t))return!0;e.add(t);for(const n of kr(t))if(Pt(n)){if(!n.rule.ref||_e(n.rule.ref)&&!_c(n.rule.ref,e))return!1}else{if(Lt(n))return!1;if(zi(n))return!1}return!!t.definition}function Ka(t){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){const e=t.returnType.ref;if(e){if(_e(e))return e.name;if(yc(e)||Tc(e))return e.name}}}function Va(t){var e;if(_e(t))return Nc(t)?t.name:(e=Ka(t))!==null&&e!==void 0?e:t.name;if(yc(t)||Tc(t)||Xd(t))return t.name;if(zi(t)){const n=Ch(t);if(n)return n}else if(gc(t))return t.name;throw new Error("Cannot get name of Unknown Type")}function Ch(t){var e;if(t.inferredType)return t.inferredType.name;if(!((e=t.type)===null||e===void 0)&&e.ref)return Va(t.type.ref)}function wh(t){var e,n,r;return Ut(t)?(n=(e=t.type)===null||e===void 0?void 0:e.name)!==null&&n!==void 0?n:"string":(r=Ka(t))!==null&&r!==void 0?r:t.name}function Ha(t){const e={s:!1,i:!1,u:!1},n=kn(t.definition,e),r=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(n,r)}const Wa=/[\s\S]/.source;function kn(t,e){if(nh(t))return Nh(t);if(rh(t))return _h(t);if(Zd(t))return Oh(t);if(ih(t)){const n=t.rule.ref;if(!n)throw new Error("Missing rule reference.");return at(kn(n.definition),{cardinality:t.cardinality,lookahead:t.lookahead})}else{if(eh(t))return Lh(t);if(sh(t))return bh(t);if(th(t)){const n=t.regex.lastIndexOf("/"),r=t.regex.substring(1,n),i=t.regex.substring(n+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),at(r,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}else{if(ah(t))return at(Wa,{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error(`Invalid terminal element: ${t?.$type}`)}}}function Nh(t){return at(t.elements.map(e=>kn(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead})}function _h(t){return at(t.elements.map(e=>kn(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead})}function bh(t){return at(`${Wa}*?${kn(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead})}function Lh(t){return at(`(?!${kn(t.terminal)})${Wa}*?`,{cardinality:t.cardinality,lookahead:t.lookahead})}function Oh(t){return t.right?at(`[${Cs(t.left)}-${Cs(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1}):at(Cs(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}function Cs(t){return Xi(t.value)}function at(t,e){var n;return(e.wrap!==!1||e.lookahead)&&(t=`(${(n=e.lookahead)!==null&&n!==void 0?n:""}${t})`),e.cardinality?`${t}${e.cardinality}`:t}function Ph(t){const e=[],n=t.Grammar;for(const r of n.rules)Ut(r)&&$h(r)&&mh(Ha(r))&&e.push(r.name);return{multilineCommentRules:e,nameRegexp:Bd}}var bc=typeof global=="object"&&global&&global.Object===Object&&global,Mh=typeof self=="object"&&self&&self.Object===Object&&self,Ye=bc||Mh||Function("return this")(),be=Ye.Symbol,Lc=Object.prototype,Dh=Lc.hasOwnProperty,Fh=Lc.toString,_n=be?be.toStringTag:void 0;function Gh(t){var e=Dh.call(t,_n),n=t[_n];try{t[_n]=void 0;var r=!0}catch{}var i=Fh.call(t);return r&&(e?t[_n]=n:delete t[_n]),i}var Uh=Object.prototype,Bh=Uh.toString;function jh(t){return Bh.call(t)}var Kh="[object Null]",Vh="[object Undefined]",Po=be?be.toStringTag:void 0;function Rt(t){return t==null?t===void 0?Vh:Kh:Po&&Po in Object(t)?Gh(t):jh(t)}function Be(t){return t!=null&&typeof t=="object"}var Hh="[object Symbol]";function Ji(t){return typeof t=="symbol"||Be(t)&&Rt(t)==Hh}function Zi(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var P=Array.isArray,Mo=be?be.prototype:void 0,Do=Mo?Mo.toString:void 0;function Oc(t){if(typeof t=="string")return t;if(P(t))return Zi(t,Oc)+"";if(Ji(t))return Do?Do.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Wh=/\s/;function zh(t){for(var e=t.length;e--&&Wh.test(t.charAt(e)););return e}var qh=/^\s+/;function Yh(t){return t&&t.slice(0,zh(t)+1).replace(qh,"")}function Le(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Fo=NaN,Xh=/^[-+]0x[0-9a-f]+$/i,Jh=/^0b[01]+$/i,Zh=/^0o[0-7]+$/i,Qh=parseInt;function ep(t){if(typeof t=="number")return t;if(Ji(t))return Fo;if(Le(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Le(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Yh(t);var n=Jh.test(t);return n||Zh.test(t)?Qh(t.slice(2),n?2:8):Xh.test(t)?Fo:+t}var Go=1/0,tp=17976931348623157e292;function np(t){if(!t)return t===0?t:0;if(t=ep(t),t===Go||t===-Go){var e=t<0?-1:1;return e*tp}return t===t?t:0}function Qi(t){var e=np(t),n=e%1;return e===e?n?e-n:e:0}function Tn(t){return t}var rp="[object AsyncFunction]",ip="[object Function]",sp="[object GeneratorFunction]",ap="[object Proxy]";function ct(t){if(!Le(t))return!1;var e=Rt(t);return e==ip||e==sp||e==rp||e==ap}var ws=Ye["__core-js_shared__"],Uo=(function(){var t=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function op(t){return!!Uo&&Uo in t}var lp=Function.prototype,up=lp.toString;function Bt(t){if(t!=null){try{return up.call(t)}catch{}try{return t+""}catch{}}return""}var cp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,dp=Function.prototype,hp=Object.prototype,pp=dp.toString,mp=hp.hasOwnProperty,gp=RegExp("^"+pp.call(mp).replace(cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(t){if(!Le(t)||op(t))return!1;var e=ct(t)?gp:fp;return e.test(Bt(t))}function Tp(t,e){return t?.[e]}function jt(t,e){var n=Tp(t,e);return yp(n)?n:void 0}var ra=jt(Ye,"WeakMap"),Bo=Object.create,vp=(function(){function t(){}return function(e){if(!Le(e))return{};if(Bo)return Bo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Rp(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function X(){}function Ap(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Ep=800,$p=16,xp=Date.now;function Sp(t){var e=0,n=0;return function(){var r=xp(),i=$p-(r-n);if(n=r,i>0){if(++e>=Ep)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function kp(t){return function(){return t}}var ki=(function(){try{var t=jt(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Ip=ki?function(t,e){return ki(t,"toString",{configurable:!0,enumerable:!1,value:kp(e),writable:!0})}:Tn,Cp=Sp(Ip);function Pc(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function Mc(t,e,n,r){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function wp(t){return t!==t}function Np(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function za(t,e,n){return e===e?Np(t,e,n):Mc(t,wp,n)}function Dc(t,e){var n=t==null?0:t.length;return!!n&&za(t,e,0)>-1}var _p=9007199254740991,bp=/^(?:0|[1-9]\d*)$/;function es(t,e){var n=typeof t;return e=e??_p,!!e&&(n=="number"||n!="symbol"&&bp.test(t))&&t>-1&&t%1==0&&t<e}function qa(t,e,n){e=="__proto__"&&ki?ki(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ir(t,e){return t===e||t!==t&&e!==e}var Lp=Object.prototype,Op=Lp.hasOwnProperty;function ts(t,e,n){var r=t[e];(!(Op.call(t,e)&&Ir(r,n))||n===void 0&&!(e in t))&&qa(t,e,n)}function Cr(t,e,n,r){var i=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var o=e[s],l=void 0;l===void 0&&(l=t[o]),i?qa(n,o,l):ts(n,o,l)}return n}var jo=Math.max;function Pp(t,e,n){return e=jo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=jo(r.length-e,0),a=Array(s);++i<s;)a[i]=r[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=r[i];return o[e]=n(a),Rp(t,this,o)}}function Ya(t,e){return Cp(Pp(t,e,Tn),t+"")}var Mp=9007199254740991;function Xa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Mp}function Xe(t){return t!=null&&Xa(t.length)&&!ct(t)}function Fc(t,e,n){if(!Le(n))return!1;var r=typeof e;return(r=="number"?Xe(n)&&es(e,n.length):r=="string"&&e in n)?Ir(n[e],t):!1}function Dp(t){return Ya(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,a&&Fc(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var o=n[r];o&&t(e,o,r,s)}return e})}var Fp=Object.prototype;function wr(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Fp;return t===n}function Gp(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Up="[object Arguments]";function Ko(t){return Be(t)&&Rt(t)==Up}var Gc=Object.prototype,Bp=Gc.hasOwnProperty,jp=Gc.propertyIsEnumerable,ns=Ko((function(){return arguments})())?Ko:function(t){return Be(t)&&Bp.call(t,"callee")&&!jp.call(t,"callee")};function Kp(){return!1}var Uc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vo=Uc&&typeof module=="object"&&module&&!module.nodeType&&module,Vp=Vo&&Vo.exports===Uc,Ho=Vp?Ye.Buffer:void 0,Hp=Ho?Ho.isBuffer:void 0,vr=Hp||Kp,Wp="[object Arguments]",zp="[object Array]",qp="[object Boolean]",Yp="[object Date]",Xp="[object Error]",Jp="[object Function]",Zp="[object Map]",Qp="[object Number]",em="[object Object]",tm="[object RegExp]",nm="[object Set]",rm="[object String]",im="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",om="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",cm="[object Int16Array]",fm="[object Int32Array]",dm="[object Uint8Array]",hm="[object Uint8ClampedArray]",pm="[object Uint16Array]",mm="[object Uint32Array]",B={};B[om]=B[lm]=B[um]=B[cm]=B[fm]=B[dm]=B[hm]=B[pm]=B[mm]=!0;B[Wp]=B[zp]=B[sm]=B[qp]=B[am]=B[Yp]=B[Xp]=B[Jp]=B[Zp]=B[Qp]=B[em]=B[tm]=B[nm]=B[rm]=B[im]=!1;function gm(t){return Be(t)&&Xa(t.length)&&!!B[Rt(t)]}function rs(t){return function(e){return t(e)}}var Bc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gr=Bc&&typeof module=="object"&&module&&!module.nodeType&&module,ym=gr&&gr.exports===Bc,Ns=ym&&bc.process,mt=(function(){try{var t=gr&&gr.require&&gr.require("util").types;return t||Ns&&Ns.binding&&Ns.binding("util")}catch{}})(),Wo=mt&&mt.isTypedArray,Ja=Wo?rs(Wo):gm,Tm=Object.prototype,vm=Tm.hasOwnProperty;function jc(t,e){var n=P(t),r=!n&&ns(t),i=!n&&!r&&vr(t),s=!n&&!r&&!i&&Ja(t),a=n||r||i||s,o=a?Gp(t.length,String):[],l=o.length;for(var u in t)(e||vm.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||es(u,l)))&&o.push(u);return o}function Kc(t,e){return function(n){return t(e(n))}}var Rm=Kc(Object.keys,Object),Am=Object.prototype,Em=Am.hasOwnProperty;function Vc(t){if(!wr(t))return Rm(t);var e=[];for(var n in Object(t))Em.call(t,n)&&n!="constructor"&&e.push(n);return e}function Oe(t){return Xe(t)?jc(t):Vc(t)}var $m=Object.prototype,xm=$m.hasOwnProperty,$e=Dp(function(t,e){if(wr(e)||Xe(e)){Cr(e,Oe(e),t);return}for(var n in e)xm.call(e,n)&&ts(t,n,e[n])});function Sm(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var km=Object.prototype,Im=km.hasOwnProperty;function Cm(t){if(!Le(t))return Sm(t);var e=wr(t),n=[];for(var r in t)r=="constructor"&&(e||!Im.call(t,r))||n.push(r);return n}function Za(t){return Xe(t)?jc(t,!0):Cm(t)}var wm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nm=/^\w*$/;function Qa(t,e){if(P(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ji(t)?!0:Nm.test(t)||!wm.test(t)||e!=null&&t in Object(e)}var Rr=jt(Object,"create");function _m(){this.__data__=Rr?Rr(null):{},this.size=0}function bm(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Lm="__lodash_hash_undefined__",Om=Object.prototype,Pm=Om.hasOwnProperty;function Mm(t){var e=this.__data__;if(Rr){var n=e[t];return n===Lm?void 0:n}return Pm.call(e,t)?e[t]:void 0}var Dm=Object.prototype,Fm=Dm.hasOwnProperty;function Gm(t){var e=this.__data__;return Rr?e[t]!==void 0:Fm.call(e,t)}var Um="__lodash_hash_undefined__";function Bm(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Rr&&e===void 0?Um:e,this}function Mt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Mt.prototype.clear=_m;Mt.prototype.delete=bm;Mt.prototype.get=Mm;Mt.prototype.has=Gm;Mt.prototype.set=Bm;function jm(){this.__data__=[],this.size=0}function is(t,e){for(var n=t.length;n--;)if(Ir(t[n][0],e))return n;return-1}var Km=Array.prototype,Vm=Km.splice;function Hm(t){var e=this.__data__,n=is(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Vm.call(e,n,1),--this.size,!0}function Wm(t){var e=this.__data__,n=is(e,t);return n<0?void 0:e[n][1]}function zm(t){return is(this.__data__,t)>-1}function qm(t,e){var n=this.__data__,r=is(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ft(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ft.prototype.clear=jm;ft.prototype.delete=Hm;ft.prototype.get=Wm;ft.prototype.has=zm;ft.prototype.set=qm;var Ar=jt(Ye,"Map");function Ym(){this.size=0,this.__data__={hash:new Mt,map:new(Ar||ft),string:new Mt}}function Xm(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ss(t,e){var n=t.__data__;return Xm(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Jm(t){var e=ss(this,t).delete(t);return this.size-=e?1:0,e}function Zm(t){return ss(this,t).get(t)}function Qm(t){return ss(this,t).has(t)}function eg(t,e){var n=ss(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function dt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=Ym;dt.prototype.delete=Jm;dt.prototype.get=Zm;dt.prototype.has=Qm;dt.prototype.set=eg;var tg="Expected a function";function eo(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(tg);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(eo.Cache||dt),n}eo.Cache=dt;var ng=500;function rg(t){var e=eo(t,function(r){return n.size===ng&&n.clear(),r}),n=e.cache;return e}var ig=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sg=/\\(\\)?/g,ag=rg(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ig,function(n,r,i,s){e.push(i?s.replace(sg,"$1"):r||n)}),e});function og(t){return t==null?"":Oc(t)}function as(t,e){return P(t)?t:Qa(t,e)?[t]:ag(og(t))}function Nr(t){if(typeof t=="string"||Ji(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function to(t,e){e=as(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Nr(e[n++])];return n&&n==r?t:void 0}function lg(t,e,n){var r=t==null?void 0:to(t,e);return r===void 0?n:r}function no(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var zo=be?be.isConcatSpreadable:void 0;function ug(t){return P(t)||ns(t)||!!(zo&&t&&t[zo])}function ro(t,e,n,r,i){var s=-1,a=t.length;for(n||(n=ug),i||(i=[]);++s<a;){var o=t[s];n(o)?no(i,o):r||(i[i.length]=o)}return i}function Ge(t){var e=t==null?0:t.length;return e?ro(t):[]}var Hc=Kc(Object.getPrototypeOf,Object);function Wc(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function cg(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function fg(){this.__data__=new ft,this.size=0}function dg(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function hg(t){return this.__data__.get(t)}function pg(t){return this.__data__.has(t)}var mg=200;function gg(t,e){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!Ar||r.length<mg-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(t,e),this.size=n.size,this}function qe(t){var e=this.__data__=new ft(t);this.size=e.size}qe.prototype.clear=fg;qe.prototype.delete=dg;qe.prototype.get=hg;qe.prototype.has=pg;qe.prototype.set=gg;function yg(t,e){return t&&Cr(e,Oe(e),t)}function Tg(t,e){return t&&Cr(e,Za(e),t)}var zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qo=zc&&typeof module=="object"&&module&&!module.nodeType&&module,vg=qo&&qo.exports===zc,Yo=vg?Ye.Buffer:void 0,Xo=Yo?Yo.allocUnsafe:void 0;function Rg(t,e){var n=t.length,r=Xo?Xo(n):new t.constructor(n);return t.copy(r),r}function io(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}function qc(){return[]}var Ag=Object.prototype,Eg=Ag.propertyIsEnumerable,Jo=Object.getOwnPropertySymbols,so=Jo?function(t){return t==null?[]:(t=Object(t),io(Jo(t),function(e){return Eg.call(t,e)}))}:qc;function $g(t,e){return Cr(t,so(t),e)}var xg=Object.getOwnPropertySymbols,Yc=xg?function(t){for(var e=[];t;)no(e,so(t)),t=Hc(t);return e}:qc;function Sg(t,e){return Cr(t,Yc(t),e)}function Xc(t,e,n){var r=e(t);return P(t)?r:no(r,n(t))}function ia(t){return Xc(t,Oe,so)}function kg(t){return Xc(t,Za,Yc)}var sa=jt(Ye,"DataView"),aa=jt(Ye,"Promise"),Zt=jt(Ye,"Set"),Zo="[object Map]",Ig="[object Object]",Qo="[object Promise]",el="[object Set]",tl="[object WeakMap]",nl="[object DataView]",Cg=Bt(sa),wg=Bt(Ar),Ng=Bt(aa),_g=Bt(Zt),bg=Bt(ra),we=Rt;(sa&&we(new sa(new ArrayBuffer(1)))!=nl||Ar&&we(new Ar)!=Zo||aa&&we(aa.resolve())!=Qo||Zt&&we(new Zt)!=el||ra&&we(new ra)!=tl)&&(we=function(t){var e=Rt(t),n=e==Ig?t.constructor:void 0,r=n?Bt(n):"";if(r)switch(r){case Cg:return nl;case wg:return Zo;case Ng:return Qo;case _g:return el;case bg:return tl}return e});var Lg=Object.prototype,Og=Lg.hasOwnProperty;function Pg(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Og.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ii=Ye.Uint8Array;function Mg(t){var e=new t.constructor(t.byteLength);return new Ii(e).set(new Ii(t)),e}function Dg(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Fg=/\w*$/;function Gg(t){var e=new t.constructor(t.source,Fg.exec(t));return e.lastIndex=t.lastIndex,e}var rl=be?be.prototype:void 0,il=rl?rl.valueOf:void 0;function Ug(t){return il?Object(il.call(t)):{}}function Bg(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var jg="[object Boolean]",Kg="[object Date]",Vg="[object Map]",Hg="[object Number]",Wg="[object RegExp]",zg="[object Set]",qg="[object String]",Yg="[object Symbol]",Xg="[object ArrayBuffer]",Jg="[object DataView]",Zg="[object Float32Array]",Qg="[object Float64Array]",ey="[object Int8Array]",ty="[object Int16Array]",ny="[object Int32Array]",ry="[object Uint8Array]",iy="[object Uint8ClampedArray]",sy="[object Uint16Array]",ay="[object Uint32Array]";function oy(t,e,n){var r=t.constructor;switch(e){case Xg:return Mg(t);case jg:case Kg:return new r(+t);case Jg:return Dg(t);case Zg:case Qg:case ey:case ty:case ny:case ry:case iy:case sy:case ay:return Bg(t);case Vg:return new r;case Hg:case qg:return new r(t);case Wg:return Gg(t);case zg:return new r;case Yg:return Ug(t)}}function ly(t){return typeof t.constructor=="function"&&!wr(t)?vp(Hc(t)):{}}var uy="[object Map]";function cy(t){return Be(t)&&we(t)==uy}var sl=mt&&mt.isMap,fy=sl?rs(sl):cy,dy="[object Set]";function hy(t){return Be(t)&&we(t)==dy}var al=mt&&mt.isSet,py=al?rs(al):hy,my=2,Jc="[object Arguments]",gy="[object Array]",yy="[object Boolean]",Ty="[object Date]",vy="[object Error]",Zc="[object Function]",Ry="[object GeneratorFunction]",Ay="[object Map]",Ey="[object Number]",Qc="[object Object]",$y="[object RegExp]",xy="[object Set]",Sy="[object String]",ky="[object Symbol]",Iy="[object WeakMap]",Cy="[object ArrayBuffer]",wy="[object DataView]",Ny="[object Float32Array]",_y="[object Float64Array]",by="[object Int8Array]",Ly="[object Int16Array]",Oy="[object Int32Array]",Py="[object Uint8Array]",My="[object Uint8ClampedArray]",Dy="[object Uint16Array]",Fy="[object Uint32Array]",G={};G[Jc]=G[gy]=G[Cy]=G[wy]=G[yy]=G[Ty]=G[Ny]=G[_y]=G[by]=G[Ly]=G[Oy]=G[Ay]=G[Ey]=G[Qc]=G[$y]=G[xy]=G[Sy]=G[ky]=G[Py]=G[My]=G[Dy]=G[Fy]=!0;G[vy]=G[Zc]=G[Iy]=!1;function li(t,e,n,r,i,s){var a,o=e&my;if(a!==void 0)return a;if(!Le(t))return t;var l=P(t);if(l)return a=Pg(t),Ap(t,a);var u=we(t),c=u==Zc||u==Ry;if(vr(t))return Rg(t);if(u==Qc||u==Jc||c&&!i)return a=c?{}:ly(t),o?Sg(t,Tg(a,t)):$g(t,yg(a,t));if(!G[u])return i?t:{};a=oy(t,u),s||(s=new qe);var f=s.get(t);if(f)return f;s.set(t,a),py(t)?t.forEach(function(m){a.add(li(m,e,n,m,t,s))}):fy(t)&&t.forEach(function(m,g){a.set(g,li(m,e,n,g,t,s))});var d=ia,h=l?void 0:d(t);return Pc(h||t,function(m,g){h&&(g=m,m=t[g]),ts(a,g,li(m,e,n,g,t,s))}),a}var Gy=4;function se(t){return li(t,Gy)}function _r(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}var Uy="__lodash_hash_undefined__";function By(t){return this.__data__.set(t,Uy),this}function jy(t){return this.__data__.has(t)}function vn(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dt;++e<n;)this.add(t[e])}vn.prototype.add=vn.prototype.push=By;vn.prototype.has=jy;function ef(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function ao(t,e){return t.has(e)}var Ky=1,Vy=2;function tf(t,e,n,r,i,s){var a=n&Ky,o=t.length,l=e.length;if(o!=l&&!(a&&l>o))return!1;var u=s.get(t),c=s.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,h=n&Vy?new vn:void 0;for(s.set(t,e),s.set(e,t);++f<o;){var m=t[f],g=e[f];if(r)var R=a?r(g,m,f,e,t,s):r(m,g,f,t,e,s);if(R!==void 0){if(R)continue;d=!1;break}if(h){if(!ef(e,function(y,E){if(!ao(h,E)&&(m===y||i(m,y,n,r,s)))return h.push(E)})){d=!1;break}}else if(!(m===g||i(m,g,n,r,s))){d=!1;break}}return s.delete(t),s.delete(e),d}function Hy(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function oo(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Wy=1,zy=2,qy="[object Boolean]",Yy="[object Date]",Xy="[object Error]",Jy="[object Map]",Zy="[object Number]",Qy="[object RegExp]",eT="[object Set]",tT="[object String]",nT="[object Symbol]",rT="[object ArrayBuffer]",iT="[object DataView]",ol=be?be.prototype:void 0,_s=ol?ol.valueOf:void 0;function sT(t,e,n,r,i,s,a){switch(n){case iT:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case rT:return!(t.byteLength!=e.byteLength||!s(new Ii(t),new Ii(e)));case qy:case Yy:case Zy:return Ir(+t,+e);case Xy:return t.name==e.name&&t.message==e.message;case Qy:case tT:return t==e+"";case Jy:var o=Hy;case eT:var l=r&Wy;if(o||(o=oo),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=zy,a.set(t,e);var c=tf(o(t),o(e),r,i,s,a);return a.delete(t),c;case nT:if(_s)return _s.call(t)==_s.call(e)}return!1}var aT=1,oT=Object.prototype,lT=oT.hasOwnProperty;function uT(t,e,n,r,i,s){var a=n&aT,o=ia(t),l=o.length,u=ia(e),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=o[f];if(!(a?d in e:lT.call(e,d)))return!1}var h=s.get(t),m=s.get(e);if(h&&m)return h==e&&m==t;var g=!0;s.set(t,e),s.set(e,t);for(var R=a;++f<l;){d=o[f];var y=t[d],E=e[d];if(r)var v=a?r(E,y,d,e,t,s):r(y,E,d,t,e,s);if(!(v===void 0?y===E||i(y,E,n,r,s):v)){g=!1;break}R||(R=d=="constructor")}if(g&&!R){var S=t.constructor,M=e.constructor;S!=M&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof M=="function"&&M instanceof M)&&(g=!1)}return s.delete(t),s.delete(e),g}var cT=1,ll="[object Arguments]",ul="[object Array]",qr="[object Object]",fT=Object.prototype,cl=fT.hasOwnProperty;function dT(t,e,n,r,i,s){var a=P(t),o=P(e),l=a?ul:we(t),u=o?ul:we(e);l=l==ll?qr:l,u=u==ll?qr:u;var c=l==qr,f=u==qr,d=l==u;if(d&&vr(t)){if(!vr(e))return!1;a=!0,c=!1}if(d&&!c)return s||(s=new qe),a||Ja(t)?tf(t,e,n,r,i,s):sT(t,e,l,n,r,i,s);if(!(n&cT)){var h=c&&cl.call(t,"__wrapped__"),m=f&&cl.call(e,"__wrapped__");if(h||m){var g=h?t.value():t,R=m?e.value():e;return s||(s=new qe),i(g,R,n,r,s)}}return d?(s||(s=new qe),uT(t,e,n,r,i,s)):!1}function lo(t,e,n,r,i){return t===e?!0:t==null||e==null||!Be(t)&&!Be(e)?t!==t&&e!==e:dT(t,e,n,r,lo,i)}var hT=1,pT=2;function mT(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<s;){a=n[i];var o=a[0],l=t[o],u=a[1];if(a[2]){if(l===void 0&&!(o in t))return!1}else{var c=new qe,f;if(!(f===void 0?lo(u,l,hT|pT,r,c):f))return!1}}return!0}function nf(t){return t===t&&!Le(t)}function gT(t){for(var e=Oe(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,nf(i)]}return e}function rf(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function yT(t){var e=gT(t);return e.length==1&&e[0][2]?rf(e[0][0],e[0][1]):function(n){return n===t||mT(n,t,e)}}function TT(t,e){return t!=null&&e in Object(t)}function sf(t,e,n){e=as(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var a=Nr(e[r]);if(!(s=t!=null&&n(t,a)))break;t=t[a]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&Xa(i)&&es(a,i)&&(P(t)||ns(t)))}function vT(t,e){return t!=null&&sf(t,e,TT)}var RT=1,AT=2;function ET(t,e){return Qa(t)&&nf(e)?rf(Nr(t),e):function(n){var r=lg(n,t);return r===void 0&&r===e?vT(n,t):lo(e,r,RT|AT)}}function $T(t){return function(e){return e?.[t]}}function xT(t){return function(e){return to(e,t)}}function ST(t){return Qa(t)?$T(Nr(t)):xT(t)}function Je(t){return typeof t=="function"?t:t==null?Tn:typeof t=="object"?P(t)?ET(t[0],t[1]):yT(t):ST(t)}function kT(t,e,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function IT(t){return function(e,n,r){for(var i=-1,s=Object(e),a=r(e),o=a.length;o--;){var l=a[++i];if(n(s[l],l,s)===!1)break}return e}}var CT=IT();function wT(t,e){return t&&CT(t,e,Oe)}function NT(t,e){return function(n,r){if(n==null)return n;if(!Xe(n))return t(n,r);for(var i=n.length,s=-1,a=Object(n);++s<i&&r(a[s],s,a)!==!1;);return n}}var Kt=NT(wT);function _T(t,e,n,r){return Kt(t,function(i,s,a){e(r,i,n(i),a)}),r}function bT(t,e){return function(n,r){var i=P(n)?kT:_T,s=e?e():{};return i(n,t,Je(r),s)}}var af=Object.prototype,LT=af.hasOwnProperty,uo=Ya(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Fc(e[0],e[1],i)&&(r=1);++n<r;)for(var s=e[n],a=Za(s),o=-1,l=a.length;++o<l;){var u=a[o],c=t[u];(c===void 0||Ir(c,af[u])&&!LT.call(t,u))&&(t[u]=s[u])}return t});function fl(t){return Be(t)&&Xe(t)}var OT=200;function PT(t,e,n,r){var i=-1,s=Dc,a=!0,o=t.length,l=[],u=e.length;if(!o)return l;e.length>=OT&&(s=ao,a=!1,e=new vn(e));e:for(;++i<o;){var c=t[i],f=c;if(c=c!==0?c:0,a&&f===f){for(var d=u;d--;)if(e[d]===f)continue e;l.push(c)}else s(e,f,r)||l.push(c)}return l}var os=Ya(function(t,e){return fl(t)?PT(t,ro(e,1,fl,!0)):[]});function Rn(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function te(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:Qi(e),Wc(t,e<0?0:e,r)):[]}function Er(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:Qi(e),e=r-e,Wc(t,0,e<0?0:e)):[]}function MT(t){return typeof t=="function"?t:Tn}function w(t,e){var n=P(t)?Pc:Kt;return n(t,MT(e))}function DT(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function FT(t,e){var n=!0;return Kt(t,function(r,i,s){return n=!!e(r,i,s),n}),n}function Ue(t,e,n){var r=P(t)?DT:FT;return r(t,Je(e))}function of(t,e){var n=[];return Kt(t,function(r,i,s){e(r,i,s)&&n.push(r)}),n}function Pe(t,e){var n=P(t)?io:of;return n(t,Je(e))}function GT(t){return function(e,n,r){var i=Object(e);if(!Xe(e)){var s=Je(n);e=Oe(e),n=function(o){return s(i[o],o,i)}}var a=t(e,n,r);return a>-1?i[s?e[a]:a]:void 0}}var UT=Math.max;function BT(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Qi(n);return i<0&&(i=UT(r+i,0)),Mc(t,Je(e),i)}var An=GT(BT);function je(t){return t&&t.length?t[0]:void 0}function jT(t,e){var n=-1,r=Xe(t)?Array(t.length):[];return Kt(t,function(i,s,a){r[++n]=e(i,s,a)}),r}function I(t,e){var n=P(t)?Zi:jT;return n(t,Je(e))}function Ne(t,e){return ro(I(t,e))}var KT=Object.prototype,VT=KT.hasOwnProperty,HT=bT(function(t,e,n){VT.call(t,n)?t[n].push(e):qa(t,n,[e])}),WT=Object.prototype,zT=WT.hasOwnProperty;function qT(t,e){return t!=null&&zT.call(t,e)}function C(t,e){return t!=null&&sf(t,e,qT)}var YT="[object String]";function pe(t){return typeof t=="string"||!P(t)&&Be(t)&&Rt(t)==YT}function XT(t,e){return Zi(e,function(n){return t[n]})}function J(t){return t==null?[]:XT(t,Oe(t))}var JT=Math.max;function de(t,e,n,r){t=Xe(t)?t:J(t),n=n?Qi(n):0;var i=t.length;return n<0&&(n=JT(i+n,0)),pe(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&za(t,e,n)>-1}function dl(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return za(t,e,i)}var ZT="[object Map]",QT="[object Set]",ev=Object.prototype,tv=ev.hasOwnProperty;function U(t){if(t==null)return!0;if(Xe(t)&&(P(t)||typeof t=="string"||typeof t.splice=="function"||vr(t)||Ja(t)||ns(t)))return!t.length;var e=we(t);if(e==ZT||e==QT)return!t.size;if(wr(t))return!Vc(t).length;for(var n in t)if(tv.call(t,n))return!1;return!0}var nv="[object RegExp]";function rv(t){return Be(t)&&Rt(t)==nv}var hl=mt&&mt.isRegExp,ot=hl?rs(hl):rv;function lt(t){return t===void 0}var iv="Expected a function";function sv(t){if(typeof t!="function")throw new TypeError(iv);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function av(t,e,n,r){if(!Le(t))return t;e=as(e,t);for(var i=-1,s=e.length,a=s-1,o=t;o!=null&&++i<s;){var l=Nr(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var c=o[l];u=void 0,u===void 0&&(u=Le(c)?c:es(e[i+1])?[]:{})}ts(o,l,u),o=o[l]}return t}function ov(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var a=e[r],o=to(t,a);n(o,a)&&av(s,as(a,t),o)}return s}function Ke(t,e){if(t==null)return{};var n=Zi(kg(t),function(r){return[r]});return e=Je(e),ov(t,n,function(r,i){return e(r,i[0])})}function lv(t,e,n,r,i){return i(t,function(s,a,o){n=r?(r=!1,s):e(n,s,a,o)}),n}function xe(t,e,n){var r=P(t)?cg:lv,i=arguments.length<3;return r(t,Je(e),n,i,Kt)}function ls(t,e){var n=P(t)?io:of;return n(t,sv(Je(e)))}function uv(t,e){var n;return Kt(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function lf(t,e,n){var r=P(t)?ef:uv;return r(t,Je(e))}var cv=1/0,fv=Zt&&1/oo(new Zt([,-0]))[1]==cv?function(t){return new Zt(t)}:X,dv=200;function hv(t,e,n){var r=-1,i=Dc,s=t.length,a=!0,o=[],l=o;if(s>=dv){var u=fv(t);if(u)return oo(u);a=!1,i=ao,l=new vn}else l=o;e:for(;++r<s;){var c=t[r],f=c;if(c=c!==0?c:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;o.push(c)}else i(l,f,n)||(l!==o&&l.push(f),o.push(c))}return o}function co(t){return t&&t.length?hv(t):[]}function oa(t){console&&console.error&&console.error(`Error: ${t}`)}function uf(t){console&&console.warn&&console.warn(`Warning: ${t}`)}function cf(t){const e=new Date().getTime(),n=t();return{time:new Date().getTime()-e,value:n}}function ff(t){function e(){}e.prototype=t;const n=new e;function r(){return typeof n.bar}return r(),r(),t}function pv(t){return mv(t)?t.LABEL:t.name}function mv(t){return pe(t.LABEL)&&t.LABEL!==""}class Ze{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),w(this.definition,n=>{n.accept(e)})}}class ce extends Ze{constructor(e){super([]),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class In extends Ze{constructor(e){super(e.definition),this.orgText="",$e(this,Ke(e,n=>n!==void 0))}}class me extends Ze{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,$e(this,Ke(e,n=>n!==void 0))}}let ie=class extends Ze{constructor(e){super(e.definition),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}};class Se extends Ze{constructor(e){super(e.definition),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}}class ke extends Ze{constructor(e){super(e.definition),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}}class z extends Ze{constructor(e){super(e.definition),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}}class ge extends Ze{constructor(e){super(e.definition),this.idx=1,$e(this,Ke(e,n=>n!==void 0))}}class ye extends Ze{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,$e(this,Ke(e,n=>n!==void 0))}}class j{constructor(e){this.idx=1,$e(this,Ke(e,n=>n!==void 0))}accept(e){e.visit(this)}}function gv(t){return I(t,ui)}function ui(t){function e(n){return I(n,ui)}if(t instanceof ce){const n={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return pe(t.label)&&(n.label=t.label),n}else{if(t instanceof me)return{type:"Alternative",definition:e(t.definition)};if(t instanceof ie)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof Se)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof ke)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:ui(new j({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof ge)return{type:"RepetitionWithSeparator",idx:t.idx,separator:ui(new j({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof z)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof ye)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof j){const n={type:"Terminal",name:t.terminalType.name,label:pv(t.terminalType),idx:t.idx};pe(t.label)&&(n.terminalLabel=t.label);const r=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(n.pattern=ot(r)?r.source:r),n}else{if(t instanceof In)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}class Cn{visit(e){const n=e;switch(n.constructor){case ce:return this.visitNonTerminal(n);case me:return this.visitAlternative(n);case ie:return this.visitOption(n);case Se:return this.visitRepetitionMandatory(n);case ke:return this.visitRepetitionMandatoryWithSeparator(n);case ge:return this.visitRepetitionWithSeparator(n);case z:return this.visitRepetition(n);case ye:return this.visitAlternation(n);case j:return this.visitTerminal(n);case In:return this.visitRule(n);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 yv(t){return t instanceof me||t instanceof ie||t instanceof z||t instanceof Se||t instanceof ke||t instanceof ge||t instanceof j||t instanceof In}function Ci(t,e=[]){return t instanceof ie||t instanceof z||t instanceof ge?!0:t instanceof ye?lf(t.definition,r=>Ci(r,e)):t instanceof ce&&de(e,t)?!1:t instanceof Ze?(t instanceof ce&&e.push(t),Ue(t.definition,r=>Ci(r,e))):!1}function Tv(t){return t instanceof ye}function We(t){if(t instanceof ce)return"SUBRULE";if(t instanceof ie)return"OPTION";if(t instanceof ye)return"OR";if(t instanceof Se)return"AT_LEAST_ONE";if(t instanceof ke)return"AT_LEAST_ONE_SEP";if(t instanceof ge)return"MANY_SEP";if(t instanceof z)return"MANY";if(t instanceof j)return"CONSUME";throw Error("non exhaustive match")}class us{walk(e,n=[]){w(e.definition,(r,i)=>{const s=te(e.definition,i+1);if(r instanceof ce)this.walkProdRef(r,s,n);else if(r instanceof j)this.walkTerminal(r,s,n);else if(r instanceof me)this.walkFlat(r,s,n);else if(r instanceof ie)this.walkOption(r,s,n);else if(r instanceof Se)this.walkAtLeastOne(r,s,n);else if(r instanceof ke)this.walkAtLeastOneSep(r,s,n);else if(r instanceof ge)this.walkManySep(r,s,n);else if(r instanceof z)this.walkMany(r,s,n);else if(r instanceof ye)this.walkOr(r,s,n);else throw Error("non exhaustive match")})}walkTerminal(e,n,r){}walkProdRef(e,n,r){}walkFlat(e,n,r){const i=n.concat(r);this.walk(e,i)}walkOption(e,n,r){const i=n.concat(r);this.walk(e,i)}walkAtLeastOne(e,n,r){const i=[new ie({definition:e.definition})].concat(n,r);this.walk(e,i)}walkAtLeastOneSep(e,n,r){const i=pl(e,n,r);this.walk(e,i)}walkMany(e,n,r){const i=[new ie({definition:e.definition})].concat(n,r);this.walk(e,i)}walkManySep(e,n,r){const i=pl(e,n,r);this.walk(e,i)}walkOr(e,n,r){const i=n.concat(r);w(e.definition,s=>{const a=new me({definition:[s]});this.walk(a,i)})}}function pl(t,e,n){return[new ie({definition:[new j({terminalType:t.separator})].concat(t.definition)})].concat(e,n)}function br(t){if(t instanceof ce)return br(t.referencedRule);if(t instanceof j)return Av(t);if(yv(t))return vv(t);if(Tv(t))return Rv(t);throw Error("non exhaustive match")}function vv(t){let e=[];const n=t.definition;let r=0,i=n.length>r,s,a=!0;for(;i&&a;)s=n[r],a=Ci(s),e=e.concat(br(s)),r=r+1,i=n.length>r;return co(e)}function Rv(t){const e=I(t.definition,n=>br(n));return co(Ge(e))}function Av(t){return[t.terminalType]}const df="_~IN~_";class Ev extends us{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,n,r){}walkProdRef(e,n,r){const i=xv(e.referencedRule,e.idx)+this.topProd.name,s=n.concat(r),a=new me({definition:s}),o=br(a);this.follows[i]=o}}function $v(t){const e={};return w(t,n=>{const r=new Ev(n).startWalking();$e(e,r)}),e}function xv(t,e){return t.name+e+df}let ci={};const Sv=new xc;function cs(t){const e=t.toString();if(ci.hasOwnProperty(e))return ci[e];{const n=Sv.pattern(e);return ci[e]=n,n}}function kv(){ci={}}const hf="Complement Sets are not supported for first char optimization",wi=`Unable to use "first char" lexer optimizations:
14
+ `;function Iv(t,e=!1){try{const n=cs(t);return la(n.value,{},n.flags.ignoreCase)}catch(n){if(n.message===hf)e&&uf(`${wi} Unable to optimize: < ${t.toString()} >
15
+ Complement Sets cannot be automatically optimized.
16
+ This will disable the lexer's first char optimizations.
17
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";e&&(r=`
18
+ This will disable the lexer's first char optimizations.
19
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),oa(`${wi}
20
+ Failed parsing: < ${t.toString()} >
21
+ Using the @chevrotain/regexp-to-ast library
22
+ Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function la(t,e,n){switch(t.type){case"Disjunction":for(let i=0;i<t.value.length;i++)la(t.value[i],e,n);break;case"Alternative":const r=t.value;for(let i=0;i<r.length;i++){const s=r[i];switch(s.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const a=s;switch(a.type){case"Character":Yr(a.value,e,n);break;case"Set":if(a.complement===!0)throw Error(hf);w(a.value,l=>{if(typeof l=="number")Yr(l,e,n);else{const u=l;if(n===!0)for(let c=u.from;c<=u.to;c++)Yr(c,e,n);else{for(let c=u.from;c<=u.to&&c<ur;c++)Yr(c,e,n);if(u.to>=ur){const c=u.from>=ur?u.from:ur,f=u.to,d=gt(c),h=gt(f);for(let m=d;m<=h;m++)e[m]=m}}}});break;case"Group":la(a.value,e,n);break;default:throw Error("Non Exhaustive Match")}const o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type==="Group"&&ua(a)===!1||a.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return J(e)}function Yr(t,e,n){const r=gt(t);e[r]=r,n===!0&&Cv(t,e)}function Cv(t,e){const n=String.fromCharCode(t),r=n.toUpperCase();if(r!==n){const i=gt(r.charCodeAt(0));e[i]=i}else{const i=n.toLowerCase();if(i!==n){const s=gt(i.charCodeAt(0));e[s]=s}}}function ml(t,e){return An(t.value,n=>{if(typeof n=="number")return de(e,n);{const r=n;return An(e,i=>r.from<=i&&i<=r.to)!==void 0}})}function ua(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?P(t.value)?Ue(t.value,ua):ua(t.value):!1}class wv extends Yi{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}super.visitChildren(e)}}visitCharacter(e){de(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?ml(e,this.targetCharCodes)===void 0&&(this.found=!0):ml(e,this.targetCharCodes)!==void 0&&(this.found=!0)}}function fo(t,e){if(e instanceof RegExp){const n=cs(e),r=new wv(t);return r.visit(n),r.found}else return An(e,n=>de(t,n.charCodeAt(0)))!==void 0}const Dt="PATTERN",lr="defaultMode",Xr="modes";let pf=typeof new RegExp("(?:)").sticky=="boolean";function Nv(t,e){e=uo(e,{useSticky:pf,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
23
+ `],tracer:(E,v)=>v()});const n=e.tracer;n("initCharCodeToOptimizedIndexMap",()=>{Qv()});let r;n("Reject Lexer.NA",()=>{r=ls(t,E=>E[Dt]===he.NA)});let i=!1,s;n("Transform Patterns",()=>{i=!1,s=I(r,E=>{const v=E[Dt];if(ot(v)){const S=v.source;return S.length===1&&S!=="^"&&S!=="$"&&S!=="."&&!v.ignoreCase?S:S.length===2&&S[0]==="\\"&&!de(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],S[1])?S[1]:e.useSticky?yl(v):gl(v)}else{if(ct(v))return i=!0,{exec:v};if(typeof v=="object")return i=!0,v;if(typeof v=="string"){if(v.length===1)return v;{const S=v.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),M=new RegExp(S);return e.useSticky?yl(M):gl(M)}}else throw Error("non exhaustive match")}})});let a,o,l,u,c;n("misc mapping",()=>{a=I(r,E=>E.tokenTypeIdx),o=I(r,E=>{const v=E.GROUP;if(v!==he.SKIPPED){if(pe(v))return v;if(lt(v))return!1;throw Error("non exhaustive match")}}),l=I(r,E=>{const v=E.LONGER_ALT;if(v)return P(v)?I(v,M=>dl(r,M)):[dl(r,v)]}),u=I(r,E=>E.PUSH_MODE),c=I(r,E=>C(E,"POP_MODE"))});let f;n("Line Terminator Handling",()=>{const E=yf(e.lineTerminatorCharacters);f=I(r,v=>!1),e.positionTracking!=="onlyOffset"&&(f=I(r,v=>C(v,"LINE_BREAKS")?!!v.LINE_BREAKS:gf(v,E)===!1&&fo(E,v.PATTERN)))});let d,h,m,g;n("Misc Mapping #2",()=>{d=I(r,mf),h=I(s,Xv),m=xe(r,(E,v)=>{const S=v.GROUP;return pe(S)&&S!==he.SKIPPED&&(E[S]=[]),E},{}),g=I(s,(E,v)=>({pattern:s[v],longerAlt:l[v],canLineTerminator:f[v],isCustom:d[v],short:h[v],group:o[v],push:u[v],pop:c[v],tokenTypeIdx:a[v],tokenType:r[v]}))});let R=!0,y=[];return e.safeMode||n("First Char Optimization",()=>{y=xe(r,(E,v,S)=>{if(typeof v.PATTERN=="string"){const M=v.PATTERN.charCodeAt(0),ae=gt(M);bs(E,ae,g[S])}else if(P(v.START_CHARS_HINT)){let M;w(v.START_CHARS_HINT,ae=>{const Me=typeof ae=="string"?ae.charCodeAt(0):ae,Te=gt(Me);M!==Te&&(M=Te,bs(E,Te,g[S]))})}else if(ot(v.PATTERN))if(v.PATTERN.unicode)R=!1,e.ensureOptimizations&&oa(`${wi} Unable to analyze < ${v.PATTERN.toString()} > pattern.
24
+ The regexp unicode flag is not currently supported by the regexp-to-ast library.
25
+ This will disable the lexer's first char optimizations.
26
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const M=Iv(v.PATTERN,e.ensureOptimizations);U(M)&&(R=!1),w(M,ae=>{bs(E,ae,g[S])})}else e.ensureOptimizations&&oa(`${wi} TokenType: <${v.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
27
+ This will disable the lexer's first char optimizations.
28
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),R=!1;return E},[])}),{emptyGroups:m,patternIdxToConfig:g,charCodeToPatternIdxToConfig:y,hasCustom:i,canBeOptimized:R}}function _v(t,e){let n=[];const r=Lv(t);n=n.concat(r.errors);const i=Ov(r.valid),s=i.valid;return n=n.concat(i.errors),n=n.concat(bv(s)),n=n.concat(jv(s)),n=n.concat(Kv(s,e)),n=n.concat(Vv(s)),n}function bv(t){let e=[];const n=Pe(t,r=>ot(r[Dt]));return e=e.concat(Mv(n)),e=e.concat(Gv(n)),e=e.concat(Uv(n)),e=e.concat(Bv(n)),e=e.concat(Dv(n)),e}function Lv(t){const e=Pe(t,i=>!C(i,Dt)),n=I(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:q.MISSING_PATTERN,tokenTypes:[i]})),r=os(t,e);return{errors:n,valid:r}}function Ov(t){const e=Pe(t,i=>{const s=i[Dt];return!ot(s)&&!ct(s)&&!C(s,"exec")&&!pe(s)}),n=I(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:q.INVALID_PATTERN,tokenTypes:[i]})),r=os(t,e);return{errors:n,valid:r}}const Pv=/[^\\][$]/;function Mv(t){class e extends Yi{constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}}const n=Pe(t,i=>{const s=i.PATTERN;try{const a=cs(s),o=new e;return o.visit(a),o.found}catch{return Pv.test(s.source)}});return I(n,i=>({message:`Unexpected RegExp Anchor Error:
29
+ Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
30
+ See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:q.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function Dv(t){const e=Pe(t,r=>r.PATTERN.test(""));return I(e,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:q.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}const Fv=/[^\\[][\^]|^\^/;function Gv(t){class e extends Yi{constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}}const n=Pe(t,i=>{const s=i.PATTERN;try{const a=cs(s),o=new e;return o.visit(a),o.found}catch{return Fv.test(s.source)}});return I(n,i=>({message:`Unexpected RegExp Anchor Error:
31
+ Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
32
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:q.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function Uv(t){const e=Pe(t,r=>{const i=r[Dt];return i instanceof RegExp&&(i.multiline||i.global)});return I(e,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:q.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function Bv(t){const e=[];let n=I(t,s=>xe(t,(a,o)=>(s.PATTERN.source===o.PATTERN.source&&!de(e,o)&&o.PATTERN!==he.NA&&(e.push(o),a.push(o)),a),[]));n=_r(n);const r=Pe(n,s=>s.length>1);return I(r,s=>{const a=I(s,l=>l.name);return{message:`The same RegExp pattern ->${je(s).PATTERN}<-has been used in all of the following Token Types: ${a.join(", ")} <-`,type:q.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}})}function jv(t){const e=Pe(t,r=>{if(!C(r,"GROUP"))return!1;const i=r.GROUP;return i!==he.SKIPPED&&i!==he.NA&&!pe(i)});return I(e,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:q.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function Kv(t,e){const n=Pe(t,i=>i.PUSH_MODE!==void 0&&!de(e,i.PUSH_MODE));return I(n,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:q.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function Vv(t){const e=[],n=xe(t,(r,i,s)=>{const a=i.PATTERN;return a===he.NA||(pe(a)?r.push({str:a,idx:s,tokenType:i}):ot(a)&&Wv(a)&&r.push({str:a.source,idx:s,tokenType:i})),r},[]);return w(t,(r,i)=>{w(n,({str:s,idx:a,tokenType:o})=>{if(i<a&&Hv(s,r.PATTERN)){const l=`Token: ->${o.name}<- can never be matched.
33
+ Because it appears AFTER the Token Type ->${r.name}<-in the lexer's definition.
34
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:l,type:q.UNREACHABLE_PATTERN,tokenTypes:[r,o]})}})}),e}function Hv(t,e){if(ot(e)){const n=e.exec(t);return n!==null&&n.index===0}else{if(ct(e))return e(t,0,[],{});if(C(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function Wv(t){return An([".","\\","[","]","|","^","$","(",")","?","*","+","{"],n=>t.source.indexOf(n)!==-1)===void 0}function gl(t){const e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function yl(t){const e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}function zv(t,e,n){const r=[];return C(t,lr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+lr+`> property in its definition
35
+ `,type:q.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),C(t,Xr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+Xr+`> property in its definition
36
+ `,type:q.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),C(t,Xr)&&C(t,lr)&&!C(t.modes,t.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${lr}: <${t.defaultMode}>which does not exist
37
+ `,type:q.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),C(t,Xr)&&w(t.modes,(i,s)=>{w(i,(a,o)=>{if(lt(a))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${o}>
38
+ `,type:q.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(C(a,"LONGER_ALT")){const l=P(a.LONGER_ALT)?a.LONGER_ALT:[a.LONGER_ALT];w(l,u=>{!lt(u)&&!de(i,u)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${a.name}> outside of mode <${s}>
39
+ `,type:q.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function qv(t,e,n){const r=[];let i=!1;const s=_r(Ge(J(t.modes))),a=ls(s,l=>l[Dt]===he.NA),o=yf(n);return e&&w(a,l=>{const u=gf(l,o);if(u!==!1){const f={message:Zv(l,u),type:u.issue,tokenType:l};r.push(f)}else C(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(i=!0):fo(o,l.PATTERN)&&(i=!0)}),e&&!i&&r.push({message:`Warning: No LINE_BREAKS Found.
40
+ This Lexer has been defined to track line and column information,
41
+ But none of the Token Types can be identified as matching a line terminator.
42
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
43
+ for details.`,type:q.NO_LINE_BREAKS_FLAGS}),r}function Yv(t){const e={},n=Oe(t);return w(n,r=>{const i=t[r];if(P(i))e[r]=[];else throw Error("non exhaustive match")}),e}function mf(t){const e=t.PATTERN;if(ot(e))return!1;if(ct(e))return!0;if(C(e,"exec"))return!0;if(pe(e))return!1;throw Error("non exhaustive match")}function Xv(t){return pe(t)&&t.length===1?t.charCodeAt(0):!1}const Jv={test:function(t){const e=t.length;for(let n=this.lastIndex;n<e;n++){const r=t.charCodeAt(n);if(r===10)return this.lastIndex=n+1,!0;if(r===13)return t.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function gf(t,e){if(C(t,"LINE_BREAKS"))return!1;if(ot(t.PATTERN)){try{fo(e,t.PATTERN)}catch(n){return{issue:q.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(pe(t.PATTERN))return!1;if(mf(t))return{issue:q.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function Zv(t,e){if(e.issue===q.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
44
+ The problem is in the <${t.name}> Token Type
45
+ Root cause: ${e.errMsg}.
46
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===q.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
47
+ The problem is in the <${t.name}> Token Type
48
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function yf(t){return I(t,n=>pe(n)?n.charCodeAt(0):n)}function bs(t,e,n){t[e]===void 0?t[e]=[n]:t[e].push(n)}const ur=256;let fi=[];function gt(t){return t<ur?t:fi[t]}function Qv(){if(U(fi)){fi=new Array(65536);for(let t=0;t<65536;t++)fi[t]=t>255?255+~~(t/255):t}}function Lr(t,e){const n=t.tokenTypeIdx;return n===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[n]===!0}function Ni(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}let Tl=1;const Tf={};function Or(t){const e=eR(t);tR(e),rR(e),nR(e),w(e,n=>{n.isParent=n.categoryMatches.length>0})}function eR(t){let e=se(t),n=t,r=!0;for(;r;){n=_r(Ge(I(n,s=>s.CATEGORIES)));const i=os(n,e);e=e.concat(i),U(i)?r=!1:n=i}return e}function tR(t){w(t,e=>{Rf(e)||(Tf[Tl]=e,e.tokenTypeIdx=Tl++),vl(e)&&!P(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),vl(e)||(e.CATEGORIES=[]),iR(e)||(e.categoryMatches=[]),sR(e)||(e.categoryMatchesMap={})})}function nR(t){w(t,e=>{e.categoryMatches=[],w(e.categoryMatchesMap,(n,r)=>{e.categoryMatches.push(Tf[r].tokenTypeIdx)})})}function rR(t){w(t,e=>{vf([],e)})}function vf(t,e){w(t,n=>{e.categoryMatchesMap[n.tokenTypeIdx]=!0}),w(e.CATEGORIES,n=>{const r=t.concat(e);de(r,n)||vf(r,n)})}function Rf(t){return C(t,"tokenTypeIdx")}function vl(t){return C(t,"CATEGORIES")}function iR(t){return C(t,"categoryMatches")}function sR(t){return C(t,"categoryMatchesMap")}function aR(t){return C(t,"tokenTypeIdx")}const ca={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,n,r,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${n} characters.`}};var q;(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(q||(q={}));const cr={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
49
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ca,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(cr);class he{constructor(e,n=cr){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=(i,s)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const a=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${a}--> <${i}>`);const{time:o,value:l}=cf(s),u=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${a}<-- <${i}> time: ${o}ms`),this.traceInitIndent--,l}else return s()},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
50
+ a boolean 2nd argument is no longer supported`);this.config=$e({},cr,n);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 i,s=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===cr.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Jv;else if(this.config.lineTerminatorCharacters===cr.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
51
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.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),P(e)?i={modes:{defaultMode:se(e)},defaultMode:lr}:(s=!1,i=se(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(zv(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(qv(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},w(i.modes,(o,l)=>{i.modes[l]=ls(o,u=>lt(u))});const a=Oe(i.modes);if(w(i.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(_v(o,a))}),U(this.lexerDefinitionErrors)){Or(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=Nv(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=$e({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=i.defaultMode,!U(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=I(this.lexerDefinitionErrors,u=>u.message).join(`-----------------------
52
+ `);throw new Error(`Errors detected in definition of Lexer:
53
+ `+l)}w(this.lexerDefinitionWarning,o=>{uf(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(pf?(this.chopInput=Tn,this.match=this.matchWithTest):(this.updateLastIndex=X,this.match=this.matchWithExec),s&&(this.handleModes=X),this.trackStartLines===!1&&(this.computeNewColumn=Tn),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=X),/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=xe(this.canModeBeOptimized,(l,u,c)=>(u===!1&&l.push(c),l),[]);if(n.ensureOptimizations&&!U(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized.
54
+ Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
55
+ Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{kv()}),this.TRACE_INIT("toFastProperties",()=>{ff(this)})})}tokenize(e,n=this.defaultMode){if(!U(this.lexerDefinitionErrors)){const i=I(this.lexerDefinitionErrors,s=>s.message).join(`-----------------------
56
+ `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
57
+ `+i)}return this.tokenizeInternal(e,n)}tokenizeInternal(e,n){let r,i,s,a,o,l,u,c,f,d,h,m,g,R,y;const E=e,v=E.length;let S=0,M=0;const ae=this.hasCustom?0:Math.floor(e.length/10),Me=new Array(ae),Te=[];let He=this.trackStartLines?1:void 0,Ie=this.trackStartLines?1:void 0;const $=Yv(this.emptyGroups),T=this.trackStartLines,k=this.config.lineTerminatorsPattern;let x=0,L=[],b=[];const _=[],ve=[];Object.freeze(ve);let Z;function W(){return L}function It(oe){const Ce=gt(oe),zt=b[Ce];return zt===void 0?ve:zt}const Sd=oe=>{if(_.length===1&&oe.tokenType.PUSH_MODE===void 0){const Ce=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(oe);Te.push({offset:oe.startOffset,line:oe.startLine,column:oe.startColumn,length:oe.image.length,message:Ce})}else{_.pop();const Ce=Rn(_);L=this.patternIdxToConfig[Ce],b=this.charCodeToPatternIdxToConfig[Ce],x=L.length;const zt=this.canModeBeOptimized[Ce]&&this.config.safeMode===!1;b&&zt?Z=It:Z=W}};function ko(oe){_.push(oe),b=this.charCodeToPatternIdxToConfig[oe],L=this.patternIdxToConfig[oe],x=L.length,x=L.length;const Ce=this.canModeBeOptimized[oe]&&this.config.safeMode===!1;b&&Ce?Z=It:Z=W}ko.call(this,n);let De;const Io=this.config.recoveryEnabled;for(;S<v;){l=null;const oe=E.charCodeAt(S),Ce=Z(oe),zt=Ce.length;for(r=0;r<zt;r++){De=Ce[r];const Re=De.pattern;u=null;const Qe=De.short;if(Qe!==!1?oe===Qe&&(l=Re):De.isCustom===!0?(y=Re.exec(E,S,Me,$),y!==null?(l=y[0],y.payload!==void 0&&(u=y.payload)):l=null):(this.updateLastIndex(Re,S),l=this.match(Re,e,S)),l!==null){if(o=De.longerAlt,o!==void 0){const ht=o.length;for(s=0;s<ht;s++){const et=L[o[s]],Ct=et.pattern;if(c=null,et.isCustom===!0?(y=Ct.exec(E,S,Me,$),y!==null?(a=y[0],y.payload!==void 0&&(c=y.payload)):a=null):(this.updateLastIndex(Ct,S),a=this.match(Ct,e,S)),a&&a.length>l.length){l=a,u=c,De=et;break}}}break}}if(l!==null){if(f=l.length,d=De.group,d!==void 0&&(h=De.tokenTypeIdx,m=this.createTokenInstance(l,S,h,De.tokenType,He,Ie,f),this.handlePayload(m,u),d===!1?M=this.addToken(Me,M,m):$[d].push(m)),e=this.chopInput(e,f),S=S+f,Ie=this.computeNewColumn(Ie,f),T===!0&&De.canLineTerminator===!0){let Re=0,Qe,ht;k.lastIndex=0;do Qe=k.test(l),Qe===!0&&(ht=k.lastIndex-1,Re++);while(Qe===!0);Re!==0&&(He=He+Re,Ie=f-ht,this.updateTokenEndLineColumnLocation(m,d,ht,Re,He,Ie,f))}this.handleModes(De,Sd,ko,m)}else{const Re=S,Qe=He,ht=Ie;let et=Io===!1;for(;et===!1&&S<v;)for(e=this.chopInput(e,1),S++,i=0;i<x;i++){const Ct=L[i],vs=Ct.pattern,Co=Ct.short;if(Co!==!1?E.charCodeAt(S)===Co&&(et=!0):Ct.isCustom===!0?et=vs.exec(E,S,Me,$)!==null:(this.updateLastIndex(vs,S),et=vs.exec(e)!==null),et===!0)break}if(g=S-Re,Ie=this.computeNewColumn(Ie,g),R=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(E,Re,g,Qe,ht),Te.push({offset:Re,line:Qe,column:ht,length:g,message:R}),Io===!1)break}}return this.hasCustom||(Me.length=M),{tokens:Me,groups:$,errors:Te}}handleModes(e,n,r,i){if(e.pop===!0){const s=e.push;n(i),s!==void 0&&r.call(this,s)}else e.push!==void 0&&r.call(this,e.push)}chopInput(e,n){return e.substring(n)}updateLastIndex(e,n){e.lastIndex=n}updateTokenEndLineColumnLocation(e,n,r,i,s,a,o){let l,u;n!==void 0&&(l=r===o-1,u=l?-1:0,i===1&&l===!0||(e.endLine=s+u,e.endColumn=a-1+-u))}computeNewColumn(e,n){return e+n}createOffsetOnlyToken(e,n,r,i){return{image:e,startOffset:n,tokenTypeIdx:r,tokenType:i}}createStartOnlyToken(e,n,r,i,s,a){return{image:e,startOffset:n,startLine:s,startColumn:a,tokenTypeIdx:r,tokenType:i}}createFullToken(e,n,r,i,s,a,o){return{image:e,startOffset:n,endOffset:n+o-1,startLine:s,endLine:s,startColumn:a,endColumn:a+o-1,tokenTypeIdx:r,tokenType:i}}addTokenUsingPush(e,n,r){return e.push(r),n}addTokenUsingMemberAccess(e,n,r){return e[n]=r,n++,n}handlePayloadNoCustom(e,n){}handlePayloadWithCustom(e,n){n!==null&&(e.payload=n)}matchWithTest(e,n,r){return e.test(n)===!0?n.substring(r,e.lastIndex):null}matchWithExec(e,n){const r=e.exec(n);return r!==null?r[0]:null}}he.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";he.NA=/NOT_APPLICABLE/;function Qt(t){return Af(t)?t.LABEL:t.name}function Af(t){return pe(t.LABEL)&&t.LABEL!==""}const oR="parent",Rl="categories",Al="label",El="group",$l="push_mode",xl="pop_mode",Sl="longer_alt",kl="line_breaks",Il="start_chars_hint";function Ef(t){return lR(t)}function lR(t){const e=t.pattern,n={};if(n.name=t.name,lt(e)||(n.PATTERN=e),C(t,oR))throw`The parent property is no longer supported.
58
+ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return C(t,Rl)&&(n.CATEGORIES=t[Rl]),Or([n]),C(t,Al)&&(n.LABEL=t[Al]),C(t,El)&&(n.GROUP=t[El]),C(t,xl)&&(n.POP_MODE=t[xl]),C(t,$l)&&(n.PUSH_MODE=t[$l]),C(t,Sl)&&(n.LONGER_ALT=t[Sl]),C(t,kl)&&(n.LINE_BREAKS=t[kl]),C(t,Il)&&(n.START_CHARS_HINT=t[Il]),n}const yt=Ef({name:"EOF",pattern:he.NA});Or([yt]);function ho(t,e,n,r,i,s,a,o){return{image:e,startOffset:n,endOffset:r,startLine:i,endLine:s,startColumn:a,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function $f(t,e){return Lr(t,e)}const Xt={buildMismatchTokenMessage({expected:t,actual:e,previous:n,ruleName:r}){return`Expecting ${Af(t)?`--> ${Qt(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:n,customUserDescription:r,ruleName:i}){const s="Expecting: ",o=`
59
+ but found: '`+je(e).image+"'";if(r)return s+r+o;{const l=xe(t,(d,h)=>d.concat(h),[]),u=I(l,d=>`[${I(d,h=>Qt(h)).join(", ")}]`),f=`one of these possible Token sequences:
60
+ ${I(u,(d,h)=>` ${h+1}. ${d}`).join(`
61
+ `)}`;return s+f+o}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:n,ruleName:r}){const i="Expecting: ",a=`
62
+ but found: '`+je(e).image+"'";if(n)return i+n+a;{const l=`expecting at least one iteration which starts with one of these possible Token sequences::
63
+ <${I(t,u=>`[${I(u,c=>Qt(c)).join(",")}]`).join(" ,")}>`;return i+l+a}}};Object.freeze(Xt);const uR={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
64
+ inside top level rule: ->`+t.name+"<-"}},bt={buildDuplicateFoundError(t,e){function n(c){return c instanceof j?c.terminalType.name:c instanceof ce?c.nonTerminalName:""}const r=t.name,i=je(e),s=i.idx,a=We(i),o=n(i),l=s>0;let u=`->${a}${l?s:""}<- ${o?`with argument: ->${o}<-`:""}
65
+ appears more than once (${e.length} times) in the top level rule: ->${r}<-.
66
+ For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
67
+ `;return u=u.replace(/[ \t]+/g," "),u=u.replace(/\s\s+/g,`
68
+ `),u},buildNamespaceConflictError(t){return`Namespace conflict found in grammar.
69
+ The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>.
70
+ To resolve this make sure each Terminal and Non-Terminal names are unique
71
+ This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
72
+ and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){const e=I(t.prefixPath,i=>Qt(i)).join(", "),n=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix
73
+ in <OR${n}> inside <${t.topLevelRule.name}> Rule,
74
+ <${e}> may appears as a prefix path in all these alternatives.
75
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
76
+ For Further details.`},buildAlternationAmbiguityError(t){const e=I(t.prefixPath,i=>Qt(i)).join(", "),n=t.alternation.idx===0?"":t.alternation.idx;let r=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in <OR${n}> inside <${t.topLevelRule.name}> Rule,
77
+ <${e}> may appears as a prefix path in all these alternatives.
78
+ `;return r=r+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
79
+ For Further details.`,r},buildEmptyRepetitionError(t){let e=We(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens.
80
+ This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
81
+ Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives:
82
+ <OR${t.alternation.idx}> inside <${t.topLevelRule.name}> Rule.
83
+ has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){const e=t.topLevelRule.name,n=I(t.leftRecursionPath,s=>s.name),r=`${e} --> ${n.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar.
84
+ rule: <${e}> can be invoked from itself (directly or indirectly)
85
+ without consuming any Tokens. The grammar path that causes this is:
86
+ ${r}
87
+ To fix this refactor your grammar to remove the left recursion.
88
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof In?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function cR(t,e){const n=new fR(t,e);return n.resolveRefs(),n.errors}class fR extends Cn{constructor(e,n){super(),this.nameToTopRule=e,this.errMsgProvider=n,this.errors=[]}resolveRefs(){w(J(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const n=this.nameToTopRule[e.nonTerminalName];if(n)e.referencedRule=n;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:fe.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}class dR extends us{constructor(e,n){super(),this.topProd=e,this.path=n,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=se(this.path.ruleStack).reverse(),this.occurrenceStack=se(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,n=[]){this.found||super.walk(e,n)}walkProdRef(e,n,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const i=n.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){U(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class hR extends dR{constructor(e,n){super(e,n),this.path=n,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,n,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const i=n.concat(r),s=new me({definition:i});this.possibleTokTypes=br(s),this.found=!0}}}class fs extends us{constructor(e,n){super(),this.topRule=e,this.occurrence=n,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class pR extends fs{walkMany(e,n,r){if(e.idx===this.occurrence){const i=je(n.concat(r));this.result.isEndOfRule=i===void 0,i instanceof j&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,n,r)}}class Cl extends fs{walkManySep(e,n,r){if(e.idx===this.occurrence){const i=je(n.concat(r));this.result.isEndOfRule=i===void 0,i instanceof j&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,n,r)}}class mR extends fs{walkAtLeastOne(e,n,r){if(e.idx===this.occurrence){const i=je(n.concat(r));this.result.isEndOfRule=i===void 0,i instanceof j&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,n,r)}}class wl extends fs{walkAtLeastOneSep(e,n,r){if(e.idx===this.occurrence){const i=je(n.concat(r));this.result.isEndOfRule=i===void 0,i instanceof j&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,n,r)}}function fa(t,e,n=[]){n=se(n);let r=[],i=0;function s(o){return o.concat(te(t,i+1))}function a(o){const l=fa(s(o),e,n);return r.concat(l)}for(;n.length<e&&i<t.length;){const o=t[i];if(o instanceof me)return a(o.definition);if(o instanceof ce)return a(o.definition);if(o instanceof ie)r=a(o.definition);else if(o instanceof Se){const l=o.definition.concat([new z({definition:o.definition})]);return a(l)}else if(o instanceof ke){const l=[new me({definition:o.definition}),new z({definition:[new j({terminalType:o.separator})].concat(o.definition)})];return a(l)}else if(o instanceof ge){const l=o.definition.concat([new z({definition:[new j({terminalType:o.separator})].concat(o.definition)})]);r=a(l)}else if(o instanceof z){const l=o.definition.concat([new z({definition:o.definition})]);r=a(l)}else{if(o instanceof ye)return w(o.definition,l=>{U(l.definition)===!1&&(r=a(l.definition))}),r;if(o instanceof j)n.push(o.terminalType);else throw Error("non exhaustive match")}i++}return r.push({partialPath:n,suffixDef:te(t,i)}),r}function xf(t,e,n,r){const i="EXIT_NONE_TERMINAL",s=[i],a="EXIT_ALTERNATIVE";let o=!1;const l=e.length,u=l-r-1,c=[],f=[];for(f.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!U(f);){const d=f.pop();if(d===a){o&&Rn(f).idx<=u&&f.pop();continue}const h=d.def,m=d.idx,g=d.ruleStack,R=d.occurrenceStack;if(U(h))continue;const y=h[0];if(y===i){const E={idx:m,def:te(h),ruleStack:Er(g),occurrenceStack:Er(R)};f.push(E)}else if(y instanceof j)if(m<l-1){const E=m+1,v=e[E];if(n(v,y.terminalType)){const S={idx:E,def:te(h),ruleStack:g,occurrenceStack:R};f.push(S)}}else if(m===l-1)c.push({nextTokenType:y.terminalType,nextTokenOccurrence:y.idx,ruleStack:g,occurrenceStack:R}),o=!0;else throw Error("non exhaustive match");else if(y instanceof ce){const E=se(g);E.push(y.nonTerminalName);const v=se(R);v.push(y.idx);const S={idx:m,def:y.definition.concat(s,te(h)),ruleStack:E,occurrenceStack:v};f.push(S)}else if(y instanceof ie){const E={idx:m,def:te(h),ruleStack:g,occurrenceStack:R};f.push(E),f.push(a);const v={idx:m,def:y.definition.concat(te(h)),ruleStack:g,occurrenceStack:R};f.push(v)}else if(y instanceof Se){const E=new z({definition:y.definition,idx:y.idx}),v=y.definition.concat([E],te(h)),S={idx:m,def:v,ruleStack:g,occurrenceStack:R};f.push(S)}else if(y instanceof ke){const E=new j({terminalType:y.separator}),v=new z({definition:[E].concat(y.definition),idx:y.idx}),S=y.definition.concat([v],te(h)),M={idx:m,def:S,ruleStack:g,occurrenceStack:R};f.push(M)}else if(y instanceof ge){const E={idx:m,def:te(h),ruleStack:g,occurrenceStack:R};f.push(E),f.push(a);const v=new j({terminalType:y.separator}),S=new z({definition:[v].concat(y.definition),idx:y.idx}),M=y.definition.concat([S],te(h)),ae={idx:m,def:M,ruleStack:g,occurrenceStack:R};f.push(ae)}else if(y instanceof z){const E={idx:m,def:te(h),ruleStack:g,occurrenceStack:R};f.push(E),f.push(a);const v=new z({definition:y.definition,idx:y.idx}),S=y.definition.concat([v],te(h)),M={idx:m,def:S,ruleStack:g,occurrenceStack:R};f.push(M)}else if(y instanceof ye)for(let E=y.definition.length-1;E>=0;E--){const v=y.definition[E],S={idx:m,def:v.definition.concat(te(h)),ruleStack:g,occurrenceStack:R};f.push(S),f.push(a)}else if(y instanceof me)f.push({idx:m,def:y.definition.concat(te(h)),ruleStack:g,occurrenceStack:R});else if(y instanceof In)f.push(gR(y,m,g,R));else throw Error("non exhaustive match")}return c}function gR(t,e,n,r){const i=se(n);i.push(t.name);const s=se(r);return s.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:s}}var V;(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(V||(V={}));function po(t){if(t instanceof ie||t==="Option")return V.OPTION;if(t instanceof z||t==="Repetition")return V.REPETITION;if(t instanceof Se||t==="RepetitionMandatory")return V.REPETITION_MANDATORY;if(t instanceof ke||t==="RepetitionMandatoryWithSeparator")return V.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof ge||t==="RepetitionWithSeparator")return V.REPETITION_WITH_SEPARATOR;if(t instanceof ye||t==="Alternation")return V.ALTERNATION;throw Error("non exhaustive match")}function Nl(t){const{occurrence:e,rule:n,prodType:r,maxLookahead:i}=t,s=po(r);return s===V.ALTERNATION?ds(e,n,i):hs(e,n,s,i)}function yR(t,e,n,r,i,s){const a=ds(t,e,n),o=If(a)?Ni:Lr;return s(a,r,o,i)}function TR(t,e,n,r,i,s){const a=hs(t,e,i,n),o=If(a)?Ni:Lr;return s(a[0],o,r)}function vR(t,e,n,r){const i=t.length,s=Ue(t,a=>Ue(a,o=>o.length===1));if(e)return function(a){const o=I(a,l=>l.GATE);for(let l=0;l<i;l++){const u=t[l],c=u.length,f=o[l];if(!(f!==void 0&&f.call(this)===!1))e:for(let d=0;d<c;d++){const h=u[d],m=h.length;for(let g=0;g<m;g++){const R=this.LA(g+1);if(n(R,h[g])===!1)continue e}return l}}};if(s&&!r){const a=I(t,l=>Ge(l)),o=xe(a,(l,u,c)=>(w(u,f=>{C(l,f.tokenTypeIdx)||(l[f.tokenTypeIdx]=c),w(f.categoryMatches,d=>{C(l,d)||(l[d]=c)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let a=0;a<i;a++){const o=t[a],l=o.length;e:for(let u=0;u<l;u++){const c=o[u],f=c.length;for(let d=0;d<f;d++){const h=this.LA(d+1);if(n(h,c[d])===!1)continue e}return a}}}}function RR(t,e,n){const r=Ue(t,s=>s.length===1),i=t.length;if(r&&!n){const s=Ge(t);if(s.length===1&&U(s[0].categoryMatches)){const o=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const a=xe(s,(o,l,u)=>(o[l.tokenTypeIdx]=!0,w(l.categoryMatches,c=>{o[c]=!0}),o),[]);return function(){const o=this.LA(1);return a[o.tokenTypeIdx]===!0}}}else return function(){e:for(let s=0;s<i;s++){const a=t[s],o=a.length;for(let l=0;l<o;l++){const u=this.LA(l+1);if(e(u,a[l])===!1)continue e}return!0}return!1}}class AR extends us{constructor(e,n,r){super(),this.topProd=e,this.targetOccurrence=n,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,n,r,i){return e.idx===this.targetOccurrence&&this.targetProdType===n?(this.restDef=r.concat(i),!0):!1}walkOption(e,n,r){this.checkIsTarget(e,V.OPTION,n,r)||super.walkOption(e,n,r)}walkAtLeastOne(e,n,r){this.checkIsTarget(e,V.REPETITION_MANDATORY,n,r)||super.walkOption(e,n,r)}walkAtLeastOneSep(e,n,r){this.checkIsTarget(e,V.REPETITION_MANDATORY_WITH_SEPARATOR,n,r)||super.walkOption(e,n,r)}walkMany(e,n,r){this.checkIsTarget(e,V.REPETITION,n,r)||super.walkOption(e,n,r)}walkManySep(e,n,r){this.checkIsTarget(e,V.REPETITION_WITH_SEPARATOR,n,r)||super.walkOption(e,n,r)}}class Sf extends Cn{constructor(e,n,r){super(),this.targetOccurrence=e,this.targetProdType=n,this.targetRef=r,this.result=[]}checkIsTarget(e,n){e.idx===this.targetOccurrence&&this.targetProdType===n&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,V.OPTION)}visitRepetition(e){this.checkIsTarget(e,V.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,V.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,V.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,V.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,V.ALTERNATION)}}function _l(t){const e=new Array(t);for(let n=0;n<t;n++)e[n]=[];return e}function Ls(t){let e=[""];for(let n=0;n<t.length;n++){const r=t[n],i=[];for(let s=0;s<e.length;s++){const a=e[s];i.push(a+"_"+r.tokenTypeIdx);for(let o=0;o<r.categoryMatches.length;o++){const l="_"+r.categoryMatches[o];i.push(a+l)}}e=i}return e}function ER(t,e,n){for(let r=0;r<t.length;r++){if(r===n)continue;const i=t[r];for(let s=0;s<e.length;s++){const a=e[s];if(i[a]===!0)return!1}}return!0}function kf(t,e){const n=I(t,a=>fa([a],1)),r=_l(n.length),i=I(n,a=>{const o={};return w(a,l=>{const u=Ls(l.partialPath);w(u,c=>{o[c]=!0})}),o});let s=n;for(let a=1;a<=e;a++){const o=s;s=_l(o.length);for(let l=0;l<o.length;l++){const u=o[l];for(let c=0;c<u.length;c++){const f=u[c].partialPath,d=u[c].suffixDef,h=Ls(f);if(ER(i,h,l)||U(d)||f.length===e){const g=r[l];if(da(g,f)===!1){g.push(f);for(let R=0;R<h.length;R++){const y=h[R];i[l][y]=!0}}}else{const g=fa(d,a+1,f);s[l]=s[l].concat(g),w(g,R=>{const y=Ls(R.partialPath);w(y,E=>{i[l][E]=!0})})}}}}return r}function ds(t,e,n,r){const i=new Sf(t,V.ALTERNATION,r);return e.accept(i),kf(i.result,n)}function hs(t,e,n,r){const i=new Sf(t,n);e.accept(i);const s=i.result,o=new AR(e,t,n).startWalking(),l=new me({definition:s}),u=new me({definition:o});return kf([l,u],r)}function da(t,e){e:for(let n=0;n<t.length;n++){const r=t[n];if(r.length===e.length){for(let i=0;i<r.length;i++){const s=e[i],a=r[i];if((s===a||a.categoryMatchesMap[s.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function $R(t,e){return t.length<e.length&&Ue(t,(n,r)=>{const i=e[r];return n===i||i.categoryMatchesMap[n.tokenTypeIdx]})}function If(t){return Ue(t,e=>Ue(e,n=>Ue(n,r=>U(r.categoryMatches))))}function xR(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return I(e,n=>Object.assign({type:fe.CUSTOM_LOOKAHEAD_VALIDATION},n))}function SR(t,e,n,r){const i=Ne(t,l=>kR(l,n)),s=FR(t,e,n),a=Ne(t,l=>OR(l,n)),o=Ne(t,l=>wR(l,t,r,n));return i.concat(s,a,o)}function kR(t,e){const n=new CR;t.accept(n);const r=n.allProductions,i=HT(r,IR),s=Ke(i,o=>o.length>1);return I(J(s),o=>{const l=je(o),u=e.buildDuplicateFoundError(t,o),c=We(l),f={message:u,type:fe.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:c,occurrence:l.idx},d=Cf(l);return d&&(f.parameter=d),f})}function IR(t){return`${We(t)}_#_${t.idx}_#_${Cf(t)}`}function Cf(t){return t instanceof j?t.terminalType.name:t instanceof ce?t.nonTerminalName:""}class CR extends Cn{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 wR(t,e,n,r){const i=[];if(xe(e,(a,o)=>o.name===t.name?a+1:a,0)>1){const a=r.buildDuplicateRuleNameError({topLevelRule:t,grammarName:n});i.push({message:a,type:fe.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}function NR(t,e,n){const r=[];let i;return de(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:fe.INVALID_RULE_OVERRIDE,ruleName:t})),r}function wf(t,e,n,r=[]){const i=[],s=di(e.definition);if(U(s))return[];{const a=t.name;de(s,t)&&i.push({message:n.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:r}),type:fe.LEFT_RECURSION,ruleName:a});const l=os(s,r.concat([t])),u=Ne(l,c=>{const f=se(r);return f.push(c),wf(t,c,n,f)});return i.concat(u)}}function di(t){let e=[];if(U(t))return e;const n=je(t);if(n instanceof ce)e.push(n.referencedRule);else if(n instanceof me||n instanceof ie||n instanceof Se||n instanceof ke||n instanceof ge||n instanceof z)e=e.concat(di(n.definition));else if(n instanceof ye)e=Ge(I(n.definition,s=>di(s.definition)));else if(!(n instanceof j))throw Error("non exhaustive match");const r=Ci(n),i=t.length>1;if(r&&i){const s=te(t);return e.concat(di(s))}else return e}class mo extends Cn{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}function _R(t,e){const n=new mo;t.accept(n);const r=n.alternations;return Ne(r,s=>{const a=Er(s.definition);return Ne(a,(o,l)=>{const u=xf([o],[],Lr,1);return U(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:s,emptyChoiceIdx:l}),type:fe.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:s.idx,alternative:l+1}]:[]})})}function bR(t,e,n){const r=new mo;t.accept(r);let i=r.alternations;return i=ls(i,a=>a.ignoreAmbiguities===!0),Ne(i,a=>{const o=a.idx,l=a.maxLookahead||e,u=ds(o,t,l,a),c=MR(u,a,t,n),f=DR(u,a,t,n);return c.concat(f)})}class LR extends Cn{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 OR(t,e){const n=new mo;t.accept(n);const r=n.alternations;return Ne(r,s=>s.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:s}),type:fe.TOO_MANY_ALTS,ruleName:t.name,occurrence:s.idx}]:[])}function PR(t,e,n){const r=[];return w(t,i=>{const s=new LR;i.accept(s);const a=s.allProductions;w(a,o=>{const l=po(o),u=o.maxLookahead||e,c=o.idx,d=hs(c,i,l,u)[0];if(U(Ge(d))){const h=n.buildEmptyRepetitionError({topLevelRule:i,repetition:o});r.push({message:h,type:fe.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),r}function MR(t,e,n,r){const i=[],s=xe(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||w(l,c=>{const f=[u];w(t,(d,h)=>{u!==h&&da(d,c)&&e.definition[h].ignoreAmbiguities!==!0&&f.push(h)}),f.length>1&&!da(i,c)&&(i.push(c),o.push({alts:f,path:c}))}),o),[]);return I(s,o=>{const l=I(o.alts,c=>c+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:fe.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:e.idx,alternatives:o.alts}})}function DR(t,e,n,r){const i=xe(t,(a,o,l)=>{const u=I(o,c=>({idx:l,path:c}));return a.concat(u)},[]);return _r(Ne(i,a=>{if(e.definition[a.idx].ignoreAmbiguities===!0)return[];const l=a.idx,u=a.path,c=Pe(i,d=>e.definition[d.idx].ignoreAmbiguities!==!0&&d.idx<l&&$R(d.path,u));return I(c,d=>{const h=[d.idx+1,l+1],m=e.idx===0?"":e.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:e,ambiguityIndices:h,prefixPath:d.path}),type:fe.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:m,alternatives:h}})}))}function FR(t,e,n){const r=[],i=I(e,s=>s.name);return w(t,s=>{const a=s.name;if(de(i,a)){const o=n.buildNamespaceConflictError(s);r.push({message:o,type:fe.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:a})}}),r}function GR(t){const e=uo(t,{errMsgProvider:uR}),n={};return w(t.rules,r=>{n[r.name]=r}),cR(n,e.errMsgProvider)}function UR(t){return t=uo(t,{errMsgProvider:bt}),SR(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}const Nf="MismatchedTokenException",_f="NoViableAltException",bf="EarlyExitException",Lf="NotAllInputParsedException",Of=[Nf,_f,bf,Lf];Object.freeze(Of);function _i(t){return de(Of,t.name)}class ps extends Error{constructor(e,n){super(e),this.token=n,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Pf extends ps{constructor(e,n,r){super(e,n),this.previousToken=r,this.name=Nf}}class BR extends ps{constructor(e,n,r){super(e,n),this.previousToken=r,this.name=_f}}class jR extends ps{constructor(e,n){super(e,n),this.name=Lf}}class KR extends ps{constructor(e,n,r){super(e,n),this.previousToken=r,this.name=bf}}const Os={},Mf="InRuleRecoveryException";class VR extends Error{constructor(e){super(e),this.name=Mf}}class HR{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=C(e,"recoveryEnabled")?e.recoveryEnabled:ut.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=WR)}getTokenToInsert(e){const n=ho(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,n,r,i){const s=this.findReSyncTokenType(),a=this.exportLexerState(),o=[];let l=!1;const u=this.LA(1);let c=this.LA(1);const f=()=>{const d=this.LA(0),h=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:u,previous:d,ruleName:this.getCurrRuleFullName()}),m=new Pf(h,u,this.LA(0));m.resyncedTokens=Er(o),this.SAVE_ERROR(m)};for(;!l;)if(this.tokenMatcher(c,i)){f();return}else if(r.call(this)){f(),e.apply(this,n);return}else this.tokenMatcher(c,s)?l=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,n,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,n)))}getFollowsForInRuleRecovery(e,n){const r=this.getCurrentGrammarPath(e,n);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,n){if(this.canRecoverWithSingleTokenInsertion(e,n))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new VR("sad sad panda")}canPerformInRuleRecovery(e,n){return this.canRecoverWithSingleTokenInsertion(e,n)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,n){if(!this.canTokenTypeBeInsertedInRecovery(e)||U(n))return!1;const r=this.LA(1);return An(n,s=>this.tokenMatcher(r,s))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const n=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(n);return de(r,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let n=this.LA(1),r=2;for(;;){const i=An(e,s=>$f(n,s));if(i!==void 0)return i;n=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Os;const e=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return I(e,(r,i)=>i===0?Os:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:n[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){const e=I(this.buildFullFollowKeyStack(),n=>this.getFollowSetFromFollowKey(n));return Ge(e)}getFollowSetFromFollowKey(e){if(e===Os)return[yt];const n=e.ruleName+e.idxInCallingRule+df+e.inRule;return this.resyncFollows[n]}addToResyncTokens(e,n){return this.tokenMatcher(e,yt)||n.push(e),n}reSyncTo(e){const n=[];let r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,n);return Er(n)}attemptInRepetitionRecovery(e,n,r,i,s,a,o){}getCurrentGrammarPath(e,n){const r=this.getHumanReadableRuleStack(),i=se(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:i,lastTok:e,lastTokOccurrence:n}}getHumanReadableRuleStack(){return I(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}}function WR(t,e,n,r,i,s,a){const o=this.getKeyForAutomaticLookahead(r,i);let l=this.firstAfterRepMap[o];if(l===void 0){const d=this.getCurrRuleFullName(),h=this.getGAstProductions()[d];l=new s(h,i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence;const f=l.isEndOfRule;this.RULE_STACK.length===1&&f&&u===void 0&&(u=yt,c=1),!(u===void 0||c===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,c,a)&&this.tryInRepetitionRecovery(t,e,n,u)}const zR=4,At=8,Df=1<<At,Ff=2<<At,ha=3<<At,pa=4<<At,ma=5<<At,hi=6<<At;function Ps(t,e,n){return n|e|t}class go{constructor(e){var n;this.maxLookahead=(n=e?.maxLookahead)!==null&&n!==void 0?n:ut.maxLookahead}validate(e){const n=this.validateNoLeftRecursion(e.rules);if(U(n)){const r=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),s=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...n,...r,...i,...s]}return n}validateNoLeftRecursion(e){return Ne(e,n=>wf(n,n,bt))}validateEmptyOrAlternatives(e){return Ne(e,n=>_R(n,bt))}validateAmbiguousAlternationAlternatives(e,n){return Ne(e,r=>bR(r,n,bt))}validateSomeNonEmptyLookaheadPath(e,n){return PR(e,n,bt)}buildLookaheadForAlternation(e){return yR(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,vR)}buildLookaheadForOptional(e){return TR(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,po(e.prodType),RR)}}class qR{initLooksAhead(e){this.dynamicTokensEnabled=C(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:ut.dynamicTokensEnabled,this.maxLookahead=C(e,"maxLookahead")?e.maxLookahead:ut.maxLookahead,this.lookaheadStrategy=C(e,"lookaheadStrategy")?e.lookaheadStrategy:new go({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){w(e,n=>{this.TRACE_INIT(`${n.name} Rule Lookahead`,()=>{const{alternation:r,repetition:i,option:s,repetitionMandatory:a,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=XR(n);w(r,u=>{const c=u.idx===0?"":u.idx;this.TRACE_INIT(`${We(u)}${c}`,()=>{const f=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:n,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),d=Ps(this.fullRuleNameToShort[n.name],Df,u.idx);this.setLaFuncCache(d,f)})}),w(i,u=>{this.computeLookaheadFunc(n,u.idx,ha,"Repetition",u.maxLookahead,We(u))}),w(s,u=>{this.computeLookaheadFunc(n,u.idx,Ff,"Option",u.maxLookahead,We(u))}),w(a,u=>{this.computeLookaheadFunc(n,u.idx,pa,"RepetitionMandatory",u.maxLookahead,We(u))}),w(o,u=>{this.computeLookaheadFunc(n,u.idx,hi,"RepetitionMandatoryWithSeparator",u.maxLookahead,We(u))}),w(l,u=>{this.computeLookaheadFunc(n,u.idx,ma,"RepetitionWithSeparator",u.maxLookahead,We(u))})})})}computeLookaheadFunc(e,n,r,i,s,a){this.TRACE_INIT(`${a}${n===0?"":n}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:n,rule:e,maxLookahead:s||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),l=Ps(this.fullRuleNameToShort[e.name],r,n);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,n){const r=this.getLastExplicitRuleShortName();return Ps(r,e,n)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,n){this.lookAheadFuncsCache.set(e,n)}}class YR extends Cn{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)}}const Jr=new YR;function XR(t){Jr.reset(),t.accept(Jr);const e=Jr.dslMethods;return Jr.reset(),e}function bl(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset)}function Ll(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.startColumn=e.startColumn,t.startLine=e.startLine,t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine):t.endOffset<e.endOffset&&(t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine)}function JR(t,e,n){t.children[n]===void 0?t.children[n]=[e]:t.children[n].push(e)}function ZR(t,e,n){t.children[e]===void 0?t.children[e]=[n]:t.children[e].push(n)}const QR="name";function Gf(t,e){Object.defineProperty(t,QR,{enumerable:!1,configurable:!0,writable:!1,value:e})}function eA(t,e){const n=Oe(t),r=n.length;for(let i=0;i<r;i++){const s=n[i],a=t[s],o=a.length;for(let l=0;l<o;l++){const u=a[l];u.tokenTypeIdx===void 0&&this[u.name](u.children,e)}}}function tA(t,e){const n=function(){};Gf(n,t+"BaseSemantics");const r={visit:function(i,s){if(P(i)&&(i=i[0]),!lt(i))return this[i.name](i.children,s)},validateVisitor:function(){const i=rA(this,e);if(!U(i)){const s=I(i,a=>a.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
89
+ ${s.join(`
90
+
91
+ `).replace(/\n/g,`
92
+ `)}`)}}};return n.prototype=r,n.prototype.constructor=n,n._RULE_NAMES=e,n}function nA(t,e,n){const r=function(){};Gf(r,t+"BaseSemanticsWithDefaults");const i=Object.create(n.prototype);return w(e,s=>{i[s]=eA}),r.prototype=i,r.prototype.constructor=r,r}var ga;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(ga||(ga={}));function rA(t,e){return iA(t,e)}function iA(t,e){const n=Pe(e,i=>ct(t[i])===!1),r=I(n,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:ga.MISSING_METHOD,methodName:i}));return _r(r)}class sA{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=C(e,"nodeLocationTracking")?e.nodeLocationTracking:ut.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=X,this.cstFinallyStateUpdate=X,this.cstPostTerminal=X,this.cstPostNonTerminal=X,this.cstPostRule=X;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ll,this.setNodeLocationFromNode=Ll,this.cstPostRule=X,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=X,this.setNodeLocationFromNode=X,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=bl,this.setNodeLocationFromNode=bl,this.cstPostRule=X,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=X,this.setNodeLocationFromNode=X,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=X,this.setNodeLocationFromNode=X,this.cstPostRule=X,this.setInitialNodeLocation=X;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 n=this.LA(1);e.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const n={name:e,children:Object.create(null)};this.setInitialNodeLocation(n),this.CST_STACK.push(n)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const n=this.LA(0),r=e.location;r.startOffset<=n.startOffset?(r.endOffset=n.endOffset,r.endLine=n.endLine,r.endColumn=n.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){const n=this.LA(0),r=e.location;r.startOffset<=n.startOffset?r.endOffset=n.endOffset:r.startOffset=NaN}cstPostTerminal(e,n){const r=this.CST_STACK[this.CST_STACK.length-1];JR(r,n,e),this.setNodeLocationFromToken(r.location,n)}cstPostNonTerminal(e,n){const r=this.CST_STACK[this.CST_STACK.length-1];ZR(r,n,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(lt(this.baseCstVisitorConstructor)){const e=tA(this.className,Oe(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(lt(this.baseCstVisitorWithDefaultsConstructor)){const e=nA(this.className,Oe(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]}}class aA{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)):Li}LA(e){const n=this.currIdx+e;return n<0||this.tokVectorLength<=n?Li:this.tokVector[n]}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()}}class oA{ACTION(e){return e.call(this)}consume(e,n,r){return this.consumeInternal(n,e,r)}subrule(e,n,r){return this.subruleInternal(n,e,r)}option(e,n){return this.optionInternal(n,e)}or(e,n){return this.orInternal(n,e)}many(e,n){return this.manyInternal(e,n)}atLeastOne(e,n){return this.atLeastOneInternal(e,n)}CONSUME(e,n){return this.consumeInternal(e,0,n)}CONSUME1(e,n){return this.consumeInternal(e,1,n)}CONSUME2(e,n){return this.consumeInternal(e,2,n)}CONSUME3(e,n){return this.consumeInternal(e,3,n)}CONSUME4(e,n){return this.consumeInternal(e,4,n)}CONSUME5(e,n){return this.consumeInternal(e,5,n)}CONSUME6(e,n){return this.consumeInternal(e,6,n)}CONSUME7(e,n){return this.consumeInternal(e,7,n)}CONSUME8(e,n){return this.consumeInternal(e,8,n)}CONSUME9(e,n){return this.consumeInternal(e,9,n)}SUBRULE(e,n){return this.subruleInternal(e,0,n)}SUBRULE1(e,n){return this.subruleInternal(e,1,n)}SUBRULE2(e,n){return this.subruleInternal(e,2,n)}SUBRULE3(e,n){return this.subruleInternal(e,3,n)}SUBRULE4(e,n){return this.subruleInternal(e,4,n)}SUBRULE5(e,n){return this.subruleInternal(e,5,n)}SUBRULE6(e,n){return this.subruleInternal(e,6,n)}SUBRULE7(e,n){return this.subruleInternal(e,7,n)}SUBRULE8(e,n){return this.subruleInternal(e,8,n)}SUBRULE9(e,n){return this.subruleInternal(e,9,n)}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,n,r=Oi){if(de(this.definedRulesNames,e)){const a={message:bt.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:fe.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(a)}this.definedRulesNames.push(e);const i=this.defineRule(e,n,r);return this[e]=i,i}OVERRIDE_RULE(e,n,r=Oi){const i=NR(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);const s=this.defineRule(e,n,r);return this[e]=s,s}BACKTRACK(e,n){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return e.apply(this,n),!0}catch(i){if(_i(i))return!1;throw i}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return gv(J(this.gastProductionsCache))}}class lA{initRecognizerEngine(e,n){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Ni,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},C(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
93
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
94
+ For Further details.`);if(P(e)){if(U(e))throw Error(`A Token Vocabulary cannot be empty.
95
+ Note that the first argument for the parser constructor
96
+ 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.
97
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
98
+ For Further details.`)}if(P(e))this.tokensMap=xe(e,(s,a)=>(s[a.name]=a,s),{});else if(C(e,"modes")&&Ue(Ge(J(e.modes)),aR)){const s=Ge(J(e.modes)),a=co(s);this.tokensMap=xe(a,(o,l)=>(o[l.name]=l,o),{})}else if(Le(e))this.tokensMap=se(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=yt;const r=C(e,"modes")?Ge(J(e.modes)):J(e),i=Ue(r,s=>U(s.categoryMatches));this.tokenMatcher=i?Ni:Lr,Or(J(this.tokensMap))}defineRule(e,n,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
99
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const i=C(r,"resyncEnabled")?r.resyncEnabled:Oi.resyncEnabled,s=C(r,"recoveryValueFunc")?r.recoveryValueFunc:Oi.recoveryValueFunc,a=this.ruleShortNameIdx<<zR+At;this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return this.outputCst===!0?o=function(...c){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),n.apply(this,c);const f=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(f),f}catch(f){return this.invokeRuleCatch(f,i,s)}finally{this.ruleFinallyStateUpdate()}}:o=function(...c){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),n.apply(this,c)}catch(f){return this.invokeRuleCatch(f,i,s)}finally{this.ruleFinallyStateUpdate()}},Object.assign(o,{ruleName:e,originalGrammarAction:n})}invokeRuleCatch(e,n,r){const i=this.RULE_STACK.length===1,s=n&&!this.isBackTracking()&&this.recoveryEnabled;if(_i(e)){const a=e;if(s){const o=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(o))if(a.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,a.partialCstResult=l}throw a}}else{if(i)return this.moveToTerminatedState(),r(e);throw a}}else throw e}optionInternal(e,n){const r=this.getKeyForAutomaticLookahead(Ff,n);return this.optionInternalLogic(e,n,r)}optionInternalLogic(e,n,r){let i=this.getLaFuncFromCache(r),s;if(typeof e!="function"){s=e.DEF;const a=e.GATE;if(a!==void 0){const o=i;i=()=>a.call(this)&&o.call(this)}}else s=e;if(i.call(this)===!0)return s.call(this)}atLeastOneInternal(e,n){const r=this.getKeyForAutomaticLookahead(pa,e);return this.atLeastOneInternalLogic(e,n,r)}atLeastOneInternalLogic(e,n,r){let i=this.getLaFuncFromCache(r),s;if(typeof n!="function"){s=n.DEF;const a=n.GATE;if(a!==void 0){const o=i;i=()=>a.call(this)&&o.call(this)}}else s=n;if(i.call(this)===!0){let a=this.doSingleRepetition(s);for(;i.call(this)===!0&&a===!0;)a=this.doSingleRepetition(s)}else throw this.raiseEarlyExitException(e,V.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,n],i,pa,e,mR)}atLeastOneSepFirstInternal(e,n){const r=this.getKeyForAutomaticLookahead(hi,e);this.atLeastOneSepFirstInternalLogic(e,n,r)}atLeastOneSepFirstInternalLogic(e,n,r){const i=n.DEF,s=n.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){i.call(this);const o=()=>this.tokenMatcher(this.LA(1),s);for(;this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,s,o,i,wl],o,hi,e,wl)}else throw this.raiseEarlyExitException(e,V.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)}manyInternal(e,n){const r=this.getKeyForAutomaticLookahead(ha,e);return this.manyInternalLogic(e,n,r)}manyInternalLogic(e,n,r){let i=this.getLaFuncFromCache(r),s;if(typeof n!="function"){s=n.DEF;const o=n.GATE;if(o!==void 0){const l=i;i=()=>o.call(this)&&l.call(this)}}else s=n;let a=!0;for(;i.call(this)===!0&&a===!0;)a=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[e,n],i,ha,e,pR,a)}manySepFirstInternal(e,n){const r=this.getKeyForAutomaticLookahead(ma,e);this.manySepFirstInternalLogic(e,n,r)}manySepFirstInternalLogic(e,n,r){const i=n.DEF,s=n.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){i.call(this);const o=()=>this.tokenMatcher(this.LA(1),s);for(;this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,s,o,i,Cl],o,ma,e,Cl)}}repetitionSepSecondInternal(e,n,r,i,s){for(;r();)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,r,i,s],r,hi,e,s)}doSingleRepetition(e){const n=this.getLexerPosition();return e.call(this),this.getLexerPosition()>n}orInternal(e,n){const r=this.getKeyForAutomaticLookahead(Df,n),i=P(e)?e:e.DEF,a=this.getLaFuncFromCache(r).call(this,i);if(a!==void 0)return i[a].ALT.call(this);this.raiseNoAltException(n,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),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new jR(n,e))}}subruleInternal(e,n,r){let i;try{const s=r!==void 0?r.ARGS:void 0;return this.subruleIdx=n,i=e.apply(this,s),this.cstPostNonTerminal(i,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),i}catch(s){throw this.subruleInternalError(s,r,e.ruleName)}}subruleInternalError(e,n,r){throw _i(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,n,r){let i;try{const s=this.LA(1);this.tokenMatcher(s,e)===!0?(this.consumeToken(),i=s):this.consumeInternalError(e,s,r)}catch(s){i=this.consumeInternalRecovery(e,n,s)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,i),i}consumeInternalError(e,n,r){let i;const s=this.LA(0);throw r!==void 0&&r.ERR_MSG?i=r.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:n,previous:s,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Pf(i,n,s))}consumeInternalRecovery(e,n,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const i=this.getFollowsForInRuleRecovery(e,n);try{return this.tryInRuleRecovery(e,i)}catch(s){throw s.name===Mf?r:s}}else throw r}saveRecogState(){const e=this.errors,n=se(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,n,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(n)}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),yt)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class uA{initErrorHandler(e){this._errors=[],this.errorMessageProvider=C(e,"errorMessageProvider")?e.errorMessageProvider:ut.errorMessageProvider}SAVE_ERROR(e){if(_i(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:se(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return se(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,n,r){const i=this.getCurrRuleFullName(),s=this.getGAstProductions()[i],o=hs(e,s,n,this.maxLookahead)[0],l=[];for(let c=1;c<=this.maxLookahead;c++)l.push(this.LA(c));const u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:r,ruleName:i});throw this.SAVE_ERROR(new KR(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,n){const r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],s=ds(e,i,this.maxLookahead),a=[];for(let u=1;u<=this.maxLookahead;u++)a.push(this.LA(u));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:s,actual:a,previous:o,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new BR(l,this.LA(1),o))}}class cA{initContentAssist(){}computeContentAssist(e,n){const r=this.gastProductionsCache[e];if(lt(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return xf([r],n,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const n=je(e.ruleStack),i=this.getGAstProductions()[n];return new hR(i,e).startWalking()}}const ms={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(ms);const Ol=!0,Pl=Math.pow(2,At)-1,Uf=Ef({name:"RECORDING_PHASE_TOKEN",pattern:he.NA});Or([Uf]);const Bf=ho(Uf,`This IToken indicates the Parser is in Recording Phase
100
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Bf);const fA={name:`This CSTNode indicates the Parser is in Recording Phase
101
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class dA{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 n=e>0?e:"";this[`CONSUME${n}`]=function(r,i){return this.consumeInternalRecord(r,e,i)},this[`SUBRULE${n}`]=function(r,i){return this.subruleInternalRecord(r,e,i)},this[`OPTION${n}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${n}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${n}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${n}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${n}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${n}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}this.consume=function(e,n,r){return this.consumeInternalRecord(n,e,r)},this.subrule=function(e,n,r){return this.subruleInternalRecord(n,e,r)},this.option=function(e,n){return this.optionInternalRecord(n,e)},this.or=function(e,n){return this.orInternalRecord(n,e)},this.many=function(e,n){this.manyInternalRecord(e,n)},this.atLeastOne=function(e,n){this.atLeastOneInternalRecord(e,n)},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 n=0;n<10;n++){const r=n>0?n:"";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,n){return()=>!0}LA_RECORD(e){return Li}topLevelRuleRecord(e,n){try{const r=new In({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),n.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
102
+ This error was thrown during the "grammar recording phase" For more info see:
103
+ https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,n){return bn.call(this,ie,e,n)}atLeastOneInternalRecord(e,n){bn.call(this,Se,n,e)}atLeastOneSepFirstInternalRecord(e,n){bn.call(this,ke,n,e,Ol)}manyInternalRecord(e,n){bn.call(this,z,n,e)}manySepFirstInternalRecord(e,n){bn.call(this,ge,n,e,Ol)}orInternalRecord(e,n){return hA.call(this,e,n)}subruleInternalRecord(e,n,r){if(bi(n),!e||C(e,"ruleName")===!1){const o=new Error(`<SUBRULE${Ml(n)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
104
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const i=Rn(this.recordingProdStack),s=e.ruleName,a=new ce({idx:n,nonTerminalName:s,label:r?.LABEL,referencedRule:void 0});return i.definition.push(a),this.outputCst?fA:ms}consumeInternalRecord(e,n,r){if(bi(n),!Rf(e)){const a=new Error(`<CONSUME${Ml(n)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
105
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw a.KNOWN_RECORDER_ERROR=!0,a}const i=Rn(this.recordingProdStack),s=new j({idx:n,terminalType:e,label:r?.LABEL});return i.definition.push(s),Bf}}function bn(t,e,n,r=!1){bi(n);const i=Rn(this.recordingProdStack),s=ct(e)?e:e.DEF,a=new t({definition:[],idx:n});return r&&(a.separator=e.SEP),C(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(a),s.call(this),i.definition.push(a),this.recordingProdStack.pop(),ms}function hA(t,e){bi(e);const n=Rn(this.recordingProdStack),r=P(t)===!1,i=r===!1?t:t.DEF,s=new ye({definition:[],idx:e,ignoreAmbiguities:r&&t.IGNORE_AMBIGUITIES===!0});C(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD);const a=lf(i,o=>ct(o.GATE));return s.hasPredicates=a,n.definition.push(s),w(i,o=>{const l=new me({definition:[]});s.definition.push(l),C(o,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=o.IGNORE_AMBIGUITIES:C(o,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),o.ALT.call(this),this.recordingProdStack.pop()}),ms}function Ml(t){return t===0?"":`${t}`}function bi(t){if(t<0||t>Pl){const e=new Error(`Invalid DSL Method idx value: <${t}>
106
+ Idx value must be a none negative value smaller than ${Pl+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}class pA{initPerformanceTracer(e){if(C(e,"traceInitPerf")){const n=e.traceInitPerf,r=typeof n=="number";this.traceInitMaxIdent=r?n:1/0,this.traceInitPerf=r?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=ut.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,n){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);const{time:i,value:s}=cf(n),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${r}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,s}else return n()}}function mA(t,e){e.forEach(n=>{const r=n.prototype;Object.getOwnPropertyNames(r).forEach(i=>{if(i==="constructor")return;const s=Object.getOwnPropertyDescriptor(r,i);s&&(s.get||s.set)?Object.defineProperty(t.prototype,i,s):t.prototype[i]=n.prototype[i]})})}const Li=ho(yt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Li);const ut=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Xt,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Oi=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var fe;(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(fe||(fe={}));function Dl(t=void 0){return function(){return t}}class Pr{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const n=this.className;this.TRACE_INIT("toFastProps",()=>{ff(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),w(this.definedRulesNames,i=>{const a=this[i].originalGrammarAction;let o;this.TRACE_INIT(`${i} Rule`,()=>{o=this.topLevelRuleRecord(i,a)}),this.gastProductionsCache[i]=o})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT("Grammar Resolving",()=>{r=GR({rules:J(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT("Grammar Validations",()=>{if(U(r)&&this.skipValidations===!1){const i=UR({rules:J(this.gastProductionsCache),tokenTypes:J(this.tokensMap),errMsgProvider:bt,grammarName:n}),s=xR({lookaheadStrategy:this.lookaheadStrategy,rules:J(this.gastProductionsCache),tokenTypes:J(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(i,s)}}),U(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const i=$v(J(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,s;(s=(i=this.lookaheadStrategy).initialize)===null||s===void 0||s.call(i,{rules:J(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(J(this.gastProductionsCache))})),!Pr.DEFER_DEFINITION_ERRORS_HANDLING&&!U(this.definitionErrors))throw e=I(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected:
107
+ ${e.join(`
108
+ -------------------------------
109
+ `)}`)})}constructor(e,n){this.definitionErrors=[],this.selfAnalysisDone=!1;const r=this;if(r.initErrorHandler(n),r.initLexerAdapter(),r.initLooksAhead(n),r.initRecognizerEngine(e,n),r.initRecoverable(n),r.initTreeBuilder(n),r.initContentAssist(),r.initGastRecorder(n),r.initPerformanceTracer(n),C(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
110
+ Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
111
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
112
+ For further details.`);this.skipValidations=C(n,"skipValidations")?n.skipValidations:ut.skipValidations}}Pr.DEFER_DEFINITION_ERRORS_HANDLING=!1;mA(Pr,[HR,qR,sA,aA,lA,oA,uA,cA,dA,pA]);class gA extends Pr{constructor(e,n=ut){const r=se(n);r.outputCst=!1,super(e,r)}}function En(t,e,n){return`${t.name}_${e}_${n}`}const Tt=1,yA=2,jf=4,Kf=5,Mr=7,TA=8,vA=9,RA=10,AA=11,Vf=12;class yo{constructor(e){this.target=e}isEpsilon(){return!1}}class To extends yo{constructor(e,n){super(e),this.tokenType=n}}class Hf extends yo{constructor(e){super(e)}isEpsilon(){return!0}}class vo extends yo{constructor(e,n,r){super(e),this.rule=n,this.followState=r}isEpsilon(){return!0}}function EA(t){const e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};$A(e,t);const n=t.length;for(let r=0;r<n;r++){const i=t[r],s=Vt(e,i,i);s!==void 0&&OA(e,i,s)}return e}function $A(t,e){const n=e.length;for(let r=0;r<n;r++){const i=e[r],s=Q(t,i,void 0,{type:yA}),a=Q(t,i,void 0,{type:Mr});s.stop=a,t.ruleToStartState.set(i,s),t.ruleToStopState.set(i,a)}}function Wf(t,e,n){return n instanceof j?Ro(t,e,n.terminalType,n):n instanceof ce?LA(t,e,n):n instanceof ye?CA(t,e,n):n instanceof ie?wA(t,e,n):n instanceof z?xA(t,e,n):n instanceof ge?SA(t,e,n):n instanceof Se?kA(t,e,n):n instanceof ke?IA(t,e,n):Vt(t,e,n)}function xA(t,e,n){const r=Q(t,e,n,{type:Kf});Et(t,r);const i=wn(t,e,r,n,Vt(t,e,n));return qf(t,e,n,i)}function SA(t,e,n){const r=Q(t,e,n,{type:Kf});Et(t,r);const i=wn(t,e,r,n,Vt(t,e,n)),s=Ro(t,e,n.separator,n);return qf(t,e,n,i,s)}function kA(t,e,n){const r=Q(t,e,n,{type:jf});Et(t,r);const i=wn(t,e,r,n,Vt(t,e,n));return zf(t,e,n,i)}function IA(t,e,n){const r=Q(t,e,n,{type:jf});Et(t,r);const i=wn(t,e,r,n,Vt(t,e,n)),s=Ro(t,e,n.separator,n);return zf(t,e,n,i,s)}function CA(t,e,n){const r=Q(t,e,n,{type:Tt});Et(t,r);const i=st(n.definition,a=>Wf(t,e,a));return wn(t,e,r,n,...i)}function wA(t,e,n){const r=Q(t,e,n,{type:Tt});Et(t,r);const i=wn(t,e,r,n,Vt(t,e,n));return NA(t,e,n,i)}function Vt(t,e,n){const r=_d(st(n.definition,i=>Wf(t,e,i)),i=>i!==void 0);return r.length===1?r[0]:r.length===0?void 0:bA(t,r)}function zf(t,e,n,r,i){const s=r.left,a=r.right,o=Q(t,e,n,{type:AA});Et(t,o);const l=Q(t,e,n,{type:Vf});return s.loopback=o,l.loopback=o,t.decisionMap[En(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",n.idx)]=o,Y(a,o),i===void 0?(Y(o,s),Y(o,l)):(Y(o,l),Y(o,i.left),Y(i.right,s)),{left:s,right:l}}function qf(t,e,n,r,i){const s=r.left,a=r.right,o=Q(t,e,n,{type:RA});Et(t,o);const l=Q(t,e,n,{type:Vf}),u=Q(t,e,n,{type:vA});return o.loopback=u,l.loopback=u,Y(o,s),Y(o,l),Y(a,u),i!==void 0?(Y(u,l),Y(u,i.left),Y(i.right,s)):Y(u,o),t.decisionMap[En(e,i?"RepetitionWithSeparator":"Repetition",n.idx)]=o,{left:o,right:l}}function NA(t,e,n,r){const i=r.left,s=r.right;return Y(i,s),t.decisionMap[En(e,"Option",n.idx)]=i,r}function Et(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function wn(t,e,n,r,...i){const s=Q(t,e,r,{type:TA,start:n});n.end=s;for(const o of i)o!==void 0?(Y(n,o.left),Y(o.right,s)):Y(n,s);const a={left:n,right:s};return t.decisionMap[En(e,_A(r),r.idx)]=n,a}function _A(t){if(t instanceof ye)return"Alternation";if(t instanceof ie)return"Option";if(t instanceof z)return"Repetition";if(t instanceof ge)return"RepetitionWithSeparator";if(t instanceof Se)return"RepetitionMandatory";if(t instanceof ke)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function bA(t,e){const n=e.length;for(let s=0;s<n-1;s++){const a=e[s];let o;a.left.transitions.length===1&&(o=a.left.transitions[0]);const l=o instanceof vo,u=o,c=e[s+1].left;a.left.type===Tt&&a.right.type===Tt&&o!==void 0&&(l&&u.followState===a.right||o.target===a.right)?(l?u.followState=c:o.target=c,PA(t,a.right)):Y(a.right,c)}const r=e[0],i=e[n-1];return{left:r.left,right:i.right}}function Ro(t,e,n,r){const i=Q(t,e,r,{type:Tt}),s=Q(t,e,r,{type:Tt});return Ao(i,new To(s,n)),{left:i,right:s}}function LA(t,e,n){const r=n.referencedRule,i=t.ruleToStartState.get(r),s=Q(t,e,n,{type:Tt}),a=Q(t,e,n,{type:Tt}),o=new vo(i,r,a);return Ao(s,o),{left:s,right:a}}function OA(t,e,n){const r=t.ruleToStartState.get(e);Y(r,n.left);const i=t.ruleToStopState.get(e);return Y(n.right,i),{left:r,right:i}}function Y(t,e){const n=new Hf(e);Ao(t,n)}function Q(t,e,n,r){const i=Object.assign({atn:t,production:n,epsilonOnlyTransitions:!1,rule:e,transitions:[],nextTokenWithinRule:[],stateNumber:t.states.length},r);return t.states.push(i),i}function Ao(t,e){t.transitions.length===0&&(t.epsilonOnlyTransitions=e.isEpsilon()),t.transitions.push(e)}function PA(t,e){t.states.splice(t.states.indexOf(e),1)}const Pi={};class ya{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const n=Yf(e);n in this.map||(this.map[n]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return st(this.configs,e=>e.alt)}get key(){let e="";for(const n in this.map)e+=n+":";return e}}function Yf(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(n=>n.stateNumber.toString()).join("_")}`}function MA(t,e){const n={};return r=>{const i=r.toString();let s=n[i];return s!==void 0||(s={atnStartState:t,decision:e,states:{}},n[i]=s),s}}class Xf{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,n){this.predicates[e]=n}toString(){let e="";const n=this.predicates.length;for(let r=0;r<n;r++)e+=this.predicates[r]===!0?"1":"0";return e}}const Fl=new Xf;class DA extends go{constructor(e){var n;super(),this.logging=(n=e?.logging)!==null&&n!==void 0?n:(r=>console.log(r))}initialize(e){this.atn=EA(e.rules),this.dfas=FA(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:n,rule:r,hasPredicates:i,dynamicTokensEnabled:s}=e,a=this.dfas,o=this.logging,l=En(r,"Alternation",n),c=this.atn.decisionMap[l].decision,f=st(Nl({maxLookahead:1,occurrence:n,prodType:"Alternation",rule:r}),d=>st(d,h=>h[0]));if(Gl(f,!1)&&!s){const d=wo(f,(h,m,g)=>(Rs(m,R=>{R&&(h[R.tokenTypeIdx]=g,Rs(R.categoryMatches,y=>{h[y]=g}))}),h),{});return i?function(h){var m;const g=this.LA(1),R=d[g.tokenTypeIdx];if(h!==void 0&&R!==void 0){const y=(m=h[R])===null||m===void 0?void 0:m.GATE;if(y!==void 0&&y.call(this)===!1)return}return R}:function(){const h=this.LA(1);return d[h.tokenTypeIdx]}}else return i?function(d){const h=new Xf,m=d===void 0?0:d.length;for(let R=0;R<m;R++){const y=d?.[R].GATE;h.set(R,y===void 0||y.call(this))}const g=Ms.call(this,a,c,h,o);return typeof g=="number"?g:void 0}:function(){const d=Ms.call(this,a,c,Fl,o);return typeof d=="number"?d:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:n,rule:r,prodType:i,dynamicTokensEnabled:s}=e,a=this.dfas,o=this.logging,l=En(r,i,n),c=this.atn.decisionMap[l].decision,f=st(Nl({maxLookahead:1,occurrence:n,prodType:i,rule:r}),d=>st(d,h=>h[0]));if(Gl(f)&&f[0][0]&&!s){const d=f[0],h=kd(d);if(h.length===1&&bd(h[0].categoryMatches)){const g=h[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===g}}else{const m=wo(h,(g,R)=>(R!==void 0&&(g[R.tokenTypeIdx]=!0,Rs(R.categoryMatches,y=>{g[y]=!0})),g),{});return function(){const g=this.LA(1);return m[g.tokenTypeIdx]===!0}}}return function(){const d=Ms.call(this,a,c,Fl,o);return typeof d=="object"?!1:d===0}}}function Gl(t,e=!0){const n=new Set;for(const r of t){const i=new Set;for(const s of r){if(s===void 0){if(e)break;return!1}const a=[s.tokenTypeIdx].concat(s.categoryMatches);for(const o of a)if(n.has(o)){if(!i.has(o))return!1}else n.add(o),i.add(o)}}return!0}function FA(t){const e=t.decisionStates.length,n=Array(e);for(let r=0;r<e;r++)n[r]=MA(t.decisionStates[r],r);return n}function Ms(t,e,n,r){const i=t[e](n);let s=i.start;if(s===void 0){const o=YA(i.atnStartState);s=Zf(i,Jf(o)),i.start=s}return GA.apply(this,[i,s,n,r])}function GA(t,e,n,r){let i=e,s=1;const a=[];let o=this.LA(s++);for(;;){let l=HA(i,o);if(l===void 0&&(l=UA.apply(this,[t,i,o,s,n,r])),l===Pi)return VA(a,i,o);if(l.isAcceptState===!0)return l.prediction;i=l,a.push(o),o=this.LA(s++)}}function UA(t,e,n,r,i,s){const a=WA(e.configs,n,i);if(a.size===0)return Ul(t,e,n,Pi),Pi;let o=Jf(a);const l=qA(a,i);if(l!==void 0)o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l;else if(QA(a)){const u=Id(a.alts);o.isAcceptState=!0,o.prediction=u,o.configs.uniqueAlt=u,BA.apply(this,[t,r,a.alts,s])}return o=Ul(t,e,n,o),o}function BA(t,e,n,r){const i=[];for(let u=1;u<=e;u++)i.push(this.LA(u).tokenType);const s=t.atnStartState,a=s.rule,o=s.production,l=jA({topLevelRule:a,ambiguityIndices:n,production:o,prefixPath:i});r(l)}function jA(t){const e=st(t.prefixPath,i=>Qt(i)).join(", "),n=t.production.idx===0?"":t.production.idx;let r=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${KA(t.production)}${n}> inside <${t.topLevelRule.name}> Rule,
113
+ <${e}> may appears as a prefix path in all these alternatives.
114
+ `;return r=r+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
115
+ For Further details.`,r}function KA(t){if(t instanceof ce)return"SUBRULE";if(t instanceof ie)return"OPTION";if(t instanceof ye)return"OR";if(t instanceof Se)return"AT_LEAST_ONE";if(t instanceof ke)return"AT_LEAST_ONE_SEP";if(t instanceof ge)return"MANY_SEP";if(t instanceof z)return"MANY";if(t instanceof j)return"CONSUME";throw Error("non exhaustive match")}function VA(t,e,n){const r=Ld(e.configs.elements,s=>s.state.transitions),i=Od(r.filter(s=>s instanceof To).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:n,possibleTokenTypes:i,tokenPath:t}}function HA(t,e){return t.edges[e.tokenTypeIdx]}function WA(t,e,n){const r=new ya,i=[];for(const a of t.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===Mr){i.push(a);continue}const o=a.state.transitions.length;for(let l=0;l<o;l++){const u=a.state.transitions[l],c=zA(u,e);c!==void 0&&r.add({state:c,alt:a.alt,stack:a.stack})}}let s;if(i.length===0&&r.size===1&&(s=r),s===void 0){s=new ya;for(const a of r.elements)Mi(a,s)}if(i.length>0&&!JA(s))for(const a of i)s.add(a);return s}function zA(t,e){if(t instanceof To&&$f(e,t.tokenType))return t.target}function qA(t,e){let n;for(const r of t.elements)if(e.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function Jf(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Ul(t,e,n,r){return r=Zf(t,r),e.edges[n.tokenTypeIdx]=r,r}function Zf(t,e){if(e===Pi)return e;const n=e.configs.key,r=t.states[n];return r!==void 0?r:(e.configs.finalize(),t.states[n]=e,e)}function YA(t){const e=new ya,n=t.transitions.length;for(let r=0;r<n;r++){const s={state:t.transitions[r].target,alt:r,stack:[]};Mi(s,e)}return e}function Mi(t,e){const n=t.state;if(n.type===Mr){if(t.stack.length>0){const i=[...t.stack],a={state:i.pop(),alt:t.alt,stack:i};Mi(a,e)}else e.add(t);return}n.epsilonOnlyTransitions||e.add(t);const r=n.transitions.length;for(let i=0;i<r;i++){const s=n.transitions[i],a=XA(t,s);a!==void 0&&Mi(a,e)}}function XA(t,e){if(e instanceof Hf)return{state:e.target,alt:t.alt,stack:t.stack};if(e instanceof vo){const n=[...t.stack,e.followState];return{state:e.target,alt:t.alt,stack:n}}}function JA(t){for(const e of t.elements)if(e.state.type===Mr)return!0;return!1}function ZA(t){for(const e of t.elements)if(e.state.type!==Mr)return!1;return!0}function QA(t){if(ZA(t))return!0;const e=eE(t.elements);return tE(e)&&!nE(e)}function eE(t){const e=new Map;for(const n of t){const r=Yf(n,!1);let i=e.get(r);i===void 0&&(i={},e.set(r,i)),i[n.alt]=!0}return e}function tE(t){for(const e of Array.from(t.values()))if(Object.keys(e).length>1)return!0;return!1}function nE(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}var Bl;(function(t){function e(n){return typeof n=="string"}t.is=e})(Bl||(Bl={}));var Ta;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ta||(Ta={}));var jl;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(jl||(jl={}));var Di;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Di||(Di={}));var D;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Di.MAX_VALUE),i===Number.MAX_VALUE&&(i=Di.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}t.is=n})(D||(D={}));var O;(function(t){function e(r,i,s,a){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(s)&&p.uinteger(a))return{start:D.create(r,i),end:D.create(s,a)};if(D.is(r)&&D.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}t.create=e;function n(r){let i=r;return p.objectLiteral(i)&&D.is(i.start)&&D.is(i.end)}t.is=n})(O||(O={}));var Fi;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return p.objectLiteral(i)&&O.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}t.is=n})(Fi||(Fi={}));var Kl;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){let i=r;return p.objectLiteral(i)&&O.is(i.targetRange)&&p.string(i.targetUri)&&O.is(i.targetSelectionRange)&&(O.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}t.is=n})(Kl||(Kl={}));var va;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}t.is=n})(va||(va={}));var Vl;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&O.is(i.range)&&va.is(i.color)}t.is=n})(Vl||(Vl={}));var Hl;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||xn.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,xn.is))}t.is=n})(Hl||(Hl={}));var Wl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Wl||(Wl={}));var zl;(function(t){function e(r,i,s,a,o,l){const u={startLine:r,endLine:i};return p.defined(s)&&(u.startCharacter=s),p.defined(a)&&(u.endCharacter=a),p.defined(o)&&(u.kind=o),p.defined(l)&&(u.collapsedText=l),u}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}t.is=n})(zl||(zl={}));var Ra;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return p.defined(i)&&Fi.is(i.location)&&p.string(i.message)}t.is=n})(Ra||(Ra={}));var ql;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(ql||(ql={}));var Yl;(function(t){t.Unnecessary=1,t.Deprecated=2})(Yl||(Yl={}));var Xl;(function(t){function e(n){const r=n;return p.objectLiteral(r)&&p.string(r.href)}t.is=e})(Xl||(Xl={}));var Gi;(function(t){function e(r,i,s,a,o,l){let u={range:r,message:i};return p.defined(s)&&(u.severity=s),p.defined(a)&&(u.code=a),p.defined(o)&&(u.source=o),p.defined(l)&&(u.relatedInformation=l),u}t.create=e;function n(r){var i;let s=r;return p.defined(s)&&O.is(s.range)&&p.string(s.message)&&(p.number(s.severity)||p.undefined(s.severity))&&(p.integer(s.code)||p.string(s.code)||p.undefined(s.code))&&(p.undefined(s.codeDescription)||p.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(s.source)||p.undefined(s.source))&&(p.undefined(s.relatedInformation)||p.typedArray(s.relatedInformation,Ra.is))}t.is=n})(Gi||(Gi={}));var $n;(function(t){function e(r,i,...s){let a={title:r,command:i};return p.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}t.is=n})($n||($n={}));var xn;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){const a=s;return p.objectLiteral(a)&&p.string(a.newText)&&O.is(a.range)}t.is=i})(xn||(xn={}));var Aa;(function(t){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}t.is=n})(Aa||(Aa={}));var Sn;(function(t){function e(n){const r=n;return p.string(r)}t.is=e})(Sn||(Sn={}));var Jl;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){const a=s;return xn.is(a)&&(Aa.is(a.annotationId)||Sn.is(a.annotationId))}t.is=i})(Jl||(Jl={}));var Ea;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return p.defined(i)&&Ia.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Ea||(Ea={}));var $a;(function(t){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Sn.is(i.annotationId))}t.is=n})($a||($a={}));var xa;(function(t){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Sn.is(i.annotationId))}t.is=n})(xa||(xa={}));var Sa;(function(t){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Sn.is(i.annotationId))}t.is=n})(Sa||(Sa={}));var ka;(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?$a.is(i)||xa.is(i)||Sa.is(i):Ea.is(i)))}t.is=e})(ka||(ka={}));var Zl;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)}t.is=n})(Zl||(Zl={}));var Ql;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}t.is=n})(Ql||(Ql={}));var Ia;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}t.is=n})(Ia||(Ia={}));var eu;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}t.is=n})(eu||(eu={}));var Ca;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Ca||(Ca={}));var $r;(function(t){function e(n){const r=n;return p.objectLiteral(n)&&Ca.is(r.kind)&&p.string(r.value)}t.is=e})($r||($r={}));var tu;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(tu||(tu={}));var nu;(function(t){t.PlainText=1,t.Snippet=2})(nu||(nu={}));var ru;(function(t){t.Deprecated=1})(ru||(ru={}));var iu;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){const i=r;return i&&p.string(i.newText)&&O.is(i.insert)&&O.is(i.replace)}t.is=n})(iu||(iu={}));var su;(function(t){t.asIs=1,t.adjustIndentation=2})(su||(su={}));var au;(function(t){function e(n){const r=n;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}t.is=e})(au||(au={}));var ou;(function(t){function e(n){return{label:n}}t.create=e})(ou||(ou={}));var lu;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(lu||(lu={}));var Ui;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){const i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}t.is=n})(Ui||(Ui={}));var uu;(function(t){function e(n){let r=n;return!!r&&p.objectLiteral(r)&&($r.is(r.contents)||Ui.is(r.contents)||p.typedArray(r.contents,Ui.is))&&(n.range===void 0||O.is(n.range))}t.is=e})(uu||(uu={}));var cu;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(cu||(cu={}));var fu;(function(t){function e(n,r,...i){let s={label:n};return p.defined(r)&&(s.documentation=r),p.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(fu||(fu={}));var du;(function(t){t.Text=1,t.Read=2,t.Write=3})(du||(du={}));var hu;(function(t){function e(n,r){let i={range:n};return p.number(r)&&(i.kind=r),i}t.create=e})(hu||(hu={}));var pu;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pu||(pu={}));var mu;(function(t){t.Deprecated=1})(mu||(mu={}));var gu;(function(t){function e(n,r,i,s,a){let o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(gu||(gu={}));var yu;(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(yu||(yu={}));var Tu;(function(t){function e(r,i,s,a,o,l){let u={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(u.children=l),u}t.create=e;function n(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&O.is(i.range)&&O.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Tu||(Tu={}));var vu;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(vu||(vu={}));var Bi;(function(t){t.Invoked=1,t.Automatic=2})(Bi||(Bi={}));var Ru;(function(t){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}t.create=e;function n(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,Gi.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===Bi.Invoked||i.triggerKind===Bi.Automatic)}t.is=n})(Ru||(Ru={}));var Au;(function(t){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):$n.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function n(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,Gi.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||$n.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||ka.is(i.edit))}t.is=n})(Au||(Au={}));var Eu;(function(t){function e(r,i){let s={range:r};return p.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return p.defined(i)&&O.is(i.range)&&(p.undefined(i.command)||$n.is(i.command))}t.is=n})(Eu||(Eu={}));var $u;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}t.is=n})($u||($u={}));var xu;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return p.defined(i)&&O.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}t.is=n})(xu||(xu={}));var Su;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return p.objectLiteral(i)&&O.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Su||(Su={}));var ku;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(ku||(ku={}));var Iu;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Iu||(Iu={}));var Cu;(function(t){function e(n){const r=n;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(Cu||(Cu={}));var wu;(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){const i=r;return i!=null&&O.is(i.range)&&p.string(i.text)}t.is=n})(wu||(wu={}));var Nu;(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){const i=r;return i!=null&&O.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}t.is=n})(Nu||(Nu={}));var _u;(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){const i=r;return i!=null&&O.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}t.is=n})(_u||(_u={}));var bu;(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){const i=r;return p.defined(i)&&O.is(r.stoppedLocation)}t.is=n})(bu||(bu={}));var wa;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(wa||(wa={}));var Na;(function(t){function e(r){return{value:r}}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||$r.is(i.tooltip))&&(i.location===void 0||Fi.is(i.location))&&(i.command===void 0||$n.is(i.command))}t.is=n})(Na||(Na={}));var Lu;(function(t){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}t.create=e;function n(r){const i=r;return p.objectLiteral(i)&&D.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,Na.is))&&(i.kind===void 0||wa.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,xn.is)&&(i.tooltip===void 0||p.string(i.tooltip)||$r.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}t.is=n})(Lu||(Lu={}));var Ou;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ou||(Ou={}));var Pu;(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(Pu||(Pu={}));var Mu;(function(t){function e(n){return{items:n}}t.create=e})(Mu||(Mu={}));var Du;(function(t){t.Invoked=0,t.Automatic=1})(Du||(Du={}));var Fu;(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(Fu||(Fu={}));var Gu;(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(Gu||(Gu={}));var Uu;(function(t){function e(n){const r=n;return p.objectLiteral(r)&&Ta.is(r.uri)&&p.string(r.name)}t.is=e})(Uu||(Uu={}));var Bu;(function(t){function e(s,a,o,l){return new rE(s,a,o,l)}t.create=e;function n(s){let a=s;return!!(p.defined(a)&&p.string(a.uri)&&(p.undefined(a.languageId)||p.string(a.languageId))&&p.uinteger(a.lineCount)&&p.func(a.getText)&&p.func(a.positionAt)&&p.func(a.offsetAt))}t.is=n;function r(s,a){let o=s.getText(),l=i(a,(c,f)=>{let d=c.range.start.line-f.range.start.line;return d===0?c.range.start.character-f.range.start.character:d}),u=o.length;for(let c=l.length-1;c>=0;c--){let f=l[c],d=s.offsetAt(f.range.start),h=s.offsetAt(f.range.end);if(h<=u)o=o.substring(0,d)+f.newText+o.substring(h,o.length);else throw new Error("Overlapping edit");u=d}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),u=s.slice(o);i(l,a),i(u,a);let c=0,f=0,d=0;for(;c<l.length&&f<u.length;)a(l[c],u[f])<=0?s[d++]=l[c++]:s[d++]=u[f++];for(;c<l.length;)s[d++]=l[c++];for(;f<u.length;)s[d++]=u[f++];return s}})(Bu||(Bu={}));let rE=class{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(e.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
116
+ `,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
117
+ `&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return D.create(0,e);for(;r<i;){let a=Math.floor((r+i)/2);n[a]>e?i=a:r=a+1}let s=r-1;return D.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}};var p;(function(t){const e=Object.prototype.toString;function n(h){return typeof h<"u"}t.defined=n;function r(h){return typeof h>"u"}t.undefined=r;function i(h){return h===!0||h===!1}t.boolean=i;function s(h){return e.call(h)==="[object String]"}t.string=s;function a(h){return e.call(h)==="[object Number]"}t.number=a;function o(h,m,g){return e.call(h)==="[object Number]"&&m<=h&&h<=g}t.numberRange=o;function l(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}t.integer=l;function u(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}t.uinteger=u;function c(h){return e.call(h)==="[object Function]"}t.func=c;function f(h){return h!==null&&typeof h=="object"}t.objectLiteral=f;function d(h,m){return Array.isArray(h)&&h.every(m)}t.typedArray=d})(p||(p={}));class iE{constructor(){this.nodeStack=[]}get current(){var e;return(e=this.nodeStack[this.nodeStack.length-1])!==null&&e!==void 0?e:this.rootNode}buildRootNode(e){return this.rootNode=new ed(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const n=new Eo;return n.grammarSource=e,n.root=this.rootNode,this.current.content.push(n),this.nodeStack.push(n),n}buildLeafNode(e,n){const r=new _a(e.startOffset,e.image.length,ea(e),e.tokenType,!n);return r.grammarSource=n,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const n=e.container;if(n){const r=n.content.indexOf(e);r>=0&&n.content.splice(r,1)}}addHiddenNodes(e){const n=[];for(const s of e){const a=new _a(s.startOffset,s.image.length,ea(s),s.tokenType,!0);a.root=this.rootNode,n.push(a)}let r=this.current,i=!1;if(r.content.length>0){r.content.push(...n);return}for(;r.container;){const s=r.container.content.indexOf(r);if(s>0){r.container.content.splice(s,0,...n),i=!0;break}r=r.container}i||this.rootNode.content.unshift(...n)}construct(e){const n=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=n;const r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}}class Qf{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e,n;const r=typeof((e=this._astNode)===null||e===void 0?void 0:e.$type)=="string"?this._astNode:(n=this.container)===null||n===void 0?void 0:n.astNode;if(!r)throw new Error("This node has no associated AST element");return r}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}}class _a extends Qf{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,n,r,i,s=!1){super(),this._hidden=s,this._offset=e,this._tokenType=i,this._length=n,this._range=r}}class Eo extends Qf{constructor(){super(...arguments),this.content=new $o(this)}get children(){return this.content}get offset(){var e,n;return(n=(e=this.firstNonHiddenNode)===null||e===void 0?void 0:e.offset)!==null&&n!==void 0?n:0}get length(){return this.end-this.offset}get end(){var e,n;return(n=(e=this.lastNonHiddenNode)===null||e===void 0?void 0:e.end)!==null&&n!==void 0?n:0}get range(){const e=this.firstNonHiddenNode,n=this.lastNonHiddenNode;if(e&&n){if(this._rangeCache===void 0){const{range:r}=e,{range:i}=n;this._rangeCache={start:r.start,end:i.end.line<r.start.line?r.start:i.end}}return this._rangeCache}else return{start:D.create(0,0),end:D.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 n=this.content[e];if(!n.hidden)return n}return this.content[this.content.length-1]}}class $o extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,$o.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,n,...r){return this.addParents(r),super.splice(e,n,...r)}addParents(e){for(const n of e)n.container=this.parent}}class ed extends Eo{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}const ba=Symbol("Datatype");function Ds(t){return t.$type===ba}const ju="​",td=t=>t.endsWith(ju)?t:t+ju;class nd{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const n=this.lexer.definition,r=e.LanguageMetaData.mode==="production";this.wrapper=new uE(n,Object.assign(Object.assign({},e.parser.ParserConfig),{skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,n){this.wrapper.wrapOr(e,n)}optional(e,n){this.wrapper.wrapOption(e,n)}many(e,n){this.wrapper.wrapMany(e,n)}atLeastOne(e,n){this.wrapper.wrapAtLeastOne(e,n)}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()}}class sE extends nd{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new iE,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,n){const r=this.computeRuleType(e),i=this.wrapper.DEFINE_RULE(td(e.name),this.startImplementation(r,n).bind(this));return this.allRules.set(e.name,i),e.entry&&(this.mainRule=i),i}computeRuleType(e){if(!e.fragment){if(Nc(e))return ba;{const n=Ka(e);return n??e.name}}}parse(e,n={}){this.nodeBuilder.buildRootNode(e);const r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;const i=n.rule?this.allRules.get(n.rule):this.mainRule;if(!i)throw new Error(n.rule?`No rule found with name '${n.rule}'`:"No main rule available.");const s=i.call(this.wrapper,{});return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,{value:s,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}startImplementation(e,n){return r=>{const i=!this.isRecording()&&e!==void 0;if(i){const a={$type:e};this.stack.push(a),e===ba&&(a.value="")}let s;try{s=n(r)}catch{s=void 0}return s===void 0&&i&&(s=this.construct()),s}}extractHiddenTokens(e){const n=this.lexerResult.hidden;if(!n.length)return[];const r=e.startOffset;for(let i=0;i<n.length;i++)if(n[i].startOffset>r)return n.splice(0,i);return n.splice(0,n.length)}consume(e,n,r){const i=this.wrapper.wrapConsume(e,n);if(!this.isRecording()&&this.isValidToken(i)){const s=this.extractHiddenTokens(i);this.nodeBuilder.addHiddenNodes(s);const a=this.nodeBuilder.buildLeafNode(i,r),{assignment:o,isCrossRef:l}=this.getAssignment(r),u=this.current;if(o){const c=Ot(r)?i.image:this.converter.convert(i.image,a);this.assign(o.operator,o.feature,c,a,l)}else if(Ds(u)){let c=i.image;Ot(r)||(c=this.converter.convert(c,a).toString()),u.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,n,r,i,s){let a;!this.isRecording()&&!r&&(a=this.nodeBuilder.buildCompositeNode(i));const o=this.wrapper.wrapSubrule(e,n,s);!this.isRecording()&&a&&a.length>0&&this.performSubruleAssignment(o,i,a)}performSubruleAssignment(e,n,r){const{assignment:i,isCrossRef:s}=this.getAssignment(n);if(i)this.assign(i.operator,i.feature,e,r,s);else if(!i){const a=this.current;if(Ds(a))a.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,a);this.stack.pop(),this.stack.push(l)}}}action(e,n){if(!this.isRecording()){let r=this.current;if(n.feature&&n.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(n).content.push(r.$cstNode);const s={$type:e};this.stack.push(s),this.assign(n.operator,n.feature,r,r.$cstNode,!1)}else r.$type=e}}construct(){if(this.isRecording())return;const e=this.current;return oh(e),this.nodeBuilder.construct(e),this.stack.pop(),Ds(e)?this.converter.convert(e.value,e.$cstNode):(lh(this.astReflection,e),e)}getAssignment(e){if(!this.assignmentMap.has(e)){const n=qi(e,Lt);this.assignmentMap.set(e,{assignment:n,isCrossRef:n?Ga(n.terminal):!1})}return this.assignmentMap.get(e)}assign(e,n,r,i,s){const a=this.current;let o;switch(s&&typeof r=="string"?o=this.linker.buildReference(a,n,i,r):o=r,e){case"=":{a[n]=o;break}case"?=":{a[n]=!0;break}case"+=":Array.isArray(a[n])||(a[n]=[]),a[n].push(o)}}assignWithoutOverride(e,n){for(const[i,s]of Object.entries(n)){const a=e[i];a===void 0?e[i]=s:Array.isArray(a)&&Array.isArray(s)&&(s.push(...a),e[i]=s)}const r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}}class aE{buildMismatchTokenMessage(e){return Xt.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Xt.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Xt.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Xt.buildEarlyExitMessage(e)}}class rd extends aE{buildMismatchTokenMessage({expected:e,actual:n}){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 \`${n.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class oE extends nd{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const n=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=n.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,n){const r=this.wrapper.DEFINE_RULE(td(e.name),this.startImplementation(n).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 n=>{const r=this.keepStackSize();try{e(n)}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,n,r){this.wrapper.wrapConsume(e,n),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,n,r,i,s){this.before(i),this.wrapper.wrapSubrule(e,n,s),this.after(i)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const n=this.elementStack.lastIndexOf(e);n>=0&&this.elementStack.splice(n)}}get currIdx(){return this.wrapper.currIdx}}const lE={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new rd};class uE extends gA{constructor(e,n){const r=n&&"maxLookahead"in n;super(e,Object.assign(Object.assign(Object.assign({},lE),{lookaheadStrategy:r?new go({maxLookahead:n.maxLookahead}):new DA({logging:n.skipValidations?()=>{}:void 0})}),n))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,n){return this.RULE(e,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,n){return this.consume(e,n)}wrapSubrule(e,n,r){return this.subrule(e,n,{ARGS:[r]})}wrapOr(e,n){this.or(e,n)}wrapOption(e,n){this.option(e,n)}wrapMany(e,n){this.many(e,n)}wrapAtLeastOne(e,n){this.atLeastOne(e,n)}}function id(t,e,n){return cE({parser:e,tokens:n,ruleNames:new Map},t),e}function cE(t,e){const n=Sc(e,!1),r=re(e.rules).filter(_e).filter(i=>n.has(i));for(const i of r){const s=Object.assign(Object.assign({},t),{consume:1,optional:1,subrule:1,many:1,or:1});t.parser.rule(i,Ft(s,i.definition))}}function Ft(t,e,n=!1){let r;if(Ot(e))r=yE(t,e);else if(zi(e))r=fE(t,e);else if(Lt(e))r=Ft(t,e.terminal);else if(Ga(e))r=sd(t,e);else if(Pt(e))r=dE(t,e);else if(vc(e))r=pE(t,e);else if(Rc(e))r=mE(t,e);else if(Ua(e))r=gE(t,e);else if(Qd(e)){const i=t.consume++;r=()=>t.parser.consume(i,yt,e)}else throw new mc(e.$cstNode,`Unexpected element type: ${e.$type}`);return ad(t,n?void 0:ji(e),r,e.cardinality)}function fE(t,e){const n=Va(e);return()=>t.parser.action(n,e)}function dE(t,e){const n=e.rule.ref;if(_e(n)){const r=t.subrule++,i=n.fragment,s=e.arguments.length>0?hE(n,e.arguments):()=>({});return a=>t.parser.subrule(r,od(t,n),i,e,s(a))}else if(Ut(n)){const r=t.consume++,i=La(t,n.name);return()=>t.parser.consume(r,i,e)}else if(n)Sr();else throw new mc(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}function hE(t,e){const n=e.map(r=>it(r.value));return r=>{const i={};for(let s=0;s<n.length;s++){const a=t.parameters[s],o=n[s];i[a.name]=o(r)}return i}}function it(t){if(zd(t)){const e=it(t.left),n=it(t.right);return r=>e(r)||n(r)}else if(Wd(t)){const e=it(t.left),n=it(t.right);return r=>e(r)&&n(r)}else if(qd(t)){const e=it(t.value);return n=>!e(n)}else if(Yd(t)){const e=t.parameter.ref.name;return n=>n!==void 0&&n[e]===!0}else if(Hd(t)){const e=!!t.true;return()=>e}Sr()}function pE(t,e){if(e.elements.length===1)return Ft(t,e.elements[0]);{const n=[];for(const i of e.elements){const s={ALT:Ft(t,i,!0)},a=ji(i);a&&(s.GATE=it(a)),n.push(s)}const r=t.or++;return i=>t.parser.alternatives(r,n.map(s=>{const a={ALT:()=>s.ALT(i)},o=s.GATE;return o&&(a.GATE=()=>o(i)),a}))}}function mE(t,e){if(e.elements.length===1)return Ft(t,e.elements[0]);const n=[];for(const o of e.elements){const l={ALT:Ft(t,o,!0)},u=ji(o);u&&(l.GATE=it(u)),n.push(l)}const r=t.or++,i=(o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},s=o=>t.parser.alternatives(r,n.map((l,u)=>{const c={ALT:()=>!0},f=t.parser;c.ALT=()=>{if(l.ALT(o),!f.isRecording()){const h=i(r,f);f.unorderedGroups.get(h)||f.unorderedGroups.set(h,[]);const m=f.unorderedGroups.get(h);typeof m?.[u]>"u"&&(m[u]=!0)}};const d=l.GATE;return d?c.GATE=()=>d(o):c.GATE=()=>{const h=f.unorderedGroups.get(i(r,f));return!h?.[u]},c})),a=ad(t,ji(e),s,"*");return o=>{a(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(r,t.parser))}}function gE(t,e){const n=e.elements.map(r=>Ft(t,r));return r=>n.forEach(i=>i(r))}function ji(t){if(Ua(t))return t.guardCondition}function sd(t,e,n=e.terminal){if(n)if(Pt(n)&&_e(n.rule.ref)){const r=n.rule.ref,i=t.subrule++;return s=>t.parser.subrule(i,od(t,r),!1,e,s)}else if(Pt(n)&&Ut(n.rule.ref)){const r=t.consume++,i=La(t,n.rule.ref.name);return()=>t.parser.consume(r,i,e)}else if(Ot(n)){const r=t.consume++,i=La(t,n.value);return()=>t.parser.consume(r,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const r=Cc(e.type.ref),i=r?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+Va(e.type.ref));return sd(t,e,i)}}function yE(t,e){const n=t.consume++,r=t.tokens[e.value];if(!r)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(n,r,e)}function ad(t,e,n,r){const i=e&&it(e);if(!r)if(i){const s=t.or++;return a=>t.parser.alternatives(s,[{ALT:()=>n(a),GATE:()=>i(a)},{ALT:Dl(),GATE:()=>!i(a)}])}else return n;if(r==="*"){const s=t.many++;return a=>t.parser.many(s,{DEF:()=>n(a),GATE:i?()=>i(a):void 0})}else if(r==="+"){const s=t.many++;if(i){const a=t.or++;return o=>t.parser.alternatives(a,[{ALT:()=>t.parser.atLeastOne(s,{DEF:()=>n(o)}),GATE:()=>i(o)},{ALT:Dl(),GATE:()=>!i(o)}])}else return a=>t.parser.atLeastOne(s,{DEF:()=>n(a)})}else if(r==="?"){const s=t.optional++;return a=>t.parser.optional(s,{DEF:()=>n(a),GATE:i?()=>i(a):void 0})}else Sr()}function od(t,e){const n=TE(t,e),r=t.parser.getRule(n);if(!r)throw new Error(`Rule "${n}" not found."`);return r}function TE(t,e){if(_e(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let n=e,r=n.$container,i=e.$type;for(;!_e(r);)(Ua(r)||vc(r)||Rc(r))&&(i=r.elements.indexOf(n).toString()+":"+i),n=r,r=r.$container;return i=r.name+":"+i,t.ruleNames.set(e,i),i}}function La(t,e){const n=t.tokens[e];if(!n)throw new Error(`Token "${e}" not found."`);return n}function vE(t){const e=t.Grammar,n=t.parser.Lexer,r=new oE(t);return id(e,r,n.definition),r.finalize(),r}function RE(t){const e=AE(t);return e.finalize(),e}function AE(t){const e=t.Grammar,n=t.parser.Lexer,r=new sE(t);return id(e,r,n.definition)}class ld{constructor(){this.diagnostics=[]}buildTokens(e,n){const r=re(Sc(e,!1)),i=this.buildTerminalTokens(r),s=this.buildKeywordTokens(r,i,n);return i.forEach(a=>{const o=a.PATTERN;typeof o=="object"&&o&&"test"in o&&na(o)?s.unshift(a):s.push(a)}),s}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Ut).filter(n=>!n.fragment).map(n=>this.buildTerminalToken(n)).toArray()}buildTerminalToken(e){const n=Ha(e),r=this.requiresCustomPattern(n)?this.regexPatternFunction(n):n,i={name:e.name,PATTERN:r};return typeof r=="function"&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=na(n)?he.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")||e.flags.includes("s")?!0:!!(e.source.includes("?<=")||e.source.includes("?<!"))}regexPatternFunction(e){const n=new RegExp(e,e.flags+"y");return(r,i)=>(n.lastIndex=i,n.exec(r))}buildKeywordTokens(e,n,r){return e.filter(_e).flatMap(i=>kr(i).filter(Ot)).distinct(i=>i.value).toArray().sort((i,s)=>s.value.length-i.value.length).map(i=>this.buildKeywordToken(i,n,!!r?.caseInsensitive))}buildKeywordToken(e,n,r){const i=this.buildKeywordPattern(e,r),s={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,n)};return typeof i=="function"&&(s.LINE_BREAKS=!0),s}buildKeywordPattern(e,n){return n?new RegExp(yh(e.value)):e.value}findLongerAlt(e,n){return n.reduce((r,i)=>{const s=i?.PATTERN;return s?.source&&Th("^"+s.source+"$",e.value)&&r.push(i),r},[])}}class ud{convert(e,n){let r=n.grammarSource;if(Ga(r)&&(r=Eh(r)),Pt(r)){const i=r.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,n)}return e}runConverter(e,n,r){var i;switch(e.name.toUpperCase()){case"INT":return tt.convertInt(n);case"STRING":return tt.convertString(n);case"ID":return tt.convertID(n)}switch((i=wh(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return tt.convertNumber(n);case"boolean":return tt.convertBoolean(n);case"bigint":return tt.convertBigint(n);case"date":return tt.convertDate(n);default:return n}}}var tt;(function(t){function e(u){let c="";for(let f=1;f<u.length-1;f++){const d=u.charAt(f);if(d==="\\"){const h=u.charAt(++f);c+=n(h)}else c+=d}return c}t.convertString=e;function n(u){switch(u){case"b":return"\b";case"f":return"\f";case"n":return`
118
+ `;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return u}}function r(u){return u.charAt(0)==="^"?u.substring(1):u}t.convertID=r;function i(u){return parseInt(u)}t.convertInt=i;function s(u){return BigInt(u)}t.convertBigint=s;function a(u){return new Date(u)}t.convertDate=a;function o(u){return Number(u)}t.convertNumber=o;function l(u){return u.toLowerCase()==="true"}t.convertBoolean=l})(tt||(tt={}));var Nt={},Zr={},Ku;function cd(){if(Ku)return Zr;Ku=1,Object.defineProperty(Zr,"__esModule",{value:!0});let t;function e(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}return(function(n){function r(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");t=i}n.install=r})(e||(e={})),Zr.default=e,Zr}var ee={},Vu;function EE(){if(Vu)return ee;Vu=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.stringArray=ee.array=ee.func=ee.error=ee.number=ee.string=ee.boolean=void 0;function t(o){return o===!0||o===!1}ee.boolean=t;function e(o){return typeof o=="string"||o instanceof String}ee.string=e;function n(o){return typeof o=="number"||o instanceof Number}ee.number=n;function r(o){return o instanceof Error}ee.error=r;function i(o){return typeof o=="function"}ee.func=i;function s(o){return Array.isArray(o)}ee.array=s;function a(o){return s(o)&&o.every(l=>e(l))}return ee.stringArray=a,ee}var _t={},Hu;function fd(){if(Hu)return _t;Hu=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.Emitter=_t.Event=void 0;const t=cd();var e;(function(i){const s={dispose(){}};i.None=function(){return s}})(e||(_t.Event=e={}));class n{add(s,a=null,o){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(a),Array.isArray(o)&&o.push({dispose:()=>this.remove(s,a)})}remove(s,a=null){if(!this._callbacks)return;let o=!1;for(let l=0,u=this._callbacks.length;l<u;l++)if(this._callbacks[l]===s)if(this._contexts[l]===a){this._callbacks.splice(l,1),this._contexts.splice(l,1);return}else o=!0;if(o)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 a=[],o=this._callbacks.slice(0),l=this._contexts.slice(0);for(let u=0,c=o.length;u<c;u++)try{a.push(o[u].apply(l[u],s))}catch(f){(0,t.default)().console.error(f)}return a}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class r{constructor(s){this._options=s}get event(){return this._event||(this._event=(s,a,o)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(s,a);const l={dispose:()=>{this._callbacks&&(this._callbacks.remove(s,a),l.dispose=r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(o)&&o.push(l),l}),this._event}fire(s){this._callbacks&&this._callbacks.invoke.call(this._callbacks,s)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}return _t.Emitter=r,r._noop=function(){},_t}var Wu;function $E(){if(Wu)return Nt;Wu=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.CancellationTokenSource=Nt.CancellationToken=void 0;const t=cd(),e=EE(),n=fd();var r;(function(o){o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function l(u){const c=u;return c&&(c===o.None||c===o.Cancelled||e.boolean(c.isCancellationRequested)&&!!c.onCancellationRequested)}o.is=l})(r||(Nt.CancellationToken=r={}));const i=Object.freeze(function(o,l){const u=(0,t.default)().timer.setTimeout(o.bind(l),0);return{dispose(){u.dispose()}}});class s{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?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class a{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}return Nt.CancellationTokenSource=a,Nt}var H=$E();function xE(){return new Promise(t=>{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}let pi=0,SE=10;function kE(){return pi=performance.now(),new H.CancellationTokenSource}const Ki=Symbol("OperationCancelled");function gs(t){return t===Ki}async function Ee(t){if(t===H.CancellationToken.None)return;const e=performance.now();if(e-pi>=SE&&(pi=e,await xE(),pi=performance.now()),t.isCancellationRequested)throw Ki}class xo{constructor(){this.promise=new Promise((e,n)=>{this.resolve=r=>(e(r),this),this.reject=r=>(n(r),this)})}}class xr{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(const r of e)if(xr.isIncremental(r)){const i=hd(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let u=this._lineOffsets;const c=zu(r.text,!1,s);if(l-o===c.length)for(let d=0,h=c.length;d<h;d++)u[d+o+1]=c[d];else c.length<1e4?u.splice(o+1,l-o,...c):this._lineOffsets=u=u.slice(0,o+1).concat(c,u.slice(l+1));const f=r.text.length-(a-s);if(f!==0)for(let d=o+1+c.length,h=u.length;d<h;d++)u[d]=u[d]+f}else if(xr.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=zu(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const n=this.getLineOffsets();let r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){const a=Math.floor((r+i)/2);n[a]>e?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,n[s]),{line:s,character:e-n[s]}}offsetAt(e){const n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;const r=n[e.line];if(e.character<=0)return r;const i=e.line+1<n.length?n[e.line+1]:this._content.length,s=Math.min(r+e.character,i);return this.ensureBeforeEOL(s,r)}ensureBeforeEOL(e,n){for(;e>n&&dd(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){const n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Oa;(function(t){function e(i,s,a,o){return new xr(i,s,a,o)}t.create=e;function n(i,s,a){if(i instanceof xr)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,s){const a=i.getText(),o=Pa(s.map(IE),(c,f)=>{const d=c.range.start.line-f.range.start.line;return d===0?c.range.start.character-f.range.start.character:d});let l=0;const u=[];for(const c of o){const f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(a.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(a.substr(l)),u.join("")}t.applyEdits=r})(Oa||(Oa={}));function Pa(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Pa(r,e),Pa(i,e);let s=0,a=0,o=0;for(;s<r.length&&a<i.length;)e(r[s],i[a])<=0?t[o++]=r[s++]:t[o++]=i[a++];for(;s<r.length;)t[o++]=r[s++];for(;a<i.length;)t[o++]=i[a++];return t}function zu(t,e,n=0){const r=e?[n]:[];for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);dd(s)&&(s===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function dd(t){return t===13||t===10}function hd(t){const e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function IE(t){const e=hd(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var pd;(()=>{var t={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,u){for(var c,f="",d=0,h=-1,m=0,g=0;g<=l.length;++g){if(g<l.length)c=l.charCodeAt(g);else{if(c===47)break;c=47}if(c===47){if(!(h===g-1||m===1))if(h!==g-1&&m===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var R=f.lastIndexOf("/");if(R!==f.length-1){R===-1?(f="",d=0):d=(f=f.slice(0,R)).length-1-f.lastIndexOf("/"),h=g,m=0;continue}}else if(f.length===2||f.length===1){f="",d=0,h=g,m=0;continue}}u&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+l.slice(h+1,g):f=l.slice(h+1,g),d=g-h-1;h=g,m=0}else c===46&&m!==-1?++m:m=-1}return f}var o={resolve:function(){for(var l,u="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var d;f>=0?d=arguments[f]:(l===void 0&&(l=process.cwd()),d=l),s(d),d.length!==0&&(u=d+"/"+u,c=d.charCodeAt(0)===47)}return u=a(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(s(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=a(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u<arguments.length;++u){var c=arguments[u];s(c),c.length>0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":o.normalize(l)},relative:function(l,u){if(s(l),s(u),l===u||(l=o.resolve(l))===(u=o.resolve(u)))return"";for(var c=1;c<l.length&&l.charCodeAt(c)===47;++c);for(var f=l.length,d=f-c,h=1;h<u.length&&u.charCodeAt(h)===47;++h);for(var m=u.length-h,g=d<m?d:m,R=-1,y=0;y<=g;++y){if(y===g){if(m>g){if(u.charCodeAt(h+y)===47)return u.slice(h+y+1);if(y===0)return u.slice(h+y)}else d>g&&(l.charCodeAt(c+y)===47?R=y:y===0&&(R=0));break}var E=l.charCodeAt(c+y);if(E!==u.charCodeAt(h+y))break;E===47&&(R=y)}var v="";for(y=c+R+1;y<=f;++y)y!==f&&l.charCodeAt(y)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+u.slice(h+R):(h+=R,u.charCodeAt(h)===47&&++h,u.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,f=-1,d=!0,h=l.length-1;h>=1;--h)if((u=l.charCodeAt(h))===47){if(!d){f=h;break}}else d=!1;return f===-1?c?"/":".":c&&f===1?"//":l.slice(0,f)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(l);var c,f=0,d=-1,h=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var m=u.length-1,g=-1;for(c=l.length-1;c>=0;--c){var R=l.charCodeAt(c);if(R===47){if(!h){f=c+1;break}}else g===-1&&(h=!1,g=c+1),m>=0&&(R===u.charCodeAt(m)?--m==-1&&(d=c):(m=-1,d=g))}return f===d?d=g:d===-1&&(d=l.length),l.slice(f,d)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!h){f=c+1;break}}else d===-1&&(h=!1,d=c+1);return d===-1?"":l.slice(f,d)},extname:function(l){s(l);for(var u=-1,c=0,f=-1,d=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)f===-1&&(d=!1,f=m+1),g===46?u===-1?u=m:h!==1&&(h=1):u!==-1&&(h=-1);else if(!d){c=m+1;break}}return u===-1||f===-1||h===0||h===1&&u===f-1&&u===c+1?"":l.slice(u,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return(function(u,c){var f=c.dir||c.root,d=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+d:f+"/"+d:d})(0,l)},parse:function(l){s(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,f=l.charCodeAt(0),d=f===47;d?(u.root="/",c=1):c=0;for(var h=-1,m=0,g=-1,R=!0,y=l.length-1,E=0;y>=c;--y)if((f=l.charCodeAt(y))!==47)g===-1&&(R=!1,g=y+1),f===46?h===-1?h=y:E!==1&&(E=1):h!==-1&&(E=-1);else if(!R){m=y+1;break}return h===-1||g===-1||E===0||E===1&&h===g-1&&h===m+1?g!==-1&&(u.base=u.name=m===0&&d?l.slice(1,g):l.slice(m,g)):(m===0&&d?(u.name=l.slice(1,h),u.base=l.slice(1,g)):(u.name=l.slice(m,h),u.base=l.slice(m,g)),u.ext=l.slice(h,g)),m>0?u.dir=l.slice(0,m-1):d&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function n(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>Ie}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l($,T){if(!$.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${$.authority}", path: "${$.path}", query: "${$.query}", fragment: "${$.fragment}"}`);if($.scheme&&!s.test($.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if($.path){if($.authority){if(!a.test($.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(o.test($.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(T){return T instanceof d||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}scheme;authority;path;query;fragment;constructor(T,k,x,L,b,_=!1){typeof T=="object"?(this.scheme=T.scheme||u,this.authority=T.authority||u,this.path=T.path||u,this.query=T.query||u,this.fragment=T.fragment||u):(this.scheme=(function(ve,Z){return ve||Z?ve:"file"})(T,_),this.authority=k||u,this.path=(function(ve,Z){switch(ve){case"https":case"http":case"file":Z?Z[0]!==c&&(Z=c+Z):Z=c}return Z})(this.scheme,x||u),this.query=L||u,this.fragment=b||u,l(this,_))}get fsPath(){return E(this)}with(T){if(!T)return this;let{scheme:k,authority:x,path:L,query:b,fragment:_}=T;return k===void 0?k=this.scheme:k===null&&(k=u),x===void 0?x=this.authority:x===null&&(x=u),L===void 0?L=this.path:L===null&&(L=u),b===void 0?b=this.query:b===null&&(b=u),_===void 0?_=this.fragment:_===null&&(_=u),k===this.scheme&&x===this.authority&&L===this.path&&b===this.query&&_===this.fragment?this:new m(k,x,L,b,_)}static parse(T,k=!1){const x=f.exec(T);return x?new m(x[2]||u,ae(x[4]||u),ae(x[5]||u),ae(x[7]||u),ae(x[9]||u),k):new m(u,u,u,u,u)}static file(T){let k=u;if(i&&(T=T.replace(/\\/g,c)),T[0]===c&&T[1]===c){const x=T.indexOf(c,2);x===-1?(k=T.substring(2),T=c):(k=T.substring(2,x),T=T.substring(x)||c)}return new m("file",k,T,u,u)}static from(T){const k=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(k,!0),k}toString(T=!1){return v(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof d)return T;{const k=new m(T);return k._formatted=T.external,k._fsPath=T._sep===h?T.fsPath:null,k}}return T}}const h=i?1:void 0;class m extends d{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(T=!1){return T?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const T={$mid:1};return this._fsPath&&(T.fsPath=this._fsPath,T._sep=h),this._formatted&&(T.external=this._formatted),this.path&&(T.path=this.path),this.scheme&&(T.scheme=this.scheme),this.authority&&(T.authority=this.authority),this.query&&(T.query=this.query),this.fragment&&(T.fragment=this.fragment),T}}const g={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 R($,T,k){let x,L=-1;for(let b=0;b<$.length;b++){const _=$.charCodeAt(b);if(_>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===45||_===46||_===95||_===126||T&&_===47||k&&_===91||k&&_===93||k&&_===58)L!==-1&&(x+=encodeURIComponent($.substring(L,b)),L=-1),x!==void 0&&(x+=$.charAt(b));else{x===void 0&&(x=$.substr(0,b));const ve=g[_];ve!==void 0?(L!==-1&&(x+=encodeURIComponent($.substring(L,b)),L=-1),x+=ve):L===-1&&(L=b)}}return L!==-1&&(x+=encodeURIComponent($.substring(L))),x!==void 0?x:$}function y($){let T;for(let k=0;k<$.length;k++){const x=$.charCodeAt(k);x===35||x===63?(T===void 0&&(T=$.substr(0,k)),T+=g[x]):T!==void 0&&(T+=$[k])}return T!==void 0?T:$}function E($,T){let k;return k=$.authority&&$.path.length>1&&$.scheme==="file"?`//${$.authority}${$.path}`:$.path.charCodeAt(0)===47&&($.path.charCodeAt(1)>=65&&$.path.charCodeAt(1)<=90||$.path.charCodeAt(1)>=97&&$.path.charCodeAt(1)<=122)&&$.path.charCodeAt(2)===58?$.path[1].toLowerCase()+$.path.substr(2):$.path,i&&(k=k.replace(/\//g,"\\")),k}function v($,T){const k=T?y:R;let x="",{scheme:L,authority:b,path:_,query:ve,fragment:Z}=$;if(L&&(x+=L,x+=":"),(b||L==="file")&&(x+=c,x+=c),b){let W=b.indexOf("@");if(W!==-1){const It=b.substr(0,W);b=b.substr(W+1),W=It.lastIndexOf(":"),W===-1?x+=k(It,!1,!1):(x+=k(It.substr(0,W),!1,!1),x+=":",x+=k(It.substr(W+1),!1,!0)),x+="@"}b=b.toLowerCase(),W=b.lastIndexOf(":"),W===-1?x+=k(b,!1,!0):(x+=k(b.substr(0,W),!1,!0),x+=b.substr(W))}if(_){if(_.length>=3&&_.charCodeAt(0)===47&&_.charCodeAt(2)===58){const W=_.charCodeAt(1);W>=65&&W<=90&&(_=`/${String.fromCharCode(W+32)}:${_.substr(3)}`)}else if(_.length>=2&&_.charCodeAt(1)===58){const W=_.charCodeAt(0);W>=65&&W<=90&&(_=`${String.fromCharCode(W+32)}:${_.substr(2)}`)}x+=k(_,!0,!1)}return ve&&(x+="?",x+=k(ve,!1,!1)),Z&&(x+="#",x+=T?Z:R(Z,!1,!1)),x}function S($){try{return decodeURIComponent($)}catch{return $.length>3?$.substr(0,3)+S($.substr(3)):$}}const M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ae($){return $.match(M)?$.replace(M,(T=>S(T))):$}var Me=n(470);const Te=Me.posix||Me,He="/";var Ie;(function($){$.joinPath=function(T,...k){return T.with({path:Te.join(T.path,...k)})},$.resolvePath=function(T,...k){let x=T.path,L=!1;x[0]!==He&&(x=He+x,L=!0);let b=Te.resolve(x,...k);return L&&b[0]===He&&!T.authority&&(b=b.substring(1)),T.with({path:b})},$.dirname=function(T){if(T.path.length===0||T.path===He)return T;let k=Te.dirname(T.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),T.with({path:k})},$.basename=function(T){return Te.basename(T.path)},$.extname=function(T){return Te.extname(T.path)}})(Ie||(Ie={}))})(),pd=r})();const{URI:Gt,Utils:Ln}=pd;var vt;(function(t){t.basename=Ln.basename,t.dirname=Ln.dirname,t.extname=Ln.extname,t.joinPath=Ln.joinPath,t.resolvePath=Ln.resolvePath;function e(i,s){return i?.toString()===s?.toString()}t.equals=e;function n(i,s){const a=typeof i=="string"?i:i.path,o=typeof s=="string"?s:s.path,l=a.split("/").filter(h=>h.length>0),u=o.split("/").filter(h=>h.length>0);let c=0;for(;c<l.length&&l[c]===u[c];c++);const f="../".repeat(l.length-c),d=u.slice(c).join("/");return f+d}t.relative=n;function r(i){return Gt.parse(i.toString()).toString()}t.normalize=r})(vt||(vt={}));var K;(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(K||(K={}));class CE{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,n=H.CancellationToken.None){const r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,n)}fromTextDocument(e,n,r){return n=n??Gt.parse(e.uri),H.CancellationToken.is(r)?this.createAsync(n,e,r):this.create(n,e,r)}fromString(e,n,r){return H.CancellationToken.is(r)?this.createAsync(n,e,r):this.create(n,e,r)}fromModel(e,n){return this.create(n,{$model:e})}create(e,n,r){if(typeof n=="string"){const i=this.parse(e,n,r);return this.createLangiumDocument(i,e,void 0,n)}else if("$model"in n){const i={value:n.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(i,e)}else{const i=this.parse(e,n.getText(),r);return this.createLangiumDocument(i,e,n)}}async createAsync(e,n,r){if(typeof n=="string"){const i=await this.parseAsync(e,n,r);return this.createLangiumDocument(i,e,void 0,n)}else{const i=await this.parseAsync(e,n.getText(),r);return this.createLangiumDocument(i,e,n)}}createLangiumDocument(e,n,r,i){let s;if(r)s={parseResult:e,uri:n,state:K.Parsed,references:[],textDocument:r};else{const a=this.createTextDocumentGetter(n,i);s={parseResult:e,uri:n,state:K.Parsed,references:[],get textDocument(){return a()}}}return e.value.$document=s,s}async update(e,n){var r,i;const s=(r=e.parseResult.value.$cstNode)===null||r===void 0?void 0:r.root.fullText,a=(i=this.textDocuments)===null||i===void 0?void 0:i.get(e.uri.toString()),o=a?a.getText():await this.fileSystemProvider.readFile(e.uri);if(a)Object.defineProperty(e,"textDocument",{value:a});else{const l=this.createTextDocumentGetter(e.uri,o);Object.defineProperty(e,"textDocument",{get:l})}return s!==o&&(e.parseResult=await this.parseAsync(e.uri,o,n),e.parseResult.value.$document=e),e.state=K.Parsed,e}parse(e,n,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(n,r)}parseAsync(e,n,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(n,r)}createTextDocumentGetter(e,n){const r=this.serviceRegistry;let i;return()=>i??(i=Oa.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,n??""))}}class wE{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.serviceRegistry=e.ServiceRegistry}get all(){return re(this.documentMap.values())}addDocument(e){const n=e.uri.toString();if(this.documentMap.has(n))throw new Error(`A document with the URI '${n}' is already present.`);this.documentMap.set(n,e)}getDocument(e){const n=e.toString();return this.documentMap.get(n)}async getOrCreateDocument(e,n){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,n),this.addDocument(r),r)}createDocument(e,n,r){if(r)return this.langiumDocumentFactory.fromString(n,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(n,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const n=e.toString(),r=this.documentMap.get(n);return r&&(this.serviceRegistry.getServices(e).references.Linker.unlink(r),r.state=K.Changed,r.precomputedScopes=void 0,r.diagnostics=void 0),r}deleteDocument(e){const n=e.toString(),r=this.documentMap.get(n);return r&&(r.state=K.Changed,this.documentMap.delete(n)),r}}const Fs=Symbol("ref_resolving");class NE{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,n=H.CancellationToken.None){for(const r of Jt(e.parseResult.value))await Ee(n),Ec(r).forEach(i=>this.doLink(i,e))}doLink(e,n){var r;const i=e.reference;if(i._ref===void 0){i._ref=Fs;try{const s=this.getCandidate(e);if(ai(s))i._ref=s;else if(i._nodeDescription=s,this.langiumDocuments().hasDocument(s.documentUri)){const a=this.loadAstNode(s);i._ref=a??this.createLinkingError(e,s)}else i._ref=void 0}catch(s){console.error(`An error occurred while resolving reference to '${i.$refText}':`,s);const a=(r=s.message)!==null&&r!==void 0?r:String(s);i._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${i.$refText}': ${a}`})}n.references.push(i)}}unlink(e){for(const n of e.references)delete n._ref,delete n._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,n,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(le(this._ref))return this._ref;if(Pd(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:n},this._nodeDescription)}else if(this._ref===void 0){this._ref=Fs;const l=ta(e).$document,u=s.getLinkedNode({reference:a,container:e,property:n});if(u.error&&l&&l.state<K.ComputedScopes)return this._ref=void 0;this._ref=(o=u.node)!==null&&o!==void 0?o:u.error,this._nodeDescription=u.descr,l?.references.push(this)}else if(this._ref===Fs)throw new Error(`Cyclic reference resolution detected: ${s.astNodeLocator.getAstNodePath(e)}/${n} (symbol '${i}')`);return le(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return ai(this._ref)?this._ref:void 0}};return a}getLinkedNode(e){var n;try{const r=this.getCandidate(e);if(ai(r))return{error:r};const i=this.loadAstNode(r);return i?{node:i,descr:r}:{descr:r,error:this.createLinkingError(e,r)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);const i=(n=r.message)!==null&&n!==void 0?n:String(r);return{error:Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${e.reference.$refText}': ${i}`})}}}loadAstNode(e){if(e.node)return e.node;const n=this.langiumDocuments().getDocument(e.documentUri);if(n)return this.astNodeLocator.getAstNode(n.parseResult.value,e.path)}createLinkingError(e,n){const r=ta(e.container).$document;r&&r.state<K.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);const i=this.reflection.getReferenceType(e);return Object.assign(Object.assign({},e),{message:`Could not resolve reference to ${i} named '${e.reference.$refText}'.`,targetDescription:n})}}function _E(t){return typeof t.name=="string"}class bE{getName(e){if(_E(e))return e.name}getNameNode(e){return Ic(e.$cstNode,"name")}}class LE{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator}findDeclaration(e){if(e){const n=Ih(e),r=e.astNode;if(n&&r){const i=r[n.feature];if(ze(i))return i.ref;if(Array.isArray(i)){for(const s of i)if(ze(s)&&s.$refNode&&s.$refNode.offset<=e.offset&&s.$refNode.end>=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Fd(e,i)))return r}}}findDeclarationNode(e){const n=this.findDeclaration(e);if(n?.$cstNode){const r=this.nameProvider.getNameNode(n);return r??n.$cstNode}}findReferences(e,n){const r=[];if(n.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return n.documentUri&&(i=i.filter(s=>vt.equals(s.sourceUri,n.documentUri))),r.push(...i),re(r)}getReferenceToSelf(e){const n=this.nameProvider.getNameNode(e);if(n){const r=pt(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:$i(n),local:!0}}}}class Vi{constructor(e){if(this.map=new Map,e)for(const[n,r]of e)this.add(n,r)}get size(){return Zs.sum(re(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,n){if(n===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(n);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var n;return(n=this.map.get(e))!==null&&n!==void 0?n:[]}has(e,n){if(n===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(n)>=0:!1}}add(e,n){return this.map.has(e)?this.map.get(e).push(n):this.map.set(e,[n]),this}addAll(e,n){return this.map.has(e)?this.map.get(e).push(...n):this.map.set(e,Array.from(n)),this}forEach(e){this.map.forEach((n,r)=>n.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return re(this.map.entries()).flatMap(([e,n])=>n.map(r=>[e,r]))}keys(){return re(this.map.keys())}values(){return re(this.map.values()).flat()}entriesGroupedByKey(){return re(this.map.entries())}}class qu{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[n,r]of e)this.set(n,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,n){return this.map.set(e,n),this.inverse.set(n,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const n=this.map.get(e);return n!==void 0?(this.map.delete(e),this.inverse.delete(n),!0):!1}}class OE{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,n=H.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,n)}async computeExportsForNode(e,n,r=Ba,i=H.CancellationToken.None){const s=[];this.exportNode(e,s,n);for(const a of r(e))await Ee(i),this.exportNode(a,s,n);return s}exportNode(e,n,r){const i=this.nameProvider.getName(e);i&&n.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,n=H.CancellationToken.None){const r=e.parseResult.value,i=new Vi;for(const s of kr(r))await Ee(n),this.processNode(s,e,i);return i}processNode(e,n,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,n))}}}class Yu{constructor(e,n,r){var i;this.elements=e,this.outerScope=n,this.caseInsensitive=(i=r?.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const n=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}}class PE{constructor(e,n,r){var i;this.elements=new Map,this.caseInsensitive=(i=r?.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=n}getElement(e){const n=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(n);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=re(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class md{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")}}class ME extends md{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,n){this.throwIfDisposed(),this.cache.set(e,n)}get(e,n){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(n){const r=n();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class DE extends md{constructor(e){super(),this.cache=new Map,this.converter=e??(n=>n)}has(e,n){return this.throwIfDisposed(),this.cacheForContext(e).has(n)}set(e,n,r){this.throwIfDisposed(),this.cacheForContext(e).set(n,r)}get(e,n,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(n))return i.get(n);if(r){const s=r();return i.set(n,s),s}else return}delete(e,n){return this.throwIfDisposed(),this.cacheForContext(e).delete(n)}clear(e){if(this.throwIfDisposed(),e){const n=this.converter(e);this.cache.delete(n)}else this.cache.clear()}cacheForContext(e){const n=this.converter(e);let r=this.cache.get(n);return r||(r=new Map,this.cache.set(n,r)),r}}class FE extends ME{constructor(e,n){super(),n?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(n,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,i)=>{i.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class GE{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 FE(e.shared)}getScope(e){const n=[],r=this.reflection.getReferenceType(e),i=pt(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&n.push(re(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=n.length-1;a>=0;a--)s=this.createScope(n[a],s);return s}createScope(e,n,r){return new Yu(re(e),n,r)}createScopeForNodes(e,n,r){const i=re(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Yu(i,n,r)}getGlobalScope(e,n){return this.globalScopeCache.get(e,()=>new PE(this.indexManager.allElements(e)))}}function UE(t){return typeof t.$comment=="string"}function Xu(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}class BE{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,n){const r=n??{},i=n?.replacer,s=(o,l)=>this.replacer(o,l,r),a=i?(o,l)=>i(o,l,s):s;try{return this.currentDocument=pt(e),JSON.stringify(e,a,n?.space)}finally{this.currentDocument=void 0}}deserialize(e,n){const r=n??{},i=JSON.parse(e);return this.linkNode(i,i,r),i}replacer(e,n,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,u,c,f;if(!this.ignoreProperties.has(e))if(ze(n)){const d=n.ref,h=r?n.$refText:void 0;if(d){const m=pt(d);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,n):g=m.uri.toString());const R=this.astNodeLocator.getAstNodePath(d);return{$ref:`${g}#${R}`,$refText:h}}else return{$error:(u=(l=n.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:"Could not resolve reference",$refText:h}}else if(le(n)){let d;if(s&&(d=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},n)),(!e||n.$document)&&d?.$textRegion&&(d.$textRegion.documentURI=(c=this.currentDocument)===null||c===void 0?void 0:c.uri.toString())),i&&!e&&(d??(d=Object.assign({},n)),d.$sourceText=(f=n.$cstNode)===null||f===void 0?void 0:f.text),a){d??(d=Object.assign({},n));const h=this.commentProvider.getComment(n);h&&(d.$comment=h.replace(/\r/g,""))}return d??n}else return n}addAstNodeRegionWithAssignmentsTo(e){const n=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=n(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=xh(e.$cstNode,s).map(n);a.length!==0&&(i[s]=a)}),e}}linkNode(e,n,r,i,s,a){for(const[l,u]of Object.entries(e))if(Array.isArray(u))for(let c=0;c<u.length;c++){const f=u[c];Xu(f)?u[c]=this.reviveReference(e,l,n,f,r):le(f)&&this.linkNode(f,n,r,e,l,c)}else Xu(u)?e[l]=this.reviveReference(e,l,n,u,r):le(u)&&this.linkNode(u,n,r,e,l);const o=e;o.$container=i,o.$containerProperty=s,o.$containerIndex=a}reviveReference(e,n,r,i,s){let a=i.$refText,o=i.$error;if(i.$ref){const l=this.getRefNode(r,i.$ref,s.uriConverter);if(le(l))return a||(a=this.nameProvider.getName(l)),{$refText:a??"",ref:l};o=l}if(o){const l={$refText:a??""};return l.error={container:e,property:n,message:o,reference:l},l}else return}getRefNode(e,n,r){try{const i=n.indexOf("#");if(i===0){const l=this.astNodeLocator.getAstNode(e,n.substring(1));return l||"Could not resolve path: "+n}if(i<0){const l=r?r(n):Gt.parse(n),u=this.langiumDocuments.getDocument(l);return u?u.parseResult.value:"Could not find document for URI: "+n}const s=r?r(n.substring(0,i)):Gt.parse(n.substring(0,i)),a=this.langiumDocuments.getDocument(s);if(!a)return"Could not find document for URI: "+n;if(i===n.length-1)return a.parseResult.value;const o=this.astNodeLocator.getAstNode(a.parseResult.value,n.substring(i+1));return o||"Could not resolve URI: "+n}catch(i){return String(i)}}}class jE{get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){const n=e.LanguageMetaData;for(const r of n.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${n.languageId}'.`),this.fileExtensionMap.set(r,e);this.languageIdMap.set(n.languageId,e),this.languageIdMap.size===1?this.singleton=e:this.singleton=void 0}getServices(e){var n,r;if(this.singleton!==void 0)return this.singleton;if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const i=(r=(n=this.textDocuments)===null||n===void 0?void 0:n.get(e))===null||r===void 0?void 0:r.languageId;if(i!==void 0){const o=this.languageIdMap.get(i);if(o)return o}const s=vt.extname(e),a=this.fileExtensionMap.get(s);if(!a)throw i?new Error(`The service registry contains no services for the extension '${s}' for language '${i}'.`):new Error(`The service registry contains no services for the extension '${s}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}}function fr(t){return{code:t}}var Hi;(function(t){t.all=["fast","slow","built-in"]})(Hi||(Hi={}));class KE{constructor(e){this.entries=new Vi,this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,n=this,r="fast"){if(r==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(const[i,s]of Object.entries(e)){const a=s;if(Array.isArray(a))for(const o of a){const l={check:this.wrapValidationException(o,n),category:r};this.addEntry(i,l)}else if(typeof a=="function"){const o={check:this.wrapValidationException(a,n),category:r};this.addEntry(i,o)}else Sr()}}wrapValidationException(e,n){return async(r,i,s)=>{await this.handleException(()=>e.call(n,r,i,s),"An error occurred during validation",i,r)}}async handleException(e,n,r,i){try{await e()}catch(s){if(gs(s))throw s;console.error(`${n}:`,s),s instanceof Error&&s.stack&&console.error(s.stack);const a=s instanceof Error?s.message:String(s);r("error",`${n}: ${a}`,{node:i})}}addEntry(e,n){if(e==="AstNode"){this.entries.add("AstNode",n);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,n)}getChecks(e,n){let r=re(this.entries.get(e)).concat(this.entries.get("AstNode"));return n&&(r=r.filter(i=>n.includes(i.category))),r.map(i=>i.check)}registerBeforeDocument(e,n=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",n))}registerAfterDocument(e,n=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",n))}wrapPreparationException(e,n,r){return async(i,s,a,o)=>{await this.handleException(()=>e.call(r,i,s,a,o),n,s,i)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}}class VE{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,n={},r=H.CancellationToken.None){const i=e.parseResult,s=[];if(await Ee(r),(!n.categories||n.categories.includes("built-in"))&&(this.processLexingErrors(i,s,n),n.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Fe.LexingError})||(this.processParsingErrors(i,s,n),n.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Fe.ParsingError}))||(this.processLinkingErrors(e,s,n),n.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Fe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,n,r))}catch(a){if(gs(a))throw a;console.error("An error occurred during validation:",a)}return await Ee(r),s}processLexingErrors(e,n,r){var i,s,a;const o=[...e.lexerErrors,...(s=(i=e.lexerReport)===null||i===void 0?void 0:i.diagnostics)!==null&&s!==void 0?s:[]];for(const l of o){const u=(a=l.severity)!==null&&a!==void 0?a:"error",c={severity:Gs(u),range:{start:{line:l.line-1,character:l.column-1},end:{line:l.line-1,character:l.column+l.length-1}},message:l.message,data:WE(u),source:this.getSource()};n.push(c)}}processParsingErrors(e,n,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=ea(i.token);if(s){const a={severity:Gs("error"),range:s,message:i.message,data:fr(Fe.ParsingError),source:this.getSource()};n.push(a)}}}processLinkingErrors(e,n,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Fe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};n.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,n,r=H.CancellationToken.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await this.validateAstBefore(e,n,s,r),await this.validateAstNodes(e,n,s,r),await this.validateAstAfter(e,n,s,r),i}async validateAstBefore(e,n,r,i=H.CancellationToken.None){var s;const a=this.validationRegistry.checksBefore;for(const o of a)await Ee(i),await o(e,r,(s=n.categories)!==null&&s!==void 0?s:[],i)}async validateAstNodes(e,n,r,i=H.CancellationToken.None){await Promise.all(Jt(e).map(async s=>{await Ee(i);const a=this.validationRegistry.getChecks(s.$type,n.categories);for(const o of a)await o(s,r,i)}))}async validateAstAfter(e,n,r,i=H.CancellationToken.None){var s;const a=this.validationRegistry.checksAfter;for(const o of a)await Ee(i),await o(e,r,(s=n.categories)!==null&&s!==void 0?s:[],i)}toDiagnostic(e,n,r){return{message:n,range:HE(r),severity:Gs(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 HE(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=Ic(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=Sh(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Gs(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}function WE(t){switch(t){case"error":return fr(Fe.LexingError);case"warning":return fr(Fe.LexingWarning);case"info":return fr(Fe.LexingInfo);case"hint":return fr(Fe.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}var Fe;(function(t){t.LexingError="lexing-error",t.LexingWarning="lexing-warning",t.LexingInfo="lexing-info",t.LexingHint="lexing-hint",t.ParsingError="parsing-error",t.LinkingError="linking-error"})(Fe||(Fe={}));class zE{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,n,r){const i=r??pt(e);n??(n=this.nameProvider.getName(e));const s=this.astNodeLocator.getAstNodePath(e);if(!n)throw new Error(`Node at path ${s} has no name.`);let a;const o=()=>{var l;return a??(a=$i((l=this.nameProvider.getNameNode(e))!==null&&l!==void 0?l:e.$cstNode))};return{node:e,name:n,get nameSegment(){return o()},selectionSegment:$i(e.$cstNode),type:e.$type,documentUri:i.uri,path:s}}}class qE{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,n=H.CancellationToken.None){const r=[],i=e.parseResult.value;for(const s of Jt(i))await Ee(n),Ec(s).filter(a=>!ai(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const n=e.reference.$nodeDescription,r=e.reference.$refNode;if(!n||!r)return;const i=pt(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:n.documentUri,targetPath:n.path,segment:$i(r),local:vt.equals(n.documentUri,i)}}}class YE{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const n=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return n+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:n}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return n!==void 0?e+this.indexSeparator+n:e}getAstNode(e,n){return n.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),u=i[o];return u?.[l]}return i[s]},e)}}var XE=fd();class JE{constructor(e){this._ready=new xo,this.settings={},this.workspaceConfig=!1,this.onConfigurationSectionUpdateEmitter=new XE.Emitter,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var n,r;this.workspaceConfig=(r=(n=e.capabilities.workspace)===null||n===void 0?void 0:n.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const n=this.serviceRegistry.all;e.register({section:n.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const n=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(n);n.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(n=>{const r=e.settings[n];this.updateSectionConfiguration(n,r),this.onConfigurationSectionUpdateEmitter.fire({section:n,configuration:r})})}updateSectionConfiguration(e,n){this.settings[e]=n}async getConfiguration(e,n){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][n]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}var yr;(function(t){function e(n){return{dispose:async()=>await n()}}t.create=e})(yr||(yr={}));class ZE{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Vi,this.documentPhaseListeners=new Vi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=K.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,n={},r=H.CancellationToken.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===K.Validated){if(typeof n.validation=="boolean"&&n.validation)a.state=K.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof n.validation=="object"){const l=this.buildState.get(o),u=(i=l?.result)===null||i===void 0?void 0:i.validationChecks;if(u){const f=((s=n.validation.categories)!==null&&s!==void 0?s:Hi.all).filter(d=>!u.includes(d));f.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},n.validation),{categories:f})},result:l.result}),a.state=K.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=K.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,n,r)}async update(e,n,r=H.CancellationToken.None){this.currentState=K.Changed;for(const a of n)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=K.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=re(e).concat(n).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,K.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,n),await Ee(r);const s=this.sortDocuments(this.langiumDocuments.all.filter(a=>{var o;return a.state<K.Linked||!(!((o=this.buildState.get(a.uri.toString()))===null||o===void 0)&&o.completed)}).toArray());await this.buildDocuments(s,this.updateBuildOptions,r)}async emitUpdate(e,n){await Promise.all(this.updateListeners.map(r=>r(e,n)))}sortDocuments(e){let n=0,r=e.length-1;for(;n<r;){for(;n<e.length&&this.hasTextDocument(e[n]);)n++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;n<r&&([e[n],e[r]]=[e[r],e[n]])}return e}hasTextDocument(e){var n;return!!(!((n=this.textDocuments)===null||n===void 0)&&n.get(e.uri))}shouldRelink(e,n){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,n)}onUpdate(e){return this.updateListeners.push(e),yr.create(()=>{const n=this.updateListeners.indexOf(e);n>=0&&this.updateListeners.splice(n,1)})}async buildDocuments(e,n,r){this.prepareBuild(e,n),await this.runCancelable(e,K.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,K.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,K.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,K.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,K.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,K.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,n){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:n,result:s?.result})}}async runCancelable(e,n,r,i){const s=e.filter(o=>o.state<n);for(const o of s)await Ee(r),await i(o),o.state=n,await this.notifyDocumentPhase(o,n,r);const a=e.filter(o=>o.state===n);await this.notifyBuildPhase(a,n,r),this.currentState=n}onBuildPhase(e,n){return this.buildPhaseListeners.add(e,n),yr.create(()=>{this.buildPhaseListeners.delete(e,n)})}onDocumentPhase(e,n){return this.documentPhaseListeners.add(e,n),yr.create(()=>{this.documentPhaseListeners.delete(e,n)})}waitUntil(e,n,r){let i;if(n&&"path"in n?i=n:r=n,r??(r=H.CancellationToken.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Ki):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const u=this.langiumDocuments.getDocument(i);s(u?.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Ki)})})}async notifyDocumentPhase(e,n,r){const s=this.documentPhaseListeners.get(n).slice();for(const a of s)try{await a(e,r)}catch(o){if(!gs(o))throw o}}async notifyBuildPhase(e,n,r){if(e.length===0)return;const s=this.buildPhaseListeners.get(n).slice();for(const a of s)await Ee(r),await a(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,n){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,n);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const u=this.buildState.get(e.uri.toString());if(u){(r=u.result)!==null&&r!==void 0||(u.result={});const c=(i=o?.categories)!==null&&i!==void 0?i:Hi.all;u.result.validationChecks?u.result.validationChecks.push(...c):u.result.validationChecks=[...c]}}getBuildOptions(e){var n,r;return(r=(n=this.buildState.get(e.uri.toString()))===null||n===void 0?void 0:n.options)!==null&&r!==void 0?r:{}}}class QE{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new DE,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,n){const r=pt(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{vt.equals(a.targetUri,r)&&a.targetPath===n&&i.push(a)})}),re(i)}allElements(e,n){let r=re(this.symbolIndex.keys());return n&&(r=r.filter(i=>!n||n.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,n){var r;return n?this.symbolByTypeIndex.get(e,n,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,n))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const n=e.toString();this.symbolIndex.delete(n),this.symbolByTypeIndex.clear(n),this.referenceIndex.delete(n)}async updateContent(e,n=H.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,n),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,n=H.CancellationToken.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,n);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,n){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&n.has(i.targetUri.toString())):!1}}class e${constructor(e){this.initialBuildOptions={},this._ready=new xo,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){var n;this.folders=(n=e.workspaceFolders)!==null&&n!==void 0?n:void 0}initialized(e){return this.mutex.write(n=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],n)})}async initializeWorkspace(e,n=H.CancellationToken.None){const r=await this.performStartup(e);await Ee(n),await this.documentBuilder.build(r,this.initialBuildOptions,n)}async performStartup(e){const n=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,n,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,n){return Promise.resolve()}getRootFolder(e){return Gt.parse(e.uri)}async traverseFolder(e,n,r,i){const s=await this.fileSystemProvider.readDirectory(n);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,n,r){const i=vt.basename(n.uri);if(i.startsWith("."))return!1;if(n.isDirectory)return i!=="node_modules"&&i!=="out";if(n.isFile){const s=vt.extname(n.uri);return r.includes(s)}return!1}}class t${buildUnexpectedCharactersMessage(e,n,r,i,s){return ca.buildUnexpectedCharactersMessage(e,n,r,i,s)}buildUnableToPopLexerModeMessage(e){return ca.buildUnableToPopLexerModeMessage(e)}}const n$={mode:"full"};class r${constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const n=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(n);const r=Ju(n)?Object.values(n):n,i=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new he(r,{positionTracking:"full",skipValidations:i,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,n=n$){var r,i,s;const a=this.chevrotainLexer.tokenize(e);return{tokens:a.tokens,errors:a.errors,hidden:(r=a.groups.hidden)!==null&&r!==void 0?r:[],report:(s=(i=this.tokenBuilder).flushLexingReport)===null||s===void 0?void 0:s.call(i,e)}}toTokenTypeDictionary(e){if(Ju(e))return e;const n=gd(e)?Object.values(e.modes).flat():e,r={};return n.forEach(i=>r[i.name]=i),r}}function i$(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}function gd(t){return t&&"modes"in t&&"defaultMode"in t}function Ju(t){return!i$(t)&&!gd(t)}function s$(t,e,n){let r,i;typeof t=="string"?(i=e,r=n):(i=t.range.start,r=e),i||(i=D.create(0,0));const s=yd(t),a=So(r),o=l$({lines:s,position:i,options:a});return h$({index:0,tokens:o,position:i})}function a$(t,e){const n=So(e),r=yd(t);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=n.start,o=n.end;return!!a?.exec(i)&&!!o?.exec(s)}function yd(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(dh)}const Zu=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,o$=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function l$(t){var e,n,r;const i=[];let s=t.position.line,a=t.position.character;for(let o=0;o<t.lines.length;o++){const l=o===0,u=o===t.lines.length-1;let c=t.lines[o],f=0;if(l&&t.options.start){const h=(e=t.options.start)===null||e===void 0?void 0:e.exec(c);h&&(f=h.index+h[0].length)}else{const h=(n=t.options.line)===null||n===void 0?void 0:n.exec(c);h&&(f=h.index+h[0].length)}if(u){const h=(r=t.options.end)===null||r===void 0?void 0:r.exec(c);h&&(c=c.substring(0,h.index))}if(c=c.substring(0,d$(c)),Ma(c,f)>=c.length){if(i.length>0){const h=D.create(s,a);i.push({type:"break",content:"",range:O.create(h,h)})}}else{Zu.lastIndex=f;const h=Zu.exec(c);if(h){const m=h[0],g=h[1],R=D.create(s,a+f),y=D.create(s,a+f+m.length);i.push({type:"tag",content:g,range:O.create(R,y)}),f+=m.length,f=Ma(c,f)}if(f<c.length){const m=c.substring(f),g=Array.from(m.matchAll(o$));i.push(...u$(g,m,s,a+f))}}s++,a=0}return i.length>0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function u$(t,e,n,r){const i=[];if(t.length===0){const s=D.create(n,r),a=D.create(n,r+e.length);i.push({type:"text",content:e,range:O.create(s,a)})}else{let s=0;for(const o of t){const l=o.index,u=e.substring(s,l);u.length>0&&i.push({type:"text",content:e.substring(s,l),range:O.create(D.create(n,s+r),D.create(n,l+r))});let c=u.length+1;const f=o[1];if(i.push({type:"inline-tag",content:f,range:O.create(D.create(n,s+c+r),D.create(n,s+c+f.length+r))}),c+=f.length,o.length===4){c+=o[2].length;const d=o[3];i.push({type:"text",content:d,range:O.create(D.create(n,s+c+r),D.create(n,s+c+d.length+r))})}else i.push({type:"text",content:"",range:O.create(D.create(n,s+c+r),D.create(n,s+c+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:O.create(D.create(n,s+r),D.create(n,s+r+a.length))})}return i}const c$=/\S/,f$=/\s*$/;function Ma(t,e){const n=t.substring(e).match(c$);return n?e+n.index:t.length}function d$(t){const e=t.match(f$);if(e&&typeof e.index=="number")return e.index}function h$(t){var e,n,r,i;const s=D.create(t.position.line,t.position.character);if(t.tokens.length===0)return new Qu([],O.create(s,s));const a=[];for(;t.index<t.tokens.length;){const u=p$(t,a[a.length-1]);u&&a.push(u)}const o=(n=(e=a[0])===null||e===void 0?void 0:e.range.start)!==null&&n!==void 0?n:s,l=(i=(r=a[a.length-1])===null||r===void 0?void 0:r.range.end)!==null&&i!==void 0?i:s;return new Qu(a,O.create(o,l))}function p$(t,e){const n=t.tokens[t.index];if(n.type==="tag")return vd(t,!1);if(n.type==="text"||n.type==="inline-tag")return Td(t);m$(n,e),t.index++}function m$(t,e){if(e){const n=new Ad("",t.range);"inlines"in e?e.inlines.push(n):e.content.inlines.push(n)}}function Td(t){let e=t.tokens[t.index];const n=e;let r=e;const i=[];for(;e&&e.type!=="break"&&e.type!=="tag";)i.push(g$(t)),r=e,e=t.tokens[t.index];return new Da(i,O.create(n.range.start,r.range.end))}function g$(t){return t.tokens[t.index].type==="inline-tag"?vd(t,!0):Rd(t)}function vd(t,e){const n=t.tokens[t.index++],r=n.content.substring(1),i=t.tokens[t.index];if(i?.type==="text")if(e){const s=Rd(t);return new Bs(r,new Da([s],s.range),e,O.create(n.range.start,s.range.end))}else{const s=Td(t);return new Bs(r,s,e,O.create(n.range.start,s.range.end))}else{const s=n.range;return new Bs(r,new Da([],s),e,s)}}function Rd(t){const e=t.tokens[t.index++];return new Ad(e.content,e.range)}function So(t){if(!t)return So({start:"/**",end:"*/",line:"*"});const{start:e,end:n,line:r}=t;return{start:Us(e,!0),end:Us(n,!1),line:Us(r,!0)}}function Us(t,e){if(typeof t=="string"||typeof t=="object"){const n=typeof t=="string"?Xi(t):t.source;return e?new RegExp(`^\\s*${n}`):new RegExp(`\\s*${n}\\s*$`)}else return t}class Qu{constructor(e,n){this.elements=e,this.range=n}getTag(e){return this.getAllTags().find(n=>n.name===e)}getTags(e){return this.getAllTags().filter(n=>n.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const n of this.elements)if(e.length===0)e=n.toString();else{const r=n.toString();e+=ec(e)+r}return e.trim()}toMarkdown(e){let n="";for(const r of this.elements)if(n.length===0)n=r.toMarkdown(e);else{const i=r.toMarkdown(e);n+=ec(n)+i}return n.trim()}}class Bs{constructor(e,n,r,i){this.name=e,this.content=n,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const n=this.content.toString();return this.content.inlines.length===1?e=`${e} ${n}`:this.content.inlines.length>1&&(e=`${e}
119
+ ${n}`),this.inline?`{${e}}`:e}toMarkdown(e){var n,r;return(r=(n=e?.renderTag)===null||n===void 0?void 0:n.call(e,this))!==null&&r!==void 0?r:this.toMarkdownDefault(e)}toMarkdownDefault(e){const n=this.content.toMarkdown(e);if(this.inline){const s=y$(this.name,n,e??{});if(typeof s=="string")return s}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let i=`${r}@${this.name}${r}`;return this.content.inlines.length===1?i=`${i} — ${n}`:this.content.inlines.length>1&&(i=`${i}
120
+ ${n}`),this.inline?`{${i}}`:i}}function y$(t,e,n){var r,i;if(t==="linkplain"||t==="linkcode"||t==="link"){const s=e.indexOf(" ");let a=e;if(s>0){const l=Ma(e,s);a=e.substring(l),e=e.substring(0,s)}return(t==="linkcode"||t==="link"&&n.link==="code")&&(a=`\`${a}\``),(i=(r=n.renderLink)===null||r===void 0?void 0:r.call(n,e,a))!==null&&i!==void 0?i:T$(e,a)}}function T$(t,e){try{return Gt.parse(t,!0),`[${e}](${t})`}catch{return t}}class Da{constructor(e,n){this.inlines=e,this.range=n}toString(){let e="";for(let n=0;n<this.inlines.length;n++){const r=this.inlines[n],i=this.inlines[n+1];e+=r.toString(),i&&i.range.start.line>r.range.start.line&&(e+=`
121
+ `)}return e}toMarkdown(e){let n="";for(let r=0;r<this.inlines.length;r++){const i=this.inlines[r],s=this.inlines[r+1];n+=i.toMarkdown(e),s&&s.range.start.line>i.range.start.line&&(n+=`
122
+ `)}return n}}class Ad{constructor(e,n){this.text=e,this.range=n}toString(){return this.text}toMarkdown(){return this.text}}function ec(t){return t.endsWith(`
123
+ `)?`
124
+ `:`
125
+
126
+ `}class v${constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const n=this.commentProvider.getComment(e);if(n&&a$(n))return s$(n).toMarkdown({renderLink:(i,s)=>this.documentationLinkRenderer(e,i,s),renderTag:i=>this.documentationTagRenderer(e,i)})}documentationLinkRenderer(e,n,r){var i;const s=(i=this.findNameInPrecomputedScopes(e,n))!==null&&i!==void 0?i:this.findNameInGlobalScope(e,n);if(s&&s.nameSegment){const a=s.nameSegment.range.start.line+1,o=s.nameSegment.range.start.character+1,l=s.documentUri.with({fragment:`L${a},${o}`});return`[${r}](${l.toString()})`}else return}documentationTagRenderer(e,n){}findNameInPrecomputedScopes(e,n){const i=pt(e).precomputedScopes;if(!i)return;let s=e;do{const o=i.get(s).find(l=>l.name===n);if(o)return o;s=s.$container}while(s)}findNameInGlobalScope(e,n){return this.indexManager.allElements().find(i=>i.name===n)}}class R${constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var n;return UE(e)?e.$comment:(n=jd(e.$cstNode,this.grammarConfig().multilineCommentRules))===null||n===void 0?void 0:n.text}}class A${constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,n){return Promise.resolve(this.syncParser.parse(e))}}class E${constructor(){this.previousTokenSource=new H.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const n=kE();return this.previousTokenSource=n,this.enqueue(this.writeQueue,e,n.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,n,r=H.CancellationToken.None){const i=new xo,s={action:n,deferred:i,cancellationToken:r};return e.push(s),this.performNextOperation(),i.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:n,deferred:r,cancellationToken:i})=>{try{const s=await Promise.resolve().then(()=>n(i));r.resolve(s)}catch(s){gs(s)?r.resolve(void 0):r.reject(s)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class $${constructor(e){this.grammarElementIdMap=new qu,this.tokenTypeIdMap=new qu,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(n=>Object.assign(Object.assign({},n),{message:n.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const n=new Map,r=new Map;for(const i of Jt(e))n.set(i,{});if(e.$cstNode)for(const i of Qs(e.$cstNode))r.set(i,{});return{astNodes:n,cstNodes:r}}dehydrateAstNode(e,n){const r=n.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,n));for(const[i,s]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(s)){const a=[];r[i]=a;for(const o of s)le(o)?a.push(this.dehydrateAstNode(o,n)):ze(o)?a.push(this.dehydrateReference(o,n)):a.push(o)}else le(s)?r[i]=this.dehydrateAstNode(s,n):ze(s)?r[i]=this.dehydrateReference(s,n):s!==void 0&&(r[i]=s);return r}dehydrateReference(e,n){const r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=n.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,n){const r=n.cstNodes.get(e);return pc(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=n.astNodes.get(e.astNode),Tr(e)?r.content=e.content.map(i=>this.dehydrateCstNode(i,n)):hc(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 n=e.value,r=this.createHydrationContext(n);return"$cstNode"in n&&this.hydrateCstNode(n.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(n,r)}}createHydrationContext(e){const n=new Map,r=new Map;for(const s of Jt(e))n.set(s,{});let i;if(e.$cstNode)for(const s of Qs(e.$cstNode)){let a;"fullText"in s?(a=new ed(s.fullText),i=a):"content"in s?a=new Eo:"tokenType"in s&&(a=this.hydrateCstLeafNode(s)),a&&(r.set(s,a),a.root=i)}return{astNodes:n,cstNodes:r}}hydrateAstNode(e,n){const r=n.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=n.cstNodes.get(e.$cstNode));for(const[i,s]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(s)){const a=[];r[i]=a;for(const o of s)le(o)?a.push(this.setParent(this.hydrateAstNode(o,n),r)):ze(o)?a.push(this.hydrateReference(o,r,i,n)):a.push(o)}else le(s)?r[i]=this.setParent(this.hydrateAstNode(s,n),r):ze(s)?r[i]=this.hydrateReference(s,r,i,n):s!==void 0&&(r[i]=s);return r}setParent(e,n){return e.$container=n,e}hydrateReference(e,n,r,i){return this.linker.buildReference(n,r,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,n,r=0){const i=n.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=n.astNodes.get(e.astNode),Tr(i))for(const s of e.content){const a=this.hydrateCstNode(s,n,r++);i.content.push(a)}return i}hydrateCstLeafNode(e){const n=this.getTokenType(e.tokenType),r=e.offset,i=e.length,s=e.startLine,a=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new _a(r,i,{start:{line:s,character:a},end:{line:o,character:l}},n,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 n of Jt(this.grammar))Vd(n)&&this.grammarElementIdMap.set(n,e++)}}function $t(t){return{documentation:{CommentProvider:e=>new R$(e),DocumentationProvider:e=>new v$(e)},parser:{AsyncParser:e=>new A$(e),GrammarConfig:e=>Ph(e),LangiumParser:e=>RE(e),CompletionParser:e=>vE(e),ValueConverter:()=>new ud,TokenBuilder:()=>new ld,Lexer:e=>new r$(e),ParserErrorMessageProvider:()=>new rd,LexerErrorMessageProvider:()=>new t$},workspace:{AstNodeLocator:()=>new YE,AstNodeDescriptionProvider:e=>new zE(e),ReferenceDescriptionProvider:e=>new qE(e)},references:{Linker:e=>new NE(e),NameProvider:()=>new bE,ScopeProvider:e=>new GE(e),ScopeComputation:e=>new OE(e),References:e=>new LE(e)},serializer:{Hydrator:e=>new $$(e),JsonSerializer:e=>new BE(e)},validation:{DocumentValidator:e=>new VE(e),ValidationRegistry:e=>new KE(e)},shared:()=>t.shared}}function xt(t){return{ServiceRegistry:e=>new jE(e),workspace:{LangiumDocuments:e=>new wE(e),LangiumDocumentFactory:e=>new CE(e),DocumentBuilder:e=>new ZE(e),IndexManager:e=>new QE(e),WorkspaceManager:e=>new e$(e),FileSystemProvider:e=>t.fileSystemProvider(e),WorkspaceLock:()=>new E$,ConfigurationProvider:e=>new JE(e)}}}var tc;(function(t){t.merge=(e,n)=>Wi(Wi({},e),n)})(tc||(tc={}));function ue(t,e,n,r,i,s,a,o,l){const u=[t,e,n,r,i,s,a,o,l].reduce(Wi,{});return Ed(u)}const x$=Symbol("isProxy");function Ed(t,e){const n=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw new Error("Cannot set property on injected service container")},get:(r,i)=>i===x$?!0:rc(r,i,t,e||n),getOwnPropertyDescriptor:(r,i)=>(rc(r,i,t,e||n),Object.getOwnPropertyDescriptor(r,i)),has:(r,i)=>i in t,ownKeys:()=>[...Object.getOwnPropertyNames(t)]});return n}const nc=Symbol();function rc(t,e,n,r){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:t[e]});if(t[e]===nc)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in n){const i=n[e];t[e]=nc;try{t[e]=typeof i=="function"?i(r):Ed(i,r)}catch(s){throw t[e]=s instanceof Error?s:void 0,s}return t[e]}else return}function Wi(t,e){if(e){for(const[n,r]of Object.entries(e))if(r!==void 0){const i=t[n];i!==null&&r!==null&&typeof i=="object"&&typeof r=="object"?t[n]=Wi(i,r):t[n]=r}}return t}class S${readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}}const St={fileSystemProvider:()=>new S$},k$={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},I$={AstReflection:()=>new Ac};function C$(){const t=ue(xt(St),I$),e=ue($t({shared:t}),k$);return t.ServiceRegistry.register(e),e}function Ht(t){var e;const n=C$(),r=n.serializer.JsonSerializer.deserialize(t);return n.shared.workspace.LangiumDocumentFactory.fromModel(r,Gt.parse(`memory://${(e=r.name)!==null&&e!==void 0?e:"grammar"}.langium`)),r}var w$=Object.defineProperty,A=(t,e)=>w$(t,"name",{value:e,configurable:!0}),ic="Statement",mi="Architecture";function N$(t){return Ve.isInstance(t,mi)}A(N$,"isArchitecture");var Qr="Axis",dr="Branch";function _$(t){return Ve.isInstance(t,dr)}A(_$,"isBranch");var ei="Checkout",ti="CherryPicking",js="ClassDefStatement",hr="Commit";function b$(t){return Ve.isInstance(t,hr)}A(b$,"isCommit");var Ks="Curve",Vs="Edge",Hs="Entry",pr="GitGraph";function L$(t){return Ve.isInstance(t,pr)}A(L$,"isGitGraph");var Ws="Group",gi="Info";function O$(t){return Ve.isInstance(t,gi)}A(O$,"isInfo");var ni="Item",zs="Junction",mr="Merge";function P$(t){return Ve.isInstance(t,mr)}A(P$,"isMerge");var qs="Option",yi="Packet";function M$(t){return Ve.isInstance(t,yi)}A(M$,"isPacket");var Ti="PacketBlock";function D$(t){return Ve.isInstance(t,Ti)}A(D$,"isPacketBlock");var vi="Pie";function F$(t){return Ve.isInstance(t,vi)}A(F$,"isPie");var Ri="PieSection";function G$(t){return Ve.isInstance(t,Ri)}A(G$,"isPieSection");var Ys="Radar",Xs="Service",Ai="Treemap";function U$(t){return Ve.isInstance(t,Ai)}A(U$,"isTreemap");var Js="TreemapRow",ri="Direction",ii="Leaf",si="Section",en,$d=(en=class extends dc{getAllTypes(){return[mi,Qr,dr,ei,ti,js,hr,Ks,ri,Vs,Hs,pr,Ws,gi,ni,zs,ii,mr,qs,yi,Ti,vi,Ri,Ys,si,Xs,ic,Ai,Js]}computeIsSubtype(e,n){switch(e){case dr:case ei:case ti:case hr:case mr:return this.isSubtype(ic,n);case ri:return this.isSubtype(pr,n);case ii:case si:return this.isSubtype(ni,n);default:return!1}}getReferenceType(e){const n=`${e.container.$type}:${e.property}`;if(n==="Entry:axis")return Qr;throw new Error(`${n} is not a valid reference id.`)}getTypeMetaData(e){switch(e){case mi:return{name:mi,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case Qr:return{name:Qr,properties:[{name:"label"},{name:"name"}]};case dr:return{name:dr,properties:[{name:"name"},{name:"order"}]};case ei:return{name:ei,properties:[{name:"branch"}]};case ti:return{name:ti,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case js:return{name:js,properties:[{name:"className"},{name:"styleText"}]};case hr:return{name:hr,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case Ks:return{name:Ks,properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]};case Vs:return{name:Vs,properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case Hs:return{name:Hs,properties:[{name:"axis"},{name:"value"}]};case pr:return{name:pr,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case Ws:return{name:Ws,properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case gi:return{name:gi,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case ni:return{name:ni,properties:[{name:"classSelector"},{name:"name"}]};case zs:return{name:zs,properties:[{name:"id"},{name:"in"}]};case mr:return{name:mr,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case qs:return{name:qs,properties:[{name:"name"},{name:"value",defaultValue:!1}]};case yi:return{name:yi,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case Ti:return{name:Ti,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]};case vi:return{name:vi,properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case Ri:return{name:Ri,properties:[{name:"label"},{name:"value"}]};case Ys:return{name:Ys,properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]};case Xs:return{name:Xs,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case Ai:return{name:Ai,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]};case Js:return{name:Js,properties:[{name:"indent"},{name:"item"}]};case ri:return{name:ri,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};case ii:return{name:ii,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]};case si:return{name:si,properties:[{name:"classSelector"},{name:"name"}]};default:return{name:e,properties:[]}}}},A(en,"MermaidAstReflection"),en),Ve=new $d,sc,B$=A(()=>sc??(sc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Info","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":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"InfoGrammar"),ac,j$=A(()=>ac??(ac=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Packet","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":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),oc,K$=A(()=>oc??(oc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Pie","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":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PieGrammar"),lc,V$=A(()=>lc??(lc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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@11"},"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@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"ArchitectureGrammar"),uc,H$=A(()=>uc??(uc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","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":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),cc,W$=A(()=>cc??(cc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Radar","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":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`)),"RadarGrammar"),fc,z$=A(()=>fc??(fc=Ht(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","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":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"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@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"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]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$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@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"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":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"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@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":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$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 */"}`)),"TreemapGrammar"),q$={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Y$={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},X$={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},J$={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Z$={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Q$={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ex={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Wt={AstReflection:A(()=>new $d,"AstReflection")},tx={Grammar:A(()=>B$(),"Grammar"),LanguageMetaData:A(()=>q$,"LanguageMetaData"),parser:{}},nx={Grammar:A(()=>j$(),"Grammar"),LanguageMetaData:A(()=>Y$,"LanguageMetaData"),parser:{}},rx={Grammar:A(()=>K$(),"Grammar"),LanguageMetaData:A(()=>X$,"LanguageMetaData"),parser:{}},ix={Grammar:A(()=>V$(),"Grammar"),LanguageMetaData:A(()=>J$,"LanguageMetaData"),parser:{}},sx={Grammar:A(()=>H$(),"Grammar"),LanguageMetaData:A(()=>Z$,"LanguageMetaData"),parser:{}},ax={Grammar:A(()=>W$(),"Grammar"),LanguageMetaData:A(()=>Q$,"LanguageMetaData"),parser:{}},ox={Grammar:A(()=>z$(),"Grammar"),LanguageMetaData:A(()=>ex,"LanguageMetaData"),parser:{}},lx=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ux=/accTitle[\t ]*:([^\n\r]*)/,cx=/title([\t ][^\n\r]*|)/,fx={ACC_DESCR:lx,ACC_TITLE:ux,TITLE:cx},tn,ys=(tn=class extends ud{runConverter(e,n,r){let i=this.runCommonConverter(e,n,r);return i===void 0&&(i=this.runCustomConverter(e,n,r)),i===void 0?super.runConverter(e,n,r):i}runCommonConverter(e,n,r){const i=fx[e.name];if(i===void 0)return;const s=i.exec(n);if(s!==null){if(s[1]!==void 0)return s[1].trim().replace(/[\t ]{2,}/gm," ");if(s[2]!==void 0)return s[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
127
+ `)}}},A(tn,"AbstractMermaidValueConverter"),tn),nn,Ts=(nn=class extends ys{runCustomConverter(e,n,r){}},A(nn,"CommonValueConverter"),nn),rn,kt=(rn=class extends ld{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,n,r){const i=super.buildKeywordTokens(e,n,r);return i.forEach(s=>{this.keywords.has(s.name)&&s.PATTERN!==void 0&&(s.PATTERN=new RegExp(s.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},A(rn,"AbstractMermaidTokenBuilder"),rn),sn;sn=class extends kt{},A(sn,"CommonTokenBuilder");var an,dx=(an=class extends kt{constructor(){super(["gitGraph"])}},A(an,"GitGraphTokenBuilder"),an),hx={parser:{TokenBuilder:A(()=>new dx,"TokenBuilder"),ValueConverter:A(()=>new Ts,"ValueConverter")}};function px(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),sx,hx);return e.ServiceRegistry.register(n),{shared:e,GitGraph:n}}A(px,"createGitGraphServices");var on,mx=(on=class extends kt{constructor(){super(["info","showInfo"])}},A(on,"InfoTokenBuilder"),on),gx={parser:{TokenBuilder:A(()=>new mx,"TokenBuilder"),ValueConverter:A(()=>new Ts,"ValueConverter")}};function yx(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),tx,gx);return e.ServiceRegistry.register(n),{shared:e,Info:n}}A(yx,"createInfoServices");var ln,Tx=(ln=class extends kt{constructor(){super(["packet"])}},A(ln,"PacketTokenBuilder"),ln),vx={parser:{TokenBuilder:A(()=>new Tx,"TokenBuilder"),ValueConverter:A(()=>new Ts,"ValueConverter")}};function Rx(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),nx,vx);return e.ServiceRegistry.register(n),{shared:e,Packet:n}}A(Rx,"createPacketServices");var un,Ax=(un=class extends kt{constructor(){super(["pie","showData"])}},A(un,"PieTokenBuilder"),un),cn,Ex=(cn=class extends ys{runCustomConverter(e,n,r){if(e.name==="PIE_SECTION_LABEL")return n.replace(/"/g,"").trim()}},A(cn,"PieValueConverter"),cn),$x={parser:{TokenBuilder:A(()=>new Ax,"TokenBuilder"),ValueConverter:A(()=>new Ex,"ValueConverter")}};function xx(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),rx,$x);return e.ServiceRegistry.register(n),{shared:e,Pie:n}}A(xx,"createPieServices");var fn,Sx=(fn=class extends kt{constructor(){super(["architecture"])}},A(fn,"ArchitectureTokenBuilder"),fn),dn,kx=(dn=class extends ys{runCustomConverter(e,n,r){if(e.name==="ARCH_ICON")return n.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return n.replace(/["()]/g,"");if(e.name==="ARCH_TITLE")return n.replace(/[[\]]/g,"").trim()}},A(dn,"ArchitectureValueConverter"),dn),Ix={parser:{TokenBuilder:A(()=>new Sx,"TokenBuilder"),ValueConverter:A(()=>new kx,"ValueConverter")}};function Cx(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),ix,Ix);return e.ServiceRegistry.register(n),{shared:e,Architecture:n}}A(Cx,"createArchitectureServices");var hn,wx=(hn=class extends kt{constructor(){super(["radar-beta"])}},A(hn,"RadarTokenBuilder"),hn),Nx={parser:{TokenBuilder:A(()=>new wx,"TokenBuilder"),ValueConverter:A(()=>new Ts,"ValueConverter")}};function _x(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),ax,Nx);return e.ServiceRegistry.register(n),{shared:e,Radar:n}}A(_x,"createRadarServices");var pn,bx=(pn=class extends kt{constructor(){super(["treemap"])}},A(pn,"TreemapTokenBuilder"),pn),Lx=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,mn,Ox=(mn=class extends ys{runCustomConverter(e,n,r){if(e.name==="NUMBER2")return parseFloat(n.replace(/,/g,""));if(e.name==="SEPARATOR")return n.substring(1,n.length-1);if(e.name==="STRING2")return n.substring(1,n.length-1);if(e.name==="INDENTATION")return n.length;if(e.name==="ClassDef"){if(typeof n!="string")return n;const i=Lx.exec(n);if(i)return{$type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}},A(mn,"TreemapValueConverter"),mn);function xd(t){const e=t.validation.TreemapValidator,n=t.validation.ValidationRegistry;if(n){const r={Treemap:e.checkSingleRoot.bind(e)};n.register(r,e)}}A(xd,"registerValidationChecks");var gn,Px=(gn=class{checkSingleRoot(e,n){let r;for(const i of e.TreemapRows)i.item&&(r===void 0&&i.indent===void 0?r=0:i.indent===void 0?n("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):r!==void 0&&r>=parseInt(i.indent,10)&&n("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},A(gn,"TreemapValidator"),gn),Mx={parser:{TokenBuilder:A(()=>new bx,"TokenBuilder"),ValueConverter:A(()=>new Ox,"ValueConverter")},validation:{TreemapValidator:A(()=>new Px,"TreemapValidator")}};function Dx(t=St){const e=ue(xt(t),Wt),n=ue($t({shared:e}),ox,Mx);return e.ServiceRegistry.register(n),xd(n),{shared:e,Treemap:n}}A(Dx,"createTreemapServices");var nt={},Fx={info:A(async()=>{const{createInfoServices:t}=await wt(async()=>{const{createInfoServices:n}=await import("./info-NVLQJR56-C0BKzANU.js");return{createInfoServices:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),e=t().Info.parser.LangiumParser;nt.info=e},"info"),packet:A(async()=>{const{createPacketServices:t}=await wt(async()=>{const{createPacketServices:n}=await import("./packet-BFZMPI3H-B3dLa20l.js");return{createPacketServices:n}},__vite__mapDeps([10,1,2,3,4,5,6,7,8,9])),e=t().Packet.parser.LangiumParser;nt.packet=e},"packet"),pie:A(async()=>{const{createPieServices:t}=await wt(async()=>{const{createPieServices:n}=await import("./pie-7BOR55EZ-SduROXgQ.js");return{createPieServices:n}},__vite__mapDeps([11,1,2,3,4,5,6,7,8,9])),e=t().Pie.parser.LangiumParser;nt.pie=e},"pie"),architecture:A(async()=>{const{createArchitectureServices:t}=await wt(async()=>{const{createArchitectureServices:n}=await import("./architecture-U656AL7Q-CG9_JmIP.js");return{createArchitectureServices:n}},__vite__mapDeps([12,1,2,3,4,5,6,7,8,9])),e=t().Architecture.parser.LangiumParser;nt.architecture=e},"architecture"),gitGraph:A(async()=>{const{createGitGraphServices:t}=await wt(async()=>{const{createGitGraphServices:n}=await import("./gitGraph-F6HP7TQM-XNCl7HYP.js");return{createGitGraphServices:n}},__vite__mapDeps([13,1,2,3,4,5,6,7,8,9])),e=t().GitGraph.parser.LangiumParser;nt.gitGraph=e},"gitGraph"),radar:A(async()=>{const{createRadarServices:t}=await wt(async()=>{const{createRadarServices:n}=await import("./radar-NHE76QYJ-BUhlCoHu.js");return{createRadarServices:n}},__vite__mapDeps([14,1,2,3,4,5,6,7,8,9])),e=t().Radar.parser.LangiumParser;nt.radar=e},"radar"),treemap:A(async()=>{const{createTreemapServices:t}=await wt(async()=>{const{createTreemapServices:n}=await import("./treemap-KMMF4GRG-Bbfo1cUw.js");return{createTreemapServices:n}},__vite__mapDeps([15,1,2,3,4,5,6,7,8,9])),e=t().Treemap.parser.LangiumParser;nt.treemap=e},"treemap")};async function Gx(t,e){const n=Fx[t];if(!n)throw new Error(`Unknown diagram type: ${t}`);nt[t]||await n();const i=nt[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new Ux(i);return i.value}A(Gx,"parse");var yn,Ux=(yn=class extends Error{constructor(e){const n=e.lexerErrors.map(i=>i.message).join(`
128
+ `),r=e.parserErrors.map(i=>i.message).join(`
129
+ `);super(`Parsing failed: ${n} ${r}`),this.result=e}},A(yn,"MermaidParseError"),yn);export{Ix as A,hx as G,gx as I,vx as P,Nx as R,Mx as T,Rx as a,$x as b,yx as c,xx as d,Cx as e,px as f,_x as g,Dx as h,Gx as p};