@intent-hq/web 2.306.0 → 2.306.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 (207) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Kg93yoGm.js → -K3sHbfD.js} +1 -1
  3. package/web/app/immutable/chunks/{KGFmy0fB.js → 0HA-zoBe.js} +1 -1
  4. package/web/app/immutable/chunks/{29dNc4rH.js → 0Nbop-Gi.js} +1 -1
  5. package/web/app/immutable/chunks/{D37NtYaH.js → 0hAdbvCp.js} +1 -1
  6. package/web/app/immutable/chunks/{DqYNVW4f.js → 1aiNROX6.js} +1 -1
  7. package/web/app/immutable/chunks/{Cd6oHz3J.js → 2OgXQdTg.js} +2 -2
  8. package/web/app/immutable/chunks/3MYqLfq_.js +271 -0
  9. package/web/app/immutable/chunks/{CD79Z9v-.js → 3RXdGE8s.js} +1 -1
  10. package/web/app/immutable/chunks/{C_1Gq9jA.js → 42IGKw40.js} +6 -6
  11. package/web/app/immutable/chunks/{s2w2kRY0.js → 75Mjj_Cx.js} +1 -1
  12. package/web/app/immutable/chunks/{RUd8eW7z.js → B-pTdxG4.js} +1 -1
  13. package/web/app/immutable/chunks/{CmXITn5s.js → B1iyvpX6.js} +1 -1
  14. package/web/app/immutable/chunks/{Cm3C9uYy.js → B2qNjN_9.js} +1 -1
  15. package/web/app/immutable/chunks/{GwJ0slBw.js → B2ug7y40.js} +1 -1
  16. package/web/app/immutable/chunks/{CGVPV3tv.js → B3-l5a7t.js} +1 -1
  17. package/web/app/immutable/chunks/{Cxvm5h8B.js → B4lg_Ax7.js} +1 -1
  18. package/web/app/immutable/chunks/{jRj_rYu9.js → B7gjFXSc.js} +1 -1
  19. package/web/app/immutable/chunks/{74tu-skL.js → B9OQrvrS.js} +1 -1
  20. package/web/app/immutable/chunks/{DSooNw98.js → BAQwZ6tH.js} +1 -1
  21. package/web/app/immutable/chunks/{wgOokBrD.js → BCnyxzRd.js} +1 -1
  22. package/web/app/immutable/chunks/{_Yj0U2JL.js → BDCpfZ88.js} +1 -1
  23. package/web/app/immutable/chunks/{B_0TLBM6.js → BDIeayOD.js} +1 -1
  24. package/web/app/immutable/chunks/{Czbl-pwg.js → BEnZG6kV.js} +3 -3
  25. package/web/app/immutable/chunks/{C5st-KLS.js → BGIVyURR.js} +1 -1
  26. package/web/app/immutable/chunks/{Dn_URCm9.js → BHbAr34k.js} +1 -1
  27. package/web/app/immutable/chunks/{BQ0kJvqK.js → BHf163Hp.js} +1 -1
  28. package/web/app/immutable/chunks/{6YnmgLlF.js → BI0pA2tO.js} +1 -1
  29. package/web/app/immutable/chunks/{4NvrtXiy.js → BIOT9N5A.js} +1 -1
  30. package/web/app/immutable/chunks/{DtMVJy-g.js → BJ0avpLy.js} +1 -1
  31. package/web/app/immutable/chunks/{s57WPGBK.js → BJcmRhm6.js} +1 -1
  32. package/web/app/immutable/chunks/{COMCZIt7.js → BKDPRUCm.js} +1 -1
  33. package/web/app/immutable/chunks/{DsZCr7hJ.js → BNVqbH8q.js} +1 -1
  34. package/web/app/immutable/chunks/{WC6N15NU.js → BONAG0Zz.js} +1 -1
  35. package/web/app/immutable/chunks/{CZjTL3U8.js → BOm8F3gI.js} +1 -1
  36. package/web/app/immutable/chunks/{C-CnX7vG.js → BRHyGztV.js} +1 -1
  37. package/web/app/immutable/chunks/{jm36PzUz.js → BRnQTv1M.js} +1 -1
  38. package/web/app/immutable/chunks/{DEdCYnC-.js → BS4DuXZu.js} +1 -1
  39. package/web/app/immutable/chunks/{8DeZuS5J.js → BV8oXBag.js} +1 -1
  40. package/web/app/immutable/chunks/{CcioTZY2.js → BVF7zxAh.js} +1 -1
  41. package/web/app/immutable/chunks/{CZ6oPQCg.js → BVPsIjUM.js} +2 -2
  42. package/web/app/immutable/chunks/{D5uQkARh.js → BWFN-ppd.js} +1 -1
  43. package/web/app/immutable/chunks/{DB7lxxBT.js → BY7rSI16.js} +1 -1
  44. package/web/app/immutable/chunks/{ByR8YQwU.js → BYFI8VKx.js} +1 -1
  45. package/web/app/immutable/chunks/{DsMnRsze.js → BYrFf537.js} +1 -1
  46. package/web/app/immutable/chunks/{DVUg9Xe-.js → B_BCGMxl.js} +1 -1
  47. package/web/app/immutable/chunks/{CBkRcZee.js → B_tVrT-3.js} +1 -1
  48. package/web/app/immutable/chunks/{oqglbldc.js → BbZxBrDb.js} +1 -1
  49. package/web/app/immutable/chunks/{DxubiDMb.js → Be8SKg4r.js} +1 -1
  50. package/web/app/immutable/chunks/{Dzbq5nTn.js → Bib1Ld0w.js} +1 -1
  51. package/web/app/immutable/chunks/{D42j1SEd.js → BidEZr_U.js} +7 -7
  52. package/web/app/immutable/chunks/{C7c4gpSt.js → BjyIUK2N.js} +1 -1
  53. package/web/app/immutable/chunks/{DdawHd0B.js → BkX9Ps_M.js} +1 -1
  54. package/web/app/immutable/chunks/{Bx3S0HWY.js → BnM-ma7F.js} +1 -1
  55. package/web/app/immutable/chunks/{D4UCqYDH.js → BqQ3Q4fn.js} +1 -1
  56. package/web/app/immutable/chunks/{CKv9mVym.js → BrmDKYa_.js} +1 -1
  57. package/web/app/immutable/chunks/{23wXkEF6.js → BsfO9-p0.js} +1 -1
  58. package/web/app/immutable/chunks/{DtZuCbAU.js → BuNzpDog.js} +1 -1
  59. package/web/app/immutable/chunks/{8y_1poY4.js → BumG-Dux.js} +1 -1
  60. package/web/app/immutable/chunks/{yovLUjuK.js → Byc4c_PD.js} +1 -1
  61. package/web/app/immutable/chunks/{COdu0yKt.js → C-YgnCug.js} +1 -1
  62. package/web/app/immutable/chunks/{jxyETF7R.js → C0fLk--m.js} +2 -2
  63. package/web/app/immutable/chunks/{JGMDPc6g.js → C0zMyiSJ.js} +2 -2
  64. package/web/app/immutable/chunks/{BlfeiOgv.js → C28n7Phb.js} +1 -1
  65. package/web/app/immutable/chunks/{B0IFzh9X.js → C40RaU5h.js} +1 -1
  66. package/web/app/immutable/chunks/{D74E14DS.js → C4dLiyBe.js} +1 -1
  67. package/web/app/immutable/chunks/{cEzKLidW.js → C5m72sFm.js} +1 -1
  68. package/web/app/immutable/chunks/{BrZUKM39.js → C6K10lBI.js} +1 -1
  69. package/web/app/immutable/chunks/{BgIz4XO-.js → C9Yj84IB.js} +1 -1
  70. package/web/app/immutable/chunks/{CRqt9_Cc.js → C9b_UldH.js} +3 -3
  71. package/web/app/immutable/chunks/{DHlmoCrx.js → CA87WQ97.js} +1 -1
  72. package/web/app/immutable/chunks/CBey_WvY.js +1 -0
  73. package/web/app/immutable/chunks/{DvTwdSdS.js → CCmyu--d.js} +1 -1
  74. package/web/app/immutable/chunks/{C_h8CQJe.js → CGO73jr0.js} +1 -1
  75. package/web/app/immutable/chunks/{CsONrL_3.js → CIgF-_ah.js} +4 -4
  76. package/web/app/immutable/chunks/{CYgNglb2.js → CJ1yzJ2P.js} +1 -1
  77. package/web/app/immutable/chunks/{DsvOgwbj.js → CLMqzZ5J.js} +1 -1
  78. package/web/app/immutable/chunks/{BCxldDM0.js → CNkhSLlP.js} +1 -1
  79. package/web/app/immutable/chunks/{6M4H96s5.js → CO-R7h4z.js} +1 -1
  80. package/web/app/immutable/chunks/{DLXWRCqM.js → CO_WqJhg.js} +1 -1
  81. package/web/app/immutable/chunks/{DnyD1zCB.js → CPMKvYRM.js} +1 -1
  82. package/web/app/immutable/chunks/{euo7acDN.js → CPuUl-lT.js} +1 -1
  83. package/web/app/immutable/chunks/{DBNBDsSD.js → CPw4HgKM.js} +1 -1
  84. package/web/app/immutable/chunks/{SZyF-ndo.js → CQihckew.js} +1 -1
  85. package/web/app/immutable/chunks/{B7zCWgA3.js → CR1rdNrg.js} +1 -1
  86. package/web/app/immutable/chunks/{bSSFocjw.js → CRSNBWlx.js} +1 -1
  87. package/web/app/immutable/chunks/{BkodBoBP.js → CRu4158N.js} +1 -1
  88. package/web/app/immutable/chunks/{DbVTI_EH.js → CUo3zxTn.js} +1 -1
  89. package/web/app/immutable/chunks/{BdLaCRsE.js → CVcsFKHY.js} +1 -1
  90. package/web/app/immutable/chunks/{D66P93Qq.js → CX5RDv3-.js} +1 -1
  91. package/web/app/immutable/chunks/{BCAzyHA9.js → CXa3rz5Q.js} +1 -1
  92. package/web/app/immutable/chunks/{DXeEXuP4.js → CXlZTXlW.js} +4 -4
  93. package/web/app/immutable/chunks/{CwSg4UxO.js → CYDYhvZF.js} +1 -1
  94. package/web/app/immutable/chunks/{BirDtNb4.js → CZTlVo5m.js} +1 -1
  95. package/web/app/immutable/chunks/{CQaoUoUg.js → C_ChNDuQ.js} +1 -1
  96. package/web/app/immutable/chunks/{DEShheo_.js → Ce_r6kn0.js} +1 -1
  97. package/web/app/immutable/chunks/{BpxJrnxe.js → CegsXivu.js} +1 -1
  98. package/web/app/immutable/chunks/{DPwoTber.js → CfFdOG65.js} +1 -1
  99. package/web/app/immutable/chunks/{DY1WFAZY.js → CgVFypp-.js} +1 -1
  100. package/web/app/immutable/chunks/{BMQ6HPvn.js → ChjpbDRF.js} +2 -2
  101. package/web/app/immutable/chunks/{mHeOJdNu.js → CjhLgs0z.js} +1 -1
  102. package/web/app/immutable/chunks/{DkPBKTmm.js → Cl0LHNCY.js} +1 -1
  103. package/web/app/immutable/chunks/{DLvxwNno.js → CloidBrq.js} +1 -1
  104. package/web/app/immutable/chunks/{CE-MJwR9.js → CmHp2c79.js} +1 -1
  105. package/web/app/immutable/chunks/{DW1sz-bZ.js → CpFCp0wR.js} +2 -2
  106. package/web/app/immutable/chunks/{DslISh5T.js → CrR64OQD.js} +1 -1
  107. package/web/app/immutable/chunks/{Cg1pgOTR.js → CrU2g8Lw.js} +1 -1
  108. package/web/app/immutable/chunks/{BeBP_kmD.js → CtrXPyDb.js} +1 -1
  109. package/web/app/immutable/chunks/{CzT0HixX.js → CvAiCjNI.js} +1 -1
  110. package/web/app/immutable/chunks/{DwZ9TxIq.js → Cvx6WR8e.js} +1 -1
  111. package/web/app/immutable/chunks/{BhjnDHlN.js → CxJmMAMJ.js} +1 -1
  112. package/web/app/immutable/chunks/{Ox03GGv7.js → D29m4edw.js} +1 -1
  113. package/web/app/immutable/chunks/{2J4vETqe.js → D4B4SY0N.js} +1 -1
  114. package/web/app/immutable/chunks/{CQ_EHFkc.js → D4TTKIXY.js} +1 -1
  115. package/web/app/immutable/chunks/{vS0l1m3h.js → D4yLKhN-.js} +1 -1
  116. package/web/app/immutable/chunks/{BCMNYaLU.js → D6IJGuYW.js} +1 -1
  117. package/web/app/immutable/chunks/{DdZhZWDI.js → D86k9p2-.js} +1 -1
  118. package/web/app/immutable/chunks/{R6JDi5-3.js → D8D1idBX.js} +1 -1
  119. package/web/app/immutable/chunks/{CdNCT23e.js → DF2glIxL.js} +1 -1
  120. package/web/app/immutable/chunks/{2TPGsu2N.js → DF__1SnN.js} +1 -1
  121. package/web/app/immutable/chunks/{DW78ZPhK.js → DHBcRJcB.js} +6 -6
  122. package/web/app/immutable/chunks/{8N2GfGQr.js → DOAK5m3C.js} +1 -1
  123. package/web/app/immutable/chunks/{Ccq1KQi4.js → DPZAEbfI.js} +1 -1
  124. package/web/app/immutable/chunks/{Cu1lndig.js → DQS4KQBf.js} +1 -1
  125. package/web/app/immutable/chunks/{Dl_roi9s.js → DSHmhxH8.js} +1 -1
  126. package/web/app/immutable/chunks/{C2d4nvNu.js → DVdwcMiY.js} +1 -1
  127. package/web/app/immutable/chunks/{CBPhYVeW.js → DWHMODuY.js} +1 -1
  128. package/web/app/immutable/chunks/{p9Nr9xHJ.js → DYOQcDOJ.js} +1 -1
  129. package/web/app/immutable/chunks/{CL9vM6dm.js → DZHoUGI1.js} +1 -1
  130. package/web/app/immutable/chunks/{CT4-zPqk.js → DZpNEtTX.js} +4 -4
  131. package/web/app/immutable/chunks/{DcSLjWiT.js → D_2-9QO1.js} +1 -1
  132. package/web/app/immutable/chunks/{CiYjHHrV.js → Da2v32Gp.js} +1 -1
  133. package/web/app/immutable/chunks/{DCTKd-xk.js → DcurLbc0.js} +1 -1
  134. package/web/app/immutable/chunks/{CUM9GfEm.js → Der702Q6.js} +1 -1
  135. package/web/app/immutable/chunks/{mzekf2UR.js → DhlcxDcm.js} +1 -1
  136. package/web/app/immutable/chunks/{Dfl2Nbow.js → DjGuyNgW.js} +1 -1
  137. package/web/app/immutable/chunks/{CIDuqdfA.js → DjT1S-Kc.js} +1 -1
  138. package/web/app/immutable/chunks/{vCHxiCpS.js → Dk5yx39p.js} +1 -1
  139. package/web/app/immutable/chunks/{BFBas2DV.js → DkKpEnZx.js} +1 -1
  140. package/web/app/immutable/chunks/{Don1ihlc.js → DnBH3z_J.js} +1 -1
  141. package/web/app/immutable/chunks/{C-8hh9QU.js → DpQR-S-c.js} +2 -2
  142. package/web/app/immutable/chunks/{DwxSPPxX.js → DreNRaSX.js} +1 -1
  143. package/web/app/immutable/chunks/{CTPvEbLw.js → Ds2C0KCr.js} +1 -1
  144. package/web/app/immutable/chunks/{BB3pPOoG.js → DsIvSToZ.js} +1 -1
  145. package/web/app/immutable/chunks/{CqlOXgsM.js → DsKcKI-9.js} +1 -1
  146. package/web/app/immutable/chunks/{EVOA43eV.js → DsbRw6KR.js} +1 -1
  147. package/web/app/immutable/chunks/{BKBGVipO.js → Dt7c4Pax.js} +1 -1
  148. package/web/app/immutable/chunks/{CmQGxHeC.js → DtaNgayX.js} +1 -1
  149. package/web/app/immutable/chunks/{C1ThY53p.js → DuRStaSH.js} +1 -1
  150. package/web/app/immutable/chunks/{CZXxuKk9.js → DyY7UYao.js} +1 -1
  151. package/web/app/immutable/chunks/{BAbrZn3P.js → Dz4U5flk.js} +1 -1
  152. package/web/app/immutable/chunks/{CpCFvUR5.js → E4DVU0Ve.js} +1 -1
  153. package/web/app/immutable/chunks/{CgmgZICf.js → H4uzJ5tm.js} +1 -1
  154. package/web/app/immutable/chunks/{Cw0ShLcQ.js → HTWPmWo1.js} +1 -1
  155. package/web/app/immutable/chunks/{CuYKMtC1.js → JmvNQ7rA.js} +6 -6
  156. package/web/app/immutable/chunks/{BY7wkT_3.js → KibtbkvS.js} +1 -1
  157. package/web/app/immutable/chunks/{BTl3Oubf.js → LSEXtdfW.js} +1 -1
  158. package/web/app/immutable/chunks/{kkN2TyDA.js → NaAGj30I.js} +1 -1
  159. package/web/app/immutable/chunks/{DN0QxpZD.js → OEOiw8Zv.js} +1 -1
  160. package/web/app/immutable/chunks/{ahk4WUI6.js → OMRwJRL3.js} +1 -1
  161. package/web/app/immutable/chunks/{B7GWHjGP.js → OS4xDcHB.js} +1 -1
  162. package/web/app/immutable/chunks/{D1bW_55a.js → P9pyTxbM.js} +1 -1
  163. package/web/app/immutable/chunks/{COSy8ZX2.js → RtqIZ-T6.js} +1 -1
  164. package/web/app/immutable/chunks/{_mDSby89.js → USpWVHnm.js} +1 -1
  165. package/web/app/immutable/chunks/{Bgx4nALQ.js → XKM6D1dO.js} +1 -1
  166. package/web/app/immutable/chunks/{1rtICZ3o.js → Ya8nHHAL.js} +1 -1
  167. package/web/app/immutable/chunks/{DlPKqNjY.js → Z37kMhne.js} +1 -1
  168. package/web/app/immutable/chunks/{DdTz1oBw.js → ZMx24H1A.js} +1 -1
  169. package/web/app/immutable/chunks/{D1OuxwIH.js → ZnLt0fE9.js} +1 -1
  170. package/web/app/immutable/chunks/{NnttFqcV.js → aZF6bDlv.js} +1 -1
  171. package/web/app/immutable/chunks/{taB8rlcJ.js → bUI5sY1p.js} +1 -1
  172. package/web/app/immutable/chunks/{2H2pOzgE.js → coW2EBlC.js} +1 -1
  173. package/web/app/immutable/chunks/{vR2M2tXQ.js → i_ui2AtK.js} +1 -1
  174. package/web/app/immutable/chunks/{Co2pOTXg.js → jc_41O92.js} +1 -1
  175. package/web/app/immutable/chunks/{ErIhP1Or.js → jon-ILd-.js} +1 -1
  176. package/web/app/immutable/chunks/{Bf6adiRl.js → kt1QlIBw.js} +1 -1
  177. package/web/app/immutable/chunks/{CrhVTGSy.js → ofkEm09W.js} +1 -1
  178. package/web/app/immutable/chunks/{CDZHyQz9.js → pSGqM4EC.js} +1 -1
  179. package/web/app/immutable/chunks/{BK1dEhnI.js → ppicpx3_.js} +1 -1
  180. package/web/app/immutable/chunks/{jpTEu9Uq.js → w0evRwYG.js} +1 -1
  181. package/web/app/immutable/chunks/{DLrbfbYe.js → xk8hviOq.js} +1 -1
  182. package/web/app/immutable/chunks/{6YU1rTnu.js → y3EfY1iq.js} +1 -1
  183. package/web/app/immutable/chunks/{D-f__bmd.js → yE0GefJh.js} +1 -1
  184. package/web/app/immutable/chunks/yICy9AKh.js +1 -0
  185. package/web/app/immutable/chunks/{CpcIkzJ3.js → yjed4m93.js} +1 -1
  186. package/web/app/immutable/chunks/{BMQBiu4H.js → zsK7C4zF.js} +1 -1
  187. package/web/app/immutable/entry/{app.CK-Hpyh2.js → app.BsugBf_l.js} +2 -2
  188. package/web/app/immutable/entry/start.Dd2pvNuB.js +1 -0
  189. package/web/app/immutable/nodes/{0.BxwgNys0.js → 0.BUEIE24N.js} +1 -1
  190. package/web/app/immutable/nodes/{1.tN8Tzr0D.js → 1.BKC59JW5.js} +1 -1
  191. package/web/app/immutable/nodes/{10.DfctsIbO.js → 10.BMoBViEo.js} +1 -1
  192. package/web/app/immutable/nodes/{14.B5tO7fGp.js → 14.Dau7GBym.js} +1 -1
  193. package/web/app/immutable/nodes/{16.DdEDRsVP.js → 16.DXc_h5PO.js} +2 -2
  194. package/web/app/immutable/nodes/{2.CipDiEFv.js → 2.BsBA5i5n.js} +3 -3
  195. package/web/app/immutable/nodes/{3.Dpx3c-rl.js → 3.WswdjeM1.js} +1 -1
  196. package/web/app/immutable/nodes/{4.CMSVuHVO.js → 4.-Gv7tAts.js} +1 -1
  197. package/web/app/immutable/nodes/{5.Cm0OfeIw.js → 5.DdQ7rrQh.js} +1 -1
  198. package/web/app/immutable/nodes/{6.Bffpx01N.js → 6.OopM0IgM.js} +1 -1
  199. package/web/app/immutable/nodes/{7.CaPWhsaS.js → 7.CWcWl9G3.js} +1 -1
  200. package/web/app/immutable/nodes/{8.HUlPWPAa.js → 8.EzsX9Tkq.js} +2 -2
  201. package/web/app/immutable/nodes/{9.CDXOgyhA.js → 9._bY29opp.js} +1 -1
  202. package/web/app/version.json +1 -1
  203. package/web/index.html +9 -9
  204. package/web/app/immutable/chunks/BWfRUytQ.js +0 -1
  205. package/web/app/immutable/chunks/C_xoyHDc.js +0 -1
  206. package/web/app/immutable/chunks/E73kLELh.js +0 -271
  207. package/web/app/immutable/entry/start.KSs_sHzq.js +0 -1
