@intent-hq/web 2.301.0 → 2.301.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 (203) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B7zUuO00.js → -8mBz6EW.js} +1 -1
  3. package/web/app/immutable/chunks/{BbJJ4Uie.js → 2Iga5834.js} +1 -1
  4. package/web/app/immutable/chunks/{BcmjbiBm.js → 3-bIA0_b.js} +2 -2
  5. package/web/app/immutable/chunks/{DrNVHvhK.js → 3cwLWYk-.js} +1 -1
  6. package/web/app/immutable/chunks/{9k5bnL8-.js → 6WuGSm1v.js} +2 -2
  7. package/web/app/immutable/chunks/{DKolS8Ht.js → 8FC2Ymrs.js} +1 -1
  8. package/web/app/immutable/chunks/{Ce-KYi-n.js → 90FT2TPG.js} +2 -2
  9. package/web/app/immutable/chunks/{B52XysAQ.js → 9Bp-qw-c.js} +1 -1
  10. package/web/app/immutable/chunks/{BPzYYRAs.js → 9pcH5qab.js} +4 -4
  11. package/web/app/immutable/chunks/{DhGPSsBf.js → Alw6Bgam.js} +1 -1
  12. package/web/app/immutable/chunks/{DtagNJGy.js → B-pxGJ33.js} +1 -1
  13. package/web/app/immutable/chunks/{BcpdiGRR.js → B1f-Dpa6.js} +1 -1
  14. package/web/app/immutable/chunks/{Citu-dNT.js → B1ySs1Ps.js} +1 -1
  15. package/web/app/immutable/chunks/{DmJbtm9p.js → B3pWDt4A.js} +2 -2
  16. package/web/app/immutable/chunks/{CQMDPYtj.js → B5FPkuba.js} +1 -1
  17. package/web/app/immutable/chunks/{D5_2GYC0.js → B5gRIzZb.js} +1 -1
  18. package/web/app/immutable/chunks/{DMnHL_j_.js → B9e_lQGd.js} +1 -1
  19. package/web/app/immutable/chunks/{DE5Vt-mk.js → BAJdDJmt.js} +1 -1
  20. package/web/app/immutable/chunks/{ggRICgWE.js → BBfmiZwR.js} +1 -1
  21. package/web/app/immutable/chunks/{KG68UpwU.js → BCFfKX9W.js} +1 -1
  22. package/web/app/immutable/chunks/{C9k7mgs4.js → BDUAehdP.js} +4 -4
  23. package/web/app/immutable/chunks/{COMfKjnL.js → BFnbk-Kf.js} +1 -1
  24. package/web/app/immutable/chunks/{CG9-31He.js → BGGzsVfR.js} +1 -1
  25. package/web/app/immutable/chunks/{mkPaye9m.js → BIDHEGct.js} +1 -1
  26. package/web/app/immutable/chunks/{DnCf3QiL.js → BIOk6wuV.js} +1 -1
  27. package/web/app/immutable/chunks/{CnWtv34Y.js → BJ_6izfA.js} +7 -7
  28. package/web/app/immutable/chunks/{D54_bMKf.js → BMPb03sg.js} +1 -1
  29. package/web/app/immutable/chunks/{Bloa0suE.js → BNVzhw1y.js} +1 -1
  30. package/web/app/immutable/chunks/{hOR9B4V4.js → BO9EbiHx.js} +1 -1
  31. package/web/app/immutable/chunks/{CXtOOnh0.js → BPC4nNQe.js} +1 -1
  32. package/web/app/immutable/chunks/{CoJOpuAN.js → BRKe81M1.js} +1 -1
  33. package/web/app/immutable/chunks/{Ce8PMxuE.js → BSuE_PI2.js} +1 -1
  34. package/web/app/immutable/chunks/{8Q_Was_5.js → BTIw3yd0.js} +1 -1
  35. package/web/app/immutable/chunks/{DaqPl4Tz.js → BTeM7_LX.js} +1 -1
  36. package/web/app/immutable/chunks/{ClOUpVZZ.js → BVTor63R.js} +1 -1
  37. package/web/app/immutable/chunks/{BhkBe7Jc.js → BW_04noU.js} +1 -1
  38. package/web/app/immutable/chunks/{bDcdMMyl.js → BWerHQW_.js} +1 -1
  39. package/web/app/immutable/chunks/{CItSvrO_.js → BX8IWbyz.js} +2 -2
  40. package/web/app/immutable/chunks/{Cu4QpKDr.js → BYZmS9Dk.js} +1 -1
  41. package/web/app/immutable/chunks/{DGW6wXEq.js → B_vcNRuc.js} +1 -1
  42. package/web/app/immutable/chunks/{DuInbvT4.js → BapFUUqZ.js} +1 -1
  43. package/web/app/immutable/chunks/{BAbzdNi8.js → BdCx7DnP.js} +1 -1
  44. package/web/app/immutable/chunks/{CUMro1vx.js → BghpE59-.js} +1 -1
  45. package/web/app/immutable/chunks/{B-JIdXlm.js → BhYLt5th.js} +1 -1
  46. package/web/app/immutable/chunks/{Drgj5uDM.js → Bk5SMnS3.js} +43 -43
  47. package/web/app/immutable/chunks/{C4-u_VtZ.js → BlDfHMda.js} +1 -1
  48. package/web/app/immutable/chunks/{DmUU4JxK.js → BlPj7Bqh.js} +1 -1
  49. package/web/app/immutable/chunks/{B220ai_K.js → Bo2QS6PZ.js} +1 -1
  50. package/web/app/immutable/chunks/{CJzvjWBQ.js → Bo7YWMXl.js} +1 -1
  51. package/web/app/immutable/chunks/{knnjLtf9.js → BuXA0uuF.js} +1 -1
  52. package/web/app/immutable/chunks/{C5MJ7BeC.js → BvgUrOVR.js} +1 -1
  53. package/web/app/immutable/chunks/{DIceyoUA.js → BxC2yVbF.js} +1 -1
  54. package/web/app/immutable/chunks/{CtcF6bbr.js → BxgeL5Cn.js} +2 -2
  55. package/web/app/immutable/chunks/{EzIyeu9q.js → BzDjODLF.js} +1 -1
  56. package/web/app/immutable/chunks/{BVJeg9VF.js → BzwTpGAs.js} +3 -3
  57. package/web/app/immutable/chunks/{DYywvoax.js → C-yDVBGV.js} +1 -1
  58. package/web/app/immutable/chunks/{qwx0AE4b.js → C0DySWij.js} +1 -1
  59. package/web/app/immutable/chunks/{CXqGB8i2.js → C4Zy0P7R.js} +1 -1
  60. package/web/app/immutable/chunks/{DsHbB0Gk.js → C4wwbPuR.js} +1 -1
  61. package/web/app/immutable/chunks/{DediWp9-.js → C6PYFU8v.js} +1 -1
  62. package/web/app/immutable/chunks/{DeI8FMuz.js → C9dil5-t.js} +1 -1
  63. package/web/app/immutable/chunks/{BXU_OYLJ.js → CB1wD_PC.js} +1 -1
  64. package/web/app/immutable/chunks/CDxER840.js +1 -0
  65. package/web/app/immutable/chunks/{tkZmaR4M.js → CEOoXkJa.js} +4 -4
  66. package/web/app/immutable/chunks/{CiBStNAr.js → CEs-7mch.js} +3 -3
  67. package/web/app/immutable/chunks/{Q-IbWJI_.js → CFgK9GfH.js} +1 -1
  68. package/web/app/immutable/chunks/{DZKVhZfO.js → CGwmPMQc.js} +1 -1
  69. package/web/app/immutable/chunks/{Cr5KYQBW.js → CHDy3QTf.js} +1 -1
  70. package/web/app/immutable/chunks/{DoOAeI0m.js → CK1vqkSE.js} +1 -1
  71. package/web/app/immutable/chunks/{BQY3g8uE.js → CKI5DKl7.js} +6 -6
  72. package/web/app/immutable/chunks/{0_FDVEla.js → CKj5bwOX.js} +1 -1
  73. package/web/app/immutable/chunks/{DELLe_1a.js → CMAl4tQM.js} +1 -1
  74. package/web/app/immutable/chunks/{k6s8dGrA.js → CMQqNZFP.js} +1 -1
  75. package/web/app/immutable/chunks/{BJn7bayT.js → CMS0Mt7v.js} +1 -1
  76. package/web/app/immutable/chunks/{B2jj_YAX.js → CORu-AyV.js} +1 -1
  77. package/web/app/immutable/chunks/{CMBaQAuw.js → COuOkYRg.js} +1 -1
  78. package/web/app/immutable/chunks/{Jf6CJclx.js → CPBiF1gr.js} +1 -1
  79. package/web/app/immutable/chunks/{B7VWEjxq.js → CS1PgLFW.js} +1 -1
  80. package/web/app/immutable/chunks/{DsrgAjSN.js → CSiZwu1h.js} +1 -1
  81. package/web/app/immutable/chunks/{6Ql_vn7X.js → CT_wb7-d.js} +1 -1
  82. package/web/app/immutable/chunks/{BRwNKwD7.js → CTt3kMm1.js} +1 -1
  83. package/web/app/immutable/chunks/{Dma9ms7u.js → CUl5WBR5.js} +1 -1
  84. package/web/app/immutable/chunks/{Bzu3FrPq.js → CUt6iXkF.js} +1 -1
  85. package/web/app/immutable/chunks/{BGv3Ttev.js → CYfBmNaT.js} +1 -1
  86. package/web/app/immutable/chunks/{B-OGKYEx.js → C_-tA5vs.js} +1 -1
  87. package/web/app/immutable/chunks/{Mjh5v3L0.js → C_VMQN67.js} +1 -1
  88. package/web/app/immutable/chunks/{DCv8NaxM.js → C_uqctJM.js} +1 -1
  89. package/web/app/immutable/chunks/{BEgosT1d.js → CaibRh-G.js} +1 -1
  90. package/web/app/immutable/chunks/{CeX5z_vs.js → Cavwt8Mn.js} +1 -1
  91. package/web/app/immutable/chunks/{Pq3i4zFA.js → Cdz-CHGd.js} +1 -1
  92. package/web/app/immutable/chunks/{B8S_XDvA.js → CfM2ZJef.js} +1 -1
  93. package/web/app/immutable/chunks/{DdV_6_CH.js → Cg_QSby7.js} +1 -1
  94. package/web/app/immutable/chunks/{DVnNWj1L.js → Cl5KdYjm.js} +1 -1
  95. package/web/app/immutable/chunks/{CS5VoVeF.js → Cn23SDXY.js} +1 -1
  96. package/web/app/immutable/chunks/{CixlkwsU.js → Cnlend6s.js} +1 -1
  97. package/web/app/immutable/chunks/{CZE4HQ01.js → CqnucWm4.js} +1 -1
  98. package/web/app/immutable/chunks/{DNyxd11M.js → Crq2Gvaa.js} +1 -1
  99. package/web/app/immutable/chunks/{BBNnH_sw.js → CsqCa0Sd.js} +2 -2
  100. package/web/app/immutable/chunks/{BspPTfLp.js → CuG6uIIP.js} +1 -1
  101. package/web/app/immutable/chunks/{BwlxTP6m.js → Cvg7bd3W.js} +1 -1
  102. package/web/app/immutable/chunks/{CHeQtCyR.js → CwnyA6hc.js} +1 -1
  103. package/web/app/immutable/chunks/{BWljXDfF.js → Cx089QrC.js} +1 -1
  104. package/web/app/immutable/chunks/{Denyu19x.js → D-s4Q5GN.js} +1 -1
  105. package/web/app/immutable/chunks/{CEFx_w_J.js → D2gIe4Fc.js} +1 -1
  106. package/web/app/immutable/chunks/{DZwXyTtM.js → D6IXX0lv.js} +1 -1
  107. package/web/app/immutable/chunks/{Dcbdz0Jw.js → D6Id8WlN.js} +1 -1
  108. package/web/app/immutable/chunks/{Dl3AQcJn.js → D9hi6Z3O.js} +1 -1
  109. package/web/app/immutable/chunks/{BLn5rsUE.js → D9iN-aHM.js} +1 -1
  110. package/web/app/immutable/chunks/{DvqgRsDd.js → DD1-zRxp.js} +1 -1
  111. package/web/app/immutable/chunks/{NDnZ2f46.js → DE5Smm9m.js} +1 -1
  112. package/web/app/immutable/chunks/{BEj-d9Cx.js → DFoGBie-.js} +1 -1
  113. package/web/app/immutable/chunks/{CzeYC5kK.js → DG__gHhd.js} +1 -1
  114. package/web/app/immutable/chunks/{Vx0IIPew.js → DIlG6FTS.js} +1 -1
  115. package/web/app/immutable/chunks/{BrAaVsFz.js → DK1vbm9l.js} +1 -1
  116. package/web/app/immutable/chunks/{8EDHNAa0.js → DKs2ftKN.js} +1 -1
  117. package/web/app/immutable/chunks/{B4Ys_Zqk.js → DLoJFSfZ.js} +1 -1
  118. package/web/app/immutable/chunks/{Ciihhv86.js → DMC7qMUv.js} +1 -1
  119. package/web/app/immutable/chunks/{T995SloE.js → DMcsIxoO.js} +1 -1
  120. package/web/app/immutable/chunks/{BeAhMSSb.js → DNmVxfYt.js} +8 -8
  121. package/web/app/immutable/chunks/{B_iqW4nZ.js → DOGdTp2m.js} +1 -1
  122. package/web/app/immutable/chunks/{UMA3RT0s.js → DR58OcKC.js} +1 -1
  123. package/web/app/immutable/chunks/{BggwWRGf.js → DR9205pL.js} +1 -1
  124. package/web/app/immutable/chunks/{p8msS16l.js → DTSOJB0e.js} +1 -1
  125. package/web/app/immutable/chunks/{CSdV5_bj.js → DXwDIYHN.js} +1 -1
  126. package/web/app/immutable/chunks/{DJ00LNUR.js → DYd7w17e.js} +1 -1
  127. package/web/app/immutable/chunks/{yQ0Z1VHW.js → DYrK-s5W.js} +1 -1
  128. package/web/app/immutable/chunks/{C-VIKqni.js → DYztlXyW.js} +1 -1
  129. package/web/app/immutable/chunks/{Dj_FVUHS.js → DZ5koqO7.js} +1 -1
  130. package/web/app/immutable/chunks/{D_Ou_6lS.js → D_m0iYjs.js} +1 -1
  131. package/web/app/immutable/chunks/{DvrTNX0e.js → DadwIC0R.js} +1 -1
  132. package/web/app/immutable/chunks/{B9G1J12P.js → DbKrZJmS.js} +6 -6
  133. package/web/app/immutable/chunks/{DU4GH855.js → DbY-sUwj.js} +1 -1
  134. package/web/app/immutable/chunks/{DZCBh97_.js → DcE_Ld1a.js} +1 -1
  135. package/web/app/immutable/chunks/{42GHkgj6.js → DdKmPHVm.js} +1 -1
  136. package/web/app/immutable/chunks/{SNezQIpP.js → DffgEGrv.js} +1 -1
  137. package/web/app/immutable/chunks/{eEZIbdzf.js → DfiXlh8D.js} +1 -1
  138. package/web/app/immutable/chunks/{DNKZQCox.js → DiDcqoCZ.js} +1 -1
  139. package/web/app/immutable/chunks/{Cu8J93FR.js → Dj5vfD48.js} +3 -3
  140. package/web/app/immutable/chunks/{i9DVPIlR.js → DjVfE_Ds.js} +1 -1
  141. package/web/app/immutable/chunks/{DBdfwYFa.js → Dkg7fAiD.js} +1 -1
  142. package/web/app/immutable/chunks/{DrHxWi1S.js → DkraFhXS.js} +1 -1
  143. package/web/app/immutable/chunks/{BWjmxT5D.js → DmtmsOtX.js} +1 -1
  144. package/web/app/immutable/chunks/{4I8WRxn6.js → Dovmtid-.js} +1 -1
  145. package/web/app/immutable/chunks/{BeLl-r8h.js → DpN6Ybfd.js} +1 -1
  146. package/web/app/immutable/chunks/{CVC-R1OI.js → DrWcQsKJ.js} +1 -1
  147. package/web/app/immutable/chunks/{CXdTWTzB.js → DvCCocml.js} +1 -1
  148. package/web/app/immutable/chunks/{DyVKK3zU.js → DwuPw74E.js} +1 -1
  149. package/web/app/immutable/chunks/{CzVv3uRF.js → Dz6pz6rM.js} +1 -1
  150. package/web/app/immutable/chunks/{DeBsmEqU.js → HcVsBsAl.js} +1 -1
  151. package/web/app/immutable/chunks/{DAjW_Z-R.js → Iu8s0xrk.js} +1 -1
  152. package/web/app/immutable/chunks/{Dzu7FPMr.js → LzWIYiXc.js} +1 -1
  153. package/web/app/immutable/chunks/{BlFUy1M_.js → McMSPwXq.js} +1 -1
  154. package/web/app/immutable/chunks/{CunMRDJl.js → NlCjCVxn.js} +1 -1
  155. package/web/app/immutable/chunks/{CjhAOkhP.js → NzxBab7c.js} +1 -1
  156. package/web/app/immutable/chunks/{7O3nfCeH.js → PeSBy6Q3.js} +1 -1
  157. package/web/app/immutable/chunks/{T1WqHZLZ.js → PnTDvXOe.js} +1 -1
  158. package/web/app/immutable/chunks/{BoaSTXep.js → SiYLjuDS.js} +1 -1
  159. package/web/app/immutable/chunks/{BXDl97pl.js → Syl_OSjA.js} +1 -1
  160. package/web/app/immutable/chunks/{w7xvX9oI.js → TV2_MWXe.js} +1 -1
  161. package/web/app/immutable/chunks/{BNrl_yXC.js → TWVlaXcj.js} +1 -1
  162. package/web/app/immutable/chunks/{BF75AbUh.js → U_cmHtqi.js} +1 -1
  163. package/web/app/immutable/chunks/{ClJKqwKB.js → UlQNHb3m.js} +1 -1
  164. package/web/app/immutable/chunks/{ymVYL-2H.js → Vwfej_EC.js} +1 -1
  165. package/web/app/immutable/chunks/{y8su61xq.js → WL4wAA6m.js} +2 -2
  166. package/web/app/immutable/chunks/{nz1YTpIq.js → XO84v1Z5.js} +1 -1
  167. package/web/app/immutable/chunks/{zl8SSmZq.js → b33seoH7.js} +1 -1
  168. package/web/app/immutable/chunks/{BL-4c5eP.js → dvgX5pbn.js} +1 -1
  169. package/web/app/immutable/chunks/{C9PGJX9n.js → fX819Pv6.js} +1 -1
  170. package/web/app/immutable/chunks/{CC4WmnL6.js → gMye6h60.js} +2 -2
  171. package/web/app/immutable/chunks/{BRMj8a4h.js → h6ZeyBNW.js} +1 -1
  172. package/web/app/immutable/chunks/{CXkYtIUm.js → ljZI5d7y.js} +1 -1
  173. package/web/app/immutable/chunks/{w0VuoJIl.js → mFLgyCOK.js} +1 -1
  174. package/web/app/immutable/chunks/{DBGO1w9a.js → pDn0_bm8.js} +1 -1
  175. package/web/app/immutable/chunks/{CvgQ9EkY.js → rgnRekX3.js} +1 -1
  176. package/web/app/immutable/chunks/{CM8AwG-k.js → sgMaD9-D.js} +1 -1
  177. package/web/app/immutable/chunks/{DWUInPKR.js → uR5KZKbl.js} +1 -1
  178. package/web/app/immutable/chunks/{CTmT5I7Z.js → udwHGMln.js} +1 -1
  179. package/web/app/immutable/chunks/{CUMzsmcb.js → ulG7NA7z.js} +1 -1
  180. package/web/app/immutable/chunks/{Cw1gOOP4.js → wD4fx_9g.js} +1 -1
  181. package/web/app/immutable/chunks/{Dmf4WObG.js → x0rjHUHa.js} +1 -1
  182. package/web/app/immutable/chunks/{C9jifMvI.js → yCx04g4X.js} +1 -1
  183. package/web/app/immutable/chunks/{BAXlZEur.js → yW4W7htU.js} +1 -1
  184. package/web/app/immutable/entry/{app.BgfLNpAH.js → app.CIVLA2a9.js} +2 -2
  185. package/web/app/immutable/entry/start.Cn76ZGVI.js +1 -0
  186. package/web/app/immutable/nodes/{0.B3w9utn7.js → 0.ACp4Nz4v.js} +1 -1
  187. package/web/app/immutable/nodes/{1.DaxXfawW.js → 1.DRnQyS6A.js} +1 -1
  188. package/web/app/immutable/nodes/{10.Ut2WO8-5.js → 10.CLkVRFBV.js} +1 -1
  189. package/web/app/immutable/nodes/{14.BS_itk_o.js → 14.9_BXzcxR.js} +1 -1
  190. package/web/app/immutable/nodes/{16.DXjz2v3H.js → 16.BMYUgPNR.js} +2 -2
  191. package/web/app/immutable/nodes/2.d5BGPrjO.js +9 -0
  192. package/web/app/immutable/nodes/{3.63ZtoTSA.js → 3.0E-ZGvKe.js} +1 -1
  193. package/web/app/immutable/nodes/{4.DDS6oK5o.js → 4.DSO5-jdr.js} +1 -1
  194. package/web/app/immutable/nodes/{5.DsTfq2mA.js → 5.BexFD7jH.js} +1 -1
  195. package/web/app/immutable/nodes/{6.BH8FJ3Wf.js → 6.CqlyGMy5.js} +1 -1
  196. package/web/app/immutable/nodes/{7.DW27zT40.js → 7.C2XKzJeK.js} +1 -1
  197. package/web/app/immutable/nodes/{8.B4CNA7De.js → 8.CMFpn5kb.js} +2 -2
  198. package/web/app/immutable/nodes/{9.Nt9iZ731.js → 9.BolTThFG.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/DJ_9F2bm.js +0 -1
  202. package/web/app/immutable/entry/start.DFg06W-g.js +0 -1
  203. package/web/app/immutable/nodes/2.CYzMuwKR.js +0 -9
@@ -1,4 +1,4 @@
1
- import{p as $}from"./CXtOOnh0.js";import{p as C}from"./CTmT5I7Z.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"./CnWtv34Y.js";import{g as M}from"./BQY3g8uE.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"./BPC4nNQe.js";import{p as C}from"./udwHGMln.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"./BJ_6izfA.js";import{g as M}from"./CKI5DKl7.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{I as he}from"./D5_2GYC0.js";import{p as $e}from"./CXtOOnh0.js";import{p as fe}from"./CTmT5I7Z.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./CnWtv34Y.js";import{c3 as Be,g as K}from"./BQY3g8uE.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as he}from"./B5gRIzZb.js";import{p as $e}from"./BPC4nNQe.js";import{p as fe}from"./udwHGMln.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./BJ_6izfA.js";import{c3 as Be,g as K}from"./CKI5DKl7.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+I}
3
3
  ${s-i/2-L/2},${x-I}
