@pi-outpost/embed 0.40.0 → 0.40.2

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 (290) hide show
  1. package/dist/{CodeEditor-Cb6i9oIs.cjs → CodeEditor-B699PZlx.cjs} +1 -1
  2. package/dist/{CodeEditor-2Vx8PHAy.js → CodeEditor-CxKTvrhG.js} +5 -5
  3. package/dist/PdfViewer-COOgvLyp.js +428 -0
  4. package/dist/PdfViewer-Dyou2VMw.cjs +1 -0
  5. package/dist/{abnfDiagram-WEYOIA3C-B2ss_Vsq.js → abnfDiagram-WEYOIA3C-B_dTFm2g.js} +5 -5
  6. package/dist/{abnfDiagram-WEYOIA3C-DMn87p58.cjs → abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs} +1 -1
  7. package/dist/{arc-CLGGhOeW.js → arc-37kcMiGl.js} +1 -1
  8. package/dist/{arc-Dh2Zrypi.cjs → arc-C7P0rHQr.cjs} +1 -1
  9. package/dist/architecture-WOLXFQ4H-Dg4VU8sZ.js +2 -0
  10. package/dist/architecture-WOLXFQ4H-u_y_0ZVC.cjs +1 -0
  11. package/dist/architectureDiagram-ZHVYKT53-Bud-mHjo.cjs +36 -0
  12. package/dist/{architectureDiagram-ZHVYKT53-C5QppHvM.js → architectureDiagram-ZHVYKT53-CslNYmQN.js} +48 -64
  13. package/dist/{blockDiagram-RJAE7QA3-DOvlohR9.js → blockDiagram-RJAE7QA3-Dgm9J6pS.js} +27 -38
  14. package/dist/{blockDiagram-RJAE7QA3-CODM9GdZ.cjs → blockDiagram-RJAE7QA3-lEBn-_Yn.cjs} +2 -2
  15. package/dist/{c4Diagram-XDPPPE54-eTVK3Kzy.cjs → c4Diagram-XDPPPE54-BKNqVY-U.cjs} +1 -1
  16. package/dist/{c4Diagram-XDPPPE54-8dwnUpAO.js → c4Diagram-XDPPPE54-rbzhqhW5.js} +8 -8
  17. package/dist/channel-AESWk0Yw.cjs +1 -0
  18. package/dist/{channel-B1lf-ehw.js → channel-CEoRf1uz.js} +1 -1
  19. package/dist/{chunk-2E7WHVMD-DkV-cet-.cjs → chunk-2E7WHVMD-BNsJOdNP.cjs} +1 -1
  20. package/dist/{chunk-2E7WHVMD-Dg_Sckag.js → chunk-2E7WHVMD-Vo-POJc_.js} +3 -3
  21. package/dist/{chunk-4EMNKR2T-C2XrT3x_.js → chunk-4EMNKR2T-BIO9veC4.js} +1 -1
  22. package/dist/{chunk-4EMNKR2T-DfeN909d.cjs → chunk-4EMNKR2T-CGAdq4EA.cjs} +1 -1
  23. package/dist/{chunk-55XCU76K-d9D4PS_7.cjs → chunk-55XCU76K-IpMfjRYv.cjs} +1 -1
  24. package/dist/{chunk-55XCU76K-CADZXRVb.js → chunk-55XCU76K-o8OgDLPD.js} +3 -3
  25. package/dist/{chunk-7S6XSTFO-DV8etStf.js → chunk-7S6XSTFO-DrDRohsE.js} +4 -4
  26. package/dist/{chunk-7S6XSTFO-DJ37SdG5.cjs → chunk-7S6XSTFO-ejBVk-tI.cjs} +1 -1
  27. package/dist/{chunk-AQDTSKZB-DElrkKED.cjs → chunk-AQDTSKZB-B-MpZ-y2.cjs} +7 -7
  28. package/dist/{chunk-AQDTSKZB-CUCC855j.js → chunk-AQDTSKZB-DUZx386i.js} +14 -73
  29. package/dist/chunk-DSNLSHJZ-BxQ7lMXY.cjs +129 -0
  30. package/dist/{chunk-DSNLSHJZ-Bicto10E.js → chunk-DSNLSHJZ-DPpiuUZK.js} +627 -624
  31. package/dist/{chunk-HAGFOTED-Dykk1LyE.cjs → chunk-HAGFOTED-BUPxFGdn.cjs} +1 -1
  32. package/dist/{chunk-HAGFOTED-BjDmRfgG.js → chunk-HAGFOTED-ceXO12G4.js} +6 -6
  33. package/dist/{chunk-HNE4Q36P-C-j5Nn9f.cjs → chunk-HNE4Q36P-CCHAgwa3.cjs} +1 -1
  34. package/dist/{chunk-HNE4Q36P-5u7dvjgt.js → chunk-HNE4Q36P-uON_vFhT.js} +6 -6
  35. package/dist/{chunk-NGNAAXSQ-kHtfTQLE.cjs → chunk-NGNAAXSQ-BaBpWF2S.cjs} +6 -6
  36. package/dist/{chunk-NGNAAXSQ-DM0DL2MX.js → chunk-NGNAAXSQ-uUWLDjAm.js} +46 -50
  37. package/dist/{chunk-NQOKRVIF-CpOc5MEh.cjs → chunk-NQOKRVIF-DcZqKWzv.cjs} +1 -1
  38. package/dist/{chunk-NQOKRVIF-DUgN94ic.js → chunk-NQOKRVIF-DmOxzSOQ.js} +9 -9
  39. package/dist/{chunk-UHW7PFBP-NbzzxkEP.js → chunk-UHW7PFBP-BTk1ZC8L.js} +1 -1
  40. package/dist/{chunk-UHW7PFBP-SZ8KvGM0.cjs → chunk-UHW7PFBP-Bays5Zi8.cjs} +1 -1
  41. package/dist/{chunk-VQ5W62QI-D3c9tcDC.js → chunk-VQ5W62QI-Bvcxpp51.js} +2 -2
  42. package/dist/{chunk-VQ5W62QI-CsW6i5Ev.cjs → chunk-VQ5W62QI-Dw9Kffnl.cjs} +1 -1
  43. package/dist/{chunk-WQQL4CDK-l3Yf4SAX.js → chunk-WQQL4CDK-C3yDIFZ3.js} +8 -8
  44. package/dist/{chunk-WQQL4CDK-TvwGUFeE.cjs → chunk-WQQL4CDK-DxEEyQzx.cjs} +1 -1
  45. package/dist/{chunk-XXDRQBXY-IzhWXllg.js → chunk-XXDRQBXY-CNtMgRT_.js} +1 -1
  46. package/dist/{chunk-XXDRQBXY-yMT3rT5Y.cjs → chunk-XXDRQBXY-DfReYcER.cjs} +1 -1
  47. package/dist/{chunk-YZO67HFG-CLf5aoHk.cjs → chunk-YZO67HFG-DCQIFG8j.cjs} +1 -1
  48. package/dist/{chunk-YZO67HFG-DWHo0c6-.js → chunk-YZO67HFG-WF3jklBn.js} +2 -2
  49. package/dist/{chunk-ZAUX2LTX-BwjEPfG0.cjs → chunk-ZAUX2LTX-DIQkgUFr.cjs} +1 -1
  50. package/dist/{chunk-ZAUX2LTX-COHXRsvU.js → chunk-ZAUX2LTX-P8LAwm_U.js} +3 -3
  51. package/dist/{chunk-ZCHMQSOR-Cw-9SNln.js → chunk-ZCHMQSOR-BbO7eY2w.js} +78 -80
  52. package/dist/chunk-ZCHMQSOR-Cg8zPt0w.cjs +1 -0
  53. package/dist/{classDiagram-v2-4MYWR3UA-vsmkJ0Cx.js → classDiagram-v2-4MYWR3UA-DIjHIULx.js} +16 -16
  54. package/dist/{classDiagram-v2-4MYWR3UA-wLbwKHvU.cjs → classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs} +2 -2
  55. package/dist/{clike-8rZWBES0.cjs → clike-I-fVVl3d.cjs} +1 -1
  56. package/dist/{clike-D-dOQnrm.js → clike-VB7owi7S.js} +1 -5
  57. package/dist/{conversationExport-BmvGyAf-.cjs → conversationExport-Co-E1-fF.cjs} +1 -1
  58. package/dist/{conversationExport-CBiBLWVk.js → conversationExport-KyCOByU5.js} +7 -8
  59. package/dist/conversationHistory-BYekdNUk.cjs +31 -0
  60. package/dist/conversationHistory-DPZF00Qz.js +21639 -0
  61. package/dist/{core-D_MCdR2m.js → core-BGZbe1UJ.js} +2 -6
  62. package/dist/{core-BrupIPpc.cjs → core-CmCLKhYZ.cjs} +2 -2
  63. package/dist/{cose-bilkent-JH36ORCC-qPjrc3_9.js → cose-bilkent-JH36ORCC-DjbvRWCz.js} +58 -71
  64. package/dist/cose-bilkent-JH36ORCC-KeNQ2SMA.cjs +1 -0
  65. package/dist/cynefin-EF2NZ3EQ-BBhIrDKD.cjs +1 -0
  66. package/dist/cynefin-EF2NZ3EQ-DDZjUykJ.js +2 -0
  67. package/dist/{cynefinDiagram-WF24UDRP-CHBmFbqk.cjs → cynefinDiagram-WF24UDRP-BC09SRT2.cjs} +1 -1
  68. package/dist/{cynefinDiagram-WF24UDRP-BhWkOxCi.js → cynefinDiagram-WF24UDRP-DEFG-MNh.js} +5 -5
  69. package/dist/cytoscape.esm-BN8NndIc.cjs +321 -0
  70. package/dist/{cytoscape.esm-Cq7KPj0t.js → cytoscape.esm-BmhLauwj.js} +412 -513
  71. package/dist/dagre-NK4GIZVX-D0_oLrA9.cjs +4 -0
  72. package/dist/{dagre-NK4GIZVX-CJfLDa-C.js → dagre-NK4GIZVX-D6Xuc_Nw.js} +43 -47
  73. package/dist/{diagram-CBK3MWTC-2pAHlnGJ.js → diagram-CBK3MWTC-CuUrHQAz.js} +7 -7
  74. package/dist/{diagram-CBK3MWTC-B_5GBGbb.cjs → diagram-CBK3MWTC-DbXGbFMz.cjs} +1 -1
  75. package/dist/{diagram-I5XIIV2D-CQ_Y9NJs.js → diagram-I5XIIV2D-DbwsxgDf.js} +5 -5
  76. package/dist/{diagram-I5XIIV2D-BPxYY-Kp.cjs → diagram-I5XIIV2D-Dom9usNq.cjs} +1 -1
  77. package/dist/{diagram-ODIL2UCW-pyDNtrY0.cjs → diagram-ODIL2UCW-CLSAtgxG.cjs} +2 -2
  78. package/dist/{diagram-ODIL2UCW-BJL-7QWJ.js → diagram-ODIL2UCW-CSnuo9bJ.js} +7 -15
  79. package/dist/{diagram-PFBEJUXE-CXd3x3TA.js → diagram-PFBEJUXE-ChA6KYWw.js} +6 -6
  80. package/dist/{diagram-PFBEJUXE-BUvTWvw5.cjs → diagram-PFBEJUXE-DAIw33Bx.cjs} +1 -1
  81. package/dist/{diagram-RJA3I4VV-T3Hd1koB.cjs → diagram-RJA3I4VV-Bt-BxYua.cjs} +1 -1
  82. package/dist/{diagram-RJA3I4VV-eMNhs7pW.js → diagram-RJA3I4VV-DCygetH_.js} +5 -5
  83. package/dist/{diagram-TYUNFSNR-CWpFSB2K.js → diagram-TYUNFSNR-BSq4ni3b.js} +22 -35
  84. package/dist/diagram-TYUNFSNR-Dy2nkVin.cjs +200 -0
  85. package/dist/{dist-Dvqp7T4I.cjs → dist-2ynRxsSC.cjs} +1 -1
  86. package/dist/{dist-B7I27gkN.cjs → dist-AeGgfThs.cjs} +1 -1
  87. package/dist/{dist-Dwv2VYAL.cjs → dist-BB5r6V4R.cjs} +1 -1
  88. package/dist/{dist-BvsCdwbL.cjs → dist-BDenKBYL.cjs} +1 -1
  89. package/dist/{dist-BhXQJ0x3.js → dist-BJHB0x8Y.js} +12 -18
  90. package/dist/{dist-BWlGU9XM.js → dist-BTD5L343.js} +3 -3
  91. package/dist/{dist-Dr4zY56l.js → dist-BWEDf1a-.js} +2 -2
  92. package/dist/{dist-BlD6NhiG.js → dist-BWVp6Da-.js} +4 -7
  93. package/dist/{dist-B8gmxwh-.cjs → dist-C6eKaA9j.cjs} +1 -1
  94. package/dist/{dist-C0_uLrCb.cjs → dist-CCIM600Y.cjs} +1 -1
  95. package/dist/{dist-BZcglaBe.cjs → dist-CFf_g4kk.cjs} +1 -1
  96. package/dist/{dist-DPXHxuWb.js → dist-CGZbBQje.js} +2 -2
  97. package/dist/{dist-Xjm88mbq.js → dist-CIBKGNWD.js} +4 -4
  98. package/dist/{dist-DqbI0un6.cjs → dist-CQNYwGEy.cjs} +1 -1
  99. package/dist/{dist-CyFPTQ2l.cjs → dist-CT7H4C9g.cjs} +1 -1
  100. package/dist/{dist-BBUKMRrs.js → dist-CYUF5YPj.js} +2 -2
  101. package/dist/{dist-DWv23S35.js → dist-CZhfI1u7.js} +1 -1
  102. package/dist/{dist-CHKg1Qb9.js → dist-ChWDi62w.js} +3 -3
  103. package/dist/dist-CmF-TINl.cjs +1 -0
  104. package/dist/{dist-C8jjSrIs.cjs → dist-Cz8GulTe.cjs} +1 -1
  105. package/dist/{dist-qNFo_ASR.cjs → dist-D6LkseRA.cjs} +1 -1
  106. package/dist/{dist-BZjcsPqi.cjs → dist-DEZD35IP.cjs} +7 -7
  107. package/dist/{dist-DZrtSp8H.js → dist-DNg4hNu7.js} +3 -3
  108. package/dist/dist-D_oMTxAl.cjs +2 -0
  109. package/dist/{dist-BfQGuM1r.js → dist-DaJf_JYz.js} +4 -4
  110. package/dist/dist-Dpu_aN4m.cjs +1 -0
  111. package/dist/{dist-CA6ERWRG.js → dist-DszFZlYh.js} +2 -2
  112. package/dist/{dist-qq9a_ch2.js → dist-Kg2QsUg8.js} +4 -4
  113. package/dist/{dist-FSzij9Rn.js → dist-LM11INLG.js} +2 -2
  114. package/dist/{dist-C9dtxVRR.cjs → dist-M4fo1U45.cjs} +1 -1
  115. package/dist/{dist-BhNvvg0I.js → dist-gn9y7Yb8.js} +116 -119
  116. package/dist/{dist-B0lO3k1f.js → dist-hv72z6I6.js} +3 -3
  117. package/dist/{dist-Bppoi_v9.js → dist-lPCEVnGX.js} +2 -2
  118. package/dist/{dist-D8I4FQ-Q.cjs → dist-rfjaCa2V.cjs} +1 -1
  119. package/dist/{docxExport-BGYavEI-.js → docxExport-DpgcioIA.js} +2 -2
  120. package/dist/{docxExport-B24fOHFl.cjs → docxExport-ZYp4tZ7k.cjs} +1 -1
  121. package/dist/{ebnfDiagram-V4P3TTPT-DAoJZ85k.cjs → ebnfDiagram-V4P3TTPT-6xhHNshj.cjs} +1 -1
  122. package/dist/{ebnfDiagram-V4P3TTPT-B7cCNP3X.js → ebnfDiagram-V4P3TTPT-e4I3Otpa.js} +5 -5
  123. package/dist/{elk-QONTBCTQ-BYnAuRAH.js → elk-QONTBCTQ-B8RYU1Ay.js} +746 -1241
  124. package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +27 -0
  125. package/dist/{erDiagram-KYQIGQAA-BKkxORU3.js → erDiagram-KYQIGQAA-BTNANm6p.js} +14 -14
  126. package/dist/{erDiagram-KYQIGQAA-BIlejnVi.cjs → erDiagram-KYQIGQAA-DsqyoDOz.cjs} +1 -1
  127. package/dist/eventmodeling-K75KTNOO-Ckh9Djrw.js +2 -0
  128. package/dist/eventmodeling-K75KTNOO-DKYlYG2c.cjs +1 -0
  129. package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +15 -0
  130. package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +1 -0
  131. package/dist/{ganttDiagram-R7GPNTJY-BGcXo1KA.cjs → ganttDiagram-R7GPNTJY-B1juClwW.cjs} +2 -2
  132. package/dist/{ganttDiagram-R7GPNTJY-dcubAqZI.js → ganttDiagram-R7GPNTJY-CEGQ6hzi.js} +18 -26
  133. package/dist/gitGraph-VSP46ZUC-5x2CrP9e.js +2 -0
  134. package/dist/gitGraph-VSP46ZUC-Cgx_wrMl.cjs +1 -0
  135. package/dist/{gitGraphDiagram-PDYL7XHY-BoJsALki.cjs → gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs} +1 -1
  136. package/dist/{gitGraphDiagram-PDYL7XHY-CfRYMd3w.js → gitGraphDiagram-PDYL7XHY-D_ADFBrL.js} +4 -4
  137. package/dist/info-OHQRW6UA-DDzA9eXN.cjs +1 -0
  138. package/dist/info-OHQRW6UA-DkaWmfEE.js +2 -0
  139. package/dist/{infoDiagram-MVDRKAX5-B1QBSTSo.cjs → infoDiagram-MVDRKAX5-CVeFOzof.cjs} +1 -1
  140. package/dist/{infoDiagram-MVDRKAX5-BYGrp2QT.js → infoDiagram-MVDRKAX5-Dkuw3h5s.js} +4 -4
  141. package/dist/{ishikawaDiagram-HPEHV2GE-BWJo3pFM.cjs → ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs} +2 -2
  142. package/dist/{ishikawaDiagram-HPEHV2GE-C32LoFQd.js → ishikawaDiagram-HPEHV2GE-oTSoKUOA.js} +5 -7
  143. package/dist/{javascript-CIP6I0eT.js → javascript-BSRoJWCv.js} +1 -8
  144. package/dist/javascript-B_OkdA1F.cjs +1 -0
  145. package/dist/{journeyDiagram-BOSHW7O7-DJ9OKW8H.js → journeyDiagram-BOSHW7O7-CMbGxPLA.js} +4 -4
  146. package/dist/{journeyDiagram-BOSHW7O7-090H5NM8.cjs → journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs} +1 -1
  147. package/dist/{kanban-definition-FNSA4HC5-BhC2u-9L.cjs → kanban-definition-FNSA4HC5-DlUMoAIT.cjs} +1 -1
  148. package/dist/{kanban-definition-FNSA4HC5-FqIvMKJw.js → kanban-definition-FNSA4HC5-DzEQcVPw.js} +10 -10
  149. package/dist/{katex-DTnCNBYg.js → katex-BOYcAQ2I.js} +17 -26
  150. package/dist/{katex-DBUQi-HZ.cjs → katex-C-T_oEhv.cjs} +5 -5
  151. package/dist/lib-CRTt_FoR.cjs +26 -0
  152. package/dist/{lib-DILNlJGg.js → lib-CSMo4o20.js} +1522 -1452
  153. package/dist/{line-CJjnW4T-.js → line-0VTxwDiV.js} +1 -1
  154. package/dist/{line-DjYp3Ff8.cjs → line-ZwhMGa3_.cjs} +1 -1
  155. package/dist/linear-Bh2vuvAF.cjs +1 -0
  156. package/dist/{linear-DVFZQF4V.js → linear-CxE0kir0.js} +2 -3
  157. package/dist/{loadReferencedImage-CkvnSeQi.js → loadReferencedImage-2qNdVVhQ.js} +2 -2
  158. package/dist/{loadReferencedImage-CHTgZKAP.cjs → loadReferencedImage-qVqyIGz2.cjs} +1 -1
  159. package/dist/mermaid-parser.core-DKJw9lm9.cjs +6 -0
  160. package/dist/{mermaid-parser.core-CI12FMcX.js → mermaid-parser.core-IoY9gmm6.js} +19 -25
  161. package/dist/{mermaid.core-2PafqU96.cjs → mermaid.core-73kk5oPm.cjs} +7 -7
  162. package/dist/{mermaid.core-BxQmR6RW.js → mermaid.core-C8dp1dnD.js} +69 -75
  163. package/dist/{mermaidToImage-DowDuCUe.js → mermaidToImage-B2aJB9x8.js} +4900 -2274
  164. package/dist/mermaidToImage-qujM0Ggp.cjs +28 -0
  165. package/dist/{mindmap-definition-6OY57UG3-C0JXAaiI.js → mindmap-definition-6OY57UG3-CXobmoZM.js} +13 -13
  166. package/dist/{mindmap-definition-6OY57UG3-QMaMZxqJ.cjs → mindmap-definition-6OY57UG3-DLx3d1V6.cjs} +1 -1
  167. package/dist/packet-JDAUHWVQ-7Kdl1aNj.js +2 -0
  168. package/dist/packet-JDAUHWVQ-BB_DuPiR.cjs +1 -0
  169. package/dist/{pdf-D6MygsxO.js → pdf-CL7gVGT1.js} +3278 -3383
  170. package/dist/pdf-HcLHRelN.cjs +54 -0
  171. package/dist/{pegDiagram-ECIUJNBX-agFLe55J.cjs → pegDiagram-ECIUJNBX-B-eSDSQK.cjs} +1 -1
  172. package/dist/{pegDiagram-ECIUJNBX-BluDPMz-.js → pegDiagram-ECIUJNBX-ODBWqs1V.js} +5 -5
  173. package/dist/pi-outpost-embed.cjs +15 -15
  174. package/dist/pi-outpost-embed.js +160 -325
  175. package/dist/pie-XZMESJXO-CxP1ntAS.cjs +1 -0
  176. package/dist/pie-XZMESJXO-vkOzPeYA.js +2 -0
  177. package/dist/{pieDiagram-GNMPY74T-Bkt6LXIr.cjs → pieDiagram-GNMPY74T-BtYyKCrf.cjs} +1 -1
  178. package/dist/{pieDiagram-GNMPY74T-D2Dlw9oL.js → pieDiagram-GNMPY74T-DYDC5z2D.js} +7 -7
  179. package/dist/{quadrantDiagram-D57K4MC3-vbdBbRAF.js → quadrantDiagram-D57K4MC3-BfQWcg-D.js} +3 -3
  180. package/dist/{quadrantDiagram-D57K4MC3-BwUPO-ri.cjs → quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs} +1 -1
  181. package/dist/radar-ABXABTNO-BIDY5R4F.cjs +1 -0
  182. package/dist/radar-ABXABTNO-DvS23EDt.js +2 -0
  183. package/dist/railroad-I3PHUGI6-BRbLa2w3.cjs +1 -0
  184. package/dist/railroad-I3PHUGI6-DH5Ttw2P.js +2 -0
  185. package/dist/railroad-abnf-LNEFI6M7-Qj3WuV4C.cjs +1 -0
  186. package/dist/railroad-abnf-LNEFI6M7-wA0DIfJr.js +2 -0
  187. package/dist/railroad-ebnf-DWYD2UWJ-C7YCjuXb.cjs +1 -0
  188. package/dist/railroad-ebnf-DWYD2UWJ-CkakbyYF.js +2 -0
  189. package/dist/railroad-peg-JR7BVNR7-CpVGf7CG.cjs +1 -0
  190. package/dist/railroad-peg-JR7BVNR7-Kw2gXekA.js +2 -0
  191. package/dist/{railroadDiagram-Y72NRBL7-CJ9MP3wV.cjs → railroadDiagram-Y72NRBL7-BdHmqKV_.cjs} +1 -1
  192. package/dist/{railroadDiagram-Y72NRBL7-B2x_q8pa.js → railroadDiagram-Y72NRBL7-ChQwG3mZ.js} +5 -5
  193. package/dist/{requirementDiagram-EQYSW5RA-CP0M11vC.cjs → requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs} +1 -1
  194. package/dist/{requirementDiagram-EQYSW5RA-j7VZ-e65.js → requirementDiagram-EQYSW5RA-Dj4E0fE3.js} +13 -13
  195. package/dist/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-5HNE8Q1r.js} +1 -1
  196. package/dist/rolldown-runtime-DbbDpzbe.cjs +1 -0
  197. package/dist/{sankeyDiagram-SY24JHO5-B7NuxaKG.cjs → sankeyDiagram-SY24JHO5-BPFkmPzT.cjs} +1 -1
  198. package/dist/{sankeyDiagram-SY24JHO5-Cgewgbc8.js → sankeyDiagram-SY24JHO5-luxVW4uf.js} +2 -2
  199. package/dist/{sequenceDiagram-BLEHNHQU-B5THoiqW.cjs → sequenceDiagram-BLEHNHQU-DX51aIRY.cjs} +1 -1
  200. package/dist/{sequenceDiagram-BLEHNHQU-DsjvHcWN.js → sequenceDiagram-BLEHNHQU-H4rQDzp-.js} +6 -6
  201. package/dist/{sizeCapture-INFHLROL-B5Lg3qGn.js → sizeCapture-INFHLROL-Uzko9_4n.js} +1 -1
  202. package/dist/sizeCapture-INFHLROL-bi8MyHwB.cjs +1 -0
  203. package/dist/{src-Dkp7vqs8.js → src-65Lfw03T.js} +12 -18
  204. package/dist/src-BN1VgXwj.cjs +1 -0
  205. package/dist/{stateDiagram-v2-A6IESKWZ-BD0FNkiB.js → stateDiagram-v2-A6IESKWZ-DBJ11U2p.js} +14 -14
  206. package/dist/{stateDiagram-v2-A6IESKWZ-Dqzvdrv1.cjs → stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs} +1 -1
  207. package/dist/{swimlanes-B3ENRKFQ-Do-xntE9.js → swimlanes-B3ENRKFQ-Bp3vZCmK.js} +38 -60
  208. package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +1 -0
  209. package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +27 -0
  210. package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +8 -0
  211. package/dist/{timeline-definition-JXYKGLGB-Cxi2ay-W.js → timeline-definition-JXYKGLGB-BE6iAj4r.js} +5 -5
  212. package/dist/{timeline-definition-JXYKGLGB-B_QITrmE.cjs → timeline-definition-JXYKGLGB-DKhMPFBi.cjs} +1 -1
  213. package/dist/treeView-D4JQ5SDB-BAXbN8Bf.cjs +1 -0
  214. package/dist/treeView-D4JQ5SDB-BAub6u3e.js +2 -0
  215. package/dist/treemap-SAJKECNS-DlyYa6yd.js +2 -0
  216. package/dist/treemap-SAJKECNS-EjU-hEqB.cjs +1 -0
  217. package/dist/{typescript-C93MG6Zk.js → typescript-4QjI-Ug2.js} +1 -8
  218. package/dist/typescript-CUdTaGTg.cjs +1 -0
  219. package/dist/{usecaseDiagram-WPOLBNNX-_GFZAFdK.cjs → usecaseDiagram-WPOLBNNX-BRWufOTq.cjs} +6 -6
  220. package/dist/{usecaseDiagram-WPOLBNNX-C5u6uogx.js → usecaseDiagram-WPOLBNNX-DY9Md_AG.js} +36 -48
  221. package/dist/{vennDiagram-Q3Y3IDCW-CircfM4o.js → vennDiagram-Q3Y3IDCW-DbPGt27W.js} +4 -4
  222. package/dist/{vennDiagram-Q3Y3IDCW-Bf1i94bS.cjs → vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs} +1 -1
  223. package/dist/wardley-7MLQ67FV-BDYz-MEd.js +2 -0
  224. package/dist/wardley-7MLQ67FV-BdwutaJ8.cjs +1 -0
  225. package/dist/{wardleyDiagram-IVAIDKWA-BOSseRAa.js → wardleyDiagram-IVAIDKWA-BHkJFpfC.js} +5 -5
  226. package/dist/{wardleyDiagram-IVAIDKWA-Cr5LS-u2.cjs → wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs} +1 -1
  227. package/dist/{xychartDiagram-4URNHDU4-DOUN6alM.cjs → xychartDiagram-4URNHDU4-B_g46bSg.cjs} +1 -1
  228. package/dist/{xychartDiagram-4URNHDU4-C4X8LFY4.js → xychartDiagram-4URNHDU4-IvFjWG-y.js} +8 -8
  229. package/package.json +14 -14
  230. package/dist/PdfViewer-BJfC4rzg.js +0 -428
  231. package/dist/PdfViewer-D6C-NAyn.cjs +0 -1
  232. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +0 -1
  233. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +0 -3
  234. package/dist/architectureDiagram-ZHVYKT53-DBfdIpyr.cjs +0 -36
  235. package/dist/channel-BRczbI_M.cjs +0 -1
  236. package/dist/chunk-DSNLSHJZ-DZO9xahH.cjs +0 -129
  237. package/dist/chunk-ZCHMQSOR-7slscxYq.cjs +0 -1
  238. package/dist/conversationHistory-DN1r7WZT.cjs +0 -287
  239. package/dist/conversationHistory-DwB6hasI.js +0 -43647
  240. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +0 -1
  241. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +0 -3
  242. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +0 -1
  243. package/dist/cytoscape.esm-uHsEX1XI.cjs +0 -321
  244. package/dist/dagre-NK4GIZVX-BI_akQkH.cjs +0 -4
  245. package/dist/diagram-TYUNFSNR-B_p2UHsR.cjs +0 -200
  246. package/dist/dist-DEl2Ze0j.cjs +0 -2
  247. package/dist/dist-DJbgM591.cjs +0 -1
  248. package/dist/dist-Dja2VlN5.cjs +0 -1
  249. package/dist/elk-QONTBCTQ-BDAptnPT.cjs +0 -27
  250. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +0 -3
  251. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +0 -1
  252. package/dist/flowDiagram-IUGLLWBU-BSiCLGuL.cjs +0 -1
  253. package/dist/flowDiagram-IUGLLWBU-DL_I6QCE.js +0 -16
  254. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +0 -3
  255. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +0 -1
  256. package/dist/info-OHQRW6UA-DPTZOb30.js +0 -3
  257. package/dist/info-OHQRW6UA-deop1PPz.cjs +0 -1
  258. package/dist/javascript-Gn0piXHk.cjs +0 -1
  259. package/dist/lib-BDkAiWI9.cjs +0 -26
  260. package/dist/linear-Nt9BuHfn.cjs +0 -1
  261. package/dist/mermaid-parser.core-BHBS1DqP.cjs +0 -6
  262. package/dist/mermaidToImage-CSR5Vyvs.cjs +0 -25
  263. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +0 -3
  264. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +0 -1
  265. package/dist/pdf-BcvU2rBV.cjs +0 -54
  266. package/dist/pie-XZMESJXO-BYQC-ufi.js +0 -3
  267. package/dist/pie-XZMESJXO-WjCBboSE.cjs +0 -1
  268. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +0 -1
  269. package/dist/radar-ABXABTNO-MxbyaZja.js +0 -3
  270. package/dist/railroad-I3PHUGI6-DckUArT-.js +0 -3
  271. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +0 -1
  272. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +0 -3
  273. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +0 -1
  274. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +0 -1
  275. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +0 -3
  276. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +0 -3
  277. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +0 -1
  278. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  279. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +0 -1
  280. package/dist/src-D9o9TOtH.cjs +0 -1
  281. package/dist/swimlanes-B3ENRKFQ-DEsfJ_Va.cjs +0 -1
  282. package/dist/swimlanesDiagram-AYQRV4AK-CU4USE4p.cjs +0 -8
  283. package/dist/swimlanesDiagram-AYQRV4AK-ora_Y3LB.js +0 -27
  284. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +0 -1
  285. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +0 -3
  286. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +0 -1
  287. package/dist/treemap-SAJKECNS-DiC0668-.js +0 -3
  288. package/dist/typescript-BarIi8q9.cjs +0 -1
  289. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +0 -1
  290. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +0 -3
