@band-app/server 0.26.0 → 0.26.1

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 (156) hide show
  1. package/dist/client/assets/{DockviewBrowserContainer-BiS2PXe9.js → DockviewBrowserContainer-CNieygqn.js} +2 -2
  2. package/dist/client/assets/DockviewTerminalContainer-rpSQamnG.js +2 -0
  3. package/dist/client/assets/{TerminalPanel-CcBKJ24l.js → TerminalPanel-BSSgNpJl.js} +1 -1
  4. package/dist/client/assets/{_basePickBy-CIajkJdO.js → _basePickBy-D4sc4sgx.js} +1 -1
  5. package/dist/client/assets/{_baseUniq-DHw48s_G.js → _baseUniq-CExXcLYT.js} +1 -1
  6. package/dist/client/assets/{arc-DexZNm0-.js → arc-BP7O8Ofj.js} +1 -1
  7. package/dist/client/assets/{architectureDiagram-VXUJARFQ-DAFvsZAd.js → architectureDiagram-VXUJARFQ-CLeIf9de.js} +1 -1
  8. package/dist/client/assets/{blockDiagram-VD42YOAC-AWnBKy9Q.js → blockDiagram-VD42YOAC-GF1d7qvY.js} +1 -1
  9. package/dist/client/assets/{c4Diagram-YG6GDRKO-BddbyIic.js → c4Diagram-YG6GDRKO-CPOD-mTp.js} +1 -1
  10. package/dist/client/assets/channel-BAHGob6X.js +1 -0
  11. package/dist/client/assets/{chunk-4BX2VUAB-DnMh7Pc9.js → chunk-4BX2VUAB-lgknUVTn.js} +1 -1
  12. package/dist/client/assets/{chunk-55IACEB6-24SitHr9.js → chunk-55IACEB6-BZZgpdJp.js} +1 -1
  13. package/dist/client/assets/{chunk-B4BG7PRW-BOb93Gpn.js → chunk-B4BG7PRW-D5j_7n78.js} +1 -1
  14. package/dist/client/assets/{chunk-DI55MBZ5-oSbpJBti.js → chunk-DI55MBZ5-CNWAKrv-.js} +1 -1
  15. package/dist/client/assets/{chunk-FMBD7UC4-Dqfg6wVO.js → chunk-FMBD7UC4-C4ZfwGxd.js} +1 -1
  16. package/dist/client/assets/{chunk-QN33PNHL-C2cIUL6l.js → chunk-QN33PNHL-B-1Abtg1.js} +1 -1
  17. package/dist/client/assets/{chunk-QZHKN3VN-Ox_MiYok.js → chunk-QZHKN3VN-BpzKtAWD.js} +1 -1
  18. package/dist/client/assets/{chunk-TZMSLE5B-CGaUt5wn.js → chunk-TZMSLE5B-SXcvrXdW.js} +1 -1
  19. package/dist/client/assets/classDiagram-2ON5EDUG-_5AM6YM0.js +1 -0
  20. package/dist/client/assets/classDiagram-v2-WZHVMYZB-_5AM6YM0.js +1 -0
  21. package/dist/client/assets/clone-C12DbMN-.js +1 -0
  22. package/dist/client/assets/{cose-bilkent-S5V4N54A-D_3-w0MJ.js → cose-bilkent-S5V4N54A-Bct5sd16.js} +1 -1
  23. package/dist/client/assets/{dagre-6UL2VRFP-DTrojOKw.js → dagre-6UL2VRFP-DLF3mura.js} +1 -1
  24. package/dist/client/assets/{diagram-PSM6KHXK-D3nSuJ59.js → diagram-PSM6KHXK-ChWVmXI7.js} +1 -1
  25. package/dist/client/assets/{diagram-QEK2KX5R-h0Gm6yRs.js → diagram-QEK2KX5R-DhzUuHM4.js} +1 -1
  26. package/dist/client/assets/{diagram-S2PKOQOG-DIOqbA5d.js → diagram-S2PKOQOG-D1i0mdIg.js} +1 -1
  27. package/dist/client/assets/{erDiagram-Q2GNP2WA-BGWtWskF.js → erDiagram-Q2GNP2WA-BRj386XH.js} +1 -1
  28. package/dist/client/assets/{flowDiagram-NV44I4VS-BHqUj91h.js → flowDiagram-NV44I4VS-DStEWZIF.js} +1 -1
  29. package/dist/client/assets/{ganttDiagram-JELNMOA3-CCA7lEel.js → ganttDiagram-JELNMOA3-B9PBn8dz.js} +1 -1
  30. package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-CXisBbMV.js → gitGraphDiagram-V2S2FVAM-laJAIbJ3.js} +1 -1
  31. package/dist/client/assets/{graph-C8GKZaWf.js → graph-CbQhcBO1.js} +1 -1
  32. package/dist/client/assets/{highlighted-body-B3W2YXNL-Ckz9HnyE.js → highlighted-body-B3W2YXNL-DBxcPCX_.js} +1 -1
  33. package/dist/client/assets/{index-BROqtYkO.js → index-86TW9gUX.js} +1 -1
  34. package/dist/client/assets/{index-D0m_DHVt.js → index-9XCTqmje.js} +1 -1
  35. package/dist/client/assets/{index-UViDhopU.js → index-BqMDNoZp.js} +1 -1
  36. package/dist/client/assets/{index-rwBKhhdF.js → index-BzwcSYCa.js} +1 -1
  37. package/dist/client/assets/{index-D2Sje321.js → index-C5U256M6.js} +1 -1
  38. package/dist/client/assets/{index-CNSO_MYp.js → index-CK16S7B-.js} +1 -1
  39. package/dist/client/assets/{index-D5Pn_WYc.js → index-CLa-0ZwC.js} +1 -1
  40. package/dist/client/assets/{index-BasWn2BQ.js → index-CWLwMHnR.js} +1 -1
  41. package/dist/client/assets/{index-C22P_3Ba.js → index-Cd26dS4P.js} +1 -1
  42. package/dist/client/assets/{index-CmpISwt5.js → index-Cd5F9rkU.js} +1 -1
  43. package/dist/client/assets/{index-CyfIec3L.js → index-CfO5yuew.js} +1 -1
  44. package/dist/client/assets/{index-CN7sJN1E.js → index-Ct5D5rHM.js} +1 -1
  45. package/dist/client/assets/{index-1qpYuqGB.js → index-CyO2GJFA.js} +1 -1
  46. package/dist/client/assets/{index-TsR4AJCf.js → index-D7C86bYw.js} +1 -1
  47. package/dist/client/assets/{index-DfZlU-44.js → index-DGvFFhe0.js} +1 -1
  48. package/dist/client/assets/{index-DPLAjlSm.js → index-Dev2D0I9.js} +1 -1
  49. package/dist/client/assets/{index-s1AHxiWE.js → index-DsEib-PT.js} +1 -1
  50. package/dist/client/assets/{index-B7L6_ylA.js → index-cRf4PoQf.js} +1 -1
  51. package/dist/client/assets/{infoDiagram-HS3SLOUP-CbFZ5guu.js → infoDiagram-HS3SLOUP-0QLwbPV-.js} +1 -1
  52. package/dist/client/assets/{journeyDiagram-XKPGCS4Q-DgIR2fwH.js → journeyDiagram-XKPGCS4Q-xGdny9DO.js} +1 -1
  53. package/dist/client/assets/{kanban-definition-3W4ZIXB7-BvaiOaK8.js → kanban-definition-3W4ZIXB7-Don0Okra.js} +1 -1
  54. package/dist/client/assets/{layout-BHFL_-2i.js → layout-WN5NQdX3.js} +1 -1
  55. package/dist/client/assets/{main-Dtbkl2jA.js → main-Bbh731ex.js} +47 -47
  56. package/dist/client/assets/{mindmap-definition-VGOIOE7T-BXmDj_SN.js → mindmap-definition-VGOIOE7T-CWF6i4Zi.js} +1 -1
  57. package/dist/client/assets/{pieDiagram-ADFJNKIX-DWBhs-q-.js → pieDiagram-ADFJNKIX-CXk9oMu_.js} +1 -1
  58. package/dist/client/assets/{quadrantDiagram-AYHSOK5B-BLczU7TW.js → quadrantDiagram-AYHSOK5B-D2s0zA4_.js} +1 -1
  59. package/dist/client/assets/{requirementDiagram-UZGBJVZJ-lm071pmC.js → requirementDiagram-UZGBJVZJ-B5g3eZDa.js} +1 -1
  60. package/dist/client/assets/{sankeyDiagram-TZEHDZUN-CWgkQuq0.js → sankeyDiagram-TZEHDZUN-BKYy9nLE.js} +1 -1
  61. package/dist/client/assets/{sequenceDiagram-WL72ISMW-DR0quDCJ.js → sequenceDiagram-WL72ISMW-Of-7JsaP.js} +1 -1
  62. package/dist/client/assets/{square-terminal-ByCNqakb.js → square-terminal-wqR_rG8g.js} +1 -1
  63. package/dist/client/assets/{stateDiagram-FKZM4ZOC-CWjWCPZ4.js → stateDiagram-FKZM4ZOC-CLygxzeu.js} +1 -1
  64. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-D3J4rLvX.js +1 -0
  65. package/dist/client/assets/{timeline-definition-IT6M3QCI-BMaR6Nuo.js → timeline-definition-IT6M3QCI-HEdTZ9lg.js} +1 -1
  66. package/dist/client/assets/{treemap-GDKQZRPO-CbRLz23z.js → treemap-GDKQZRPO-BLCSYUuQ.js} +1 -1
  67. package/dist/client/assets/{workspace._workspaceId-Dg3ERq5R.js → workspace._workspaceId-9mP5lL7t.js} +2 -2
  68. package/dist/client/assets/{workspace._workspaceId-4ah7xBuS.js → workspace._workspaceId-CvIXlcVP.js} +1 -1
  69. package/dist/client/assets/{xychartDiagram-PRI3JC2R-DNMYDMAj.js → xychartDiagram-PRI3JC2R-Da4m2pn4.js} +1 -1
  70. package/dist/server/assets/{DockviewBrowserContainer-BuItINME.js → DockviewBrowserContainer-BxukCnRj.js} +14 -9
  71. package/dist/server/assets/{DockviewTerminalContainer-TX2ecJ9k.js → DockviewTerminalContainer-DQYYK-79.js} +16 -11
  72. package/dist/server/assets/{TerminalPanel-CvEpdUzO.js → TerminalPanel-TU2tfPvh.js} +1 -1
  73. package/dist/server/assets/{_basePickBy-7qoOGcXD.js → _basePickBy-BSdtfHB0.js} +2 -2
  74. package/dist/server/assets/{_baseUniq-Cm0aWwLl.js → _baseUniq-DkSqb3YR.js} +1 -1
  75. package/dist/server/assets/{_tanstack-start-manifest_v-DuTbaj5T.js → _tanstack-start-manifest_v-CjnZwsJN.js} +1 -1
  76. package/dist/server/assets/{arc-DH5jD29O.js → arc-DxGkupwT.js} +1 -1
  77. package/dist/server/assets/{architecture-7HQA4BMR-BQSW1CNO.js → architecture-7HQA4BMR-N3irVT54.js} +6 -6
  78. package/dist/server/assets/{architectureDiagram-VXUJARFQ-DgTZkqMC.js → architectureDiagram-VXUJARFQ-B0sHbG9y.js} +6 -6
  79. package/dist/server/assets/{blockDiagram-VD42YOAC-CHY_BpPT.js → blockDiagram-VD42YOAC-1FtDdqBo.js} +6 -6
  80. package/dist/server/assets/{c4Diagram-YG6GDRKO-Buvaq10G.js → c4Diagram-YG6GDRKO-Bw9IfZMM.js} +2 -2
  81. package/dist/server/assets/{channel-CSV_0Wq9.js → channel-D4IKgr-x.js} +1 -1
  82. package/dist/server/assets/{chunk-4BX2VUAB-B4TPMkRz.js → chunk-4BX2VUAB-ByMuI7Fp.js} +1 -1
  83. package/dist/server/assets/{chunk-55IACEB6-CTFAFIsE.js → chunk-55IACEB6-BAdInBZF.js} +1 -1
  84. package/dist/server/assets/{chunk-B4BG7PRW-CR8829ZP.js → chunk-B4BG7PRW-C8vV9ouR.js} +4 -4
  85. package/dist/server/assets/{chunk-DI55MBZ5-DetqjIc9.js → chunk-DI55MBZ5-BnPjxwDt.js} +3 -3
  86. package/dist/server/assets/{chunk-FMBD7UC4-D6DpqSQ8.js → chunk-FMBD7UC4-DxER1-MJ.js} +1 -1
  87. package/dist/server/assets/{chunk-QN33PNHL-U9pD23ft.js → chunk-QN33PNHL-DzFGKjvS.js} +1 -1
  88. package/dist/server/assets/{chunk-QZHKN3VN-BK2E8m4j.js → chunk-QZHKN3VN-DKIreZRT.js} +1 -1
  89. package/dist/server/assets/{chunk-TZMSLE5B-DRLbWC_A.js → chunk-TZMSLE5B-Dyw_E6V-.js} +1 -1
  90. package/dist/server/assets/{classDiagram-v2-WZHVMYZB-BNcG92nY.js → classDiagram-2ON5EDUG-Bu-X2Gbw.js} +5 -5
  91. package/dist/server/assets/{classDiagram-2ON5EDUG-BNcG92nY.js → classDiagram-v2-WZHVMYZB-Bu-X2Gbw.js} +5 -5
  92. package/dist/server/assets/{clone-CHpwEW-O.js → clone-CwBTz6wc.js} +1 -1
  93. package/dist/server/assets/{cose-bilkent-S5V4N54A-700evsrQ.js → cose-bilkent-S5V4N54A-BsFFjtud.js} +1 -1
  94. package/dist/server/assets/{dagre-6UL2VRFP-B8Qw2znf.js → dagre-6UL2VRFP-CdgGxkBj.js} +6 -6
  95. package/dist/server/assets/{diagram-PSM6KHXK-C6EJCqfL.js → diagram-PSM6KHXK-C-LWq-ju.js} +7 -7
  96. package/dist/server/assets/{diagram-QEK2KX5R-CQAcI4L4.js → diagram-QEK2KX5R-CFa3sLiJ.js} +6 -6
  97. package/dist/server/assets/{diagram-S2PKOQOG-DsDqxdmS.js → diagram-S2PKOQOG-CyAHBi5H.js} +6 -6
  98. package/dist/server/assets/{erDiagram-Q2GNP2WA-DGEMY_JO.js → erDiagram-Q2GNP2WA-COrhvUZD.js} +4 -4
  99. package/dist/server/assets/{flowDiagram-NV44I4VS-DCV18CNa.js → flowDiagram-NV44I4VS-DxR9v2a8.js} +5 -5
  100. package/dist/server/assets/{ganttDiagram-JELNMOA3-Cf9uIRTp.js → ganttDiagram-JELNMOA3-COoz3lCc.js} +1 -1
  101. package/dist/server/assets/{gitGraph-G5XIXVHT-Bphh3EfC.js → gitGraph-G5XIXVHT-BtVXZr1d.js} +6 -6
  102. package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-_q2n-s2e.js → gitGraphDiagram-V2S2FVAM-DrH_1hhd.js} +7 -7
  103. package/dist/server/assets/{graph-Ccd2dFz0.js → graph-BqKB55Uo.js} +2 -2
  104. package/dist/server/assets/{highlighted-body-B3W2YXNL-DYwYCtBU.js → highlighted-body-B3W2YXNL-C6VVTevi.js} +1 -1
  105. package/dist/server/assets/{index-CXEg-eDA.js → index-BHRz1U1c.js} +2 -2
  106. package/dist/server/assets/{index-CD62n4Wy.js → index-BUnwtpbx.js} +3 -3
  107. package/dist/server/assets/{index-C06ZyGGj.js → index-Bkx5Foei.js} +4 -4
  108. package/dist/server/assets/{index-BCTaINbC.js → index-BvmYCz2n.js} +2 -2
  109. package/dist/server/assets/{index-DGyXXlV8.js → index-CQ12PKsH.js} +2 -2
  110. package/dist/server/assets/{index-B1VfjVjc.js → index-Cdu8cpPJ.js} +2 -2
  111. package/dist/server/assets/{index-CprdJ8Lo.js → index-ChJXmItC.js} +2 -2
  112. package/dist/server/assets/{index-BhpCZORq.js → index-CkbMi8ML.js} +2 -2
  113. package/dist/server/assets/{index-rF-uGnt9.js → index-DAqzmsPy.js} +1 -1
  114. package/dist/server/assets/{index-tV4Tdk7z.js → index-DIZ-5H2r.js} +3 -3
  115. package/dist/server/assets/{index-DXSqtFcT.js → index-DLOoQUcR.js} +2 -2
  116. package/dist/server/assets/{index-B1aJ0zMt.js → index-DeNkOFC0.js} +5 -5
  117. package/dist/server/assets/{index-e4ZKMFB1.js → index-DgpTNIz9.js} +2 -2
  118. package/dist/server/assets/{index-BCLSgPI1.js → index-Dnp4nLLc.js} +2 -2
  119. package/dist/server/assets/{index-DHt4VQNS.js → index-FVQ1p-ZQ.js} +5 -5
  120. package/dist/server/assets/{index-4y021XhL.js → index-IxUUG90S.js} +1 -1
  121. package/dist/server/assets/{index-WOVU_Ptt.js → index-fzh31gPI.js} +2 -2
  122. package/dist/server/assets/{index-dJOmGf_o.js → index-nrGOopfX.js} +2 -2
  123. package/dist/server/assets/{info-VBDWY6EO-CtEo3hWH.js → info-VBDWY6EO-C1EJd9ah.js} +6 -6
  124. package/dist/server/assets/{infoDiagram-HS3SLOUP-DlVfYs3y.js → infoDiagram-HS3SLOUP-BgR_JFRD.js} +5 -5
  125. package/dist/server/assets/{journeyDiagram-XKPGCS4Q-DEvLjN67.js → journeyDiagram-XKPGCS4Q-TInLDEBY.js} +4 -4
  126. package/dist/server/assets/{kanban-definition-3W4ZIXB7-C8wt29HD.js → kanban-definition-3W4ZIXB7-Ds9-Rky6.js} +2 -2
  127. package/dist/server/assets/{layout-B3YZdVGY.js → layout-02chZ-oO.js} +4 -4
  128. package/dist/server/assets/{mermaid-3ZIDBTTL-Drwee8F2.js → mermaid-3ZIDBTTL-CF0njLRi.js} +1 -1
  129. package/dist/server/assets/{mermaid-parser.core-BArH7IDC.js → mermaid-parser.core-DGyqTX8L.js} +11 -11
  130. package/dist/server/assets/{mindmap-definition-VGOIOE7T-CLGmFN8m.js → mindmap-definition-VGOIOE7T-B2VHBojz.js} +3 -3
  131. package/dist/server/assets/{packet-DYOGHKS2-BuBX0bTH.js → packet-DYOGHKS2-BPQQ4vpy.js} +6 -6
  132. package/dist/server/assets/{pie-VRWISCQL-CaZ9Z0V-.js → pie-VRWISCQL-D_ISlmZV.js} +6 -6
  133. package/dist/server/assets/{pieDiagram-ADFJNKIX-jGuNgZxo.js → pieDiagram-ADFJNKIX-DfLOLRYh.js} +7 -7
  134. package/dist/server/assets/{quadrantDiagram-AYHSOK5B-DAAEbR4l.js → quadrantDiagram-AYHSOK5B-C-S0tUnS.js} +1 -1
  135. package/dist/server/assets/{radar-ZZBFDIW7-D80s-gzM.js → radar-ZZBFDIW7-Btz0_zMX.js} +6 -6
  136. package/dist/server/assets/{requirementDiagram-UZGBJVZJ-DmT06vgs.js → requirementDiagram-UZGBJVZJ-CX-LPkZO.js} +3 -3
  137. package/dist/server/assets/{router-PslJYw0K.js → router-6QHcrvmQ.js} +81 -65
  138. package/dist/server/assets/{sankeyDiagram-TZEHDZUN-DubOMd7c.js → sankeyDiagram-TZEHDZUN-C3bzmTeJ.js} +1 -1
  139. package/dist/server/assets/{sequenceDiagram-WL72ISMW-V8TCpuJa.js → sequenceDiagram-WL72ISMW-BlZBlq8N.js} +3 -3
  140. package/dist/server/assets/{square-terminal-DqxGkh8h.js → square-terminal-1wS601vv.js} +1 -1
  141. package/dist/server/assets/{stateDiagram-FKZM4ZOC-DDhvvfjL.js → stateDiagram-FKZM4ZOC-BIRMcaiS.js} +8 -8
  142. package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-CrVhacjl.js → stateDiagram-v2-4FDKWEC3-D2NYWxQw.js} +4 -4
  143. package/dist/server/assets/{timeline-definition-IT6M3QCI-PRx7QaX4.js → timeline-definition-IT6M3QCI-BiY_XUAp.js} +2 -2
  144. package/dist/server/assets/{treemap-GDKQZRPO-DDEerlZp.js → treemap-GDKQZRPO-CYGEAd8a.js} +6 -6
  145. package/dist/server/assets/{workspace._workspaceId-B_ziNHiq.js → workspace._workspaceId-CHMs1pW4.js} +1 -1
  146. package/dist/server/assets/{workspace._workspaceId-CO8mKKZW.js → workspace._workspaceId-MLWQzLSj.js} +3 -3
  147. package/dist/server/assets/{xychartDiagram-PRI3JC2R-Cdaq77X5.js → xychartDiagram-PRI3JC2R-Cv8buTCr.js} +1 -1
  148. package/dist/server/server.js +2 -2
  149. package/dist/start-server.mjs +41 -9
  150. package/package.json +4 -4
  151. package/dist/client/assets/DockviewTerminalContainer-BFBZVril.js +0 -2
  152. package/dist/client/assets/channel-BSRbBCzT.js +0 -1
  153. package/dist/client/assets/classDiagram-2ON5EDUG-ntGI3hWd.js +0 -1
  154. package/dist/client/assets/classDiagram-v2-WZHVMYZB-ntGI3hWd.js +0 -1
  155. package/dist/client/assets/clone-Q7bdnWu2.js +0 -1
  156. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-CPppMgt3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{dX as Oh,dY as xh,dl as bd,dH as Dh,dq as Mh,dm as je,bz as Fh,bA as bl,dx as Gh,dA as _d,dB as Id,dy as Uh,dM as _l,bC as Yn,bD as ae,dn as qh,dh as jh,dZ as zh,_ as En}from"./main-Dtbkl2jA.js";import{k as qr,j as tl,g as Hr,S as Bh,w as Wh,x as Vh,c as Pd,v as $e,y as $d,l as Kh,z as Hh,A as Yh,B as Xh,C as Jh,a as Ld,d as q,i as tn,r as Je,f as ht,D as Fe}from"./_baseUniq-DHw48s_G.js";import{j as nl,m as M,d as Qh,f as yt,g as jr,h as z,i as rl,l as jn,e as Zh}from"./_basePickBy-CIajkJdO.js";import{c as Be}from"./clone-Q7bdnWu2.js";var ep=Object.prototype,tp=ep.hasOwnProperty,ft=Oh(function(t,e){if(xh(e)||bd(e)){Dh(e,qr(e),t);return}for(var n in e)tp.call(e,n)&&Mh(t,n,e[n])});function Od(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function ns(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}function np(t,e,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function rp(t,e,n,r){return tl(t,function(i,s,a){e(r,i,n(i),a)}),r}function ip(t,e){return function(n,r){var i=je(n)?np:rp,s=e?e():{};return i(n,t,Hr(r),s)}}var sp=200;function ap(t,e,n,r){var i=-1,s=Wh,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;e.length>=sp&&(s=Vh,a=!1,e=new Bh(e));e:for(;++i<o;){var u=t[i],f=u;if(u=u!==0?u:0,a&&f===f){for(var m=l;m--;)if(e[m]===f)continue e;c.push(u)}else s(e,f,r)||c.push(u)}return c}var _a=Fh(function(t,e){return bl(t)?ap(t,Pd(e,1,bl,!0)):[]});function Ge(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:nl(e),Od(t,e<0?0:e,r)):[]}function zi(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:nl(e),e=r-e,Od(t,0,e<0?0:e)):[]}function op(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function cp(t,e){var n=!0;return tl(t,function(r,i,s){return n=!!e(r,i,s),n}),n}function kt(t,e,n){var r=je(t)?op:cp;return r(t,Hr(e))}function wt(t){return t&&t.length?t[0]:void 0}function dt(t,e){return Pd(M(t,e))}var lp=Object.prototype,up=lp.hasOwnProperty,dp=ip(function(t,e,n){up.call(t,n)?t[n].push(e):Gh(t,n,[e])}),fp="[object String]";function nt(t){return typeof t=="string"||!je(t)&&_d(t)&&Id(t)==fp}var hp=Math.max;function et(t,e,n,r){t=bd(t)?t:$e(t),n=n?nl(n):0;var i=t.length;return n<0&&(n=hp(i+n,0)),nt(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&$d(t,e,n)>-1}function Il(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return $d(t,e,i)}var pp="[object RegExp]";function mp(t){return _d(t)&&Id(t)==pp}var Pl=_l&&_l.isRegExp,nn=Pl?Uh(Pl):mp,gp="Expected a function";function yp(t){if(typeof t!="function")throw new TypeError(gp);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Nt(t,e){if(t==null)return{};var n=Kh(Hh(t),function(r){return[r]});return e=Hr(e),Qh(t,n,function(r,i){return e(r,i[0])})}function Ia(t,e){var n=je(t)?Yh:Xh;return n(t,yp(Hr(e)))}function Tp(t,e){var n;return tl(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function xd(t,e,n){var r=je(t)?Jh:Tp;return r(t,Hr(e))}function il(t){return t&&t.length?Ld(t):[]}function Rp(t,e){return t&&t.length?Ld(t,Hr(e)):[]}function We(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function St(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function un(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function vp(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function fi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}class Dd{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const n=this.types[e.container.$type];if(!n)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=n.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const n=this.types[e];return n||{name:e,properties:{},superTypes:[]}}isInstance(e,n){return We(e)&&this.isSubtype(e.$type,n)}isSubtype(e,n){if(e===n)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[n];if(i!==void 0)return i;{const s=this.types[e],a=s?s.superTypes.some(o=>this.isSubtype(o,n)):!1;return r[n]=a,a}}getAllSubTypes(e){const n=this.allSubtypes[e];if(n)return n;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Bi(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Md(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function Fd(t){return Bi(t)&&typeof t.fullText=="string"}class Ue{constructor(e,n){this.startFn=e,this.nextFn=n}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let n=0,r=e.next();for(;!r.done;)n++,r=e.next();return n}toArray(){const e=[],n=this.iterator();let r;do r=n.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,n){const r=this.map(i=>[e?e(i):i,n?n(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new Ue(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),n=>{let r;if(!n.firstDone){do if(r=this.nextFn(n.first),!r.done)return r;while(!r.done);n.firstDone=!0}do if(r=n.iterator.next(),!r.done)return r;while(!r.done);return lt})}join(e=","){const n=this.iterator();let r="",i,s=!1;do i=n.next(),i.done||(s&&(r+=e),r+=Ep(i.value)),s=!0;while(!i.done);return r}indexOf(e,n=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=n&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(!e(r.value))return!1;r=n.next()}return!0}some(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return!0;r=n.next()}return!1}forEach(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;)e(i.value,r),i=n.next(),r++}map(e){return new Ue(this.startFn,n=>{const{done:r,value:i}=this.nextFn(n);return r?lt:{done:!1,value:e(i)}})}filter(e){return new Ue(this.startFn,n=>{let r;do if(r=this.nextFn(n),!r.done&&e(r.value))return r;while(!r.done);return lt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,n){const r=this.iterator();let i=n,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,n){return this.recursiveReduce(this.iterator(),e,n)}recursiveReduce(e,n,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,n,r);return s===void 0?i.value:n(s,i.value)}find(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}}findIndex(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(e(i.value))return r;i=n.next(),r++}return-1}includes(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(r.value===e)return!0;r=n.next()}return!1}flatMap(e){return new Ue(()=>({this:this.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(n.this);if(!r){const s=e(i);if(aa(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(n.iterator);return lt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const n=e>1?this.flat(e-1):this;return new Ue(()=>({this:n.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=n.nextFn(r.this);if(!i)if(aa(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return lt})}head(){const n=this.iterator().next();if(!n.done)return n.value}tail(e=1){return new Ue(()=>{const n=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(n).done)return n;return n},this.nextFn)}limit(e){return new Ue(()=>({size:0,state:this.startFn()}),n=>(n.size++,n.size>e?lt:this.nextFn(n.state)))}distinct(e){return new Ue(()=>({set:new Set,internalState:this.startFn()}),n=>{let r;do if(r=this.nextFn(n.internalState),!r.done){const i=e?e(r.value):r.value;if(!n.set.has(i))return n.set.add(i),r}while(!r.done);return lt})}exclude(e,n){const r=new Set;for(const i of e){const s=n?n(i):i;r.add(s)}return this.filter(i=>{const s=n?n(i):i;return!r.has(s)})}}function Ep(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function aa(t){return!!t&&typeof t[Symbol.iterator]=="function"}const Gd=new Ue(()=>{},()=>lt),lt=Object.freeze({done:!0,value:void 0});function me(...t){if(t.length===1){const e=t[0];if(e instanceof Ue)return e;if(aa(e))return new Ue(()=>e[Symbol.iterator](),n=>n.next());if(typeof e.length=="number")return new Ue(()=>({index:0}),n=>n.index<e.length?{done:!1,value:e[n.index++]}:lt)}return t.length>1?new Ue(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const n=e.iterator.next();if(!n.done)return n;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const n=t[e.collIndex++];aa(n)?e.iterator=n[Symbol.iterator]():n&&typeof n.length=="number"&&(e.array=n)}}while(e.iterator||e.array||e.collIndex<t.length);return lt}):Gd}class sl extends Ue{constructor(e,n,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[n(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(n(a.value)[Symbol.iterator]()),a}return lt})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var To;(function(t){function e(s){return s.reduce((a,o)=>a+o,0)}t.sum=e;function n(s){return s.reduce((a,o)=>a*o,0)}t.product=n;function r(s){return s.reduce((a,o)=>Math.min(a,o))}t.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}t.max=i})(To||(To={}));function Ro(t,e={}){for(const[n,r]of Object.entries(t))n.startsWith("$")||(Array.isArray(r)?r.forEach((i,s)=>{We(i)&&(i.$container=t,i.$containerProperty=n,i.$containerIndex=s,e.deep&&Ro(i,e))}):We(r)&&(r.$container=t,r.$containerProperty=n,e.deep&&Ro(r,e)))}function Pa(t,e){let n=t;for(;n;){if(e(n))return n;n=n.$container}}function Qt(t){const n=Ws(t).$document;if(!n)throw new Error("AST node has no document.");return n}function Ws(t){for(;t.$container;)t=t.$container;return t}function $l(t){return St(t)?t.ref?[t.ref]:[]:un(t)?t.items.map(e=>e.ref):[]}function al(t,e){if(!t)throw new Error("Node must be an AstNode.");const n=e?.range;return new Ue(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=t[i];if(We(s)){if(r.keyIndex++,Ll(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=r.arrayIndex++,o=s[a];if(We(o)&&Ll(o,n))return{done:!1,value:o}}r.arrayIndex=0}}r.keyIndex++}return lt})}function rs(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new sl(t,n=>al(n,e))}function Zt(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new sl(t,n=>al(n,e),{includeRoot:!0})}function Ll(t,e){if(!e)return!0;const n=t.$cstNode?.range;return n?Bp(n,e):!1}function oa(t){return new Ue(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const n=e.keys[e.keyIndex];if(!n.startsWith("$")){const r=t[n];if(St(r)||un(r))return e.keyIndex++,{done:!1,value:{reference:r,container:t,property:n}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(St(s)||un(r))return{done:!1,value:{reference:s,container:t,property:n,index:i}}}e.arrayIndex=0}}e.keyIndex++}return lt})}function Ap(t,e){const n=t.getTypeMetaData(e.$type),r=e;for(const i of Object.values(n.properties))i.defaultValue!==void 0&&r[i.name]===void 0&&(r[i.name]=Ud(i.defaultValue))}function Ud(t){return Array.isArray(t)?[...t.map(Ud)]:t}const ct={$type:"AbstractElement",cardinality:"cardinality"};function Sp(t){return ee.isInstance(t,ct.$type)}const Vs={$type:"AbstractParserRule"};function is(t){return ee.isInstance(t,Vs.$type)}const Is={$type:"AbstractRule"},Et={$type:"AbstractType"},On={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function $a(t){return ee.isInstance(t,On.$type)}const Ks={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function qd(t){return ee.isInstance(t,Ks.$type)}const Ol={$type:"ArrayLiteral",elements:"elements"},xl={$type:"ArrayType",elementType:"elementType"},xn={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function zn(t){return ee.isInstance(t,xn.$type)}const vo={$type:"BooleanLiteral",true:"true"};function kp(t){return ee.isInstance(t,vo.$type)}const Dn={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Cp(t){return ee.isInstance(t,Dn.$type)}const nr={$type:"Condition"},Hs={$type:"Conjunction",left:"left",right:"right"};function wp(t){return ee.isInstance(t,Hs.$type)}const Mn={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function La(t){return ee.isInstance(t,Mn.$type)}const Ys={$type:"Disjunction",left:"left",right:"right"};function Np(t){return ee.isInstance(t,Ys.$type)}const Eo={$type:"EndOfFile",cardinality:"cardinality"};function bp(t){return ee.isInstance(t,Eo.$type)}const An={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},Dl={$type:"GrammarImport",path:"path"},cr={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function ol(t){return ee.isInstance(t,cr.$type)}const Ao={$type:"InferredType",name:"name"};function jd(t){return ee.isInstance(t,Ao.$type)}const Vt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function ca(t){return ee.isInstance(t,Vt.$type)}const Ka={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},Ml={$type:"InfixRuleOperators",precedences:"precedences"},Li={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function _p(t){return ee.isInstance(t,Li.$type)}const Oi={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Bn(t){return ee.isInstance(t,Oi.$type)}const Ps={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},lr={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Ip(t){return ee.isInstance(t,lr.$type)}const So={$type:"Negation",value:"value"};function Pp(t){return ee.isInstance(t,So.$type)}const Fl={$type:"NumberLiteral",value:"value"},$s={$type:"Parameter",name:"name"},ko={$type:"ParameterReference",parameter:"parameter"};function $p(t){return ee.isInstance(t,ko.$type)}const Pt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function sn(t){return ee.isInstance(t,Pt.$type)}const Ha={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},ur={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Lp(t){return ee.isInstance(t,ur.$type)}const Co={$type:"ReturnType",name:"name"};function Op(t){return ee.isInstance(t,Co.$type)}const dr={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Wn(t){return ee.isInstance(t,dr.$type)}const xi={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function xp(t){return ee.isInstance(t,xi.$type)}const Gl={$type:"StringLiteral",value:"value"},fr={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Dp(t){return ee.isInstance(t,fr.$type)}const gt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},hr={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Mp(t){return ee.isInstance(t,hr.$type)}const ln={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function an(t){return ee.isInstance(t,ln.$type)}const pr={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Fp(t){return ee.isInstance(t,pr.$type)}const Xs={$type:"Type",name:"name",type:"type"};function Gp(t){return ee.isInstance(t,Xs.$type)}const hi={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},pi={$type:"TypeDefinition"},Ul={$type:"UnionType",types:"types"},Js={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function zd(t){return ee.isInstance(t,Js.$type)}const mr={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Up(t){return ee.isInstance(t,mr.$type)}const mi={$type:"ValueLiteral"},Di={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function qp(t){return ee.isInstance(t,Di.$type)}class Bd extends Dd{constructor(){super(...arguments),this.types={AbstractElement:{name:ct.$type,properties:{cardinality:{name:ct.cardinality}},superTypes:[]},AbstractParserRule:{name:Vs.$type,properties:{},superTypes:[Is.$type,Et.$type]},AbstractRule:{name:Is.$type,properties:{},superTypes:[]},AbstractType:{name:Et.$type,properties:{},superTypes:[]},Action:{name:On.$type,properties:{cardinality:{name:On.cardinality},feature:{name:On.feature},inferredType:{name:On.inferredType},operator:{name:On.operator},type:{name:On.type,referenceType:Et.$type}},superTypes:[ct.$type]},Alternatives:{name:Ks.$type,properties:{cardinality:{name:Ks.cardinality},elements:{name:Ks.elements,defaultValue:[]}},superTypes:[ct.$type]},ArrayLiteral:{name:Ol.$type,properties:{elements:{name:Ol.elements,defaultValue:[]}},superTypes:[mi.$type]},ArrayType:{name:xl.$type,properties:{elementType:{name:xl.elementType}},superTypes:[pi.$type]},Assignment:{name:xn.$type,properties:{cardinality:{name:xn.cardinality},feature:{name:xn.feature},operator:{name:xn.operator},predicate:{name:xn.predicate},terminal:{name:xn.terminal}},superTypes:[ct.$type]},BooleanLiteral:{name:vo.$type,properties:{true:{name:vo.true,defaultValue:!1}},superTypes:[nr.$type,mi.$type]},CharacterRange:{name:Dn.$type,properties:{cardinality:{name:Dn.cardinality},left:{name:Dn.left},lookahead:{name:Dn.lookahead},parenthesized:{name:Dn.parenthesized,defaultValue:!1},right:{name:Dn.right}},superTypes:[gt.$type]},Condition:{name:nr.$type,properties:{},superTypes:[]},Conjunction:{name:Hs.$type,properties:{left:{name:Hs.left},right:{name:Hs.right}},superTypes:[nr.$type]},CrossReference:{name:Mn.$type,properties:{cardinality:{name:Mn.cardinality},deprecatedSyntax:{name:Mn.deprecatedSyntax,defaultValue:!1},isMulti:{name:Mn.isMulti,defaultValue:!1},terminal:{name:Mn.terminal},type:{name:Mn.type,referenceType:Et.$type}},superTypes:[ct.$type]},Disjunction:{name:Ys.$type,properties:{left:{name:Ys.left},right:{name:Ys.right}},superTypes:[nr.$type]},EndOfFile:{name:Eo.$type,properties:{cardinality:{name:Eo.cardinality}},superTypes:[ct.$type]},Grammar:{name:An.$type,properties:{imports:{name:An.imports,defaultValue:[]},interfaces:{name:An.interfaces,defaultValue:[]},isDeclared:{name:An.isDeclared,defaultValue:!1},name:{name:An.name},rules:{name:An.rules,defaultValue:[]},types:{name:An.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Dl.$type,properties:{path:{name:Dl.path}},superTypes:[]},Group:{name:cr.$type,properties:{cardinality:{name:cr.cardinality},elements:{name:cr.elements,defaultValue:[]},guardCondition:{name:cr.guardCondition},predicate:{name:cr.predicate}},superTypes:[ct.$type]},InferredType:{name:Ao.$type,properties:{name:{name:Ao.name}},superTypes:[Et.$type]},InfixRule:{name:Vt.$type,properties:{call:{name:Vt.call},dataType:{name:Vt.dataType},inferredType:{name:Vt.inferredType},name:{name:Vt.name},operators:{name:Vt.operators},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Et.$type}},superTypes:[Vs.$type]},InfixRuleOperatorList:{name:Ka.$type,properties:{associativity:{name:Ka.associativity},operators:{name:Ka.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ml.$type,properties:{precedences:{name:Ml.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Li.$type,properties:{attributes:{name:Li.attributes,defaultValue:[]},name:{name:Li.name},superTypes:{name:Li.superTypes,defaultValue:[],referenceType:Et.$type}},superTypes:[Et.$type]},Keyword:{name:Oi.$type,properties:{cardinality:{name:Oi.cardinality},predicate:{name:Oi.predicate},value:{name:Oi.value}},superTypes:[ct.$type]},NamedArgument:{name:Ps.$type,properties:{calledByName:{name:Ps.calledByName,defaultValue:!1},parameter:{name:Ps.parameter,referenceType:$s.$type},value:{name:Ps.value}},superTypes:[]},NegatedToken:{name:lr.$type,properties:{cardinality:{name:lr.cardinality},lookahead:{name:lr.lookahead},parenthesized:{name:lr.parenthesized,defaultValue:!1},terminal:{name:lr.terminal}},superTypes:[gt.$type]},Negation:{name:So.$type,properties:{value:{name:So.value}},superTypes:[nr.$type]},NumberLiteral:{name:Fl.$type,properties:{value:{name:Fl.value}},superTypes:[mi.$type]},Parameter:{name:$s.$type,properties:{name:{name:$s.name}},superTypes:[]},ParameterReference:{name:ko.$type,properties:{parameter:{name:ko.parameter,referenceType:$s.$type}},superTypes:[nr.$type]},ParserRule:{name:Pt.$type,properties:{dataType:{name:Pt.dataType},definition:{name:Pt.definition},entry:{name:Pt.entry,defaultValue:!1},fragment:{name:Pt.fragment,defaultValue:!1},inferredType:{name:Pt.inferredType},name:{name:Pt.name},parameters:{name:Pt.parameters,defaultValue:[]},returnType:{name:Pt.returnType,referenceType:Et.$type}},superTypes:[Vs.$type]},ReferenceType:{name:Ha.$type,properties:{isMulti:{name:Ha.isMulti,defaultValue:!1},referenceType:{name:Ha.referenceType}},superTypes:[pi.$type]},RegexToken:{name:ur.$type,properties:{cardinality:{name:ur.cardinality},lookahead:{name:ur.lookahead},parenthesized:{name:ur.parenthesized,defaultValue:!1},regex:{name:ur.regex}},superTypes:[gt.$type]},ReturnType:{name:Co.$type,properties:{name:{name:Co.name}},superTypes:[]},RuleCall:{name:dr.$type,properties:{arguments:{name:dr.arguments,defaultValue:[]},cardinality:{name:dr.cardinality},predicate:{name:dr.predicate},rule:{name:dr.rule,referenceType:Is.$type}},superTypes:[ct.$type]},SimpleType:{name:xi.$type,properties:{primitiveType:{name:xi.primitiveType},stringType:{name:xi.stringType},typeRef:{name:xi.typeRef,referenceType:Et.$type}},superTypes:[pi.$type]},StringLiteral:{name:Gl.$type,properties:{value:{name:Gl.value}},superTypes:[mi.$type]},TerminalAlternatives:{name:fr.$type,properties:{cardinality:{name:fr.cardinality},elements:{name:fr.elements,defaultValue:[]},lookahead:{name:fr.lookahead},parenthesized:{name:fr.parenthesized,defaultValue:!1}},superTypes:[gt.$type]},TerminalElement:{name:gt.$type,properties:{cardinality:{name:gt.cardinality},lookahead:{name:gt.lookahead},parenthesized:{name:gt.parenthesized,defaultValue:!1}},superTypes:[ct.$type]},TerminalGroup:{name:hr.$type,properties:{cardinality:{name:hr.cardinality},elements:{name:hr.elements,defaultValue:[]},lookahead:{name:hr.lookahead},parenthesized:{name:hr.parenthesized,defaultValue:!1}},superTypes:[gt.$type]},TerminalRule:{name:ln.$type,properties:{definition:{name:ln.definition},fragment:{name:ln.fragment,defaultValue:!1},hidden:{name:ln.hidden,defaultValue:!1},name:{name:ln.name},type:{name:ln.type}},superTypes:[Is.$type]},TerminalRuleCall:{name:pr.$type,properties:{cardinality:{name:pr.cardinality},lookahead:{name:pr.lookahead},parenthesized:{name:pr.parenthesized,defaultValue:!1},rule:{name:pr.rule,referenceType:ln.$type}},superTypes:[gt.$type]},Type:{name:Xs.$type,properties:{name:{name:Xs.name},type:{name:Xs.type}},superTypes:[Et.$type]},TypeAttribute:{name:hi.$type,properties:{defaultValue:{name:hi.defaultValue},isOptional:{name:hi.isOptional,defaultValue:!1},name:{name:hi.name},type:{name:hi.type}},superTypes:[]},TypeDefinition:{name:pi.$type,properties:{},superTypes:[]},UnionType:{name:Ul.$type,properties:{types:{name:Ul.types,defaultValue:[]}},superTypes:[pi.$type]},UnorderedGroup:{name:Js.$type,properties:{cardinality:{name:Js.cardinality},elements:{name:Js.elements,defaultValue:[]}},superTypes:[ct.$type]},UntilToken:{name:mr.$type,properties:{cardinality:{name:mr.cardinality},lookahead:{name:mr.lookahead},parenthesized:{name:mr.parenthesized,defaultValue:!1},terminal:{name:mr.terminal}},superTypes:[gt.$type]},ValueLiteral:{name:mi.$type,properties:{},superTypes:[]},Wildcard:{name:Di.$type,properties:{cardinality:{name:Di.cardinality},lookahead:{name:Di.lookahead},parenthesized:{name:Di.parenthesized,defaultValue:!1}},superTypes:[gt.$type]}}}}const ee=new Bd;function wo(t){return new sl(t,e=>Bi(e)?e.content:[],{includeRoot:!0})}function jp(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function No(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function la(t){if(!t)return;const{offset:e,end:n,range:r}=t;return{range:r,offset:e,end:n,length:n-e}}var Xt;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(Xt||(Xt={}));function zp(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return Xt.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return Xt.After;const n=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,r=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return n&&r?Xt.Inside:n?Xt.OverlapBack:r?Xt.OverlapFront:Xt.Outside}function Bp(t,e){return zp(t,e)>Xt.After}const Wp=/^[\w\p{L}]$/u;function Vp(t,e){if(t){const n=Kp(t,!0);if(n&&ql(n,e))return n;if(Fd(t)){const r=t.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=t.content[i];if(ql(s,e))return s}}}}function ql(t,e){return Md(t)&&e.includes(t.tokenType.name)}function Kp(t,e=!0){for(;t.container;){const n=t.container;let r=n.content.indexOf(t);for(;r>0;){r--;const i=n.content[r];if(e||!i.hidden)return i}t=n}}class Wd extends Error{constructor(e,n){super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}}function ss(t,e="Error: Got unexpected value."){throw new Error(e)}function W(t){return t.charCodeAt(0)}function Ya(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function gi(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function rr(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Hp(){throw Error("Internal Error - Should never get here!")}function jl(t){return t.type==="Character"}const ua=[];for(let t=W("0");t<=W("9");t++)ua.push(t);const da=[W("_")].concat(ua);for(let t=W("a");t<=W("z");t++)da.push(t);for(let t=W("A");t<=W("Z");t++)da.push(t);const zl=[W(" "),W("\f"),W(`
1
+ import{dX as Oh,dY as xh,dl as bd,dH as Dh,dq as Mh,dm as je,bz as Fh,bA as bl,dx as Gh,dA as _d,dB as Id,dy as Uh,dM as _l,bC as Yn,bD as ae,dn as qh,dh as jh,dZ as zh,_ as En}from"./main-Bbh731ex.js";import{k as qr,j as tl,g as Hr,S as Bh,w as Wh,x as Vh,c as Pd,v as $e,y as $d,l as Kh,z as Hh,A as Yh,B as Xh,C as Jh,a as Ld,d as q,i as tn,r as Je,f as ht,D as Fe}from"./_baseUniq-CExXcLYT.js";import{j as nl,m as M,d as Qh,f as yt,g as jr,h as z,i as rl,l as jn,e as Zh}from"./_basePickBy-D4sc4sgx.js";import{c as Be}from"./clone-C12DbMN-.js";var ep=Object.prototype,tp=ep.hasOwnProperty,ft=Oh(function(t,e){if(xh(e)||bd(e)){Dh(e,qr(e),t);return}for(var n in e)tp.call(e,n)&&Mh(t,n,e[n])});function Od(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function ns(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}function np(t,e,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function rp(t,e,n,r){return tl(t,function(i,s,a){e(r,i,n(i),a)}),r}function ip(t,e){return function(n,r){var i=je(n)?np:rp,s=e?e():{};return i(n,t,Hr(r),s)}}var sp=200;function ap(t,e,n,r){var i=-1,s=Wh,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;e.length>=sp&&(s=Vh,a=!1,e=new Bh(e));e:for(;++i<o;){var u=t[i],f=u;if(u=u!==0?u:0,a&&f===f){for(var m=l;m--;)if(e[m]===f)continue e;c.push(u)}else s(e,f,r)||c.push(u)}return c}var _a=Fh(function(t,e){return bl(t)?ap(t,Pd(e,1,bl,!0)):[]});function Ge(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:nl(e),Od(t,e<0?0:e,r)):[]}function zi(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:nl(e),e=r-e,Od(t,0,e<0?0:e)):[]}function op(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function cp(t,e){var n=!0;return tl(t,function(r,i,s){return n=!!e(r,i,s),n}),n}function kt(t,e,n){var r=je(t)?op:cp;return r(t,Hr(e))}function wt(t){return t&&t.length?t[0]:void 0}function dt(t,e){return Pd(M(t,e))}var lp=Object.prototype,up=lp.hasOwnProperty,dp=ip(function(t,e,n){up.call(t,n)?t[n].push(e):Gh(t,n,[e])}),fp="[object String]";function nt(t){return typeof t=="string"||!je(t)&&_d(t)&&Id(t)==fp}var hp=Math.max;function et(t,e,n,r){t=bd(t)?t:$e(t),n=n?nl(n):0;var i=t.length;return n<0&&(n=hp(i+n,0)),nt(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&$d(t,e,n)>-1}function Il(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return $d(t,e,i)}var pp="[object RegExp]";function mp(t){return _d(t)&&Id(t)==pp}var Pl=_l&&_l.isRegExp,nn=Pl?Uh(Pl):mp,gp="Expected a function";function yp(t){if(typeof t!="function")throw new TypeError(gp);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Nt(t,e){if(t==null)return{};var n=Kh(Hh(t),function(r){return[r]});return e=Hr(e),Qh(t,n,function(r,i){return e(r,i[0])})}function Ia(t,e){var n=je(t)?Yh:Xh;return n(t,yp(Hr(e)))}function Tp(t,e){var n;return tl(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function xd(t,e,n){var r=je(t)?Jh:Tp;return r(t,Hr(e))}function il(t){return t&&t.length?Ld(t):[]}function Rp(t,e){return t&&t.length?Ld(t,Hr(e)):[]}function We(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function St(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function un(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function vp(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function fi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}class Dd{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const n=this.types[e.container.$type];if(!n)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=n.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const n=this.types[e];return n||{name:e,properties:{},superTypes:[]}}isInstance(e,n){return We(e)&&this.isSubtype(e.$type,n)}isSubtype(e,n){if(e===n)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[n];if(i!==void 0)return i;{const s=this.types[e],a=s?s.superTypes.some(o=>this.isSubtype(o,n)):!1;return r[n]=a,a}}getAllSubTypes(e){const n=this.allSubtypes[e];if(n)return n;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Bi(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Md(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function Fd(t){return Bi(t)&&typeof t.fullText=="string"}class Ue{constructor(e,n){this.startFn=e,this.nextFn=n}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let n=0,r=e.next();for(;!r.done;)n++,r=e.next();return n}toArray(){const e=[],n=this.iterator();let r;do r=n.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,n){const r=this.map(i=>[e?e(i):i,n?n(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new Ue(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),n=>{let r;if(!n.firstDone){do if(r=this.nextFn(n.first),!r.done)return r;while(!r.done);n.firstDone=!0}do if(r=n.iterator.next(),!r.done)return r;while(!r.done);return lt})}join(e=","){const n=this.iterator();let r="",i,s=!1;do i=n.next(),i.done||(s&&(r+=e),r+=Ep(i.value)),s=!0;while(!i.done);return r}indexOf(e,n=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=n&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(!e(r.value))return!1;r=n.next()}return!0}some(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return!0;r=n.next()}return!1}forEach(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;)e(i.value,r),i=n.next(),r++}map(e){return new Ue(this.startFn,n=>{const{done:r,value:i}=this.nextFn(n);return r?lt:{done:!1,value:e(i)}})}filter(e){return new Ue(this.startFn,n=>{let r;do if(r=this.nextFn(n),!r.done&&e(r.value))return r;while(!r.done);return lt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,n){const r=this.iterator();let i=n,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,n){return this.recursiveReduce(this.iterator(),e,n)}recursiveReduce(e,n,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,n,r);return s===void 0?i.value:n(s,i.value)}find(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}}findIndex(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(e(i.value))return r;i=n.next(),r++}return-1}includes(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(r.value===e)return!0;r=n.next()}return!1}flatMap(e){return new Ue(()=>({this:this.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(n.this);if(!r){const s=e(i);if(aa(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(n.iterator);return lt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const n=e>1?this.flat(e-1):this;return new Ue(()=>({this:n.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=n.nextFn(r.this);if(!i)if(aa(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return lt})}head(){const n=this.iterator().next();if(!n.done)return n.value}tail(e=1){return new Ue(()=>{const n=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(n).done)return n;return n},this.nextFn)}limit(e){return new Ue(()=>({size:0,state:this.startFn()}),n=>(n.size++,n.size>e?lt:this.nextFn(n.state)))}distinct(e){return new Ue(()=>({set:new Set,internalState:this.startFn()}),n=>{let r;do if(r=this.nextFn(n.internalState),!r.done){const i=e?e(r.value):r.value;if(!n.set.has(i))return n.set.add(i),r}while(!r.done);return lt})}exclude(e,n){const r=new Set;for(const i of e){const s=n?n(i):i;r.add(s)}return this.filter(i=>{const s=n?n(i):i;return!r.has(s)})}}function Ep(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function aa(t){return!!t&&typeof t[Symbol.iterator]=="function"}const Gd=new Ue(()=>{},()=>lt),lt=Object.freeze({done:!0,value:void 0});function me(...t){if(t.length===1){const e=t[0];if(e instanceof Ue)return e;if(aa(e))return new Ue(()=>e[Symbol.iterator](),n=>n.next());if(typeof e.length=="number")return new Ue(()=>({index:0}),n=>n.index<e.length?{done:!1,value:e[n.index++]}:lt)}return t.length>1?new Ue(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const n=e.iterator.next();if(!n.done)return n;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const n=t[e.collIndex++];aa(n)?e.iterator=n[Symbol.iterator]():n&&typeof n.length=="number"&&(e.array=n)}}while(e.iterator||e.array||e.collIndex<t.length);return lt}):Gd}class sl extends Ue{constructor(e,n,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[n(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(n(a.value)[Symbol.iterator]()),a}return lt})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var To;(function(t){function e(s){return s.reduce((a,o)=>a+o,0)}t.sum=e;function n(s){return s.reduce((a,o)=>a*o,0)}t.product=n;function r(s){return s.reduce((a,o)=>Math.min(a,o))}t.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}t.max=i})(To||(To={}));function Ro(t,e={}){for(const[n,r]of Object.entries(t))n.startsWith("$")||(Array.isArray(r)?r.forEach((i,s)=>{We(i)&&(i.$container=t,i.$containerProperty=n,i.$containerIndex=s,e.deep&&Ro(i,e))}):We(r)&&(r.$container=t,r.$containerProperty=n,e.deep&&Ro(r,e)))}function Pa(t,e){let n=t;for(;n;){if(e(n))return n;n=n.$container}}function Qt(t){const n=Ws(t).$document;if(!n)throw new Error("AST node has no document.");return n}function Ws(t){for(;t.$container;)t=t.$container;return t}function $l(t){return St(t)?t.ref?[t.ref]:[]:un(t)?t.items.map(e=>e.ref):[]}function al(t,e){if(!t)throw new Error("Node must be an AstNode.");const n=e?.range;return new Ue(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=t[i];if(We(s)){if(r.keyIndex++,Ll(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=r.arrayIndex++,o=s[a];if(We(o)&&Ll(o,n))return{done:!1,value:o}}r.arrayIndex=0}}r.keyIndex++}return lt})}function rs(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new sl(t,n=>al(n,e))}function Zt(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new sl(t,n=>al(n,e),{includeRoot:!0})}function Ll(t,e){if(!e)return!0;const n=t.$cstNode?.range;return n?Bp(n,e):!1}function oa(t){return new Ue(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const n=e.keys[e.keyIndex];if(!n.startsWith("$")){const r=t[n];if(St(r)||un(r))return e.keyIndex++,{done:!1,value:{reference:r,container:t,property:n}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(St(s)||un(r))return{done:!1,value:{reference:s,container:t,property:n,index:i}}}e.arrayIndex=0}}e.keyIndex++}return lt})}function Ap(t,e){const n=t.getTypeMetaData(e.$type),r=e;for(const i of Object.values(n.properties))i.defaultValue!==void 0&&r[i.name]===void 0&&(r[i.name]=Ud(i.defaultValue))}function Ud(t){return Array.isArray(t)?[...t.map(Ud)]:t}const ct={$type:"AbstractElement",cardinality:"cardinality"};function Sp(t){return ee.isInstance(t,ct.$type)}const Vs={$type:"AbstractParserRule"};function is(t){return ee.isInstance(t,Vs.$type)}const Is={$type:"AbstractRule"},Et={$type:"AbstractType"},On={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function $a(t){return ee.isInstance(t,On.$type)}const Ks={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function qd(t){return ee.isInstance(t,Ks.$type)}const Ol={$type:"ArrayLiteral",elements:"elements"},xl={$type:"ArrayType",elementType:"elementType"},xn={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function zn(t){return ee.isInstance(t,xn.$type)}const vo={$type:"BooleanLiteral",true:"true"};function kp(t){return ee.isInstance(t,vo.$type)}const Dn={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function Cp(t){return ee.isInstance(t,Dn.$type)}const nr={$type:"Condition"},Hs={$type:"Conjunction",left:"left",right:"right"};function wp(t){return ee.isInstance(t,Hs.$type)}const Mn={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function La(t){return ee.isInstance(t,Mn.$type)}const Ys={$type:"Disjunction",left:"left",right:"right"};function Np(t){return ee.isInstance(t,Ys.$type)}const Eo={$type:"EndOfFile",cardinality:"cardinality"};function bp(t){return ee.isInstance(t,Eo.$type)}const An={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},Dl={$type:"GrammarImport",path:"path"},cr={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function ol(t){return ee.isInstance(t,cr.$type)}const Ao={$type:"InferredType",name:"name"};function jd(t){return ee.isInstance(t,Ao.$type)}const Vt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function ca(t){return ee.isInstance(t,Vt.$type)}const Ka={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},Ml={$type:"InfixRuleOperators",precedences:"precedences"},Li={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function _p(t){return ee.isInstance(t,Li.$type)}const Oi={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Bn(t){return ee.isInstance(t,Oi.$type)}const Ps={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},lr={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Ip(t){return ee.isInstance(t,lr.$type)}const So={$type:"Negation",value:"value"};function Pp(t){return ee.isInstance(t,So.$type)}const Fl={$type:"NumberLiteral",value:"value"},$s={$type:"Parameter",name:"name"},ko={$type:"ParameterReference",parameter:"parameter"};function $p(t){return ee.isInstance(t,ko.$type)}const Pt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function sn(t){return ee.isInstance(t,Pt.$type)}const Ha={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},ur={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Lp(t){return ee.isInstance(t,ur.$type)}const Co={$type:"ReturnType",name:"name"};function Op(t){return ee.isInstance(t,Co.$type)}const dr={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Wn(t){return ee.isInstance(t,dr.$type)}const xi={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function xp(t){return ee.isInstance(t,xi.$type)}const Gl={$type:"StringLiteral",value:"value"},fr={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Dp(t){return ee.isInstance(t,fr.$type)}const gt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},hr={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Mp(t){return ee.isInstance(t,hr.$type)}const ln={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function an(t){return ee.isInstance(t,ln.$type)}const pr={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Fp(t){return ee.isInstance(t,pr.$type)}const Xs={$type:"Type",name:"name",type:"type"};function Gp(t){return ee.isInstance(t,Xs.$type)}const hi={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},pi={$type:"TypeDefinition"},Ul={$type:"UnionType",types:"types"},Js={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function zd(t){return ee.isInstance(t,Js.$type)}const mr={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Up(t){return ee.isInstance(t,mr.$type)}const mi={$type:"ValueLiteral"},Di={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function qp(t){return ee.isInstance(t,Di.$type)}class Bd extends Dd{constructor(){super(...arguments),this.types={AbstractElement:{name:ct.$type,properties:{cardinality:{name:ct.cardinality}},superTypes:[]},AbstractParserRule:{name:Vs.$type,properties:{},superTypes:[Is.$type,Et.$type]},AbstractRule:{name:Is.$type,properties:{},superTypes:[]},AbstractType:{name:Et.$type,properties:{},superTypes:[]},Action:{name:On.$type,properties:{cardinality:{name:On.cardinality},feature:{name:On.feature},inferredType:{name:On.inferredType},operator:{name:On.operator},type:{name:On.type,referenceType:Et.$type}},superTypes:[ct.$type]},Alternatives:{name:Ks.$type,properties:{cardinality:{name:Ks.cardinality},elements:{name:Ks.elements,defaultValue:[]}},superTypes:[ct.$type]},ArrayLiteral:{name:Ol.$type,properties:{elements:{name:Ol.elements,defaultValue:[]}},superTypes:[mi.$type]},ArrayType:{name:xl.$type,properties:{elementType:{name:xl.elementType}},superTypes:[pi.$type]},Assignment:{name:xn.$type,properties:{cardinality:{name:xn.cardinality},feature:{name:xn.feature},operator:{name:xn.operator},predicate:{name:xn.predicate},terminal:{name:xn.terminal}},superTypes:[ct.$type]},BooleanLiteral:{name:vo.$type,properties:{true:{name:vo.true,defaultValue:!1}},superTypes:[nr.$type,mi.$type]},CharacterRange:{name:Dn.$type,properties:{cardinality:{name:Dn.cardinality},left:{name:Dn.left},lookahead:{name:Dn.lookahead},parenthesized:{name:Dn.parenthesized,defaultValue:!1},right:{name:Dn.right}},superTypes:[gt.$type]},Condition:{name:nr.$type,properties:{},superTypes:[]},Conjunction:{name:Hs.$type,properties:{left:{name:Hs.left},right:{name:Hs.right}},superTypes:[nr.$type]},CrossReference:{name:Mn.$type,properties:{cardinality:{name:Mn.cardinality},deprecatedSyntax:{name:Mn.deprecatedSyntax,defaultValue:!1},isMulti:{name:Mn.isMulti,defaultValue:!1},terminal:{name:Mn.terminal},type:{name:Mn.type,referenceType:Et.$type}},superTypes:[ct.$type]},Disjunction:{name:Ys.$type,properties:{left:{name:Ys.left},right:{name:Ys.right}},superTypes:[nr.$type]},EndOfFile:{name:Eo.$type,properties:{cardinality:{name:Eo.cardinality}},superTypes:[ct.$type]},Grammar:{name:An.$type,properties:{imports:{name:An.imports,defaultValue:[]},interfaces:{name:An.interfaces,defaultValue:[]},isDeclared:{name:An.isDeclared,defaultValue:!1},name:{name:An.name},rules:{name:An.rules,defaultValue:[]},types:{name:An.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Dl.$type,properties:{path:{name:Dl.path}},superTypes:[]},Group:{name:cr.$type,properties:{cardinality:{name:cr.cardinality},elements:{name:cr.elements,defaultValue:[]},guardCondition:{name:cr.guardCondition},predicate:{name:cr.predicate}},superTypes:[ct.$type]},InferredType:{name:Ao.$type,properties:{name:{name:Ao.name}},superTypes:[Et.$type]},InfixRule:{name:Vt.$type,properties:{call:{name:Vt.call},dataType:{name:Vt.dataType},inferredType:{name:Vt.inferredType},name:{name:Vt.name},operators:{name:Vt.operators},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Et.$type}},superTypes:[Vs.$type]},InfixRuleOperatorList:{name:Ka.$type,properties:{associativity:{name:Ka.associativity},operators:{name:Ka.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ml.$type,properties:{precedences:{name:Ml.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Li.$type,properties:{attributes:{name:Li.attributes,defaultValue:[]},name:{name:Li.name},superTypes:{name:Li.superTypes,defaultValue:[],referenceType:Et.$type}},superTypes:[Et.$type]},Keyword:{name:Oi.$type,properties:{cardinality:{name:Oi.cardinality},predicate:{name:Oi.predicate},value:{name:Oi.value}},superTypes:[ct.$type]},NamedArgument:{name:Ps.$type,properties:{calledByName:{name:Ps.calledByName,defaultValue:!1},parameter:{name:Ps.parameter,referenceType:$s.$type},value:{name:Ps.value}},superTypes:[]},NegatedToken:{name:lr.$type,properties:{cardinality:{name:lr.cardinality},lookahead:{name:lr.lookahead},parenthesized:{name:lr.parenthesized,defaultValue:!1},terminal:{name:lr.terminal}},superTypes:[gt.$type]},Negation:{name:So.$type,properties:{value:{name:So.value}},superTypes:[nr.$type]},NumberLiteral:{name:Fl.$type,properties:{value:{name:Fl.value}},superTypes:[mi.$type]},Parameter:{name:$s.$type,properties:{name:{name:$s.name}},superTypes:[]},ParameterReference:{name:ko.$type,properties:{parameter:{name:ko.parameter,referenceType:$s.$type}},superTypes:[nr.$type]},ParserRule:{name:Pt.$type,properties:{dataType:{name:Pt.dataType},definition:{name:Pt.definition},entry:{name:Pt.entry,defaultValue:!1},fragment:{name:Pt.fragment,defaultValue:!1},inferredType:{name:Pt.inferredType},name:{name:Pt.name},parameters:{name:Pt.parameters,defaultValue:[]},returnType:{name:Pt.returnType,referenceType:Et.$type}},superTypes:[Vs.$type]},ReferenceType:{name:Ha.$type,properties:{isMulti:{name:Ha.isMulti,defaultValue:!1},referenceType:{name:Ha.referenceType}},superTypes:[pi.$type]},RegexToken:{name:ur.$type,properties:{cardinality:{name:ur.cardinality},lookahead:{name:ur.lookahead},parenthesized:{name:ur.parenthesized,defaultValue:!1},regex:{name:ur.regex}},superTypes:[gt.$type]},ReturnType:{name:Co.$type,properties:{name:{name:Co.name}},superTypes:[]},RuleCall:{name:dr.$type,properties:{arguments:{name:dr.arguments,defaultValue:[]},cardinality:{name:dr.cardinality},predicate:{name:dr.predicate},rule:{name:dr.rule,referenceType:Is.$type}},superTypes:[ct.$type]},SimpleType:{name:xi.$type,properties:{primitiveType:{name:xi.primitiveType},stringType:{name:xi.stringType},typeRef:{name:xi.typeRef,referenceType:Et.$type}},superTypes:[pi.$type]},StringLiteral:{name:Gl.$type,properties:{value:{name:Gl.value}},superTypes:[mi.$type]},TerminalAlternatives:{name:fr.$type,properties:{cardinality:{name:fr.cardinality},elements:{name:fr.elements,defaultValue:[]},lookahead:{name:fr.lookahead},parenthesized:{name:fr.parenthesized,defaultValue:!1}},superTypes:[gt.$type]},TerminalElement:{name:gt.$type,properties:{cardinality:{name:gt.cardinality},lookahead:{name:gt.lookahead},parenthesized:{name:gt.parenthesized,defaultValue:!1}},superTypes:[ct.$type]},TerminalGroup:{name:hr.$type,properties:{cardinality:{name:hr.cardinality},elements:{name:hr.elements,defaultValue:[]},lookahead:{name:hr.lookahead},parenthesized:{name:hr.parenthesized,defaultValue:!1}},superTypes:[gt.$type]},TerminalRule:{name:ln.$type,properties:{definition:{name:ln.definition},fragment:{name:ln.fragment,defaultValue:!1},hidden:{name:ln.hidden,defaultValue:!1},name:{name:ln.name},type:{name:ln.type}},superTypes:[Is.$type]},TerminalRuleCall:{name:pr.$type,properties:{cardinality:{name:pr.cardinality},lookahead:{name:pr.lookahead},parenthesized:{name:pr.parenthesized,defaultValue:!1},rule:{name:pr.rule,referenceType:ln.$type}},superTypes:[gt.$type]},Type:{name:Xs.$type,properties:{name:{name:Xs.name},type:{name:Xs.type}},superTypes:[Et.$type]},TypeAttribute:{name:hi.$type,properties:{defaultValue:{name:hi.defaultValue},isOptional:{name:hi.isOptional,defaultValue:!1},name:{name:hi.name},type:{name:hi.type}},superTypes:[]},TypeDefinition:{name:pi.$type,properties:{},superTypes:[]},UnionType:{name:Ul.$type,properties:{types:{name:Ul.types,defaultValue:[]}},superTypes:[pi.$type]},UnorderedGroup:{name:Js.$type,properties:{cardinality:{name:Js.cardinality},elements:{name:Js.elements,defaultValue:[]}},superTypes:[ct.$type]},UntilToken:{name:mr.$type,properties:{cardinality:{name:mr.cardinality},lookahead:{name:mr.lookahead},parenthesized:{name:mr.parenthesized,defaultValue:!1},terminal:{name:mr.terminal}},superTypes:[gt.$type]},ValueLiteral:{name:mi.$type,properties:{},superTypes:[]},Wildcard:{name:Di.$type,properties:{cardinality:{name:Di.cardinality},lookahead:{name:Di.lookahead},parenthesized:{name:Di.parenthesized,defaultValue:!1}},superTypes:[gt.$type]}}}}const ee=new Bd;function wo(t){return new sl(t,e=>Bi(e)?e.content:[],{includeRoot:!0})}function jp(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function No(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function la(t){if(!t)return;const{offset:e,end:n,range:r}=t;return{range:r,offset:e,end:n,length:n-e}}var Xt;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(Xt||(Xt={}));function zp(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return Xt.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return Xt.After;const n=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,r=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return n&&r?Xt.Inside:n?Xt.OverlapBack:r?Xt.OverlapFront:Xt.Outside}function Bp(t,e){return zp(t,e)>Xt.After}const Wp=/^[\w\p{L}]$/u;function Vp(t,e){if(t){const n=Kp(t,!0);if(n&&ql(n,e))return n;if(Fd(t)){const r=t.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=t.content[i];if(ql(s,e))return s}}}}function ql(t,e){return Md(t)&&e.includes(t.tokenType.name)}function Kp(t,e=!0){for(;t.container;){const n=t.container;let r=n.content.indexOf(t);for(;r>0;){r--;const i=n.content[r];if(e||!i.hidden)return i}t=n}}class Wd extends Error{constructor(e,n){super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}}function ss(t,e="Error: Got unexpected value."){throw new Error(e)}function W(t){return t.charCodeAt(0)}function Ya(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function gi(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function rr(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Hp(){throw Error("Internal Error - Should never get here!")}function jl(t){return t.type==="Character"}const ua=[];for(let t=W("0");t<=W("9");t++)ua.push(t);const da=[W("_")].concat(ua);for(let t=W("a");t<=W("z");t++)da.push(t);for(let t=W("A");t<=W("Z");t++)da.push(t);const zl=[W(" "),W("\f"),W(`
2
2
  `),W("\r"),W(" "),W("\v"),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W(" "),W("\u2028"),W("\u2029"),W(" "),W(" "),W(" "),W("\uFEFF")],Yp=/[0-9a-fA-F]/,Ls=/[0-9]/,Xp=/[1-9]/;class Vd{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const n=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":gi(r,"global");break;case"i":gi(r,"ignoreCase");break;case"m":gi(r,"multiLine");break;case"u":gi(r,"unicode");break;case"y":gi(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:n,loc:this.loc(0)}}disjunction(){const e=[],n=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(n)}}alternative(){const e=[],n=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(n)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let n;switch(this.popChar()){case"=":n="Lookahead";break;case"!":n="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":n="Lookbehind";break;case"!":n="NegativeLookbehind"}break}}rr(n);const r=this.disjunction();return this.consumeChar(")"),{type:n,value:r,loc:this.loc(e)}}return Hp()}quantifier(e=!1){let n;const r=this.idx;switch(this.popChar()){case"*":n={atLeast:0,atMost:1/0};break;case"+":n={atLeast:1,atMost:1/0};break;case"?":n={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":n={atLeast:i,atMost:i};break;case",":let s;this.isDigit()?(s=this.integerIncludingZero(),n={atLeast:i,atMost:s}):n={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&n===void 0)return;rr(n);break}if(!(e===!0&&n===void 0)&&rr(n))return this.peekChar(0)==="?"?(this.consumeChar("?"),n.greedy=!1):n.greedy=!0,n.type="Quantifier",n.loc=this.loc(r),n}atom(){let e;const n=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),rr(e))return e.loc=this.loc(n),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[W(`
3
3
  `),W("\r"),W("\u2028"),W("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,n=!1;switch(this.popChar()){case"d":e=ua;break;case"D":e=ua,n=!0;break;case"s":e=zl;break;case"S":e=zl,n=!0;break;case"w":e=da;break;case"W":e=da,n=!0;break}if(rr(e))return{type:"Set",value:e,complement:n}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=W("\f");break;case"n":e=W(`
4
4
  `);break;case"r":e=W("\r");break;case"t":e=W(" ");break;case"v":e=W("\v");break}if(rr(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:W("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:W(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DockviewTerminalContainer-BFBZVril.js","assets/main-Dtbkl2jA.js","assets/main-DpPgdfV2.css","assets/square-terminal-ByCNqakb.js"])))=>i.map(i=>d[i]);
2
- import{j as t,c0 as Y,c1 as G,c2 as Z,X as I,c3 as L,c4 as J,c5 as ee,c6 as te,c7 as se,bV as ne,c8 as oe,c9 as ae,r as s,R as ie,bW as re,ca as W,bZ as B,p as m,cb as ce,cc as le,cd as ue,ce as de,cf as fe,cg as he,ch as pe,ci as ge,bX as me,bT as xe,bY as Se,cj as be,ck as ve,cl as je,cm as ye,_ as we}from"./main-Dtbkl2jA.js";import{S as Ce}from"./square-terminal-ByCNqakb.js";function Ae({...e}){return t.jsx(Y,{"data-slot":"sheet",...e})}function Le({...e}){return t.jsx(te,{"data-slot":"sheet-portal",...e})}function ke({className:e,...n}){return t.jsx(se,{"data-slot":"sheet-overlay",className:L("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...n})}function Oe({className:e,children:n,side:o="left",showCloseButton:c=!0,overlayClassName:a,...r}){return t.jsxs(Le,{"data-slot":"sheet-portal",children:[t.jsx(ke,{className:a}),t.jsxs(G,{"data-slot":"sheet-content",className:L("fixed z-50 flex flex-col bg-background shadow-lg outline-none transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",o==="left"&&"inset-y-0 left-0 h-full w-[85%] max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",o==="right"&&"inset-y-0 right-0 h-full w-[85%] max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",o==="bottom"&&"inset-x-0 bottom-0 max-h-[calc(100dvh-env(safe-area-inset-top)-1.5rem)] w-full rounded-t-2xl border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",o==="top"&&"inset-x-0 top-0 w-full rounded-b-2xl border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",e),...r,children:[n,c&&t.jsxs(Z,{"data-slot":"sheet-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[t.jsx(I,{}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ne({className:e,...n}){return t.jsx(J,{"data-slot":"sheet-title",className:L("text-foreground font-semibold",e),...n})}function Te({className:e,...n}){return t.jsx(ee,{"data-slot":"sheet-description",className:L("text-muted-foreground text-sm",e),...n})}const Ee=[{id:"chat",label:"Chat",icon:ne},{id:"diff",label:"Changes",icon:oe},{id:"code",label:"Files",icon:ae},{id:"terminal",label:"Terminal",icon:Ce}];function De({activeTab:e,onTabChange:n,diffFileCount:o}){return t.jsx("div",{className:"flex shrink-0 border-b border-border",children:Ee.map(c=>{const a=c.icon,r=e===c.id,h=c.id==="diff"&&o!=null&&o>0,f=`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-sm font-medium transition-colors ${r?"border-b-2 border-foreground text-foreground":"text-muted-foreground hover:text-foreground"}`;return t.jsxs("button",{type:"button",onClick:()=>n(c.id),className:f,"aria-label":c.label,title:c.label,children:[t.jsx(a,{className:"size-4"}),h&&t.jsx("span",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-blue-500/20 text-blue-600 dark:text-blue-400 px-1.5 text-xs font-medium",children:o})]},c.id)})})}const M=s.createContext({chatKey:0,setTaskRunning:()=>{}});function ze(){return s.useContext(M)}const K=s.createContext({showSessionList:!1,setShowSessionList:()=>{}});function Fe(){return s.useContext(K)}const Pe=s.lazy(()=>we(()=>import("./DockviewTerminalContainer-BFBZVril.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.DockviewTerminalContainer})));function Re(){const[e,n]=s.useState(null),[o,c]=s.useState(0);return s.useLayoutEffect(()=>{const a=window.visualViewport,r=()=>{n(a?a.height:window.innerHeight),c(a?a.offsetTop:0)};return r(),a&&(a.addEventListener("resize",r),a.addEventListener("scroll",r)),window.addEventListener("resize",r),()=>{a&&(a.removeEventListener("resize",r),a.removeEventListener("scroll",r)),window.removeEventListener("resize",r)}},[]),{height:e,offsetTop:o}}function _e(e){const{diffMode:n,compareBranch:o}=be(e),[c,a]=s.useState(0);return s.useEffect(()=>{let r=!1;const h=()=>{m.workspace.getDiffSummary.query({workspaceId:e,diffMode:n,compareBranch:o??void 0}).then(p=>{r||a(p.stats?.filesChanged??0)}).catch(()=>{})};h();const f=setInterval(h,15e3);return()=>{r=!0,clearInterval(f)}},[e,n,o]),c}function Me(){const{workspaceId:e}=ie.useParams(),n=decodeURIComponent(e),c=re()||B,[a,r]=s.useState(!1);s.useLayoutEffect(()=>{r(!0)},[]);const h=W(p=>p.setActiveWorkspace);s.useEffect(()=>{h(n)},[n,h]);const f=W(p=>p.clearNeedsAttention);return s.useEffect(()=>{f(n)},[n,f]),t.jsx("div",{className:`h-full ${a?"":"invisible"}`,children:c?null:t.jsx(qe,{workspaceId:n},n)})}function qe({workspaceId:e}){const{height:n,offsetTop:o}=Re(),c=_e(e),[a,r]=s.useState("chat"),[h,f]=s.useState(void 0),[p,b]=s.useState(!1),[k,O]=s.useState([]),[x,v]=s.useState(""),[,j]=s.useState(!1),[w,N]=s.useState(0),T=s.useRef(null);s.useEffect(()=>{let i=!1;return m.settings.get.query().then(u=>{if(i)return;const S=u.codingAgents,R=Array.isArray(S)?S:[];if(R.length>0){const q=new Set,X=R.filter(Q=>q.has(Q.type)?!1:(q.add(Q.type),!0));O(X)}const _=u.defaultCodingAgent;_&&!x&&v(_)}),m.statuses.get.query({workspaceId:e}).then(u=>{i||u?.agent?.codingAgentId&&v(u.agent.codingAgentId)}).catch(()=>{}),()=>{i=!0}},[e,w]);const[E,C]=s.useState(!1),[D,d]=s.useState(!1),[l,g]=s.useState(!1),[y,A]=s.useState(void 0),[z,P]=s.useState(!1),F=s.useCallback(i=>{f(i),r("code")},[]);s.useEffect(()=>{const i=u=>{const S=u.detail;S?.filename&&(S.workspaceId&&S.workspaceId!==e||(A(S.filename),g(!0)))};return window.addEventListener("band:open-file",i),()=>window.removeEventListener("band:open-file",i)},[e]),s.useEffect(()=>{const i=()=>g(!0),u=()=>P(!0);return window.addEventListener("band:open-quick-open",i),window.addEventListener("band:open-search-files",u),()=>{window.removeEventListener("band:open-quick-open",i),window.removeEventListener("band:open-search-files",u)}},[]);const V=s.useCallback(async i=>{if(i!==x)try{await m.workspace.switchAgent.mutate({workspaceId:e,agentId:i}),v(i),N(u=>u+1)}catch(u){console.error("[switchAgent] error:",u)}},[e,x]),$=s.useCallback(i=>{b(i)},[]),H=s.useCallback(i=>{f(i??void 0)},[]),U=k.find(i=>i.id===x);return t.jsx(K.Provider,{value:{showSessionList:p,setShowSessionList:$},children:t.jsx(M.Provider,{value:{chatKey:w,setTaskRunning:j,agentType:U?.type,codingAgentId:x,switchAgent:V,newSessionRef:T},children:t.jsxs("div",{className:"flex flex-col overflow-hidden",style:{height:n?`${n}px`:"100dvh",transform:o?`translateY(${o}px)`:void 0},children:[B&&t.jsx(ce,{}),t.jsxs("header",{className:"flex h-[calc(2.5rem+env(safe-area-inset-top))] shrink-0 items-center gap-2 border-b border-border/50 px-3 pt-[env(safe-area-inset-top)]",children:[t.jsx("button",{type:"button",onClick:()=>d(!0),"aria-label":"Open project list","aria-haspopup":"dialog","data-testid":"mobile-workspace__project-list-trigger",className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md hover:bg-accent",children:t.jsx(le,{className:"size-4"})}),t.jsxs("button",{type:"button",onClick:()=>C(!0),"aria-haspopup":"dialog","aria-label":"Switch workspace",className:"inline-flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 hover:bg-accent active:bg-accent",children:[t.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t.jsx(ue,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),t.jsx("div",{"aria-hidden":"true",className:"size-7 shrink-0"})]}),t.jsx(De,{activeTab:a,onTabChange:r,diffFileCount:c}),t.jsxs("main",{className:"flex min-h-0 flex-1 flex-col",children:[a==="chat"&&t.jsx(Qe,{workspaceId:e}),a==="diff"&&t.jsx(de,{workspaceId:e,active:!0,onOpenFile:F}),a==="code"&&t.jsx(fe,{workspaceId:e,file:h,onSelectFile:H}),a==="terminal"&&t.jsx(s.Suspense,{fallback:null,children:t.jsx(Pe,{workspaceId:e,visible:!0})})]}),t.jsx(he,{workspaceId:e,open:l,onOpenChange:i=>{g(i),i||A(void 0)},onOpenFile:F,initialQuery:y,autoOpen:y!=null}),t.jsx(pe,{workspaceId:e,open:z,onOpenChange:P,onOpenFile:F}),t.jsx(ge,{open:E,onOpenChange:C}),t.jsx(Ae,{open:D,onOpenChange:d,children:t.jsxs(Oe,{side:"left",showCloseButton:!1,"data-testid":"project-list-flyout",children:[t.jsx(Ne,{className:"sr-only",children:"Projects"}),t.jsx(Te,{className:"sr-only",children:"Browse projects and open a workspace"}),t.jsx(me,{children:t.jsx(xe,{bottomActions:t.jsx(Se,{}),hideTitleBar:!0})})]})})]})})})}function Qe({workspaceId:e}){const{settings:n}=ve(),[o,c]=s.useState(void 0),[a,r]=s.useState(!1),[h,f]=s.useState(void 0),[p,b]=s.useState(!1),[k,O]=s.useState(0),{showSessionList:x,setShowSessionList:v}=Fe(),{chatKey:j,setTaskRunning:w,agentType:N,codingAgentId:T,switchAgent:E,newSessionRef:C}=ze();s.useEffect(()=>{let d=!1;return m.chats.list.query({workspaceId:e}).then(l=>{if(!d)if(l.chats.length>0)c(l.chats[0].id);else return m.chats.create.mutate({workspaceId:e}).then(g=>{d||c(g.chat.id)})}).catch(l=>console.error("[MobileChatContent] error resolving chat:",l)),()=>{d=!0}},[e]),s.useEffect(()=>{if(!o)return;let d=!1;return m.chats.get.query({chatId:o}).then(l=>{if(d)return;const g=l?.chat,y=g?.agent??n.defaultCodingAgent,A=y?n.codingAgents?.find(z=>z.id===y):void 0;r(je(A?.type)),g?.activeSessionId&&f(g.activeSessionId),b(!0)}).catch(l=>{d||b(!0),console.error("[chats.get] error:",l)}),()=>{d=!0}},[e,o,j,n]);const D=s.useCallback(async d=>{if(o){try{await m.chats.setActiveSession.mutate({workspaceId:e,chatId:o,sessionId:d??void 0})}catch(l){console.error("[MobileChatContent] error persisting active session:",l);return}f(d),b(!1),O(l=>l+1)}},[e,o]);return o?t.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:t.jsx(ye,{chatKey:j,workspaceId:e,chatId:o,workspaceName:e,supportsSessionListing:a,initialSessionId:h,sessionQueryDone:p,showSessionList:x,onShowSessionListChange:v,onStreamingChange:w,onNewSessionRef:C,onSwitchSession:D,agentType:N,codingAgentId:T,onSwitchAgent:E},`${j}-${k}`)}):null}export{Me as component};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DockviewTerminalContainer-rpSQamnG.js","assets/main-Bbh731ex.js","assets/main-DpPgdfV2.css","assets/square-terminal-wqR_rG8g.js"])))=>i.map(i=>d[i]);
2
+ import{j as t,c0 as Y,c1 as G,c2 as Z,X as I,c3 as L,c4 as J,c5 as ee,c6 as te,c7 as se,bV as ne,c8 as oe,c9 as ae,r as s,R as ie,bW as re,ca as W,bZ as B,p as m,cb as ce,cc as le,cd as ue,ce as de,cf as fe,cg as he,ch as pe,ci as ge,bX as me,bT as xe,bY as Se,cj as be,ck as ve,cl as je,cm as ye,_ as we}from"./main-Bbh731ex.js";import{S as Ce}from"./square-terminal-wqR_rG8g.js";function Ae({...e}){return t.jsx(Y,{"data-slot":"sheet",...e})}function Le({...e}){return t.jsx(te,{"data-slot":"sheet-portal",...e})}function ke({className:e,...n}){return t.jsx(se,{"data-slot":"sheet-overlay",className:L("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...n})}function Oe({className:e,children:n,side:o="left",showCloseButton:c=!0,overlayClassName:a,...r}){return t.jsxs(Le,{"data-slot":"sheet-portal",children:[t.jsx(ke,{className:a}),t.jsxs(G,{"data-slot":"sheet-content",className:L("fixed z-50 flex flex-col bg-background shadow-lg outline-none transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",o==="left"&&"inset-y-0 left-0 h-full w-[85%] max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",o==="right"&&"inset-y-0 right-0 h-full w-[85%] max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",o==="bottom"&&"inset-x-0 bottom-0 max-h-[calc(100dvh-env(safe-area-inset-top)-1.5rem)] w-full rounded-t-2xl border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",o==="top"&&"inset-x-0 top-0 w-full rounded-b-2xl border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",e),...r,children:[n,c&&t.jsxs(Z,{"data-slot":"sheet-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[t.jsx(I,{}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ne({className:e,...n}){return t.jsx(J,{"data-slot":"sheet-title",className:L("text-foreground font-semibold",e),...n})}function Te({className:e,...n}){return t.jsx(ee,{"data-slot":"sheet-description",className:L("text-muted-foreground text-sm",e),...n})}const Ee=[{id:"chat",label:"Chat",icon:ne},{id:"diff",label:"Changes",icon:oe},{id:"code",label:"Files",icon:ae},{id:"terminal",label:"Terminal",icon:Ce}];function De({activeTab:e,onTabChange:n,diffFileCount:o}){return t.jsx("div",{className:"flex shrink-0 border-b border-border",children:Ee.map(c=>{const a=c.icon,r=e===c.id,h=c.id==="diff"&&o!=null&&o>0,f=`flex flex-1 items-center justify-center gap-1.5 py-2.5 text-sm font-medium transition-colors ${r?"border-b-2 border-foreground text-foreground":"text-muted-foreground hover:text-foreground"}`;return t.jsxs("button",{type:"button",onClick:()=>n(c.id),className:f,"aria-label":c.label,title:c.label,children:[t.jsx(a,{className:"size-4"}),h&&t.jsx("span",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-blue-500/20 text-blue-600 dark:text-blue-400 px-1.5 text-xs font-medium",children:o})]},c.id)})})}const M=s.createContext({chatKey:0,setTaskRunning:()=>{}});function ze(){return s.useContext(M)}const K=s.createContext({showSessionList:!1,setShowSessionList:()=>{}});function Fe(){return s.useContext(K)}const Pe=s.lazy(()=>we(()=>import("./DockviewTerminalContainer-rpSQamnG.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.DockviewTerminalContainer})));function Re(){const[e,n]=s.useState(null),[o,c]=s.useState(0);return s.useLayoutEffect(()=>{const a=window.visualViewport,r=()=>{n(a?a.height:window.innerHeight),c(a?a.offsetTop:0)};return r(),a&&(a.addEventListener("resize",r),a.addEventListener("scroll",r)),window.addEventListener("resize",r),()=>{a&&(a.removeEventListener("resize",r),a.removeEventListener("scroll",r)),window.removeEventListener("resize",r)}},[]),{height:e,offsetTop:o}}function _e(e){const{diffMode:n,compareBranch:o}=be(e),[c,a]=s.useState(0);return s.useEffect(()=>{let r=!1;const h=()=>{m.workspace.getDiffSummary.query({workspaceId:e,diffMode:n,compareBranch:o??void 0}).then(p=>{r||a(p.stats?.filesChanged??0)}).catch(()=>{})};h();const f=setInterval(h,15e3);return()=>{r=!0,clearInterval(f)}},[e,n,o]),c}function Me(){const{workspaceId:e}=ie.useParams(),n=decodeURIComponent(e),c=re()||B,[a,r]=s.useState(!1);s.useLayoutEffect(()=>{r(!0)},[]);const h=W(p=>p.setActiveWorkspace);s.useEffect(()=>{h(n)},[n,h]);const f=W(p=>p.clearNeedsAttention);return s.useEffect(()=>{f(n)},[n,f]),t.jsx("div",{className:`h-full ${a?"":"invisible"}`,children:c?null:t.jsx(qe,{workspaceId:n},n)})}function qe({workspaceId:e}){const{height:n,offsetTop:o}=Re(),c=_e(e),[a,r]=s.useState("chat"),[h,f]=s.useState(void 0),[p,b]=s.useState(!1),[k,O]=s.useState([]),[x,v]=s.useState(""),[,j]=s.useState(!1),[w,N]=s.useState(0),T=s.useRef(null);s.useEffect(()=>{let i=!1;return m.settings.get.query().then(u=>{if(i)return;const S=u.codingAgents,R=Array.isArray(S)?S:[];if(R.length>0){const q=new Set,X=R.filter(Q=>q.has(Q.type)?!1:(q.add(Q.type),!0));O(X)}const _=u.defaultCodingAgent;_&&!x&&v(_)}),m.statuses.get.query({workspaceId:e}).then(u=>{i||u?.agent?.codingAgentId&&v(u.agent.codingAgentId)}).catch(()=>{}),()=>{i=!0}},[e,w]);const[E,C]=s.useState(!1),[D,d]=s.useState(!1),[l,g]=s.useState(!1),[y,A]=s.useState(void 0),[z,P]=s.useState(!1),F=s.useCallback(i=>{f(i),r("code")},[]);s.useEffect(()=>{const i=u=>{const S=u.detail;S?.filename&&(S.workspaceId&&S.workspaceId!==e||(A(S.filename),g(!0)))};return window.addEventListener("band:open-file",i),()=>window.removeEventListener("band:open-file",i)},[e]),s.useEffect(()=>{const i=()=>g(!0),u=()=>P(!0);return window.addEventListener("band:open-quick-open",i),window.addEventListener("band:open-search-files",u),()=>{window.removeEventListener("band:open-quick-open",i),window.removeEventListener("band:open-search-files",u)}},[]);const V=s.useCallback(async i=>{if(i!==x)try{await m.workspace.switchAgent.mutate({workspaceId:e,agentId:i}),v(i),N(u=>u+1)}catch(u){console.error("[switchAgent] error:",u)}},[e,x]),$=s.useCallback(i=>{b(i)},[]),H=s.useCallback(i=>{f(i??void 0)},[]),U=k.find(i=>i.id===x);return t.jsx(K.Provider,{value:{showSessionList:p,setShowSessionList:$},children:t.jsx(M.Provider,{value:{chatKey:w,setTaskRunning:j,agentType:U?.type,codingAgentId:x,switchAgent:V,newSessionRef:T},children:t.jsxs("div",{className:"flex flex-col overflow-hidden",style:{height:n?`${n}px`:"100dvh",transform:o?`translateY(${o}px)`:void 0},children:[B&&t.jsx(ce,{}),t.jsxs("header",{className:"flex h-[calc(2.5rem+env(safe-area-inset-top))] shrink-0 items-center gap-2 border-b border-border/50 px-3 pt-[env(safe-area-inset-top)]",children:[t.jsx("button",{type:"button",onClick:()=>d(!0),"aria-label":"Open project list","aria-haspopup":"dialog","data-testid":"mobile-workspace__project-list-trigger",className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md hover:bg-accent",children:t.jsx(le,{className:"size-4"})}),t.jsxs("button",{type:"button",onClick:()=>C(!0),"aria-haspopup":"dialog","aria-label":"Switch workspace",className:"inline-flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 hover:bg-accent active:bg-accent",children:[t.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t.jsx(ue,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),t.jsx("div",{"aria-hidden":"true",className:"size-7 shrink-0"})]}),t.jsx(De,{activeTab:a,onTabChange:r,diffFileCount:c}),t.jsxs("main",{className:"flex min-h-0 flex-1 flex-col",children:[a==="chat"&&t.jsx(Qe,{workspaceId:e}),a==="diff"&&t.jsx(de,{workspaceId:e,active:!0,onOpenFile:F}),a==="code"&&t.jsx(fe,{workspaceId:e,file:h,onSelectFile:H}),a==="terminal"&&t.jsx(s.Suspense,{fallback:null,children:t.jsx(Pe,{workspaceId:e,visible:!0})})]}),t.jsx(he,{workspaceId:e,open:l,onOpenChange:i=>{g(i),i||A(void 0)},onOpenFile:F,initialQuery:y,autoOpen:y!=null}),t.jsx(pe,{workspaceId:e,open:z,onOpenChange:P,onOpenFile:F}),t.jsx(ge,{open:E,onOpenChange:C}),t.jsx(Ae,{open:D,onOpenChange:d,children:t.jsxs(Oe,{side:"left",showCloseButton:!1,"data-testid":"project-list-flyout",children:[t.jsx(Ne,{className:"sr-only",children:"Projects"}),t.jsx(Te,{className:"sr-only",children:"Browse projects and open a workspace"}),t.jsx(me,{children:t.jsx(xe,{bottomActions:t.jsx(Se,{}),hideTitleBar:!0})})]})})]})})})}function Qe({workspaceId:e}){const{settings:n}=ve(),[o,c]=s.useState(void 0),[a,r]=s.useState(!1),[h,f]=s.useState(void 0),[p,b]=s.useState(!1),[k,O]=s.useState(0),{showSessionList:x,setShowSessionList:v}=Fe(),{chatKey:j,setTaskRunning:w,agentType:N,codingAgentId:T,switchAgent:E,newSessionRef:C}=ze();s.useEffect(()=>{let d=!1;return m.chats.list.query({workspaceId:e}).then(l=>{if(!d)if(l.chats.length>0)c(l.chats[0].id);else return m.chats.create.mutate({workspaceId:e}).then(g=>{d||c(g.chat.id)})}).catch(l=>console.error("[MobileChatContent] error resolving chat:",l)),()=>{d=!0}},[e]),s.useEffect(()=>{if(!o)return;let d=!1;return m.chats.get.query({chatId:o}).then(l=>{if(d)return;const g=l?.chat,y=g?.agent??n.defaultCodingAgent,A=y?n.codingAgents?.find(z=>z.id===y):void 0;r(je(A?.type)),g?.activeSessionId&&f(g.activeSessionId),b(!0)}).catch(l=>{d||b(!0),console.error("[chats.get] error:",l)}),()=>{d=!0}},[e,o,j,n]);const D=s.useCallback(async d=>{if(o){try{await m.chats.setActiveSession.mutate({workspaceId:e,chatId:o,sessionId:d??void 0})}catch(l){console.error("[MobileChatContent] error persisting active session:",l);return}f(d),b(!1),O(l=>l+1)}},[e,o]);return o?t.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:t.jsx(ye,{chatKey:j,workspaceId:e,chatId:o,workspaceName:e,supportsSessionListing:a,initialSessionId:h,sessionQueryDone:p,showSessionList:x,onShowSessionListChange:v,onStreamingChange:w,onNewSessionRef:C,onSwitchSession:D,agentType:N,codingAgentId:T,onSwitchAgent:E},`${j}-${k}`)}):null}export{Me as component};
@@ -1 +1 @@
1
- import{R as e,j as a,N as r}from"./main-Dtbkl2jA.js";function t(){const{workspaceId:o}=e.useParams();return a.jsx(r,{to:"/workspace/$workspaceId",params:{workspaceId:o},replace:!0})}export{t as notFoundComponent};
1
+ import{R as e,j as a,N as r}from"./main-Bbh731ex.js";function t(){const{workspaceId:o}=e.useParams();return a.jsx(r,{to:"/workspace/$workspaceId",params:{workspaceId:o},replace:!0})}export{t as notFoundComponent};
@@ -1,4 +1,4 @@
1
- import{S as gi,U as xi,af as Xt,ae as di,V as pi,W as fi,Y as n,a0 as Nt,av as yi,a1 as mi,ak as bi,at as Ct,a4 as Ai,ar as Yt,as as wi,aN as Ci,aO as Bt,aP as Si,aM as Wt,aQ as zt}from"./main-Dtbkl2jA.js";var mt=(function(){var s=n(function(W,r,u,g){for(u=u||{},g=W.length;g--;u[W[g]]=r);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],e=[1,3],a=[1,5],c=[1,6],d=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],b=[1,25],P=[1,26],I=[1,28],R=[1,29],L=[1,30],z=[1,31],F=[1,32],D=[1,33],V=[1,34],f=[1,35],C=[1,36],l=[1,37],M=[1,43],B=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],k=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],w=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],S=[1,64],$={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(r,u,g,x,A,o,nt){var p=o.length-1;switch(A){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:this.$=[Number(o[p-2]),...o[p]];break;case 21:this.$=[Number(o[p])];break;case 22:x.setXAxisTitle(o[p]);break;case 23:x.setXAxisTitle(o[p-1]);break;case 24:x.setXAxisTitle({type:"text",text:""});break;case 25:x.setXAxisBand(o[p]);break;case 26:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 27:this.$=o[p-1];break;case 28:this.$=[o[p-2],...o[p]];break;case 29:this.$=[o[p]];break;case 30:x.setYAxisTitle(o[p]);break;case 31:x.setYAxisTitle(o[p-1]);break;case 32:x.setYAxisTitle({type:"text",text:""});break;case 33:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 37:this.$={text:o[p],type:"text"};break;case 38:this.$={text:o[p],type:"text"};break;case 39:this.$={text:o[p],type:"markdown"};break;case 40:this.$=o[p];break;case 41:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[s(t,i,{3:1,4:2,7:4,5:e,34:a,35:c,36:d}),{1:[3]},s(t,i,{4:2,7:4,3:8,5:e,34:a,35:c,36:d}),s(t,i,{4:2,7:4,6:9,3:10,5:e,8:[1,11],34:a,35:c,36:d}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},s(m,[2,34]),s(m,[2,35]),s(m,[2,36]),{1:[2,1]},s(t,i,{4:2,7:4,3:21,5:e,34:a,35:c,36:d}),{1:[2,3]},s(m,[2,5]),s(t,[2,7],{4:22,34:a,35:c,36:d}),{11:23,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:39,13:38,24:M,27:B,29:40,30:41,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:45,15:44,27:U,33:46,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:49,17:48,24:X,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:52,17:51,24:X,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{20:[1,53]},{22:[1,54]},s(h,[2,18]),{1:[2,2]},s(h,[2,8]),s(h,[2,9]),s(k,[2,37],{40:55,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l}),s(k,[2,38]),s(k,[2,39]),s(w,[2,40]),s(w,[2,42]),s(w,[2,43]),s(w,[2,44]),s(w,[2,45]),s(w,[2,46]),s(w,[2,47]),s(w,[2,48]),s(w,[2,49]),s(w,[2,50]),s(w,[2,51]),s(h,[2,10]),s(h,[2,22],{30:41,29:56,24:M,27:B}),s(h,[2,24]),s(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},s(h,[2,11]),s(h,[2,30],{33:60,27:U}),s(h,[2,32]),{31:[1,61]},s(h,[2,12]),{17:62,24:X},{25:63,27:S},s(h,[2,14]),{17:65,24:X},s(h,[2,16]),s(h,[2,17]),s(w,[2,41]),s(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},s(h,[2,31]),{27:[1,69]},s(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},s(h,[2,15]),s(h,[2,26]),s(h,[2,27]),{11:59,32:72,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},s(h,[2,33]),s(h,[2,19]),{25:73,27:S},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(r,u){if(u.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=u,g}},"parseError"),parse:n(function(r){var u=this,g=[0],x=[],A=[null],o=[],nt=this.table,p="",lt=0,Et=0,hi=2,It=1,li=o.slice.call(arguments,1),_=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);_.setInput(r,Y.yy),Y.yy.lexer=_,Y.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;o.push(pt);var ci=_.options&&_.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(v){g.length=g.length-2*v,A.length=A.length-v,o.length=o.length-v}n(ui,"popStack");function Vt(){var v;return v=x.pop()||_.lex()||It,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=u.symbols_[v]||v),v}n(Vt,"lex");for(var T,H,E,ft,q={},ct,O,Mt,ut;;){if(H=g[g.length-1],this.defaultActions[H]?E=this.defaultActions[H]:((T===null||typeof T>"u")&&(T=Vt()),E=nt[H]&&nt[H][T]),typeof E>"u"||!E.length||!E[0]){var yt="";ut=[];for(ct in nt[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");_.showPosition?yt="Parse error on line "+(lt+1)+`:
1
+ import{S as gi,U as xi,af as Xt,ae as di,V as pi,W as fi,Y as n,a0 as Nt,av as yi,a1 as mi,ak as bi,at as Ct,a4 as Ai,ar as Yt,as as wi,aN as Ci,aO as Bt,aP as Si,aM as Wt,aQ as zt}from"./main-Bbh731ex.js";var mt=(function(){var s=n(function(W,r,u,g){for(u=u||{},g=W.length;g--;u[W[g]]=r);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],e=[1,3],a=[1,5],c=[1,6],d=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],b=[1,25],P=[1,26],I=[1,28],R=[1,29],L=[1,30],z=[1,31],F=[1,32],D=[1,33],V=[1,34],f=[1,35],C=[1,36],l=[1,37],M=[1,43],B=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],k=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],w=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],S=[1,64],$={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(r,u,g,x,A,o,nt){var p=o.length-1;switch(A){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:this.$=[Number(o[p-2]),...o[p]];break;case 21:this.$=[Number(o[p])];break;case 22:x.setXAxisTitle(o[p]);break;case 23:x.setXAxisTitle(o[p-1]);break;case 24:x.setXAxisTitle({type:"text",text:""});break;case 25:x.setXAxisBand(o[p]);break;case 26:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 27:this.$=o[p-1];break;case 28:this.$=[o[p-2],...o[p]];break;case 29:this.$=[o[p]];break;case 30:x.setYAxisTitle(o[p]);break;case 31:x.setYAxisTitle(o[p-1]);break;case 32:x.setYAxisTitle({type:"text",text:""});break;case 33:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 37:this.$={text:o[p],type:"text"};break;case 38:this.$={text:o[p],type:"text"};break;case 39:this.$={text:o[p],type:"markdown"};break;case 40:this.$=o[p];break;case 41:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[s(t,i,{3:1,4:2,7:4,5:e,34:a,35:c,36:d}),{1:[3]},s(t,i,{4:2,7:4,3:8,5:e,34:a,35:c,36:d}),s(t,i,{4:2,7:4,6:9,3:10,5:e,8:[1,11],34:a,35:c,36:d}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},s(m,[2,34]),s(m,[2,35]),s(m,[2,36]),{1:[2,1]},s(t,i,{4:2,7:4,3:21,5:e,34:a,35:c,36:d}),{1:[2,3]},s(m,[2,5]),s(t,[2,7],{4:22,34:a,35:c,36:d}),{11:23,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:39,13:38,24:M,27:B,29:40,30:41,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:45,15:44,27:U,33:46,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:49,17:48,24:X,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{11:52,17:51,24:X,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},{20:[1,53]},{22:[1,54]},s(h,[2,18]),{1:[2,2]},s(h,[2,8]),s(h,[2,9]),s(k,[2,37],{40:55,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l}),s(k,[2,38]),s(k,[2,39]),s(w,[2,40]),s(w,[2,42]),s(w,[2,43]),s(w,[2,44]),s(w,[2,45]),s(w,[2,46]),s(w,[2,47]),s(w,[2,48]),s(w,[2,49]),s(w,[2,50]),s(w,[2,51]),s(h,[2,10]),s(h,[2,22],{30:41,29:56,24:M,27:B}),s(h,[2,24]),s(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},s(h,[2,11]),s(h,[2,30],{33:60,27:U}),s(h,[2,32]),{31:[1,61]},s(h,[2,12]),{17:62,24:X},{25:63,27:S},s(h,[2,14]),{17:65,24:X},s(h,[2,16]),s(h,[2,17]),s(w,[2,41]),s(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},s(h,[2,31]),{27:[1,69]},s(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},s(h,[2,15]),s(h,[2,26]),s(h,[2,27]),{11:59,32:72,37:24,38:b,39:P,40:27,41:I,42:R,43:L,44:z,45:F,46:D,47:V,48:f,49:C,50:l},s(h,[2,33]),s(h,[2,19]),{25:73,27:S},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(r,u){if(u.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=u,g}},"parseError"),parse:n(function(r){var u=this,g=[0],x=[],A=[null],o=[],nt=this.table,p="",lt=0,Et=0,hi=2,It=1,li=o.slice.call(arguments,1),_=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);_.setInput(r,Y.yy),Y.yy.lexer=_,Y.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;o.push(pt);var ci=_.options&&_.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(v){g.length=g.length-2*v,A.length=A.length-v,o.length=o.length-v}n(ui,"popStack");function Vt(){var v;return v=x.pop()||_.lex()||It,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=u.symbols_[v]||v),v}n(Vt,"lex");for(var T,H,E,ft,q={},ct,O,Mt,ut;;){if(H=g[g.length-1],this.defaultActions[H]?E=this.defaultActions[H]:((T===null||typeof T>"u")&&(T=Vt()),E=nt[H]&&nt[H][T]),typeof E>"u"||!E.length||!E[0]){var yt="";ut=[];for(ct in nt[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");_.showPosition?yt="Parse error on line "+(lt+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[T]||T)+"'":yt="Parse error on line "+(lt+1)+": Unexpected "+(T==It?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(yt,{text:_.match,token:this.terminals_[T]||T,line:_.yylineno,loc:pt,expected:ut})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+T);switch(E[0]){case 1:g.push(T),A.push(_.yytext),o.push(_.yylloc),g.push(E[1]),T=null,Et=_.yyleng,p=_.yytext,lt=_.yylineno,pt=_.yylloc;break;case 2:if(O=this.productions_[E[1]][1],q.$=A[A.length-O],q._$={first_line:o[o.length-(O||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(O||1)].first_column,last_column:o[o.length-1].last_column},ci&&(q._$.range=[o[o.length-(O||1)].range[0],o[o.length-1].range[1]]),ft=this.performAction.apply(q,[p,Et,lt,Y.yy,E[1],A,o].concat(li)),typeof ft<"u")return ft;O&&(g=g.slice(0,-1*O*2),A=A.slice(0,-1*O),o=o.slice(0,-1*O)),g.push(this.productions_[E[1]][0]),A.push(q.$),o.push(q._$),Mt=nt[g[g.length-2]][g[g.length-1]],g.push(Mt);break;case 3:return!0}}return!0},"parse")},Lt=(function(){var W={EOF:1,parseError:n(function(u,g){if(this.yy.parser)this.yy.parser.parseError(u,g);else throw new Error(u)},"parseError"),setInput:n(function(r,u){return this.yy=u||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var u=r.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var u=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),u=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,5 +1,5 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, R as React } from "../server.js";
2
- import { m as createLucideIcon, bW as isDesktop, cy as invoke, cz as listen, p as trpc, cA as reactDomExports, cB as Globe, cu as SearchBar, cC as Popover, cD as PopoverTrigger, cE as PopoverContent, cF as Search, cG as Trash2, cH as DropdownMenu, cI as DropdownMenuTrigger, cJ as ChevronDown, cK as DropdownMenuContent, cL as DropdownMenuItem, cM as TriangleAlert, cn as ArrowLeft, cq as ArrowRight, X, cN as RotateCw, u as useAdapter, n as useQueryClient, o as useQuery, q as selectNeighbourBeforeRemove, v as centralPanelPosition, w as ensureEdgeGroups, x as attachEdgeGroupDragVisibility, y as registerInnerDockview, z as PanelVisibilityContext, A as DockviewReact, G as cycleTabsInActiveGroup, H as cycleGridGroups, C as Columns2, B as Rows2, E as Plus, F as usePanelVisibility } from "./router-PslJYw0K.js";
2
+ import { m as createLucideIcon, bW as isDesktop, cy as invoke, cz as listen, p as trpc, cA as reactDomExports, cB as Globe, cu as SearchBar, cC as Popover, cD as PopoverTrigger, cE as PopoverContent, cF as Search, cG as Trash2, cH as DropdownMenu, cI as DropdownMenuTrigger, cJ as ChevronDown, cK as DropdownMenuContent, cL as DropdownMenuItem, cM as TriangleAlert, cn as ArrowLeft, cq as ArrowRight, X, cN as RotateCw, u as useAdapter, n as useQueryClient, o as useQuery, q as selectNeighbourBeforeRemove, v as centralPanelPosition, w as ensureEdgeGroups, x as attachEdgeGroupDragVisibility, y as registerInnerDockview, z as PanelVisibilityContext, A as DockviewReact, G as cycleTabsInActiveGroup, H as cycleGridGroups, C as Columns2, B as Rows2, E as Plus, F as usePanelVisibility } from "./router-6QHcrvmQ.js";
3
3
  import "node:async_hooks";
4
4
  import "node:stream";
5
5
  import "util";
@@ -1692,18 +1692,23 @@ function DockviewBrowserContainer({
1692
1692
  const api = apiRef.current;
1693
1693
  const container = containerRef.current;
1694
1694
  if (!api || !container) return;
1695
+ let lastWidth = 0;
1696
+ let lastHeight = 0;
1697
+ const applyLayout = (width, height) => {
1698
+ const w = Math.round(width);
1699
+ const h = Math.round(height);
1700
+ if (w <= 0 || h <= 0) return;
1701
+ if (w === lastWidth && h === lastHeight) return;
1702
+ lastWidth = w;
1703
+ lastHeight = h;
1704
+ api.layout(w, h, true);
1705
+ };
1695
1706
  const rect = container.getBoundingClientRect();
1696
- if (rect.width > 0 && rect.height > 0) {
1697
- api.layout(Math.round(rect.width), Math.round(rect.height), true);
1698
- return;
1699
- }
1707
+ applyLayout(rect.width, rect.height);
1700
1708
  const ro = new ResizeObserver((entries) => {
1701
1709
  const entry = entries[0];
1702
1710
  if (!entry) return;
1703
- const { width, height } = entry.contentRect;
1704
- if (width <= 0 || height <= 0) return;
1705
- ro.disconnect();
1706
- api.layout(Math.round(width), Math.round(height), true);
1711
+ applyLayout(entry.contentRect.width, entry.contentRect.height);
1707
1712
  });
1708
1713
  ro.observe(container);
1709
1714
  return () => ro.disconnect();
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, R as React } from "../server.js";
2
- import { u as useAdapter, n as useQueryClient, o as useQuery, p as trpc, q as selectNeighbourBeforeRemove, r as disposeTerminal, v as centralPanelPosition, w as ensureEdgeGroups, x as attachEdgeGroupDragVisibility, y as registerInnerDockview, z as PanelVisibilityContext, A as DockviewReact, C as Columns2, B as Rows2, E as Plus, X, F as usePanelVisibility, G as cycleTabsInActiveGroup, H as cycleGridGroups } from "./router-PslJYw0K.js";
3
- import { S as SquareTerminal } from "./square-terminal-DqxGkh8h.js";
2
+ import { u as useAdapter, n as useQueryClient, o as useQuery, p as trpc, q as selectNeighbourBeforeRemove, r as disposeTerminal, v as centralPanelPosition, w as ensureEdgeGroups, x as attachEdgeGroupDragVisibility, y as registerInnerDockview, z as PanelVisibilityContext, A as DockviewReact, C as Columns2, B as Rows2, E as Plus, X, F as usePanelVisibility, G as cycleTabsInActiveGroup, H as cycleGridGroups } from "./router-6QHcrvmQ.js";
3
+ import { S as SquareTerminal } from "./square-terminal-1wS601vv.js";
4
4
  import "node:async_hooks";
5
5
  import "node:stream";
6
6
  import "util";
@@ -12,7 +12,7 @@ import "node:process";
12
12
  import "node:path";
13
13
  import "node:url";
14
14
  const TerminalPanel = reactExports.lazy(
15
- () => import("./TerminalPanel-CvEpdUzO.js").then((m) => ({ default: m.TerminalPanel }))
15
+ () => import("./TerminalPanel-TU2tfPvh.js").then((m) => ({ default: m.TerminalPanel }))
16
16
  );
17
17
  function uuid() {
18
18
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
@@ -413,18 +413,23 @@ function DockviewTerminalContainer({
413
413
  const api = apiRef.current;
414
414
  const container = containerRef.current;
415
415
  if (!api || !container) return;
416
+ let lastWidth = 0;
417
+ let lastHeight = 0;
418
+ const applyLayout = (width, height) => {
419
+ const w = Math.round(width);
420
+ const h = Math.round(height);
421
+ if (w <= 0 || h <= 0) return;
422
+ if (w === lastWidth && h === lastHeight) return;
423
+ lastWidth = w;
424
+ lastHeight = h;
425
+ api.layout(w, h, true);
426
+ };
416
427
  const rect = container.getBoundingClientRect();
417
- if (rect.width > 0 && rect.height > 0) {
418
- api.layout(Math.round(rect.width), Math.round(rect.height), true);
419
- return;
420
- }
428
+ applyLayout(rect.width, rect.height);
421
429
  const ro = new ResizeObserver((entries) => {
422
430
  const entry = entries[0];
423
431
  if (!entry) return;
424
- const { width, height } = entry.contentRect;
425
- if (width <= 0 || height <= 0) return;
426
- ro.disconnect();
427
- api.layout(Math.round(width), Math.round(height), true);
432
+ applyLayout(entry.contentRect.width, entry.contentRect.height);
428
433
  });
429
434
  ro.observe(container);
430
435
  return () => ro.disconnect();
@@ -1,5 +1,5 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../server.js";
2
- import { m as createLucideIcon, cl as writeClipboardText, cm as readClipboardText, cn as ArrowLeft, co as ArrowUp, cp as ArrowDown, cq as ArrowRight, cr as ClipboardCopy, X, cs as ClipboardPaste, ch as useSettingsQuery, ct as getOrCreateTerminal, cu as SearchBar } from "./router-PslJYw0K.js";
2
+ import { m as createLucideIcon, cl as writeClipboardText, cm as readClipboardText, cn as ArrowLeft, co as ArrowUp, cp as ArrowDown, cq as ArrowRight, cr as ClipboardCopy, X, cs as ClipboardPaste, ch as useSettingsQuery, ct as getOrCreateTerminal, cu as SearchBar } from "./router-6QHcrvmQ.js";
3
3
  import "node:async_hooks";
4
4
  import "node:stream";
5
5
  import "util";
@@ -1,5 +1,5 @@
1
- import { e as isSymbol, c as baseFlatten, g as baseIteratee, k as keys, h as baseFindIndex, j as baseEach, l as arrayMap, m as hasPath, n as castPath, t as toKey, o as baseGet } from "./_baseUniq-Cm0aWwLl.js";
2
- import { db as isObject, bw as baseRest, dc as isIterateeCall, dd as keysIn, de as eq, df as isArrayLike, dg as isArray, dh as identity, di as isIndex, dj as assignValue } from "./router-PslJYw0K.js";
1
+ import { e as isSymbol, c as baseFlatten, g as baseIteratee, k as keys, h as baseFindIndex, j as baseEach, l as arrayMap, m as hasPath, n as castPath, t as toKey, o as baseGet } from "./_baseUniq-DkSqb3YR.js";
2
+ import { db as isObject, bw as baseRest, dc as isIterateeCall, dd as keysIn, de as eq, df as isArrayLike, dg as isArray, dh as identity, di as isIndex, dj as assignValue } from "./router-6QHcrvmQ.js";
3
3
  var reWhitespace = /\s/;
4
4
  function trimmedEndIndex(string) {
5
5
  var index = string.length;
@@ -1,4 +1,4 @@
1
- import { du as isObjectLike, dv as baseGetTag, dg as isArray, dw as Symbol$1, df as isArrayLike, dx as arrayLikeKeys, dy as baseKeys, dz as memoize, dA as isArguments, dB as copyObject, dd as keysIn, dC as getPrototype, dD as cloneArrayBuffer, dE as cloneTypedArray, dF as getTag, ds as baseUnary, dG as nodeUtil, db as isObject, dH as copyArray, dI as isBuffer, dJ as cloneBuffer, dK as initCloneObject, dL as Stack, dj as assignValue, dM as MapCache, de as eq, dN as Uint8Array, dO as isTypedArray, dP as isLength, di as isIndex, dh as identity, dq as baseFor, dQ as Set } from "./router-PslJYw0K.js";
1
+ import { du as isObjectLike, dv as baseGetTag, dg as isArray, dw as Symbol$1, df as isArrayLike, dx as arrayLikeKeys, dy as baseKeys, dz as memoize, dA as isArguments, dB as copyObject, dd as keysIn, dC as getPrototype, dD as cloneArrayBuffer, dE as cloneTypedArray, dF as getTag, ds as baseUnary, dG as nodeUtil, db as isObject, dH as copyArray, dI as isBuffer, dJ as cloneBuffer, dK as initCloneObject, dL as Stack, dj as assignValue, dM as MapCache, de as eq, dN as Uint8Array, dO as isTypedArray, dP as isLength, di as isIndex, dh as identity, dq as baseFor, dQ as Set } from "./router-6QHcrvmQ.js";
2
2
  var symbolTag$3 = "[object Symbol]";
3
3
  function isSymbol(value) {
4
4
  return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$3;
@@ -1,4 +1,4 @@
1
- const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/__root.tsx", "children": ["/", "/workspace/$workspaceId"], "preloads": ["/assets/main-Dtbkl2jA.js"], "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }] }, "/": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/index.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }], "preloads": ["/assets/index-B7L6_ylA.js"] }, "/workspace/$workspaceId": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId-Dg3ERq5R.js", "/assets/square-terminal-ByCNqakb.js"] } }, "clientEntry": "/assets/main-Dtbkl2jA.js" });
1
+ const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/__root.tsx", "children": ["/", "/workspace/$workspaceId"], "preloads": ["/assets/main-Bbh731ex.js"], "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }] }, "/": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/index.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }], "preloads": ["/assets/index-cRf4PoQf.js"] }, "/workspace/$workspaceId": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-DpPgdfV2.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId-9mP5lL7t.js", "/assets/square-terminal-wqR_rG8g.js"] } }, "clientEntry": "/assets/main-Bbh731ex.js" });
2
2
  export {
3
3
  tsrStartManifest
4
4
  };
@@ -1,4 +1,4 @@
1
- import { au as withPath, av as halfPi, aw as epsilon, ax as tau, ay as cos, az as sin, aA as min, aB as abs, aC as pi, aD as sqrt, aE as atan2, aF as constant, aG as asin, aH as acos, aI as max } from "./router-PslJYw0K.js";
1
+ import { au as withPath, av as halfPi, aw as epsilon, ax as tau, ay as cos, az as sin, aA as min, aB as abs, aC as pi, aD as sqrt, aE as atan2, aF as constant, aG as asin, aH as acos, aI as max } from "./router-6QHcrvmQ.js";
2
2
  function arcInnerRadius(d) {
3
3
  return d.innerRadius;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { e as createArchitectureServices } from "./mermaid-parser.core-BArH7IDC.js";
2
- import { A } from "./mermaid-parser.core-BArH7IDC.js";
3
- import "./router-PslJYw0K.js";
1
+ import { e as createArchitectureServices } from "./mermaid-parser.core-DGyqTX8L.js";
2
+ import { A } from "./mermaid-parser.core-DGyqTX8L.js";
3
+ import "./router-6QHcrvmQ.js";
4
4
  import "../server.js";
5
5
  import "node:async_hooks";
6
6
  import "node:stream";
@@ -12,9 +12,9 @@ import "node:stream/web";
12
12
  import "node:process";
13
13
  import "node:path";
14
14
  import "node:url";
15
- import "./_baseUniq-Cm0aWwLl.js";
16
- import "./_basePickBy-7qoOGcXD.js";
17
- import "./clone-CHpwEW-O.js";
15
+ import "./_baseUniq-DkSqb3YR.js";
16
+ import "./_basePickBy-BSdtfHB0.js";
17
+ import "./clone-CwBTz6wc.js";
18
18
  import "path";
19
19
  import "os";
20
20
  import "net";
@@ -1,15 +1,15 @@
1
1
  var _a;
2
- import { _ as __name, as as selectSvgElement, aX as setupGraphViewbox, Y as log, U as setAccTitle, S as getAccTitle, ab as setDiagramTitle, ac as getDiagramTitle, O as getAccDescription, M as setAccDescription, ah as clear, ao as cleanAndMerge, ap as defaultConfig_default, aq as getConfig, V as getConfig2, b5 as createText, cv as getIconSVG, a1 as sanitizeText, W as select, ag as getEdgeId, cw as registerIconPacks, cx as unknownIcon } from "./router-PslJYw0K.js";
3
- import { p as populateCommonDb } from "./chunk-4BX2VUAB-B4TPMkRz.js";
4
- import { p as parse } from "./mermaid-parser.core-BArH7IDC.js";
2
+ import { _ as __name, as as selectSvgElement, aX as setupGraphViewbox, Y as log, U as setAccTitle, S as getAccTitle, ab as setDiagramTitle, ac as getDiagramTitle, O as getAccDescription, M as setAccDescription, ah as clear, ao as cleanAndMerge, ap as defaultConfig_default, aq as getConfig, V as getConfig2, b5 as createText, cv as getIconSVG, a1 as sanitizeText, W as select, ag as getEdgeId, cw as registerIconPacks, cx as unknownIcon } from "./router-6QHcrvmQ.js";
3
+ import { p as populateCommonDb } from "./chunk-4BX2VUAB-ByMuI7Fp.js";
4
+ import { p as parse } from "./mermaid-parser.core-DGyqTX8L.js";
5
5
  import { c as cytoscape$1 } from "./cytoscape.esm-Bm8DJGmZ.js";
6
6
  import { g as getDefaultExportFromCjs } from "../server.js";
7
7
  import "node:process";
8
8
  import "node:path";
9
9
  import "node:url";
10
- import "./_baseUniq-Cm0aWwLl.js";
11
- import "./_basePickBy-7qoOGcXD.js";
12
- import "./clone-CHpwEW-O.js";
10
+ import "./_baseUniq-DkSqb3YR.js";
11
+ import "./_basePickBy-BSdtfHB0.js";
12
+ import "./clone-CwBTz6wc.js";
13
13
  import "util";
14
14
  import "path";
15
15
  import "os";
@@ -1,8 +1,8 @@
1
- import { g as getIconStyles } from "./chunk-FMBD7UC4-D6DpqSQ8.js";
2
- import { _ as __name, aq as getConfig, W as select, Z as configureSvgSize, Y as log, ah as clear, aj as rgba, b3 as getLineFunctionsWithOffset, aN as line, aV as curveBasis, V as getConfig2, aS as getUrl, b4 as evaluate, b5 as createText, b6 as getSubGraphTitleMargins, aa as utils_default, a4 as common_default, b7 as replaceIconSubstring, b8 as decodeEntities, a1 as sanitizeText, b9 as getStylesFromArray } from "./router-PslJYw0K.js";
3
- import { c as clone } from "./clone-CHpwEW-O.js";
4
- import { G as Graph } from "./graph-Ccd2dFz0.js";
5
- import { c as channel } from "./channel-CSV_0Wq9.js";
1
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-DxER1-MJ.js";
2
+ import { _ as __name, aq as getConfig, W as select, Z as configureSvgSize, Y as log, ah as clear, aj as rgba, b3 as getLineFunctionsWithOffset, aN as line, aV as curveBasis, V as getConfig2, aS as getUrl, b4 as evaluate, b5 as createText, b6 as getSubGraphTitleMargins, aa as utils_default, a4 as common_default, b7 as replaceIconSubstring, b8 as decodeEntities, a1 as sanitizeText, b9 as getStylesFromArray } from "./router-6QHcrvmQ.js";
3
+ import { c as clone } from "./clone-CwBTz6wc.js";
4
+ import { G as Graph } from "./graph-BqKB55Uo.js";
5
+ import { c as channel } from "./channel-D4IKgr-x.js";
6
6
  import "../server.js";
7
7
  import "node:async_hooks";
8
8
  import "node:stream";
@@ -14,7 +14,7 @@ import "node:stream/web";
14
14
  import "node:process";
15
15
  import "node:path";
16
16
  import "node:url";
17
- import "./_baseUniq-Cm0aWwLl.js";
17
+ import "./_baseUniq-DkSqb3YR.js";
18
18
  var parser = (function() {
19
19
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
20
20
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,6 +1,6 @@
1
1
  var _a, _b;
2
- import { g as getNoteRect, d as drawRect } from "./chunk-TZMSLE5B-DRLbWC_A.js";
3
- import { M as setAccDescription, O as getAccDescription, S as getAccTitle, U as setAccTitle, _ as __name, V as getConfig2, W as select, Y as log, Z as configureSvgSize, $ as assignWithDepth_default, a0 as calculateTextWidth, a1 as sanitizeText, a2 as distExports, a3 as wrapLabel, a4 as common_default, a5 as calculateTextHeight } from "./router-PslJYw0K.js";
2
+ import { g as getNoteRect, d as drawRect } from "./chunk-TZMSLE5B-Dyw_E6V-.js";
3
+ import { M as setAccDescription, O as getAccDescription, S as getAccTitle, U as setAccTitle, _ as __name, V as getConfig2, W as select, Y as log, Z as configureSvgSize, $ as assignWithDepth_default, a0 as calculateTextWidth, a1 as sanitizeText, a2 as distExports, a3 as wrapLabel, a4 as common_default, a5 as calculateTextHeight } from "./router-6QHcrvmQ.js";
4
4
  import "../server.js";
5
5
  import "node:async_hooks";
6
6
  import "node:stream";
@@ -1,4 +1,4 @@
1
- import { ak as Utils, al as Color } from "./router-PslJYw0K.js";
1
+ import { ak as Utils, al as Color } from "./router-6QHcrvmQ.js";
2
2
  const channel = (color, channel2) => {
3
3
  return Utils.lang.round(Color.parse(color)[channel2]);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as __name } from "./router-PslJYw0K.js";
1
+ import { _ as __name } from "./router-6QHcrvmQ.js";
2
2
  function populateCommonDb(ast, db) {
3
3
  if (ast.accDescr) {
4
4
  db.setAccDescription?.(ast.accDescr);
@@ -1,4 +1,4 @@
1
- import { _ as __name, W as select } from "./router-PslJYw0K.js";
1
+ import { _ as __name, W as select } from "./router-6QHcrvmQ.js";
2
2
  var getDiagramElement = /* @__PURE__ */ __name((id, securityLevel) => {
3
3
  let sandboxElement;
4
4
  if (securityLevel === "sandbox") {
@@ -1,8 +1,8 @@
1
1
  var _a, _b;
2
- import { g as getIconStyles } from "./chunk-FMBD7UC4-D6DpqSQ8.js";
3
- import { g as getDiagramElement } from "./chunk-55IACEB6-CTFAFIsE.js";
4
- import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-U9pD23ft.js";
5
- import { _ as __name, Y as log, V as getConfig2, a8 as getRegisteredLayoutAlgorithm, a9 as render, aa as utils_default, W as select, U as setAccTitle, S as getAccTitle, M as setAccDescription, O as getAccDescription, ab as setDiagramTitle, ac as getDiagramTitle, a4 as common_default, ah as clear, ag as getEdgeId, a1 as sanitizeText, aU as parseGenericTypes } from "./router-PslJYw0K.js";
2
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-DxER1-MJ.js";
3
+ import { g as getDiagramElement } from "./chunk-55IACEB6-BAdInBZF.js";
4
+ import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DzFGKjvS.js";
5
+ import { _ as __name, Y as log, V as getConfig2, a8 as getRegisteredLayoutAlgorithm, a9 as render, aa as utils_default, W as select, U as setAccTitle, S as getAccTitle, M as setAccDescription, O as getAccDescription, ab as setDiagramTitle, ac as getDiagramTitle, a4 as common_default, ah as clear, ag as getEdgeId, a1 as sanitizeText, aU as parseGenericTypes } from "./router-6QHcrvmQ.js";
6
6
  var parser = (function() {
7
7
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
8
8
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,7 +1,7 @@
1
1
  var _a;
2
- import { g as getDiagramElement } from "./chunk-55IACEB6-CTFAFIsE.js";
3
- import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-U9pD23ft.js";
4
- import { _ as __name, Y as log, V as getConfig2, a9 as render, aa as utils_default, S as getAccTitle, U as setAccTitle, O as getAccDescription, M as setAccDescription, ab as setDiagramTitle, ac as getDiagramTitle, aW as generateId, a4 as common_default, ah as clear } from "./router-PslJYw0K.js";
2
+ import { g as getDiagramElement } from "./chunk-55IACEB6-BAdInBZF.js";
3
+ import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DzFGKjvS.js";
4
+ import { _ as __name, Y as log, V as getConfig2, a9 as render, aa as utils_default, S as getAccTitle, U as setAccTitle, O as getAccDescription, M as setAccDescription, ab as setDiagramTitle, ac as getDiagramTitle, aW as generateId, a4 as common_default, ah as clear } from "./router-6QHcrvmQ.js";
5
5
  var parser = (function() {
6
6
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
7
7
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,4 +1,4 @@
1
- import { _ as __name } from "./router-PslJYw0K.js";
1
+ import { _ as __name } from "./router-6QHcrvmQ.js";
2
2
  var getIconStyles = /* @__PURE__ */ __name(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -1,4 +1,4 @@
1
- import { _ as __name, Z as configureSvgSize, Y as log } from "./router-PslJYw0K.js";
1
+ import { _ as __name, Z as configureSvgSize, Y as log } from "./router-6QHcrvmQ.js";
2
2
  var setupViewPortForSVG = /* @__PURE__ */ __name((svg, padding, cssDiagram, useMaxWidth) => {
3
3
  svg.attr("class", cssDiagram);
4
4
  const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
@@ -1,5 +1,5 @@
1
1
  var _a;
2
- import { _ as __name } from "./router-PslJYw0K.js";
2
+ import { _ as __name } from "./router-6QHcrvmQ.js";
3
3
  var ImperativeState = (_a = class {
4
4
  /**
5
5
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as __name, a6 as lineBreakRegex, a2 as distExports } from "./router-PslJYw0K.js";
1
+ import { _ as __name, a6 as lineBreakRegex, a2 as distExports } from "./router-6QHcrvmQ.js";
2
2
  var drawRect = /* @__PURE__ */ __name((element, rectData) => {
3
3
  const rectElement = element.append("rect");
4
4
  rectElement.attr("x", rectData.x);
@@ -1,8 +1,8 @@
1
- import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-CR8829ZP.js";
2
- import { _ as __name } from "./router-PslJYw0K.js";
3
- import "./chunk-FMBD7UC4-D6DpqSQ8.js";
4
- import "./chunk-55IACEB6-CTFAFIsE.js";
5
- import "./chunk-QN33PNHL-U9pD23ft.js";
1
+ import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-C8vV9ouR.js";
2
+ import { _ as __name } from "./router-6QHcrvmQ.js";
3
+ import "./chunk-FMBD7UC4-DxER1-MJ.js";
4
+ import "./chunk-55IACEB6-BAdInBZF.js";
5
+ import "./chunk-QN33PNHL-DzFGKjvS.js";
6
6
  import "../server.js";
7
7
  import "node:async_hooks";
8
8
  import "node:stream";