4
4
  ${t.posWithOffset-i/2-L},${x-c-I}
@@ -1,4 +1,4 @@
1
- import{g as se}from"./eEZIbdzf.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./CnWtv34Y.js";import{s as pe}from"./Q-IbWJI_.js";import{c as Se}from"./DZKVhZfO.js";import{g as m,c3 as vt}from"./BQY3g8uE.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
1
+ import{g as se}from"./DfiXlh8D.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./BJ_6izfA.js";import{s as pe}from"./CFgK9GfH.js";import{c as Se}from"./CGwmPMQc.js";import{g as m,c3 as vt}from"./CKI5DKl7.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+St.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(Y+1)+": Unexpected "+(L==st?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:mt,expected:St})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+L);switch(R[0]){case 1:a.push(L),_.push(D.yytext),i.push(D.yylloc),a.push(R[1]),L=null,J=D.yyleng,l=D.yytext,Y=D.yylineno,mt=D.yylloc;break;case 2:if(V=this.productions_[R[1]][1],q.$=_[_.length-V],q._$={first_line:i[i.length-(V||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(V||1)].first_column,last_column:i[i.length-1].last_column},ee&&(q._$.range=[i[i.length-(V||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(q,[l,J,Y,j.yy,R[1],_,i].concat(Et)),typeof kt<"u")return kt;V&&(a=a.slice(0,-1*V*2),_=_.slice(0,-1*V),i=i.slice(0,-1*V)),a.push(this.productions_[R[1]][0]),_.push(q.$),i.push(q._$),$t=G[a[a.length-2]][a[a.length-1]],a.push($t);break;case 3:return!0}}return!0},"parse"),"parse")},te=(function(){var M={EOF:1,parseError:p(m(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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),a.length-1&&(this.yylineno-=a.length-1);var _=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:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./CnWtv34Y.js";import{c3 as Q,g as a}from"./BQY3g8uE.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
1
+ import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./BJ_6izfA.js";import{c3 as Q,g as a}from"./CKI5DKl7.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
2
2
  `+L.showPosition()+`
3
3
  Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":S="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(S,{text:L.match,token:this.terminals_[w]||w,line:L.yylineno,loc:$,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:f.push(w),b.push(L.yytext),p.push(L.yylloc),f.push(T[1]),w=null,M=L.yyleng,N=L.yytext,A=L.yylineno,$=L.yylloc;break;case 2:if(e=this.productions_[T[1]][1],y.$=b[b.length-e],y._$={first_line:p[p.length-(e||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(e||1)].first_column,last_column:p[p.length-1].last_column},F&&(y._$.range=[p[p.length-(e||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(y,[N,M,A,P.yy,T[1],b,p].concat(D)),typeof n<"u")return n;e&&(f=f.slice(0,-1*e*2),b=b.slice(0,-1*e),p=p.slice(0,-1*e)),f.push(this.productions_[T[1]][0]),b.push(y.$),p.push(y._$),r=_[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse"),"parse")},v=(function(){var m={EOF:1,parseError:g(a(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:g(function(o,l){return this.yy=l||this.yy||{},this._input=o,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:g(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:g(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var b=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:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`