@@ -1 +1 @@
1
- import{t as Qt,bq as K,by as Xt,b as Yt,a_ as P,bu as Q,bs as Ie,bo as i}from"./Hm6HJMdl.js";import{bs as jt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as R,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./DhxGbYJa.js";import{c as Te}from"./CZ41NJh6.js";import{f as z}from"./DMAjhyuj.js";import"./HMdomBNY.js";import{e as Fe,L as qt}from"./CI_NLoyz.js";import"./Cmjk8ggx.js";import"./B1b30ohy.js";import{k as Ue,G as Ee,J as Oe}from"./CZ6oPQCg.js";import{I as Wt}from"./DyNuRYlY.js";import"./Czh4UePJ.js";import{Hp as W,fk as Kt,z as He,ec as Rt,pY as Be,t2 as Me,Hg as qe,nN as We,hv as Ke}from"./knTaiA68.js";import{aV as Vt,aW as Jt,aX as Re,aQ as Ve,aR as Nt,aS as Je,aT as Ne,a$ as Qe}from"./Ccq1KQi4.js";var Xe=I('<!> <p class="type-body"> </p>',1);function Ye(it,m){if(new.target)return Qt({component:Ye,...it});jt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),X=K(m,"onSelect",7);function V(r){D(!1),X()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),R()},get static(){return B()},set static(r=!1){B(r),R()},get title(){return st()},set title(r){st(r),R()},get message(){return _()},set message(r){_(r),R()},get buttons(){return k()},set buttons(r){k(r),R()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),R()},get onSelect(){return X()},set onSelect(r){X(r),R()},$set:Xt,$on:(r,M)=>Yt(m,r,M)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(k().length-1),onCancel:()=>V(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(Y,j,J)=>{{let Z=g(()=>J===b()?"ghost":J===k().length-1?"primary":"outline");z(Y,{get variant(){return t(Z)},onclick:()=>V(J),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(j))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Xe(),Y=yt(w);Te(Y,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var j=l(Y,2),J=H(j,!0);s(()=>o(J,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var je=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Qt({component:ua,...it});jt(m,!0);const B=()=>Q(ct,"$storedInstance$",r),st=()=>Q(ee,"$deviceGrantSupported$",r),_=()=>Q(ne,"$instanceSetupSupported$",r),k=()=>Q(pt,"$isAuthenticating$",r),b=()=>Q(ut,"$isCancelling$",r),X=()=>Q(te,"$deviceFlow$",r),V=()=>Q(_t,"$cancelOutcome$",r),vt=()=>Q(ae,"$error$",r),[r,M]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const Y=`${D}-host`,j=`${D}-host-help`,J=`${D}-host-error`,Z=`${D}-token`,ct=Vt(),pt=Jt(),ut=Re(),_t=Ve(),te=Nt(),ee=Je(),ae=Ne(),ne=Qe();let bt=kt(Ge(Vt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Jt.select(e)&&Nt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Rt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||W.dispatch(Rt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),R()},get onCancel(){return w()},set onCancel(c){w(c),R()},$set:Xt,$on:(c,e)=>Yt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=je(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return X().userCode},get verificationUri(){return X().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return Y},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?j:`${j} ${J}`);Wt(G,{get id(){return Y},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{Mt($,"id",J),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),N=E(A);{let v=g(()=>!t(re));z(N,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(N,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",j),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&X()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>V()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{V()==="cancelled"?e(ge):(V()==="already-started"||V()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Ye as M};
1
+ import{t as Qt,bq as K,by as Xt,b as Yt,a_ as P,bu as Q,bs as Ie,bo as i}from"./Hm6HJMdl.js";import{bs as jt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as R,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./DhxGbYJa.js";import{c as Te}from"./CZ41NJh6.js";import{f as z}from"./DMAjhyuj.js";import"./HMdomBNY.js";import{e as Fe,L as qt}from"./CI_NLoyz.js";import"./Cmjk8ggx.js";import"./B1b30ohy.js";import{k as Ue,G as Ee,J as Oe}from"./BVPsIjUM.js";import{I as Wt}from"./DyNuRYlY.js";import"./Czh4UePJ.js";import{Hp as W,fk as Kt,z as He,ec as Rt,pY as Be,t2 as Me,Hg as qe,nN as We,hv as Ke}from"./knTaiA68.js";import{aV as Vt,aW as Jt,aX as Re,aQ as Ve,aR as Nt,aS as Je,aT as Ne,a$ as Qe}from"./DPZAEbfI.js";var Xe=I('<!> <p class="type-body"> </p>',1);function Ye(it,m){if(new.target)return Qt({component:Ye,...it});jt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),X=K(m,"onSelect",7);function V(r){D(!1),X()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),R()},get static(){return B()},set static(r=!1){B(r),R()},get title(){return st()},set title(r){st(r),R()},get message(){return _()},set message(r){_(r),R()},get buttons(){return k()},set buttons(r){k(r),R()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),R()},get onSelect(){return X()},set onSelect(r){X(r),R()},$set:Xt,$on:(r,M)=>Yt(m,r,M)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(k().length-1),onCancel:()=>V(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(Y,j,J)=>{{let Z=g(()=>J===b()?"ghost":J===k().length-1?"primary":"outline");z(Y,{get variant(){return t(Z)},onclick:()=>V(J),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(j))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Xe(),Y=yt(w);Te(Y,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var j=l(Y,2),J=H(j,!0);s(()=>o(J,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var je=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Qt({component:ua,...it});jt(m,!0);const B=()=>Q(ct,"$storedInstance$",r),st=()=>Q(ee,"$deviceGrantSupported$",r),_=()=>Q(ne,"$instanceSetupSupported$",r),k=()=>Q(pt,"$isAuthenticating$",r),b=()=>Q(ut,"$isCancelling$",r),X=()=>Q(te,"$deviceFlow$",r),V=()=>Q(_t,"$cancelOutcome$",r),vt=()=>Q(ae,"$error$",r),[r,M]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const Y=`${D}-host`,j=`${D}-host-help`,J=`${D}-host-error`,Z=`${D}-token`,ct=Vt(),pt=Jt(),ut=Re(),_t=Ve(),te=Nt(),ee=Je(),ae=Ne(),ne=Qe();let bt=kt(Ge(Vt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Jt.select(e)&&Nt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Rt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||W.dispatch(Rt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),R()},get onCancel(){return w()},set onCancel(c){w(c),R()},$set:Xt,$on:(c,e)=>Yt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=je(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return X().userCode},get verificationUri(){return X().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return Y},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?j:`${j} ${J}`);Wt(G,{get id(){return Y},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{Mt($,"id",J),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),N=E(A);{let v=g(()=>!t(re));z(N,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(N,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",j),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&X()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>V()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{V()==="cancelled"?e(ge):(V()==="already-started"||V()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Ye as M};
@@ -1,4 +1,4 @@
1
- import{p as $}from"./8y_1poY4.js";import{p as C}from"./DLrbfbYe.js";import{a as u,j as m,aE as S,r as D,ad as w,aG as P,L as T,aI as E,O as F,K as z,aF as A,M as W,y as _,k as L}from"./D42j1SEd.js";import{g as M}from"./CuYKMtC1.js";var N=_.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=F,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=m({...N,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){L(),this.packet=[]}},M(b,"PacketDB"),u(b,"PacketDB"),b),I=1e4,O=u((e,t)=>{$(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<I;){const[p,o]=Y({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),Y=u((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:u(async e=>{const t=await C("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),O(t,r)},"parse")},j=u((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())G(f,B,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=u((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),K={draw:j},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=u(({packet:e}={})=>{const t=m(H,e);return`
1
+ import{p as $}from"./BumG-Dux.js";import{p as C}from"./xk8hviOq.js";import{a as u,j as m,aE as S,r as D,ad as w,aG as P,L as T,aI as E,O as F,K as z,aF as A,M as W,y as _,k as L}from"./BidEZr_U.js";import{g as M}from"./JmvNQ7rA.js";var N=_.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=F,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=m({...N,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){L(),this.packet=[]}},M(b,"PacketDB"),u(b,"PacketDB"),b),I=1e4,O=u((e,t)=>{$(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<I;){const[p,o]=Y({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),Y=u((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:u(async e=>{const t=await C("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),O(t,r)},"parse")},j=u((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())G(f,B,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=u((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),K={draw:j},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=u(({packet:e}={})=>{const t=m(H,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,4 +1,4 @@
1
- import{p as Nt}from"./8y_1poY4.js";import{p as Lt}from"./DLrbfbYe.js";import{aF as zt,K as At,O as Tt,aI as Xt,L as Et,aG as Yt,a as u,U as It,M as Bt,j as gt,ad as ut,aE as Ft,r as Ot,k as Rt,N as V}from"./D42j1SEd.js";import{g as k}from"./CuYKMtC1.js";var q=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:q(r,`${e} evolution`),y:q(o,`${e} visibility`)}),"toCoordinates"),yt=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Wt=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Dt=u((o,r)=>{if(Nt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,S=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=q(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",S,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=yt(e.fromPort)??yt(e.toPort);const{flow:d,label:w}=Wt(e.arrow);!a&&d&&(a=d);const S=e.linkLabel,g=w??S;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=q(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),wt={parser:{yy:void 0},parse:u(async o=>{const r=await Lt("wardley",o);ut.debug(r);const e=wt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Dt(r,e)},"parse")},E,Gt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k(E,"WardleyBuilder"),u(E,"WardleyBuilder"),E),b=new Gt;function U(){return V()["wardley-beta"]}k(U,"getConfig3");u(U,"getConfig");function Z(o,r,e,h,a,d,w,S,g){b.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:S,sourceStrategy:g})}k(Z,"addNode");u(Z,"addNode");function K(o,r,e=!1,h,a){b.addLink({source:o,target:r,dashed:e,label:h,flow:a})}k(K,"addLink");u(K,"addLink");function J(o,r,e){b.addTrend({nodeId:o,targetX:r,targetY:e})}k(J,"addTrend");u(J,"addTrend");function Q(o,r,e){b.addAnnotation({number:o,coordinates:r,text:e})}k(Q,"addAnnotation");u(Q,"addAnnotation");function tt(o,r,e){b.addNote({text:o,x:r,y:e})}k(tt,"addNote");u(tt,"addNote");function et(o,r,e){b.addAccelerator({name:o,x:r,y:e})}k(et,"addAccelerator");u(et,"addAccelerator");function at(o,r,e){b.addDeaccelerator({name:o,x:r,y:e})}k(at,"addDeaccelerator");u(at,"addDeaccelerator");function rt(o,r){b.setAnnotationsBox(o,r)}k(rt,"setAnnotationsBox");u(rt,"setAnnotationsBox");function ot(o,r){b.setSize(o,r)}k(ot,"setSize");u(ot,"setSize");function nt(o){b.startPipeline(o)}k(nt,"startPipeline");u(nt,"startPipeline");function st(o,r){b.addPipelineComponent(o,r)}k(st,"addPipelineComponent");u(st,"addPipelineComponent");function it(o){b.setAxes(o)}k(it,"updateAxes");u(it,"updateAxes");function dt(o){return b.getNode(o)}k(dt,"getNode");u(dt,"getNode");function lt(o){return b.resolveNodeId(o)}k(lt,"resolveNodeId");u(lt,"resolveNodeId");function ct(){return b.build()}k(ct,"getWardleyData");u(ct,"getWardleyData");function pt(){b.clear(),Rt()}k(pt,"clear2");u(pt,"clear");var qt={getConfig:U,addNode:Z,addLink:K,addTrend:J,addAnnotation:Q,addNote:tt,addAccelerator:et,addDeaccelerator:at,setAnnotationsBox:rt,setSize:ot,startPipeline:nt,addPipelineComponent:st,updateAxes:it,getNode:dt,resolveNodeId:lt,getWardleyData:ct,clear:pt,setAccTitle:Yt,getAccTitle:Et,setDiagramTitle:Xt,getDiagramTitle:Tt,getAccDescription:At,setAccDescription:zt},Ht=["Genesis","Custom Built","Product","Commodity"],jt=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),_t=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{ut.debug(`Rendering Wardley map
1
+ import{p as Nt}from"./BumG-Dux.js";import{p as Lt}from"./xk8hviOq.js";import{aF as zt,K as At,O as Tt,aI as Xt,L as Et,aG as Yt,a as u,U as It,M as Bt,j as gt,ad as ut,aE as Ft,r as Ot,k as Rt,N as V}from"./BidEZr_U.js";import{g as k}from"./JmvNQ7rA.js";var q=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:q(r,`${e} evolution`),y:q(o,`${e} visibility`)}),"toCoordinates"),yt=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Wt=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Dt=u((o,r)=>{if(Nt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,S=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=q(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",S,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=yt(e.fromPort)??yt(e.toPort);const{flow:d,label:w}=Wt(e.arrow);!a&&d&&(a=d);const S=e.linkLabel,g=w??S;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=q(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),wt={parser:{yy:void 0},parse:u(async o=>{const r=await Lt("wardley",o);ut.debug(r);const e=wt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Dt(r,e)},"parse")},E,Gt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k(E,"WardleyBuilder"),u(E,"WardleyBuilder"),E),b=new Gt;function U(){return V()["wardley-beta"]}k(U,"getConfig3");u(U,"getConfig");function Z(o,r,e,h,a,d,w,S,g){b.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:S,sourceStrategy:g})}k(Z,"addNode");u(Z,"addNode");function K(o,r,e=!1,h,a){b.addLink({source:o,target:r,dashed:e,label:h,flow:a})}k(K,"addLink");u(K,"addLink");function J(o,r,e){b.addTrend({nodeId:o,targetX:r,targetY:e})}k(J,"addTrend");u(J,"addTrend");function Q(o,r,e){b.addAnnotation({number:o,coordinates:r,text:e})}k(Q,"addAnnotation");u(Q,"addAnnotation");function tt(o,r,e){b.addNote({text:o,x:r,y:e})}k(tt,"addNote");u(tt,"addNote");function et(o,r,e){b.addAccelerator({name:o,x:r,y:e})}k(et,"addAccelerator");u(et,"addAccelerator");function at(o,r,e){b.addDeaccelerator({name:o,x:r,y:e})}k(at,"addDeaccelerator");u(at,"addDeaccelerator");function rt(o,r){b.setAnnotationsBox(o,r)}k(rt,"setAnnotationsBox");u(rt,"setAnnotationsBox");function ot(o,r){b.setSize(o,r)}k(ot,"setSize");u(ot,"setSize");function nt(o){b.startPipeline(o)}k(nt,"startPipeline");u(nt,"startPipeline");function st(o,r){b.addPipelineComponent(o,r)}k(st,"addPipelineComponent");u(st,"addPipelineComponent");function it(o){b.setAxes(o)}k(it,"updateAxes");u(it,"updateAxes");function dt(o){return b.getNode(o)}k(dt,"getNode");u(dt,"getNode");function lt(o){return b.resolveNodeId(o)}k(lt,"resolveNodeId");u(lt,"resolveNodeId");function ct(){return b.build()}k(ct,"getWardleyData");u(ct,"getWardleyData");function pt(){b.clear(),Rt()}k(pt,"clear2");u(pt,"clear");var qt={getConfig:U,addNode:Z,addLink:K,addTrend:J,addAnnotation:Q,addNote:tt,addAccelerator:et,addDeaccelerator:at,setAnnotationsBox:rt,setSize:ot,startPipeline:nt,addPipelineComponent:st,updateAxes:it,getNode:dt,resolveNodeId:lt,getWardleyData:ct,clear:pt,setAccTitle:Yt,getAccTitle:Et,setDiagramTitle:Xt,getDiagramTitle:Tt,getAccDescription:At,setAccDescription:zt},Ht=["Genesis","Custom Built","Product","Commodity"],jt=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),_t=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{ut.debug(`Rendering Wardley map
2
2
  `+o);const a=_t(),d=jt(),w=a.nodeRadius*1.6,S=h.db,g=S.getWardleyData(),R=S.getDiagramTitle(),M=g.size?.width??a.width,$=g.size?.height??a.height,I=Ft(r);I.selectAll("*").remove(),Ot(I,$,M,a.useMaxWidth),I.attr("viewBox",`0 0 ${M} ${$}`);const P=I.append("g").attr("class","wardley-map"),H=I.append("defs");H.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),H.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),H.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),P.append("rect").attr("class","wardley-background").attr("width",M).attr("height",$).attr("fill",d.backgroundColor);const B=M-a.padding*2,F=$-a.padding*2;R&&P.append("text").attr("class","wardley-title").attr("x",M/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*B,"projectX"),A=u(t=>$-a.padding-t/100*F,"projectY"),W=P.append("g").attr("class","wardley-axes");W.append("line").attr("x1",a.padding).attr("x2",M-a.padding).attr("y1",$-a.padding).attr("y2",$-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),W.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",$-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const mt=g.axes.xLabel??"Evolution",kt=g.axes.yLabel??"Visibility";W.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+B/2).attr("y",$-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(mt),W.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+F/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+F/2})`).text(kt);const O=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Ht;if(O.length>0){const t=P.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===O.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/O.length;O.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}O.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*B,x=a.padding+l.end*B,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",$-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",$-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=P.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+B*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",$-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",M-a.padding).attr("y1",$-a.padding-F*n).attr("y2",$-a.padding-F*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:A(t.y),node:t})}),g.pipelines.length>0){const t=P.append("g").attr("class","wardley-pipelines"),s=P.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,C=c.get(n.nodeId);if(C){const L=(p+l)/2;C.x=L,C.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const ft=P.append("g").attr("class","wardley-links"),ht=new Map;g.pipelines.forEach(t=>{ht.set(t.nodeId,new Set(t.componentIds))});const xt=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||ht.get(t.target)?.has(t.source)));ft.selectAll("line").data(xt).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),ft.selectAll("text").data(xt.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,C=-l/x,L=i+m*y,D=p+C*y;let Y=Math.atan2(f,l)*180/Math.PI;return(Y>90||Y<-90)&&(Y+=180),`rotate(${Y} ${L} ${D})`}).text(t=>t.label);const bt=P.append("g").attr("class","wardley-trends"),$t=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=A(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);bt.selectAll("line").data($t).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const N=P.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));N.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),N.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),N.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=N.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),N.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const j=a.nodeRadius*.7,v=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-v).attr("x2",t=>c.get(t.id).x-v*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-v*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+v*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+v*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-v).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-v).attr("r",j).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-v*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+v*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+v*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),N.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),N.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),N.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=P.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:A(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=A(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,C)=>m.number-C.number),y=[];if(x.forEach((m,C)=>{const L=f.append("text").attr("x",s+i).attr("y",n+i+(C+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(L)}),y.length>0){let m=0,C=0;y.forEach(_=>{const G=_.node(),St=G.getComputedTextLength();m=Math.max(m,St);const Mt=G.getBBox();C=Math.max(C,Mt.height)});const L=m+i*2+105,D=x.length*p+i*2+C/2,Y=a.padding,vt=M-a.padding-L,Pt=a.padding,Ct=$-a.padding-D;s=Math.max(Y,Math.min(s,vt)),n=Math.max(Pt,Math.min(n,Ct)),y.forEach((_,G)=>{_.attr("x",s+i).attr("y",n+i+(G+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",L).attr("height",D).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=P.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=A(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=P.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=A(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{I as X}from"./BK1dEhnI.js";import{p as z}from"./D-f__bmd.js";import{c9 as O,c7 as G,c6 as Y,aP as P,aK as F,aL as Z,f as g,$ as k,bC as A,c4 as q,a6 as U,aN as E,a0 as j,c2 as K,aR as J,ax as Q,bY as ee}from"./CuYKMtC1.js";import{p as te}from"./DEvh6UGV.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,$=/^[\s│┃]+$/,N=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,T=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as X}from"./ppicpx3_.js";import{p as z}from"./yE0GefJh.js";import{c9 as O,c7 as G,c6 as Y,aP as P,aK as F,aL as Z,f as g,$ as k,bC as A,c4 as q,a6 as U,aN as E,a0 as j,c2 as K,aR as J,ax as Q,bY as ee}from"./JmvNQ7rA.js";import{p as te}from"./DEvh6UGV.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,$=/^[\s│┃]+$/,N=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,T=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||T.test(c)||N.test(c)||$.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(N.test(c)){o.push(c),a++,e.set(a,h);continue}if($.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=re.repeat(m);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>k(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},C=de,he=g(n=>{z(n,C);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;C.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function I(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(I,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return I(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return I(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await J(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),V=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;V(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;V(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ie=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=k(Ce,n);return`
@@ -1,4 +1,4 @@
1
- import{I as er}from"./BK1dEhnI.js";import{f as x,c8 as rr,aO as $,c3 as Yt,bC as at,aA as Me,a6 as ar,u as sr,a4 as N,c7 as De,c6 as ir,c9 as nr,aL as or,aK as cr,aP as lr,bB as hr,J as dr,a0 as Tr,c2 as Wt,cx as Q,b0 as Z,Q as kt,bQ as Be,Z as pr,aN as Ft,aY as Er,b_ as Ve}from"./CuYKMtC1.js";import{d as ur,h as se,g as dt,e as fr,a as ie,b as ne}from"./jm36PzUz.js";var ee=(function(){var e=x(function(ut,S,v,P){for(v=v||{},P=ut.length;P--;v[ut[P]]=S);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],E=[1,14],h=[1,15],p=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],X=[1,40],nt=[1,42],j=[1,43],q=[1,44],st=[1,45],tt=[1,46],Y=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],St=[1,74],Dt=[1,80],m=[1,81],k=[1,82],lt=[1,83],et=[1,84],K=[1,85],Ot=[1,86],oe=[1,87],ce=[1,88],le=[1,89],he=[1,90],de=[1,91],Te=[1,92],pe=[1,93],Ee=[1,94],ue=[1,95],fe=[1,96],_e=[1,97],ge=[1,98],xe=[1,99],Ie=[1,100],ye=[1,101],Re=[1,102],Oe=[1,103],Le=[1,104],be=[1,105],me=[2,78],wt=[4,5,17,51,53,54],vt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ae=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Gt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Xt=[5,52],F=[70,71,72,73],ot=[1,151],Jt={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(function(S,v,P,y,z,o,Nt){var d=o.length-1;switch(z){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},e(C,[2,5]),{9:48,13:13,14:E,15:h,18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:G,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:St},{23:75,55:76,73:St},{23:77,73:Y},{69:78,72:[1,79],78:Dt,79:m,80:k,81:lt,82:et,83:K,84:Ot,85:oe,86:ce,87:le,88:he,89:de,90:Te,91:pe,92:Ee,93:ue,94:fe,95:_e,96:ge,97:xe,98:Ie,99:ye,100:Re,101:Oe,102:Le,103:be},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],me),e(C,[2,6]),e(C,[2,16]),e(wt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(vt,i,{7:120}),e(vt,i,{7:121}),e(vt,i,{7:122}),e(Ae,i,{41:123,7:124}),e(Gt,i,{43:125,7:126}),e(Gt,i,{7:126,43:127}),e(Se,i,{46:128,7:129}),e(vt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Xt,me,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:Dt,79:m,80:k,81:lt,82:et,83:K,84:Ot,85:oe,86:ce,87:le,88:he,89:de,90:Te,91:pe,92:Ee,93:ue,94:fe,95:_e,96:ge,97:xe,98:Ie,99:ye,100:Re,101:Oe,102:Le,103:be},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:ot},{58:152,104:ot},{58:153,104:ot},{58:154,104:ot},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:X},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,161],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,162],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,163],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,47],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,45],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,43],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,171],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Xt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:ot},{23:181,72:[1,182],73:Y},{58:183,104:ot},{58:184,104:ot},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(wt,[2,11]),{13:186,51:U,53:G,54:X},e(wt,[2,13]),e(wt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ot},{58:196,104:ot},{58:197,104:ot},{5:[2,75]},{58:198,104:ot},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(wt,[2,12]),e(Ae,i,{7:124,41:201}),e(Gt,i,{7:126,43:202}),e(Se,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Xt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ot},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(function(S,v){if(v.recoverable)this.trace(S);else{var P=new Error(S);throw P.hash=v,P}},"parseError"),parse:x(function(S){var v=this,P=[0],y=[],z=[null],o=[],Nt=this.table,d="",Mt=0,we=0,Ze=2,Ne=1,$e=o.slice.call(arguments,1),J=Object.create(this.lexer),gt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(gt.yy[Qt]=this.yy[Qt]);J.setInput(S,gt.yy),gt.yy.lexer=J,gt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Zt=J.yylloc;o.push(Zt);var je=J.options&&J.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tr(it){P.length=P.length-2*it,z.length=z.length-it,o.length=o.length-it}x(tr,"popStack");function Pe(){var it;return it=y.pop()||J.lex()||Ne,typeof it!="number"&&(it instanceof Array&&(y=it,it=y.pop()),it=v.symbols_[it]||it),it}x(Pe,"lex");for(var rt,xt,ct,$t,Lt={},Bt,Tt,ke,Vt;;){if(xt=P[P.length-1],this.defaultActions[xt]?ct=this.defaultActions[xt]:((rt===null||typeof rt>"u")&&(rt=Pe()),ct=Nt[xt]&&Nt[xt][rt]),typeof ct>"u"||!ct.length||!ct[0]){var jt="";Vt=[];for(Bt in Nt[xt])this.terminals_[Bt]&&Bt>Ze&&Vt.push("'"+this.terminals_[Bt]+"'");J.showPosition?jt="Parse error on line "+(Mt+1)+`:
1
+ import{I as er}from"./ppicpx3_.js";import{f as x,c8 as rr,aO as $,c3 as Yt,bC as at,aA as Me,a6 as ar,u as sr,a4 as N,c7 as De,c6 as ir,c9 as nr,aL as or,aK as cr,aP as lr,bB as hr,J as dr,a0 as Tr,c2 as Wt,cx as Q,b0 as Z,Q as kt,bQ as Be,Z as pr,aN as Ft,aY as Er,b_ as Ve}from"./JmvNQ7rA.js";import{d as ur,h as se,g as dt,e as fr,a as ie,b as ne}from"./BRnQTv1M.js";var ee=(function(){var e=x(function(ut,S,v,P){for(v=v||{},P=ut.length;P--;v[ut[P]]=S);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],E=[1,14],h=[1,15],p=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],X=[1,40],nt=[1,42],j=[1,43],q=[1,44],st=[1,45],tt=[1,46],Y=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],St=[1,74],Dt=[1,80],m=[1,81],k=[1,82],lt=[1,83],et=[1,84],K=[1,85],Ot=[1,86],oe=[1,87],ce=[1,88],le=[1,89],he=[1,90],de=[1,91],Te=[1,92],pe=[1,93],Ee=[1,94],ue=[1,95],fe=[1,96],_e=[1,97],ge=[1,98],xe=[1,99],Ie=[1,100],ye=[1,101],Re=[1,102],Oe=[1,103],Le=[1,104],be=[1,105],me=[2,78],wt=[4,5,17,51,53,54],vt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ae=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Gt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Xt=[5,52],F=[70,71,72,73],ot=[1,151],Jt={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:x(function(S,v,P,y,z,o,Nt){var d=o.length-1;switch(z){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},e(C,[2,5]),{9:48,13:13,14:E,15:h,18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:U,53:G,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:St},{23:75,55:76,73:St},{23:77,73:Y},{69:78,72:[1,79],78:Dt,79:m,80:k,81:lt,82:et,83:K,84:Ot,85:oe,86:ce,87:le,88:he,89:de,90:Te,91:pe,92:Ee,93:ue,94:fe,95:_e,96:ge,97:xe,98:Ie,99:ye,100:Re,101:Oe,102:Le,103:be},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],me),e(C,[2,6]),e(C,[2,16]),e(wt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(vt,i,{7:120}),e(vt,i,{7:121}),e(vt,i,{7:122}),e(Ae,i,{41:123,7:124}),e(Gt,i,{43:125,7:126}),e(Gt,i,{7:126,43:127}),e(Se,i,{46:128,7:129}),e(vt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Xt,me,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:Y},{69:146,78:Dt,79:m,80:k,81:lt,82:et,83:K,84:Ot,85:oe,86:ce,87:le,88:he,89:de,90:Te,91:pe,92:Ee,93:ue,94:fe,95:_e,96:ge,97:xe,98:Ie,99:ye,100:Re,101:Oe,102:Le,103:be},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:ot},{58:152,104:ot},{58:153,104:ot},{58:154,104:ot},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:X},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,161],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,162],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,163],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,47],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,45],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[2,43],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{4:n,5:s,8:8,9:10,10:c,13:13,14:E,15:h,17:[1,171],18:16,19:p,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:X,56:nt,61:j,62:q,63:st,64:tt,73:Y},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Xt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:ot},{23:181,72:[1,182],73:Y},{58:183,104:ot},{58:184,104:ot},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(wt,[2,11]),{13:186,51:U,53:G,54:X},e(wt,[2,13]),e(wt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ot},{58:196,104:ot},{58:197,104:ot},{5:[2,75]},{58:198,104:ot},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(wt,[2,12]),e(Ae,i,{7:124,41:201}),e(Gt,i,{7:126,43:202}),e(Se,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Xt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ot},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(function(S,v){if(v.recoverable)this.trace(S);else{var P=new Error(S);throw P.hash=v,P}},"parseError"),parse:x(function(S){var v=this,P=[0],y=[],z=[null],o=[],Nt=this.table,d="",Mt=0,we=0,Ze=2,Ne=1,$e=o.slice.call(arguments,1),J=Object.create(this.lexer),gt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(gt.yy[Qt]=this.yy[Qt]);J.setInput(S,gt.yy),gt.yy.lexer=J,gt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Zt=J.yylloc;o.push(Zt);var je=J.options&&J.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tr(it){P.length=P.length-2*it,z.length=z.length-it,o.length=o.length-it}x(tr,"popStack");function Pe(){var it;return it=y.pop()||J.lex()||Ne,typeof it!="number"&&(it instanceof Array&&(y=it,it=y.pop()),it=v.symbols_[it]||it),it}x(Pe,"lex");for(var rt,xt,ct,$t,Lt={},Bt,Tt,ke,Vt;;){if(xt=P[P.length-1],this.defaultActions[xt]?ct=this.defaultActions[xt]:((rt===null||typeof rt>"u")&&(rt=Pe()),ct=Nt[xt]&&Nt[xt][rt]),typeof ct>"u"||!ct.length||!ct[0]){var jt="";Vt=[];for(Bt in Nt[xt])this.terminals_[Bt]&&Bt>Ze&&Vt.push("'"+this.terminals_[Bt]+"'");J.showPosition?jt="Parse error on line "+(Mt+1)+`:
2
2
  `+J.showPosition()+`
3
3
  Expecting `+Vt.join(", ")+", got '"+(this.terminals_[rt]||rt)+"'":jt="Parse error on line "+(Mt+1)+": Unexpected "+(rt==Ne?"end of input":"'"+(this.terminals_[rt]||rt)+"'"),this.parseError(jt,{text:J.match,token:this.terminals_[rt]||rt,line:J.yylineno,loc:Zt,expected:Vt})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xt+", token: "+rt);switch(ct[0]){case 1:P.push(rt),z.push(J.yytext),o.push(J.yylloc),P.push(ct[1]),rt=null,we=J.yyleng,d=J.yytext,Mt=J.yylineno,Zt=J.yylloc;break;case 2:if(Tt=this.productions_[ct[1]][1],Lt.$=z[z.length-Tt],Lt._$={first_line:o[o.length-(Tt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Tt||1)].first_column,last_column:o[o.length-1].last_column},je&&(Lt._$.range=[o[o.length-(Tt||1)].range[0],o[o.length-1].range[1]]),$t=this.performAction.apply(Lt,[d,we,Mt,gt.yy,ct[1],z,o].concat($e)),typeof $t<"u")return $t;Tt&&(P=P.slice(0,-1*Tt*2),z=z.slice(0,-1*Tt),o=o.slice(0,-1*Tt)),P.push(this.productions_[ct[1]][0]),z.push(Lt.$),o.push(Lt._$),ke=Nt[P[P.length-2]][P[P.length-1]],P.push(ke);break;case 3:return!0}}return!0},"parse")},Qe=(function(){var ut={EOF:1,parseError:x(function(v,P){if(this.yy.parser)this.yy.parser.parseError(v,P);else throw new Error(v)},"parseError"),setInput:x(function(S,v){return this.yy=v||this.yy||{},this._input=S,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:x(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var v=S.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:x(function(S){var v=S.length,P=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var y=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),P.length-1&&(this.yylineno-=P.length-1);var z=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:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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:x(function(S){this.unput(this.match.slice(S))},"less"),pastInput:x(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var S=this.pastInput(),v=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{bo as C,t as wt,bq as M,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./Hm6HJMdl.js";import{bs as It,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as V,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{D as St}from"./BvqaU45v.js";import{c as Wt}from"./CZ41NJh6.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./DcSLjWiT.js";import"./DhxGbYJa.js";import"./Czh4UePJ.js";import{bb as Dt}from"./P09O58_5.js";import"./DMAjhyuj.js";import"./CZ6oPQCg.js";import{Hp as E,HW as Nt,Ia as Ft,H$ as Bt,tY as Et}from"./knTaiA68.js";import{T as Lt}from"./DtZuCbAU.js";import{g as Ut}from"./CoSk1zgY.js";import{dl as Ot}from"./C2a2cvUs.js";import{bN as Ht,bK as jt,b5 as Mt}from"./DdZhZWDI.js";import"./p97llLQ-.js";import{M as Vt}from"./NL2hP03-.js";import{V as qt}from"./B86TWLIj.js";import{O as Rt}from"./BdLaCRsE.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Kt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function q(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function X(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Yt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||C.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||C.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Yt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=q(n,r);if(e.type.startsWith("file:")&&c){const d=X(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>q(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=q(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:X(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
1
+ import{bo as C,t as wt,bq as M,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./Hm6HJMdl.js";import{bs as It,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as V,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{D as St}from"./BvqaU45v.js";import{c as Wt}from"./CZ41NJh6.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./D_2-9QO1.js";import"./DhxGbYJa.js";import"./Czh4UePJ.js";import{bb as Dt}from"./P09O58_5.js";import"./DMAjhyuj.js";import"./BVPsIjUM.js";import{Hp as E,HW as Nt,Ia as Ft,H$ as Bt,tY as Et}from"./knTaiA68.js";import{T as Lt}from"./BuNzpDog.js";import{g as Ut}from"./CoSk1zgY.js";import{dl as Ot}from"./C2a2cvUs.js";import{bN as Ht,bK as jt,b5 as Mt}from"./D86k9p2-.js";import"./p97llLQ-.js";import{M as Vt}from"./NL2hP03-.js";import{V as qt}from"./B86TWLIj.js";import{O as Rt}from"./CVcsFKHY.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Kt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function q(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function X(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Yt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||C.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||C.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Yt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=q(n,r);if(e.type.startsWith("file:")&&c){const d=X(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>q(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=q(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:X(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
2
2
  `);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
3
3
  `),newContent:r.join(`
4
4
  `)}}var Qt=x("<!> <!>",1),Xt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{qt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>C.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Vt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var b=F(g,2);{var y=m=>{Rt(m,{get filePath(){return t(K)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(b,m=>{t(K)&&m(y)})}w(a,i)},rt=Ht(),st=jt(),ot=Mt(),dt=Gt("ActivityChangesTabType");let L=M(n,"tab",7),_=M(n,"workspaceId",7),U=M(n,"isActive",7);const G=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),K=f(()=>t(p)&&t(O)?Kt(t(p))?t(p):`${t(O)}/${t(p)}`:null),H=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),Y=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(Y)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(H)();return a?Jt(a):null}),W=f(()=>ft(t(H)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:R.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}J(()=>{!G||!U()||G.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(H)(),hasOldNewContent:t(Y)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),V()},get workspaceId(){return _()},set workspaceId(a){_(a),V()},get isActive(){return U()},set isActive(a){U(a),V()},$set:Tt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=Q(z);{var vt=a=>{var i=Zt(),g=I(i);{var b=l=>{var h=Xt(),$=I(h),j=P($,!0);A(h),B(_t=>S(j,_t),[()=>C.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(b)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},bt=a=>{var i=te(),g=I(i),b=P(g,!0),y=F(g,2),m=P(y,!0);A(i),B((l,h)=>{S(b,l),S(m,h)},[()=>C.layout_activityChanges_noDiffStored_label(),()=>C.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),b=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);B(j=>S($,j),[()=>C.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),B(l=>S(b,l),[()=>C.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(bt,1):a(yt,-1)})}w(e,z);var Ct=Pt(ht);return nt(),Ct}export{ae as default};
@@ -1,4 +1,4 @@
1
- import{p as B}from"./D-f__bmd.js";import{f as b,$ as m,c4 as C,a6 as S,bC as w,c7 as D,aL as P,c9 as T,aP as z,aK as E,c6 as F,aN as A,ax as W,a0 as _}from"./CuYKMtC1.js";import{p as N}from"./DEvh6UGV.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=P,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{B(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<M;){const[p,o]=I({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),I=b((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},K=b((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),j={draw:K},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
1
+ import{p as B}from"./yE0GefJh.js";import{f as b,$ as m,c4 as C,a6 as S,bC as w,c7 as D,aL as P,c9 as T,aP as z,aK as E,c6 as F,aN as A,ax as W,a0 as _}from"./JmvNQ7rA.js";import{p as N}from"./DEvh6UGV.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=P,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{B(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<M;){const[p,o]=I({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),I=b((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},K=b((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),j={draw:K},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,2 +1,2 @@
1
- import{f as e,bC as s,c4 as o,a6 as i}from"./CuYKMtC1.js";import{p as g}from"./DEvh6UGV.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.17.2"},d=e(()=>v.version,"getVersion"),c={getVersion:d},m=e((r,a,n)=>{s.debug(`rendering info diagram
1
+ import{f as e,bC as s,c4 as o,a6 as i}from"./JmvNQ7rA.js";import{p as g}from"./DEvh6UGV.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.17.2"},d=e(()=>v.version,"getVersion"),c={getVersion:d},m=e((r,a,n)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:m},b={parser:p,db:c,renderer:f};export{b as diagram};
@@ -1 +1 @@
1
- import{f as s}from"./CuYKMtC1.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{f as s}from"./JmvNQ7rA.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1,3 +1,3 @@
1
- import{t as D,bq as d,a_ as P,by as b,b as S}from"./Hm6HJMdl.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as z}from"./CuYKMtC1.js";import{S as B,p as J}from"./DsZCr7hJ.js";import{N}from"./DdZhZWDI.js";import{Hp as W,u8 as j,bi as E}from"./knTaiA68.js";import{J as K}from"./CZ6oPQCg.js";import{$ as O}from"./C2a2cvUs.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new N,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as D,bq as d,a_ as P,by as b,b as S}from"./Hm6HJMdl.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as z}from"./JmvNQ7rA.js";import{S as B,p as J}from"./BNVqbH8q.js";import{N}from"./D86k9p2-.js";import{Hp as W,u8 as j,bi as E}from"./knTaiA68.js";import{J as K}from"./BVPsIjUM.js";import{$ as O}from"./C2a2cvUs.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new N,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return J(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?W.dispatch(j(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{z(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);B(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return $(l,u),x(w)}export{R as default};
@@ -1,4 +1,4 @@
1
- var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./Hm6HJMdl.js";import{g as s}from"./CuYKMtC1.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
1
+ var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./Hm6HJMdl.js";import{g as s}from"./JmvNQ7rA.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
2
2
  `,`\r
3
3
  `,"\r"],(function(a){function i(f,d,p,m){return new n_(f,d,p,m)}s(i,"create"),o(i,"create"),a.create=i;function l(f){let d=f;return!!(b.defined(d)&&b.string(d.uri)&&(b.undefined(d.languageId)||b.string(d.languageId))&&b.uinteger(d.lineCount)&&b.func(d.getText)&&b.func(d.positionAt)&&b.func(d.offsetAt))}s(l,"is"),o(l,"is"),a.is=l;function c(f,d){let p=f.getText(),m=u(d,(y,$)=>{let C=y.range.start.line-$.range.start.line;return C===0?y.range.start.character-$.range.start.character:C}),g=p.length;for(let y=m.length-1;y>=0;y--){let $=m[y],C=f.offsetAt($.range.start),R=f.offsetAt($.range.end);if(R<=g)p=p.substring(0,C)+$.newText+p.substring(R,p.length);else throw new Error("Overlapping edit");g=C}return p}s(c,"applyEdits"),o(c,"applyEdits"),a.applyEdits=c;function u(f,d){if(f.length<=1)return f;const p=f.length/2|0,m=f.slice(0,p),g=f.slice(p);u(m,d),u(g,d);let y=0,$=0,C=0;for(;y<m.length&&$<g.length;)d(m[y],g[$])<=0?f[C++]=m[y++]:f[C++]=g[$++];for(;y<m.length;)f[C++]=m[y++];for(;$<g.length;)f[C++]=g[$++];return f}s(u,"mergeSort2"),o(u,"mergeSort")})(by||(by={})),n_=(n=class{constructor(i,l,c,u){this._uri=i,this._languageId=l,this._version=c,this._content=u,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let l=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(l,c)}return this._content}update(i,l){this._content=i.text,this._version=l,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],l=this._content,c=!0;for(let u=0;u<l.length;u++){c&&(i.push(u),c=!1);let f=l.charAt(u);c=f==="\r"||f===`
4
4
  `,f==="\r"&&u+1<l.length&&l.charAt(u+1)===`