@intent-hq/web 2.310.0 → 2.310.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{DiagramPresentation.fimBl1wP.css → DiagramPresentation.Bfi3xHm0.css} +1 -1
  3. package/web/app/immutable/chunks/-xK_vQQs.js +1 -0
  4. package/web/app/immutable/chunks/{DXIbhld5.js → 189zCzpy.js} +1 -1
  5. package/web/app/immutable/chunks/6XLvYn_R.js +4 -0
  6. package/web/app/immutable/chunks/{DE2cS7Gk.js → 7LPFBi2V.js} +2 -2
  7. package/web/app/immutable/chunks/{DvPohY9Y.js → 9Al7uANH.js} +1 -1
  8. package/web/app/immutable/chunks/{CCiSNRYo.js → 9Ax53qRD.js} +2 -2
  9. package/web/app/immutable/chunks/{B2RUMnVi.js → 9U2m-KE4.js} +1 -1
  10. package/web/app/immutable/chunks/{DEg_be2d.js → B08PB3d6.js} +1 -1
  11. package/web/app/immutable/chunks/B1wLVJWc.js +7 -0
  12. package/web/app/immutable/chunks/B1zCpBoo.js +217 -0
  13. package/web/app/immutable/chunks/{D4n7ImP1.js → B2-LFLJm.js} +1 -1
  14. package/web/app/immutable/chunks/{BhPGdKCS.js → B3NZDdp-.js} +1 -1
  15. package/web/app/immutable/chunks/{B6F4Lh4e.js → B3u9yhMd.js} +1 -1
  16. package/web/app/immutable/chunks/{BCWCSGn-.js → B6ACa1PM.js} +1 -1
  17. package/web/app/immutable/chunks/{DfEETRjs.js → B7VxeONz.js} +1 -1
  18. package/web/app/immutable/chunks/{2t50lsua.js → BGOzArFr.js} +6 -6
  19. package/web/app/immutable/chunks/{9jrhCQLH.js → BGSgFd0R.js} +1 -1
  20. package/web/app/immutable/chunks/{CaSAI0VT.js → BHMk19Fd.js} +1 -1
  21. package/web/app/immutable/chunks/{BZJTxW0W.js → BRp0P9cF.js} +1 -1
  22. package/web/app/immutable/chunks/{DRr3RJL8.js → BS3KKa6i.js} +5 -5
  23. package/web/app/immutable/chunks/{dxICYcDB.js → BSN7-Qxa.js} +4 -4
  24. package/web/app/immutable/chunks/{BpsqLTOp.js → BU1SD4F5.js} +2 -2
  25. package/web/app/immutable/chunks/BUvLOETw.js +8 -0
  26. package/web/app/immutable/chunks/{CZZvWnXg.js → B_CxKeY9.js} +1 -1
  27. package/web/app/immutable/chunks/{BibcbnTP.js → B_F8B07u.js} +5 -5
  28. package/web/app/immutable/chunks/{DFCDnAax.js → B_u6ph9g.js} +1 -1
  29. package/web/app/immutable/chunks/{Cg-2uoaY.js → BbajLcMi.js} +1 -1
  30. package/web/app/immutable/chunks/{tBYaHQw_.js → BcGA_XKM.js} +79 -79
  31. package/web/app/immutable/chunks/Bdj20t_M.js +200 -0
  32. package/web/app/immutable/chunks/{SJdoTqK2.js → BfVF2I5Q.js} +3 -3
  33. package/web/app/immutable/chunks/{B-AmXRdp.js → BgjzIHmr.js} +2 -2
  34. package/web/app/immutable/chunks/BhFdeIZl.js +1 -0
  35. package/web/app/immutable/chunks/{CMcFXsiy.js → BjS3bCVA.js} +1 -1
  36. package/web/app/immutable/chunks/Bl1SUWQK.js +1 -0
  37. package/web/app/immutable/chunks/BtFywNMt.js +40 -0
  38. package/web/app/immutable/chunks/{CCJs9cZU.js → BwThkZnv.js} +1 -1
  39. package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
  40. package/web/app/immutable/chunks/Bz2AaX7v.js +38 -0
  41. package/web/app/immutable/chunks/{CjKEz27r.js → BzqKIdEP.js} +1 -1
  42. package/web/app/immutable/chunks/{gMys6NxR.js → C-27EQSK.js} +6 -6
  43. package/web/app/immutable/chunks/C2FKcF8a.js +99 -0
  44. package/web/app/immutable/chunks/{kOoRis7L.js → C2ypXh8V.js} +4 -4
  45. package/web/app/immutable/chunks/{Bbi-Ieb_.js → C5bjHjx4.js} +1 -1
  46. package/web/app/immutable/chunks/{CS85fbWZ.js → C64YVcCh.js} +1 -1
  47. package/web/app/immutable/chunks/{xq16NT3q.js → C7-VQsLR.js} +1 -1
  48. package/web/app/immutable/chunks/C7ldC6zu.js +41 -0
  49. package/web/app/immutable/chunks/{Z1IVvFmx.js → C7xfOFNZ.js} +4 -4
  50. package/web/app/immutable/chunks/{CBvSxWdG.js → CAt8c0ls.js} +1 -1
  51. package/web/app/immutable/chunks/CC-vc0Sh.js +2 -0
  52. package/web/app/immutable/chunks/{D2b3DtCR.js → CDmxeAFz.js} +1 -1
  53. package/web/app/immutable/chunks/{BeFewn7K.js → CLUug_7o.js} +1 -1
  54. package/web/app/immutable/chunks/{CDACoTI2.js → CLyqqizl.js} +11 -11
  55. package/web/app/immutable/chunks/{B_EqlvEE.js → CO5Qz17e.js} +1 -1
  56. package/web/app/immutable/chunks/{DDfFKaoN.js → COBtdbv4.js} +1 -1
  57. package/web/app/immutable/chunks/COZ8XMYr.js +2 -0
  58. package/web/app/immutable/chunks/{BVxirgV2.js → CQK97B3l.js} +1 -1
  59. package/web/app/immutable/chunks/{50gvEURs.js → CYTBw0CY.js} +1 -1
  60. package/web/app/immutable/chunks/{CGizsEXq.js → CZLMJ41d.js} +3 -3
  61. package/web/app/immutable/chunks/{CjdtUG_a.js → CZqaUHhn.js} +1 -1
  62. package/web/app/immutable/chunks/CeVWos-t.js +1 -0
  63. package/web/app/immutable/chunks/CepoDpYW.js +1 -0
  64. package/web/app/immutable/chunks/{xFj9RuQx.js → CiBABzvX.js} +1 -1
  65. package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
  66. package/web/app/immutable/chunks/{DUVw4Tv2.js → CkactGV1.js} +30 -30
  67. package/web/app/immutable/chunks/ClebXGIM.js +141 -0
  68. package/web/app/immutable/chunks/{DO_qdDGF.js → CnfDI0G9.js} +1 -1
  69. package/web/app/immutable/chunks/{CQSBplf3.js → CoiqgZqV.js} +1 -1
  70. package/web/app/immutable/chunks/{CGMhstmi.js → CpQksukT.js} +1 -1
  71. package/web/app/immutable/chunks/CrX2GQl1.js +1 -0
  72. package/web/app/immutable/chunks/{BKTwjZpB.js → CtDXgUYh.js} +2 -2
  73. package/web/app/immutable/chunks/CvEzUeZj.js +39 -0
  74. package/web/app/immutable/chunks/{C_YR_yV-.js → CxP8jrn2.js} +1 -1
  75. package/web/app/immutable/chunks/{BPG20H4B.js → D2XAsGw-.js} +1 -1
  76. package/web/app/immutable/chunks/D3in5AGo.js +34 -0
  77. package/web/app/immutable/chunks/D3ma4MWK.js +84 -0
  78. package/web/app/immutable/chunks/{DqvIKmgg.js → D3p4HGPq.js} +1 -1
  79. package/web/app/immutable/chunks/D57k4GEE.js +344 -0
  80. package/web/app/immutable/chunks/{_otPiQOz.js → D5mZ2XGM.js} +1 -1
  81. package/web/app/immutable/chunks/{swAYnpK6.js → DE1vhlzN.js} +1 -1
  82. package/web/app/immutable/chunks/{NdkVneBF.js → DI-WSiIl.js} +1 -1
  83. package/web/app/immutable/chunks/DMfS3QUv.js +213 -0
  84. package/web/app/immutable/chunks/DMmGJ3th.js +140 -0
  85. package/web/app/immutable/chunks/DPADHNob.js +3 -0
  86. package/web/app/immutable/chunks/DPcySxOl.js +24 -0
  87. package/web/app/immutable/chunks/{BMvGDYIO.js → DQNwUygY.js} +3 -3
  88. package/web/app/immutable/chunks/{Bj5SHeCl.js → DR3ukAe9.js} +2 -2
  89. package/web/app/immutable/chunks/{DZpxiGBS.js → DRKyy5zo.js} +1 -1
  90. package/web/app/immutable/chunks/DTpCNXVX.js +62 -0
  91. package/web/app/immutable/chunks/DW02E8JU.js +291 -0
  92. package/web/app/immutable/chunks/{DyHBOL0Q.js → DbnaPZDp.js} +2 -2
  93. package/web/app/immutable/chunks/Dhhgf7-r.js +36 -0
  94. package/web/app/immutable/chunks/{Cbh5ofn-.js → DjaKy3j_.js} +1 -1
  95. package/web/app/immutable/chunks/{KljALMT3.js → Dk4znOdW.js} +1 -1
  96. package/web/app/immutable/chunks/{BANQT5xk.js → Dl1xcl6N.js} +1 -1
  97. package/web/app/immutable/chunks/Dmv_LV6R.js +106 -0
  98. package/web/app/immutable/chunks/{BreeoU2c.js → Dr28se2A.js} +2 -2
  99. package/web/app/immutable/chunks/Dr_BXnmT.js +169 -0
  100. package/web/app/immutable/chunks/{CoIY5b-q.js → Dvt2xumc.js} +1 -1
  101. package/web/app/immutable/chunks/DxHqMweQ.js +27 -0
  102. package/web/app/immutable/chunks/Dyv7eW7r.js +1 -0
  103. package/web/app/immutable/chunks/{W2kuqRhi.js → DzDnAGVP.js} +1 -1
  104. package/web/app/immutable/chunks/{CJNlKuUY.js → IIWxUL8F.js} +1 -1
  105. package/web/app/immutable/chunks/IjQ_akx8.js +24 -0
  106. package/web/app/immutable/chunks/{wihFHGRA.js → JFNcUgqI.js} +3 -3
  107. package/web/app/immutable/chunks/{BoTxE-Dg.js → JvGvDA7z.js} +1 -1
  108. package/web/app/immutable/chunks/{3xT4xHCc.js → LXPDKlyI.js} +1 -1
  109. package/web/app/immutable/chunks/{BPlpnhzH.js → M5rEGvXZ.js} +1 -1
  110. package/web/app/immutable/chunks/{C_sPSbma.js → O55LMojB.js} +1 -1
  111. package/web/app/immutable/chunks/{BmhnS69e.js → O86272iX.js} +2 -2
  112. package/web/app/immutable/chunks/{CZT_wjvA.js → PW60rHG1.js} +2 -2
  113. package/web/app/immutable/chunks/{D8xJeFNR.js → UzQ5fjmd.js} +7 -7
  114. package/web/app/immutable/chunks/VmPClZ6P.js +98 -0
  115. package/web/app/immutable/chunks/WKN7DEK1.js +292 -0
  116. package/web/app/immutable/chunks/{B7YFRmY9.js → YuniekLU.js} +2 -2
  117. package/web/app/immutable/chunks/{DWztuYd2.js → _Q4NEhG2.js} +1 -1
  118. package/web/app/immutable/chunks/{DyPRCICU.js → _sFm91KN.js} +4 -4
  119. package/web/app/immutable/chunks/{NChdTnqQ.js → cF0DaKkd.js} +1 -1
  120. package/web/app/immutable/chunks/{B2O-zJJK.js → d9OF_ecy.js} +1 -1
  121. package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
  122. package/web/app/immutable/chunks/ey5Fwige.js +1 -0
  123. package/web/app/immutable/chunks/gq2RHuUM.js +120 -0
  124. package/web/app/immutable/chunks/{C0oSivDJ.js → hJG5qV93.js} +1 -1
  125. package/web/app/immutable/chunks/jfltPaLX.js +370 -0
  126. package/web/app/immutable/chunks/{CjUOGaIe.js → l0v05b1J.js} +3 -3
  127. package/web/app/immutable/chunks/{zeRt85dY.js → le8iLKoG.js} +1 -1
  128. package/web/app/immutable/chunks/{C0f7EiIR.js → mCGfnSaU.js} +1 -1
  129. package/web/app/immutable/chunks/{u7rudBWt.js → mNrkfPcL.js} +1 -1
  130. package/web/app/immutable/chunks/{Da48jYxu.js → tzNFwvLY.js} +1 -1
  131. package/web/app/immutable/chunks/{C1rjgyNe.js → xL2Hl8pt.js} +1 -1
  132. package/web/app/immutable/chunks/{D6QUdzQ1.js → yEkT96At.js} +1 -1
  133. package/web/app/immutable/chunks/{DhbOsIE5.js → yGxUPrAb.js} +14 -14
  134. package/web/app/immutable/entry/{app.CYN435_6.js → app.CWgSMPHo.js} +2 -2
  135. package/web/app/immutable/entry/start.DRM4Ek1S.js +1 -0
  136. package/web/app/immutable/nodes/{0.Dns3lFCs.js → 0.DsHcmAxw.js} +1 -1
  137. package/web/app/immutable/nodes/{1.Cd7O-58t.js → 1.CkY-7ake.js} +1 -1
  138. package/web/app/immutable/nodes/{10.BhPCwuSS.js → 10.CdTsXOpX.js} +1 -1
  139. package/web/app/immutable/nodes/{14.CbX9Og6B.js → 14.juvATfIp.js} +1 -1
  140. package/web/app/immutable/nodes/{16.DYSTj8m0.js → 16.DuXLhJX1.js} +2 -2
  141. package/web/app/immutable/nodes/{2.n7fSSeCW.js → 2.DL0H4Ehj.js} +8 -8
  142. package/web/app/immutable/nodes/{3.CfhffOh-.js → 3.CsarMzm8.js} +1 -1
  143. package/web/app/immutable/nodes/{4.DNZDs0vZ.js → 4.DOKXGcKD.js} +1 -1
  144. package/web/app/immutable/nodes/{5.DooL0KdY.js → 5.5nmYhZgy.js} +1 -1
  145. package/web/app/immutable/nodes/{6.pzplS1TY.js → 6.BMO8vjvw.js} +1 -1
  146. package/web/app/immutable/nodes/{7.CRhweboS.js → 7.Rmoc-ypk.js} +1 -1
  147. package/web/app/immutable/nodes/{8.CuuXIPiR.js → 8.Dy5AT1iw.js} +2 -2
  148. package/web/app/immutable/nodes/{9.hhdT3UPw.js → 9.Dtv2dSUT.js} +18 -18
  149. package/web/app/version.json +1 -1
  150. package/web/index.html +9 -9
  151. package/web/app/immutable/chunks/41W03kYB.js +0 -96
  152. package/web/app/immutable/chunks/4jLfrK-n.js +0 -84
  153. package/web/app/immutable/chunks/70PyZUYg.js +0 -70
  154. package/web/app/immutable/chunks/9H8XjRUA.js +0 -106
  155. package/web/app/immutable/chunks/B-2EcDun.js +0 -78
  156. package/web/app/immutable/chunks/B6EdH0gk.js +0 -120
  157. package/web/app/immutable/chunks/B7d6B8i2.js +0 -1
  158. package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
  159. package/web/app/immutable/chunks/BCfzoYfU.js +0 -1
  160. package/web/app/immutable/chunks/BDEqpi1y.js +0 -106
  161. package/web/app/immutable/chunks/BDchM60p.js +0 -178
  162. package/web/app/immutable/chunks/BDuevalq.js +0 -1
  163. package/web/app/immutable/chunks/BFcpLy2V.js +0 -24
  164. package/web/app/immutable/chunks/BGS2SWF9.js +0 -40
  165. package/web/app/immutable/chunks/BKpC4hzB.js +0 -1
  166. package/web/app/immutable/chunks/BLOlf2p9.js +0 -39
  167. package/web/app/immutable/chunks/BN912nIE.js +0 -1
  168. package/web/app/immutable/chunks/BQqlXz7Q.js +0 -24
  169. package/web/app/immutable/chunks/BZmA3QXk.js +0 -24
  170. package/web/app/immutable/chunks/BdluP0Re.js +0 -120
  171. package/web/app/immutable/chunks/BgmOiuVG.js +0 -342
  172. package/web/app/immutable/chunks/BmKF0wck.js +0 -1
  173. package/web/app/immutable/chunks/BpJz1MvJ.js +0 -7
  174. package/web/app/immutable/chunks/Br2I_00T.js +0 -7
  175. package/web/app/immutable/chunks/Br8EhifD.js +0 -89
  176. package/web/app/immutable/chunks/BriIY-V6.js +0 -2
  177. package/web/app/immutable/chunks/Bs-gIQLt.js +0 -4
  178. package/web/app/immutable/chunks/BwBhkp82.js +0 -292
  179. package/web/app/immutable/chunks/Bz-Yc7Wl.js +0 -34
  180. package/web/app/immutable/chunks/BzAchneh.js +0 -1
  181. package/web/app/immutable/chunks/C10ooCp1.js +0 -24
  182. package/web/app/immutable/chunks/C3OhkOVO.js +0 -1
  183. package/web/app/immutable/chunks/C519ihU9.js +0 -231
  184. package/web/app/immutable/chunks/C7T4LQE1.js +0 -257
  185. package/web/app/immutable/chunks/C7_3LSl8.js +0 -162
  186. package/web/app/immutable/chunks/CAM1CwRY.js +0 -1
  187. package/web/app/immutable/chunks/CHx78N0-.js +0 -1
  188. package/web/app/immutable/chunks/CJRXWUIB.js +0 -36
  189. package/web/app/immutable/chunks/CKRb139P.js +0 -1
  190. package/web/app/immutable/chunks/COamqMg3.js +0 -1
  191. package/web/app/immutable/chunks/CPm7NntQ.js +0 -38
  192. package/web/app/immutable/chunks/CSNcNZAr.js +0 -1
  193. package/web/app/immutable/chunks/CTI6K_Uf.js +0 -1
  194. package/web/app/immutable/chunks/CUuCn5ps.js +0 -1
  195. package/web/app/immutable/chunks/CXVxtSkJ.js +0 -38
  196. package/web/app/immutable/chunks/CYhtIPW_.js +0 -62
  197. package/web/app/immutable/chunks/CaNdc6nO.js +0 -292
  198. package/web/app/immutable/chunks/CbMdHBoe.js +0 -1
  199. package/web/app/immutable/chunks/Citosjx7.js +0 -41
  200. package/web/app/immutable/chunks/Cj_j-lXn.js +0 -206
  201. package/web/app/immutable/chunks/CnCQnNEp.js +0 -354
  202. package/web/app/immutable/chunks/CnsnqDQd.js +0 -1
  203. package/web/app/immutable/chunks/CqBIsc3j.js +0 -99
  204. package/web/app/immutable/chunks/CqslOMwD.js +0 -96
  205. package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
  206. package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
  207. package/web/app/immutable/chunks/CwpRQv-w.js +0 -8
  208. package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
  209. package/web/app/immutable/chunks/Cyhorubq.js +0 -231
  210. package/web/app/immutable/chunks/D1SkvgLK.js +0 -1
  211. package/web/app/immutable/chunks/D6XiPT-X.js +0 -1
  212. package/web/app/immutable/chunks/D7jRh74W.js +0 -1
  213. package/web/app/immutable/chunks/D9ytGf5e.js +0 -1
  214. package/web/app/immutable/chunks/DF1EzKEK.js +0 -41
  215. package/web/app/immutable/chunks/DGaGjBKU.js +0 -168
  216. package/web/app/immutable/chunks/DKQ9ngHk.js +0 -99
  217. package/web/app/immutable/chunks/DNmtQDpd.js +0 -8
  218. package/web/app/immutable/chunks/DOXLMb3q.js +0 -129
  219. package/web/app/immutable/chunks/DPpctSbu.js +0 -84
  220. package/web/app/immutable/chunks/DR8edmqz.js +0 -139
  221. package/web/app/immutable/chunks/DUYSWpmE.js +0 -1
  222. package/web/app/immutable/chunks/DXaxEP8U.js +0 -1
  223. package/web/app/immutable/chunks/DYy64AXn.js +0 -338
  224. package/web/app/immutable/chunks/DcI5wCZ5.js +0 -1
  225. package/web/app/immutable/chunks/DdRfFUWu.js +0 -1
  226. package/web/app/immutable/chunks/DfF0sVRg.js +0 -3
  227. package/web/app/immutable/chunks/Divbj3b8.js +0 -40
  228. package/web/app/immutable/chunks/DmUq9QE3.js +0 -162
  229. package/web/app/immutable/chunks/Dqn0Ivcg.js +0 -39
  230. package/web/app/immutable/chunks/DsJW9cbJ.js +0 -88
  231. package/web/app/immutable/chunks/DtFtH7jZ.js +0 -4
  232. package/web/app/immutable/chunks/DvZBb8H_.js +0 -168
  233. package/web/app/immutable/chunks/GX9YV5ly.js +0 -129
  234. package/web/app/immutable/chunks/HP8lGamR.js +0 -257
  235. package/web/app/immutable/chunks/I1Pwq7BS.js +0 -15
  236. package/web/app/immutable/chunks/Jj6giUQG.js +0 -7
  237. package/web/app/immutable/chunks/K10ifhfc.js +0 -1
  238. package/web/app/immutable/chunks/PDuKM1t5.js +0 -1
  239. package/web/app/immutable/chunks/PUlhNAJH.js +0 -1
  240. package/web/app/immutable/chunks/VtMTQAXA.js +0 -30
  241. package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
  242. package/web/app/immutable/chunks/b7kGm9Ly.js +0 -36
  243. package/web/app/immutable/chunks/d1jIpATl.js +0 -62
  244. package/web/app/immutable/chunks/eCj-hB88.js +0 -3
  245. package/web/app/immutable/chunks/g3iFlZMW.js +0 -1
  246. package/web/app/immutable/chunks/iYpMWPUv.js +0 -206
  247. package/web/app/immutable/chunks/kqGPx169.js +0 -2
  248. package/web/app/immutable/chunks/ojOCNOao.js +0 -1
  249. package/web/app/immutable/chunks/v70CwcHz.js +0 -34
  250. package/web/app/immutable/chunks/zkqMQ7Ph.js +0 -1
  251. package/web/app/immutable/entry/start.Cuiv1qlw.js +0 -1