@@ -1,8 +1,8 @@
1
- import { _ as e, _t as t, a as n, k as r, n as i, u as a, vt as o, x as s } from "./dist-BhXQJ0x3.js";
2
- import { n as c, r as l } from "./dist-DPXHxuWb.js";
3
- import { i as u, r as ee } from "./CodeEditor-2Vx8PHAy.js";
1
+ import { _ as e, _t as t, a as n, k as r, n as i, u as a, vt as o, x as s } from "./dist-BJHB0x8Y.js";
2
+ import { n as c, r as l } from "./dist-CGZbBQje.js";
3
+ import { i as u, r as d } from "./CodeEditor-CxKTvrhG.js";
4
4
  //#region ../node_modules/@codemirror/lang-sql/dist/index.js
5
- var d = 36, f = 1, te = 2, p = 3, m = 4, h = 5, g = 6, _ = 7, v = 8, y = 9, ne = 10, re = 11, ie = 12, ae = 13, oe = 14, se = 15, b = 16, ce = 17, x = 18, S = 19, C = 20, w = 21, T = 22, E = 23, D = 24;
5
+ var f = 36, p = 1, ee = 2, m = 3, h = 4, g = 5, _ = 6, v = 7, te = 8, ne = 9, re = 10, ie = 11, ae = 12, oe = 13, se = 14, y = 15, b = 16, x = 17, S = 18, C = 19, w = 20, T = 21, E = 22, D = 23, ce = 24;
6
6
  function O(e) {
7
7
  return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57;
8
8
  }
