@layers-app/editor 0.1.16 → 0.2.0

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 (215) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +7 -6
  4. package/dist/{layers.CritN2d6.js → layers.09-oE2J6.js} +1 -1
  5. package/dist/layers.0GKOEfQX.js +132 -0
  6. package/dist/{layers.B4RKwCol.js → layers.0QUpYe8U.js} +1 -1
  7. package/dist/{layers.CJB1-Z28.js → layers.3Ou02qfO.js} +24 -24
  8. package/dist/{layers.vZrO9FxG.js → layers.3ncr24k-.js} +1 -1
  9. package/dist/{layers.0agn9U38.js → layers.4B2wOIR1.js} +1 -1
  10. package/dist/{layers.DdwhNbtU.js → layers.7AsF2nNX.js} +1 -1
  11. package/dist/{layers.6TcSmo9T.js → layers.7H2WL17C.js} +1 -1
  12. package/dist/{layers.2fPIPdpy.js → layers.7PjUehxE.js} +1 -1
  13. package/dist/{layers.rx1rFfdh.js → layers.99biaYEX.js} +1 -1
  14. package/dist/{layers.6wb7YICa.js → layers.B1Se8OaH.js} +1 -1
  15. package/dist/{layers.6P0S2dCi.js → layers.B26_Cpa_.js} +1 -1
  16. package/dist/{layers.Ci7SZ90y.js → layers.B2Pkrdw1.js} +1 -1
  17. package/dist/{layers.DJToy_B3.js → layers.B3BBy8oP.js} +3 -3
  18. package/dist/{layers.DGC_VKUl.js → layers.B5mng6BK.js} +1 -1
  19. package/dist/layers.B7HljEnE.js +1 -0
  20. package/dist/{layers.7SwL7zkW.js → layers.B8vpQUjo.js} +1 -1
  21. package/dist/layers.BBlxht-2.js +319 -0
  22. package/dist/{layers.Cr5v8CNW.js → layers.BCkBAe54.js} +1 -1
  23. package/dist/{layers.CnAQogiG.js → layers.BFTIBVaT.js} +1 -1
  24. package/dist/{layers.DKg7f0Vu.js → layers.BGu81HI5.js} +1 -1
  25. package/dist/{layers.BYYE1XbO.js → layers.BH9wqgDY.js} +1 -1
  26. package/dist/{layers.CqeHazh2.js → layers.BKC37Rv9.js} +312 -307
  27. package/dist/{layers.Ce_PEr-a.js → layers.BLDa5caG.js} +7 -7
  28. package/dist/{layers.TAEto6Cc.js → layers.BMC2kTTB.js} +1 -1
  29. package/dist/{layers.DHNbFys2.js → layers.BMwaDYYZ.js} +1 -1
  30. package/dist/{layers.DyM7PNXN.js → layers.BOuSIBai.js} +1 -1
  31. package/dist/{layers.BrxOfsKU.js → layers.BQKuAwQB.js} +1 -1
  32. package/dist/{layers.DukSLPoo.js → layers.BRDVz-vO.js} +1 -1
  33. package/dist/{layers.CwjXOC64.js → layers.BUmiV0yN.js} +1 -1
  34. package/dist/{layers.DqCoU2JD.js → layers.BV8IclsW.js} +4 -4
  35. package/dist/{layers.C3QXnm78.js → layers.BVMj1jxT.js} +1 -1
  36. package/dist/layers.BW2Tio6y.js +8 -0
  37. package/dist/{layers.BiLOI2BB.js → layers.BWcGUFHK.js} +1 -1
  38. package/dist/{layers.B9oOdv15.js → layers.BWnw9UAM.js} +1 -1
  39. package/dist/{layers.BN0QqImj.js → layers.BZ8rMF0E.js} +2 -2
  40. package/dist/layers.BZxcnuyH.js +1 -0
  41. package/dist/{layers.F8YP3iD1.js → layers.B_tG84JI.js} +1 -1
  42. package/dist/{layers.Du8zkp3O.js → layers.BahDi8Jq.js} +1 -1
  43. package/dist/{layers.d1Xrz87s.js → layers.BbArzt5V.js} +1 -1
  44. package/dist/{layers.BDztdwoe.js → layers.BbLvjR2J.js} +1 -1
  45. package/dist/{layers.De_6uA8g.js → layers.BeQ4Whpe.js} +1 -1
  46. package/dist/{layers.DEjmzIEE.js → layers.BeoJyn39.js} +1 -1
  47. package/dist/{layers.CERLNCsF.js → layers.BfiIrqIN.js} +1 -1
  48. package/dist/{layers.C6ANmA3z.js → layers.Bg-rk-IY.js} +3 -3
  49. package/dist/{layers.DOyDjuBn.js → layers.Bh3cQUDo.js} +1 -1
  50. package/dist/{layers.BXjod8ux.js → layers.BhzBGGFh.js} +4 -4
  51. package/dist/{layers.B4cBVPvd.js → layers.BjijCp-F.js} +1 -1
  52. package/dist/{layers.SCec437p.js → layers.BmTC_qEU.js} +3 -3
  53. package/dist/{layers.D6qoFg65.js → layers.Bp4GA39y.js} +243 -240
  54. package/dist/{layers.DQmR5BbR.js → layers.BrEysPok.js} +1 -1
  55. package/dist/{layers.BoKd3Opv.js → layers.Bs1Yuja3.js} +1 -1
  56. package/dist/{layers.CPd0wfyu.js → layers.Bt2QXZPR.js} +2 -2
  57. package/dist/{layers.DBiJVWIB.js → layers.Bt8u_f-g.js} +1 -1
  58. package/dist/{layers.BJN70TbB.js → layers.BtZHGQ6E.js} +1 -1
  59. package/dist/{layers.DSVNFncz.js → layers.BtsKbOpT.js} +1 -1
  60. package/dist/{layers.WC6uTnUG.js → layers.Bu-x_OvJ.js} +1 -1
  61. package/dist/{layers.CutUatmr.js → layers.BulWAmk4.js} +1 -1
  62. package/dist/{layers.BImKokxf.js → layers.BvS5Wia8.js} +1 -1
  63. package/dist/layers.BvuDBP9J.js +4 -0
  64. package/dist/{layers.DS4-wj64.js → layers.Bw0ntPL0.js} +1 -1
  65. package/dist/{layers.CKRbz9AX.js → layers.BwoIBDJT.js} +10 -10
  66. package/dist/{layers.KcmTc86G.js → layers.BxGdSKRP.js} +2 -2
  67. package/dist/{layers.BuQSaejb.js → layers.BxS3YGIg.js} +4 -4
  68. package/dist/{layers.WnfDZq_L.js → layers.C1IDSQaT.js} +1 -1
  69. package/dist/{layers.CXzmxjI3.js → layers.C1pkM2ng.js} +5 -5
  70. package/dist/{layers.kwghPwdc.js → layers.C22FTFEe.js} +1 -1
  71. package/dist/{layers.Bf8tF8Zh.js → layers.C4ls7ISP.js} +1 -1
  72. package/dist/{layers.CHz5UpY6.js → layers.C6FjBgZG.js} +1 -1
  73. package/dist/{layers.D8jMth7q.js → layers.C6qpUDWv.js} +1 -1
  74. package/dist/{layers.CsxIdh-5.js → layers.C8ovo18Q.js} +1 -1
  75. package/dist/{layers.BH99nVRn.js → layers.C8qZUu8m.js} +1 -1
  76. package/dist/{layers.OmUdp6O6.js → layers.C94fZyIE.js} +1 -1
  77. package/dist/{layers.DG6ArcYg.js → layers.CC5jTanD.js} +1 -1
  78. package/dist/{layers.D2liSNMb.js → layers.CEbG0GWT.js} +1 -1
  79. package/dist/{layers.D2IwWho1.js → layers.CFNz078z.js} +1 -1
  80. package/dist/{layers.D1mE8evp.js → layers.CGpLdUiP.js} +2 -2
  81. package/dist/{layers.C0O768PV.js → layers.CI18gAPx.js} +1 -1
  82. package/dist/{layers.BJ3Xb9PL.js → layers.CI9cIkVg.js} +1 -1
  83. package/dist/{layers.RJ08bFHy.js → layers.CIPEXJ_Z.js} +2 -2
  84. package/dist/{layers.IVewtL2H.js → layers.CJDFmwM6.js} +1 -1
  85. package/dist/{layers.BkFrADJ2.js → layers.CJKF-1iy.js} +1 -1
  86. package/dist/{layers.B7kA4zKD.js → layers.CLLE0XNM.js} +5 -5
  87. package/dist/{layers.C9H3n8qm.js → layers.CN8r250h.js} +1 -1
  88. package/dist/{layers.DNKPBLIg.js → layers.CNHqdpb5.js} +1 -1
  89. package/dist/{layers.D6aApqlI.js → layers.CNLMZ-n8.js} +1 -1
  90. package/dist/{layers.DoR5Jodc.js → layers.COLyJ5LO.js} +1 -1
  91. package/dist/{layers.CxhryzBW.js → layers.COPquQl9.js} +1 -1
  92. package/dist/{layers.DQDLQ3JY.js → layers.CQuzRJqP.js} +1 -1
  93. package/dist/{layers.SZ-NKoHP.js → layers.CR64bkIJ.js} +1 -1
  94. package/dist/{layers.CaDQ45MK.js → layers.CRBfbmxk.js} +1 -1
  95. package/dist/{layers.DkA9ohuJ.js → layers.CRqgQB8J.js} +8 -8
  96. package/dist/{layers.BlJasVbS.js → layers.CS2XhZuy.js} +1 -1
  97. package/dist/{layers.DRbRI35m.js → layers.CSAG6lyD.js} +1 -1
  98. package/dist/{layers.qsL8mg0n.js → layers.CTcZFAZr.js} +1 -1
  99. package/dist/{layers.BYZSLCPi.js → layers.CTm23lwt.js} +1 -1
  100. package/dist/{layers.BC9dC3rr.js → layers.CTwL_3Cz.js} +2 -2
  101. package/dist/{layers.Bb_gfFyt.js → layers.CU8oxKiy.js} +1 -1
  102. package/dist/{layers.Ce1hEFnt.js → layers.CUS1mIbU.js} +1 -1
  103. package/dist/{layers.DBuw0db9.js → layers.CV4vxTrW.js} +1 -1
  104. package/dist/{layers.DXbvuf4T.js → layers.CWT_90sw.js} +1 -1
  105. package/dist/{layers.BJi-aex_.js → layers.CWpeLc0t.js} +1 -1
  106. package/dist/{layers.BmKVvESm.js → layers.CZ8VwlJ4.js} +1 -1
  107. package/dist/{layers.B4tFIYtW.js → layers.C_TMBTwJ.js} +1 -1
  108. package/dist/{layers.CyZkAQOa.js → layers.CbKsKQXR.js} +1 -1
  109. package/dist/{layers.BOcCQd5a.js → layers.Cg7KtW25.js} +1 -1
  110. package/dist/{layers.8ozuUIB5.js → layers.ClRou2HW.js} +1 -1
  111. package/dist/{layers.D_tU1vL2.js → layers.CmawNzHJ.js} +1 -1
  112. package/dist/{layers.Ctr7JjWz.js → layers.Cq0Ch5Iv.js} +1 -1
  113. package/dist/{layers.t97hj3v5.js → layers.CqF4H_mD.js} +1 -1
  114. package/dist/{layers.BOFyEVtL.js → layers.CqMjEixm.js} +1 -1
  115. package/dist/{layers.C5uFTa-q.js → layers.Cs8AaSS3.js} +1 -1
  116. package/dist/{layers.DRJN3Qqz.js → layers.Ct4uwlVm.js} +1 -1
  117. package/dist/{layers.Cr5dNtIu.js → layers.CvP8SKXD.js} +1 -1
  118. package/dist/{layers.CUyrWIJq.js → layers.Cw-Ru6_X.js} +1 -1
  119. package/dist/{layers.B_hx9t5w.js → layers.CwIlknpB.js} +1 -1
  120. package/dist/{layers.BOIduyts.js → layers.CwoIo7W8.js} +1 -1
  121. package/dist/{layers.rdelwker.js → layers.CxfZ-PyC.js} +1 -1
  122. package/dist/{layers.soDgNxKV.js → layers.CxtTQD6P.js} +1 -1
  123. package/dist/{layers.CIlh5Gs8.js → layers.CyhLcp6y.js} +6 -6
  124. package/dist/{layers.BiWL1CIG.js → layers.CyziF_SQ.js} +1 -1
  125. package/dist/{layers.CXz5A-ui.js → layers.D-TocJgP.js} +2 -2
  126. package/dist/{layers.BG52BRJv.js → layers.D-kFJ8el.js} +1 -1
  127. package/dist/{layers.DYoMg_Vq.js → layers.D0DwN9e2.js} +1 -1
  128. package/dist/{layers.ZLj3yadj.js → layers.D1ZA3f6W.js} +17 -14
  129. package/dist/{layers.Ns3jFXFc.js → layers.D2U6dFrQ.js} +1 -1
  130. package/dist/{layers.Cjrufb7J.js → layers.D37Y-iXY.js} +1 -1
  131. package/dist/{layers.BS4vQx8z.js → layers.D3uU6aTA.js} +1 -1
  132. package/dist/{layers.0zuAfRAE.js → layers.D5zd0los.js} +1 -1
  133. package/dist/{layers.DIEpb8WM.js → layers.D8h1OdVA.js} +2 -2
  134. package/dist/{layers.CoCLphHc.js → layers.D8x1H5iy.js} +1 -1
  135. package/dist/{layers.CY6R_q6p.js → layers.D909hx91.js} +5 -5
  136. package/dist/{layers.Dxb-tFfq.js → layers.DAdht3uC.js} +1 -1
  137. package/dist/{layers.Dsmy3lsi.js → layers.DAjImaDP.js} +1 -1
  138. package/dist/{layers.Duz9F6lU.js → layers.DBc1SfKV.js} +1 -1
  139. package/dist/{layers.M6G_JkeL.js → layers.DCNkKcra.js} +4 -4
  140. package/dist/{layers.DiQ_gwIL.js → layers.DCRFU33R.js} +1 -1
  141. package/dist/{layers.CY8C-mEQ.js → layers.DCtPhtVd.js} +1 -1
  142. package/dist/layers.DEzlOM_P.js +1 -0
  143. package/dist/{layers.DnEZnko4.js → layers.DHSCEHR8.js} +1 -1
  144. package/dist/{layers.DDGKzEwb.js → layers.DIVgeM1q.js} +1 -1
  145. package/dist/{layers.ClJ8nrzW.js → layers.DRho07Me.js} +1 -1
  146. package/dist/{layers.DxSpOYEc.js → layers.DStKHWvW.js} +1 -1
  147. package/dist/{layers.CGfqWa9L.js → layers.DVOYRLqd.js} +1 -1
  148. package/dist/layers.DX3QVmN4.js +6 -0
  149. package/dist/{layers.BDGluALF.js → layers.DXz6eUMI.js} +1 -1
  150. package/dist/{layers.BPcE1ISv.js → layers.D_VA8g4H.js} +4 -4
  151. package/dist/{layers.Q0qeP4v6.js → layers.D_fROAHm.js} +1 -1
  152. package/dist/{layers.CxzAffhh.js → layers.DcfJoQ0g.js} +1 -1
  153. package/dist/{layers.BkL55eP7.js → layers.Dd8DmCpU.js} +1 -1
  154. package/dist/{layers.CKByva9O.js → layers.Ddk469Dh.js} +1 -1
  155. package/dist/{layers.DTwUXkdf.js → layers.Ddq-N8Yz.js} +1 -1
  156. package/dist/{layers.CCroTXUm.js → layers.DeMtErmI.js} +1 -1
  157. package/dist/layers.DftUTp1O.js +122 -0
  158. package/dist/{layers.gl94T7hy.js → layers.DgWiivNQ.js} +4 -4
  159. package/dist/{layers.DEn5dHoE.js → layers.DgZOLgtm.js} +1 -1
  160. package/dist/{layers.CjGrwg5F.js → layers.Dimd3uv_.js} +1 -1
  161. package/dist/{layers.DOaIYRd1.js → layers.Dj1UIVrM.js} +1 -1
  162. package/dist/{layers.CcEh52JV.js → layers.DjLVRmof.js} +1 -1
  163. package/dist/{layers.tHuZlFUf.js → layers.Dk0kd6-B.js} +1 -1
  164. package/dist/{layers.hOlu0HrY.js → layers.DpBckJG9.js} +1 -1
  165. package/dist/{layers.C1oA5eFU.js → layers.DpoYMK1j.js} +1 -1
  166. package/dist/{layers.D77zcOqA.js → layers.DrMkXfHK.js} +1 -1
  167. package/dist/{layers.DZr7Qkz9.js → layers.DrqT2qdE.js} +1 -1
  168. package/dist/{layers.PgPihd0l.js → layers.DvkFfQRh.js} +1 -1
  169. package/dist/{layers.woe7IQZ4.js → layers.DwIdSTnx.js} +1 -1
  170. package/dist/{layers.3RbjWi2G.js → layers.DxK9eunI.js} +1 -1
  171. package/dist/{layers.DMuZyoce.js → layers.DxlYIAi2.js} +1 -1
  172. package/dist/{layers.Difp8WSo.js → layers.DzuES31X.js} +744 -745
  173. package/dist/{layers.Djj_g2nX.js → layers.GDyqPJjS.js} +1 -1
  174. package/dist/{layers.DHXMHVvn.js → layers.IVSRrFHN.js} +1 -1
  175. package/dist/{layers.DbJ6O6vi.js → layers.JP-lzz5f.js} +1 -1
  176. package/dist/{layers.Dj_SObWn.js → layers.Ky-Kjdnk.js} +4 -4
  177. package/dist/{layers.JRv_vUI8.js → layers.OucwMvYb.js} +1 -1
  178. package/dist/{layers.CUQtPSYb.js → layers.STzdH4sy.js} +1 -1
  179. package/dist/{layers.DiRK1bXl.js → layers.SsYje0m0.js} +1 -1
  180. package/dist/{layers.CNw2TwGn.js → layers.TyARdHUj.js} +4 -4
  181. package/dist/{layers.M3pByxqo.js → layers.U3puEHYK.js} +3 -3
  182. package/dist/{layers.BJqXuX-7.js → layers.VCVkMi6g.js} +1 -1
  183. package/dist/{layers.D3-BCGA6.js → layers.YCPGkQIi.js} +1 -1
  184. package/dist/{layers.CyjViT1-.js → layers._9mQNYpC.js} +3 -3
  185. package/dist/{layers.DUfcNMdy.js → layers.bGcD7F4_.js} +1 -1
  186. package/dist/{layers.J0BOvhlC.js → layers.dd9VpJ2j.js} +1 -1
  187. package/dist/{layers.COqfbs2Z.js → layers.eXGxDQC_.js} +1 -1
  188. package/dist/{layers.CDqR0SZM.js → layers.eyx0ycIx.js} +1 -1
  189. package/dist/{layers.B0pG5PpS.js → layers.f6YInEN9.js} +1 -1
  190. package/dist/{layers.DvuuBfMn.js → layers.fDF0XXNl.js} +1 -1
  191. package/dist/{layers.Jnv_Qhu3.js → layers.fwvLLyfC.js} +1 -1
  192. package/dist/{layers.BsqdBnvN.js → layers.gWRZSm_f.js} +1 -1
  193. package/dist/{layers.d_9SW4Di.js → layers.iWHM-07P.js} +1 -1
  194. package/dist/{layers.B73Ahj2V.js → layers.lqQ4_QwL.js} +1 -1
  195. package/dist/{layers.BKAHSH4A.js → layers.mp_9sP04.js} +1 -1
  196. package/dist/{layers.CZCXURNP.js → layers.oAr0GPvq.js} +1 -1
  197. package/dist/{layers.45sRj6yW.js → layers.rOgZc7GK.js} +1 -1
  198. package/dist/{layers.BoVMqGYB.js → layers.rze-LVSQ.js} +3 -3
  199. package/dist/{layers.CFRn9Gb3.js → layers.s5JSe8EA.js} +8531 -8294
  200. package/dist/{layers.BbAfGOJq.js → layers.tv97TVVq.js} +3 -3
  201. package/dist/{layers.B-oGNRR6.js → layers.umahO1ag.js} +1 -1
  202. package/dist/{layers.DmPSZzed.js → layers.v61VCm7Q.js} +3 -3
  203. package/dist/{layers.DT7IdvFt.js → layers.vNQeOI7i.js} +1 -1
  204. package/dist/{layers.CnRrj_ns.js → layers.wt0qnNWd.js} +3 -3
  205. package/dist/{layers.CPS6m7mc.js → layers.zq4AFjsy.js} +1 -1
  206. package/package.json +4 -3
  207. package/dist/layers.B9pZK4Uf.js +0 -8
  208. package/dist/layers.BFK5RcJw.js +0 -6
  209. package/dist/layers.BWQQxLQ-.js +0 -4
  210. package/dist/layers.C50p672b.js +0 -1
  211. package/dist/layers.CItteJap.js +0 -348
  212. package/dist/layers.CYsjm8a5.js +0 -1
  213. package/dist/layers.CaWv47QB.js +0 -132
  214. package/dist/layers.DE1ptQHd.js +0 -1
  215. package/dist/layers.DjkiQ_cr.js +0 -122