@@ -1,24 +0,0 @@
1
- import{p as de}from"./CQSBplf3.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./BgmOiuVG.js";import{s as Te}from"./DdRfFUWu.js";import{p as $e}from"./YqyEOqRv.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${n.sectionStrokeColor};
4
- stroke-width: ${n.sectionStrokeWidth};
5
- fill: ${n.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${n.leafStrokeColor};
9
- stroke-width: ${n.leafStrokeWidth};
10
- fill: ${n.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${d};
14
- font-size: ${n.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${h};
18
- font-size: ${n.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${s};
22
- font-size: ${n.titleFontSize};
23
- }
24
- `},"getStyles"),We=ke,Ye={parser:le,get db(){return new te},renderer:Ve,styles:We};export{Ye as diagram};
@@ -1,120 +0,0 @@
1
- import{f as o,aN as pt,bk as Ct,by as Rt,as as Wt,aO as gt,bC as E,c4 as Pt,bQ as Bt,cd as ft,c3 as X,e as Vt,a3 as Ft,a0 as Ot}from"./BgmOiuVG.js";import{d as ot}from"./BDuevalq.js";var tt=(function(){var e=o(function(k,s,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],c=[1,16],a=[1,19],f=[1,20],g={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(s,d,l,p,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:p.addTask(u[v],0,""),this.$=u[v];break;case 19:p.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:c,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:c,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),parse:o(function(s){var d=this,l=[0],p=[],x=[null],u=[],S=this.table,v="",I=0,C=0,W=2,z=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(s,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var U=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=p.pop()||w.lex()||z,typeof A!="number"&&(A instanceof Array&&(p=A,A=p.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,R={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>W&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
2
- `+w.showPosition()+`
3
- Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==z?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],R.$=x[x.length-B],R._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},U&&(R._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(R,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(R.$),u.push(R._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+d+"^"},"showPosition"),test_match:o(function(s,d){var l,p,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],l=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var u in x)this[u]=x[u];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,d,l,p;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),u=0;u<x.length;u++)if(l=this._input.match(this.rules[x[u]]),l&&(!d||l[0].length>d[0].length)){if(d=l,p=u,this.options.backtrack_lexer){if(s=this.test_match(l,x[u]),s!==!1)return s;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(s=this.test_match(d,x[p]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var d=this.next();return d||this.lex()},"lex"),begin:o(function(d){this.conditionStack.push(d)},"begin"),popState:o(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:o(function(d){this.begin(d)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(d,l,p,x){switch(p){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return k})();g.lexer=m;function y(){this.yy={}}return o(y,"Parser"),y.prototype=g,g.Parser=y,new y})();tt.parser=tt;var zt=tt,yt={};Vt(yt,{addEvent:()=>Tt,addSection:()=>_t,addTask:()=>Et,addTaskOrg:()=>$t,clear:()=>kt,default:()=>Gt,getCommonDb:()=>xt,getDirection:()=>bt,getSections:()=>wt,getTasks:()=>St,setDirection:()=>vt});var D="",mt=0,nt="LR",rt=[],q=[],K=[],xt=o(()=>Ft,"getCommonDb"),kt=o(function(){rt.length=0,q.length=0,D="",K.length=0,nt="LR",Ot()},"clear"),vt=o(function(e){nt=e},"setDirection"),bt=o(function(){return nt},"getDirection"),_t=o(function(e){D=e,rt.push(e)},"addSection"),wt=o(function(){return rt},"getSections"),St=o(function(){let e=ct();const t=100;let n=0;for(;!e&&n<t;)e=ct(),n++;return q.push(...K),q},"getTasks"),Et=o(function(e,t,n){const i={id:mt++,section:D,type:D,task:e,score:t||0,events:n?[n]:[]};K.push(i)},"addTask"),Tt=o(function(e){K.find(n=>n.id===mt-1).events.push(e)},"addEvent"),$t=o(function(e){const t={section:D,type:D,description:e,task:e,classes:[]};q.push(t)},"addTaskOrg"),ct=o(function(){const e=o(function(n){return K[n].processed},"compileTask");let t=!0;for(const[n,i]of K.entries())e(n),t=t&&i.processed;return t},"compileTasks"),Gt={clear:kt,getCommonDb:xt,getDirection:bt,setDirection:vt,addSection:_t,getSections:wt,getTasks:St,addTask:Et,addTaskOrg:$t,addEvent:Tt},Nt=0,Q=o(function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),t.class!==void 0&&n.attr("class",t.class),n},"drawRect"),Dt=o(function(e,t){const i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=e.append("g");r.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(f){const g=ot().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}o(h,"smile");function c(f){const g=ot().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}o(c,"sad");function a(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(a,"ambivalent"),t.score>3?h(r):t.score<3?c(r):a(r),i},"drawFace"),Kt=o(function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),n.class!==void 0&&n.attr("class",n.class),t.title!==void 0&&n.append("title").text(t.title),n},"drawCircle"),It=o(function(e,t){const n=t.text.replace(/<br\s*\/?>/gi," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class!==void 0&&i.attr("class",t.class);const r=i.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(n),i},"drawText"),Ut=o(function(e,t){function n(r,h,c,a,f){return r+","+h+" "+(r+c)+","+h+" "+(r+c)+","+(h+a-f)+" "+(r+c-f*1.2)+","+(h+a)+" "+r+","+(h+a)}o(n,"genPoints");const i=e.append("polygon");i.attr("points",n(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,It(e,t)},"drawLabel"),Xt=o(function(e,t,n){const i=e.append("g"),r=st();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,Q(i,r),Ht(n)(t.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},n,t.colour)},"drawSection"),et=-1,Zt=o(function(e,t,n,i){const r=t.x+n.width/2,h=e.append("g");et++,h.append("line").attr("id",i+"-task"+et).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Dt(h,{cx:r,cy:300+(5-t.score)*30,score:t.score});const a=st();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,Q(h,a),Ht(n)(t.task,h,a.x,a.y,a.width,a.height,{class:"task"},n,t.colour)},"drawTask"),jt=o(function(e,t){Q(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),qt=o(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),st=o(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Ht=(function(){function e(r,h,c,a,f,g,m,y){const k=h.append("text").attr("x",c+f/2).attr("y",a+g/2+5).style("font-color",y).style("text-anchor","middle").text(r);i(k,m)}o(e,"byText");function t(r,h,c,a,f,g,m,y,k){const{taskFontSize:s,taskFontFamily:d}=y,l=r.split(/<br\s*\/?>/gi);for(let p=0;p<l.length;p++){const x=p*s-s*(l.length-1)/2,u=h.append("text").attr("x",c+f/2).attr("y",a).attr("fill",k).style("text-anchor","middle").style("font-size",s).style("font-family",d);u.append("tspan").attr("x",c+f/2).attr("dy",x).text(l[p]),u.attr("y",a+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(u,m)}}o(t,"byTspan");function n(r,h,c,a,f,g,m,y){const k=h.append("switch"),d=k.append("foreignObject").attr("x",c).attr("y",a).attr("width",f).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),t(r,k,c,a,f,g,m,y),i(d,m)}o(n,"byFo");function i(r,h){for(const c in h)c in h&&r.attr(c,h[c])}return o(i,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?n:r.textPlacement==="old"?e:t}})(),Qt=o(function(e,t){Nt=0,et=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function it(e,t){e.each(function(){var n=X(this),i=n.text().split(/(\s+|<br>)/).reverse(),r,h=[],c=1.1,a=n.attr("y"),f=parseFloat(n.attr("dy")),g=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",f+"em");for(let m=0;m<i.length;m++)r=i[i.length-1-m],h.push(r),g.text(h.join(" ").trim()),(g.node().getComputedTextLength()>t||r==="<br>")&&(h.pop(),g.text(h.join(" ").trim()),r==="<br>"?h=[""]:h=[r],g=n.append("tspan").attr("x",0).attr("y",a).attr("dy",c+"em").text(r))})}o(it,"wrap");var Jt=o(function(e,t,n,i,r,h=!1){const{theme:c,look:a}=i,f=c?.includes("redux"),g=i?.themeVariables?.THEME_COLOR_LIMIT??12,m=n%g-1,y=e.append("g");t.section=m,y.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+m));const k=y.append("g"),s=y.append("g"),l=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(it,t.width).node().getBBox(),p=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(t.height=l.height+p*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,s.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),f&&s.attr("transform",`translate(${t.width/2}, ${h?t.padding/2+3:t.padding})`),te(k,t,m,r,i),a==="neo"&&(y.attr("data-look","neo"),f)){const x=c.includes("dark"),u=e.node()?.ownerSVGElement??e.node(),S=X(u),v=S.attr("id")??"",I=v?`${v}-drop-shadow`:"drop-shadow";if(S.select(`#${I}`).empty()){const C=S.select("defs");(C.empty()?S.append("defs"):C).append("filter").attr("id",I).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",x?"0.2":"0.06").attr("flood-color",x?"#FFFFFF":"#000000")}}return t},"drawNode"),Yt=o(function(e,t,n){const i=e.append("g"),h=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(it,t.width).node().getBBox(),c=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),h.height+c*1.1*.5+t.padding},"getVirtualNodeHeight"),te=o(function(e,t,n,i,r){const{theme:h}=r,c=h?.includes("redux")?0:5,a=5,f=c>0?`M0 ${t.height-a} v${-t.height+2*a} q0,-${c},${c},-${c} h${t.width-2*a} q${c},0,${c},${c} v${t.height-a} H0 Z`:`M0 ${t.height-a} v${-(t.height-a)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",i+"-node-"+Nt++).attr("class","node-bkg node-"+t.type).attr("d",f),h?.includes("redux")||e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),M={drawRect:Q,drawCircle:Kt,drawSection:Xt,drawText:It,drawLabel:Ut,drawTask:Zt,drawBackgroundRect:jt,getTextObj:qt,getNoteRect:st,initGraphics:Qt,drawNode:Jt,getVirtualNodeHeight:Yt},ee=o(function(e,t,n,i){const r=gt(),{look:h,theme:c,themeVariables:a}=r,{useGradient:f,gradientStart:g,gradientStop:m}=a,y=r.timeline?.leftMargin??50;E.debug("timeline",i.db);const k=r.securityLevel;let s;k==="sandbox"&&(s=X("#i"+t));const l=(k==="sandbox"?X(s.nodes()[0].contentDocument.body):X("body")).select("#"+t);l.append("g");const p=i.db.getTasks(),x=i.db.getCommonDb().getDiagramTitle();E.debug("task",p),M.initGraphics(l,t);const u=i.db.getSections();E.debug("sections",u);let S=0,v=0,I=0,C=0,W=50+y,z=50;C=50;let L=0,w=!0;u.forEach(function(N){const b={number:L,descr:N,section:L,width:150,padding:20,maxHeight:S},_=M.getVirtualNodeHeight(l,b,r);E.debug("sectionHeight before draw",_),S=Math.max(S,_+20)});let H=0,V=0;E.debug("tasks.length",p.length);for(const[N,b]of p.entries()){const _={number:N,descr:b,section:b.section,width:150,padding:20,maxHeight:v},$=M.getVirtualNodeHeight(l,_,r);E.debug("taskHeight before draw",$),v=Math.max(v,$+20),H=Math.max(H,b.events.length);let T=0;for(const P of b.events){const R={descr:P,section:b.section,number:b.section,width:150,padding:20,maxHeight:50};T+=M.getVirtualNodeHeight(l,R,r)}b.events.length>0&&(T+=(b.events.length-1)*10),V=Math.max(V,T)}E.debug("maxSectionHeight before draw",S),E.debug("maxTaskHeight before draw",v),u&&u.length>0?u.forEach(N=>{const b=p.filter(P=>P.section===N),_={number:L,descr:N,section:L,width:200*Math.max(b.length,1)-50,padding:20,maxHeight:S};E.debug("sectionNode",_);const $=l.append("g"),T=M.drawNode($,_,L,r,t);E.debug("sectionNode output",T),$.attr("transform",`translate(${W}, ${C})`),z+=S+50,b.length>0&&lt(l,b,L,W,z,v,r,H,V,S,!1,t),W+=200*Math.max(b.length,1),z=C,L++}):(w=!1,lt(l,p,L,W,z,v,r,H,V,S,!0,t));const F=l.node().getBBox();if(E.debug("bounds",F),x&&l.append("text").text(x).attr("x",h==="neo"?F.x*2+y:F.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=w?S+v+150:v+100,l.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",I).attr("x2",F.width+3*y).attr("y2",I).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),h==="neo"&&f&&c!=="neutral"){const N=l.select("defs"),_=(N.empty()?l.append("defs"):N).append("linearGradient").attr("id",l.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");_.append("stop").attr("offset","0%").attr("stop-color",g).attr("stop-opacity",1),_.append("stop").attr("offset","100%").attr("stop-color",m).attr("stop-opacity",1)}ft(void 0,l,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),lt=o(function(e,t,n,i,r,h,c,a,f,g,m,y){for(const k of t){const s={descr:k.task,section:n,number:n,width:150,padding:20,maxHeight:h};E.debug("taskNode",s);const d=e.append("g").attr("class","taskWrapper"),p=M.drawNode(d,s,n,c,y).height;if(E.debug("taskHeight after draw",p),d.attr("transform",`translate(${i}, ${r})`),h=Math.max(h,p),k.events){const x=e.append("g").attr("class","lineWrapper");let u=h;r+=100,u=u+ne(e,k.events,n,i,r,c,y),r-=100,x.append("line").attr("x1",i+190/2).attr("y1",r+h).attr("x2",i+190/2).attr("y2",r+h+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${y}-arrowhead)`).attr("stroke-dasharray","5,5")}i=i+200,m&&!c.timeline?.disableMulticolor&&n++}r=r-10},"drawTasks"),ne=o(function(e,t,n,i,r,h,c){let a=0;const f=r;r=r+100;for(const g of t){const m={descr:g,section:n,number:n,width:150,padding:20,maxHeight:50};E.debug("eventNode",m);const y=e.append("g").attr("class","eventWrapper"),s=M.drawNode(y,m,n,h,c,!0).height;a=a+s,y.attr("transform",`translate(${i}, ${r})`),r=r+10+s}return r=f,a},"drawEvents"),re={setConf:o(()=>{},"setConf"),draw:ee},J=200,O=5,se=J+O*2,at=J+100,ie=at+O*2,Lt=10,ae=0,ht=20,Mt=20,dt=30,At=50,oe=o(function(e,t,n,i){const r=gt(),h=r.timeline?.leftMargin??50;E.debug("timeline",i.db);const c=Pt(t);c.append("g");const a=i.db.getTasks(),f=i.db.getCommonDb().getDiagramTitle();E.debug("task",a),M.initGraphics(c);const g=i.db.getSections();E.debug("sections",g);let m=0,y=0;const k=50+h;let s=50;const d=s,l=k,p=se+Mt,x=ie+At,u=l+p;let S=0;const v=g&&g.length>0,I=v?u:k+p,C=Math.max(50,p+x-O*2);g.forEach(function(N){const b={number:S,descr:N,section:S,width:C,padding:O,maxHeight:m},_=M.getVirtualNodeHeight(c,b,r);E.debug("sectionHeight before draw",_),m=Math.max(m,_)});let W=0;E.debug("tasks.length",a.length);for(const[N,b]of a.entries()){const _={number:N,descr:b,section:b.section,width:J,padding:O,maxHeight:y},$=M.getVirtualNodeHeight(c,_,r);E.debug("taskHeight before draw",$),y=Math.max(y,$);let T=0;for(const P of b.events){const R={descr:P,section:b.section,number:b.section,width:at,padding:O,maxHeight:50};T+=M.getVirtualNodeHeight(c,R,r)}b.events.length>0&&(T+=(b.events.length-1)*Lt),W=Math.max(W,T)+ae}E.debug("maxSectionHeight before draw",m),E.debug("maxTaskHeight before draw",y);const L=Math.max(y,W)+dt;v?g.forEach(N=>{const b=a.filter(Z=>Z.section===N),_={number:S,descr:N,section:S,width:C,padding:O,maxHeight:m};E.debug("sectionNode",_);const $=c.append("g"),T=M.drawNode($,_,S,r);E.debug("sectionNode output",T);const P=I-p;$.attr("transform",`translate(${P}, ${s})`);const R=s+T.height+ht;b.length>0&&ut(c,b,S,I,R,y,r,L,!1);const G=b.length,B=T.height+ht+L*Math.max(G,1)-(G>0?dt*2:0);s+=B,S++}):ut(c,a,S,I,s,y,r,L,!0);let w=c.node()?.getBBox();if(!w)throw new Error("bbox not found");if(E.debug("bounds",w),f){if(c.append("text").text(f).attr("x",w.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=c.node()?.getBBox(),!w)throw new Error("bbox not found");E.debug("bounds after title",w)}const[H]=Bt(r.fontSize),V=(H??16)*2,F=(H??16)*.5+20,U=c.append("g").attr("class","lineWrapper");U.append("line").attr("x1",I).attr("y1",d-V).attr("x2",I).attr("y2",w.y+w.height+F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),U.lower(),ft(void 0,c,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),ut=o(function(e,t,n,i,r,h,c,a,f){for(const g of t){const m={descr:g.task,section:n,number:n,width:J,padding:O,maxHeight:h};E.debug("taskNode",m);const y=e.append("g").attr("class","taskWrapper"),k=M.drawNode(y,m,n,c),s=k.height;E.debug("taskHeight after draw",s);const d=i-Mt-k.width;if(y.attr("transform",`translate(${d}, ${r})`),h=Math.max(h,s),g.events&&g.events.length>0){const l=r,p=i+At;ce(e,g.events,n,i,p,l,c)}r=r+a,f&&!c.timeline?.disableMulticolor&&n++}},"drawTasks"),ce=o(function(e,t,n,i,r,h,c){let a=h;for(const f of t){const g={descr:f,section:n,number:n,width:at,padding:O,maxHeight:0};E.debug("eventNode",g);const m=e.append("g").attr("class","eventWrapper"),k=M.drawNode(m,g,n,c).height;m.attr("transform",`translate(${r}, ${a})`);const s=e.append("g").attr("class","lineWrapper"),d=a+k/2;s.append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),a=a+k+Lt}return a-h},"drawEvents"),le={setConf:o(()=>{},"setConf"),draw:oe},he=o(e=>{const{theme:t}=pt(),n=t?.includes("dark"),i=t?.includes("color"),r=e.svgId?.replace(/^#/,"")??"",h=r?`url(#${r}-drop-shadow)`:e.dropShadow??"none";let c="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++){const f=`${17-3*a}`,g=i?e.borderColorArray[a]:e.mainBkg,m=i?e.borderColorArray[a]:e.nodeBorder;c+=`
7
- .section-${a-1} rect,
8
- .section-${a-1} path,
9
- .section-${a-1} circle {
10
- fill: ${n&&i?e.mainBkg:g};
11
- stroke: ${m};
12
- stroke-width: ${e.strokeWidth};
13
- filter: ${h};
14
- }
15
-
16
- .section-${a-1} text {
17
- fill: ${e.nodeBorder};
18
- font-weight: ${e.fontWeight}
19
- }
20
-
21
- .node-icon-${a-1} {
22
- font-size: 40px;
23
- color: ${e["cScaleLabel"+a]};
24
- }
25
-
26
- .section-edge-${a-1} {
27
- stroke: ${e["cScale"+a]};
28
- }
29
-
30
- .edge-depth-${a-1} {
31
- stroke-width: ${f};
32
- }
33
-
34
- .section-${a-1} line {
35
- stroke: ${e["cScaleInv"+a]};
36
- stroke-width: 3;
37
- }
38
-
39
- .lineWrapper line {
40
- stroke: ${e.nodeBorder};
41
- stroke-width:${e.strokeWidth}
42
- }
43
-
44
- .disabled,
45
- .disabled circle,
46
- .disabled text {
47
- fill: ${e.tertiaryColor??"lightgray"};
48
- }
49
-
50
- .disabled text {
51
- fill: ${e.clusterBorder??"#efefef"};
52
- }
53
- `}return c},"genReduxSections"),de=o(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],Ct(e["lineColor"+n])?e["lineColor"+n]=Rt(e["lineColor"+n],20):e["lineColor"+n]=Wt(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);t+=`
54
- .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
55
- fill: ${e["cScale"+n]};
56
- }
57
- .section-${n-1} text {
58
- fill: ${e["cScaleLabel"+n]};
59
- }
60
- .node-icon-${n-1} {
61
- font-size: 40px;
62
- color: ${e["cScaleLabel"+n]};
63
- }
64
- .section-edge-${n-1}{
65
- stroke: ${e["cScale"+n]};
66
- }
67
- .edge-depth-${n-1}{
68
- stroke-width: ${i};
69
- }
70
- .section-${n-1} line {
71
- stroke: ${e["cScaleInv"+n]} ;
72
- stroke-width: 3;
73
- }
74
-
75
- .lineWrapper line{
76
- stroke: ${e["cScaleLabel"+n]} ;
77
- }
78
-
79
- .disabled, .disabled circle, .disabled text {
80
- fill: ${e.tertiaryColor??"lightgray"};
81
- }
82
- .disabled text {
83
- fill: ${e.clusterBorder??"#efefef"};
84
- }
85
- `}return t},"genSections"),ue=o(e=>{const{theme:t}=pt(),n=t?.includes("redux"),i=t==="neutral",r=e.svgId?.replace(/^#/,"")??"";let h="";if(e.useGradient&&r&&e.THEME_COLOR_LIMIT&&!i)for(let c=0;c<e.THEME_COLOR_LIMIT;c++)h+=`
86
- .section-${c-1}[data-look="neo"] rect,
87
- .section-${c-1}[data-look="neo"] path,
88
- .section-${c-1}[data-look="neo"] circle {
89
- fill: ${e.mainBkg};
90
- stroke: url(#${r}-gradient);
91
- stroke-width: 2;
92
- }
93
- .section-${c-1}[data-look="neo"] line {
94
- stroke: url(#${r}-gradient);
95
- stroke-width: 2;
96
- }`;return`
97
- .edge {
98
- stroke-width: 3;
99
- }
100
- ${n?he(e):de(e)}
101
- ${h}
102
- .section-root rect, .section-root path, .section-root circle {
103
- fill: ${e.git0};
104
- }
105
- .section-root text {
106
- fill: ${e.gitBranchLabel0};
107
- }
108
- .icon-container {
109
- height:100%;
110
- display: flex;
111
- justify-content: center;
112
- align-items: center;
113
- }
114
- .edge {
115
- fill: none;
116
- }
117
- .eventWrapper {
118
- filter: brightness(120%);
119
- }
120
- `},"getStyles"),pe=ue,ge={setConf:o(()=>{},"setConf"),draw:o((e,t,n,i)=>(i?.db?.getDirection?.()??"LR")==="TD"?le.draw(e,t,n,i):re.draw(e,t,n,i),"draw")},me={db:yt,renderer:ge,parser:zt,styles:pe};export{me as diagram};