@@ -19,7 +19,7 @@ function k(e, t, n) {
19
19
  r = n && !r && e.next == 92, e.advance();
20
20
  }
21
21
  }
22
- function ue(e, t) {
22
+ function A(e, t) {
23
23
  scan: for (;;) {
24
24
  if (e.next < 0) return;
25
25
  if (e.next == 36) {
@@ -35,7 +35,7 @@ function ue(e, t) {
35
35
  } else e.advance();
36
36
  }
37
37
  }
38
- function de(e, t) {
38
+ function j(e, t) {
39
39
  let n = "[{<(".indexOf(String.fromCharCode(t)), r = n < 0 ? t : "]}>)".charCodeAt(n);
40
40
  for (;;) {
41
41
  if (e.next < 0) return;
@@ -46,21 +46,21 @@ function de(e, t) {
46
46
  e.advance();
47
47
  }
48
48
  }
49
- function A(e, t) {
50
- for (; !(e.next != 95 && !O(e.next));) t != null && (t += String.fromCharCode(e.next)), e.advance();
49
+ function M(e, t) {
50
+ for (; e.next == 95 || O(e.next);) t != null && (t += String.fromCharCode(e.next)), e.advance();
51
51
  return t;
52
52
  }
53
- function j(e) {
53
+ function N(e) {
54
54
  if (e.next == 39 || e.next == 34 || e.next == 96) {
55
55
  let t = e.next;
56
56
  e.advance(), k(e, t, !1);
57
- } else A(e);
57
+ } else M(e);
58
58
  }
59
- function M(e, t) {
59
+ function P(e, t) {
60
60
  for (; e.next == 48 || e.next == 49;) e.advance();
61
61
  t && e.next == t && e.advance();
62
62
  }
63
- function N(e, t) {
63
+ function F(e, t) {
64
64
  for (;;) {
65
65
  if (e.next == 46) {
66
66
  if (t) break;
@@ -70,23 +70,23 @@ function N(e, t) {
70
70
  }
71
71
  if (e.next == 69 || e.next == 101) for (e.advance(), (e.next == 43 || e.next == 45) && e.advance(); e.next >= 48 && e.next <= 57;) e.advance();
72
72
  }
73
- function P(e) {
73
+ function I(e) {
74
74
  for (; !(e.next < 0 || e.next == 10);) e.advance();
75
75
  }
76
- function F(e, t) {
76
+ function L(e, t) {
77
77
  for (let n = 0; n < t.length; n++) if (t.charCodeAt(n) == e) return !0;
78
78
  return !1;
79
79
  }
80
- var I = " \r\n";
81
- function L(e, t, n) {
80
+ var R = " \r\n";
81
+ function z(e, t, n) {
82
82
  let r = Object.create(null);
83
- r.true = r.false = h, r.null = r.unknown = g;
84
- for (let t of e.split(" ")) t && (r[t] = C);
85
- for (let e of t.split(" ")) e && (r[e] = w);
86
- for (let e of (n || "").split(" ")) e && (r[e] = D);
83
+ r.true = r.false = g, r.null = r.unknown = _;
84
+ for (let t of e.split(" ")) t && (r[t] = w);
85
+ for (let e of t.split(" ")) e && (r[e] = T);
86
+ for (let e of (n || "").split(" ")) e && (r[e] = ce);
87
87
  return r;
88
88
  }
89
- var R = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ", z = "absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", B = {
89
+ var B = {
90
90
  backslashEscapes: !1,
91
91
  hashComments: !1,
92
92
  spaceAfterDashes: !1,
@@ -101,25 +101,25 @@ var R = "array binary bit boolean char character clob date decimal double float
101
101
  specialVar: "?",
102
102
  identifierQuotes: "\"",
103
103
  caseInsensitiveIdentifiers: !1,
104
- words: /*@__PURE__*/ L(z, R)
104
+ words: /*@__PURE__*/ z("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")
105
105
  };
106
106
  function V(e, t, n, r) {
107
107
  let i = {};
108
108
  for (let t in B) i[t] = (e.hasOwnProperty(t) ? e : B)[t];
109
- return t && (i.words = L(t, n || "", r)), i;
109
+ return t && (i.words = z(t, n || "", r)), i;
110
110
  }
111
111
  function H(e) {
112
112
  return new c((t) => {
113
113
  let { next: n } = t;
114
- if (t.advance(), F(n, I)) {
115
- for (; F(t.next, I);) t.advance();
116
- t.acceptToken(d);
114
+ if (t.advance(), L(n, R)) {
115
+ for (; L(t.next, R);) t.advance();
116
+ t.acceptToken(f);
117
117
  } else if (n == 36 && e.doubleDollarQuotedStrings) {
118
- let e = A(t, "");
119
- t.next == 36 && (t.advance(), ue(t, e), t.acceptToken(p));
120
- } else if (n == 39 || n == 34 && e.doubleQuotedStrings) k(t, n, e.backslashEscapes), t.acceptToken(p);
121
- else if (n == 35 && e.hashComments || n == 47 && t.next == 47 && e.slashComments) P(t), t.acceptToken(f);
122
- else if (n == 45 && t.next == 45 && (!e.spaceAfterDashes || t.peek(1) == 32)) P(t), t.acceptToken(f);
118
+ let e = M(t, "");
119
+ t.next == 36 && (t.advance(), A(t, e), t.acceptToken(m));
120
+ } else if (n == 39 || n == 34 && e.doubleQuotedStrings) k(t, n, e.backslashEscapes), t.acceptToken(m);
121
+ else if (n == 35 && e.hashComments || n == 47 && t.next == 47 && e.slashComments) I(t), t.acceptToken(p);
122
+ else if (n == 45 && t.next == 45 && (!e.spaceAfterDashes || t.peek(1) == 32)) I(t), t.acceptToken(p);
123
123
  else if (n == 47 && t.next == 42) {
124
124
  t.advance();
125
125
  for (let e = 1;;) {
@@ -129,51 +129,51 @@ function H(e) {
129
129
  if (e--, t.advance(), !e) break;
130
130
  } else n == 47 && t.next == 42 && (e++, t.advance());
131
131
  }
132
- t.acceptToken(te);
133
- } else if ((n == 101 || n == 69) && t.next == 39) t.advance(), k(t, 39, !0), t.acceptToken(p);
134
- else if ((n == 110 || n == 78) && t.next == 39 && e.charSetCasts) t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(p);
132
+ t.acceptToken(ee);
133
+ } else if ((n == 101 || n == 69) && t.next == 39) t.advance(), k(t, 39, !0), t.acceptToken(m);
134
+ else if ((n == 110 || n == 78) && t.next == 39 && e.charSetCasts) t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(m);
135
135
  else if (n == 95 && e.charSetCasts) for (let n = 0;; n++) {
136
136
  if (t.next == 39 && n > 1) {
137
- t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(p);
137
+ t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(m);
138
138
  break;
139
139
  }
140
140
  if (!O(t.next)) break;
141
141
  t.advance();
142
142
  }
143
- else if (e.plsqlQuotingMechanism && (n == 113 || n == 81) && t.next == 39 && t.peek(1) > 0 && !F(t.peek(1), I)) {
143
+ else if (e.plsqlQuotingMechanism && (n == 113 || n == 81) && t.next == 39 && t.peek(1) > 0 && !L(t.peek(1), R)) {
144
144
  let e = t.peek(1);
145
- t.advance(2), de(t, e), t.acceptToken(p);
146
- } else if (F(n, e.identifierQuotes)) k(t, n == 91 ? 93 : n, !1), t.acceptToken(S);
147
- else if (n == 40) t.acceptToken(_);
148
- else if (n == 41) t.acceptToken(v);
149
- else if (n == 123) t.acceptToken(y);
150
- else if (n == 125) t.acceptToken(ne);
151
- else if (n == 91) t.acceptToken(re);
152
- else if (n == 93) t.acceptToken(ie);
153
- else if (n == 59) t.acceptToken(ae);
154
- else if (e.unquotedBitLiterals && n == 48 && t.next == 98) t.advance(), M(t), t.acceptToken(T);
145
+ t.advance(2), j(t, e), t.acceptToken(m);
146
+ } else if (L(n, e.identifierQuotes)) k(t, n == 91 ? 93 : n, !1), t.acceptToken(C);
147
+ else if (n == 40) t.acceptToken(v);
148
+ else if (n == 41) t.acceptToken(te);
149
+ else if (n == 123) t.acceptToken(ne);
150
+ else if (n == 125) t.acceptToken(re);
151
+ else if (n == 91) t.acceptToken(ie);
152
+ else if (n == 93) t.acceptToken(ae);
153
+ else if (n == 59) t.acceptToken(oe);
154
+ else if (e.unquotedBitLiterals && n == 48 && t.next == 98) t.advance(), P(t), t.acceptToken(E);
155
155
  else if ((n == 98 || n == 66) && (t.next == 39 || t.next == 34)) {
156
156
  let n = t.next;
157
- t.advance(), e.treatBitsAsBytes ? (k(t, n, e.backslashEscapes), t.acceptToken(E)) : (M(t, n), t.acceptToken(T));
157
+ t.advance(), e.treatBitsAsBytes ? (k(t, n, e.backslashEscapes), t.acceptToken(D)) : (P(t, n), t.acceptToken(E));
158
158
  } else if (n == 48 && (t.next == 120 || t.next == 88) || (n == 120 || n == 88) && t.next == 39) {
159
159
  let e = t.next == 39;
160
160
  for (t.advance(); le(t.next);) t.advance();
161
- e && t.next == 39 && t.advance(), t.acceptToken(m);
162
- } else if (n == 46 && t.next >= 48 && t.next <= 57) N(t, !0), t.acceptToken(m);
163
- else if (n == 46) t.acceptToken(oe);
164
- else if (n >= 48 && n <= 57) N(t, !1), t.acceptToken(m);
165
- else if (F(n, e.operatorChars)) {
166
- for (; F(t.next, e.operatorChars);) t.advance();
167
- t.acceptToken(se);
168
- } else if (F(n, e.specialVar)) t.next == n && t.advance(), j(t), t.acceptToken(ce);
161
+ e && t.next == 39 && t.advance(), t.acceptToken(h);
162
+ } else if (n == 46 && t.next >= 48 && t.next <= 57) F(t, !0), t.acceptToken(h);
163
+ else if (n == 46) t.acceptToken(se);
164
+ else if (n >= 48 && n <= 57) F(t, !1), t.acceptToken(h);
165
+ else if (L(n, e.operatorChars)) {
166
+ for (; L(t.next, e.operatorChars);) t.advance();
167
+ t.acceptToken(y);
168
+ } else if (L(n, e.specialVar)) t.next == n && t.advance(), N(t), t.acceptToken(x);
169
169
  else if (n == 58 || n == 44) t.acceptToken(b);
170
170
  else if (O(n)) {
171
- let r = A(t, String.fromCharCode(n));
172
- t.acceptToken(t.next == 46 || t.peek(-r.length - 1) == 46 ? x : e.words[r.toLowerCase()] ?? x);
171
+ let r = M(t, String.fromCharCode(n));
172
+ t.acceptToken(t.next == 46 || t.peek(-r.length - 1) == 46 ? S : e.words[r.toLowerCase()] ?? S);
173
173
  }
174
174
  });
175
175
  }
176
- var U = /*@__PURE__*/ H(B), fe = /*@__PURE__*/ l.deserialize({
176
+ var U = /*@__PURE__*/ H(B), W = /*@__PURE__*/ l.deserialize({
177
177
  version: 14,
178
178
  states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
179
179
  stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
@@ -200,45 +200,45 @@ var U = /*@__PURE__*/ H(B), fe = /*@__PURE__*/ l.deserialize({
200
200
  topRules: { Script: [0, 25] },
201
201
  tokenPrec: 0
202
202
  });
203
- function W(e) {
203
+ function G(e) {
204
204
  let t = e.cursor().moveTo(e.from, -1);
205
205
  for (; /Comment/.test(t.name);) t.moveTo(t.from, -1);
206
206
  return t.node;
207
207
  }
208
- function G(e, t) {
208
+ function K(e, t) {
209
209
  let n = e.sliceString(t.from, t.to), r = /^([`'"\[])(.*)([`'"\]])$/.exec(n);
210
210
  return r ? r[2] : n;
211
211
  }
212
- function K(e) {
212
+ function q(e) {
213
213
  return e && (e.name == "Identifier" || e.name == "QuotedIdentifier");
214
214
  }
215
- function pe(e, t) {
215
+ function ue(e, t) {
216
216
  if (t.name == "CompositeIdentifier") {
217
217
  let n = [];
218
- for (let r = t.firstChild; r; r = r.nextSibling) K(r) && n.push(G(e, r));
218
+ for (let r = t.firstChild; r; r = r.nextSibling) q(r) && n.push(K(e, r));
219
219
  return n;
220
220
  }
221
- return [G(e, t)];
221
+ return [K(e, t)];
222
222
  }
223
- function q(e, t) {
223
+ function J(e, t) {
224
224
  for (let n = [];;) {
225
225
  if (!t || t.name != ".") return n;
226
- let r = W(t);
227
- if (!K(r)) return n;
228
- n.unshift(G(e, r)), t = W(r);
226
+ let r = G(t);
227
+ if (!q(r)) return n;
228
+ n.unshift(K(e, r)), t = G(r);
229
229
  }
230
230
  }
231
- function me(e, t) {
232
- let n = r(e).resolveInner(t, -1), i = ge(e.doc, n);
231
+ function de(e, t) {
232
+ let n = r(e).resolveInner(t, -1), i = pe(e.doc, n);
233
233
  return n.name == "Identifier" || n.name == "QuotedIdentifier" || n.name == "Keyword" ? {
234
234
  from: n.from,
235
235
  quoted: n.name == "QuotedIdentifier" ? e.doc.sliceString(n.from, n.from + 1) : null,
236
- parents: q(e.doc, W(n)),
236
+ parents: J(e.doc, G(n)),
237
237
  aliases: i
238
238
  } : n.name == "." ? {
239
239
  from: t,
240
240
  quoted: null,
241
- parents: q(e.doc, n),
241
+ parents: J(e.doc, n),
242
242
  aliases: i
243
243
  } : {
244
244
  from: t,
@@ -248,8 +248,8 @@ function me(e, t) {
248
248
  aliases: i
249
249
  };
250
250
  }
251
- var he = /*@__PURE__*/ new Set(/*@__PURE__*/ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
252
- function ge(e, t) {
251
+ var fe = /*@__PURE__*/ new Set(/*@__PURE__*/ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
252
+ function pe(e, t) {
253
253
  let n;
254
254
  for (let e = t; !n; e = e.parent) {
255
255
  if (!e) return null;
@@ -259,31 +259,31 @@ function ge(e, t) {
259
259
  for (let t = n.firstChild, i = !1, a = null; t; t = t.nextSibling) {
260
260
  let n = t.name == "Keyword" ? e.sliceString(t.from, t.to).toLowerCase() : null, o = null;
261
261
  if (!i) i = n == "from";
262
- else if (n == "as" && a && K(t.nextSibling)) o = G(e, t.nextSibling);
263
- else if (n && he.has(n)) break;
264
- else a && K(t) && (o = G(e, t));
265
- o && (r ||= Object.create(null), r[o] = pe(e, a)), a = /Identifier$/.test(t.name) ? t : null;
262
+ else if (n == "as" && a && q(t.nextSibling)) o = K(e, t.nextSibling);
263
+ else if (n && fe.has(n)) break;
264
+ else a && q(t) && (o = K(e, t));
265
+ o && (r ||= Object.create(null), r[o] = ue(e, a)), a = /Identifier$/.test(t.name) ? t : null;
266
266
  }
267
267
  return r;
268
268
  }
269
- function _e(e, t, n) {
269
+ function me(e, t, n) {
270
270
  return n.map((n) => ({
271
271
  ...n,
272
272
  label: n.label[0] == e ? n.label : e + n.label + t,
273
273
  apply: void 0
274
274
  }));
275
275
  }
276
- var ve = /^\w*$/, ye = /^[`'"\[]?\w*[`'"\]]?$/;
277
- function J(e) {
276
+ var he = /^\w*$/, ge = /^[`'"\[]?\w*[`'"\]]?$/;
277
+ function Y(e) {
278
278
  return e.self && typeof e.self.label == "string";
279
279
  }
280
- var be = class e {
280
+ var _e = class e {
281
281
  constructor(e, t) {
282
282
  this.idQuote = e, this.idCaseInsensitive = t, this.list = [], this.children = void 0;
283
283
  }
284
284
  child(t) {
285
285
  let n = this.children ||= Object.create(null);
286
- return n[t] || (t && !this.list.some((e) => e.label == t) && this.list.push(Y(t, "type", this.idQuote, this.idCaseInsensitive)), n[t] = new e(this.idQuote, this.idCaseInsensitive));
286
+ return n[t] || (t && !this.list.some((e) => e.label == t) && this.list.push(X(t, "type", this.idQuote, this.idCaseInsensitive)), n[t] = new e(this.idQuote, this.idCaseInsensitive));
287
287
  }
288
288
  maybeChild(e) {
289
289
  return this.children ? this.children[e] : null;
@@ -293,37 +293,37 @@ var be = class e {
293
293
  t > -1 ? this.list[t] = e : this.list.push(e);
294
294
  }
295
295
  addCompletions(e) {
296
- for (let t of e) this.addCompletion(typeof t == "string" ? Y(t, "property", this.idQuote, this.idCaseInsensitive) : t);
296
+ for (let t of e) this.addCompletion(typeof t == "string" ? X(t, "property", this.idQuote, this.idCaseInsensitive) : t);
297
297
  }
298
298
  addNamespace(e) {
299
- Array.isArray(e) ? this.addCompletions(e) : J(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
299
+ Array.isArray(e) ? this.addCompletions(e) : Y(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
300
300
  }
301
301
  addNamespaceObject(e) {
302
302
  for (let t of Object.keys(e)) {
303
303
  let n = e[t], r = null, i = t.replace(/\\?\./g, (e) => e == "." ? "\0" : e).split("\0"), a = this;
304
- J(n) && (r = n.self, n = n.children);
304
+ Y(n) && (r = n.self, n = n.children);
305
305
  for (let e = 0; e < i.length; e++) r && e == i.length - 1 && a.addCompletion(r), a = a.child(i[e].replace(/\\\./g, "."));
306
306
  a.addNamespace(n);
307
307
  }
308
308
  }
309
309
  };
310
- function Y(e, t, n, r) {
310
+ function X(e, t, n, r) {
311
311
  return RegExp("^[a-z_][a-z_\\d]*$", r ? "i" : "").test(e) ? {
312
312
  label: e,
313
313
  type: t
314
314
  } : {
315
315
  label: e,
316
316
  type: t,
317
- apply: n + e + X(n)
317
+ apply: n + e + Z(n)
318
318
  };
319
319
  }
320
- function X(e) {
320
+ function Z(e) {
321
321
  return e === "[" ? "]" : e;
322
322
  }
323
- function xe(e, t, n, r, i, a) {
324
- let o = new be(a?.spec.identifierQuotes?.[0] || "\"", !!a?.spec.caseInsensitiveIdentifiers), s = i ? o.child(i) : null;
323
+ function ve(e, t, n, r, i, a) {
324
+ let o = new _e(a?.spec.identifierQuotes?.[0] || "\"", !!a?.spec.caseInsensitiveIdentifiers), s = i ? o.child(i) : null;
325
325
  return o.addNamespace(e), t && (s || o).addCompletions(t), n && o.addCompletions(n), s && o.addCompletions(s.list), r && o.addCompletions((s || o).child(r).list), (e) => {
326
- let { parents: t, from: n, quoted: i, empty: a, aliases: c } = me(e.state, e.pos);
326
+ let { parents: t, from: n, quoted: i, empty: a, aliases: c } = de(e.state, e.pos);
327
327
  if (a && !e.explicit) return null;
328
328
  c && t.length == 1 && (t = c[t[0]] || t);
329
329
  let l = o;
@@ -340,35 +340,35 @@ function xe(e, t, n, r, i, a) {
340
340
  label: e,
341
341
  type: "constant"
342
342
  })))), i) {
343
- let t = i[0], r = X(t);
343
+ let t = i[0], r = Z(t);
344
344
  return {
345
345
  from: n,
346
346
  to: e.state.sliceDoc(e.pos, e.pos + 1) == r ? e.pos + 1 : void 0,
347
- options: _e(t, r, u),
348
- validFor: ye
347
+ options: me(t, r, u),
348
+ validFor: ge
349
349
  };
350
350
  }
351
351
  return {
352
352
  from: n,
353
353
  options: u,
354
- validFor: ve
354
+ validFor: he
355
355
  };
356
356
  };
357
357
  }
358
- function Se(e) {
359
- return e == w ? "type" : e == C ? "keyword" : "variable";
358
+ function ye(e) {
359
+ return e == T ? "type" : e == w ? "keyword" : "variable";
360
360
  }
361
- function Ce(e, t, n) {
362
- let r = Object.keys(e).map((r) => n(t ? r.toUpperCase() : r, Se(e[r])));
361
+ function be(e, t, n) {
362
+ let r = Object.keys(e).map((r) => n(t ? r.toUpperCase() : r, ye(e[r])));
363
363
  return u([
364
364
  "QuotedIdentifier",
365
365
  "String",
366
366
  "LineComment",
367
367
  "BlockComment",
368
368
  "."
369
- ], ee(r));
369
+ ], d(r));
370
370
  }
371
- var Z = /*@__PURE__*/ fe.configure({ props: [
371
+ var Q = /*@__PURE__*/ W.configure({ props: [
372
372
  /*@__PURE__*/ s.add({ Statement: /*@__PURE__*/ a() }),
373
373
  /*@__PURE__*/ e.add({
374
374
  Statement(e, t) {
@@ -405,7 +405,7 @@ var Z = /*@__PURE__*/ fe.configure({ props: [
405
405
  "{ }": o.brace,
406
406
  "[ ]": o.squareBracket
407
407
  })
408
- ] }), we = class e {
408
+ ] }), xe = class e {
409
409
  constructor(e, t, n) {
410
410
  this.dialect = e, this.language = t, this.spec = n;
411
411
  }
@@ -418,7 +418,7 @@ var Z = /*@__PURE__*/ fe.configure({ props: [
418
418
  static define(t) {
419
419
  let n = V(t, t.keywords, t.types, t.builtin), r = i.define({
420
420
  name: "sql",
421
- parser: Z.configure({ tokenizers: [{
421
+ parser: Q.configure({ tokenizers: [{
422
422
  from: U,
423
423
  to: H(n)
424
424
  }] }),
@@ -443,29 +443,26 @@ var Z = /*@__PURE__*/ fe.configure({ props: [
443
443
  return new e(n, r, t);
444
444
  }
445
445
  };
446
- function Te(e, t) {
446
+ function Se(e, t) {
447
447
  return {
448
448
  label: e,
449
449
  type: t,
450
450
  boost: -1
451
451
  };
452
452
  }
453
- function Ee(e, t = !1, n) {
454
- return Ce(e.dialect.words, t, n || Te);
453
+ function Ce(e, t = !1, n) {
454
+ return be(e.dialect.words, t, n || Se);
455
455
  }
456
- function De(e) {
457
- return e.schema ? xe(e.schema, e.tables, e.schemas, e.defaultTable, e.defaultSchema, e.dialect || Q) : () => null;
456
+ function we(e) {
457
+ return e.schema ? ve(e.schema, e.tables, e.schemas, e.defaultTable, e.defaultSchema, e.dialect || $) : () => null;
458
458
  }
459
- function Oe(e) {
460
- return e.schema ? (e.dialect || Q).language.data.of({ autocomplete: De(e) }) : [];
459
+ function Te(e) {
460
+ return e.schema ? (e.dialect || $).language.data.of({ autocomplete: we(e) }) : [];
461
461
  }
462
- function ke(e = {}) {
463
- let t = e.dialect || Q;
464
- return new n(t.language, [Oe(e), t.language.data.of({ autocomplete: Ee(t, e.upperCaseKeywords, e.keywordCompletion) })]);
462
+ function Ee(e = {}) {
463
+ let t = e.dialect || $;
464
+ return new n(t.language, [Te(e), t.language.data.of({ autocomplete: Ce(t, e.upperCaseKeywords, e.keywordCompletion) })]);
465
465
  }
466
- var Q = /*@__PURE__*/ we.define({});
467
- z + "", R + "";
468
- var $ = "accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";
469
- R + "", z + "" + $, z + "" + $, z + "", R + "", z + "", R + "", R + "", z + "", R + "";
466
+ var $ = /*@__PURE__*/ xe.define({});
470
467
  //#endregion
471
- export { ke as sql };
468
+ export { Ee as sql };
@@ -1,6 +1,6 @@
1
- import { _ as e, _t as t, a as n, bt as r, f as i, h as a, k as o, n as s, p as c, u as l, vt as u, wt as ee, x as d } from "./dist-BhXQJ0x3.js";
2
- import { i as f, n as p, r as m, t as h } from "./dist-DPXHxuWb.js";
3
- import { a as g, i as _, r as v } from "./CodeEditor-2Vx8PHAy.js";
1
+ import { _ as e, _t as t, a as n, bt as r, f as i, h as a, k as o, n as s, p as c, u as l, vt as u, wt as ee, x as d } from "./dist-BJHB0x8Y.js";
2
+ import { i as f, n as p, r as m, t as h } from "./dist-CGZbBQje.js";
3
+ import { a as g, i as _, r as v } from "./CodeEditor-CxKTvrhG.js";
4
4
  //#region ../node_modules/@lezer/go/dist/index.js
5
5
  var y = 177, b = 179, x = 184, S = 12, C = 13, w = 17, T = 20, E = 25, D = 53, O = 95, k = 142, A = 144, j = 145, M = 148, N = 10, P = 13, F = 32, I = 9, L = 47, te = 41, R = 125, z = new p((e, t) => {
6
6
  for (let n = 0, r = e.next; (t.context && (r < 0 || r == N || r == P || r == L && e.peek(n + 1) == L) || r == te || r == R) && e.acceptToken(y), r == F || r == I;) r = e.peek(++n);
@@ -1,5 +1,5 @@
1
- import { _ as e, _t as t, a as n, h as r, n as i, u as a, vt as o, x as s } from "./dist-BhXQJ0x3.js";
2
- import { n as c, r as l } from "./dist-DPXHxuWb.js";
1
+ import { _ as e, _t as t, a as n, h as r, n as i, u as a, vt as o, x as s } from "./dist-BJHB0x8Y.js";
2
+ import { n as c, r as l } from "./dist-CGZbBQje.js";
3
3
  //#region ../node_modules/@lezer/rust/dist/index.js
4
4
  var u = 1, d = 2, f = 3, p = 4, m = 5, h = 301, g = 98, _ = 101, v = 102, y = 114, b = 69, x = 46, S = 43, C = 45, w = 35, T = 34, E = 124, D = 60, O = 62, k = 61, A = 38;
5
5
  function j(e) {
@@ -1 +1 @@
1
- const e=require("./dist-BZjcsPqi.cjs");var t=class e{constructor(e,t,n,r,i,a,o,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?`!`+this.score:``}`}static start(t,r,i=0){let a=t.parser.context;return new e(t,[],r,i,i,0,[],0,a?new n(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=r.dynamicPrecedence(n);if(a&&(this.score+=a),t==0){n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let o=this.stack.length-(t-1)*3-(e&262144?6:0),s=o?this.stack[o-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&s==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-s;c>=2e3&&!this.p.parser.nodeSet.types[n]?.isAnonymous&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-l;if(n<r.minRepeatTerm||e&131072){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,s,e,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&this.buffer[e-4]==0&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,t,n,r);else{let i=this.buffer.length;if(i>0&&(this.buffer[i-4]!=0||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:a}=this.p;this.pos=r;let o=a.stateFlag(i,1);!o&&(r>n||t<=a.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(t,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let t=this,n=t.buffer.length;for(n&&t.buffer[n-4]==0&&(n-=4);n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new r(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>t&1&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(e==null)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(t&393216)){if(t&65536){let n=(t>>19)-i;if(n>1){let r=t&65535,i=this.stack.length-n*3;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(e!=null)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new n(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},n=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},r=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}},i=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function a(e,t=Uint16Array){if(typeof e!=`string`)return e;let n=null;for(let r=0,i=0;r<e.length;){let a=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(t==126){a=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var o=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},s=new o,c=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk=``,this.chunkOff=0,this.chunk2=``,this.chunk2Pos=0,this.next=-1,this.token=s,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(t==null)return-1;if(n=t,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw RangeError(`Token end out of bounds`);this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk=``,this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=s,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk=``,this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n=``;for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}},l=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;f(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};l.prototype.contextual=l.prototype.fallback=l.prototype.extend=!1;var u=class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e==`string`?a(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(f(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(n||r++,i==null)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};u.prototype.contextual=l.prototype.fallback=l.prototype.extend=!1;var d=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function f(e,t,n,r,i,a){let o=0,s=1<<r,{dialect:c}=n.p.parser;scan:for(;(s&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(c.allows(n)&&(t.token.value==-1||t.token.value==n||m(n,t.token.value,i,a))){t.acceptToken(n);break}}let r=t.next,l=0,u=e[o+2];if(t.next<0&&u>l&&e[n+u*3-3]==65535){o=e[n+u*3-1];continue scan}for(;l<u;){let i=l+u>>1,a=n+i+(i<<1),s=e[a],c=e[a+1]||65536;if(r<s)u=i;else if(r>=c)l=i+1;else{o=e[a+2],t.advance();continue scan}}break}}function p(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function m(e,t,n,r){let i=p(n,r,t);return i<0||p(n,r,e)<i}var h=typeof process<`u`&&process.env&&/\bparse\b/.test(process.env.LOG),g=null;function _(t,n,r){let i=t.cursor(e.bt.IncludeAnonymous);for(i.moveTo(n);;)if(!(r<0?i.childBefore(n):i.childAfter(n)))for(;;){if((r<0?i.to<n:i.from>n)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:t.length}}var v=class{constructor(e,t){this.fragments=e,this.minRepeat=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?_(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?_(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let a=r.children[i],o=this.start[n]+r.positions[i];if(o>t)return this.nextStart=o,null;if(a instanceof e.Et){let r=o>this.lastRepeatPos&&a.type.id>=this.minRepeat;if(o==t||r){let n=o+a.length,i;if(o>=this.safeFrom&&n<=this.safeTo&&(!(i=a.prop(e.xt.lookAhead))||n+i<this.fragment.to)){if(r&&(this.lastRepeat=a,this.lastRepeatPos=o),o==t)return a}else if(o==t)return null}this.index[n]++,o+a.length>=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+a.length}}},y=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new o)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,c=0;for(let r=0;r<i.length;r++){if(!(1<<r&a))continue;let o=i[r],l=this.tokens[r];if(!(n&&!o.fallback)&&((o.contextual||l.start!=e.pos||l.mask!=a||l.context!=s)&&(this.updateCachedToken(l,o,e),l.mask=a,l.context=s),l.lookAhead>l.end+25&&(c=Math.max(l.lookAhead,c)),l.value!=0)){let r=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!o.extend&&(n=l,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return c&&e.setLookAhead(c),!n&&e.pos==this.stream.end&&(n=new o,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new o,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){i&1?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:a}=e.p,{data:o}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(i,e?2:1);;s+=3){if(o[s]==65535){if(o[s+1]==1)s=E(o,s+2);else{r==0&&o[s+1]==2&&(r=this.putAction(E(o,s+2),t,n,r));break}}o[s]==t&&(r=this.putAction(E(o,s+1),t,n,r))}return r}},b=class{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new c(n,i),this.tokens=new y(e,this.stream),this.topTerm=e.top[1];let{from:a}=i[0];this.stacks=[t.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>e.bufferLength*4?new v(r,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>t)n.push(o);else if(this.advanceStack(o,n,e))continue;else{r||(r=[],i=[]),r.push(o);let e=this.tokens.getMainToken(o);i.push(e.value,e.end)}break}}if(!n.length){let e=r&&D(r);if(e)return h&&console.log(`Finish with `+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw h&&r&&console.log(`Stuck with token `+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):`none`)),SyntaxError(`No parse at `+t);this.recovering||=5}if(this.recovering&&r){let e=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return h&&console.log(`Force-finish `+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=this.recovering==1?1:this.recovering*3;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}else if(n.length>1){outer:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue outer}}}}n.length>12&&(n.sort((e,t)=>t.score-e.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}tryReuse(t,n,r,i){if(!r)return null;let a=t.curContext&&t.curContext.tracker.strict,o=a?t.curContext.hash:0;for(;r;){let s=this.parser.nodeSet.types[r.type.id]==r.type?this.parser.getGoto(t.state,r.type.id):-1;if(s>-1&&r.length&&(!a||(r.prop(e.xt.contextHash)||0)==o))return t.useNode(r,s,n),r;if(r.children.length==0||r.positions[0]>0)break;let c=r.children[0];if(c instanceof e.Et&&(!i||c.type.id>=this.parser.minRepeatTerm))r=c;else break}return null}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,a=h?this.stackID(e)+` -> `:``;if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(t)return h&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(t.type.id)})`),!0}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),h&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;o<s.length;){let c=s[o++],l=s[o++],u=s[o++],d=o==s.length||!n,f=d?e:e.split(),p=this.tokens.mainToken;if(f.apply(c,l,p?p.start:f.pos,u),h&&console.log(a+this.stackID(f)+` (via ${c&65536?`reduce of ${i.getName(c&65535)}`:`shift`} for ${i.getName(l)} @ ${r}${f==e?``:`, split`})`),d)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return x(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=t[a<<1],c=t[(a<<1)+1],l=h?this.stackID(o)+` -> `:``;if(o.deadEnd&&(i||(i=!0,o.restart(),h&&console.log(l+this.stackID(o)+` (restarted)`),this.advanceFully(o,n))))continue;let u=o.split(),d=l;for(let e=0;e<10&&u.forceReduce()&&(h&&console.log(d+this.stackID(u)+` (via force-reduce)`),!this.advanceFully(u,n));e++)h&&(d=this.stackID(u)+` -> `);for(let e of o.recoverByInsert(s))h&&console.log(l+this.stackID(e)+` (via recover-insert)`),this.advanceFully(e,n);this.stream.end>o.pos?(c==o.pos&&(c++,s=0),o.recoverByDelete(s,c),h&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),x(o,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(t){return t.close(),e.Et.build({buffer:i.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(g||=new WeakMap).get(e);return t||g.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function x(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var S=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},C=e=>e,w=class{constructor(e){this.start=e.start,this.shift=e.shift||C,this.reduce=e.reduce||C,this.reuse=e.reuse||C,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},T=class t extends e.Tt{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(` `);this.minRepeatTerm=n.length;for(let e=0;e<t.repeatNodeCount;e++)n.push(``);let r=Object.keys(t.topRules).map(e=>t.topRules[e][1]),i=[];for(let e=0;e<n.length;e++)i.push([]);function o(e,t,n){i[e].push([t,t.deserialize(String(n))])}if(t.nodeProps)for(let n of t.nodeProps){let t=n[0];typeof t==`string`&&(t=e.xt[t]);for(let e=1;e<n.length;){let r=n[e++];if(r>=0)o(r,t,n[e++]);else{let i=n[e+-r];for(let a=-r;a>0;a--)o(n[e++],t,i);e++}}}this.nodeSet=new e.St(n.map((n,a)=>e.Ct.define({name:a>=this.minRepeatTerm?void 0:n,id:a,props:i[a],top:r.indexOf(a)>-1,error:a==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(a)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=e.yt;let s=a(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(O),this.states=a(t.states,Uint32Array),this.data=a(t.stateData),this.goto=a(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(e=>typeof e==`number`?new l(s,e):e),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new b(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],a=t&1,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),a;;i+=3){if((a=n[i])==65535){if(n[i+1]==1)a=n[i=E(n,i+2)];else if(n[i+1]==2)return E(n,i+2);else break}if(a==t||a==0)return E(n,i+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);r==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E(this.data,n+2);else break}r=t(E(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E(this.data,n+2);else break}if(!(this.data[n+2]&1)){let e=this.data[n+1];t.some((t,n)=>n&1&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let n=Object.assign(Object.create(t.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw RangeError(`Invalid top rule name ${e.top}`);n.top=t}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((t,r)=>{let i=e.specializers.find(e=>e.from==t.external);if(!i)return t;let a=Object.assign(Object.assign({},t),{external:i.to});return n.specializers[r]=O(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(` `)){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;(i=this.data[n++])!=65535;)(r||=new Uint8Array(this.maxTerm+1))[i]=1;return new S(e,n,r)}static deserialize(e){return new t(e)}};function E(e,t){return e[t]|e[t+1]<<16}function D(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||e!=null&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function O(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return w}});
1
+ const e=require("./dist-DEZD35IP.cjs");var t=class e{constructor(e,t,n,r,i,a,o,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?`!`+this.score:``}`}static start(t,r,i=0){let a=t.parser.context;return new e(t,[],r,i,i,0,[],0,a?new n(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=r.dynamicPrecedence(n);if(a&&(this.score+=a),t==0){n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let o=this.stack.length-(t-1)*3-(e&262144?6:0),s=o?this.stack[o-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&s==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-s;c>=2e3&&!this.p.parser.nodeSet.types[n]?.isAnonymous&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-l;if(n<r.minRepeatTerm||e&131072){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,s,e,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&this.buffer[e-4]==0&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,t,n,r);else{let i=this.buffer.length;if(i>0&&(this.buffer[i-4]!=0||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:a}=this.p;this.pos=r;let o=a.stateFlag(i,1);!o&&(r>n||t<=a.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(t,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let t=this,n=t.buffer.length;for(n&&t.buffer[n-4]==0&&(n-=4);n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new r(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>t&1&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(e==null)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(t&393216)){if(t&65536){let n=(t>>19)-i;if(n>1){let r=t&65535,i=this.stack.length-n*3;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(e!=null)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new n(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},n=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},r=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}},i=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function a(e,t=Uint16Array){if(typeof e!=`string`)return e;let n=null;for(let r=0,i=0;r<e.length;){let a=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(t==126){a=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var o=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},s=new o,c=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk=``,this.chunkOff=0,this.chunk2=``,this.chunk2Pos=0,this.next=-1,this.token=s,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(t==null)return-1;if(n=t,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw RangeError(`Token end out of bounds`);this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk=``,this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=s,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk=``,this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n=``;for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}},l=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;f(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};l.prototype.contextual=l.prototype.fallback=l.prototype.extend=!1;var u=class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e==`string`?a(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(f(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(n||r++,i==null)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};u.prototype.contextual=l.prototype.fallback=l.prototype.extend=!1;var d=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function f(e,t,n,r,i,a){let o=0,s=1<<r,{dialect:c}=n.p.parser;scan:for(;(s&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(c.allows(n)&&(t.token.value==-1||t.token.value==n||m(n,t.token.value,i,a))){t.acceptToken(n);break}}let r=t.next,l=0,u=e[o+2];if(t.next<0&&u>l&&e[n+u*3-3]==65535){o=e[n+u*3-1];continue scan}for(;l<u;){let i=l+u>>1,a=n+i+(i<<1),s=e[a],c=e[a+1]||65536;if(r<s)u=i;else if(r>=c)l=i+1;else{o=e[a+2],t.advance();continue scan}}break}}function p(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function m(e,t,n,r){let i=p(n,r,t);return i<0||p(n,r,e)<i}var h=typeof process<`u`&&process.env&&/\bparse\b/.test(process.env.LOG),g=null;function _(t,n,r){let i=t.cursor(e.bt.IncludeAnonymous);for(i.moveTo(n);;)if(!(r<0?i.childBefore(n):i.childAfter(n)))for(;;){if((r<0?i.to<n:i.from>n)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:t.length}}var v=class{constructor(e,t){this.fragments=e,this.minRepeat=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?_(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?_(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let a=r.children[i],o=this.start[n]+r.positions[i];if(o>t)return this.nextStart=o,null;if(a instanceof e.Et){let r=o>this.lastRepeatPos&&a.type.id>=this.minRepeat;if(o==t||r){let n=o+a.length,i;if(o>=this.safeFrom&&n<=this.safeTo&&(!(i=a.prop(e.xt.lookAhead))||n+i<this.fragment.to)){if(r&&(this.lastRepeat=a,this.lastRepeatPos=o),o==t)return a}else if(o==t)return null}this.index[n]++,o+a.length>=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+a.length}}},y=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new o)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,c=0;for(let r=0;r<i.length;r++){if(!(1<<r&a))continue;let o=i[r],l=this.tokens[r];if((!n||o.fallback)&&((o.contextual||l.start!=e.pos||l.mask!=a||l.context!=s)&&(this.updateCachedToken(l,o,e),l.mask=a,l.context=s),l.lookAhead>l.end+25&&(c=Math.max(l.lookAhead,c)),l.value!=0)){let r=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!o.extend&&(n=l,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return c&&e.setLookAhead(c),!n&&e.pos==this.stream.end&&(n=new o,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new o,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){i&1?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:a}=e.p,{data:o}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(i,e?2:1);;s+=3){if(o[s]==65535){if(o[s+1]==1)s=E(o,s+2);else{r==0&&o[s+1]==2&&(r=this.putAction(E(o,s+2),t,n,r));break}}o[s]==t&&(r=this.putAction(E(o,s+1),t,n,r))}return r}},b=class{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new c(n,i),this.tokens=new y(e,this.stream),this.topTerm=e.top[1];let{from:a}=i[0];this.stacks=[t.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>e.bufferLength*4?new v(r,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>t)n.push(o);else if(this.advanceStack(o,n,e))continue;else{r||(r=[],i=[]),r.push(o);let e=this.tokens.getMainToken(o);i.push(e.value,e.end)}break}}if(!n.length){let e=r&&D(r);if(e)return h&&console.log(`Finish with `+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw h&&r&&console.log(`Stuck with token `+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):`none`)),SyntaxError(`No parse at `+t);this.recovering||=5}if(this.recovering&&r){let e=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return h&&console.log(`Force-finish `+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=this.recovering==1?1:this.recovering*3;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}else if(n.length>1){outer:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue outer}}}}n.length>12&&(n.sort((e,t)=>t.score-e.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}tryReuse(t,n,r,i){if(!r)return null;let a=t.curContext&&t.curContext.tracker.strict,o=a?t.curContext.hash:0;for(;r;){let s=this.parser.nodeSet.types[r.type.id]==r.type?this.parser.getGoto(t.state,r.type.id):-1;if(s>-1&&r.length&&(!a||(r.prop(e.xt.contextHash)||0)==o))return t.useNode(r,s,n),r;if(r.children.length==0||r.positions[0]>0)break;let c=r.children[0];if(c instanceof e.Et&&(!i||c.type.id>=this.parser.minRepeatTerm))r=c;else break}return null}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,a=h?this.stackID(e)+` -> `:``;if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(t)return h&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(t.type.id)})`),!0}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),h&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;o<s.length;){let c=s[o++],l=s[o++],u=s[o++],d=o==s.length||!n,f=d?e:e.split(),p=this.tokens.mainToken;if(f.apply(c,l,p?p.start:f.pos,u),h&&console.log(a+this.stackID(f)+` (via ${c&65536?`reduce of ${i.getName(c&65535)}`:`shift`} for ${i.getName(l)} @ ${r}${f==e?``:`, split`})`),d)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return x(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=t[a<<1],c=t[(a<<1)+1],l=h?this.stackID(o)+` -> `:``;if(o.deadEnd&&(i||(i=!0,o.restart(),h&&console.log(l+this.stackID(o)+` (restarted)`),this.advanceFully(o,n))))continue;let u=o.split(),d=l;for(let e=0;e<10&&u.forceReduce()&&(h&&console.log(d+this.stackID(u)+` (via force-reduce)`),!this.advanceFully(u,n));e++)h&&(d=this.stackID(u)+` -> `);for(let e of o.recoverByInsert(s))h&&console.log(l+this.stackID(e)+` (via recover-insert)`),this.advanceFully(e,n);this.stream.end>o.pos?(c==o.pos&&(c++,s=0),o.recoverByDelete(s,c),h&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),x(o,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(t){return t.close(),e.Et.build({buffer:i.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(g||=new WeakMap).get(e);return t||g.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function x(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var S=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},C=e=>e,w=class{constructor(e){this.start=e.start,this.shift=e.shift||C,this.reduce=e.reduce||C,this.reuse=e.reuse||C,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},T=class t extends e.Tt{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(` `);this.minRepeatTerm=n.length;for(let e=0;e<t.repeatNodeCount;e++)n.push(``);let r=Object.keys(t.topRules).map(e=>t.topRules[e][1]),i=[];for(let e=0;e<n.length;e++)i.push([]);function o(e,t,n){i[e].push([t,t.deserialize(String(n))])}if(t.nodeProps)for(let n of t.nodeProps){let t=n[0];typeof t==`string`&&(t=e.xt[t]);for(let e=1;e<n.length;){let r=n[e++];if(r>=0)o(r,t,n[e++]);else{let i=n[e+-r];for(let a=-r;a>0;a--)o(n[e++],t,i);e++}}}this.nodeSet=new e.St(n.map((n,a)=>e.Ct.define({name:a>=this.minRepeatTerm?void 0:n,id:a,props:i[a],top:r.indexOf(a)>-1,error:a==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(a)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=e.yt;let s=a(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(O),this.states=a(t.states,Uint32Array),this.data=a(t.stateData),this.goto=a(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(e=>typeof e==`number`?new l(s,e):e),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new b(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],a=t&1,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),a;;i+=3){if((a=n[i])==65535){if(n[i+1]==1)a=n[i=E(n,i+2)];else if(n[i+1]==2)return E(n,i+2);else break}if(a==t||a==0)return E(n,i+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);r==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E(this.data,n+2);else break}r=t(E(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=E(this.data,n+2);else break}if(!(this.data[n+2]&1)){let e=this.data[n+1];t.some((t,n)=>n&1&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let n=Object.assign(Object.create(t.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let t=this.topRules[e.top];if(!t)throw RangeError(`Invalid top rule name ${e.top}`);n.top=t}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((t,r)=>{let i=e.specializers.find(e=>e.from==t.external);if(!i)return t;let a=Object.assign(Object.assign({},t),{external:i.to});return n.specializers[r]=O(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(` `)){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;(i=this.data[n++])!=65535;)(r||=new Uint8Array(this.maxTerm+1))[i]=1;return new S(e,n,r)}static deserialize(e){return new t(e)}};function E(e,t){return e[t]|e[t+1]<<16}function D(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||e!=null&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function O(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return w}});