@@ -1,28 +1,28 @@
1
- import { l as g, r as lt, g as b, t as H, d as E, u as j, i as q, v as Q } from "./layers.Difp8WSo.js";
2
- import { c as st } from "./layers.D6qoFg65.js";
3
- import { l as ct } from "./layers.6TcSmo9T.js";
4
- const ht = (e, t, a, i) => {
1
+ import { l as g, r as lt, g as b, t as H, d as E, u as j, i as Q, v as V } from "./layers.DzuES31X.js";
2
+ import { c as st } from "./layers.Bp4GA39y.js";
3
+ import { l as ct } from "./layers.7H2WL17C.js";
4
+ const ht = (a, t, e, i) => {
5
5
  t.forEach((l) => {
6
- wt[l](e, a, i);
6
+ wt[l](a, e, i);
7
7
  });
8
- }, ot = (e, t, a) => {
9
- g.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
10
- }, yt = (e, t, a) => {
11
- e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
12
- }, pt = (e, t, a) => {
13
- e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
14
- }, ft = (e, t, a) => {
15
- e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
16
- }, xt = (e, t, a) => {
17
- e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
18
- }, dt = (e, t, a) => {
19
- e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
20
- }, gt = (e, t, a) => {
21
- e.append("marker").attr("id", a + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
22
- }, ut = (e, t, a) => {
23
- e.append("marker").attr("id", a + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
24
- }, bt = (e, t, a) => {
25
- e.append("defs").append("marker").attr("id", a + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
8
+ }, ot = (a, t, e) => {
9
+ g.trace("Making markers for ", e), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
10
+ }, yt = (a, t, e) => {
11
+ a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
12
+ }, pt = (a, t, e) => {
13
+ a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
14
+ }, ft = (a, t, e) => {
15
+ a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
16
+ }, xt = (a, t, e) => {
17
+ a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
18
+ }, dt = (a, t, e) => {
19
+ a.append("marker").attr("id", e + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
20
+ }, gt = (a, t, e) => {
21
+ a.append("marker").attr("id", e + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
22
+ }, ut = (a, t, e) => {
23
+ a.append("marker").attr("id", e + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
24
+ }, bt = (a, t, e) => {
25
+ a.append("defs").append("marker").attr("id", e + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
26
26
  }, wt = {
27
27
  extension: ot,
28
28
  composition: yt,
@@ -34,56 +34,61 @@ const ht = (e, t, a, i) => {
34
34
  cross: ut,
35
35
  barb: bt
36
36
  }, hr = ht;
37
- function mt(e, t) {
38
- t && e.attr("style", t);
37
+ function mt(a, t) {
38
+ t && a.attr("style", t);
39
39
  }
40
- function kt(e) {
41
- const t = E(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), a = t.append("xhtml:div"), i = e.label, l = e.isNode ? "nodeLabel" : "edgeLabel";
42
- return a.html(
43
- '<span class="' + l + '" ' + (e.labelStyle ? 'style="' + e.labelStyle + '"' : "") + ">" + i + "</span>"
44
- ), mt(a, e.labelStyle), a.style("display", "inline-block"), a.style("white-space", "nowrap"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), t.node();
40
+ function kt(a, t) {
41
+ const e = E(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = e.append("xhtml:div"), l = a.label, r = a.isNode ? "nodeLabel" : "edgeLabel";
42
+ return i.html(
43
+ Q(
44
+ '<span class="' + r + '" ' + (a.labelStyle ? 'style="' + a.labelStyle + '"' : "") + ">" + l + "</span>",
45
+ t
46
+ )
47
+ ), mt(i, a.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node();
45
48
  }
46
- const vt = (e, t, a, i) => {
47
- let l = e || "";
48
- if (typeof l == "object" && (l = l[0]), H(b().flowchart.htmlLabels)) {
49
+ const vt = (a, t, e, i) => {
50
+ let l = a || "";
51
+ typeof l == "object" && (l = l[0]);
52
+ const r = b();
53
+ if (H(r.flowchart.htmlLabels)) {
49
54
  l = l.replace(/\\n|\n/g, "<br />"), g.debug("vertexText" + l);
50
- const r = {
55
+ const s = {
51
56
  isNode: i,
52
- label: Q(l).replace(
57
+ label: V(l).replace(
53
58
  /fa[blrs]?:fa-[\w-]+/g,
54
59
  // cspell: disable-line
55
- (n) => `<i class='${n.replace(":", " ")}'></i>`
60
+ (c) => `<i class='${c.replace(":", " ")}'></i>`
56
61
  ),
57
62
  labelStyle: t.replace("fill:", "color:")
58
63
  };
59
- return kt(r);
64
+ return kt(s, r);
60
65
  } else {
61
- const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
62
- r.setAttribute("style", t.replace("color:", "fill:"));
63
- let s = [];
64
- typeof l == "string" ? s = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? s = l : s = [];
65
- for (const n of s) {
66
- const c = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
67
- c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), c.setAttribute("dy", "1em"), c.setAttribute("x", "0"), a ? c.setAttribute("class", "title-row") : c.setAttribute("class", "row"), c.textContent = n.trim(), r.appendChild(c);
66
+ const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
67
+ s.setAttribute("style", t.replace("color:", "fill:"));
68
+ let n = [];
69
+ typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
70
+ for (const c of n) {
71
+ const o = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
72
+ o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), o.setAttribute("dy", "1em"), o.setAttribute("x", "0"), e ? o.setAttribute("class", "title-row") : o.setAttribute("class", "row"), o.textContent = c.trim(), s.appendChild(o);
68
73
  }
69
- return r;
74
+ return s;
70
75
  }
71
- }, R = vt, M = async (e, t, a, i) => {
76
+ }, R = vt, M = async (a, t, e, i) => {
72
77
  let l;
73
78
  const r = t.useHtmlLabels || H(b().flowchart.htmlLabels);
74
- a ? l = a : l = "node default";
75
- const s = e.insert("g").attr("class", l).attr("id", t.domId || t.id), n = s.insert("g").attr("class", "label").attr("style", t.labelStyle);
79
+ e ? l = e : l = "node default";
80
+ const s = a.insert("g").attr("class", l).attr("id", t.domId || t.id), n = s.insert("g").attr("class", "label").attr("style", t.labelStyle);
76
81
  let c;
77
82
  t.labelText === void 0 ? c = "" : c = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
78
83
  const o = n.node();
79
84
  let h;
80
- t.labelType === "markdown" ? h = st(n, q(Q(c), b()), {
85
+ t.labelType === "markdown" ? h = st(n, Q(V(c), b()), {
81
86
  useHtmlLabels: r,
82
87
  width: t.width || b().flowchart.wrappingWidth,
83
88
  classes: "markdown-node-label"
84
89
  }) : h = o.appendChild(
85
90
  R(
86
- q(Q(c), b()),
91
+ Q(V(c), b()),
87
92
  t.labelStyle,
88
93
  !1,
89
94
  i
@@ -116,70 +121,70 @@ const vt = (e, t, a, i) => {
116
121
  y = p.getBoundingClientRect(), d.attr("width", y.width), d.attr("height", y.height);
117
122
  }
118
123
  return r ? n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")") : n.attr("transform", "translate(0, " + -y.height / 2 + ")"), t.centerLabel && n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), n.insert("rect", ":first-child"), { shapeSvg: s, bbox: y, halfPadding: f, label: n };
119
- }, m = (e, t) => {
120
- const a = t.node().getBBox();
121
- e.width = a.width, e.height = a.height;
124
+ }, m = (a, t) => {
125
+ const e = t.node().getBBox();
126
+ a.width = e.width, a.height = e.height;
122
127
  };
123
- function I(e, t, a, i) {
124
- return e.insert("polygon", ":first-child").attr(
128
+ function I(a, t, e, i) {
129
+ return a.insert("polygon", ":first-child").attr(
125
130
  "points",
126
131
  i.map(function(l) {
127
132
  return l.x + "," + l.y;
128
133
  }).join(" ")
129
- ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
134
+ ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + e / 2 + ")");
130
135
  }
131
- function Lt(e, t) {
132
- return e.intersect(t);
136
+ function Lt(a, t) {
137
+ return a.intersect(t);
133
138
  }
134
- function it(e, t, a, i) {
135
- var l = e.x, r = e.y, s = l - i.x, n = r - i.y, c = Math.sqrt(t * t * n * n + a * a * s * s), o = Math.abs(t * a * s / c);
139
+ function it(a, t, e, i) {
140
+ var l = a.x, r = a.y, s = l - i.x, n = r - i.y, c = Math.sqrt(t * t * n * n + e * e * s * s), o = Math.abs(t * e * s / c);
136
141
  i.x < l && (o = -o);
137
- var h = Math.abs(t * a * n / c);
142
+ var h = Math.abs(t * e * n / c);
138
143
  return i.y < r && (h = -h), { x: l + o, y: r + h };
139
144
  }
140
- function St(e, t, a) {
141
- return it(e, t, t, a);
145
+ function St(a, t, e) {
146
+ return it(a, t, t, e);
142
147
  }
143
- function Mt(e, t, a, i) {
148
+ function Mt(a, t, e, i) {
144
149
  var l, r, s, n, c, o, h, y, f, p, d, k, x, u, S;
145
- if (l = t.y - e.y, s = e.x - t.x, c = t.x * e.y - e.x * t.y, f = l * a.x + s * a.y + c, p = l * i.x + s * i.y + c, !(f !== 0 && p !== 0 && J(f, p)) && (r = i.y - a.y, n = a.x - i.x, o = i.x * a.y - a.x * i.y, h = r * e.x + n * e.y + o, y = r * t.x + n * t.y + o, !(h !== 0 && y !== 0 && J(h, y)) && (d = l * n - r * s, d !== 0)))
150
+ if (l = t.y - a.y, s = a.x - t.x, c = t.x * a.y - a.x * t.y, f = l * e.x + s * e.y + c, p = l * i.x + s * i.y + c, !(f !== 0 && p !== 0 && J(f, p)) && (r = i.y - e.y, n = e.x - i.x, o = i.x * e.y - e.x * i.y, h = r * a.x + n * a.y + o, y = r * t.x + n * t.y + o, !(h !== 0 && y !== 0 && J(h, y)) && (d = l * n - r * s, d !== 0)))
146
151
  return k = Math.abs(d / 2), x = s * o - n * c, u = x < 0 ? (x - k) / d : (x + k) / d, x = r * c - l * o, S = x < 0 ? (x - k) / d : (x + k) / d, { x: u, y: S };
147
152
  }
148
- function J(e, t) {
149
- return e * t > 0;
153
+ function J(a, t) {
154
+ return a * t > 0;
150
155
  }
151
- function Tt(e, t, a) {
152
- var i = e.x, l = e.y, r = [], s = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
156
+ function Tt(a, t, e) {
157
+ var i = a.x, l = a.y, r = [], s = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
153
158
  typeof t.forEach == "function" ? t.forEach(function(d) {
154
159
  s = Math.min(s, d.x), n = Math.min(n, d.y);
155
160
  }) : (s = Math.min(s, t.x), n = Math.min(n, t.y));
156
- for (var c = i - e.width / 2 - s, o = l - e.height / 2 - n, h = 0; h < t.length; h++) {
161
+ for (var c = i - a.width / 2 - s, o = l - a.height / 2 - n, h = 0; h < t.length; h++) {
157
162
  var y = t[h], f = t[h < t.length - 1 ? h + 1 : 0], p = Mt(
158
- e,
159
163
  a,
164
+ e,
160
165
  { x: c + y.x, y: o + y.y },
161
166
  { x: c + f.x, y: o + f.y }
162
167
  );
163
168
  p && r.push(p);
164
169
  }
165
170
  return r.length ? (r.length > 1 && r.sort(function(d, k) {
166
- var x = d.x - a.x, u = d.y - a.y, S = Math.sqrt(x * x + u * u), B = k.x - a.x, C = k.y - a.y, X = Math.sqrt(B * B + C * C);
171
+ var x = d.x - e.x, u = d.y - e.y, S = Math.sqrt(x * x + u * u), B = k.x - e.x, C = k.y - e.y, X = Math.sqrt(B * B + C * C);
167
172
  return S < X ? -1 : S === X ? 0 : 1;
168
- }), r[0]) : e;
173
+ }), r[0]) : a;
169
174
  }
170
- const Bt = (e, t) => {
171
- var a = e.x, i = e.y, l = t.x - a, r = t.y - i, s = e.width / 2, n = e.height / 2, c, o;
172
- return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x: a + c, y: i + o };
175
+ const Bt = (a, t) => {
176
+ var e = a.x, i = a.y, l = t.x - e, r = t.y - i, s = a.width / 2, n = a.height / 2, c, o;
177
+ return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x: e + c, y: i + o };
173
178
  }, Et = Bt, w = {
174
179
  node: Lt,
175
180
  circle: St,
176
181
  ellipse: it,
177
182
  polygon: Tt,
178
183
  rect: Et
179
- }, Ct = async (e, t) => {
184
+ }, Ct = async (a, t) => {
180
185
  t.useHtmlLabels || b().flowchart.htmlLabels || (t.centerLabel = !0);
181
186
  const { shapeSvg: i, bbox: l, halfPadding: r } = await M(
182
- e,
187
+ a,
183
188
  t,
184
189
  "node " + t.classes,
185
190
  !0
@@ -189,10 +194,10 @@ const Bt = (e, t) => {
189
194
  return s.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - r).attr("y", -l.height / 2 - r).attr("width", l.width + t.padding).attr("height", l.height + t.padding), m(t, s), t.intersect = function(n) {
190
195
  return w.rect(t, n);
191
196
  }, i;
192
- }, $t = Ct, _t = (e) => {
197
+ }, $t = Ct, _t = (a) => {
193
198
  const t = /* @__PURE__ */ new Set();
194
- for (const a of e)
195
- switch (a) {
199
+ for (const e of a)
200
+ switch (e) {
196
201
  case "x":
197
202
  t.add("right"), t.add("left");
198
203
  break;
@@ -200,12 +205,12 @@ const Bt = (e, t) => {
200
205
  t.add("up"), t.add("down");
201
206
  break;
202
207
  default:
203
- t.add(a);
208
+ t.add(e);
204
209
  break;
205
210
  }
206
211
  return t;
207
- }, Rt = (e, t, a) => {
208
- const i = _t(e), l = 2, r = t.height + 2 * a.padding, s = r / l, n = t.width + 2 * s + a.padding, c = a.padding / 2;
212
+ }, Rt = (a, t, e) => {
213
+ const i = _t(a), l = 2, r = t.height + 2 * e.padding, s = r / l, n = t.width + 2 * s + e.padding, c = e.padding / 2;
209
214
  return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
210
215
  // Bottom
211
216
  { x: 0, y: 0 },
@@ -336,11 +341,11 @@ const Bt = (e, t) => {
336
341
  { x: n - s, y: -c },
337
342
  { x: n, y: -c }
338
343
  ] : [{ x: 0, y: 0 }];
339
- }, K = (e) => e ? " " + e : "", _ = (e, t) => `node default${K(e.classes)} ${K(
340
- e.class
341
- )}`, P = async (e, t) => {
342
- const { shapeSvg: a, bbox: i } = await M(
343
- e,
344
+ }, K = (a) => a ? " " + a : "", _ = (a, t) => `node default${K(a.classes)} ${K(
345
+ a.class
346
+ )}`, P = async (a, t) => {
347
+ const { shapeSvg: e, bbox: i } = await M(
348
+ a,
344
349
  t,
345
350
  _(t),
346
351
  !0
@@ -351,28 +356,28 @@ const Bt = (e, t) => {
351
356
  { x: 0, y: -s / 2 }
352
357
  ];
353
358
  g.info("Question main (Circle)");
354
- const c = I(a, s, s, n);
359
+ const c = I(e, s, s, n);
355
360
  return c.attr("style", t.style), m(t, c), t.intersect = function(o) {
356
361
  return g.warn("Intersect called"), w.polygon(t, n, o);
357
- }, a;
358
- }, Ht = (e, t) => {
359
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
362
+ }, e;
363
+ }, Ht = (a, t) => {
364
+ const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
360
365
  { x: 0, y: i / 2 },
361
366
  { x: i / 2, y: 0 },
362
367
  { x: 0, y: -i / 2 },
363
368
  { x: -i / 2, y: 0 }
364
369
  ];
365
- return a.insert("polygon", ":first-child").attr(
370
+ return e.insert("polygon", ":first-child").attr(
366
371
  "points",
367
372
  l.map(function(s) {
368
373
  return s.x + "," + s.y;
369
374
  }).join(" ")
370
375
  ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(s) {
371
376
  return w.circle(t, 14, s);
372
- }, a;
373
- }, It = async (e, t) => {
374
- const { shapeSvg: a, bbox: i } = await M(
375
- e,
377
+ }, e;
378
+ }, It = async (a, t) => {
379
+ const { shapeSvg: e, bbox: i } = await M(
380
+ a,
376
381
  t,
377
382
  _(t),
378
383
  !0
@@ -383,18 +388,18 @@ const Bt = (e, t) => {
383
388
  { x: n - s, y: -r },
384
389
  { x: s, y: -r },
385
390
  { x: 0, y: -r / 2 }
386
- ], o = I(a, n, r, c);
391
+ ], o = I(e, n, r, c);
387
392
  return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
388
393
  return w.polygon(t, c, h);
389
- }, a;
390
- }, Nt = async (e, t) => {
391
- const { shapeSvg: a, bbox: i } = await M(e, t, void 0, !0), l = 2, r = i.height + 2 * t.padding, s = r / l, n = i.width + 2 * s + t.padding, c = Rt(t.directions, i, t), o = I(a, n, r, c);
394
+ }, e;
395
+ }, Nt = async (a, t) => {
396
+ const { shapeSvg: e, bbox: i } = await M(a, t, void 0, !0), l = 2, r = i.height + 2 * t.padding, s = r / l, n = i.width + 2 * s + t.padding, c = Rt(t.directions, i, t), o = I(e, n, r, c);
392
397
  return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
393
398
  return w.polygon(t, c, h);
394
- }, a;
395
- }, Ot = async (e, t) => {
396
- const { shapeSvg: a, bbox: i } = await M(
397
- e,
399
+ }, e;
400
+ }, Ot = async (a, t) => {
401
+ const { shapeSvg: e, bbox: i } = await M(
402
+ a,
398
403
  t,
399
404
  _(t),
400
405
  !0
@@ -405,22 +410,22 @@ const Bt = (e, t) => {
405
410
  { x: -r / 2, y: -r },
406
411
  { x: 0, y: -r / 2 }
407
412
  ];
408
- return I(a, l, r, s).attr("style", t.style), t.width = l + r, t.height = r, t.intersect = function(c) {
413
+ return I(e, l, r, s).attr("style", t.style), t.width = l + r, t.height = r, t.intersect = function(c) {
409
414
  return w.polygon(t, s, c);
410
- }, a;
411
- }, Wt = async (e, t) => {
412
- const { shapeSvg: a, bbox: i } = await M(e, t, _(t), !0), l = i.width + t.padding, r = i.height + t.padding, s = [
415
+ }, e;
416
+ }, Wt = async (a, t) => {
417
+ const { shapeSvg: e, bbox: i } = await M(a, t, _(t), !0), l = i.width + t.padding, r = i.height + t.padding, s = [
413
418
  { x: -2 * r / 6, y: 0 },
414
419
  { x: l - r / 6, y: 0 },
415
420
  { x: l + 2 * r / 6, y: -r },
416
421
  { x: r / 6, y: -r }
417
- ], n = I(a, l, r, s);
422
+ ], n = I(e, l, r, s);
418
423
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
419
424
  return w.polygon(t, s, c);
420
- }, a;
421
- }, Xt = async (e, t) => {
422
- const { shapeSvg: a, bbox: i } = await M(
423
- e,
425
+ }, e;
426
+ }, Xt = async (a, t) => {
427
+ const { shapeSvg: e, bbox: i } = await M(
428
+ a,
424
429
  t,
425
430
  _(t),
426
431
  !0
@@ -429,13 +434,13 @@ const Bt = (e, t) => {
429
434
  { x: l + r / 6, y: 0 },
430
435
  { x: l - 2 * r / 6, y: -r },
431
436
  { x: -r / 6, y: -r }
432
- ], n = I(a, l, r, s);
437
+ ], n = I(e, l, r, s);
433
438
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
434
439
  return w.polygon(t, s, c);
435
- }, a;
436
- }, Yt = async (e, t) => {
437
- const { shapeSvg: a, bbox: i } = await M(
438
- e,
440
+ }, e;
441
+ }, Yt = async (a, t) => {
442
+ const { shapeSvg: e, bbox: i } = await M(
443
+ a,
439
444
  t,
440
445
  _(t),
441
446
  !0
@@ -444,13 +449,13 @@ const Bt = (e, t) => {
444
449
  { x: l + 2 * r / 6, y: 0 },
445
450
  { x: l - r / 6, y: -r },
446
451
  { x: r / 6, y: -r }
447
- ], n = I(a, l, r, s);
452
+ ], n = I(e, l, r, s);
448
453
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
449
454
  return w.polygon(t, s, c);
450
- }, a;
451
- }, Dt = async (e, t) => {
452
- const { shapeSvg: a, bbox: i } = await M(
453
- e,
455
+ }, e;
456
+ }, Dt = async (a, t) => {
457
+ const { shapeSvg: e, bbox: i } = await M(
458
+ a,
454
459
  t,
455
460
  _(t),
456
461
  !0
@@ -459,13 +464,13 @@ const Bt = (e, t) => {
459
464
  { x: l - r / 6, y: 0 },
460
465
  { x: l + 2 * r / 6, y: -r },
461
466
  { x: -2 * r / 6, y: -r }
462
- ], n = I(a, l, r, s);
467
+ ], n = I(e, l, r, s);
463
468
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
464
469
  return w.polygon(t, s, c);
465
- }, a;
466
- }, At = async (e, t) => {
467
- const { shapeSvg: a, bbox: i } = await M(
468
- e,
470
+ }, e;
471
+ }, At = async (a, t) => {
472
+ const { shapeSvg: e, bbox: i } = await M(
473
+ a,
469
474
  t,
470
475
  _(t),
471
476
  !0
@@ -475,17 +480,17 @@ const Bt = (e, t) => {
475
480
  { x: l, y: -r / 2 },
476
481
  { x: l + r / 2, y: -r },
477
482
  { x: 0, y: -r }
478
- ], n = I(a, l, r, s);
483
+ ], n = I(e, l, r, s);
479
484
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
480
485
  return w.polygon(t, s, c);
481
- }, a;
482
- }, jt = async (e, t) => {
483
- const { shapeSvg: a, bbox: i } = await M(
484
- e,
486
+ }, e;
487
+ }, jt = async (a, t) => {
488
+ const { shapeSvg: e, bbox: i } = await M(
489
+ a,
485
490
  t,
486
491
  _(t),
487
492
  !0
488
- ), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = a.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
493
+ ), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = e.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
489
494
  return m(t, o), t.intersect = function(h) {
490
495
  const y = w.rect(t, h), f = y.x - t.x;
491
496
  if (r != 0 && (Math.abs(f) < t.width / 2 || Math.abs(f) == t.width / 2 && Math.abs(y.y - t.y) > t.height / 2 - s)) {
@@ -493,65 +498,65 @@ const Bt = (e, t) => {
493
498
  p != 0 && (p = Math.sqrt(p)), p = s - p, h.y - t.y > 0 && (p = -p), y.y += p;
494
499
  }
495
500
  return y;
496
- }, a;
497
- }, Ut = async (e, t) => {
498
- const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
499
- e,
501
+ }, e;
502
+ }, Ut = async (a, t) => {
503
+ const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
504
+ a,
500
505
  t,
501
506
  "node " + t.classes + " " + t.class,
502
507
  !0
503
- ), r = a.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
508
+ ), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
504
509
  if (r.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
505
510
  const h = new Set(Object.keys(t.props));
506
- t.props.borders && (V(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
511
+ t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
507
512
  g.warn(`Unknown node property ${y}`);
508
513
  });
509
514
  }
510
515
  return m(t, r), t.intersect = function(h) {
511
516
  return w.rect(t, h);
512
- }, a;
513
- }, zt = async (e, t) => {
514
- const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
515
- e,
517
+ }, e;
518
+ }, zt = async (a, t) => {
519
+ const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
520
+ a,
516
521
  t,
517
522
  "node " + t.classes,
518
523
  !0
519
- ), r = a.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
524
+ ), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
520
525
  if (r.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
521
526
  const h = new Set(Object.keys(t.props));
522
- t.props.borders && (V(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
527
+ t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
523
528
  g.warn(`Unknown node property ${y}`);
524
529
  });
525
530
  }
526
531
  return m(t, r), t.intersect = function(h) {
527
532
  return w.rect(t, h);
528
- }, a;
529
- }, Zt = async (e, t) => {
530
- const { shapeSvg: a } = await M(e, t, "label", !0);
533
+ }, e;
534
+ }, Zt = async (a, t) => {
535
+ const { shapeSvg: e } = await M(a, t, "label", !0);
531
536
  g.trace("Classes = ", t.class);
532
- const i = a.insert("rect", ":first-child"), l = 0, r = 0;
533
- if (i.attr("width", l).attr("height", r), a.attr("class", "label edgeLabel"), t.props) {
537
+ const i = e.insert("rect", ":first-child"), l = 0, r = 0;
538
+ if (i.attr("width", l).attr("height", r), e.attr("class", "label edgeLabel"), t.props) {
534
539
  const s = new Set(Object.keys(t.props));
535
- t.props.borders && (V(i, t.props.borders, l, r), s.delete("borders")), s.forEach((n) => {
540
+ t.props.borders && (q(i, t.props.borders, l, r), s.delete("borders")), s.forEach((n) => {
536
541
  g.warn(`Unknown node property ${n}`);
537
542
  });
538
543
  }
539
544
  return m(t, i), t.intersect = function(s) {
540
545
  return w.rect(t, s);
541
- }, a;
546
+ }, e;
542
547
  };
543
- function V(e, t, a, i) {
548
+ function q(a, t, e, i) {
544
549
  const l = [], r = (n) => {
545
550
  l.push(n, 0);
546
551
  }, s = (n) => {
547
552
  l.push(0, n);
548
553
  };
549
- t.includes("t") ? (g.debug("add top border"), r(a)) : s(a), t.includes("r") ? (g.debug("add right border"), r(i)) : s(i), t.includes("b") ? (g.debug("add bottom border"), r(a)) : s(a), t.includes("l") ? (g.debug("add left border"), r(i)) : s(i), e.attr("stroke-dasharray", l.join(" "));
554
+ t.includes("t") ? (g.debug("add top border"), r(e)) : s(e), t.includes("r") ? (g.debug("add right border"), r(i)) : s(i), t.includes("b") ? (g.debug("add bottom border"), r(e)) : s(e), t.includes("l") ? (g.debug("add left border"), r(i)) : s(i), a.attr("stroke-dasharray", l.join(" "));
550
555
  }
551
- const Gt = (e, t) => {
552
- let a;
553
- t.classes ? a = "node " + t.classes : a = "node default";
554
- const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), r = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
556
+ const Gt = (a, t) => {
557
+ let e;
558
+ t.classes ? e = "node " + t.classes : e = "node default";
559
+ const i = a.insert("g").attr("class", e).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), r = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
555
560
  let c = "";
556
561
  typeof n == "object" ? c = n[0] : c = n, g.info("Label text abc79", c, n, typeof n == "object");
557
562
  const o = s.node().appendChild(R(c, t.labelStyle, !0, !0));
@@ -585,39 +590,39 @@ const Gt = (e, t) => {
585
590
  ), l.attr("class", "outer title-state").attr("x", -h.width / 2 - d).attr("y", -h.height / 2 - d).attr("width", h.width + t.padding).attr("height", h.height + t.padding), r.attr("class", "divider").attr("x1", -h.width / 2 - d).attr("x2", h.width / 2 + d).attr("y1", -h.height / 2 - d + f.height + d).attr("y2", -h.height / 2 - d + f.height + d), m(t, l), t.intersect = function(k) {
586
591
  return w.rect(t, k);
587
592
  }, i;
588
- }, Ft = async (e, t) => {
589
- const { shapeSvg: a, bbox: i } = await M(
590
- e,
593
+ }, Ft = async (a, t) => {
594
+ const { shapeSvg: e, bbox: i } = await M(
595
+ a,
591
596
  t,
592
597
  _(t),
593
598
  !0
594
- ), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -r / 2).attr("y", -l / 2).attr("width", r).attr("height", l);
599
+ ), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s = e.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -r / 2).attr("y", -l / 2).attr("width", r).attr("height", l);
595
600
  return m(t, s), t.intersect = function(n) {
596
601
  return w.rect(t, n);
597
- }, a;
598
- }, Qt = async (e, t) => {
599
- const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
600
- e,
602
+ }, e;
603
+ }, Qt = async (a, t) => {
604
+ const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
605
+ a,
601
606
  t,
602
607
  _(t),
603
608
  !0
604
- ), r = a.insert("circle", ":first-child");
609
+ ), r = e.insert("circle", ":first-child");
605
610
  return r.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("Circle main"), m(t, r), t.intersect = function(s) {
606
611
  return g.info("Circle intersect", t, i.width / 2 + l, s), w.circle(t, i.width / 2 + l, s);
607
- }, a;
608
- }, Vt = async (e, t) => {
609
- const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
610
- e,
612
+ }, e;
613
+ }, Vt = async (a, t) => {
614
+ const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
615
+ a,
611
616
  t,
612
617
  _(t),
613
618
  !0
614
- ), r = 5, s = a.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
619
+ ), r = 5, s = e.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
615
620
  return s.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + r).attr("width", i.width + t.padding + r * 2).attr("height", i.height + t.padding + r * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("DoubleCircle main"), m(t, n), t.intersect = function(o) {
616
621
  return g.info("DoubleCircle intersect", t, i.width / 2 + l + r, o), w.circle(t, i.width / 2 + l + r, o);
617
- }, a;
618
- }, qt = async (e, t) => {
619
- const { shapeSvg: a, bbox: i } = await M(
620
- e,
622
+ }, e;
623
+ }, qt = async (a, t) => {
624
+ const { shapeSvg: e, bbox: i } = await M(
625
+ a,
621
626
  t,
622
627
  _(t),
623
628
  !0
@@ -632,33 +637,33 @@ const Gt = (e, t) => {
632
637
  { x: l + 8, y: -r },
633
638
  { x: -8, y: -r },
634
639
  { x: -8, y: 0 }
635
- ], n = I(a, l, r, s);
640
+ ], n = I(e, l, r, s);
636
641
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
637
642
  return w.polygon(t, s, c);
638
- }, a;
639
- }, Jt = (e, t) => {
640
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
643
+ }, e;
644
+ }, Jt = (a, t) => {
645
+ const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child");
641
646
  return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), m(t, i), t.intersect = function(l) {
642
647
  return w.circle(t, 7, l);
643
- }, a;
644
- }, tt = (e, t, a) => {
645
- const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
648
+ }, e;
649
+ }, tt = (a, t, e) => {
650
+ const i = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
646
651
  let l = 70, r = 10;
647
- a === "LR" && (l = 10, r = 70);
652
+ e === "LR" && (l = 10, r = 70);
648
653
  const s = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * r / 2).attr("width", l).attr("height", r).attr("class", "fork-join");
649
654
  return m(t, s), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
650
655
  return w.rect(t, n);
651
656
  }, i;
652
- }, Kt = (e, t) => {
653
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child");
657
+ }, Kt = (a, t) => {
658
+ const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child"), l = e.insert("circle", ":first-child");
654
659
  return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), m(t, l), t.intersect = function(r) {
655
660
  return w.circle(t, 7, r);
656
- }, a;
657
- }, Pt = (e, t) => {
658
- const a = t.padding / 2, i = 4, l = 8;
661
+ }, e;
662
+ }, Pt = (a, t) => {
663
+ const e = t.padding / 2, i = 4, l = 8;
659
664
  let r;
660
665
  t.classes ? r = "node " + t.classes : r = "node default";
661
- const s = e.insert("g").attr("class", r).attr("id", t.domId || t.id), n = s.insert("rect", ":first-child"), c = s.insert("line"), o = s.insert("line");
666
+ const s = a.insert("g").attr("class", r).attr("id", t.domId || t.id), n = s.insert("rect", ":first-child"), c = s.insert("line"), o = s.insert("line");
662
667
  let h = 0, y = i;
663
668
  const f = s.insert("g").attr("class", "label");
664
669
  let p = 0;
@@ -729,21 +734,21 @@ const Gt = (e, t) => {
729
734
  return E(B).attr(
730
735
  "transform",
731
736
  "translate( " + (-1 * h / 2 + nt) + ", " + (-1 * y / 2 + p) + ")"
732
- ), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -y / 2 - a + l + p).attr("y2", -y / 2 - a + l + p), p += l, X.forEach((v) => {
737
+ ), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, X.forEach((v) => {
733
738
  E(v).attr(
734
739
  "transform",
735
740
  "translate( " + -h / 2 + ", " + (-1 * y / 2 + p + l / 2) + ")"
736
741
  );
737
742
  const L = v == null ? void 0 : v.getBBox();
738
743
  p += ((L == null ? void 0 : L.height) ?? 0) + i;
739
- }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -y / 2 - a + l + p).attr("y2", -y / 2 - a + l + p), p += l, D.forEach((v) => {
744
+ }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, D.forEach((v) => {
740
745
  E(v).attr(
741
746
  "transform",
742
747
  "translate( " + -h / 2 + ", " + (-1 * y / 2 + p) + ")"
743
748
  );
744
749
  const L = v == null ? void 0 : v.getBBox();
745
750
  p += ((L == null ? void 0 : L.height) ?? 0) + i;
746
- }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - a).attr("y", -(y / 2) - a).attr("width", h + t.padding).attr("height", y + t.padding), m(t, n), t.intersect = function(v) {
751
+ }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - e).attr("y", -(y / 2) - e).attr("width", h + t.padding).attr("height", y + t.padding), m(t, n), t.intersect = function(v) {
747
752
  return w.rect(t, v);
748
753
  }, s;
749
754
  }, rt = {
@@ -775,36 +780,36 @@ const Gt = (e, t) => {
775
780
  class_box: Pt
776
781
  };
777
782
  let Y = {};
778
- const or = async (e, t, a) => {
783
+ const or = async (a, t, e) => {
779
784
  let i, l;
780
785
  if (t.link) {
781
786
  let r;
782
- b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", r), l = await rt[t.shape](i, t, a);
787
+ b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i = a.insert("svg:a").attr("xlink:href", t.link).attr("target", r), l = await rt[t.shape](i, t, e);
783
788
  } else
784
- l = await rt[t.shape](e, t, a), i = l;
789
+ l = await rt[t.shape](a, t, e), i = l;
785
790
  return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), i.attr("data-node", "true"), i.attr("data-id", t.id), Y[t.id] = i, t.haveCallback && Y[t.id].attr("class", Y[t.id].attr("class") + " clickable"), i;
786
- }, yr = (e, t) => {
787
- Y[t.id] = e;
791
+ }, yr = (a, t) => {
792
+ Y[t.id] = a;
788
793
  }, pr = () => {
789
794
  Y = {};
790
- }, fr = (e) => {
791
- const t = Y[e.id];
795
+ }, fr = (a) => {
796
+ const t = Y[a.id];
792
797
  g.trace(
793
798
  "Transforming node",
794
- e.diff,
795
- e,
796
- "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
799
+ a.diff,
800
+ a,
801
+ "translate(" + (a.x - a.width / 2 - 5) + ", " + a.width / 2 + ")"
797
802
  );
798
- const a = 8, i = e.diff || 0;
799
- return e.clusterNode ? t.attr(
803
+ const e = 8, i = a.diff || 0;
804
+ return a.clusterNode ? t.attr(
800
805
  "transform",
801
- "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
802
- ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
806
+ "translate(" + (a.x + i - a.width / 2) + ", " + (a.y - a.height / 2 - e) + ")"
807
+ ) : t.attr("transform", "translate(" + a.x + ", " + a.y + ")"), i;
803
808
  }, tr = ({
804
- flowchart: e
809
+ flowchart: a
805
810
  }) => {
806
- var t, a;
807
- const i = ((t = e == null ? void 0 : e.subGraphTitleMargin) == null ? void 0 : t.top) ?? 0, l = ((a = e == null ? void 0 : e.subGraphTitleMargin) == null ? void 0 : a.bottom) ?? 0, r = i + l;
811
+ var t, e;
812
+ const i = ((t = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : t.top) ?? 0, l = ((e = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : e.bottom) ?? 0, r = i + l;
808
813
  return {
809
814
  subGraphTitleTopMargin: i,
810
815
  subGraphTitleBottomMargin: l,
@@ -818,44 +823,44 @@ const or = async (e, t, a) => {
818
823
  lollipop: 13.5,
819
824
  arrow_point: 5.3
820
825
  };
821
- function U(e, t) {
822
- if (e === void 0 || t === void 0)
826
+ function U(a, t) {
827
+ if (a === void 0 || t === void 0)
823
828
  return { angle: 0, deltaX: 0, deltaY: 0 };
824
- e = Z(e), t = Z(t);
825
- const [a, i] = [e.x, e.y], [l, r] = [t.x, t.y], s = l - a, n = r - i;
829
+ a = Z(a), t = Z(t);
830
+ const [e, i] = [a.x, a.y], [l, r] = [t.x, t.y], s = l - e, n = r - i;
826
831
  return { angle: Math.atan(n / s), deltaX: s, deltaY: n };
827
832
  }
828
- const Z = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
829
- x: function(t, a, i) {
833
+ const Z = (a) => Array.isArray(a) ? { x: a[0], y: a[1] } : a, rr = (a) => ({
834
+ x: function(t, e, i) {
830
835
  let l = 0;
831
- if (a === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
836
+ if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
832
837
  const { angle: r, deltaX: s } = U(i[0], i[1]);
833
- l = O[e.arrowTypeStart] * Math.cos(r) * (s >= 0 ? 1 : -1);
834
- } else if (a === i.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
838
+ l = O[a.arrowTypeStart] * Math.cos(r) * (s >= 0 ? 1 : -1);
839
+ } else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
835
840
  const { angle: r, deltaX: s } = U(
836
841
  i[i.length - 1],
837
842
  i[i.length - 2]
838
843
  );
839
- l = O[e.arrowTypeEnd] * Math.cos(r) * (s >= 0 ? 1 : -1);
844
+ l = O[a.arrowTypeEnd] * Math.cos(r) * (s >= 0 ? 1 : -1);
840
845
  }
841
846
  return Z(t).x + l;
842
847
  },
843
- y: function(t, a, i) {
848
+ y: function(t, e, i) {
844
849
  let l = 0;
845
- if (a === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
850
+ if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
846
851
  const { angle: r, deltaY: s } = U(i[0], i[1]);
847
- l = O[e.arrowTypeStart] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
848
- } else if (a === i.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
852
+ l = O[a.arrowTypeStart] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
853
+ } else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
849
854
  const { angle: r, deltaY: s } = U(
850
855
  i[i.length - 1],
851
856
  i[i.length - 2]
852
857
  );
853
- l = O[e.arrowTypeEnd] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
858
+ l = O[a.arrowTypeEnd] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
854
859
  }
855
860
  return Z(t).y + l;
856
861
  }
857
- }), ar = (e, t, a, i, l) => {
858
- t.arrowTypeStart && at(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && at(e, "end", t.arrowTypeEnd, a, i, l);
862
+ }), ar = (a, t, e, i, l) => {
863
+ t.arrowTypeStart && at(a, "start", t.arrowTypeStart, e, i, l), t.arrowTypeEnd && at(a, "end", t.arrowTypeEnd, e, i, l);
859
864
  }, er = {
860
865
  arrow_cross: "cross",
861
866
  arrow_point: "point",
@@ -866,72 +871,72 @@ const Z = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
866
871
  composition: "composition",
867
872
  dependency: "dependency",
868
873
  lollipop: "lollipop"
869
- }, at = (e, t, a, i, l, r) => {
870
- const s = er[a];
874
+ }, at = (a, t, e, i, l, r) => {
875
+ const s = er[e];
871
876
  if (!s) {
872
- g.warn(`Unknown arrow type: ${a}`);
877
+ g.warn(`Unknown arrow type: ${e}`);
873
878
  return;
874
879
  }
875
880
  const n = t === "start" ? "Start" : "End";
876
- e.attr(`marker-${t}`, `url(${i}#${l}_${r}-${s}${n})`);
881
+ a.attr(`marker-${t}`, `url(${i}#${l}_${r}-${s}${n})`);
877
882
  };
878
883
  let G = {}, T = {};
879
884
  const xr = () => {
880
885
  G = {}, T = {};
881
- }, dr = (e, t) => {
882
- const a = H(b().flowchart.htmlLabels), i = t.labelType === "markdown" ? st(e, t.label, {
886
+ }, dr = (a, t) => {
887
+ const e = H(b().flowchart.htmlLabels), i = t.labelType === "markdown" ? st(a, t.label, {
883
888
  style: t.labelStyle,
884
- useHtmlLabels: a,
889
+ useHtmlLabels: e,
885
890
  addSvgBackground: !0
886
- }) : R(t.label, t.labelStyle), l = e.insert("g").attr("class", "edgeLabel"), r = l.insert("g").attr("class", "label");
891
+ }) : R(t.label, t.labelStyle), l = a.insert("g").attr("class", "edgeLabel"), r = l.insert("g").attr("class", "label");
887
892
  r.node().appendChild(i);
888
893
  let s = i.getBBox();
889
- if (a) {
894
+ if (e) {
890
895
  const c = i.children[0], o = E(i);
891
896
  s = c.getBoundingClientRect(), o.attr("width", s.width), o.attr("height", s.height);
892
897
  }
893
898
  r.attr("transform", "translate(" + -s.width / 2 + ", " + -s.height / 2 + ")"), G[t.id] = l, t.width = s.width, t.height = s.height;
894
899
  let n;
895
900
  if (t.startLabelLeft) {
896
- const c = R(t.startLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
901
+ const c = R(t.startLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
897
902
  n = h.node().appendChild(c);
898
903
  const y = c.getBBox();
899
904
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startLeft = o, z(n, t.startLabelLeft);
900
905
  }
901
906
  if (t.startLabelRight) {
902
- const c = R(t.startLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
907
+ const c = R(t.startLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
903
908
  n = o.node().appendChild(c), h.node().appendChild(c);
904
909
  const y = c.getBBox();
905
910
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startRight = o, z(n, t.startLabelRight);
906
911
  }
907
912
  if (t.endLabelLeft) {
908
- const c = R(t.endLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
913
+ const c = R(t.endLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
909
914
  n = h.node().appendChild(c);
910
915
  const y = c.getBBox();
911
916
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endLeft = o, z(n, t.endLabelLeft);
912
917
  }
913
918
  if (t.endLabelRight) {
914
- const c = R(t.endLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
919
+ const c = R(t.endLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
915
920
  n = h.node().appendChild(c);
916
921
  const y = c.getBBox();
917
922
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endRight = o, z(n, t.endLabelRight);
918
923
  }
919
924
  return i;
920
925
  };
921
- function z(e, t) {
922
- b().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
926
+ function z(a, t) {
927
+ b().flowchart.htmlLabels && a && (a.style.width = t.length * 9 + "px", a.style.height = "12px");
923
928
  }
924
- const gr = (e, t) => {
925
- g.debug("Moving label abc88 ", e.id, e.label, G[e.id], t);
926
- let a = t.updatedPath ? t.updatedPath : t.originalPath;
929
+ const gr = (a, t) => {
930
+ g.debug("Moving label abc88 ", a.id, a.label, G[a.id], t);
931
+ let e = t.updatedPath ? t.updatedPath : t.originalPath;
927
932
  const i = b(), { subGraphTitleTotalMargin: l } = tr(i);
928
- if (e.label) {
929
- const r = G[e.id];
930
- let s = e.x, n = e.y;
931
- if (a) {
932
- const c = j.calcLabelPosition(a);
933
+ if (a.label) {
934
+ const r = G[a.id];
935
+ let s = a.x, n = a.y;
936
+ if (e) {
937
+ const c = j.calcLabelPosition(e);
933
938
  g.debug(
934
- "Moving label " + e.label + " from (",
939
+ "Moving label " + a.label + " from (",
935
940
  s,
936
941
  ",",
937
942
  n,
@@ -944,96 +949,96 @@ const gr = (e, t) => {
944
949
  }
945
950
  r.attr("transform", `translate(${s}, ${n + l / 2})`);
946
951
  }
947
- if (e.startLabelLeft) {
948
- const r = T[e.id].startLeft;
949
- let s = e.x, n = e.y;
950
- if (a) {
951
- const c = j.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
952
+ if (a.startLabelLeft) {
953
+ const r = T[a.id].startLeft;
954
+ let s = a.x, n = a.y;
955
+ if (e) {
956
+ const c = j.calcTerminalLabelPosition(a.arrowTypeStart ? 10 : 0, "start_left", e);
952
957
  s = c.x, n = c.y;
953
958
  }
954
959
  r.attr("transform", `translate(${s}, ${n})`);
955
960
  }
956
- if (e.startLabelRight) {
957
- const r = T[e.id].startRight;
958
- let s = e.x, n = e.y;
959
- if (a) {
961
+ if (a.startLabelRight) {
962
+ const r = T[a.id].startRight;
963
+ let s = a.x, n = a.y;
964
+ if (e) {
960
965
  const c = j.calcTerminalLabelPosition(
961
- e.arrowTypeStart ? 10 : 0,
966
+ a.arrowTypeStart ? 10 : 0,
962
967
  "start_right",
963
- a
968
+ e
964
969
  );
965
970
  s = c.x, n = c.y;
966
971
  }
967
972
  r.attr("transform", `translate(${s}, ${n})`);
968
973
  }
969
- if (e.endLabelLeft) {
970
- const r = T[e.id].endLeft;
971
- let s = e.x, n = e.y;
972
- if (a) {
973
- const c = j.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
974
+ if (a.endLabelLeft) {
975
+ const r = T[a.id].endLeft;
976
+ let s = a.x, n = a.y;
977
+ if (e) {
978
+ const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_left", e);
974
979
  s = c.x, n = c.y;
975
980
  }
976
981
  r.attr("transform", `translate(${s}, ${n})`);
977
982
  }
978
- if (e.endLabelRight) {
979
- const r = T[e.id].endRight;
980
- let s = e.x, n = e.y;
981
- if (a) {
982
- const c = j.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
983
+ if (a.endLabelRight) {
984
+ const r = T[a.id].endRight;
985
+ let s = a.x, n = a.y;
986
+ if (e) {
987
+ const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_right", e);
983
988
  s = c.x, n = c.y;
984
989
  }
985
990
  r.attr("transform", `translate(${s}, ${n})`);
986
991
  }
987
- }, sr = (e, t) => {
988
- const a = e.x, i = e.y, l = Math.abs(t.x - a), r = Math.abs(t.y - i), s = e.width / 2, n = e.height / 2;
992
+ }, sr = (a, t) => {
993
+ const e = a.x, i = a.y, l = Math.abs(t.x - e), r = Math.abs(t.y - i), s = a.width / 2, n = a.height / 2;
989
994
  return l >= s || r >= n;
990
- }, ir = (e, t, a) => {
995
+ }, ir = (a, t, e) => {
991
996
  g.debug(`intersection calc abc89:
992
997
  outsidePoint: ${JSON.stringify(t)}
993
- insidePoint : ${JSON.stringify(a)}
994
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
995
- const i = e.x, l = e.y, r = Math.abs(i - a.x), s = e.width / 2;
996
- let n = a.x < t.x ? s - r : s + r;
997
- const c = e.height / 2, o = Math.abs(t.y - a.y), h = Math.abs(t.x - a.x);
998
+ insidePoint : ${JSON.stringify(e)}
999
+ node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);
1000
+ const i = a.x, l = a.y, r = Math.abs(i - e.x), s = a.width / 2;
1001
+ let n = e.x < t.x ? s - r : s + r;
1002
+ const c = a.height / 2, o = Math.abs(t.y - e.y), h = Math.abs(t.x - e.x);
998
1003
  if (Math.abs(l - t.y) * s > Math.abs(i - t.x) * c) {
999
- let y = a.y < t.y ? t.y - c - l : l - c - t.y;
1004
+ let y = e.y < t.y ? t.y - c - l : l - c - t.y;
1000
1005
  n = h * y / o;
1001
1006
  const f = {
1002
- x: a.x < t.x ? a.x + n : a.x - h + n,
1003
- y: a.y < t.y ? a.y + o - y : a.y - o + y
1007
+ x: e.x < t.x ? e.x + n : e.x - h + n,
1008
+ y: e.y < t.y ? e.y + o - y : e.y - o + y
1004
1009
  };
1005
1010
  return n === 0 && (f.x = t.x, f.y = t.y), h === 0 && (f.x = t.x), o === 0 && (f.y = t.y), g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`, f), f;
1006
1011
  } else {
1007
- a.x < t.x ? n = t.x - s - i : n = i - s - t.x;
1008
- let y = o * n / h, f = a.x < t.x ? a.x + h - n : a.x - h + n, p = a.y < t.y ? a.y + y : a.y - y;
1012
+ e.x < t.x ? n = t.x - s - i : n = i - s - t.x;
1013
+ let y = o * n / h, f = e.x < t.x ? e.x + h - n : e.x - h + n, p = e.y < t.y ? e.y + y : e.y - y;
1009
1014
  return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`, { _x: f, _y: p }), n === 0 && (f = t.x, p = t.y), h === 0 && (f = t.x), o === 0 && (p = t.y), { x: f, y: p };
1010
1015
  }
1011
- }, et = (e, t) => {
1012
- g.debug("abc88 cutPathAtIntersect", e, t);
1013
- let a = [], i = e[0], l = !1;
1014
- return e.forEach((r) => {
1016
+ }, et = (a, t) => {
1017
+ g.debug("abc88 cutPathAtIntersect", a, t);
1018
+ let e = [], i = a[0], l = !1;
1019
+ return a.forEach((r) => {
1015
1020
  if (!sr(t, r) && !l) {
1016
1021
  const s = ir(t, i, r);
1017
1022
  let n = !1;
1018
- a.forEach((c) => {
1023
+ e.forEach((c) => {
1019
1024
  n = n || c.x === s.x && c.y === s.y;
1020
- }), a.some((c) => c.x === s.x && c.y === s.y) || a.push(s), l = !0;
1025
+ }), e.some((c) => c.x === s.x && c.y === s.y) || e.push(s), l = !0;
1021
1026
  } else
1022
- i = r, l || a.push(r);
1023
- }), a;
1024
- }, ur = function(e, t, a, i, l, r, s) {
1025
- let n = a.points;
1026
- g.debug("abc88 InsertEdge: edge=", a, "e=", t);
1027
+ i = r, l || e.push(r);
1028
+ }), e;
1029
+ }, ur = function(a, t, e, i, l, r, s) {
1030
+ let n = e.points;
1031
+ g.debug("abc88 InsertEdge: edge=", e, "e=", t);
1027
1032
  let c = !1;
1028
1033
  const o = r.node(t.v);
1029
1034
  var h = r.node(t.w);
1030
- h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1, a.points.length - 1), n.unshift(o.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), a.toCluster && (g.debug("to cluster abc88", i[a.toCluster]), n = et(a.points, i[a.toCluster].node), c = !0), a.fromCluster && (g.debug("from cluster abc88", i[a.fromCluster]), n = et(n.reverse(), i[a.fromCluster].node).reverse(), c = !0);
1035
+ h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1, e.points.length - 1), n.unshift(o.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), e.toCluster && (g.debug("to cluster abc88", i[e.toCluster]), n = et(e.points, i[e.toCluster].node), c = !0), e.fromCluster && (g.debug("from cluster abc88", i[e.fromCluster]), n = et(n.reverse(), i[e.fromCluster].node).reverse(), c = !0);
1031
1036
  const y = n.filter((C) => !Number.isNaN(C.y));
1032
1037
  let f = lt;
1033
- a.curve && (l === "graph" || l === "flowchart") && (f = a.curve);
1034
- const { x: p, y: d } = rr(a), k = ct().x(p).y(d).curve(f);
1038
+ e.curve && (l === "graph" || l === "flowchart") && (f = e.curve);
1039
+ const { x: p, y: d } = rr(e), k = ct().x(p).y(d).curve(f);
1035
1040
  let x;
1036
- switch (a.thickness) {
1041
+ switch (e.thickness) {
1037
1042
  case "normal":
1038
1043
  x = "edge-thickness-normal";
1039
1044
  break;
@@ -1046,7 +1051,7 @@ const gr = (e, t) => {
1046
1051
  default:
1047
1052
  x = "";
1048
1053
  }
1049
- switch (a.pattern) {
1054
+ switch (e.pattern) {
1050
1055
  case "solid":
1051
1056
  x += " edge-pattern-solid";
1052
1057
  break;
@@ -1057,11 +1062,11 @@ const gr = (e, t) => {
1057
1062
  x += " edge-pattern-dashed";
1058
1063
  break;
1059
1064
  }
1060
- const u = e.append("path").attr("d", k(y)).attr("id", a.id).attr("class", " " + x + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1065
+ const u = a.append("path").attr("d", k(y)).attr("id", e.id).attr("class", " " + x + (e.classes ? " " + e.classes : "")).attr("style", e.style);
1061
1066
  let S = "";
1062
- (b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u, a, S, s, l);
1067
+ (b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u, e, S, s, l);
1063
1068
  let B = {};
1064
- return c && (B.updatedPath = n), B.originalPath = a.points, B;
1069
+ return c && (B.updatedPath = n), B.originalPath = e.points, B;
1065
1070
  };
1066
1071
  export {
1067
1072
  or as a,