@layers-app/editor 0.3.1 → 0.3.3

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 (224) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{layers.YIcMqcyp.js → layers.-l2AJn8N.js} +1 -1
  4. package/dist/{layers.B5HfO3V6.js → layers.0gTLSvWQ.js} +1 -1
  5. package/dist/{layers.CWkN7sKt.js → layers.16EC2uI7.js} +1 -1
  6. package/dist/{layers.DYEd0u9z.js → layers.1I5xyfif.js} +32 -31
  7. package/dist/{layers.BEjPybmC.js → layers.2-RPDS2N.js} +1 -1
  8. package/dist/{layers.Cmzu43i4.js → layers.2_WiJO5g.js} +34 -34
  9. package/dist/{layers.CugRvVGY.js → layers.2p7PW21W.js} +1 -1
  10. package/dist/{layers.Blb1SJbF.js → layers.35c-VRcO.js} +1 -1
  11. package/dist/{layers.BkpoZP5j.js → layers.3IPXbW5V.js} +1 -1
  12. package/dist/{layers.CLrT_kEd.js → layers.3t_CgsOz.js} +1 -1
  13. package/dist/layers.4LzO0D5y.js +1 -0
  14. package/dist/{layers.wMGES0RI.js → layers.5GpeWs1k.js} +8 -7
  15. package/dist/{layers.BQQthCA6.js → layers.5yiCc53Y.js} +1 -1
  16. package/dist/{layers.DOWkTN19.js → layers.8hjbTu1f.js} +4 -4
  17. package/dist/{layers.DW88x7MD.js → layers.928vXTJ4.js} +1 -1
  18. package/dist/{layers.C-dzC33p.js → layers.9ExhBova.js} +1 -1
  19. package/dist/{layers.DvFoHZK-.js → layers.9LTBn8D1.js} +1 -1
  20. package/dist/{layers.B2AGu32C.js → layers.9tX9hjoM.js} +61 -61
  21. package/dist/{layers.BhyRsUUP.js → layers.B08PRJxd.js} +1 -1
  22. package/dist/{layers.C_AfKjTB.js → layers.B0k7GE3p.js} +1 -1
  23. package/dist/{layers.ChyiO7W2.js → layers.B1r7uN_d.js} +90 -89
  24. package/dist/{layers.CLq_gjkT.js → layers.B4Pxdl-N.js} +1 -1
  25. package/dist/{layers.CBwJFvR2.js → layers.B6wy_jom.js} +1 -1
  26. package/dist/{layers.DQtWLaX5.js → layers.B9jVzQgZ.js} +1 -1
  27. package/dist/{layers.DdZQdfst.js → layers.BAvGXt8B.js} +1 -1
  28. package/dist/{layers.BHQ_DVN2.js → layers.BDhy21Nk.js} +1 -1
  29. package/dist/layers.BDmH-L1C.js +10 -0
  30. package/dist/{layers.DY33k0DK.js → layers.BG-hNZzz.js} +1 -1
  31. package/dist/layers.BGD3m_OG.js +4 -0
  32. package/dist/{layers.CyH2JHOr.js → layers.BGRbjA00.js} +1 -1
  33. package/dist/{layers.BkzTxi7n.js → layers.BJ-MsyS8.js} +55 -54
  34. package/dist/{layers.DEJLw5pD.js → layers.BJQScjQT.js} +1 -1
  35. package/dist/{layers.B3mWbsYz.js → layers.BJW2R1L2.js} +11 -10
  36. package/dist/layers.BK21-nWH.js +2 -0
  37. package/dist/{layers.MTRKGDa2.js → layers.BK6ASrKX.js} +1 -1
  38. package/dist/{layers.9Yq4SYpr.js → layers.BKMdYoTB.js} +1 -1
  39. package/dist/{layers.XzjaNKF4.js → layers.BLRA91w4.js} +1 -1
  40. package/dist/{layers.B-6ntVZv.js → layers.BLbIvI8k.js} +33 -33
  41. package/dist/{layers.DK9jGMtC.js → layers.BMKdk8Ny.js} +1 -1
  42. package/dist/{layers.C2lCyyCZ.js → layers.BMo-QTH_.js} +1 -1
  43. package/dist/{layers.CYDe1VkW.js → layers.BMvYEaW2.js} +1 -1
  44. package/dist/{layers.CKwrGZha.js → layers.BOlw3g9m.js} +1 -1
  45. package/dist/{layers.CA4DyArn.js → layers.BQ0lPr9O.js} +1 -1
  46. package/dist/{layers.iCxIdCf4.js → layers.BQ81cBuX.js} +14 -13
  47. package/dist/{layers.D0W9WciE.js → layers.BQ8_UOXU.js} +41 -40
  48. package/dist/{layers.wfJtLKCx.js → layers.BQLFBWfy.js} +1 -1
  49. package/dist/{layers.C9Wj3En2.js → layers.BQNiZoTK.js} +1 -1
  50. package/dist/{layers.D29gtt0H.js → layers.BSX0CeLG.js} +1 -1
  51. package/dist/{layers.BcLslZVY.js → layers.BTho_dJa.js} +1 -1
  52. package/dist/{layers.D2Kx1511.js → layers.BTp6AGkt.js} +1 -1
  53. package/dist/layers.BVD5zjhA.js +8 -0
  54. package/dist/{layers.Be1IMgFf.js → layers.BVdKeJxP.js} +1 -1
  55. package/dist/layers.BVvvLPDI.js +6 -0
  56. package/dist/{layers.B-_EI2NU.js → layers.BVyGU-y_.js} +1 -1
  57. package/dist/{layers.gEwF8vUu.js → layers.BX63UItK.js} +23 -20
  58. package/dist/{layers.CNSM6wNt.js → layers.BY_UfquX.js} +1 -1
  59. package/dist/{layers.D7yG1HEx.js → layers.BYyN_57h.js} +1 -1
  60. package/dist/{layers.b-LTJte2.js → layers.BZtoS561.js} +2 -2
  61. package/dist/layers.B_Q63Vyi.js +1 -0
  62. package/dist/{layers.D3aDob9Z.js → layers.BcB8CPjY.js} +1 -1
  63. package/dist/{layers.UFuuJbTe.js → layers.BdXvcDy0.js} +2501 -2521
  64. package/dist/{layers.B4edIPhh.js → layers.BeektHnF.js} +1 -1
  65. package/dist/{layers.CQ9mG0cW.js → layers.BhWk02Cd.js} +1 -1
  66. package/dist/{layers.CAqeoIhq.js → layers.BiDCKVzC.js} +243 -240
  67. package/dist/{layers.BPS0vWZM.js → layers.BlQzrmM8.js} +1 -1
  68. package/dist/{layers.D7APxkZ4.js → layers.BmA5s09j.js} +1 -1
  69. package/dist/{layers.CzEbMWGx.js → layers.BsfqDK2o.js} +1 -1
  70. package/dist/{layers.BaICHlB8.js → layers.BsvcWVkK.js} +1 -1
  71. package/dist/{layers.BaLCIMM8.js → layers.Bt-aRL_r.js} +1 -1
  72. package/dist/{layers.TnYc2d7k.js → layers.Bzh7SYa7.js} +1 -1
  73. package/dist/{layers.DZ3T1MOr.js → layers.BzwGQwR0.js} +1 -1
  74. package/dist/{layers.DqJ4YLRH.js → layers.C-f_Q-Cj.js} +1 -1
  75. package/dist/layers.C0lan2qp.js +65 -0
  76. package/dist/{layers.DunslCYq.js → layers.C1PHLcPU.js} +1 -1
  77. package/dist/{layers.CjfXghGO.js → layers.C1wK6tYK.js} +1 -1
  78. package/dist/{layers.CcsWrdTv.js → layers.C3tq2mhS.js} +1 -1
  79. package/dist/{layers.DRx6fpU-.js → layers.C4wChUXf.js} +1 -1
  80. package/dist/{layers.Dvrki03a.js → layers.C5lNOtb6.js} +57 -56
  81. package/dist/{layers.CZ4FZo4I.js → layers.C5r68lJV.js} +2 -2
  82. package/dist/{layers.CtUY0ri3.js → layers.C6Zzu3kP.js} +591 -590
  83. package/dist/{layers.CkHkzjP7.js → layers.C7Y1BMm2.js} +1 -1
  84. package/dist/{layers.BH5Zo2E5.js → layers.CB8rAm6S.js} +1 -1
  85. package/dist/{layers.o15MC5m1.js → layers.CEk4dxtl.js} +5 -5
  86. package/dist/{layers.D1j5HCgS.js → layers.CF1dQFH3.js} +8 -7
  87. package/dist/{layers.DuqCxozN.js → layers.CFflVvFB.js} +1 -1
  88. package/dist/{layers.BlpEVEZQ.js → layers.CHjlsQ_B.js} +312 -307
  89. package/dist/layers.CIMkzeBJ.js +1 -0
  90. package/dist/{layers.B7SdSCSK.js → layers.CJ0fyDpu.js} +1 -1
  91. package/dist/{layers.DP03vw0i.js → layers.CLCGKyJ2.js} +1 -1
  92. package/dist/{layers.C3WQ9FB9.js → layers.CO8nUVJY.js} +1 -1
  93. package/dist/{layers.DpVMkxT_.js → layers.CRwvm07J.js} +1 -1
  94. package/dist/{layers.3a-Q5eGZ.js → layers.CT7M8_br.js} +1 -1
  95. package/dist/{layers.BLA49Uxv.js → layers.CTJJWLJ_.js} +1 -1
  96. package/dist/{layers.B5JSV7em.js → layers.CTJQcQqM.js} +57 -57
  97. package/dist/{layers.XuOcZ2YD.js → layers.CUzDJicH.js} +1 -1
  98. package/dist/{layers.BhFwDmEi.js → layers.CViGJYzB.js} +1 -1
  99. package/dist/{layers.IF5vNpDk.js → layers.CaNaS6O9.js} +1 -1
  100. package/dist/{layers.CwFOQcrb.js → layers.Ccb0A5ox.js} +5 -4
  101. package/dist/{layers.C7xf3nZE.js → layers.Cd5uG_eL.js} +1 -1
  102. package/dist/{layers.BRKlq7jj.js → layers.CdIvO02s.js} +2 -2
  103. package/dist/layers.Cdhed5fp.js +1 -0
  104. package/dist/{layers.D9vlbJdq.js → layers.CeiR1Dbi.js} +81 -80
  105. package/dist/{layers.CczDjU9N.js → layers.CfiUGEHN.js} +56 -56
  106. package/dist/{layers.BKbwal2S.js → layers.CgG9F_6Q.js} +1 -1
  107. package/dist/{layers.7VVd4tP6.js → layers.ChVqKHd0.js} +1 -1
  108. package/dist/{layers.Dz9flu9L.js → layers.Ci0uBIle.js} +1 -1
  109. package/dist/{layers.Otjc68EQ.js → layers.Cif-jV_S.js} +1 -1
  110. package/dist/{layers.9Yn7opmg.js → layers.ClRV90bi.js} +9 -8
  111. package/dist/{layers.CXTZloQF.js → layers.Cnk7aAL9.js} +1 -1
  112. package/dist/{layers.DrdNodqe.js → layers.CoWKFBg3.js} +10 -10
  113. package/dist/{layers.BmKXu2hq.js → layers.CrKojTvd.js} +38 -37
  114. package/dist/{layers.BOhRJ2O7.js → layers.CrwPvi_0.js} +1 -1
  115. package/dist/layers.Cs8RaUcX.js +257 -0
  116. package/dist/{layers.B6NJ6ccg.js → layers.CtIPZAAN.js} +1 -1
  117. package/dist/{layers.C5JGtTwP.js → layers.Cu7DfqZV.js} +1 -1
  118. package/dist/{layers.xVBO5Ikf.js → layers.Cw0TqCwp.js} +1 -1
  119. package/dist/{layers.w-DSpxnL.js → layers.Cw3wTgiX.js} +8 -7
  120. package/dist/{layers.MV17d6Mx.js → layers.CxdakMb6.js} +1 -1
  121. package/dist/{layers.Ci0fy6mm.js → layers.CxgqFOeS.js} +1 -1
  122. package/dist/{layers.CWSgM_kw.js → layers.CyHstuXf.js} +1 -1
  123. package/dist/{layers.CtE1xXZh.js → layers.CzDWf07m.js} +1 -1
  124. package/dist/{layers.F7xHDD6v.js → layers.D1SzUT3h.js} +1 -1
  125. package/dist/{layers.MoTyg_20.js → layers.D4YbApFi.js} +16 -16
  126. package/dist/{layers.Bgh_aa4B.js → layers.D4pnmy-2.js} +1 -1
  127. package/dist/{layers.CCKbbpP_.js → layers.D75PgS44.js} +1 -1
  128. package/dist/{layers.DP62iSBu.js → layers.D7IGwzuT.js} +1 -1
  129. package/dist/{layers.CakuyGCQ.js → layers.DAW6tMxQ.js} +1 -1
  130. package/dist/layers.DD_8hn36.js +8 -0
  131. package/dist/{layers.Buk0Fw_r.js → layers.DGaeRuVv.js} +1 -1
  132. package/dist/{layers.CNi2XH-e.js → layers.DGzJP1wg.js} +1 -1
  133. package/dist/{layers.C6rX4i15.js → layers.DHjkTBV9.js} +1 -1
  134. package/dist/{layers.KlMi93Ei.js → layers.DIEcAeI4.js} +1 -1
  135. package/dist/{layers.DBbMzX3L.js → layers.DJbrQN4L.js} +1 -1
  136. package/dist/{layers.CaTJnQ9u.js → layers.DMHe5_7i.js} +1 -1
  137. package/dist/{layers.PGw1DVB5.js → layers.DOKC1P95.js} +1 -1
  138. package/dist/{layers.UAUOxFCw.js → layers.DOhhTTch.js} +1 -1
  139. package/dist/{layers.BiQxhxnG.js → layers.DOt5Mj2L.js} +38 -38
  140. package/dist/{layers.VYHrW5HF.js → layers.DPTUkKbi.js} +1 -1
  141. package/dist/{layers.j2m1V3h_.js → layers.DTLeD2wP.js} +1 -1
  142. package/dist/{layers.Cs24L6er.js → layers.DUt_7Rf9.js} +6 -6
  143. package/dist/{layers.D_ERA5Eg.js → layers.DVhhrjHp.js} +1 -1
  144. package/dist/{layers.C0-A7eRM.js → layers.DWzx9Mgu.js} +1 -1
  145. package/dist/layers.DXYihBim.js +1 -0
  146. package/dist/{layers.9qBnCDzZ.js → layers.DXzxnmle.js} +1 -1
  147. package/dist/layers.DY5jqyng.js +1 -0
  148. package/dist/{layers.BJ55htmW.js → layers.DZw0I7JM.js} +1 -1
  149. package/dist/{layers.B3oab57P.js → layers.Db5B9R2w.js} +1 -1
  150. package/dist/{layers.z4rFqQ1E.js → layers.DbQV9Fyb.js} +1 -1
  151. package/dist/{layers.EEZOfKqy.js → layers.Dc6XIWD9.js} +12 -11
  152. package/dist/{layers.B_fwh454.js → layers.Dc6qdCMO.js} +1 -1
  153. package/dist/{layers.CbmxJEUV.js → layers.Dc9iUKAn.js} +130 -130
  154. package/dist/{layers.CJ2wXM1J.js → layers.DccPmgTI.js} +1 -1
  155. package/dist/{layers.BS2w4lr6.js → layers.DfFmb4Fz.js} +1 -1
  156. package/dist/{layers.DFUTFOcc.js → layers.DgPCjVmy.js} +1 -1
  157. package/dist/layers.DidPEA5s.js +122 -0
  158. package/dist/{layers.CM09dSjO.js → layers.Dk3i_q8N.js} +1 -1
  159. package/dist/{layers.Bygo74zU.js → layers.DmjE4NWS.js} +8465 -8197
  160. package/dist/{layers.BAzHt1-K.js → layers.DnulHat0.js} +3 -3
  161. package/dist/{layers.ClovUFct.js → layers.DovhcoJI.js} +15 -14
  162. package/dist/layers.Dtb-6iv0.js +2 -0
  163. package/dist/{layers.DDbaPvpM.js → layers.Du0MZgUS.js} +1 -1
  164. package/dist/{layers.pWLA6ZDi.js → layers.Du75VwWB.js} +21 -20
  165. package/dist/{layers.B2iZKl7a.js → layers.DuQqigZx.js} +10 -9
  166. package/dist/{layers.CuC5nLW8.js → layers.Dun1EykV.js} +1 -1
  167. package/dist/{layers.DJUAT4C2.js → layers.DvHYidqw.js} +1 -1
  168. package/dist/{layers.zR0cTXnd.js → layers.Dwkd09zo.js} +1 -1
  169. package/dist/{layers.0SH7L8mO.js → layers.DxPGyRMO.js} +1 -1
  170. package/dist/{layers.DgHnZEoL.js → layers.DxPeHbjg.js} +1 -1
  171. package/dist/{layers.DBd1ZxHp.js → layers.Dyj12dYO.js} +1 -1
  172. package/dist/{layers.CVpWQln7.js → layers.Dyv2htU4.js} +2 -2
  173. package/dist/{layers.UFaXcVX-.js → layers.DzODAkRN.js} +1 -1
  174. package/dist/{layers.CEhLVWVr.js → layers.DzXDTNNk.js} +1 -1
  175. package/dist/{layers._Qb0PjpM.js → layers.GNoBUkSs.js} +1 -1
  176. package/dist/{layers.CuDNx9A1.js → layers.GoDP6inY.js} +1 -1
  177. package/dist/{layers.DVASDwnU.js → layers.GpUYOtjt.js} +1 -1
  178. package/dist/{layers.DazxntKQ.js → layers.HLBUXyBj.js} +7 -6
  179. package/dist/{layers.D4A3yxw0.js → layers.J_1mC0RF.js} +1 -1
  180. package/dist/{layers.BXz0HxFb.js → layers.JrJYv3CM.js} +1 -1
  181. package/dist/{layers.Df9wCGO4.js → layers.KLIJN15m.js} +1 -1
  182. package/dist/{layers.DNpJjBUJ.js → layers.L9wqGn_k.js} +1 -1
  183. package/dist/{layers.D4XVPZpA.js → layers.MVsAM2Ld.js} +1 -1
  184. package/dist/{layers.sd-cXx8M.js → layers.MWa_o4Rf.js} +19 -18
  185. package/dist/{layers.DI85re_s.js → layers.RKsQwaov.js} +1 -1
  186. package/dist/{layers.D3U9SdgE.js → layers.SEcBJRkC.js} +1 -1
  187. package/dist/{layers.BKzpK190.js → layers.VOa7XKWN.js} +1 -1
  188. package/dist/{layers.CinKDuBS.js → layers.Z5DcF1pd.js} +1 -1
  189. package/dist/{layers.DGNpEhCF.js → layers.aayEl1O6.js} +1 -1
  190. package/dist/{layers.Bel31pZo.js → layers.bEJ2s-kl.js} +1 -1
  191. package/dist/{layers.48I9suCn.js → layers.e45_TqTD.js} +6471 -6470
  192. package/dist/{layers.BXmhh7b0.js → layers.eCTxoZpN.js} +1 -1
  193. package/dist/{layers.3GwrPaZO.js → layers.f4Sp2Ilx.js} +19 -18
  194. package/dist/{layers.DLCTcxL1.js → layers.gvPMa5Au.js} +1 -1
  195. package/dist/{layers.DDwqLeSC.js → layers.juNg1YJi.js} +1 -1
  196. package/dist/{layers.DwGsA97C.js → layers.jvTu6YFh.js} +1 -1
  197. package/dist/{layers.C9n_72fo.js → layers.kDHNjKyY.js} +1 -1
  198. package/dist/layers.kkaorUz-.js +96 -0
  199. package/dist/{layers._rLtEprV.js → layers.m3RfG7Us.js} +1 -1
  200. package/dist/{layers.B0CIcvyl.js → layers.oCJ1Hwac.js} +1 -1
  201. package/dist/{layers.BDSdHwxq.js → layers.p7tK6TPW.js} +1 -1
  202. package/dist/{layers.CSdBXHWj.js → layers.psLd058a.js} +1 -1
  203. package/dist/{layers.BS9nCPMs.js → layers.q5ciA_OY.js} +1 -1
  204. package/dist/{layers.C2J-9t4F.js → layers.u1GRLiSJ.js} +1 -1
  205. package/dist/{layers.DOsKyasI.js → layers.vLwBhPoX.js} +1 -1
  206. package/dist/{layers.BeSH60au.js → layers.x-eQB-X-.js} +1 -1
  207. package/package.json +1 -1
  208. package/dist/layers.-OFHX18B.js +0 -1
  209. package/dist/layers.BLmU0KXd.js +0 -10
  210. package/dist/layers.BRhQ1w-K.js +0 -96
  211. package/dist/layers.BcE-rdq0.js +0 -1
  212. package/dist/layers.Bzjuw56r.js +0 -4
  213. package/dist/layers.C-gj1rq0.js +0 -64
  214. package/dist/layers.CHCM_M7u.js +0 -1
  215. package/dist/layers.CdbF8xYj.js +0 -8
  216. package/dist/layers.ChFAeZ6n.js +0 -2
  217. package/dist/layers.DGt5eZsp.js +0 -2
  218. package/dist/layers.DcLjb1VI.js +0 -6
  219. package/dist/layers.Dl7BTVgv.js +0 -1
  220. package/dist/layers.Km1Ud22C.js +0 -257
  221. package/dist/layers.P3AQhXRL.js +0 -8
  222. package/dist/layers._d3cgXev.js +0 -1
  223. package/dist/layers.binJQZ6L.js +0 -122
  224. package/dist/layers.oPCvx-2P.js +0 -1
@@ -1,6 +1,7 @@
1
- import { l as Nr, a3 as yv, a4 as mv, a5 as bv, g as ao, B as wv, _ as Ev, Q as Cn, i as Dn, d as xv, V as Tv } from "./layers.UFuuJbTe.js";
2
- import { w as Cv } from "./layers.48I9suCn.js";
3
- import { c as Dv } from "./layers.CAqeoIhq.js";
1
+ import { l as Nr, a2 as yv, a3 as mv, a4 as bv, g as ao, A as wv, Y as Ev, P as Cn, i as Dn, d as xv, T as Tv } from "./layers.BdXvcDy0.js";
2
+ import { w as Cv } from "./layers.e45_TqTD.js";
3
+ import { c as Dv } from "./layers.BiDCKVzC.js";
4
+ import "./layers.DmjE4NWS.js";
4
5
  function Bs(t, e) {
5
6
  (e == null || e > t.length) && (e = t.length);
6
7
  for (var r = 0, a = Array(e); r < e; r++) a[r] = t[r];
@@ -84,7 +85,7 @@ function hf(t, e, r) {
84
85
  function Rv(t) {
85
86
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
86
87
  }
87
- function Iv(t, e) {
88
+ function Pv(t, e) {
88
89
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
89
90
  if (r != null) {
90
91
  var a, n, i, s, o = [], u = !0, l = !1;
@@ -105,7 +106,7 @@ function Iv(t, e) {
105
106
  return o;
106
107
  }
107
108
  }
108
- function Pv() {
109
+ function Iv() {
109
110
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
110
111
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
111
112
  }
@@ -114,7 +115,7 @@ function Mv() {
114
115
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
115
116
  }
116
117
  function Je(t, e) {
117
- return Sv(t) || Iv(t, e) || no(t, e) || Pv();
118
+ return Sv(t) || Pv(t, e) || no(t, e) || Iv();
118
119
  }
119
120
  function Sn(t) {
120
121
  return Av(t) || Rv(t) || no(t) || Mv();
@@ -608,19 +609,19 @@ function fh() {
608
609
  throw new TypeError(a);
609
610
  u = r(u) || 0, t(l) && (y = !!l.leading, b = "maxWait" in l, v = b ? n(r(l.maxWait) || 0, u) : v, m = "trailing" in l ? !!l.trailing : m);
610
611
  function E(R) {
611
- var I = f, M = c;
612
- return f = c = void 0, g = R, h = o.apply(M, I), h;
612
+ var P = f, M = c;
613
+ return f = c = void 0, g = R, h = o.apply(M, P), h;
613
614
  }
614
615
  function T(R) {
615
616
  return g = R, d = setTimeout(x, u), y ? E(R) : h;
616
617
  }
617
618
  function S(R) {
618
- var I = R - p, M = R - g, N = u - I;
619
+ var P = R - p, M = R - g, N = u - P;
619
620
  return b ? i(N, v - M) : N;
620
621
  }
621
622
  function w(R) {
622
- var I = R - p, M = R - g;
623
- return p === void 0 || I >= u || I < 0 || b && M >= v;
623
+ var P = R - p, M = R - g;
624
+ return p === void 0 || P >= u || P < 0 || b && M >= v;
624
625
  }
625
626
  function x() {
626
627
  var R = e();
@@ -638,8 +639,8 @@ function fh() {
638
639
  return d === void 0 ? h : C(e());
639
640
  }
640
641
  function L() {
641
- var R = e(), I = w(R);
642
- if (f = arguments, c = this, p = R, I) {
642
+ var R = e(), P = w(R);
643
+ if (f = arguments, c = this, p = R, P) {
643
644
  if (d === void 0)
644
645
  return T(p);
645
646
  if (b)
@@ -707,7 +708,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
707
708
  }
708
709
  };
709
710
  return Sf(s, r);
710
- }, Ir = function(e, r) {
711
+ }, Pr = function(e, r) {
711
712
  var a = {
712
713
  value: 0,
713
714
  done: !1
@@ -722,7 +723,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
722
723
  }, dh = function(e) {
723
724
  for (var r, a = 0; a < e.length; a++) {
724
725
  var n = e[a];
725
- a === 0 ? r = Ir(n) : r = Ir(n, r);
726
+ a === 0 ? r = Pr(n) : r = Pr(n, r);
726
727
  }
727
728
  return r;
728
729
  };
@@ -769,7 +770,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
769
770
  return e == null ? e : Ve(e) ? e.slice() : Oe(e) ? wh(e) : e;
770
771
  }, Eh = function(e) {
771
772
  return e.slice();
772
- }, If = function(e, r) {
773
+ }, Pf = function(e, r) {
773
774
  for (
774
775
  // loop :)
775
776
  r = e = "";
@@ -785,7 +786,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
785
786
  ) : "-"
786
787
  ) ;
787
788
  return r;
788
- }, xh = {}, Pf = function() {
789
+ }, xh = {}, If = function() {
789
790
  return xh;
790
791
  }, ht = function(e) {
791
792
  var r = Object.keys(e);
@@ -1023,13 +1024,13 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1023
1024
  E.isNode() && (l.unshift(E), e.bfs && (h[T] = !0, f.push(E)), v[T] = 0);
1024
1025
  }
1025
1026
  for (var S = function() {
1026
- var R = e.bfs ? l.shift() : l.pop(), I = R.id();
1027
+ var R = e.bfs ? l.shift() : l.pop(), P = R.id();
1027
1028
  if (e.dfs) {
1028
- if (h[I])
1029
+ if (h[P])
1029
1030
  return 0;
1030
- h[I] = !0, f.push(R);
1031
+ h[P] = !0, f.push(R);
1031
1032
  }
1032
- var M = v[I], N = c[I], O = N != null ? N.source() : null, k = N != null ? N.target() : null, B = N == null ? void 0 : R.same(O) ? k[0] : O[0], _;
1033
+ var M = v[P], N = c[P], O = N != null ? N.source() : null, k = N != null ? N.target() : null, B = N == null ? void 0 : R.same(O) ? k[0] : O[0], _;
1033
1034
  if (_ = n(R, N, B, d++, M), _ === !0)
1034
1035
  return p = R, 1;
1035
1036
  if (_ === !1)
@@ -1040,7 +1041,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1040
1041
  var H = F[G], Y = H.connectedNodes().filter(function(W) {
1041
1042
  return !W.same(R) && y.has(W);
1042
1043
  }), X = Y.id();
1043
- Y.length !== 0 && !h[X] && (Y = Y[0], l.push(Y), e.bfs && (h[X] = !0, f.push(Y)), c[X] = H, v[X] = v[I] + 1);
1044
+ Y.length !== 0 && !h[X] && (Y = Y[0], l.push(Y), e.bfs && (h[X] = !0, f.push(Y)), c[X] = H, v[X] = v[P] + 1);
1044
1045
  }
1045
1046
  }, w; l.length !== 0 && (w = S(), !(w !== 0 && w === 1)); )
1046
1047
  ;
@@ -1181,7 +1182,7 @@ var Ei, ru;
1181
1182
  function Rh() {
1182
1183
  return ru || (ru = 1, Ei = Lh()), Ei;
1183
1184
  }
1184
- var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1185
+ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1185
1186
  root: null,
1186
1187
  weight: function(e) {
1187
1188
  return 1;
@@ -1197,7 +1198,7 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1197
1198
  directed: r[2]
1198
1199
  };
1199
1200
  }
1200
- var a = Ph(e), n = a.root, i = a.weight, s = a.directed, o = this, u = i, l = ge(n) ? this.filter(n)[0] : n[0], f = {}, c = {}, v = {}, h = this.byGroup(), d = h.nodes, p = h.edges;
1201
+ var a = Ih(e), n = a.root, i = a.weight, s = a.directed, o = this, u = i, l = ge(n) ? this.filter(n)[0] : n[0], f = {}, c = {}, v = {}, h = this.byGroup(), d = h.nodes, p = h.edges;
1201
1202
  p.unmergeBy(function(M) {
1202
1203
  return M.isLoop();
1203
1204
  });
@@ -1224,8 +1225,8 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1224
1225
  var S = b.pop(), w = g(S), x = S.id();
1225
1226
  if (v[x] = w, w !== 1 / 0)
1226
1227
  for (var C = S.neighborhood().intersect(d), D = 0; D < C.length; D++) {
1227
- var A = C[D], L = A.id(), R = T(S, A), I = w + R.dist;
1228
- I < g(A) && (y(A, I), c[L] = {
1228
+ var A = C[D], L = A.id(), R = T(S, A), P = w + R.dist;
1229
+ P < g(A) && (y(A, P), c[L] = {
1229
1230
  node: S,
1230
1231
  edge: R.edge
1231
1232
  });
@@ -1308,16 +1309,16 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1308
1309
  }
1309
1310
  h[E] = !0;
1310
1311
  for (var L = m._private.edges, R = 0; R < L.length; R++) {
1311
- var I = L[R];
1312
- if (this.hasElementWithId(I.id()) && !(o && I.data("source") !== E)) {
1313
- var M = I.source(), N = I.target(), O = M.id() !== E ? M : N, k = O.id();
1312
+ var P = L[R];
1313
+ if (this.hasElementWithId(P.id()) && !(o && P.data("source") !== E)) {
1314
+ var M = P.source(), N = P.target(), O = M.id() !== E ? M : N, k = O.id();
1314
1315
  if (this.hasElementWithId(k) && !h[k]) {
1315
- var B = c[E] + u(I);
1316
+ var B = c[E] + u(P);
1316
1317
  if (!S(k)) {
1317
- c[k] = B, v[k] = B + s(O), b(O, k), g[k] = m, y[k] = I;
1318
+ c[k] = B, v[k] = B + s(O), b(O, k), g[k] = m, y[k] = P;
1318
1319
  continue;
1319
1320
  }
1320
- B < c[k] && (c[k] = B, v[k] = B + s(O), g[k] = m, y[k] = I);
1321
+ B < c[k] && (c[k] = B, v[k] = B + s(O), g[k] = m, y[k] = P);
1321
1322
  }
1322
1323
  }
1323
1324
  }
@@ -1356,9 +1357,9 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1356
1357
  }
1357
1358
  }
1358
1359
  for (var R = 0; R < f; R++)
1359
- for (var I = 0; I < f; I++)
1360
- for (var M = I * f + R, N = 0; N < f; N++) {
1361
- var O = I * f + N, k = R * f + N;
1360
+ for (var P = 0; P < f; P++)
1361
+ for (var M = P * f + R, N = 0; N < f; N++) {
1362
+ var O = P * f + N, k = R * f + N;
1362
1363
  d[M] + d[k] < d[O] && (d[O] = d[M] + d[k], b[O] = b[M]);
1363
1364
  }
1364
1365
  var B = function(H) {
@@ -1425,8 +1426,8 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1425
1426
  }, A = 1; A < h; A++) {
1426
1427
  C = !1;
1427
1428
  for (var L = 0; L < y; L++) {
1428
- var R = c[L], I = R.source(), M = R.target(), N = o(R), O = b(I), k = b(M);
1429
- D(I, M, R, O, k, N), i || D(M, I, R, k, O, N);
1429
+ var R = c[L], P = R.source(), M = R.target(), N = o(R), O = b(P), k = b(M);
1430
+ D(P, M, R, O, k, N), i || D(M, P, R, k, O, N);
1430
1431
  }
1431
1432
  if (!C)
1432
1433
  break;
@@ -1447,10 +1448,10 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1447
1448
  for (var Z = V[0].id(), re = 0, ve = 2; ve < V.length; ve += 2)
1448
1449
  V[ve].id() < Z && (Z = V[ve].id(), re = ve);
1449
1450
  V = V.slice(re).concat(V.slice(0, re)), V.push(V[0]);
1450
- var Ie = V.map(function(Te) {
1451
+ var Pe = V.map(function(Te) {
1451
1452
  return Te.id();
1452
1453
  }).join(",");
1453
- B.indexOf(Ie) === -1 && (g.push(u.spawn(V)), B.push(Ie));
1454
+ B.indexOf(Pe) === -1 && (g.push(u.spawn(V)), B.push(Pe));
1454
1455
  }
1455
1456
  } else
1456
1457
  break;
@@ -1513,8 +1514,8 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1513
1514
  for (var x = this.spawn(h.map(function(k) {
1514
1515
  return n[k[0]];
1515
1516
  })), C = this.spawn(), D = this.spawn(), A = d[0], L = 0; L < d.length; L++) {
1516
- var R = d[L], I = a[L];
1517
- R === A ? C.merge(I) : D.merge(I);
1517
+ var R = d[L], P = a[L];
1518
+ R === A ? C.merge(P) : D.merge(P);
1518
1519
  }
1519
1520
  var M = function(B) {
1520
1521
  var _ = e.spawn();
@@ -1591,7 +1592,7 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1591
1592
  return Math.log(t) / Math.log(2);
1592
1593
  }, vo = function(e) {
1593
1594
  return e > 0 ? 1 : e < 0 ? -1 : 0;
1594
- }, Pr = function(e, r) {
1595
+ }, Ir = function(e, r) {
1595
1596
  return Math.sqrt(Dr(e, r));
1596
1597
  }, Dr = function(e, r) {
1597
1598
  var a = r.x - e.x, n = r.y - e.y;
@@ -1613,7 +1614,7 @@ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1613
1614
  var i = {
1614
1615
  x: r.x - e.x,
1615
1616
  y: r.y - e.y
1616
- }, s = Pr(e, r), o = {
1617
+ }, s = Ir(e, r), o = {
1617
1618
  x: i.x / s,
1618
1619
  y: i.y / s
1619
1620
  };
@@ -1731,10 +1732,10 @@ function td(t, e) {
1731
1732
  }
1732
1733
  return C / 2;
1733
1734
  }, u = function(x, C, D, A) {
1734
- var L = a(C, x), R = a(A, D), I = i(L, R);
1735
- if (Math.abs(I) < 1e-9)
1735
+ var L = a(C, x), R = a(A, D), P = i(L, R);
1736
+ if (Math.abs(P) < 1e-9)
1736
1737
  return r(x, n(L, 0.5));
1737
- var M = i(a(D, x), R) / I;
1738
+ var M = i(a(D, x), R) / P;
1738
1739
  return r(x, n(L, M));
1739
1740
  }, l = t.map(function(w) {
1740
1741
  return {
@@ -1788,8 +1789,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1788
1789
  return d;
1789
1790
  }
1790
1791
  if (h) {
1791
- var A = a - f - o, L = n - c + l - o, R = A, I = n + c - l + o;
1792
- if (d = or(e, r, a, n, A, L, R, I, !1), d.length > 0)
1792
+ var A = a - f - o, L = n - c + l - o, R = A, P = n + c - l + o;
1793
+ if (d = or(e, r, a, n, A, L, R, P, !1), d.length > 0)
1793
1794
  return d;
1794
1795
  }
1795
1796
  var M;
@@ -1871,8 +1872,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1871
1872
  f[d * 2] = s / 2 * (a[d * 2] * v - a[d * 2 + 1] * h), f[d * 2 + 1] = o / 2 * (a[d * 2 + 1] * v + a[d * 2] * h), f[d * 2] += n, f[d * 2 + 1] += i;
1872
1873
  var p;
1873
1874
  if (l > 0) {
1874
- var g = Pn(f, -l);
1875
- p = In(g);
1875
+ var g = In(f, -l);
1876
+ p = Pn(g);
1876
1877
  } else
1877
1878
  p = f;
1878
1879
  return St(e, r, p);
@@ -1885,14 +1886,14 @@ var Nf = function(e, r, a, n, i, s, o) {
1885
1886
  return !0;
1886
1887
  }
1887
1888
  return St(e, r, l);
1888
- }, In = function(e) {
1889
+ }, Pn = function(e) {
1889
1890
  for (var r = new Array(e.length / 2), a, n, i, s, o, u, l, f, c = 0; c < e.length / 4; c++) {
1890
1891
  a = e[c * 4], n = e[c * 4 + 1], i = e[c * 4 + 2], s = e[c * 4 + 3], c < e.length / 4 - 1 ? (o = e[(c + 1) * 4], u = e[(c + 1) * 4 + 1], l = e[(c + 1) * 4 + 2], f = e[(c + 1) * 4 + 3]) : (o = e[0], u = e[1], l = e[2], f = e[3]);
1891
1892
  var v = or(a, n, i, s, o, u, l, f, !0);
1892
1893
  r[c * 2] = v[0], r[c * 2 + 1] = v[1];
1893
1894
  }
1894
1895
  return r;
1895
- }, Pn = function(e, r) {
1896
+ }, In = function(e, r) {
1896
1897
  for (var a = new Array(e.length * 2), n, i, s, o, u = 0; u < e.length / 2; u++) {
1897
1898
  n = e[u * 2], i = e[u * 2 + 1], u < e.length / 2 - 1 ? (s = e[(u + 1) * 2], o = e[(u + 1) * 2 + 1]) : (s = e[0], o = e[1]);
1898
1899
  var l = o - i, f = -(s - n), c = Math.sqrt(l * l + f * f), v = l / c, h = f / c;
@@ -1945,7 +1946,7 @@ var Nf = function(e, r, a, n, i, s, o) {
1945
1946
  y: f + u * e[c * 2 + 1]
1946
1947
  });
1947
1948
  return s;
1948
- }, Ia = function(e, r, a, n, i, s, o, u) {
1949
+ }, Pa = function(e, r, a, n, i, s, o, u) {
1949
1950
  var l = [], f, c = new Array(a.length), v = !0;
1950
1951
  s == null && (v = !1);
1951
1952
  var h;
@@ -1953,8 +1954,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1953
1954
  for (var d = 0; d < c.length / 2; d++)
1954
1955
  c[d * 2] = a[d * 2] * s + n, c[d * 2 + 1] = a[d * 2 + 1] * o + i;
1955
1956
  if (u > 0) {
1956
- var p = Pn(c, -u);
1957
- h = In(p);
1957
+ var p = In(c, -u);
1958
+ h = Pn(p);
1958
1959
  } else
1959
1960
  h = c;
1960
1961
  } else
@@ -2089,8 +2090,8 @@ var dd = ht({
2089
2090
  }
2090
2091
  for (var L = 1 / c + g, R = 0; R < c; R++)
2091
2092
  if (p[R] === 0)
2092
- for (var I = 0; I < c; I++) {
2093
- var M = I * c + R;
2093
+ for (var P = 0; P < c; P++) {
2094
+ var M = P * c + R;
2094
2095
  d[M] = L;
2095
2096
  }
2096
2097
  else
@@ -2271,8 +2272,8 @@ var pd = ht({
2271
2272
  var A = x.pop();
2272
2273
  if (E.push(A), i)
2273
2274
  for (var L = 0; L < u[A].length; L++) {
2274
- var R = u[A][L], I = s.getElementById(A), M = void 0;
2275
- I.edgesTo(R).length > 0 ? M = I.edgesTo(R)[0] : M = R.edgesTo(I)[0];
2275
+ var R = u[A][L], P = s.getElementById(A), M = void 0;
2276
+ P.edgesTo(R).length > 0 ? M = P.edgesTo(R)[0] : M = R.edgesTo(P)[0];
2276
2277
  var N = n(M);
2277
2278
  R = R.id(), w[R] > w[A] + N && (w[R] = w[A] + N, x.nodes.indexOf(R) < 0 ? x.push(R) : x.updateItem(R), S[R] = 0, T[R] = []), w[R] == w[A] + N && (S[R] = S[R] + S[A], T[R].push(A));
2278
2279
  }
@@ -2408,9 +2409,9 @@ var yd = ht({
2408
2409
  return e + Gf(r, a);
2409
2410
  }, lu = function(e, r, a) {
2410
2411
  return e + Math.pow(a - r, 2);
2411
- }, Id = function(e) {
2412
+ }, Pd = function(e) {
2412
2413
  return Math.sqrt(e);
2413
- }, Pd = function(e, r, a) {
2414
+ }, Id = function(e, r, a) {
2414
2415
  return Math.max(e, Gf(r, a));
2415
2416
  }, ha = function(e, r, a, n, i) {
2416
2417
  for (var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Rd, o = n, u, l, f = 0; f < e; f++)
@@ -2418,7 +2419,7 @@ var yd = ht({
2418
2419
  return s(o);
2419
2420
  }, ra = {
2420
2421
  euclidean: function(e, r, a) {
2421
- return e >= 2 ? ha(e, r, a, 0, lu, Id) : ha(e, r, a, 0, uu);
2422
+ return e >= 2 ? ha(e, r, a, 0, lu, Pd) : ha(e, r, a, 0, uu);
2422
2423
  },
2423
2424
  squaredEuclidean: function(e, r, a) {
2424
2425
  return ha(e, r, a, 0, lu);
@@ -2427,7 +2428,7 @@ var yd = ht({
2427
2428
  return ha(e, r, a, 0, uu);
2428
2429
  },
2429
2430
  max: function(e, r, a) {
2430
- return ha(e, r, a, -1 / 0, Pd);
2431
+ return ha(e, r, a, -1 / 0, Id);
2431
2432
  }
2432
2433
  };
2433
2434
  ra["squared-euclidean"] = ra.squaredEuclidean;
@@ -2819,8 +2820,8 @@ var Md = ht({
2819
2820
  var C;
2820
2821
  for (C = 0; C < n.maxIterations; C++) {
2821
2822
  for (var D = 0; D < o; D++) {
2822
- for (var A = -1 / 0, L = -1 / 0, R = -1, I = 0, M = 0; M < o; M++)
2823
- m[M] = c[D * o + M], I = v[D * o + M] + l[D * o + M], I >= A ? (L = A, A = I, R = M) : I > L && (L = I);
2823
+ for (var A = -1 / 0, L = -1 / 0, R = -1, P = 0, M = 0; M < o; M++)
2824
+ m[M] = c[D * o + M], P = v[D * o + M] + l[D * o + M], P >= A ? (L = A, A = P, R = M) : P > L && (L = P);
2824
2825
  for (var N = 0; N < o; N++)
2825
2826
  c[D * o + N] = (1 - n.damping) * (l[D * o + N] - A) + n.damping * m[N];
2826
2827
  c[D * o + R] = (1 - n.damping) * (l[D * o + R] - L) + n.damping * m[R];
@@ -3403,16 +3404,16 @@ function ig() {
3403
3404
  }
3404
3405
  return Ri = s, Ri;
3405
3406
  }
3406
- var Ii, Tu;
3407
+ var Pi, Tu;
3407
3408
  function sg() {
3408
- if (Tu) return Ii;
3409
+ if (Tu) return Pi;
3409
3410
  Tu = 1;
3410
3411
  var t = Vn(), e = t["__core-js_shared__"];
3411
- return Ii = e, Ii;
3412
+ return Pi = e, Pi;
3412
3413
  }
3413
- var Pi, Cu;
3414
+ var Ii, Cu;
3414
3415
  function og() {
3415
- if (Cu) return Pi;
3416
+ if (Cu) return Ii;
3416
3417
  Cu = 1;
3417
3418
  var t = sg(), e = (function() {
3418
3419
  var a = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "");
@@ -3421,7 +3422,7 @@ function og() {
3421
3422
  function r(a) {
3422
3423
  return !!e && e in a;
3423
3424
  }
3424
- return Pi = r, Pi;
3425
+ return Ii = r, Ii;
3425
3426
  }
3426
3427
  var Mi, Du;
3427
3428
  function ug() {
@@ -3485,20 +3486,20 @@ function Xn() {
3485
3486
  var t = yo(), e = t(Object, "create");
3486
3487
  return Bi = e, Bi;
3487
3488
  }
3488
- var Fi, Iu;
3489
+ var Fi, Pu;
3489
3490
  function cg() {
3490
- if (Iu) return Fi;
3491
- Iu = 1;
3491
+ if (Pu) return Fi;
3492
+ Pu = 1;
3492
3493
  var t = Xn();
3493
3494
  function e() {
3494
3495
  this.__data__ = t ? t(null) : {}, this.size = 0;
3495
3496
  }
3496
3497
  return Fi = e, Fi;
3497
3498
  }
3498
- var _i, Pu;
3499
+ var _i, Iu;
3499
3500
  function vg() {
3500
- if (Pu) return _i;
3501
- Pu = 1;
3501
+ if (Iu) return _i;
3502
+ Iu = 1;
3502
3503
  function t(e) {
3503
3504
  var r = this.has(e) && delete this.__data__[e];
3504
3505
  return this.size -= r ? 1 : 0, r;
@@ -3732,7 +3733,7 @@ function Rg() {
3732
3733
  return ns = e, ns;
3733
3734
  }
3734
3735
  var is, Ju;
3735
- function Ig() {
3736
+ function Pg() {
3736
3737
  if (Ju) return is;
3737
3738
  Ju = 1;
3738
3739
  var t = Cg(), e = Sg(), r = Ag(), a = Lg(), n = Rg();
@@ -3746,10 +3747,10 @@ function Ig() {
3746
3747
  return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = a, i.prototype.set = n, is = i, is;
3747
3748
  }
3748
3749
  var ss, ju;
3749
- function Pg() {
3750
+ function Ig() {
3750
3751
  if (ju) return ss;
3751
3752
  ju = 1;
3752
- var t = Ig(), e = "Expected a function";
3753
+ var t = Pg(), e = "Expected a function";
3753
3754
  function r(a, n) {
3754
3755
  if (typeof a != "function" || n != null && typeof n != "function")
3755
3756
  throw new TypeError(e);
@@ -3768,7 +3769,7 @@ var os, el;
3768
3769
  function Mg() {
3769
3770
  if (el) return os;
3770
3771
  el = 1;
3771
- var t = Pg(), e = 500;
3772
+ var t = Ig(), e = 500;
3772
3773
  function r(a) {
3773
3774
  var n = t(a, function(s) {
3774
3775
  return i.size === e && i.clear(), s;
@@ -5007,7 +5008,7 @@ var Mt = function(e, r) {
5007
5008
  return function(n, i, s, o) {
5008
5009
  var u = n, l = this, f;
5009
5010
  if (u == null ? f = "" : Lt(u) && u.length === 1 && (f = u.id()), l.length === 1 && f) {
5010
- var c = l[0]._private, v = c.traversalCache = c.traversalCache || {}, h = v[r] = v[r] || [], d = Ir(f), p = h[d];
5011
+ var c = l[0]._private, v = c.traversalCache = c.traversalCache || {}, h = v[r] = v[r] || [], d = Pr(f), p = h[d];
5011
5012
  return p || (h[d] = e.call(l, n, i, s, o));
5012
5013
  } else
5013
5014
  return e.call(l, n, i, s, o);
@@ -5133,8 +5134,8 @@ aa.forEachUpAndDown = function(t) {
5133
5134
  return wo(this, t, e, hp);
5134
5135
  };
5135
5136
  aa.ancestors = aa.parents;
5136
- var Pa, rc;
5137
- Pa = rc = {
5137
+ var Ia, rc;
5138
+ Ia = rc = {
5138
5139
  data: _e.data({
5139
5140
  field: "data",
5140
5141
  bindingEvent: "data",
@@ -5200,8 +5201,8 @@ Pa = rc = {
5200
5201
  return e._private.data.id;
5201
5202
  }
5202
5203
  };
5203
- Pa.attr = Pa.data;
5204
- Pa.removeAttr = Pa.removeData;
5204
+ Ia.attr = Ia.data;
5205
+ Ia.removeAttr = Ia.removeData;
5205
5206
  var dp = rc, Kn = {};
5206
5207
  function Cs(t) {
5207
5208
  return function(e) {
@@ -5467,8 +5468,8 @@ br.updateCompoundBounds = function() {
5467
5468
  h: s.pstyle("height").pfValue
5468
5469
  }, c.x1 = v.x - c.w / 2, c.x2 = v.x + c.w / 2, c.y1 = v.y - c.h / 2, c.y2 = v.y + c.h / 2);
5469
5470
  function h(C, D, A) {
5470
- var L = 0, R = 0, I = D + A;
5471
- return C > 0 && I > 0 && (L = D / I * C, R = A / I * C), {
5471
+ var L = 0, R = 0, P = D + A;
5472
+ return C > 0 && P > 0 && (L = D / P * C, R = A / P * C), {
5472
5473
  biasDiff: L,
5473
5474
  biasComplementDiff: R
5474
5475
  };
@@ -5508,7 +5509,7 @@ br.updateCompoundBounds = function() {
5508
5509
  }
5509
5510
  return this;
5510
5511
  };
5511
- var Pt = function(e) {
5512
+ var It = function(e) {
5512
5513
  return e === 1 / 0 || e === -1 / 0 ? 0 : e;
5513
5514
  }, Nt = function(e, r, a, n, i) {
5514
5515
  n - r === 0 || i - a === 0 || r == null || a == null || n == null || i == null || (e.x1 = r < e.x1 ? r : e.x1, e.x2 = n > e.x2 ? n : e.x2, e.y1 = a < e.y1 ? a : e.y1, e.y2 = i > e.y2 ? i : e.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1);
@@ -5531,9 +5532,9 @@ var Pt = function(e) {
5531
5532
  a ? n = a + "-" : n = "";
5532
5533
  var i = r._private, s = i.rstyle, o = r.pstyle(n + "label").strValue;
5533
5534
  if (o) {
5534
- var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), f = da(s, "labelWidth", a), c = da(s, "labelHeight", a), v = da(s, "labelX", a), h = da(s, "labelY", a), d = r.pstyle(n + "text-margin-x").pfValue, p = r.pstyle(n + "text-margin-y").pfValue, g = r.isEdge(), y = r.pstyle(n + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, m = r.pstyle("text-border-width").pfValue, E = m / 2, T = r.pstyle("text-background-padding").pfValue, S = 2, w = c, x = f, C = x / 2, D = w / 2, A, L, R, I;
5535
+ var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), f = da(s, "labelWidth", a), c = da(s, "labelHeight", a), v = da(s, "labelX", a), h = da(s, "labelY", a), d = r.pstyle(n + "text-margin-x").pfValue, p = r.pstyle(n + "text-margin-y").pfValue, g = r.isEdge(), y = r.pstyle(n + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, m = r.pstyle("text-border-width").pfValue, E = m / 2, T = r.pstyle("text-background-padding").pfValue, S = 2, w = c, x = f, C = x / 2, D = w / 2, A, L, R, P;
5535
5536
  if (g)
5536
- A = v - C, L = v + C, R = h - D, I = h + D;
5537
+ A = v - C, L = v + C, R = h - D, P = h + D;
5537
5538
  else {
5538
5539
  switch (u.value) {
5539
5540
  case "left":
@@ -5548,23 +5549,23 @@ var Pt = function(e) {
5548
5549
  }
5549
5550
  switch (l.value) {
5550
5551
  case "top":
5551
- R = h - w, I = h;
5552
+ R = h - w, P = h;
5552
5553
  break;
5553
5554
  case "center":
5554
- R = h - D, I = h + D;
5555
+ R = h - D, P = h + D;
5555
5556
  break;
5556
5557
  case "bottom":
5557
- R = h, I = h + w;
5558
+ R = h, P = h + w;
5558
5559
  break;
5559
5560
  }
5560
5561
  }
5561
5562
  var M = d - Math.max(b, E) - T - S, N = d + Math.max(b, E) + T + S, O = p - Math.max(b, E) - T - S, k = p + Math.max(b, E) + T + S;
5562
- A += M, L += N, R += O, I += k;
5563
+ A += M, L += N, R += O, P += k;
5563
5564
  var B = a || "main", _ = i.labelBounds, F = _[B] = _[B] || {};
5564
- F.x1 = A, F.y1 = R, F.x2 = L, F.y2 = I, F.w = L - A, F.h = I - R, F.leftPad = M, F.rightPad = N, F.topPad = O, F.botPad = k;
5565
+ F.x1 = A, F.y1 = R, F.x2 = L, F.y2 = P, F.w = L - A, F.h = P - R, F.leftPad = M, F.rightPad = N, F.topPad = O, F.botPad = k;
5565
5566
  var G = g && y.strValue === "autorotate", H = y.pfValue != null && y.pfValue !== 0;
5566
5567
  if (G || H) {
5567
- var Y = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, X = Math.cos(Y), W = Math.sin(Y), ee = (A + L) / 2, ae = (R + I) / 2;
5568
+ var Y = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, X = Math.cos(Y), W = Math.sin(Y), ee = (A + L) / 2, ae = (R + P) / 2;
5568
5569
  if (!g) {
5569
5570
  switch (u.value) {
5570
5571
  case "left":
@@ -5576,7 +5577,7 @@ var Pt = function(e) {
5576
5577
  }
5577
5578
  switch (l.value) {
5578
5579
  case "top":
5579
- ae = I;
5580
+ ae = P;
5580
5581
  break;
5581
5582
  case "bottom":
5582
5583
  ae = R;
@@ -5588,11 +5589,11 @@ var Pt = function(e) {
5588
5589
  x: Te * X - we * W + ee,
5589
5590
  y: Te * W + we * X + ae
5590
5591
  };
5591
- }, z = J(A, R), V = J(A, I), q = J(L, R), Z = J(L, I);
5592
- A = Math.min(z.x, V.x, q.x, Z.x), L = Math.max(z.x, V.x, q.x, Z.x), R = Math.min(z.y, V.y, q.y, Z.y), I = Math.max(z.y, V.y, q.y, Z.y);
5592
+ }, z = J(A, R), V = J(A, P), q = J(L, R), Z = J(L, P);
5593
+ A = Math.min(z.x, V.x, q.x, Z.x), L = Math.max(z.x, V.x, q.x, Z.x), R = Math.min(z.y, V.y, q.y, Z.y), P = Math.max(z.y, V.y, q.y, Z.y);
5593
5594
  }
5594
5595
  var re = B + "Rot", ve = _[re] = _[re] || {};
5595
- ve.x1 = A, ve.y1 = R, ve.x2 = L, ve.y2 = I, ve.w = L - A, ve.h = I - R, Nt(e, A, R, L, I), Nt(i.labelBounds.all, A, R, L, I);
5596
+ ve.x1 = A, ve.y1 = R, ve.x2 = L, ve.y2 = P, ve.w = L - A, ve.h = P - R, Nt(e, A, R, L, P), Nt(i.labelBounds.all, A, R, L, P);
5596
5597
  }
5597
5598
  return e;
5598
5599
  }
@@ -5616,8 +5617,8 @@ var Pt = function(e) {
5616
5617
  ic(e, r, a, n, i);
5617
5618
  }
5618
5619
  }, yp = function(e, r) {
5619
- var a = e._private.cy, n = a.styleEnabled(), i = a.headless(), s = Et(), o = e._private, u = e.isNode(), l = e.isEdge(), f, c, v, h, d, p, g = o.rstyle, y = u && n ? e.pstyle("bounds-expansion").pfValue : [0], b = function(Ie) {
5620
- return Ie.pstyle("display").value !== "none";
5620
+ var a = e._private.cy, n = a.styleEnabled(), i = a.headless(), s = Et(), o = e._private, u = e.isNode(), l = e.isEdge(), f, c, v, h, d, p, g = o.rstyle, y = u && n ? e.pstyle("bounds-expansion").pfValue : [0], b = function(Pe) {
5621
+ return Pe.pstyle("display").value !== "none";
5621
5622
  }, m = !n || b(e) && (!l || b(e.source()) && b(e.target()));
5622
5623
  if (m) {
5623
5624
  var E = 0, T = 0;
@@ -5628,7 +5629,7 @@ var Pt = function(e) {
5628
5629
  if (n && (C = e.pstyle("width").pfValue, D = C / 2), u && r.includeNodes) {
5629
5630
  var A = e.position();
5630
5631
  d = A.x, p = A.y;
5631
- var L = e.outerWidth(), R = L / 2, I = e.outerHeight(), M = I / 2;
5632
+ var L = e.outerWidth(), R = L / 2, P = e.outerHeight(), M = P / 2;
5632
5633
  f = d - R, c = d + R, v = p - M, h = p + M, Nt(s, f, v, c, h), n && ml(s, e), n && r.includeOutlines && !i && ml(s, e), n && pp(s, e);
5633
5634
  } else if (l && r.includeEdges)
5634
5635
  if (n && !i) {
@@ -5692,7 +5693,7 @@ var Pt = function(e) {
5692
5693
  var re = o.labelBounds = o.labelBounds || {};
5693
5694
  re.all != null ? Jh(re.all) : re.all = Et(), n && r.includeLabels && (r.includeMainLabels && Ds(s, e, null), l && (r.includeSourceLabels && Ds(s, e, "source"), r.includeTargetLabels && Ds(s, e, "target")));
5694
5695
  }
5695
- return s.x1 = Pt(s.x1), s.y1 = Pt(s.y1), s.x2 = Pt(s.x2), s.y2 = Pt(s.y2), s.w = Pt(s.x2 - s.x1), s.h = Pt(s.y2 - s.y1), s.w > 0 && s.h > 0 && m && (vn(s, y), cn(s, 1)), s;
5696
+ return s.x1 = It(s.x1), s.y1 = It(s.y1), s.x2 = It(s.x2), s.y2 = It(s.y2), s.w = It(s.x2 - s.x1), s.h = It(s.y2 - s.y1), s.w > 0 && s.h > 0 && m && (vn(s, y), cn(s, 1)), s;
5696
5697
  }, sc = function(e) {
5697
5698
  var r = 0, a = function(s) {
5698
5699
  return (s ? 1 : 0) << r++;
@@ -5746,7 +5747,7 @@ br.boundingBox = function(t) {
5746
5747
  a(l) && l.dirtyBoundingBoxCache(), nr(e, bl(l, n));
5747
5748
  }
5748
5749
  }
5749
- return e.x1 = Pt(e.x1), e.y1 = Pt(e.y1), e.x2 = Pt(e.x2), e.y2 = Pt(e.y2), e.w = Pt(e.x2 - e.x1), e.h = Pt(e.y2 - e.y1), e;
5750
+ return e.x1 = It(e.x1), e.y1 = It(e.y1), e.x2 = It(e.x2), e.y2 = It(e.y2), e.w = It(e.x2 - e.x1), e.h = It(e.y2 - e.y1), e;
5750
5751
  };
5751
5752
  br.dirtyBoundingBoxCache = function() {
5752
5753
  for (var t = 0; t < this.length; t++) {
@@ -5892,7 +5893,7 @@ var bp = qa, wp = function(e, r) {
5892
5893
  } : t[a] = function() {
5893
5894
  return Ep(this, r.get);
5894
5895
  }, t;
5895
- }, {}), Ip = be({}, gp, mp, bp, Rp);
5896
+ }, {}), Pp = be({}, gp, mp, bp, Rp);
5896
5897
  /*!
5897
5898
  Event object based on jQuery events, MIT license
5898
5899
 
@@ -5940,7 +5941,7 @@ lc.prototype = {
5940
5941
  isPropagationStopped: ga,
5941
5942
  isImmediatePropagationStopped: ga
5942
5943
  };
5943
- var fc = /^([^.]+)(\.(?:[^.]+))?$/, Pp = ".*", cc = {
5944
+ var fc = /^([^.]+)(\.(?:[^.]+))?$/, Ip = ".*", cc = {
5944
5945
  qualifierCompare: function(e, r) {
5945
5946
  return e === r;
5946
5947
  },
@@ -6059,7 +6060,7 @@ gr.emit = gr.trigger = function(t, e, r) {
6059
6060
  }], n = a.length);
6060
6061
  for (var o = function() {
6061
6062
  var f = a[u];
6062
- if (f.type === s.type && (!f.namespace || f.namespace === s.namespace || f.namespace === Pp) && i.eventMatches(i.context, f, s)) {
6063
+ if (f.type === s.type && (!f.namespace || f.namespace === s.namespace || f.namespace === Ip) && i.eventMatches(i.context, f, s)) {
6063
6064
  var c = [s];
6064
6065
  e != null && Th(c, e), i.beforeEmit(i.context, f, s), f.conf && f.conf.one && (i.listeners = i.listeners.filter(function(d) {
6065
6066
  return d !== f;
@@ -6612,12 +6613,12 @@ function pc(t, e, r) {
6612
6613
  return (i = n[t]) != null || (i = n[t] = e(r)), i;
6613
6614
  }
6614
6615
  function Qn(t, e) {
6615
- return t = Ir(t), function(a) {
6616
+ return t = Pr(t), function(a) {
6616
6617
  return pc(t, e, a);
6617
6618
  };
6618
6619
  }
6619
6620
  function Jn(t, e) {
6620
- t = Ir(t);
6621
+ t = Pr(t);
6621
6622
  var r = function(n) {
6622
6623
  return e.call(n);
6623
6624
  };
@@ -7075,12 +7076,12 @@ function Rl(t) {
7075
7076
  };
7076
7077
  }
7077
7078
  be(pt, {
7078
- edgesWith: Mt(Il(), "edgesWith"),
7079
- edgesTo: Mt(Il({
7079
+ edgesWith: Mt(Pl(), "edgesWith"),
7080
+ edgesTo: Mt(Pl({
7080
7081
  thisIsSrc: !0
7081
7082
  }), "edgesTo")
7082
7083
  });
7083
- function Il(t) {
7084
+ function Pl(t) {
7084
7085
  return function(r) {
7085
7086
  var a = [], n = this._private.cy, i = t || {};
7086
7087
  ge(r) && (r = n.$(r));
@@ -7111,12 +7112,12 @@ be(pt, {
7111
7112
  }
7112
7113
  return this.spawn(e, !0).filter(t);
7113
7114
  }, "connectedNodes"),
7114
- parallelEdges: Mt(Pl(), "parallelEdges"),
7115
- codirectedEdges: Mt(Pl({
7115
+ parallelEdges: Mt(Il(), "parallelEdges"),
7116
+ codirectedEdges: Mt(Il({
7116
7117
  codirected: !0
7117
7118
  }), "codirectedEdges")
7118
7119
  });
7119
- function Pl(t) {
7120
+ function Il(t) {
7120
7121
  var e = {
7121
7122
  codirected: !1
7122
7123
  };
@@ -7181,7 +7182,7 @@ var vt = function(e, r) {
7181
7182
  c.data == null && (c.data = {});
7182
7183
  var v = c.data;
7183
7184
  if (v.id == null)
7184
- v.id = If();
7185
+ v.id = Pf();
7185
7186
  else if (e.hasElementWithId(v.id) || u.has(v.id))
7186
7187
  continue;
7187
7188
  var h = new Un(e, c, !1);
@@ -7339,7 +7340,7 @@ qe.restore = function() {
7339
7340
  var h = o[c], d = h._private, p = d.data;
7340
7341
  if (h.clearTraversalCache(), !(!e && !d.removed)) {
7341
7342
  if (p.id === void 0)
7342
- p.id = If();
7343
+ p.id = Pf();
7343
7344
  else if (ne(p.id))
7344
7345
  p.id = "" + p.id;
7345
7346
  else if (fr(p.id) || !ge(p.id)) {
@@ -7375,9 +7376,9 @@ qe.restore = function() {
7375
7376
  for (var A = 0; A < i.length; A++) {
7376
7377
  var L = i[A], R = L._private.data;
7377
7378
  ne(R.parent) && (R.parent = "" + R.parent);
7378
- var I = R.parent, M = I != null;
7379
+ var P = R.parent, M = P != null;
7379
7380
  if (M || L._private.parent) {
7380
- var N = L._private.parent ? a.collection().merge(L._private.parent) : a.getElementById(I);
7381
+ var N = L._private.parent ? a.collection().merge(L._private.parent) : a.getElementById(P);
7381
7382
  if (N.empty())
7382
7383
  R.parent = void 0;
7383
7384
  else if (N[0].removed())
@@ -7414,35 +7415,35 @@ qe.inside = function() {
7414
7415
  };
7415
7416
  qe.remove = function() {
7416
7417
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = this, a = [], n = {}, i = r._private.cy;
7417
- function s(I) {
7418
- for (var M = I._private.edges, N = 0; N < M.length; N++)
7418
+ function s(P) {
7419
+ for (var M = P._private.edges, N = 0; N < M.length; N++)
7419
7420
  u(M[N]);
7420
7421
  }
7421
- function o(I) {
7422
- for (var M = I._private.children, N = 0; N < M.length; N++)
7422
+ function o(P) {
7423
+ for (var M = P._private.children, N = 0; N < M.length; N++)
7423
7424
  u(M[N]);
7424
7425
  }
7425
- function u(I) {
7426
- var M = n[I.id()];
7427
- e && I.removed() || M || (n[I.id()] = !0, I.isNode() ? (a.push(I), s(I), o(I)) : a.unshift(I));
7426
+ function u(P) {
7427
+ var M = n[P.id()];
7428
+ e && P.removed() || M || (n[P.id()] = !0, P.isNode() ? (a.push(P), s(P), o(P)) : a.unshift(P));
7428
7429
  }
7429
7430
  for (var l = 0, f = r.length; l < f; l++) {
7430
7431
  var c = r[l];
7431
7432
  u(c);
7432
7433
  }
7433
- function v(I, M) {
7434
- var N = I._private.edges;
7435
- cr(N, M), I.clearTraversalCache();
7434
+ function v(P, M) {
7435
+ var N = P._private.edges;
7436
+ cr(N, M), P.clearTraversalCache();
7436
7437
  }
7437
- function h(I) {
7438
- I.clearTraversalCache();
7438
+ function h(P) {
7439
+ P.clearTraversalCache();
7439
7440
  }
7440
7441
  var d = [];
7441
7442
  d.ids = {};
7442
- function p(I, M) {
7443
- M = M[0], I = I[0];
7444
- var N = I._private.children, O = I.id();
7445
- cr(N, M), M._private.parent = null, d.ids[O] || (d.ids[O] = !0, d.push(I));
7443
+ function p(P, M) {
7444
+ M = M[0], P = P[0];
7445
+ var N = P._private.children, O = P.id();
7446
+ cr(N, M), M._private.parent = null, d.ids[O] || (d.ids[O] = !0, d.push(P));
7446
7447
  }
7447
7448
  r.dirtyCompoundBoundsCache(), e && i.removeFromPool(a);
7448
7449
  for (var g = 0; g < a.length; g++) {
@@ -7508,7 +7509,7 @@ qe.move = function(t) {
7508
7509
  }
7509
7510
  return this;
7510
7511
  };
7511
- [Uf, Jg, hn, ur, aa, dp, Kn, Ip, hc, dc, Np, On, dn, ct, lr, pt].forEach(function(t) {
7512
+ [Uf, Jg, hn, ur, aa, dp, Kn, Pp, hc, dc, Np, On, dn, ct, lr, pt].forEach(function(t) {
7512
7513
  be(qe, t);
7513
7514
  });
7514
7515
  var Up = {
@@ -7586,8 +7587,8 @@ function qp(t, e, r, a) {
7586
7587
  var R = y(A, t, r);
7587
7588
  if (R === 0)
7588
7589
  return A;
7589
- var I = g(A, t, r) - D;
7590
- A -= I / R;
7590
+ var P = g(A, t, r) - D;
7591
+ A -= P / R;
7591
7592
  }
7592
7593
  return A;
7593
7594
  }
@@ -7596,17 +7597,17 @@ function qp(t, e, r, a) {
7596
7597
  v[D] = g(D * l, t, r);
7597
7598
  }
7598
7599
  function E(D, A, L) {
7599
- var R, I, M = 0;
7600
+ var R, P, M = 0;
7600
7601
  do
7601
- I = A + (L - A) / 2, R = g(I, t, r) - D, R > 0 ? L = I : A = I;
7602
+ P = A + (L - A) / 2, R = g(P, t, r) - D, R > 0 ? L = P : A = P;
7602
7603
  while (Math.abs(R) > s && ++M < o);
7603
- return I;
7604
+ return P;
7604
7605
  }
7605
7606
  function T(D) {
7606
7607
  for (var A = 0, L = 1, R = u - 1; L !== R && v[L] <= D; ++L)
7607
7608
  A += l;
7608
7609
  --L;
7609
- var I = (D - v[L]) / (v[L + 1] - v[L]), M = A + I * l, N = y(M, t, r);
7610
+ var P = (D - v[L]) / (v[L + 1] - v[L]), M = A + P * l, N = y(M, t, r);
7610
7611
  return N >= i ? b(D, M) : N === 0 ? M : E(D, A, A + l);
7611
7612
  }
7612
7613
  var S = !1;
@@ -7778,8 +7779,8 @@ function Hp(t, e, r, a) {
7778
7779
  var A = s.style;
7779
7780
  if (A && A.length > 0 && n) {
7780
7781
  for (var L = 0; L < A.length; L++) {
7781
- var R = A[L], I = R.name, M = R, N = s.startStyle[I], O = f.properties[N.name], k = Vr(N, M, g, p, O);
7782
- f.overrideBypass(t, I, k);
7782
+ var R = A[L], P = R.name, M = R, N = s.startStyle[P], O = f.properties[N.name], k = Vr(N, M, g, p, O);
7783
+ f.overrideBypass(t, P, k);
7783
7784
  }
7784
7785
  t.emit("style");
7785
7786
  }
@@ -8219,11 +8220,11 @@ lt.updateStyleHints = function(t) {
8219
8220
  d(m.strValue, S);
8220
8221
  }
8221
8222
  }
8222
- for (var I = [Ar, $r], M = 0; M < n.length; M++) {
8223
+ for (var P = [Ar, $r], M = 0; M < n.length; M++) {
8223
8224
  var N = n[M], O = e.styleKeys[N];
8224
- I[0] = Sa(O[0], I[0]), I[1] = Aa(O[1], I[1]);
8225
+ P[0] = Sa(O[0], P[0]), P[1] = Aa(O[1], P[1]);
8225
8226
  }
8226
- e.styleKey = hh(I[0], I[1]);
8227
+ e.styleKey = hh(P[0], P[1]);
8227
8228
  var k = e.styleKeys;
8228
8229
  e.labelDimsKey = rr(k.labelDimensions);
8229
8230
  var B = i(t, ["label"], k.labelDimensions);
@@ -8279,14 +8280,14 @@ lt.applyParsedProperty = function(t, e) {
8279
8280
  } else
8280
8281
  return Ge("Do not use continuous mappers without specifying numeric data (i.e. `" + a.field + ": " + y + "` for `" + t.id() + "` is non-numeric)"), !1;
8281
8282
  if (E < 0 ? E = 0 : E > 1 && (E = 1), o.color) {
8282
- var S = a.valueMin[0], w = a.valueMax[0], x = a.valueMin[1], C = a.valueMax[1], D = a.valueMin[2], A = a.valueMax[2], L = a.valueMin[3] == null ? 1 : a.valueMin[3], R = a.valueMax[3] == null ? 1 : a.valueMax[3], I = [Math.round(S + (w - S) * E), Math.round(x + (C - x) * E), Math.round(D + (A - D) * E), Math.round(L + (R - L) * E)];
8283
+ var S = a.valueMin[0], w = a.valueMax[0], x = a.valueMin[1], C = a.valueMax[1], D = a.valueMin[2], A = a.valueMax[2], L = a.valueMin[3] == null ? 1 : a.valueMin[3], R = a.valueMax[3] == null ? 1 : a.valueMax[3], P = [Math.round(S + (w - S) * E), Math.round(x + (C - x) * E), Math.round(D + (A - D) * E), Math.round(L + (R - L) * E)];
8283
8284
  i = {
8284
8285
  // colours are simple, so just create the flat property instead of expensive string parsing
8285
8286
  bypass: a.bypass,
8286
8287
  // we're a bypass if the mapping property is a bypass
8287
8288
  name: a.name,
8288
- value: I,
8289
- strValue: "rgb(" + I[0] + ", " + I[1] + ", " + I[2] + ")"
8289
+ value: P,
8290
+ strValue: "rgb(" + P[0] + ", " + P[1] + ", " + P[2] + ")"
8290
8291
  };
8291
8292
  } else if (o.number) {
8292
8293
  var M = a.valueMin + (a.valueMax - a.valueMin) * E;
@@ -9650,15 +9651,15 @@ var Qe = {};
9650
9651
  name: "pie-start-angle",
9651
9652
  type: l.angle
9652
9653
  });
9653
- for (var I = 1; I <= Qe.pieBackgroundN; I++)
9654
+ for (var P = 1; P <= Qe.pieBackgroundN; P++)
9654
9655
  R.push({
9655
- name: "pie-" + I + "-background-color",
9656
+ name: "pie-" + P + "-background-color",
9656
9657
  type: l.color
9657
9658
  }), R.push({
9658
- name: "pie-" + I + "-background-size",
9659
+ name: "pie-" + P + "-background-size",
9659
9660
  type: l.percent
9660
9661
  }), R.push({
9661
- name: "pie-" + I + "-background-opacity",
9662
+ name: "pie-" + P + "-background-opacity",
9662
9663
  type: l.zeroOneNumber
9663
9664
  });
9664
9665
  var M = [];
@@ -10189,9 +10190,9 @@ ei.parseImpl = function(t, e, r, a) {
10189
10190
  var L, R = "px";
10190
10191
  if (l.units && (L = l.units), l.implicitUnits && (R = l.implicitUnits), !l.unitless)
10191
10192
  if (u) {
10192
- var I = "px|em" + (l.allowPercent ? "|\\%" : "");
10193
- L && (I = L);
10194
- var M = e.match("^(" + at + ")(" + I + ")?$");
10193
+ var P = "px|em" + (l.allowPercent ? "|\\%" : "");
10194
+ L && (P = L);
10195
+ var M = e.match("^(" + at + ")(" + P + ")?$");
10195
10196
  M && (e = M[1], L = M[2] || R);
10196
10197
  } else (!L || l.implicitUnits) && (L = R);
10197
10198
  if (e = parseFloat(e), isNaN(e) && l.enums === void 0)
@@ -10871,8 +10872,8 @@ be(kn, {
10871
10872
  }
10872
10873
  r.add(S);
10873
10874
  for (var L = 0; L < w.length; L++) {
10874
- var R = w[L], I = R.ele, M = R.json;
10875
- I.json(M);
10875
+ var R = w[L], P = R.ele, M = R.json;
10876
+ P.json(M);
10876
10877
  }
10877
10878
  };
10878
10879
  if (Ve(e.elements))
@@ -11016,8 +11017,8 @@ mc.prototype.run = function() {
11016
11017
  roots: l,
11017
11018
  directed: t.directed,
11018
11019
  visit: function(ie, he, de, xe, pe) {
11019
- var De = ie[0], Pe = De.id();
11020
- De.isChildless() && m(De, pe), b[Pe] = !0;
11020
+ var De = ie[0], Ie = De.id();
11021
+ De.isChildless() && m(De, pe), b[Ie] = !0;
11021
11022
  }
11022
11023
  });
11023
11024
  for (var T = [], S = 0; S < a.length; S++) {
@@ -11039,8 +11040,8 @@ mc.prototype.run = function() {
11039
11040
  }, C = function(ie, he) {
11040
11041
  for (var de = Ur(ie), xe = ie.incomers().filter(function(Ee) {
11041
11042
  return Ee.isNode() && r.has(Ee);
11042
- }), pe = -1, De = ie.id(), Pe = 0; Pe < xe.length; Pe++) {
11043
- var Ne = xe[Pe], Be = Ur(Ne);
11043
+ }), pe = -1, De = ie.id(), Ie = 0; Ie < xe.length; Ie++) {
11044
+ var Ne = xe[Ie], Be = Ur(Ne);
11044
11045
  pe = Math.max(pe, Be.depth);
11045
11046
  }
11046
11047
  if (de.depth <= pe) {
@@ -11060,13 +11061,13 @@ mc.prototype.run = function() {
11060
11061
  for (a.forEach(function(ye) {
11061
11062
  return D.push(ye);
11062
11063
  }); D.length > 0; ) {
11063
- var I = R(), M = C(I, A);
11064
+ var P = R(), M = C(P, A);
11064
11065
  if (M)
11065
- I.outgoers().filter(function(ye) {
11066
+ P.outgoers().filter(function(ye) {
11066
11067
  return ye.isNode() && r.has(ye);
11067
11068
  }).forEach(L);
11068
11069
  else if (M === null) {
11069
- Ge("Detected double maximal shift for node `" + I.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
11070
+ Ge("Detected double maximal shift for node `" + P.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
11070
11071
  break;
11071
11072
  }
11072
11073
  }
@@ -11081,9 +11082,9 @@ mc.prototype.run = function() {
11081
11082
  if (G[ie.id()])
11082
11083
  return G[ie.id()];
11083
11084
  for (var he = Ur(ie).depth, de = ie.neighborhood(), xe = 0, pe = 0, De = 0; De < de.length; De++) {
11084
- var Pe = de[De];
11085
- if (!(Pe.isEdge() || Pe.isParent() || !a.has(Pe))) {
11086
- var Ne = Ur(Pe);
11085
+ var Ie = de[De];
11086
+ if (!(Ie.isEdge() || Ie.isParent() || !a.has(Ie))) {
11087
+ var Ne = Ur(Ie);
11087
11088
  if (Ne != null) {
11088
11089
  var Be = Ne.index, Fe = Ne.depth;
11089
11090
  if (!(Be == null || Fe == null)) {
@@ -11134,15 +11135,15 @@ mc.prototype.run = function() {
11134
11135
  N
11135
11136
  ), ve = y.reduce(function(ye, ie) {
11136
11137
  return Math.max(ye, ie.length);
11137
- }, 0), Ie = function(ie) {
11138
+ }, 0), Pe = function(ie) {
11138
11139
  var he = Ur(ie), de = he.depth, xe = he.index;
11139
11140
  if (t.circle) {
11140
11141
  var pe = Math.min(u.w / 2 / X, u.h / 2 / X);
11141
11142
  pe = Math.max(pe, N);
11142
- var De = pe * de + pe - (X > 0 && y[0].length <= 3 ? pe / 2 : 0), Pe = 2 * Math.PI / y[de].length * xe;
11143
+ var De = pe * de + pe - (X > 0 && y[0].length <= 3 ? pe / 2 : 0), Ie = 2 * Math.PI / y[de].length * xe;
11143
11144
  return de === 0 && y[0].length === 1 && (De = 1), {
11144
- x: q.x + De * Math.cos(Pe),
11145
- y: q.y + De * Math.sin(Pe)
11145
+ x: q.x + De * Math.cos(Ie),
11146
+ y: q.y + De * Math.sin(Ie)
11146
11147
  };
11147
11148
  } else {
11148
11149
  var Ne = y[de].length, Be = Math.max(
@@ -11166,7 +11167,7 @@ mc.prototype.run = function() {
11166
11167
  };
11167
11168
  Object.keys(Te).indexOf(t.direction) === -1 && He("Invalid direction '".concat(t.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Te).join(", ")));
11168
11169
  var we = function(ie) {
11169
- return yh(Ie(ie), u, Te[t.direction]);
11170
+ return yh(Pe(ie), u, Te[t.direction]);
11170
11171
  };
11171
11172
  return r.nodes().layoutPositions(this, t, we), this;
11172
11173
  };
@@ -11337,9 +11338,9 @@ wc.prototype.run = function() {
11337
11338
  S = Math.min(S, C);
11338
11339
  }
11339
11340
  for (var D = 0, A = 0; A < y.length; A++) {
11340
- var L = y[A], R = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / L.length : e.sweep, I = L.dTheta = R / Math.max(1, L.length - 1);
11341
+ var L = y[A], R = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / L.length : e.sweep, P = L.dTheta = R / Math.max(1, L.length - 1);
11341
11342
  if (L.length > 1 && e.avoidOverlap) {
11342
- var M = Math.cos(I) - Math.cos(0), N = Math.sin(I) - Math.sin(0), O = Math.sqrt(S * S / (M * M + N * N));
11343
+ var M = Math.cos(P) - Math.cos(0), N = Math.sin(P) - Math.sin(0), O = Math.sqrt(S * S / (M * M + N * N));
11343
11344
  D = Math.max(O, D);
11344
11345
  }
11345
11346
  L.r = D, D += S;
@@ -11542,7 +11543,7 @@ var iy = function(e, r, a) {
11542
11543
  for (var f = 0; f < o.edgeSize; f++) {
11543
11544
  var A = n[f], L = {};
11544
11545
  L.id = A.data("id"), L.sourceId = A.data("source"), L.targetId = A.data("target");
11545
- var R = Xe(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, I = Xe(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11546
+ var R = Xe(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, P = Xe(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11546
11547
  if (O != k) {
11547
11548
  for (var B = sy(L.sourceId, L.targetId, o), _ = o.graphSet[B], F = 0, g = o.layoutNodes[M]; _.indexOf(g.id) === -1; )
11548
11549
  g = o.layoutNodes[o.idToIndex[g.parentId]], F++;
@@ -11550,7 +11551,7 @@ var iy = function(e, r, a) {
11550
11551
  g = o.layoutNodes[o.idToIndex[g.parentId]], F++;
11551
11552
  R *= F * a.nestingFactor;
11552
11553
  }
11553
- L.idealLength = R, L.elasticity = I, o.layoutEdges.push(L);
11554
+ L.idealLength = R, L.elasticity = P, o.layoutEdges.push(L);
11554
11555
  }
11555
11556
  return o;
11556
11557
  }, sy = function(e, r, a) {
@@ -11860,8 +11861,8 @@ Cc.prototype.run = function() {
11860
11861
  return !!A["c-" + Y + "-" + X];
11861
11862
  }, R = function(Y, X) {
11862
11863
  A["c-" + Y + "-" + X] = !0;
11863
- }, I = 0, M = 0, N = function() {
11864
- M++, M >= l && (M = 0, I++);
11864
+ }, P = 0, M = 0, N = function() {
11865
+ M++, M >= l && (M = 0, P++);
11865
11866
  }, O = {}, k = 0; k < n.length; k++) {
11866
11867
  var B = n[k], _ = e.position(B);
11867
11868
  if (_ && (_.row !== void 0 || _.col !== void 0)) {
@@ -11886,9 +11887,9 @@ Cc.prototype.run = function() {
11886
11887
  if (ae)
11887
11888
  W = ae.col * b + b / 2 + i.x1, ee = ae.row * m + m / 2 + i.y1;
11888
11889
  else {
11889
- for (; L(I, M); )
11890
+ for (; L(P, M); )
11890
11891
  N();
11891
- W = M * b + b / 2 + i.x1, ee = I * m + m / 2 + i.y1, R(I, M), N();
11892
+ W = M * b + b / 2 + i.x1, ee = P * m + m / 2 + i.y1, R(P, M), N();
11892
11893
  }
11893
11894
  return {
11894
11895
  x: W,
@@ -12264,22 +12265,22 @@ Br.findNearestElements = function(t, e, r, a) {
12264
12265
  o.push(w), d = w, h = x ?? h;
12265
12266
  }
12266
12267
  function y(w) {
12267
- var x = w.outerWidth() + 2 * c, C = w.outerHeight() + 2 * c, D = x / 2, A = C / 2, L = w.position(), R = w.pstyle("corner-radius").value === "auto" ? "auto" : w.pstyle("corner-radius").pfValue, I = w._private.rscratch;
12268
+ var x = w.outerWidth() + 2 * c, C = w.outerHeight() + 2 * c, D = x / 2, A = C / 2, L = w.position(), R = w.pstyle("corner-radius").value === "auto" ? "auto" : w.pstyle("corner-radius").pfValue, P = w._private.rscratch;
12268
12269
  if (L.x - D <= t && t <= L.x + D && L.y - A <= e && e <= L.y + A) {
12269
12270
  var M = i.nodeShapes[n.getNodeShape(w)];
12270
- if (M.checkPoint(t, e, 0, x, C, L.x, L.y, R, I))
12271
+ if (M.checkPoint(t, e, 0, x, C, L.x, L.y, R, P))
12271
12272
  return g(w, 0), !0;
12272
12273
  }
12273
12274
  }
12274
12275
  function b(w) {
12275
- var x = w._private, C = x.rscratch, D = w.pstyle("width").pfValue, A = w.pstyle("arrow-scale").value, L = D / 2 + f, R = L * L, I = L * 2, k = x.source, B = x.target, M;
12276
+ var x = w._private, C = x.rscratch, D = w.pstyle("width").pfValue, A = w.pstyle("arrow-scale").value, L = D / 2 + f, R = L * L, P = L * 2, k = x.source, B = x.target, M;
12276
12277
  if (C.edgeType === "segments" || C.edgeType === "straight" || C.edgeType === "haystack") {
12277
12278
  for (var N = C.allpts, O = 0; O + 3 < N.length; O += 2)
12278
- if (ad(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], I) && R > (M = ud(t, e, N[O], N[O + 1], N[O + 2], N[O + 3])))
12279
+ if (ad(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], P) && R > (M = ud(t, e, N[O], N[O + 1], N[O + 2], N[O + 3])))
12279
12280
  return g(w, M), !0;
12280
12281
  } else if (C.edgeType === "bezier" || C.edgeType === "multibezier" || C.edgeType === "self" || C.edgeType === "compound") {
12281
12282
  for (var N = C.allpts, O = 0; O + 5 < C.allpts.length; O += 4)
12282
- if (nd(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5], I) && R > (M = od(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5])))
12283
+ if (nd(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5], P) && R > (M = od(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5])))
12283
12284
  return g(w, M), !0;
12284
12285
  }
12285
12286
  for (var k = k || x.source, B = B || x.target, _ = n.getArrowWidth(D, A), F = [{
@@ -12321,8 +12322,8 @@ Br.findNearestElements = function(t, e, r, a) {
12321
12322
  function E(w, x) {
12322
12323
  var C = w._private, D = v, A;
12323
12324
  x ? A = x + "-" : A = "", w.boundingBox();
12324
- var L = C.labelBounds[x || "main"], R = w.pstyle(A + "label").value, I = w.pstyle("text-events").strValue === "yes";
12325
- if (!(!I || !R)) {
12325
+ var L = C.labelBounds[x || "main"], R = w.pstyle(A + "label").value, P = w.pstyle("text-events").strValue === "yes";
12326
+ if (!(!P || !R)) {
12326
12327
  var M = m(C.rscratch, "labelX", x), N = m(C.rscratch, "labelY", x), O = m(C.rscratch, "labelAngle", x), k = w.pstyle(A + "text-margin-x").pfValue, B = w.pstyle(A + "text-margin-y").pfValue, _ = L.x1 - D - k, F = L.x2 + D - k, G = L.y1 - D - B, H = L.y2 + D - B;
12327
12328
  if (O) {
12328
12329
  var Y = Math.cos(O), X = Math.sin(O), W = function(Z, re) {
@@ -12378,27 +12379,27 @@ Br.getAllInBox = function(t, e, r, a) {
12378
12379
  return Dt(Z, re, ve);
12379
12380
  }
12380
12381
  function g(Z, re) {
12381
- var ve = Z._private, Ie = s, Te = "";
12382
+ var ve = Z._private, Pe = s, Te = "";
12382
12383
  Z.boundingBox();
12383
12384
  var we = ve.labelBounds.main;
12384
12385
  if (!we)
12385
12386
  return null;
12386
- var ye = p(ve.rscratch, "labelX", re), ie = p(ve.rscratch, "labelY", re), he = p(ve.rscratch, "labelAngle", re), de = Z.pstyle(Te + "text-margin-x").pfValue, xe = Z.pstyle(Te + "text-margin-y").pfValue, pe = we.x1 - Ie - de, De = we.x2 + Ie - de, Pe = we.y1 - Ie - xe, Ne = we.y2 + Ie - xe;
12387
+ var ye = p(ve.rscratch, "labelX", re), ie = p(ve.rscratch, "labelY", re), he = p(ve.rscratch, "labelAngle", re), de = Z.pstyle(Te + "text-margin-x").pfValue, xe = Z.pstyle(Te + "text-margin-y").pfValue, pe = we.x1 - Pe - de, De = we.x2 + Pe - de, Ie = we.y1 - Pe - xe, Ne = we.y2 + Pe - xe;
12387
12388
  if (he) {
12388
- var Be = Math.cos(he), Fe = Math.sin(he), Ee = function(Q, P) {
12389
- return Q = Q - ye, P = P - ie, {
12390
- x: Q * Be - P * Fe + ye,
12391
- y: Q * Fe + P * Be + ie
12389
+ var Be = Math.cos(he), Fe = Math.sin(he), Ee = function(Q, I) {
12390
+ return Q = Q - ye, I = I - ie, {
12391
+ x: Q * Be - I * Fe + ye,
12392
+ y: Q * Fe + I * Be + ie
12392
12393
  };
12393
12394
  };
12394
- return [Ee(pe, Pe), Ee(De, Pe), Ee(De, Ne), Ee(pe, Ne)];
12395
+ return [Ee(pe, Ie), Ee(De, Ie), Ee(De, Ne), Ee(pe, Ne)];
12395
12396
  } else
12396
12397
  return [{
12397
12398
  x: pe,
12398
- y: Pe
12399
+ y: Ie
12399
12400
  }, {
12400
12401
  x: De,
12401
- y: Pe
12402
+ y: Ie
12402
12403
  }, {
12403
12404
  x: De,
12404
12405
  y: Ne
@@ -12407,11 +12408,11 @@ Br.getAllInBox = function(t, e, r, a) {
12407
12408
  y: Ne
12408
12409
  }];
12409
12410
  }
12410
- function y(Z, re, ve, Ie) {
12411
+ function y(Z, re, ve, Pe) {
12411
12412
  function Te(we, ye, ie) {
12412
12413
  return (ie.y - we.y) * (ye.x - we.x) > (ye.y - we.y) * (ie.x - we.x);
12413
12414
  }
12414
- return Te(Z, ve, Ie) !== Te(re, ve, Ie) && Te(Z, re, ve) !== Te(Z, re, Ie);
12415
+ return Te(Z, ve, Pe) !== Te(re, ve, Pe) && Te(Z, re, ve) !== Te(Z, re, Pe);
12415
12416
  }
12416
12417
  for (var b = 0; b < n.length; b++) {
12417
12418
  var m = n[b];
@@ -12455,8 +12456,8 @@ Br.getAllInBox = function(t, e, r, a) {
12455
12456
  if (Di(R, h))
12456
12457
  o.push(E);
12457
12458
  else {
12458
- var I = g(E);
12459
- I && Di(I, h) && o.push(E);
12459
+ var P = g(E);
12460
+ P && Di(P, h) && o.push(E);
12460
12461
  }
12461
12462
  }
12462
12463
  } else {
@@ -12556,7 +12557,7 @@ Bn.calculateArrowAngles = function(t) {
12556
12557
  if (e.midsrcArrowAngle = Ja(u, l), i)
12557
12558
  u = v - e.segpts[e.segpts.length - 2], l = h - e.segpts[e.segpts.length - 1];
12558
12559
  else if (n || s || o || a) {
12559
- var d = e.allpts, I = d.length, p = ot(d[I - 6], d[I - 4], d[I - 2], 0.9), g = ot(d[I - 5], d[I - 3], d[I - 1], 0.9);
12560
+ var d = e.allpts, P = d.length, p = ot(d[P - 6], d[P - 4], d[P - 2], 0.9), g = ot(d[P - 5], d[P - 3], d[P - 1], 0.9);
12560
12561
  u = v - p, l = h - g;
12561
12562
  } else
12562
12563
  u = v - y, l = h - b;
@@ -12566,18 +12567,18 @@ Bn.getArrowWidth = Bn.getArrowHeight = function(t, e) {
12566
12567
  var r = this.arrowWidthCache = this.arrowWidthCache || {}, a = r[t + ", " + e];
12567
12568
  return a || (a = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = a, a);
12568
12569
  };
12569
- var $s, Ws, Vt = {}, It = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12570
+ var $s, Ws, Vt = {}, Pt = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12570
12571
  a.x = r.x - e.x, a.y = r.y - e.y, a.len = Math.sqrt(a.x * a.x + a.y * a.y), a.nx = a.x / a.len, a.ny = a.y / a.len, a.ang = Math.atan2(a.ny, a.nx);
12571
12572
  }, Cy = function(e, r) {
12572
12573
  r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang;
12573
12574
  }, Dy = function(e, r, a, n, i) {
12574
- if (e !== Ul ? ql(r, e, Vt) : Cy(It, Vt), ql(r, a, It), zl = Vt.nx * It.ny - Vt.ny * It.nx, Vl = Vt.nx * It.nx - Vt.ny * -It.ny, Wt = Math.asin(Math.max(-1, Math.min(1, zl))), Math.abs(Wt) < 1e-6) {
12575
+ if (e !== Ul ? ql(r, e, Vt) : Cy(Pt, Vt), ql(r, a, Pt), zl = Vt.nx * Pt.ny - Vt.ny * Pt.nx, Vl = Vt.nx * Pt.nx - Vt.ny * -Pt.ny, Wt = Math.asin(Math.max(-1, Math.min(1, zl))), Math.abs(Wt) < 1e-6) {
12575
12576
  $s = r.x, Ws = r.y, Sr = qr = 0;
12576
12577
  return;
12577
12578
  }
12578
- Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, It.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + It.nx * Gt, Zs = r.y + It.ny * Gt, $s = Ks - It.ny * Sr * Lr, Ws = Zs + It.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12579
+ Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, Pt.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + Pt.nx * Gt, Zs = r.y + Pt.ny * Gt, $s = Ks - Pt.ny * Sr * Lr, Ws = Zs + Pt.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12579
12580
  };
12580
- function Ic(t, e) {
12581
+ function Pc(t, e) {
12581
12582
  e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise);
12582
12583
  }
12583
12584
  function So(t, e, r, a) {
@@ -12602,7 +12603,7 @@ function So(t, e, r, a) {
12602
12603
  stopX: Ks,
12603
12604
  stopY: Zs,
12604
12605
  startAngle: Vt.ang + Math.PI / 2 * Lr,
12605
- endAngle: It.ang - Math.PI / 2 * Lr,
12606
+ endAngle: Pt.ang - Math.PI / 2 * Lr,
12606
12607
  counterClockwise: mn
12607
12608
  });
12608
12609
  }
@@ -12713,11 +12714,11 @@ mt.findBezierPoints = function(t, e, r, a, n) {
12713
12714
  mt.findTaxiPoints = function(t, e) {
12714
12715
  var r = t._private.rscratch;
12715
12716
  r.edgeType = "segments";
12716
- var a = "vertical", n = "horizontal", i = "leftward", s = "rightward", o = "downward", u = "upward", l = "auto", f = e.posPts, c = e.srcW, v = e.srcH, h = e.tgtW, d = e.tgtH, p = t.pstyle("edge-distances").value, g = p !== "node-position", y = t.pstyle("taxi-direction").value, b = y, m = t.pstyle("taxi-turn"), E = m.units === "%", T = m.pfValue, S = T < 0, w = t.pstyle("taxi-turn-min-distance").pfValue, x = g ? (c + h) / 2 : 0, C = g ? (v + d) / 2 : 0, D = f.x2 - f.x1, A = f.y2 - f.y1, L = function(P, U) {
12717
- return P > 0 ? Math.max(P - U, 0) : Math.min(P + U, 0);
12718
- }, R = L(D, x), I = L(A, C), M = !1;
12719
- b === l ? y = Math.abs(R) > Math.abs(I) ? n : a : b === u || b === o ? (y = a, M = !0) : (b === i || b === s) && (y = n, M = !0);
12720
- var N = y === a, O = N ? I : R, k = N ? A : D, B = vo(k), _ = !1;
12717
+ var a = "vertical", n = "horizontal", i = "leftward", s = "rightward", o = "downward", u = "upward", l = "auto", f = e.posPts, c = e.srcW, v = e.srcH, h = e.tgtW, d = e.tgtH, p = t.pstyle("edge-distances").value, g = p !== "node-position", y = t.pstyle("taxi-direction").value, b = y, m = t.pstyle("taxi-turn"), E = m.units === "%", T = m.pfValue, S = T < 0, w = t.pstyle("taxi-turn-min-distance").pfValue, x = g ? (c + h) / 2 : 0, C = g ? (v + d) / 2 : 0, D = f.x2 - f.x1, A = f.y2 - f.y1, L = function(I, U) {
12718
+ return I > 0 ? Math.max(I - U, 0) : Math.min(I + U, 0);
12719
+ }, R = L(D, x), P = L(A, C), M = !1;
12720
+ b === l ? y = Math.abs(R) > Math.abs(P) ? n : a : b === u || b === o ? (y = a, M = !0) : (b === i || b === s) && (y = n, M = !0);
12721
+ var N = y === a, O = N ? P : R, k = N ? A : D, B = vo(k), _ = !1;
12721
12722
  !(M && (E || S)) && (b === o && k < 0 || b === u && k > 0 || b === i && k > 0 || b === s && k < 0) && (B *= -1, O = B * Math.abs(O), _ = !0);
12722
12723
  var F;
12723
12724
  if (E) {
@@ -12727,8 +12728,8 @@ mt.findTaxiPoints = function(t, e) {
12727
12728
  var H = T < 0 ? O : 0;
12728
12729
  F = H + T * B;
12729
12730
  }
12730
- var Y = function(P) {
12731
- return Math.abs(P) < w || Math.abs(P) >= Math.abs(O);
12731
+ var Y = function(I) {
12732
+ return Math.abs(I) < w || Math.abs(I) >= Math.abs(O);
12732
12733
  }, X = Y(F), W = Y(Math.abs(O) - Math.abs(F)), ee = X || W;
12733
12734
  if (ee && !_)
12734
12735
  if (N) {
@@ -12742,8 +12743,8 @@ mt.findTaxiPoints = function(t, e) {
12742
12743
  } else
12743
12744
  r.segpts = [f.x1, f.y2];
12744
12745
  } else {
12745
- var Ie = Math.abs(k) <= c / 2, Te = Math.abs(A) <= d / 2;
12746
- if (Ie) {
12746
+ var Pe = Math.abs(k) <= c / 2, Te = Math.abs(A) <= d / 2;
12747
+ if (Pe) {
12747
12748
  var we = (f.y1 + f.y2) / 2, ye = f.x1, ie = f.x2;
12748
12749
  r.segpts = [ye, we, ie, we];
12749
12750
  } else if (Te) {
@@ -12753,8 +12754,8 @@ mt.findTaxiPoints = function(t, e) {
12753
12754
  r.segpts = [f.x2, f.y1];
12754
12755
  }
12755
12756
  else if (N) {
12756
- var pe = f.y1 + F + (g ? v / 2 * B : 0), De = f.x1, Pe = f.x2;
12757
- r.segpts = [De, pe, Pe, pe];
12757
+ var pe = f.y1 + F + (g ? v / 2 * B : 0), De = f.x1, Ie = f.x2;
12758
+ r.segpts = [De, pe, Ie, pe];
12758
12759
  } else {
12759
12760
  var Ne = f.x1 + F + (g ? c / 2 * B : 0), Be = f.y1, Fe = f.y2;
12760
12761
  r.segpts = [Ne, Be, Ne, Fe];
@@ -12767,13 +12768,13 @@ mt.findTaxiPoints = function(t, e) {
12767
12768
  mt.tryToCorrectInvalidPoints = function(t, e) {
12768
12769
  var r = t._private.rscratch;
12769
12770
  if (r.edgeType === "bezier") {
12770
- var a = e.srcPos, n = e.tgtPos, i = e.srcW, s = e.srcH, o = e.tgtW, u = e.tgtH, l = e.srcShape, f = e.tgtShape, c = e.srcCornerRadius, v = e.tgtCornerRadius, h = e.srcRs, d = e.tgtRs, p = !ne(r.startX) || !ne(r.startY), g = !ne(r.arrowStartX) || !ne(r.arrowStartY), y = !ne(r.endX) || !ne(r.endY), b = !ne(r.arrowEndX) || !ne(r.arrowEndY), m = 3, E = this.getArrowWidth(t.pstyle("width").pfValue, t.pstyle("arrow-scale").value) * this.arrowShapeWidth, T = m * E, S = Pr({
12771
+ var a = e.srcPos, n = e.tgtPos, i = e.srcW, s = e.srcH, o = e.tgtW, u = e.tgtH, l = e.srcShape, f = e.tgtShape, c = e.srcCornerRadius, v = e.tgtCornerRadius, h = e.srcRs, d = e.tgtRs, p = !ne(r.startX) || !ne(r.startY), g = !ne(r.arrowStartX) || !ne(r.arrowStartY), y = !ne(r.endX) || !ne(r.endY), b = !ne(r.arrowEndX) || !ne(r.arrowEndY), m = 3, E = this.getArrowWidth(t.pstyle("width").pfValue, t.pstyle("arrow-scale").value) * this.arrowShapeWidth, T = m * E, S = Ir({
12771
12772
  x: r.ctrlpts[0],
12772
12773
  y: r.ctrlpts[1]
12773
12774
  }, {
12774
12775
  x: r.startX,
12775
12776
  y: r.startY
12776
- }), w = S < T, x = Pr({
12777
+ }), w = S < T, x = Ir({
12777
12778
  x: r.ctrlpts[0],
12778
12779
  y: r.ctrlpts[1]
12779
12780
  }, {
@@ -12790,10 +12791,10 @@ mt.tryToCorrectInvalidPoints = function(t, e) {
12790
12791
  // normalised delta
12791
12792
  x: A.x / L,
12792
12793
  y: A.y / L
12793
- }, I = Math.max(i, s), M = {
12794
+ }, P = Math.max(i, s), M = {
12794
12795
  // *2 radius guarantees outside shape
12795
- x: r.ctrlpts[0] + R.x * 2 * I,
12796
- y: r.ctrlpts[1] + R.y * 2 * I
12796
+ x: r.ctrlpts[0] + R.x * 2 * P,
12797
+ y: r.ctrlpts[1] + R.y * 2 * P
12797
12798
  }, N = l.intersectLine(a.x, a.y, i, s, M.x, M.y, 0, c, h);
12798
12799
  w ? (r.ctrlpts[0] = r.ctrlpts[0] + R.x * (T - S), r.ctrlpts[1] = r.ctrlpts[1] + R.y * (T - S)) : (r.ctrlpts[0] = N[0] + R.x * T, r.ctrlpts[1] = N[1] + R.y * T);
12799
12800
  }
@@ -12900,7 +12901,7 @@ mt.findEdgeControlPoints = function(t) {
12900
12901
  }
12901
12902
  }
12902
12903
  for (var S = function() {
12903
- var C = o[w], D = C.pairId, A = C.edgeIsUnbundled, L = s(D, A), R = i.get(L), I;
12904
+ var C = o[w], D = C.pairId, A = C.edgeIsUnbundled, L = s(D, A), R = i.get(L), P;
12904
12905
  if (!R.hasUnbundled) {
12905
12906
  var M = R.eles[0].parallelEdges().filter(function(ue) {
12906
12907
  return ue.isBundledBezier();
@@ -12928,7 +12929,7 @@ mt.findEdgeControlPoints = function(t) {
12928
12929
  southeast: 0
12929
12930
  };
12930
12931
  for (var q = 0; q < R.eles.length; q++) {
12931
- var Z = R.eles[q], re = Z[0]._private.rscratch, ve = Z.pstyle("curve-style").value, Ie = ve === "unbundled-bezier" || ir(ve, "segments") || ir(ve, "taxi"), Te = !O.same(Z.source());
12932
+ var Z = R.eles[q], re = Z[0]._private.rscratch, ve = Z.pstyle("curve-style").value, Pe = ve === "unbundled-bezier" || ir(ve, "segments") || ir(ve, "taxi"), Te = !O.same(Z.source());
12932
12933
  if (!R.calculatedIntersection && O !== k && (R.hasBezier || R.hasUnbundled)) {
12933
12934
  R.calculatedIntersection = !0;
12934
12935
  var we = W.intersectLine(_.x, _.y, G, H, F.x, F.y, 0, ae, V), ye = R.srcIntn = we, ie = ee.intersectLine(F.x, F.y, Y, X, _.x, _.y, 0, J, z), he = R.tgtIntn = ie, de = R.intersectionPts = {
@@ -12941,19 +12942,19 @@ mt.findEdgeControlPoints = function(t) {
12941
12942
  x2: F.x,
12942
12943
  y1: _.y,
12943
12944
  y2: F.y
12944
- }, pe = ie[1] - we[1], De = ie[0] - we[0], Pe = Math.sqrt(De * De + pe * pe);
12945
- ne(Pe) && Pe >= Sy || (Pe = Math.sqrt(Math.max(De * De, Na) + Math.max(pe * pe, Na)));
12945
+ }, pe = ie[1] - we[1], De = ie[0] - we[0], Ie = Math.sqrt(De * De + pe * pe);
12946
+ ne(Ie) && Ie >= Sy || (Ie = Math.sqrt(Math.max(De * De, Na) + Math.max(pe * pe, Na)));
12946
12947
  var Ne = R.vector = {
12947
12948
  x: De,
12948
12949
  y: pe
12949
12950
  }, Be = R.vectorNorm = {
12950
- x: Ne.x / Pe,
12951
- y: Ne.y / Pe
12951
+ x: Ne.x / Ie,
12952
+ y: Ne.y / Ie
12952
12953
  }, Fe = {
12953
12954
  x: -Be.y,
12954
12955
  y: Be.x
12955
12956
  };
12956
- R.nodesOverlap = !ne(Pe) || ee.checkPoint(we[0], we[1], 0, Y, X, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, H, _.x, _.y, ae, V), R.vectorNormInverse = Fe, I = {
12957
+ R.nodesOverlap = !ne(Ie) || ee.checkPoint(we[0], we[1], 0, Y, X, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, H, _.x, _.y, ae, V), R.vectorNormInverse = Fe, P = {
12957
12958
  nodesOverlap: R.nodesOverlap,
12958
12959
  dirCounts: R.dirCounts,
12959
12960
  calculatedIntersection: !0,
@@ -12998,15 +12999,15 @@ mt.findEdgeControlPoints = function(t) {
12998
12999
  }
12999
13000
  };
13000
13001
  }
13001
- var Ee = Te ? I : R;
13002
- re.nodesOverlap = Ee.nodesOverlap, re.srcIntn = Ee.srcIntn, re.tgtIntn = Ee.tgtIntn, re.isRound = ve.startsWith("round"), n && (O.isParent() || O.isChild() || k.isParent() || k.isChild()) && (O.parents().anySame(k) || k.parents().anySame(O) || O.same(k) && O.isParent()) ? e.findCompoundLoopPoints(Z, Ee, q, Ie) : O === k ? e.findLoopPoints(Z, Ee, q, Ie) : ve.endsWith("segments") ? e.findSegmentsPoints(Z, Ee) : ve.endsWith("taxi") ? e.findTaxiPoints(Z, Ee) : ve === "straight" || !Ie && R.eles.length % 2 === 1 && q === Math.floor(R.eles.length / 2) ? e.findStraightEdgePoints(Z) : e.findBezierPoints(Z, Ee, q, Ie, Te), e.findEndpoints(Z), e.tryToCorrectInvalidPoints(Z, Ee), e.checkForInvalidEdgeWarning(Z), e.storeAllpts(Z), e.storeEdgeProjections(Z), e.calculateArrowAngles(Z), e.recalculateEdgeLabelProjections(Z), e.calculateLabelAngles(Z);
13002
+ var Ee = Te ? P : R;
13003
+ re.nodesOverlap = Ee.nodesOverlap, re.srcIntn = Ee.srcIntn, re.tgtIntn = Ee.tgtIntn, re.isRound = ve.startsWith("round"), n && (O.isParent() || O.isChild() || k.isParent() || k.isChild()) && (O.parents().anySame(k) || k.parents().anySame(O) || O.same(k) && O.isParent()) ? e.findCompoundLoopPoints(Z, Ee, q, Pe) : O === k ? e.findLoopPoints(Z, Ee, q, Pe) : ve.endsWith("segments") ? e.findSegmentsPoints(Z, Ee) : ve.endsWith("taxi") ? e.findTaxiPoints(Z, Ee) : ve === "straight" || !Pe && R.eles.length % 2 === 1 && q === Math.floor(R.eles.length / 2) ? e.findStraightEdgePoints(Z) : e.findBezierPoints(Z, Ee, q, Pe, Te), e.findEndpoints(Z), e.tryToCorrectInvalidPoints(Z, Ee), e.checkForInvalidEdgeWarning(Z), e.storeAllpts(Z), e.storeEdgeProjections(Z), e.calculateArrowAngles(Z), e.recalculateEdgeLabelProjections(Z), e.calculateLabelAngles(Z);
13003
13004
  }
13004
13005
  }, w = 0; w < o.length; w++)
13005
13006
  S();
13006
13007
  this.findHaystackPoints(u);
13007
13008
  }
13008
13009
  };
13009
- function Pc(t) {
13010
+ function Ic(t) {
13010
13011
  var e = [];
13011
13012
  if (t != null) {
13012
13013
  for (var r = 0; r < t.length; r += 2) {
@@ -13024,14 +13025,14 @@ mt.getSegmentPoints = function(t) {
13024
13025
  this.recalculateRenderedStyle(t);
13025
13026
  var r = e.edgeType;
13026
13027
  if (r === "segments")
13027
- return Pc(e.segpts);
13028
+ return Ic(e.segpts);
13028
13029
  };
13029
13030
  mt.getControlPoints = function(t) {
13030
13031
  var e = t[0]._private.rscratch;
13031
13032
  this.recalculateRenderedStyle(t);
13032
13033
  var r = e.edgeType;
13033
13034
  if (r === "bezier" || r === "multibezier" || r === "self" || r === "compound")
13034
- return Pc(e.ctrlpts);
13035
+ return Ic(e.ctrlpts);
13035
13036
  };
13036
13037
  mt.getEdgeMidpoint = function(t) {
13037
13038
  var e = t[0]._private.rscratch;
@@ -13054,7 +13055,7 @@ Ha.manualEndptToPx = function(t, e) {
13054
13055
  }
13055
13056
  };
13056
13057
  Ha.findEndpoints = function(t) {
13057
- var e, r, a, n, i = this, s, o = t.source()[0], u = t.target()[0], l = o.position(), f = u.position(), c = t.pstyle("target-arrow-shape").value, v = t.pstyle("source-arrow-shape").value, h = t.pstyle("target-distance-from-node").pfValue, d = t.pstyle("source-distance-from-node").pfValue, p = o._private.rscratch, g = u._private.rscratch, y = t.pstyle("curve-style").value, b = t._private.rscratch, m = b.edgeType, E = ir(y, "taxi"), T = m === "self" || m === "compound", S = m === "bezier" || m === "multibezier" || T, w = m !== "bezier", x = m === "straight" || m === "segments", C = m === "segments", D = S || w || x, A = T || E, L = t.pstyle("source-endpoint"), R = A ? "outside-to-node" : L.value, I = o.pstyle("corner-radius").value === "auto" ? "auto" : o.pstyle("corner-radius").pfValue, M = t.pstyle("target-endpoint"), N = A ? "outside-to-node" : M.value, O = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue;
13058
+ var e, r, a, n, i = this, s, o = t.source()[0], u = t.target()[0], l = o.position(), f = u.position(), c = t.pstyle("target-arrow-shape").value, v = t.pstyle("source-arrow-shape").value, h = t.pstyle("target-distance-from-node").pfValue, d = t.pstyle("source-distance-from-node").pfValue, p = o._private.rscratch, g = u._private.rscratch, y = t.pstyle("curve-style").value, b = t._private.rscratch, m = b.edgeType, E = ir(y, "taxi"), T = m === "self" || m === "compound", S = m === "bezier" || m === "multibezier" || T, w = m !== "bezier", x = m === "straight" || m === "segments", C = m === "segments", D = S || w || x, A = T || E, L = t.pstyle("source-endpoint"), R = A ? "outside-to-node" : L.value, P = o.pstyle("corner-radius").value === "auto" ? "auto" : o.pstyle("corner-radius").pfValue, M = t.pstyle("target-endpoint"), N = A ? "outside-to-node" : M.value, O = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue;
13058
13059
  b.srcManEndpt = L, b.tgtManEndpt = M;
13059
13060
  var k, B, _, F, G = (e = (M == null || (r = M.pfValue) === null || r === void 0 ? void 0 : r.length) === 2 ? M.pfValue : null) !== null && e !== void 0 ? e : [0, 0], H = (a = (L == null || (n = L.pfValue) === null || n === void 0 ? void 0 : n.length) === 2 ? L.pfValue : null) !== null && a !== void 0 ? a : [0, 0];
13060
13061
  if (S) {
@@ -13073,9 +13074,9 @@ Ha.findEndpoints = function(t) {
13073
13074
  else if (N === "outside-to-node" || N === "outside-to-node-or-label" ? _ = k : (N === "outside-to-line" || N === "outside-to-line-or-label") && (_ = [l.x, l.y]), s = i.nodeShapes[this.getNodeShape(u)].intersectLine(f.x, f.y, u.outerWidth(), u.outerHeight(), _[0], _[1], 0, O, g), N === "outside-to-node-or-label" || N === "outside-to-line-or-label") {
13074
13075
  var ae = u._private.rscratch, J = ae.labelWidth, z = ae.labelHeight, V = ae.labelX, q = ae.labelY, Z = J / 2, re = z / 2, ve = u.pstyle("text-valign").value;
13075
13076
  ve === "top" ? q -= re : ve === "bottom" && (q += re);
13076
- var Ie = u.pstyle("text-halign").value;
13077
- Ie === "left" ? V -= Z : Ie === "right" && (V += Z);
13078
- var Te = Ia(_[0], _[1], [V - Z, q - re, V + Z, q - re, V + Z, q + re, V - Z, q + re], f.x, f.y);
13077
+ var Pe = u.pstyle("text-halign").value;
13078
+ Pe === "left" ? V -= Z : Pe === "right" && (V += Z);
13079
+ var Te = Pa(_[0], _[1], [V - Z, q - re, V + Z, q - re, V + Z, q + re, V - Z, q + re], f.x, f.y);
13079
13080
  if (Te.length > 0) {
13080
13081
  var we = l, ye = Dr(we, Wr(s)), ie = Dr(we, Wr(Te)), he = ye;
13081
13082
  if (ie < ye && (s = Te, he = ie), Te.length > 2) {
@@ -13094,12 +13095,12 @@ Ha.findEndpoints = function(t) {
13094
13095
  s = this.manualEndptToPx(o, L);
13095
13096
  else if (R === "outside-to-line")
13096
13097
  s = b.srcIntn;
13097
- else if (R === "outside-to-node" || R === "outside-to-node-or-label" ? F = B : (R === "outside-to-line" || R === "outside-to-line-or-label") && (F = [f.x, f.y]), s = i.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), F[0], F[1], 0, I, p), R === "outside-to-node-or-label" || R === "outside-to-line-or-label") {
13098
- var De = o._private.rscratch, Pe = De.labelWidth, Ne = De.labelHeight, Be = De.labelX, Fe = De.labelY, Ee = Pe / 2, ue = Ne / 2, Q = o.pstyle("text-valign").value;
13098
+ else if (R === "outside-to-node" || R === "outside-to-node-or-label" ? F = B : (R === "outside-to-line" || R === "outside-to-line-or-label") && (F = [f.x, f.y]), s = i.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), F[0], F[1], 0, P, p), R === "outside-to-node-or-label" || R === "outside-to-line-or-label") {
13099
+ var De = o._private.rscratch, Ie = De.labelWidth, Ne = De.labelHeight, Be = De.labelX, Fe = De.labelY, Ee = Ie / 2, ue = Ne / 2, Q = o.pstyle("text-valign").value;
13099
13100
  Q === "top" ? Fe -= ue : Q === "bottom" && (Fe += ue);
13100
- var P = o.pstyle("text-halign").value;
13101
- P === "left" ? Be -= Ee : P === "right" && (Be += Ee);
13102
- var U = Ia(F[0], F[1], [Be - Ee, Fe - ue, Be + Ee, Fe - ue, Be + Ee, Fe + ue, Be - Ee, Fe + ue], l.x, l.y);
13101
+ var I = o.pstyle("text-halign").value;
13102
+ I === "left" ? Be -= Ee : I === "right" && (Be += Ee);
13103
+ var U = Pa(F[0], F[1], [Be - Ee, Fe - ue, Be + Ee, Fe - ue, Be + Ee, Fe + ue, Be - Ee, Fe + ue], l.x, l.y);
13103
13104
  if (U.length > 0) {
13104
13105
  var $ = f, K = Dr($, Wr(s)), j = Dr($, Wr(U)), oe = K;
13105
13106
  if (j < K && (s = [U[0], U[1]], oe = j), U.length > 2) {
@@ -13263,7 +13264,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13263
13264
  }
13264
13265
  var g = r.rstyle.bezierPts, y = n.bezierProjPcts.length;
13265
13266
  function b(w, x, C, D, A) {
13266
- var L = Pr(x, C), R = w.segments[w.segments.length - 1], I = {
13267
+ var L = Ir(x, C), R = w.segments[w.segments.length - 1], P = {
13267
13268
  p0: x,
13268
13269
  p1: C,
13269
13270
  t0: D,
@@ -13271,7 +13272,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13271
13272
  startDist: R ? R.startDist + R.length : 0,
13272
13273
  length: L
13273
13274
  };
13274
- w.segments.push(I), w.length += L;
13275
+ w.segments.push(P), w.length += L;
13275
13276
  }
13276
13277
  for (var m = 0; m < c.length; m++) {
13277
13278
  var E = c[m], T = c[m - 1];
@@ -13311,7 +13312,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13311
13312
  case "straight":
13312
13313
  case "segments":
13313
13314
  case "haystack": {
13314
- for (var R = 0, I, M, N, O, k = a.allpts.length, B = 0; B + 3 < k && (h ? (N = {
13315
+ for (var R = 0, P, M, N, O, k = a.allpts.length, B = 0; B + 3 < k && (h ? (N = {
13315
13316
  x: a.allpts[B],
13316
13317
  y: a.allpts[B + 1]
13317
13318
  }, O = {
@@ -13323,9 +13324,9 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13323
13324
  }, O = {
13324
13325
  x: a.allpts[k - 4 - B],
13325
13326
  y: a.allpts[k - 3 - B]
13326
- }), I = Pr(N, O), M = R, R += I, !(R >= d)); B += 2)
13327
+ }), P = Ir(N, O), M = R, R += P, !(R >= d)); B += 2)
13327
13328
  ;
13328
- var _ = d - M, F = _ / I;
13329
+ var _ = d - M, F = _ / P;
13329
13330
  F = Ra(0, F, 1), e = Zh(N, O, F), v = Oc(N, O);
13330
13331
  break;
13331
13332
  }
@@ -13340,7 +13341,7 @@ Yt.applyLabelDimensions = function(t) {
13340
13341
  this.applyPrefixedLabelDimensions(t), t.isEdge() && (this.applyPrefixedLabelDimensions(t, "source"), this.applyPrefixedLabelDimensions(t, "target"));
13341
13342
  };
13342
13343
  Yt.applyPrefixedLabelDimensions = function(t, e) {
13343
- var r = t._private, a = this.getLabelText(t, e), n = Ir(a, t._private.labelDimsKey);
13344
+ var r = t._private, a = this.getLabelText(t, e), n = Pr(a, t._private.labelDimsKey);
13344
13345
  if (Dt(r.rscratch, "prefixedLabelDimsKey", e) !== n) {
13345
13346
  Kt(r.rscratch, "prefixedLabelDimsKey", e, n);
13346
13347
  var i = this.calculateLabelDimensions(t, a), s = t.pstyle("line-height").pfValue, o = t.pstyle("text-wrap").strValue, u = Dt(r.rscratch, "labelWrapCachedLines", e) || [], l = o !== "wrap" ? 1 : Math.max(u.length, 1), f = i.height / l, c = f * s, v = i.width, h = i.height + (l - 1) * (s - 1) * f;
@@ -13372,7 +13373,7 @@ Yt.getLabelText = function(t, e) {
13372
13373
  for (x.s(); !(C = x.n()).done; ) {
13373
13374
  var D = C.value, A = D[0], L = y.substring(w, D.index);
13374
13375
  w = D.index + A.length;
13375
- var R = S.length === 0 ? L : S + L + A, I = this.calculateLabelDimensions(t, R), M = I.width;
13376
+ var R = S.length === 0 ? L : S + L + A, P = this.calculateLabelDimensions(t, R), M = P.width;
13376
13377
  M <= c ? S += L + A : (S && d.push(S), S = L + A);
13377
13378
  }
13378
13379
  } catch (G) {
@@ -13624,30 +13625,30 @@ ua.nodeIsGrabbable = function(t) {
13624
13625
  return this.nodeIsDraggable(t) && t.interactive();
13625
13626
  };
13626
13627
  ua.load = function() {
13627
- var t = this, e = t.cy.window(), r = function(P) {
13628
- return P.selected();
13629
- }, a = function(P) {
13630
- var U = P.getRootNode();
13628
+ var t = this, e = t.cy.window(), r = function(I) {
13629
+ return I.selected();
13630
+ }, a = function(I) {
13631
+ var U = I.getRootNode();
13631
13632
  if (U && U.nodeType === 11 && U.host !== void 0)
13632
13633
  return U;
13633
- }, n = function(P, U, $, K) {
13634
- P == null && (P = t.cy);
13634
+ }, n = function(I, U, $, K) {
13635
+ I == null && (I = t.cy);
13635
13636
  for (var j = 0; j < U.length; j++) {
13636
13637
  var oe = U[j];
13637
- P.emit({
13638
+ I.emit({
13638
13639
  originalEvent: $,
13639
13640
  type: oe,
13640
13641
  position: K
13641
13642
  });
13642
13643
  }
13643
- }, i = function(P) {
13644
- return P.shiftKey || P.metaKey || P.ctrlKey;
13645
- }, s = function(P, U) {
13644
+ }, i = function(I) {
13645
+ return I.shiftKey || I.metaKey || I.ctrlKey;
13646
+ }, s = function(I, U) {
13646
13647
  var $ = !0;
13647
- if (t.cy.hasCompoundNodes() && P && P.pannable())
13648
+ if (t.cy.hasCompoundNodes() && I && I.pannable())
13648
13649
  for (var K = 0; U && K < U.length; K++) {
13649
- var P = U[K];
13650
- if (P.isNode() && P.isParent() && !P.pannable()) {
13650
+ var I = U[K];
13651
+ if (I.isNode() && I.isParent() && !I.pannable()) {
13651
13652
  $ = !1;
13652
13653
  break;
13653
13654
  }
@@ -13655,45 +13656,45 @@ ua.load = function() {
13655
13656
  else
13656
13657
  $ = !0;
13657
13658
  return $;
13658
- }, o = function(P) {
13659
- P[0]._private.grabbed = !0;
13660
- }, u = function(P) {
13661
- P[0]._private.grabbed = !1;
13662
- }, l = function(P) {
13663
- P[0]._private.rscratch.inDragLayer = !0;
13664
- }, f = function(P) {
13665
- P[0]._private.rscratch.inDragLayer = !1;
13666
- }, c = function(P) {
13667
- P[0]._private.rscratch.isGrabTarget = !0;
13668
- }, v = function(P) {
13669
- P[0]._private.rscratch.isGrabTarget = !1;
13670
- }, h = function(P, U) {
13671
- var $ = U.addToList, K = $.has(P);
13672
- !K && P.grabbable() && !P.locked() && ($.merge(P), o(P));
13673
- }, d = function(P, U) {
13674
- if (P.cy().hasCompoundNodes() && !(U.inDragLayer == null && U.addToList == null)) {
13675
- var $ = P.descendants();
13659
+ }, o = function(I) {
13660
+ I[0]._private.grabbed = !0;
13661
+ }, u = function(I) {
13662
+ I[0]._private.grabbed = !1;
13663
+ }, l = function(I) {
13664
+ I[0]._private.rscratch.inDragLayer = !0;
13665
+ }, f = function(I) {
13666
+ I[0]._private.rscratch.inDragLayer = !1;
13667
+ }, c = function(I) {
13668
+ I[0]._private.rscratch.isGrabTarget = !0;
13669
+ }, v = function(I) {
13670
+ I[0]._private.rscratch.isGrabTarget = !1;
13671
+ }, h = function(I, U) {
13672
+ var $ = U.addToList, K = $.has(I);
13673
+ !K && I.grabbable() && !I.locked() && ($.merge(I), o(I));
13674
+ }, d = function(I, U) {
13675
+ if (I.cy().hasCompoundNodes() && !(U.inDragLayer == null && U.addToList == null)) {
13676
+ var $ = I.descendants();
13676
13677
  U.inDragLayer && ($.forEach(l), $.connectedEdges().forEach(l)), U.addToList && h($, U);
13677
13678
  }
13678
- }, p = function(P, U) {
13679
+ }, p = function(I, U) {
13679
13680
  U = U || {};
13680
- var $ = P.cy().hasCompoundNodes();
13681
- U.inDragLayer && (P.forEach(l), P.neighborhood().stdFilter(function(K) {
13681
+ var $ = I.cy().hasCompoundNodes();
13682
+ U.inDragLayer && (I.forEach(l), I.neighborhood().stdFilter(function(K) {
13682
13683
  return !$ || K.isEdge();
13683
- }).forEach(l)), U.addToList && P.forEach(function(K) {
13684
+ }).forEach(l)), U.addToList && I.forEach(function(K) {
13684
13685
  h(K, U);
13685
- }), d(P, U), b(P, {
13686
+ }), d(I, U), b(I, {
13686
13687
  inDragLayer: U.inDragLayer
13687
13688
  }), t.updateCachedGrabbedEles();
13688
- }, g = p, y = function(P) {
13689
- P && (t.getCachedZSortedEles().forEach(function(U) {
13689
+ }, g = p, y = function(I) {
13690
+ I && (t.getCachedZSortedEles().forEach(function(U) {
13690
13691
  u(U), f(U), v(U);
13691
13692
  }), t.updateCachedGrabbedEles());
13692
- }, b = function(P, U) {
13693
- if (!(U.inDragLayer == null && U.addToList == null) && P.cy().hasCompoundNodes()) {
13694
- var $ = P.ancestors().orphans();
13695
- if (!$.same(P)) {
13696
- var K = $.descendants().spawnSelf().merge($).unmerge(P).unmerge(P.descendants()), j = K.connectedEdges();
13693
+ }, b = function(I, U) {
13694
+ if (!(U.inDragLayer == null && U.addToList == null) && I.cy().hasCompoundNodes()) {
13695
+ var $ = I.ancestors().orphans();
13696
+ if (!$.same(I)) {
13697
+ var K = $.descendants().spawnSelf().merge($).unmerge(I).unmerge(I.descendants()), j = K.connectedEdges();
13697
13698
  U.inDragLayer && (j.forEach(l), K.forEach(l)), U.addToList && K.forEach(function(oe) {
13698
13699
  h(oe, U);
13699
13700
  });
@@ -13703,8 +13704,8 @@ ua.load = function() {
13703
13704
  document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
13704
13705
  }, E = typeof MutationObserver < "u", T = typeof ResizeObserver < "u";
13705
13706
  E ? (t.removeObserver = new MutationObserver(function(Q) {
13706
- for (var P = 0; P < Q.length; P++) {
13707
- var U = Q[P], $ = U.removedNodes;
13707
+ for (var I = 0; I < Q.length; I++) {
13708
+ var U = Q[I], $ = U.removedNodes;
13708
13709
  if ($)
13709
13710
  for (var K = 0; K < $.length; K++) {
13710
13711
  var j = $[K];
@@ -13725,9 +13726,9 @@ ua.load = function() {
13725
13726
  E && (t.styleObserver = new MutationObserver(S), t.styleObserver.observe(t.container, {
13726
13727
  attributes: !0
13727
13728
  })), t.registerBinding(e, "resize", S), T && (t.resizeObserver = new ResizeObserver(S), t.resizeObserver.observe(t.container));
13728
- var w = function(P, U) {
13729
- for (; P != null; )
13730
- U(P), P = P.parentNode;
13729
+ var w = function(I, U) {
13730
+ for (; I != null; )
13731
+ U(I), I = I.parentNode;
13731
13732
  }, x = function() {
13732
13733
  t.invalidateContainerClientCoordsCache();
13733
13734
  };
@@ -13738,8 +13739,8 @@ ua.load = function() {
13738
13739
  });
13739
13740
  var C = function() {
13740
13741
  return t.selection[4] !== 0;
13741
- }, D = function(P) {
13742
- for (var U = t.findContainerClientCoords(), $ = U[0], K = U[1], j = U[2], oe = U[3], te = P.touches ? P.touches : [P], fe = !1, le = 0; le < te.length; le++) {
13742
+ }, D = function(I) {
13743
+ for (var U = t.findContainerClientCoords(), $ = U[0], K = U[1], j = U[2], oe = U[3], te = I.touches ? I.touches : [I], fe = !1, le = 0; le < te.length; le++) {
13743
13744
  var me = te[le];
13744
13745
  if ($ <= me.clientX && me.clientX <= $ + j && K <= me.clientY && me.clientY <= K + oe) {
13745
13746
  fe = !0;
@@ -13748,7 +13749,7 @@ ua.load = function() {
13748
13749
  }
13749
13750
  if (!fe)
13750
13751
  return !1;
13751
- for (var Ae = t.container, Ce = P.target, ce = Ce.parentNode, Re = !1; ce; ) {
13752
+ for (var Ae = t.container, Ce = I.target, ce = Ce.parentNode, Re = !1; ce; ) {
13752
13753
  if (ce === Ae) {
13753
13754
  Re = !0;
13754
13755
  break;
@@ -13757,14 +13758,14 @@ ua.load = function() {
13757
13758
  }
13758
13759
  return !!Re;
13759
13760
  };
13760
- t.registerBinding(t.container, "mousedown", function(P) {
13761
- if (D(P) && !(t.hoverData.which === 1 && P.which !== 1)) {
13762
- P.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = P.which;
13763
- var U = t.cy, $ = [P.clientX, P.clientY], K = t.projectIntoViewport($[0], $[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13761
+ t.registerBinding(t.container, "mousedown", function(I) {
13762
+ if (D(I) && !(t.hoverData.which === 1 && I.which !== 1)) {
13763
+ I.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = I.which;
13764
+ var U = t.cy, $ = [I.clientX, I.clientY], K = t.projectIntoViewport($[0], $[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13764
13765
  t.hoverData.mdownPos = K, t.hoverData.mdownGPos = $;
13765
13766
  var le = function(Le) {
13766
13767
  return {
13767
- originalEvent: P,
13768
+ originalEvent: I,
13768
13769
  type: Le,
13769
13770
  position: {
13770
13771
  x: K[0],
@@ -13779,10 +13780,10 @@ ua.load = function() {
13779
13780
  }
13780
13781
  }, t.tapholdDuration);
13781
13782
  };
13782
- if (P.which == 3) {
13783
+ if (I.which == 3) {
13783
13784
  t.hoverData.cxtStarted = !0;
13784
13785
  var Ae = {
13785
- originalEvent: P,
13786
+ originalEvent: I,
13786
13787
  type: "cxttapstart",
13787
13788
  position: {
13788
13789
  x: K[0],
@@ -13790,7 +13791,7 @@ ua.load = function() {
13790
13791
  }
13791
13792
  };
13792
13793
  te ? (te.activate(), te.emit(Ae), t.hoverData.down = te) : U.emit(Ae), t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), t.hoverData.cxtDragged = !1;
13793
- } else if (P.which == 1) {
13794
+ } else if (I.which == 1) {
13794
13795
  te && te.activate();
13795
13796
  {
13796
13797
  if (te != null && t.nodeIsGrabbable(te)) {
@@ -13814,7 +13815,7 @@ ua.load = function() {
13814
13815
  }
13815
13816
  t.hoverData.down = te, t.hoverData.downs = oe, t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
13816
13817
  }
13817
- n(te, ["mousedown", "tapstart", "vmousedown"], P, {
13818
+ n(te, ["mousedown", "tapstart", "vmousedown"], I, {
13818
13819
  x: K[0],
13819
13820
  y: K[1]
13820
13821
  }), te == null ? (j[4] = 1, t.data.bgActivePosistion = {
@@ -13826,29 +13827,29 @@ ua.load = function() {
13826
13827
  }
13827
13828
  }, !1);
13828
13829
  var A = a(t.container);
13829
- t.registerBinding([e, A], "mousemove", function(P) {
13830
+ t.registerBinding([e, A], "mousemove", function(I) {
13830
13831
  var U = t.hoverData.capture;
13831
- if (!(!U && !D(P))) {
13832
- var $ = !1, K = t.cy, j = K.zoom(), oe = [P.clientX, P.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13832
+ if (!(!U && !D(I))) {
13833
+ var $ = !1, K = t.cy, j = K.zoom(), oe = [I.clientX, I.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13833
13834
  !t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Ae = t.findNearestElement(te[0], te[1], !0, !1));
13834
13835
  var Ce = t.hoverData.last, ce = t.hoverData.down, Re = [te[0] - me[2], te[1] - me[3]], Le = t.dragData.possibleDragElements, je;
13835
13836
  if (le) {
13836
13837
  var $e = oe[0] - le[0], bt = $e * $e, Ke = oe[1] - le[1], st = Ke * Ke, et = bt + st;
13837
13838
  t.hoverData.isOverThresholdDrag = je = et >= t.desktopTapThreshold2;
13838
13839
  }
13839
- var ft = i(P);
13840
+ var ft = i(I);
13840
13841
  je && (t.hoverData.tapholdCancelled = !0);
13841
13842
  var tr = function() {
13842
13843
  var Rt = t.hoverData.dragDelta = t.hoverData.dragDelta || [];
13843
13844
  Rt.length === 0 ? (Rt.push(Re[0]), Rt.push(Re[1])) : (Rt[0] += Re[0], Rt[1] += Re[1]);
13844
13845
  };
13845
- $ = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], P, {
13846
+ $ = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], I, {
13846
13847
  x: te[0],
13847
13848
  y: te[1]
13848
13849
  });
13849
13850
  var Ze = function(Rt) {
13850
13851
  return {
13851
- originalEvent: P,
13852
+ originalEvent: I,
13852
13853
  type: Rt,
13853
13854
  position: {
13854
13855
  x: te[0],
@@ -13879,7 +13880,7 @@ ua.load = function() {
13879
13880
  };
13880
13881
  K.panBy(_r), K.emit(Ze("dragpan")), t.hoverData.dragged = !0;
13881
13882
  }
13882
- te = t.projectIntoViewport(P.clientX, P.clientY);
13883
+ te = t.projectIntoViewport(I.clientX, I.clientY);
13883
13884
  } else if (me[4] == 1 && (ce == null || ce.pannable())) {
13884
13885
  if (je) {
13885
13886
  if (!t.hoverData.dragging && K.boxSelectionEnabled() && (ft || !K.panningEnabled() || !K.userPanningEnabled()))
@@ -13891,10 +13892,10 @@ ua.load = function() {
13891
13892
  ce && ce.pannable() && ce.active() && ce.unactivate();
13892
13893
  }
13893
13894
  } else {
13894
- if (ce && ce.pannable() && ce.active() && ce.unactivate(), (!ce || !ce.grabbed()) && Ae != Ce && (Ce && n(Ce, ["mouseout", "tapdragout"], P, {
13895
+ if (ce && ce.pannable() && ce.active() && ce.unactivate(), (!ce || !ce.grabbed()) && Ae != Ce && (Ce && n(Ce, ["mouseout", "tapdragout"], I, {
13895
13896
  x: te[0],
13896
13897
  y: te[1]
13897
- }), Ae && n(Ae, ["mouseover", "tapdragover"], P, {
13898
+ }), Ae && n(Ae, ["mouseover", "tapdragover"], I, {
13898
13899
  x: te[0],
13899
13900
  y: te[1]
13900
13901
  }), t.hoverData.last = Ae), ce)
@@ -13921,20 +13922,20 @@ ua.load = function() {
13921
13922
  $ = !0;
13922
13923
  }
13923
13924
  if (me[2] = te[0], me[3] = te[1], $)
13924
- return P.stopPropagation && P.stopPropagation(), P.preventDefault && P.preventDefault(), !1;
13925
+ return I.stopPropagation && I.stopPropagation(), I.preventDefault && I.preventDefault(), !1;
13925
13926
  }
13926
13927
  }, !1);
13927
- var L, R, I;
13928
- t.registerBinding(e, "mouseup", function(P) {
13929
- if (!(t.hoverData.which === 1 && P.which !== 1 && t.hoverData.capture)) {
13928
+ var L, R, P;
13929
+ t.registerBinding(e, "mouseup", function(I) {
13930
+ if (!(t.hoverData.which === 1 && I.which !== 1 && t.hoverData.capture)) {
13930
13931
  var U = t.hoverData.capture;
13931
13932
  if (U) {
13932
13933
  t.hoverData.capture = !1;
13933
- var $ = t.cy, K = t.projectIntoViewport(P.clientX, P.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(P);
13934
+ var $ = t.cy, K = t.projectIntoViewport(I.clientX, I.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(I);
13934
13935
  t.data.bgActivePosistion && (t.redrawHint("select", !0), t.redraw()), t.hoverData.tapholdCancelled = !0, t.data.bgActivePosistion = void 0, fe && fe.unactivate();
13935
13936
  var me = function($e) {
13936
13937
  return {
13937
- originalEvent: P,
13938
+ originalEvent: I,
13938
13939
  type: $e,
13939
13940
  position: {
13940
13941
  x: K[0],
@@ -13950,24 +13951,24 @@ ua.load = function() {
13950
13951
  }
13951
13952
  t.hoverData.cxtDragged = !1, t.hoverData.which = null;
13952
13953
  } else if (t.hoverData.which === 1) {
13953
- if (n(oe, ["mouseup", "tapend", "vmouseup"], P, {
13954
+ if (n(oe, ["mouseup", "tapend", "vmouseup"], I, {
13954
13955
  x: K[0],
13955
13956
  y: K[1]
13956
13957
  }), !t.dragData.didDrag && // didn't move a node around
13957
13958
  !t.hoverData.dragged && // didn't pan
13958
13959
  !t.hoverData.selecting && // not box selection
13959
- !t.hoverData.isOverThresholdDrag && (n(fe, ["click", "tap", "vclick"], P, {
13960
+ !t.hoverData.isOverThresholdDrag && (n(fe, ["click", "tap", "vclick"], I, {
13960
13961
  x: K[0],
13961
13962
  y: K[1]
13962
- }), R = !1, P.timeStamp - I <= $.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, I = null, n(fe, ["dblclick", "dbltap", "vdblclick"], P, {
13963
+ }), R = !1, I.timeStamp - P <= $.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, P = null, n(fe, ["dblclick", "dbltap", "vdblclick"], I, {
13963
13964
  x: K[0],
13964
13965
  y: K[1]
13965
13966
  })) : (L = setTimeout(function() {
13966
- R || n(fe, ["oneclick", "onetap", "voneclick"], P, {
13967
+ R || n(fe, ["oneclick", "onetap", "voneclick"], I, {
13967
13968
  x: K[0],
13968
13969
  y: K[1]
13969
13970
  });
13970
- }, $.multiClickDebounceTime()), I = P.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(P) && ($.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = $.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || ($.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || ($.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13971
+ }, $.multiClickDebounceTime()), P = I.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(I) && ($.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = $.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || ($.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || ($.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13971
13972
  var ce = $.collection(t.getAllInBox(j[0], j[1], j[2], j[3]));
13972
13973
  t.redrawHint("select", !0), ce.length > 0 && t.redrawHint("eles", !0), $.emit(me("boxend"));
13973
13974
  var Re = function($e) {
@@ -13985,19 +13986,19 @@ ua.load = function() {
13985
13986
  }
13986
13987
  }
13987
13988
  }, !1);
13988
- var M = [], N = 4, O, k = 1e5, B = function(P, U) {
13989
- for (var $ = 0; $ < P.length; $++)
13990
- if (P[$] % U !== 0)
13989
+ var M = [], N = 4, O, k = 1e5, B = function(I, U) {
13990
+ for (var $ = 0; $ < I.length; $++)
13991
+ if (I[$] % U !== 0)
13991
13992
  return !1;
13992
13993
  return !0;
13993
- }, _ = function(P) {
13994
- for (var U = Math.abs(P[0]), $ = 1; $ < P.length; $++)
13995
- if (Math.abs(P[$]) !== U)
13994
+ }, _ = function(I) {
13995
+ for (var U = Math.abs(I[0]), $ = 1; $ < I.length; $++)
13996
+ if (Math.abs(I[$]) !== U)
13996
13997
  return !1;
13997
13998
  return !0;
13998
- }, F = function(P) {
13999
- var U = !1, $ = P.deltaY;
14000
- if ($ == null && (P.wheelDeltaY != null ? $ = P.wheelDeltaY / 4 : P.wheelDelta != null && ($ = P.wheelDelta / 4)), $ !== 0) {
13999
+ }, F = function(I) {
14000
+ var U = !1, $ = I.deltaY;
14001
+ if ($ == null && (I.wheelDeltaY != null ? $ = I.wheelDeltaY / 4 : I.wheelDelta != null && ($ = I.wheelDelta / 4)), $ !== 0) {
14001
14002
  if (O == null)
14002
14003
  if (M.length >= N) {
14003
14004
  var K = M;
@@ -14012,29 +14013,29 @@ ua.load = function() {
14012
14013
  M.push($), U = !0;
14013
14014
  else O && (k = Math.min(Math.abs($), k));
14014
14015
  if (!t.scrollingPage) {
14015
- var te = t.cy, fe = te.zoom(), le = te.pan(), me = t.projectIntoViewport(P.clientX, P.clientY), Ae = [me[0] * fe + le.x, me[1] * fe + le.y];
14016
+ var te = t.cy, fe = te.zoom(), le = te.pan(), me = t.projectIntoViewport(I.clientX, I.clientY), Ae = [me[0] * fe + le.x, me[1] * fe + le.y];
14016
14017
  if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || C()) {
14017
- P.preventDefault();
14018
+ I.preventDefault();
14018
14019
  return;
14019
14020
  }
14020
14021
  if (te.panningEnabled() && te.userPanningEnabled() && te.zoomingEnabled() && te.userZoomingEnabled()) {
14021
- P.preventDefault(), t.data.wheelZooming = !0, clearTimeout(t.data.wheelTimeout), t.data.wheelTimeout = setTimeout(function() {
14022
+ I.preventDefault(), t.data.wheelZooming = !0, clearTimeout(t.data.wheelTimeout), t.data.wheelTimeout = setTimeout(function() {
14022
14023
  t.data.wheelZooming = !1, t.redrawHint("eles", !0), t.redraw();
14023
14024
  }, 150);
14024
14025
  var Ce;
14025
14026
  U && Math.abs($) > 5 && ($ = vo($) * 5), Ce = $ / -250, O && (Ce /= k, Ce *= 3), Ce = Ce * t.wheelSensitivity;
14026
- var ce = P.deltaMode === 1;
14027
+ var ce = I.deltaMode === 1;
14027
14028
  ce && (Ce *= 33);
14028
14029
  var Re = te.zoom() * Math.pow(10, Ce);
14029
- P.type === "gesturechange" && (Re = t.gestureStartZoom * P.scale), te.zoom({
14030
+ I.type === "gesturechange" && (Re = t.gestureStartZoom * I.scale), te.zoom({
14030
14031
  level: Re,
14031
14032
  renderedPosition: {
14032
14033
  x: Ae[0],
14033
14034
  y: Ae[1]
14034
14035
  }
14035
14036
  }), te.emit({
14036
- type: P.type === "gesturechange" ? "pinchzoom" : "scrollzoom",
14037
- originalEvent: P,
14037
+ type: I.type === "gesturechange" ? "pinchzoom" : "scrollzoom",
14038
+ originalEvent: I,
14038
14039
  position: {
14039
14040
  x: me[0],
14040
14041
  y: me[1]
@@ -14044,28 +14045,28 @@ ua.load = function() {
14044
14045
  }
14045
14046
  }
14046
14047
  };
14047
- t.registerBinding(t.container, "wheel", F, !0), t.registerBinding(e, "scroll", function(P) {
14048
+ t.registerBinding(t.container, "wheel", F, !0), t.registerBinding(e, "scroll", function(I) {
14048
14049
  t.scrollingPage = !0, clearTimeout(t.scrollingPageTimeout), t.scrollingPageTimeout = setTimeout(function() {
14049
14050
  t.scrollingPage = !1;
14050
14051
  }, 250);
14051
- }, !0), t.registerBinding(t.container, "gesturestart", function(P) {
14052
- t.gestureStartZoom = t.cy.zoom(), t.hasTouchStarted || P.preventDefault();
14052
+ }, !0), t.registerBinding(t.container, "gesturestart", function(I) {
14053
+ t.gestureStartZoom = t.cy.zoom(), t.hasTouchStarted || I.preventDefault();
14053
14054
  }, !0), t.registerBinding(t.container, "gesturechange", function(Q) {
14054
14055
  t.hasTouchStarted || F(Q);
14055
- }, !0), t.registerBinding(t.container, "mouseout", function(P) {
14056
- var U = t.projectIntoViewport(P.clientX, P.clientY);
14056
+ }, !0), t.registerBinding(t.container, "mouseout", function(I) {
14057
+ var U = t.projectIntoViewport(I.clientX, I.clientY);
14057
14058
  t.cy.emit({
14058
- originalEvent: P,
14059
+ originalEvent: I,
14059
14060
  type: "mouseout",
14060
14061
  position: {
14061
14062
  x: U[0],
14062
14063
  y: U[1]
14063
14064
  }
14064
14065
  });
14065
- }, !1), t.registerBinding(t.container, "mouseover", function(P) {
14066
- var U = t.projectIntoViewport(P.clientX, P.clientY);
14066
+ }, !1), t.registerBinding(t.container, "mouseover", function(I) {
14067
+ var U = t.projectIntoViewport(I.clientX, I.clientY);
14067
14068
  t.cy.emit({
14068
- originalEvent: P,
14069
+ originalEvent: I,
14069
14070
  type: "mouseover",
14070
14071
  position: {
14071
14072
  x: U[0],
@@ -14073,30 +14074,30 @@ ua.load = function() {
14073
14074
  }
14074
14075
  });
14075
14076
  }, !1);
14076
- var G, H, Y, X, W, ee, ae, J, z, V, q, Z, re, ve = function(P, U, $, K) {
14077
- return Math.sqrt(($ - P) * ($ - P) + (K - U) * (K - U));
14078
- }, Ie = function(P, U, $, K) {
14079
- return ($ - P) * ($ - P) + (K - U) * (K - U);
14077
+ var G, H, Y, X, W, ee, ae, J, z, V, q, Z, re, ve = function(I, U, $, K) {
14078
+ return Math.sqrt(($ - I) * ($ - I) + (K - U) * (K - U));
14079
+ }, Pe = function(I, U, $, K) {
14080
+ return ($ - I) * ($ - I) + (K - U) * (K - U);
14080
14081
  }, Te;
14081
- t.registerBinding(t.container, "touchstart", Te = function(P) {
14082
- if (t.hasTouchStarted = !0, !!D(P)) {
14082
+ t.registerBinding(t.container, "touchstart", Te = function(I) {
14083
+ if (t.hasTouchStarted = !0, !!D(I)) {
14083
14084
  m(), t.touchData.capture = !0, t.data.bgActivePosistion = void 0;
14084
14085
  var U = t.cy, $ = t.touchData.now, K = t.touchData.earlier;
14085
- if (P.touches[0]) {
14086
- var j = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14086
+ if (I.touches[0]) {
14087
+ var j = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14087
14088
  $[0] = j[0], $[1] = j[1];
14088
14089
  }
14089
- if (P.touches[1]) {
14090
- var j = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14090
+ if (I.touches[1]) {
14091
+ var j = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14091
14092
  $[2] = j[0], $[3] = j[1];
14092
14093
  }
14093
- if (P.touches[2]) {
14094
- var j = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14094
+ if (I.touches[2]) {
14095
+ var j = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14095
14096
  $[4] = j[0], $[5] = j[1];
14096
14097
  }
14097
14098
  var oe = function(ft) {
14098
14099
  return {
14099
- originalEvent: P,
14100
+ originalEvent: I,
14100
14101
  type: ft,
14101
14102
  position: {
14102
14103
  x: $[0],
@@ -14104,23 +14105,23 @@ ua.load = function() {
14104
14105
  }
14105
14106
  };
14106
14107
  };
14107
- if (P.touches[1]) {
14108
+ if (I.touches[1]) {
14108
14109
  t.touchData.singleTouchMoved = !0, y(t.dragData.touchDragEles);
14109
14110
  var te = t.findContainerClientCoords();
14110
- z = te[0], V = te[1], q = te[2], Z = te[3], G = P.touches[0].clientX - z, H = P.touches[0].clientY - V, Y = P.touches[1].clientX - z, X = P.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= Y && Y <= q && 0 <= H && H <= Z && 0 <= X && X <= Z;
14111
+ z = te[0], V = te[1], q = te[2], Z = te[3], G = I.touches[0].clientX - z, H = I.touches[0].clientY - V, Y = I.touches[1].clientX - z, X = I.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= Y && Y <= q && 0 <= H && H <= Z && 0 <= X && X <= Z;
14111
14112
  var fe = U.pan(), le = U.zoom();
14112
- W = ve(G, H, Y, X), ee = Ie(G, H, Y, X), ae = [(G + Y) / 2, (H + X) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14113
+ W = ve(G, H, Y, X), ee = Pe(G, H, Y, X), ae = [(G + Y) / 2, (H + X) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14113
14114
  var me = 200, Ae = me * me;
14114
- if (ee < Ae && !P.touches[2]) {
14115
+ if (ee < Ae && !I.touches[2]) {
14115
14116
  var Ce = t.findNearestElement($[0], $[1], !0, !0), ce = t.findNearestElement($[2], $[3], !0, !0);
14116
14117
  Ce && Ce.isNode() ? (Ce.activate().emit(oe("cxttapstart")), t.touchData.start = Ce) : ce && ce.isNode() ? (ce.activate().emit(oe("cxttapstart")), t.touchData.start = ce) : U.emit(oe("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
14117
14118
  return;
14118
14119
  }
14119
14120
  }
14120
- if (P.touches[2])
14121
- U.boxSelectionEnabled() && P.preventDefault();
14122
- else if (!P.touches[1]) {
14123
- if (P.touches[0]) {
14121
+ if (I.touches[2])
14122
+ U.boxSelectionEnabled() && I.preventDefault();
14123
+ else if (!I.touches[1]) {
14124
+ if (I.touches[0]) {
14124
14125
  var Re = t.findNearestElements($[0], $[1], !0, !0), Le = Re[0];
14125
14126
  if (Le != null && (Le.activate(), t.touchData.start = Le, t.touchData.starts = Re, t.nodeIsGrabbable(Le))) {
14126
14127
  var je = t.dragData.touchDragEles = U.collection(), $e = null;
@@ -14134,48 +14135,48 @@ ua.load = function() {
14134
14135
  et.emit(oe("grab"));
14135
14136
  }) : Le.emit(oe("grab"));
14136
14137
  }
14137
- n(Le, ["touchstart", "tapstart", "vmousedown"], P, {
14138
+ n(Le, ["touchstart", "tapstart", "vmousedown"], I, {
14138
14139
  x: $[0],
14139
14140
  y: $[1]
14140
14141
  }), Le == null && (t.data.bgActivePosistion = {
14141
14142
  x: j[0],
14142
14143
  y: j[1]
14143
14144
  }, t.redrawHint("select", !0), t.redraw()), t.touchData.singleTouchMoved = !1, t.touchData.singleTouchStartTime = +/* @__PURE__ */ new Date(), clearTimeout(t.touchData.tapholdTimeout), t.touchData.tapholdTimeout = setTimeout(function() {
14144
- t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && n(t.touchData.start, ["taphold"], P, {
14145
+ t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && n(t.touchData.start, ["taphold"], I, {
14145
14146
  x: $[0],
14146
14147
  y: $[1]
14147
14148
  });
14148
14149
  }, t.tapholdDuration);
14149
14150
  }
14150
14151
  }
14151
- if (P.touches.length >= 1) {
14152
+ if (I.touches.length >= 1) {
14152
14153
  for (var bt = t.touchData.startPosition = [null, null, null, null, null, null], Ke = 0; Ke < $.length; Ke++)
14153
14154
  bt[Ke] = K[Ke] = $[Ke];
14154
- var st = P.touches[0];
14155
+ var st = I.touches[0];
14155
14156
  t.touchData.startGPosition = [st.clientX, st.clientY];
14156
14157
  }
14157
14158
  }
14158
14159
  }, !1);
14159
14160
  var we;
14160
- t.registerBinding(e, "touchmove", we = function(P) {
14161
+ t.registerBinding(e, "touchmove", we = function(I) {
14161
14162
  var U = t.touchData.capture;
14162
- if (!(!U && !D(P))) {
14163
+ if (!(!U && !D(I))) {
14163
14164
  var $ = t.selection, K = t.cy, j = t.touchData.now, oe = t.touchData.earlier, te = K.zoom();
14164
- if (P.touches[0]) {
14165
- var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14165
+ if (I.touches[0]) {
14166
+ var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14166
14167
  j[0] = fe[0], j[1] = fe[1];
14167
14168
  }
14168
- if (P.touches[1]) {
14169
- var fe = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14169
+ if (I.touches[1]) {
14170
+ var fe = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14170
14171
  j[2] = fe[0], j[3] = fe[1];
14171
14172
  }
14172
- if (P.touches[2]) {
14173
- var fe = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14173
+ if (I.touches[2]) {
14174
+ var fe = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14174
14175
  j[4] = fe[0], j[5] = fe[1];
14175
14176
  }
14176
14177
  var le = function(pv) {
14177
14178
  return {
14178
- originalEvent: P,
14179
+ originalEvent: I,
14179
14180
  type: pv,
14180
14181
  position: {
14181
14182
  x: j[0],
@@ -14183,15 +14184,15 @@ ua.load = function() {
14183
14184
  }
14184
14185
  };
14185
14186
  }, me = t.touchData.startGPosition, Ae;
14186
- if (U && P.touches[0] && me) {
14187
+ if (U && I.touches[0] && me) {
14187
14188
  for (var Ce = [], ce = 0; ce < j.length; ce++)
14188
14189
  Ce[ce] = j[ce] - oe[ce];
14189
- var Re = P.touches[0].clientX - me[0], Le = Re * Re, je = P.touches[0].clientY - me[1], $e = je * je, bt = Le + $e;
14190
+ var Re = I.touches[0].clientX - me[0], Le = Re * Re, je = I.touches[0].clientY - me[1], $e = je * je, bt = Le + $e;
14190
14191
  Ae = bt >= t.touchTapThreshold2;
14191
14192
  }
14192
14193
  if (U && t.touchData.cxt) {
14193
- P.preventDefault();
14194
- var Ke = P.touches[0].clientX - z, st = P.touches[0].clientY - V, et = P.touches[1].clientX - z, ft = P.touches[1].clientY - V, tr = Ie(Ke, st, et, ft), Ze = tr / ee, Xt = 150, $t = Xt * Xt, _r = 1.5, Wa = _r * _r;
14194
+ I.preventDefault();
14195
+ var Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, tr = Pe(Ke, st, et, ft), Ze = tr / ee, Xt = 150, $t = Xt * Xt, _r = 1.5, Wa = _r * _r;
14195
14196
  if (Ze >= Wa || tr >= $t) {
14196
14197
  t.touchData.cxt = !1, t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14197
14198
  var xr = le("cxttapend");
@@ -14203,10 +14204,10 @@ ua.load = function() {
14203
14204
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.touchData.start ? t.touchData.start.emit(xr) : K.emit(xr), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxtDragged = !0;
14204
14205
  var Tt = t.findNearestElement(j[0], j[1], !0, !0);
14205
14206
  (!t.touchData.cxtOver || Tt !== t.touchData.cxtOver) && (t.touchData.cxtOver && t.touchData.cxtOver.emit(le("cxtdragout")), t.touchData.cxtOver = Tt, Tt && Tt.emit(le("cxtdragover")));
14206
- } else if (U && P.touches[2] && K.boxSelectionEnabled())
14207
- P.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, $[4] = 1, !$ || $.length === 0 || $[0] === void 0 ? ($[0] = (j[0] + j[2] + j[4]) / 3, $[1] = (j[1] + j[3] + j[5]) / 3, $[2] = (j[0] + j[2] + j[4]) / 3 + 1, $[3] = (j[1] + j[3] + j[5]) / 3 + 1) : ($[2] = (j[0] + j[2] + j[4]) / 3, $[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14208
- else if (U && P.touches[1] && !t.touchData.didSelect && K.zoomingEnabled() && K.panningEnabled() && K.userZoomingEnabled() && K.userPanningEnabled()) {
14209
- P.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14207
+ } else if (U && I.touches[2] && K.boxSelectionEnabled())
14208
+ I.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, $[4] = 1, !$ || $.length === 0 || $[0] === void 0 ? ($[0] = (j[0] + j[2] + j[4]) / 3, $[1] = (j[1] + j[3] + j[5]) / 3, $[2] = (j[0] + j[2] + j[4]) / 3 + 1, $[3] = (j[1] + j[3] + j[5]) / 3 + 1) : ($[2] = (j[0] + j[2] + j[4]) / 3, $[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14209
+ else if (U && I.touches[1] && !t.touchData.didSelect && K.zoomingEnabled() && K.panningEnabled() && K.userZoomingEnabled() && K.userPanningEnabled()) {
14210
+ I.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14210
14211
  var gt = t.dragData.touchDragEles;
14211
14212
  if (gt) {
14212
14213
  t.redrawHint("drag", !0);
@@ -14215,7 +14216,7 @@ ua.load = function() {
14215
14216
  fa.grabbed = !1, fa.rscratch.inDragLayer = !1;
14216
14217
  }
14217
14218
  }
14218
- var Rt = t.touchData.start, Ke = P.touches[0].clientX - z, st = P.touches[0].clientY - V, et = P.touches[1].clientX - z, ft = P.touches[1].clientY - V, Po = ve(Ke, st, et, ft), ov = Po / W;
14219
+ var Rt = t.touchData.start, Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, Io = ve(Ke, st, et, ft), ov = Io / W;
14219
14220
  if (re) {
14220
14221
  var uv = Ke - G, lv = st - H, fv = et - Y, cv = ft - X, vv = (uv + fv) / 2, hv = (lv + cv) / 2, ca = K.zoom(), ni = ca * ov, Ka = K.pan(), Mo = J[0] * ca + Ka.x, Oo = J[1] * ca + Ka.y, dv = {
14221
14222
  x: -ni / ca * (Mo - Ka.x - vv) + Mo,
@@ -14229,23 +14230,23 @@ ua.load = function() {
14229
14230
  zoom: ni,
14230
14231
  pan: dv,
14231
14232
  cancelOnFailedZoom: !0
14232
- }), K.emit(le("pinchzoom")), W = Po, G = Ke, H = st, Y = et, X = ft, t.pinching = !0;
14233
+ }), K.emit(le("pinchzoom")), W = Io, G = Ke, H = st, Y = et, X = ft, t.pinching = !0;
14233
14234
  }
14234
- if (P.touches[0]) {
14235
- var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14235
+ if (I.touches[0]) {
14236
+ var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14236
14237
  j[0] = fe[0], j[1] = fe[1];
14237
14238
  }
14238
- if (P.touches[1]) {
14239
- var fe = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14239
+ if (I.touches[1]) {
14240
+ var fe = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14240
14241
  j[2] = fe[0], j[3] = fe[1];
14241
14242
  }
14242
- if (P.touches[2]) {
14243
- var fe = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14243
+ if (I.touches[2]) {
14244
+ var fe = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14244
14245
  j[4] = fe[0], j[5] = fe[1];
14245
14246
  }
14246
- } else if (P.touches[0] && !t.touchData.didSelect) {
14247
+ } else if (I.touches[0] && !t.touchData.didSelect) {
14247
14248
  var Ot = t.touchData.start, ii = t.touchData.last, Tt;
14248
- if (!t.hoverData.draggingEles && !t.swipePanning && (Tt = t.findNearestElement(j[0], j[1], !0, !0)), U && Ot != null && P.preventDefault(), U && Ot != null && t.nodeIsDraggable(Ot))
14249
+ if (!t.hoverData.draggingEles && !t.swipePanning && (Tt = t.findNearestElement(j[0], j[1], !0, !0)), U && Ot != null && I.preventDefault(), U && Ot != null && t.nodeIsDraggable(Ot))
14249
14250
  if (Ae) {
14250
14251
  var gt = t.dragData.touchDragEles, ko = !t.dragData.didDrag;
14251
14252
  ko && p(gt, {
@@ -14265,7 +14266,7 @@ ua.load = function() {
14265
14266
  var kt = t.touchData.dragDelta = t.touchData.dragDelta || [];
14266
14267
  kt.length === 0 ? (kt.push(Ce[0]), kt.push(Ce[1])) : (kt[0] += Ce[0], kt[1] += Ce[1]);
14267
14268
  }
14268
- if (n(Ot || Tt, ["touchmove", "tapdrag", "vmousemove"], P, {
14269
+ if (n(Ot || Tt, ["touchmove", "tapdrag", "vmousemove"], I, {
14269
14270
  x: j[0],
14270
14271
  y: j[1]
14271
14272
  }), (!Ot || !Ot.grabbed()) && Tt != ii && (ii && ii.emit(le("tapdragout")), Tt && Tt.emit(le("tapdragover"))), t.touchData.last = Tt, U)
@@ -14273,52 +14274,52 @@ ua.load = function() {
14273
14274
  j[Ct] && t.touchData.startPosition[Ct] && Ae && (t.touchData.singleTouchMoved = !0);
14274
14275
  if (U && (Ot == null || Ot.pannable()) && K.panningEnabled() && K.userPanningEnabled()) {
14275
14276
  var gv = s(Ot, t.touchData.starts);
14276
- gv && (P.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = Wr(t.touchData.startPosition)), t.swipePanning ? (K.panBy({
14277
+ gv && (I.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = Wr(t.touchData.startPosition)), t.swipePanning ? (K.panBy({
14277
14278
  x: Ce[0] * te,
14278
14279
  y: Ce[1] * te
14279
14280
  }), K.emit(le("dragpan"))) : Ae && (t.swipePanning = !0, K.panBy({
14280
14281
  x: Re * te,
14281
14282
  y: je * te
14282
14283
  }), K.emit(le("dragpan")), Ot && (Ot.unactivate(), t.redrawHint("select", !0), t.touchData.start = null)));
14283
- var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14284
+ var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14284
14285
  j[0] = fe[0], j[1] = fe[1];
14285
14286
  }
14286
14287
  }
14287
14288
  for (var ce = 0; ce < j.length; ce++)
14288
14289
  oe[ce] = j[ce];
14289
- U && P.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
14290
+ U && I.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
14290
14291
  }
14291
14292
  }, !1);
14292
14293
  var ye;
14293
- t.registerBinding(e, "touchcancel", ye = function(P) {
14294
+ t.registerBinding(e, "touchcancel", ye = function(I) {
14294
14295
  var U = t.touchData.start;
14295
14296
  t.touchData.capture = !1, U && U.unactivate();
14296
14297
  });
14297
14298
  var ie, he, de, xe;
14298
- if (t.registerBinding(e, "touchend", ie = function(P) {
14299
+ if (t.registerBinding(e, "touchend", ie = function(I) {
14299
14300
  var U = t.touchData.start, $ = t.touchData.capture;
14300
14301
  if ($)
14301
- P.touches.length === 0 && (t.touchData.capture = !1), P.preventDefault();
14302
+ I.touches.length === 0 && (t.touchData.capture = !1), I.preventDefault();
14302
14303
  else
14303
14304
  return;
14304
14305
  var K = t.selection;
14305
14306
  t.swipePanning = !1, t.hoverData.draggingEles = !1;
14306
14307
  var j = t.cy, oe = j.zoom(), te = t.touchData.now, fe = t.touchData.earlier;
14307
- if (P.touches[0]) {
14308
- var le = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14308
+ if (I.touches[0]) {
14309
+ var le = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14309
14310
  te[0] = le[0], te[1] = le[1];
14310
14311
  }
14311
- if (P.touches[1]) {
14312
- var le = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14312
+ if (I.touches[1]) {
14313
+ var le = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14313
14314
  te[2] = le[0], te[3] = le[1];
14314
14315
  }
14315
- if (P.touches[2]) {
14316
- var le = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14316
+ if (I.touches[2]) {
14317
+ var le = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14317
14318
  te[4] = le[0], te[5] = le[1];
14318
14319
  }
14319
14320
  var me = function($t) {
14320
14321
  return {
14321
- originalEvent: P,
14322
+ originalEvent: I,
14322
14323
  type: $t,
14323
14324
  position: {
14324
14325
  x: te[0],
@@ -14336,7 +14337,7 @@ ua.load = function() {
14336
14337
  t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !1, t.touchData.start = null, t.redraw();
14337
14338
  return;
14338
14339
  }
14339
- if (!P.touches[2] && j.boxSelectionEnabled() && t.touchData.selecting) {
14340
+ if (!I.touches[2] && j.boxSelectionEnabled() && t.touchData.selecting) {
14340
14341
  t.touchData.selecting = !1;
14341
14342
  var ce = j.collection(t.getAllInBox(K[0], K[1], K[2], K[3]));
14342
14343
  K[0] = void 0, K[1] = void 0, K[2] = void 0, K[3] = void 0, K[4] = 0, t.redrawHint("select", !0), j.emit(me("boxend"));
@@ -14345,86 +14346,86 @@ ua.load = function() {
14345
14346
  };
14346
14347
  ce.emit(me("box")).stdFilter(Re).select().emit(me("boxselect")), ce.nonempty() && t.redrawHint("eles", !0), t.redraw();
14347
14348
  }
14348
- if (U != null && U.unactivate(), P.touches[2])
14349
+ if (U != null && U.unactivate(), I.touches[2])
14349
14350
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14350
- else if (!P.touches[1]) {
14351
- if (!P.touches[0]) {
14352
- if (!P.touches[0]) {
14351
+ else if (!I.touches[1]) {
14352
+ if (!I.touches[0]) {
14353
+ if (!I.touches[0]) {
14353
14354
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14354
14355
  var Le = t.dragData.touchDragEles;
14355
14356
  if (U != null) {
14356
14357
  var je = U._private.grabbed;
14357
- y(Le), t.redrawHint("drag", !0), t.redrawHint("eles", !0), je && (U.emit(me("freeon")), Le.emit(me("free")), t.dragData.didDrag && (U.emit(me("dragfreeon")), Le.emit(me("dragfree")))), n(U, ["touchend", "tapend", "vmouseup", "tapdragout"], P, {
14358
+ y(Le), t.redrawHint("drag", !0), t.redrawHint("eles", !0), je && (U.emit(me("freeon")), Le.emit(me("free")), t.dragData.didDrag && (U.emit(me("dragfreeon")), Le.emit(me("dragfree")))), n(U, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14358
14359
  x: te[0],
14359
14360
  y: te[1]
14360
14361
  }), U.unactivate(), t.touchData.start = null;
14361
14362
  } else {
14362
14363
  var $e = t.findNearestElement(te[0], te[1], !0, !0);
14363
- n($e, ["touchend", "tapend", "vmouseup", "tapdragout"], P, {
14364
+ n($e, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14364
14365
  x: te[0],
14365
14366
  y: te[1]
14366
14367
  });
14367
14368
  }
14368
14369
  var bt = t.touchData.startPosition[0] - te[0], Ke = bt * bt, st = t.touchData.startPosition[1] - te[1], et = st * st, ft = Ke + et, tr = ft * oe * oe;
14369
- t.touchData.singleTouchMoved || (U || j.$(":selected").unselect(["tapunselect"]), n(U, ["tap", "vclick"], P, {
14370
+ t.touchData.singleTouchMoved || (U || j.$(":selected").unselect(["tapunselect"]), n(U, ["tap", "vclick"], I, {
14370
14371
  x: te[0],
14371
14372
  y: te[1]
14372
- }), he = !1, P.timeStamp - xe <= j.multiClickDebounceTime() ? (de && clearTimeout(de), he = !0, xe = null, n(U, ["dbltap", "vdblclick"], P, {
14373
+ }), he = !1, I.timeStamp - xe <= j.multiClickDebounceTime() ? (de && clearTimeout(de), he = !0, xe = null, n(U, ["dbltap", "vdblclick"], I, {
14373
14374
  x: te[0],
14374
14375
  y: te[1]
14375
14376
  })) : (de = setTimeout(function() {
14376
- he || n(U, ["onetap", "voneclick"], P, {
14377
+ he || n(U, ["onetap", "voneclick"], I, {
14377
14378
  x: te[0],
14378
14379
  y: te[1]
14379
14380
  });
14380
- }, j.multiClickDebounceTime()), xe = P.timeStamp)), U != null && !t.dragData.didDrag && U._private.selectable && tr < t.touchTapThreshold2 && !t.pinching && (j.selectionType() === "single" ? (j.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"])) : U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
14381
+ }, j.multiClickDebounceTime()), xe = I.timeStamp)), U != null && !t.dragData.didDrag && U._private.selectable && tr < t.touchTapThreshold2 && !t.pinching && (j.selectionType() === "single" ? (j.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"])) : U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
14381
14382
  }
14382
14383
  }
14383
14384
  }
14384
14385
  for (var Ze = 0; Ze < te.length; Ze++)
14385
14386
  fe[Ze] = te[Ze];
14386
- t.dragData.didDrag = !1, P.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), P.touches.length < 2 && (P.touches.length === 1 && (t.touchData.startGPosition = [P.touches[0].clientX, P.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
14387
+ t.dragData.didDrag = !1, I.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), I.touches.length < 2 && (I.touches.length === 1 && (t.touchData.startGPosition = [I.touches[0].clientX, I.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
14387
14388
  }, !1), typeof TouchEvent > "u") {
14388
- var pe = [], De = function(P) {
14389
+ var pe = [], De = function(I) {
14389
14390
  return {
14390
- clientX: P.clientX,
14391
- clientY: P.clientY,
14391
+ clientX: I.clientX,
14392
+ clientY: I.clientY,
14392
14393
  force: 1,
14393
- identifier: P.pointerId,
14394
- pageX: P.pageX,
14395
- pageY: P.pageY,
14396
- radiusX: P.width / 2,
14397
- radiusY: P.height / 2,
14398
- screenX: P.screenX,
14399
- screenY: P.screenY,
14400
- target: P.target
14394
+ identifier: I.pointerId,
14395
+ pageX: I.pageX,
14396
+ pageY: I.pageY,
14397
+ radiusX: I.width / 2,
14398
+ radiusY: I.height / 2,
14399
+ screenX: I.screenX,
14400
+ screenY: I.screenY,
14401
+ target: I.target
14401
14402
  };
14402
- }, Pe = function(P) {
14403
+ }, Ie = function(I) {
14403
14404
  return {
14404
- event: P,
14405
- touch: De(P)
14405
+ event: I,
14406
+ touch: De(I)
14406
14407
  };
14407
- }, Ne = function(P) {
14408
- pe.push(Pe(P));
14409
- }, Be = function(P) {
14408
+ }, Ne = function(I) {
14409
+ pe.push(Ie(I));
14410
+ }, Be = function(I) {
14410
14411
  for (var U = 0; U < pe.length; U++) {
14411
14412
  var $ = pe[U];
14412
- if ($.event.pointerId === P.pointerId) {
14413
+ if ($.event.pointerId === I.pointerId) {
14413
14414
  pe.splice(U, 1);
14414
14415
  return;
14415
14416
  }
14416
14417
  }
14417
- }, Fe = function(P) {
14418
+ }, Fe = function(I) {
14418
14419
  var U = pe.filter(function($) {
14419
- return $.event.pointerId === P.pointerId;
14420
+ return $.event.pointerId === I.pointerId;
14420
14421
  })[0];
14421
- U.event = P, U.touch = De(P);
14422
- }, Ee = function(P) {
14423
- P.touches = pe.map(function(U) {
14422
+ U.event = I, U.touch = De(I);
14423
+ }, Ee = function(I) {
14424
+ I.touches = pe.map(function(U) {
14424
14425
  return U.touch;
14425
14426
  });
14426
- }, ue = function(P) {
14427
- return P.pointerType === "mouse" || P.pointerType === 4;
14427
+ }, ue = function(I) {
14428
+ return I.pointerType === "mouse" || I.pointerType === 4;
14428
14429
  };
14429
14430
  t.registerBinding(t.container, "pointerdown", function(Q) {
14430
14431
  ue(Q) || (Q.preventDefault(), Ne(Q), Ee(Q), Te(Q));
@@ -14447,7 +14448,7 @@ jt.generatePolygon = function(t, e) {
14447
14448
  this.renderer.nodeShapeImpl("polygon", a, n, i, s, o, this.points);
14448
14449
  },
14449
14450
  intersectLine: function(a, n, i, s, o, u, l, f) {
14450
- return Ia(o, u, this.points, a, n, i / 2, s / 2, l);
14451
+ return Pa(o, u, this.points, a, n, i / 2, s / 2, l);
14451
14452
  },
14452
14453
  checkPoint: function(a, n, i, s, o, u, l, f) {
14453
14454
  return Jt(a, n, this.points, u, l, s, o, [0, -1], i);
@@ -14544,7 +14545,7 @@ jt.generateCutRectangle = function() {
14544
14545
  },
14545
14546
  intersectLine: function(e, r, a, n, i, s, o, u) {
14546
14547
  var l = this.generateCutTrianglePts(a + 2 * o, n + 2 * o, e, r, u), f = [].concat.apply([], [l.topLeft.splice(0, 4), l.topRight.splice(0, 4), l.bottomRight.splice(0, 4), l.bottomLeft.splice(0, 4)]);
14547
- return Ia(i, s, f, e, r);
14548
+ return Pa(i, s, f, e, r);
14548
14549
  },
14549
14550
  checkPoint: function(e, r, a, n, i, s, o, u) {
14550
14551
  var l = u === "auto" ? this.cornerLength : u;
@@ -14595,7 +14596,7 @@ jt.generateBarrel = function() {
14595
14596
  }, c);
14596
14597
  return [g[0], g[1], y.x, y.y, b.x, b.y, m.x, m.y, g[4], g[5]];
14597
14598
  }, d = [].concat(h(v.topLeft), h(v.topRight), h(v.bottomRight), h(v.bottomLeft));
14598
- return Ia(i, s, d, e, r);
14599
+ return Pa(i, s, d, e, r);
14599
14600
  },
14600
14601
  generateBarrelBezierPts: function(e, r, a, n) {
14601
14602
  var i = r / 2, s = e / 2, o = a - s, u = a + s, l = n - i, f = n + i, c = _s(e, r), v = c.heightOffset, h = c.widthOffset, d = c.ctrlPtOffsetPct * e, p = {
@@ -14611,7 +14612,7 @@ jt.generateBarrel = function() {
14611
14612
  if (Jt(e, r, this.points, s, o, n, i - 2 * f, [0, -1], a) || Jt(e, r, this.points, s, o, n - 2 * c, i, [0, -1], a))
14612
14613
  return !0;
14613
14614
  for (var v = this.generateBarrelBezierPts(n, i, s, o), h = function(x, C, D) {
14614
- var A = D[4], L = D[2], R = D[0], I = D[5], M = D[1], N = Math.min(A, R), O = Math.max(A, R), k = Math.min(I, M), B = Math.max(I, M);
14615
+ var A = D[4], L = D[2], R = D[0], P = D[5], M = D[1], N = Math.min(A, R), O = Math.max(A, R), k = Math.min(P, M), B = Math.max(P, M);
14615
14616
  if (N <= x && x <= O && k <= C && C <= B) {
14616
14617
  var _ = hd(A, L, R), F = id(_[0], _[1], _[2], x), G = F.filter(function(H) {
14617
14618
  return 0 <= H && H <= 1;
@@ -14686,7 +14687,7 @@ Xa.timeToRender = function() {
14686
14687
  return this.redrawTotalTime / this.redrawCount;
14687
14688
  };
14688
14689
  Xa.redraw = function(t) {
14689
- t = t || Pf();
14690
+ t = t || If();
14690
14691
  var e = this;
14691
14692
  e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t;
14692
14693
  };
@@ -14840,7 +14841,7 @@ var Ls = 1e3 / 60, _c = {
14840
14841
  }
14841
14842
  };
14842
14843
  }
14843
- }, Iy = /* @__PURE__ */ (function() {
14844
+ }, Py = /* @__PURE__ */ (function() {
14844
14845
  function t(e) {
14845
14846
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Rn;
14846
14847
  yr(this, t), this.idsByKey = new Zt(), this.keyForId = new Zt(), this.cachesByLvl = new Zt(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r;
@@ -14964,7 +14965,7 @@ var Ls = 1e3 / 60, _c = {
14964
14965
  return i && this.invalidateKey(n), i || this.getNumberOfIdsForKey(n) === 0;
14965
14966
  }
14966
14967
  }]);
14967
- })(), $l = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Py = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14968
+ })(), $l = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Iy = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14968
14969
  dequeue: "dequeue",
14969
14970
  downscale: "downscale",
14970
14971
  highQuality: "highQuality"
@@ -14982,7 +14983,7 @@ var Ls = 1e3 / 60, _c = {
14982
14983
  var a = this;
14983
14984
  a.renderer = e, a.onDequeues = [];
14984
14985
  var n = Yy(r);
14985
- be(a, n), a.lookup = new Iy(n.getKey, n.doesEleInvalidateKey), a.setupDequeueing();
14986
+ be(a, n), a.lookup = new Py(n.getKey, n.doesEleInvalidateKey), a.setupDequeueing();
14986
14987
  }, it = xa.prototype;
14987
14988
  it.reasons = Zr;
14988
14989
  it.getTextureQueue = function(t) {
@@ -15049,9 +15050,9 @@ it.getElement = function(t, e, r, a, n) {
15049
15050
  var L;
15050
15051
  if (!m && !E && !T)
15051
15052
  for (var R = a - 1; R >= bn; R--) {
15052
- var I = u.get(t, R);
15053
- if (I) {
15054
- L = I;
15053
+ var P = u.get(t, R);
15054
+ if (P) {
15055
+ L = P;
15055
15056
  break;
15056
15057
  }
15057
15058
  }
@@ -15067,7 +15068,7 @@ it.getElement = function(t, e, r, a, n) {
15067
15068
  width: c,
15068
15069
  height: f,
15069
15070
  scaledLabelShown: v
15070
- }, g.usedWidth += Math.ceil(c + Py), g.eleCaches.push(h), u.set(t, a, h), i.checkTextureFullness(g), h;
15071
+ }, g.usedWidth += Math.ceil(c + Iy), g.eleCaches.push(h), u.set(t, a, h), i.checkTextureFullness(g), h;
15071
15072
  };
15072
15073
  it.invalidateElements = function(t) {
15073
15074
  for (var e = 0; e < t.length; e++)
@@ -15250,8 +15251,8 @@ dt.getLayers = function(t, e, r) {
15250
15251
  var L = Math.ceil(c.w * l), R = Math.ceil(c.h * l);
15251
15252
  if (L > Kl || R > Kl)
15252
15253
  return null;
15253
- var I = L * R;
15254
- if (I > em)
15254
+ var P = L * R;
15255
+ if (P > em)
15255
15256
  return null;
15256
15257
  var M = a.makeLayer(c, r);
15257
15258
  if (A != null) {
@@ -15647,7 +15648,7 @@ er.drawEdgePath = function(t, e, r, a) {
15647
15648
  try {
15648
15649
  for (p.s(); !(g = p.n()).done; ) {
15649
15650
  var y = g.value;
15650
- Ic(e, y);
15651
+ Pc(e, y);
15651
15652
  }
15652
15653
  } catch (m) {
15653
15654
  p.e(m);
@@ -15694,7 +15695,7 @@ er.drawArrowShape = function(t, e, r, a, n, i, s, o, u) {
15694
15695
  y: o
15695
15696
  }, p = t.pstyle("arrow-scale").value, g = this.getArrowWidth(a, p), y = l.arrowShapes[n];
15696
15697
  if (f) {
15697
- var b = l.arrowPathCache = l.arrowPathCache || [], m = Ir(n), E = b[m];
15698
+ var b = l.arrowPathCache = l.arrowPathCache || [], m = Pr(n), E = b[m];
15698
15699
  E != null ? (v = e = E, c = !0) : (v = e = new Path2D(), b[m] = v);
15699
15700
  }
15700
15701
  c || (e.beginPath && e.beginPath(), f ? y.draw(e, 1, 0, {
@@ -15725,8 +15726,8 @@ Lo.drawInscribedImage = function(t, e, r, a, n) {
15725
15726
  var L = Math.max(g / D, y / A);
15726
15727
  D *= L, A *= L;
15727
15728
  }
15728
- var R = o - g / 2, I = f(r, "background-position-x", "units", a), M = f(r, "background-position-x", "pfValue", a);
15729
- I === "%" ? R += (g - D) * M : R += M;
15729
+ var R = o - g / 2, P = f(r, "background-position-x", "units", a), M = f(r, "background-position-x", "pfValue", a);
15730
+ P === "%" ? R += (g - D) * M : R += M;
15730
15731
  var N = f(r, "background-offset-x", "units", a), O = f(r, "background-offset-x", "pfValue", a);
15731
15732
  N === "%" ? R += (g - D) * O : R += O;
15732
15733
  var k = u - y / 2, B = f(r, "background-position-y", "units", a), _ = f(r, "background-position-y", "pfValue", a);
@@ -15828,7 +15829,7 @@ Fr.drawText = function(t, e, r) {
15828
15829
  }
15829
15830
  var S = e.pstyle("text-background-opacity").value, w = e.pstyle("text-border-opacity").value, x = e.pstyle("text-border-width").pfValue, C = e.pstyle("text-background-padding").pfValue, D = e.pstyle("text-background-shape").strValue, A = D === "round-rectangle" || D === "roundrectangle", L = D === "circle", R = 2;
15830
15831
  if (S > 0 || x > 0 && w > 0) {
15831
- var I = t.fillStyle, M = t.strokeStyle, N = t.lineWidth, O = e.pstyle("text-background-color").value, k = e.pstyle("text-border-color").value, B = e.pstyle("text-border-style").value, _ = S > 0, F = x > 0 && w > 0, G = u - C;
15832
+ var P = t.fillStyle, M = t.strokeStyle, N = t.lineWidth, O = e.pstyle("text-background-color").value, k = e.pstyle("text-border-color").value, B = e.pstyle("text-border-style").value, _ = S > 0, F = x > 0 && w > 0, G = u - C;
15832
15833
  switch (m) {
15833
15834
  case "left":
15834
15835
  G -= d;
@@ -15858,7 +15859,7 @@ Fr.drawText = function(t, e, r) {
15858
15859
  var W = x / 2;
15859
15860
  t.beginPath(), A ? jl(t, G + W, H + W, Y - 2 * W, X - 2 * W, R) : t.rect(G + W, H + W, Y - 2 * W, X - 2 * W), t.stroke();
15860
15861
  }
15861
- t.fillStyle = I, t.strokeStyle = M, t.lineWidth = N, t.setLineDash && t.setLineDash([]);
15862
+ t.fillStyle = P, t.strokeStyle = M, t.lineWidth = N, t.setLineDash && t.setLineDash([]);
15862
15863
  }
15863
15864
  var ee = 2 * e.pstyle("text-outline-width").pfValue;
15864
15865
  if (ee > 0 && (t.lineWidth = ee), e.pstyle("text-wrap").value === "wrap") {
@@ -15897,19 +15898,19 @@ wr.drawNode = function(t, e, r) {
15897
15898
  });
15898
15899
  }
15899
15900
  }
15900
- var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, I = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, H = e.pstyle("outline-color").value, Y = e.pstyle("outline-style").value, X = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15901
+ var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, P = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, H = e.pstyle("outline-color").value, Y = e.pstyle("outline-style").value, X = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15901
15902
  ee !== "auto" && (ee = e.pstyle("corner-radius").pfValue);
15902
15903
  var ae = function() {
15903
15904
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : R;
15904
15905
  s.eleFillStyle(t, e, ue);
15905
15906
  }, J = function() {
15906
15907
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : F;
15907
- s.colorStrokeStyle(t, I[0], I[1], I[2], ue);
15908
+ s.colorStrokeStyle(t, P[0], P[1], P[2], ue);
15908
15909
  }, z = function() {
15909
15910
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : X;
15910
15911
  s.colorStrokeStyle(t, H[0], H[1], H[2], ue);
15911
- }, V = function(ue, Q, P, U) {
15912
- var $ = s.nodePathCache = s.nodePathCache || [], K = Af(P === "polygon" ? P + "," + U.join(",") : P, "" + Q, "" + ue, "" + ee), j = $[K], oe, te = !1;
15912
+ }, V = function(ue, Q, I, U) {
15913
+ var $ = s.nodePathCache = s.nodePathCache || [], K = Af(I === "polygon" ? I + "," + U.join(",") : I, "" + Q, "" + ue, "" + ee), j = $[K], oe, te = !1;
15913
15914
  return j != null ? (oe = j, te = !0, f.pathCache = oe) : (oe = new Path2D(), $[K] = f.pathCache = oe), {
15914
15915
  path: oe,
15915
15916
  cacheHit: te
@@ -15929,8 +15930,8 @@ wr.drawNode = function(t, e, r) {
15929
15930
  }), s.nodeShapes[s.getNodeShape(e)].draw(d || t, ue.x, ue.y, o, u, ee, f);
15930
15931
  }
15931
15932
  h ? t.fill(d) : t.fill();
15932
- }, Ie = function() {
15933
- for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, P = l.backgrounding, U = 0, $ = 0; $ < T.length; $++) {
15933
+ }, Pe = function() {
15934
+ for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, I = l.backgrounding, U = 0, $ = 0; $ < T.length; $++) {
15934
15935
  var K = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", $);
15935
15936
  if (Q && K === "over" || !Q && K === "inside") {
15936
15937
  U++;
@@ -15938,7 +15939,7 @@ wr.drawNode = function(t, e, r) {
15938
15939
  }
15939
15940
  E[$] && T[$].complete && !T[$].error && (U++, s.drawInscribedImage(t, T[$], e, $, ue));
15940
15941
  }
15941
- l.backgrounding = U !== S, P !== l.backgrounding && e.updateStyle(!1);
15942
+ l.backgrounding = U !== S, I !== l.backgrounding && e.updateStyle(!1);
15942
15943
  }, Te = function() {
15943
15944
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v;
15944
15945
  s.hasPie(e) && (s.drawPie(t, e, Q), ue && (h || s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f)));
@@ -15946,8 +15947,8 @@ wr.drawNode = function(t, e, r) {
15946
15947
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v;
15947
15948
  s.hasStripe(e) && (t.save(), h ? t.clip(f.pathCache) : (s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f), t.clip()), s.drawStripe(t, e, Q), t.restore(), ue && (h || s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f)));
15948
15949
  }, ye = function() {
15949
- var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = (A > 0 ? A : -A) * ue, P = A > 0 ? 0 : 255;
15950
- A !== 0 && (s.colorFillStyle(t, P, P, P, Q), h ? t.fill(d) : t.fill());
15950
+ var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = (A > 0 ? A : -A) * ue, I = A > 0 ? 0 : 255;
15951
+ A !== 0 && (s.colorFillStyle(t, I, I, I, Q), h ? t.fill(d) : t.fill());
15951
15952
  }, ie = function() {
15952
15953
  if (L > 0) {
15953
15954
  if (t.lineWidth = L, t.lineCap = O, t.lineJoin = N, t.setLineDash)
@@ -16000,9 +16001,9 @@ wr.drawNode = function(t, e, r) {
16000
16001
  x: 0,
16001
16002
  y: 0
16002
16003
  });
16003
- var Q = s.getNodeShape(e), P = L;
16004
- k === "inside" && (P = 0), k === "outside" && (P *= 2);
16005
- var U = (o + P + (G + W)) / o, $ = (u + P + (G + W)) / u, K = o * U, j = u * $, oe = s.nodeShapes[Q].points, te;
16004
+ var Q = s.getNodeShape(e), I = L;
16005
+ k === "inside" && (I = 0), k === "outside" && (I *= 2);
16006
+ var U = (o + I + (G + W)) / o, $ = (u + I + (G + W)) / u, K = o * U, j = u * $, oe = s.nodeShapes[Q].points, te;
16006
16007
  if (h) {
16007
16008
  var fe = V(K, j, Q, oe);
16008
16009
  te = fe.path;
@@ -16011,8 +16012,8 @@ wr.drawNode = function(t, e, r) {
16011
16012
  s.drawEllipsePath(te || t, ue.x, ue.y, K, j);
16012
16013
  else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(Q)) {
16013
16014
  var le = 0, me = 0, Ae = 0;
16014
- Q === "round-diamond" ? le = (P + W + G) * 1.4 : Q === "round-heptagon" ? (le = (P + W + G) * 1.075, Ae = -(P / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (P + W + G) * 1.12 : Q === "round-pentagon" ? (le = (P + W + G) * 1.13, Ae = -(P / 2 + W + G) / 15) : Q === "round-tag" ? (le = (P + W + G) * 1.12, me = (P / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (P + W + G) * (Math.PI / 2), Ae = -(P + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || ($ = (u + le) / u, j = u * $)), ee = ee === "auto" ? Ff(K, j) : ee;
16015
- for (var Ce = K / 2, ce = j / 2, Re = ee + (P + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), $e = 0; $e < oe.length / 2; $e++)
16015
+ Q === "round-diamond" ? le = (I + W + G) * 1.4 : Q === "round-heptagon" ? (le = (I + W + G) * 1.075, Ae = -(I / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (I + W + G) * 1.12 : Q === "round-pentagon" ? (le = (I + W + G) * 1.13, Ae = -(I / 2 + W + G) / 15) : Q === "round-tag" ? (le = (I + W + G) * 1.12, me = (I / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (I + W + G) * (Math.PI / 2), Ae = -(I + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || ($ = (u + le) / u, j = u * $)), ee = ee === "auto" ? Ff(K, j) : ee;
16016
+ for (var Ce = K / 2, ce = j / 2, Re = ee + (I + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), $e = 0; $e < oe.length / 2; $e++)
16016
16017
  Le[$e] = {
16017
16018
  x: ue.x + me + Ce * oe[$e * 2],
16018
16019
  y: ue.y + Ae + ce * oe[$e * 2 + 1]
@@ -16022,22 +16023,22 @@ wr.drawNode = function(t, e, r) {
16022
16023
  st = Le[bt % ft], et = Le[(bt + 1) % ft], je[bt] = So(Ke, st, et, Re), Ke = st, st = et;
16023
16024
  s.drawRoundPolygonPath(te || t, ue.x + me, ue.y + Ae, o * U, u * $, oe, je);
16024
16025
  } else if (["roundrectangle", "round-rectangle"].includes(Q))
16025
- ee = ee === "auto" ? vr(K, j) : ee, s.drawRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (P + G + W) / 2);
16026
+ ee = ee === "auto" ? vr(K, j) : ee, s.drawRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (I + G + W) / 2);
16026
16027
  else if (["cutrectangle", "cut-rectangle"].includes(Q))
16027
- ee = ee === "auto" ? go() : ee, s.drawCutRectanglePath(te || t, ue.x, ue.y, K, j, null, ee + (P + G + W) / 4);
16028
+ ee = ee === "auto" ? go() : ee, s.drawCutRectanglePath(te || t, ue.x, ue.y, K, j, null, ee + (I + G + W) / 4);
16028
16029
  else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(Q))
16029
- ee = ee === "auto" ? vr(K, j) : ee, s.drawBottomRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (P + G + W) / 2);
16030
+ ee = ee === "auto" ? vr(K, j) : ee, s.drawBottomRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (I + G + W) / 2);
16030
16031
  else if (Q === "barrel")
16031
16032
  s.drawBarrelPath(te || t, ue.x, ue.y, K, j);
16032
16033
  else if (Q.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(Q)) {
16033
- var tr = (P + G + W) / o;
16034
- oe = In(Pn(oe, tr)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16034
+ var tr = (I + G + W) / o;
16035
+ oe = Pn(In(oe, tr)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16035
16036
  } else {
16036
- var Ze = (P + G + W) / o;
16037
- oe = In(Pn(oe, -Ze)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16037
+ var Ze = (I + G + W) / o;
16038
+ oe = Pn(In(oe, -Ze)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16038
16039
  }
16039
16040
  if (h ? t.stroke(te) : t.stroke(), Y === "double") {
16040
- t.lineWidth = P / 3;
16041
+ t.lineWidth = I / 3;
16041
16042
  var Xt = t.globalCompositeOperation;
16042
16043
  t.globalCompositeOperation = "destination-out", h ? t.stroke(te) : t.stroke(), t.globalCompositeOperation = Xt;
16043
16044
  }
@@ -16051,10 +16052,10 @@ wr.drawNode = function(t, e, r) {
16051
16052
  s.drawElementText(t, e, null, a);
16052
16053
  }, De = e.pstyle("ghost").value === "yes";
16053
16054
  if (De) {
16054
- var Pe = e.pstyle("ghost-offset-x").pfValue, Ne = e.pstyle("ghost-offset-y").pfValue, Be = e.pstyle("ghost-opacity").value, Fe = Be * v;
16055
- t.translate(Pe, Ne), z(), he(), ae(Be * R), ve(), Ie(Fe, !0), J(Be * F), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Ie(Fe, !1), ye(Fe), t.translate(-Pe, -Ne);
16055
+ var Ie = e.pstyle("ghost-offset-x").pfValue, Ne = e.pstyle("ghost-offset-y").pfValue, Be = e.pstyle("ghost-opacity").value, Fe = Be * v;
16056
+ t.translate(Ie, Ne), z(), he(), ae(Be * R), ve(), Pe(Fe, !0), J(Be * F), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Pe(Fe, !1), ye(Fe), t.translate(-Ie, -Ne);
16056
16057
  }
16057
- h && t.translate(-c.x, -c.y), xe(), h && t.translate(c.x, c.y), z(), he(), ae(), ve(), Ie(v, !0), J(), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Ie(v, !1), ye(), h && t.translate(-c.x, -c.y), pe(), de(), r && t.translate(y.x1, y.y1);
16058
+ h && t.translate(-c.x, -c.y), xe(), h && t.translate(c.x, c.y), z(), he(), ae(), ve(), Pe(v, !0), J(), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Pe(v, !1), ye(), h && t.translate(-c.x, -c.y), pe(), de(), r && t.translate(y.x1, y.y1);
16058
16059
  }
16059
16060
  };
16060
16061
  var qc = function(e) {
@@ -16138,7 +16139,7 @@ xt.createGradientStyleFor = function(t, e, r, a, n) {
16138
16139
  var i, s = this.usePaths(), o = r.pstyle(e + "-gradient-stop-colors").value, u = r.pstyle(e + "-gradient-stop-positions").pfValue;
16139
16140
  if (a === "radial-gradient")
16140
16141
  if (r.isEdge()) {
16141
- var l = r.sourceEndpoint(), f = r.targetEndpoint(), c = r.midpoint(), v = Pr(l, c), h = Pr(f, c);
16142
+ var l = r.sourceEndpoint(), f = r.targetEndpoint(), c = r.midpoint(), v = Ir(l, c), h = Ir(f, c);
16142
16143
  i = t.createRadialGradient(c.x, c.y, 0, c.x, c.y, Math.max(v, h));
16143
16144
  } else {
16144
16145
  var d = s ? {
@@ -16258,7 +16259,7 @@ xt.clearCanvas = function() {
16258
16259
  };
16259
16260
  xt.render = function(t) {
16260
16261
  var e = this;
16261
- t = t || Pf();
16262
+ t = t || If();
16262
16263
  var r = e.cy, a = t.forcedContext, n = t.drawAllLayers, i = t.drawOnlyNodeLayer, s = t.forcedZoom, o = t.forcedPan, u = t.forcedPxRatio === void 0 ? this.getPixelRatio() : t.forcedPxRatio, l = e.data, f = l.canvasNeedsRedraw, c = e.textureOnViewport && !a && (e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming), v = t.motionBlur !== void 0 ? t.motionBlur : e.motionBlur, h = e.motionBlurPxRatio, d = r.hasCompoundNodes(), p = e.hoverData.draggingEles, g = !!(e.hoverData.selecting || e.touchData.selecting);
16263
16264
  v = v && !a && e.motionBlurEnabled && !g;
16264
16265
  var y = v;
@@ -16307,21 +16308,21 @@ xt.render = function(t) {
16307
16308
  };
16308
16309
  }
16309
16310
  f[e.DRAG] = !1, f[e.NODE] = !1;
16310
- var I = l.contexts[e.NODE], M = e.textureCache.texture, w = e.textureCache.viewport;
16311
- I.setTransform(1, 0, 0, 1, 0, 0), v ? A(I, 0, 0, w.width, w.height) : I.clearRect(0, 0, w.width, w.height);
16311
+ var P = l.contexts[e.NODE], M = e.textureCache.texture, w = e.textureCache.viewport;
16312
+ P.setTransform(1, 0, 0, 1, 0, 0), v ? A(P, 0, 0, w.width, w.height) : P.clearRect(0, 0, w.width, w.height);
16312
16313
  var N = b.core("outside-texture-bg-color").value, O = b.core("outside-texture-bg-opacity").value;
16313
- e.colorFillStyle(I, N[0], N[1], N[2], O), I.fillRect(0, 0, w.width, w.height);
16314
+ e.colorFillStyle(P, N[0], N[1], N[2], O), P.fillRect(0, 0, w.width, w.height);
16314
16315
  var m = r.zoom();
16315
- L(I, !1), I.clearRect(w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u), I.drawImage(M, w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u);
16316
+ L(P, !1), P.clearRect(w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u), P.drawImage(M, w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u);
16316
16317
  } else e.textureOnViewport && !a && (e.textureCache = null);
16317
16318
  var k = r.extent(), B = e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming || e.hoverData.draggingEles || e.cy.animated(), _ = e.hideEdgesOnViewport && B, F = [];
16318
16319
  if (F[e.NODE] = !f[e.NODE] && v && !e.clearedForMotionBlur[e.NODE] || e.clearingMotionBlur, F[e.NODE] && (e.clearedForMotionBlur[e.NODE] = !0), F[e.DRAG] = !f[e.DRAG] && v && !e.clearedForMotionBlur[e.DRAG] || e.clearingMotionBlur, F[e.DRAG] && (e.clearedForMotionBlur[e.DRAG] = !0), f[e.NODE] || n || i || F[e.NODE]) {
16319
- var G = v && !F[e.NODE] && h !== 1, I = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), H = v && !G ? "motionBlur" : void 0;
16320
- L(I, H), _ ? e.drawCachedNodes(I, D.nondrag, u, k) : e.drawLayeredElements(I, D.nondrag, u, k), e.debug && e.drawDebugPoints(I, D.nondrag), !n && !v && (f[e.NODE] = !1);
16320
+ var G = v && !F[e.NODE] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), H = v && !G ? "motionBlur" : void 0;
16321
+ L(P, H), _ ? e.drawCachedNodes(P, D.nondrag, u, k) : e.drawLayeredElements(P, D.nondrag, u, k), e.debug && e.drawDebugPoints(P, D.nondrag), !n && !v && (f[e.NODE] = !1);
16321
16322
  }
16322
16323
  if (!i && (f[e.DRAG] || n || F[e.DRAG])) {
16323
- var G = v && !F[e.DRAG] && h !== 1, I = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]);
16324
- L(I, v && !G ? "motionBlur" : void 0), _ ? e.drawCachedNodes(I, D.drag, u, k) : e.drawCachedElements(I, D.drag, u, k), e.debug && e.drawDebugPoints(I, D.drag), !n && !v && (f[e.DRAG] = !1);
16324
+ var G = v && !F[e.DRAG] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]);
16325
+ L(P, v && !G ? "motionBlur" : void 0), _ ? e.drawCachedNodes(P, D.drag, u, k) : e.drawCachedElements(P, D.drag, u, k), e.debug && e.drawDebugPoints(P, D.drag), !n && !v && (f[e.DRAG] = !1);
16325
16326
  }
16326
16327
  if (this.drawSelectionRectangle(t, L), v && h !== 1) {
16327
16328
  var Y = l.contexts[e.NODE], X = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], W = l.contexts[e.DRAG], ee = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], ae = function(z, V, q) {
@@ -16528,7 +16529,7 @@ Math.hypot || (Math.hypot = function() {
16528
16529
  t += arguments[e] * arguments[e];
16529
16530
  return Math.sqrt(t);
16530
16531
  });
16531
- function Is() {
16532
+ function Ps() {
16532
16533
  var t = new tf(9);
16533
16534
  return tf != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[5] = 0, t[6] = 0, t[7] = 0), t[0] = 1, t[4] = 1, t[8] = 1, t;
16534
16535
  }
@@ -16727,7 +16728,7 @@ var Lm = /* @__PURE__ */ (function() {
16727
16728
  var n = [], i = /* @__PURE__ */ new Map(), s = null, o = At(this.atlases), u;
16728
16729
  try {
16729
16730
  var l = function() {
16730
- var c = u.value, v = c.getKeys(), h = Im(a, v);
16731
+ var c = u.value, v = c.getKeys(), h = Pm(a, v);
16731
16732
  if (h.size === 0)
16732
16733
  return n.push(c), v.forEach(function(T) {
16733
16734
  return i.set(T, c);
@@ -16802,12 +16803,12 @@ var Lm = /* @__PURE__ */ (function() {
16802
16803
  }
16803
16804
  }]);
16804
16805
  })();
16805
- function Im(t, e) {
16806
+ function Pm(t, e) {
16806
16807
  return t.intersection ? t.intersection(e) : new Set(Sn(t).filter(function(r) {
16807
16808
  return e.has(r);
16808
16809
  }));
16809
16810
  }
16810
- var Pm = /* @__PURE__ */ (function() {
16811
+ var Im = /* @__PURE__ */ (function() {
16811
16812
  function t(e, r) {
16812
16813
  yr(this, t), this.r = e, this.globalOptions = r, this.atlasSize = r.webglTexSize, this.maxAtlasesPerBatch = r.webglTexPerBatch, this.renderTypes = /* @__PURE__ */ new Map(), this.collections = /* @__PURE__ */ new Map(), this.typeAndIdToKey = /* @__PURE__ */ new Map();
16813
16814
  }
@@ -17073,9 +17074,9 @@ var Pm = /* @__PURE__ */ (function() {
17073
17074
  // don't render the texture at all
17074
17075
  USE_BB: 2
17075
17076
  // render the bounding box as an opaque rectangle
17076
- }, Ps = 0, nf = 1, sf = 2, Ms = 3, Hr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17077
+ }, Is = 0, nf = 1, sf = 2, Ms = 3, Hr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17077
17078
  function t(e, r, a) {
17078
- yr(this, t), this.r = e, this.gl = r, this.maxInstances = a.webglBatchSize, this.atlasSize = a.webglTexSize, this.bgColor = a.bgColor, this.debug = a.webglDebug, this.batchDebugInfo = [], a.enableWrapping = !0, a.createTextureCanvas = gm, this.atlasManager = new Pm(e, a), this.batchManager = new Mm(a), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Da.SCREEN), this.pickingProgram = this._createShaderProgram(Da.PICKING), this.vao = this._createVAO();
17079
+ yr(this, t), this.r = e, this.gl = r, this.maxInstances = a.webglBatchSize, this.atlasSize = a.webglTexSize, this.bgColor = a.bgColor, this.debug = a.webglDebug, this.batchDebugInfo = [], a.enableWrapping = !0, a.createTextureCanvas = gm, this.atlasManager = new Im(e, a), this.batchManager = new Mm(a), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Da.SCREEN), this.pickingProgram = this._createShaderProgram(Da.PICKING), this.vao = this._createVAO();
17079
17080
  }
17080
17081
  return mr(t, [{
17081
17082
  key: "addAtlasCollection",
@@ -17202,7 +17203,7 @@ var Pm = /* @__PURE__ */ (function() {
17202
17203
  int vid = gl_VertexID;
17203
17204
  vec2 position = aPosition; // TODO make this a vec3, simplifies some code below
17204
17205
 
17205
- if(aVertType == `.concat(Ps, `) {
17206
+ if(aVertType == `.concat(Is, `) {
17206
17207
  float texX = aTex.x; // texture coordinates
17207
17208
  float texY = aTex.y;
17208
17209
  float texW = aTex.z;
@@ -17366,7 +17367,7 @@ var Pm = /* @__PURE__ */ (function() {
17366
17367
  }
17367
17368
 
17368
17369
  void main(void) {
17369
- if(vVertType == `).concat(Ps, `) {
17370
+ if(vVertType == `).concat(Is, `) {
17370
17371
  // look up the texel from the texture unit
17371
17372
  `).concat(i.map(function(l) {
17372
17373
  return "if(vAtlasId == ".concat(l, ") outColor = texture(uTexture").concat(l, ", vTexCoord);");
@@ -17508,7 +17509,7 @@ var Pm = /* @__PURE__ */ (function() {
17508
17509
  var m = Je(b[y], 2), E = m[0], T = m[1];
17509
17510
  if (E.w != 0) {
17510
17511
  var S = this.instanceCount;
17511
- this.vertTypeBuffer.getView(S)[0] = Ps;
17512
+ this.vertTypeBuffer.getView(S)[0] = Is;
17512
17513
  var w = this.indexBuffer.getView(S);
17513
17514
  Yr(a, w);
17514
17515
  var x = this.atlasIdBuffer.getView(S);
@@ -18022,11 +18023,11 @@ function Vm(t) {
18022
18023
  e(t.data.contexts[t.NODE]), e(t.data.contexts[t.DRAG]);
18023
18024
  }
18024
18025
  function Um(t) {
18025
- var e = t.canvasWidth, r = t.canvasHeight, a = Ro(t), n = a.pan, i = a.zoom, s = Is();
18026
+ var e = t.canvasWidth, r = t.canvasHeight, a = Ro(t), n = a.pan, i = a.zoom, s = Ps();
18026
18027
  wn(s, s, [n.x, n.y]), Js(s, s, [i, i]);
18027
- var o = Is();
18028
+ var o = Ps();
18028
18029
  Am(o, e, r);
18029
- var u = Is();
18030
+ var u = Ps();
18030
18031
  return Sm(u, o, s), u;
18031
18032
  }
18032
18033
  function Wc(t, e) {
@@ -18141,7 +18142,7 @@ Er.drawPolygonPath = function(t, e, r, a, n, i) {
18141
18142
  };
18142
18143
  Er.drawRoundPolygonPath = function(t, e, r, a, n, i, s) {
18143
18144
  s.forEach(function(o) {
18144
- return Ic(t, o);
18145
+ return Pc(t, o);
18145
18146
  }), t.closePath();
18146
18147
  };
18147
18148
  Er.drawRoundRectanglePath = function(t, e, r, a, n, i) {
@@ -18352,7 +18353,7 @@ function jc(t) {
18352
18353
  return V;
18353
18354
  }, R = function(z) {
18354
18355
  return h(x(z));
18355
- }, I = function(z, V, q) {
18356
+ }, P = function(z, V, q) {
18356
18357
  var Z = z ? z + "-" : "";
18357
18358
  return {
18358
18359
  x: V.x + q.pstyle(Z + "text-margin-x").pfValue,
@@ -18365,11 +18366,11 @@ function jc(t) {
18365
18366
  y: Z[q]
18366
18367
  };
18367
18368
  }, N = function(z) {
18368
- return I("", M(z, "labelX", "labelY"), z);
18369
+ return P("", M(z, "labelX", "labelY"), z);
18369
18370
  }, O = function(z) {
18370
- return I("source", M(z, "sourceLabelX", "sourceLabelY"), z);
18371
+ return P("source", M(z, "sourceLabelX", "sourceLabelY"), z);
18371
18372
  }, k = function(z) {
18372
- return I("target", M(z, "targetLabelX", "targetLabelY"), z);
18373
+ return P("target", M(z, "targetLabelX", "targetLabelY"), z);
18373
18374
  }, B = function(z) {
18374
18375
  return d(x(z));
18375
18376
  }, _ = function(z) {
@@ -19091,8 +19092,8 @@ function a0() {
19091
19092
  var R = D[L];
19092
19093
  g && R.child != null && R.updateBounds(), T = R.getLeft(), S = R.getRight(), w = R.getTop(), x = R.getBottom(), y > T && (y = T), b < S && (b = S), m > w && (m = w), E < x && (E = x);
19093
19094
  }
19094
- var I = new c(y, m, b - y, E - m);
19095
- y == s.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), D[0].getParent().paddingLeft != null ? C = D[0].getParent().paddingLeft : C = this.margin, this.left = I.x - C, this.right = I.x + I.width + C, this.top = I.y - C, this.bottom = I.y + I.height + C;
19095
+ var P = new c(y, m, b - y, E - m);
19096
+ y == s.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), D[0].getParent().paddingLeft != null ? C = D[0].getParent().paddingLeft : C = this.margin, this.left = P.x - C, this.right = P.x + P.width + C, this.top = P.y - C, this.bottom = P.y + P.height + C;
19096
19097
  }, d.calculateBounds = function(g) {
19097
19098
  for (var y = s.MAX_VALUE, b = -s.MAX_VALUE, m = s.MAX_VALUE, E = -s.MAX_VALUE, T, S, w, x, C = g.length, D = 0; D < C; D++) {
19098
19099
  var A = g[D];
@@ -19367,7 +19368,7 @@ function a0() {
19367
19368
  var f = o.getCenterX(), c = o.getCenterY(), v = u.getCenterX(), h = u.getCenterY();
19368
19369
  if (o.intersects(u))
19369
19370
  return l[0] = f, l[1] = c, l[2] = v, l[3] = h, !0;
19370
- var d = o.getX(), p = o.getY(), g = o.getRight(), y = o.getX(), b = o.getBottom(), m = o.getRight(), E = o.getWidthHalf(), T = o.getHeightHalf(), S = u.getX(), w = u.getY(), x = u.getRight(), C = u.getX(), D = u.getBottom(), A = u.getRight(), L = u.getWidthHalf(), R = u.getHeightHalf(), I = !1, M = !1;
19371
+ var d = o.getX(), p = o.getY(), g = o.getRight(), y = o.getX(), b = o.getBottom(), m = o.getRight(), E = o.getWidthHalf(), T = o.getHeightHalf(), S = u.getX(), w = u.getY(), x = u.getRight(), C = u.getX(), D = u.getBottom(), A = u.getRight(), L = u.getWidthHalf(), R = u.getHeightHalf(), P = !1, M = !1;
19371
19372
  if (f === v) {
19372
19373
  if (c > h)
19373
19374
  return l[0] = f, l[1] = p, l[2] = v, l[3] = D, !1;
@@ -19380,9 +19381,9 @@ function a0() {
19380
19381
  return l[0] = g, l[1] = c, l[2] = S, l[3] = h, !1;
19381
19382
  } else {
19382
19383
  var N = o.height / o.width, O = u.height / u.width, k = (h - c) / (v - f), B = void 0, _ = void 0, F = void 0, G = void 0, H = void 0, Y = void 0;
19383
- if (-N === k ? f > v ? (l[0] = y, l[1] = b, I = !0) : (l[0] = g, l[1] = p, I = !0) : N === k && (f > v ? (l[0] = d, l[1] = p, I = !0) : (l[0] = m, l[1] = b, I = !0)), -O === k ? v > f ? (l[2] = C, l[3] = D, M = !0) : (l[2] = x, l[3] = w, M = !0) : O === k && (v > f ? (l[2] = S, l[3] = w, M = !0) : (l[2] = A, l[3] = D, M = !0)), I && M)
19384
+ if (-N === k ? f > v ? (l[0] = y, l[1] = b, P = !0) : (l[0] = g, l[1] = p, P = !0) : N === k && (f > v ? (l[0] = d, l[1] = p, P = !0) : (l[0] = m, l[1] = b, P = !0)), -O === k ? v > f ? (l[2] = C, l[3] = D, M = !0) : (l[2] = x, l[3] = w, M = !0) : O === k && (v > f ? (l[2] = S, l[3] = w, M = !0) : (l[2] = A, l[3] = D, M = !0)), P && M)
19384
19385
  return !1;
19385
- if (f > v ? c > h ? (B = this.getCardinalDirection(N, k, 4), _ = this.getCardinalDirection(O, k, 2)) : (B = this.getCardinalDirection(-N, k, 3), _ = this.getCardinalDirection(-O, k, 1)) : c > h ? (B = this.getCardinalDirection(-N, k, 1), _ = this.getCardinalDirection(-O, k, 3)) : (B = this.getCardinalDirection(N, k, 2), _ = this.getCardinalDirection(O, k, 4)), !I)
19386
+ if (f > v ? c > h ? (B = this.getCardinalDirection(N, k, 4), _ = this.getCardinalDirection(O, k, 2)) : (B = this.getCardinalDirection(-N, k, 3), _ = this.getCardinalDirection(-O, k, 1)) : c > h ? (B = this.getCardinalDirection(-N, k, 1), _ = this.getCardinalDirection(-O, k, 3)) : (B = this.getCardinalDirection(N, k, 2), _ = this.getCardinalDirection(O, k, 4)), !P)
19386
19387
  switch (B) {
19387
19388
  case 1:
19388
19389
  G = p, F = f + -T / k, l[0] = F, l[1] = G;
@@ -19839,10 +19840,10 @@ function a0() {
19839
19840
  var S = g[T], D = g.indexOf(S);
19840
19841
  D >= 0 && g.splice(D, 1);
19841
19842
  var A = S.getNeighborsList();
19842
- A.forEach(function(I) {
19843
- if (y.indexOf(I) < 0) {
19844
- var M = b.get(I), N = M - 1;
19845
- N == 1 && x.push(I), b.set(I, N);
19843
+ A.forEach(function(P) {
19844
+ if (y.indexOf(P) < 0) {
19845
+ var M = b.get(P), N = M - 1;
19846
+ N == 1 && x.push(P), b.set(P, N);
19846
19847
  }
19847
19848
  });
19848
19849
  }
@@ -20593,9 +20594,9 @@ function i0() {
20593
20594
  var R = [];
20594
20595
  if (R = R.concat(A.getEdgeListToNode(L)), R = R.concat(L.getEdgeListToNode(A)), !x.has(R[0])) {
20595
20596
  if (R.length > 1) {
20596
- var I;
20597
- for (I = 0; I < R.length; I++) {
20598
- var M = R[I];
20597
+ var P;
20598
+ for (P = 0; P < R.length; P++) {
20599
+ var M = R[P];
20599
20600
  M.getBendpoints().push(new p()), this.createDummyNodesForBendpoints(M);
20600
20601
  }
20601
20602
  }
@@ -20609,9 +20610,9 @@ function i0() {
20609
20610
  break;
20610
20611
  }
20611
20612
  }, T.prototype.positionNodesRadially = function(w) {
20612
- for (var x = new d(0, 0), C = Math.ceil(Math.sqrt(w.length)), D = 0, A = 0, L = 0, R = new p(0, 0), I = 0; I < w.length; I++) {
20613
- I % C == 0 && (L = 0, A = D, I != 0 && (A += c.DEFAULT_COMPONENT_SEPERATION), D = 0);
20614
- var M = w[I], N = g.findCenterOfTree(M);
20613
+ for (var x = new d(0, 0), C = Math.ceil(Math.sqrt(w.length)), D = 0, A = 0, L = 0, R = new p(0, 0), P = 0; P < w.length; P++) {
20614
+ P % C == 0 && (L = 0, A = D, P != 0 && (A += c.DEFAULT_COMPONENT_SEPERATION), D = 0);
20615
+ var M = w[P], N = g.findCenterOfTree(M);
20615
20616
  x.x = L, x.y = A, R = T.radialLayout(M, N, x), R.y > D && (D = Math.floor(R.y)), L = Math.floor(R.x + c.DEFAULT_COMPONENT_SEPERATION);
20616
20617
  }
20617
20618
  this.transform(new p(h.WORLD_CENTER_X - R.x / 2, h.WORLD_CENTER_Y - R.y / 2));
@@ -20621,15 +20622,15 @@ function i0() {
20621
20622
  var A = m.calculateBounds(w), L = new E();
20622
20623
  L.setDeviceOrgX(A.getMinX()), L.setDeviceOrgY(A.getMinY()), L.setWorldOrgX(C.x), L.setWorldOrgY(C.y);
20623
20624
  for (var R = 0; R < w.length; R++) {
20624
- var I = w[R];
20625
- I.transform(L);
20625
+ var P = w[R];
20626
+ P.transform(L);
20626
20627
  }
20627
20628
  var M = new p(A.getMaxX(), A.getMaxY());
20628
20629
  return L.inverseTransformPoint(M);
20629
20630
  }, T.branchRadialLayout = function(w, x, C, D, A, L) {
20630
20631
  var R = (D - C + 1) / 2;
20631
20632
  R < 0 && (R += 180);
20632
- var I = (R + C) % 360, M = I * b.TWO_PI / 360, N = A * Math.cos(M), O = A * Math.sin(M);
20633
+ var P = (R + C) % 360, M = P * b.TWO_PI / 360, N = A * Math.cos(M), O = A * Math.sin(M);
20633
20634
  w.setCenter(N, O);
20634
20635
  var k = [];
20635
20636
  k = k.concat(w.getEdges());
@@ -20665,8 +20666,8 @@ function i0() {
20665
20666
  this.getNodeDegreeWithChildren(L) === 0 && (R.id == null || !this.getToBeTiled(R)) && C.push(L);
20666
20667
  }
20667
20668
  for (var A = 0; A < C.length; A++) {
20668
- var L = C[A], I = L.getParent().id;
20669
- typeof x[I] > "u" && (x[I] = []), x[I] = x[I].concat(L);
20669
+ var L = C[A], P = L.getParent().id;
20670
+ typeof x[P] > "u" && (x[P] = []), x[P] = x[P].concat(L);
20670
20671
  }
20671
20672
  Object.keys(x).forEach(function(M) {
20672
20673
  if (x[M].length > 1) {
@@ -20750,10 +20751,10 @@ function i0() {
20750
20751
  }, T.prototype.adjustLocations = function(w, x, C, D, A) {
20751
20752
  x += D, C += A;
20752
20753
  for (var L = x, R = 0; R < w.rows.length; R++) {
20753
- var I = w.rows[R];
20754
+ var P = w.rows[R];
20754
20755
  x = L;
20755
- for (var M = 0, N = 0; N < I.length; N++) {
20756
- var O = I[N];
20756
+ for (var M = 0, N = 0; N < P.length; N++) {
20757
+ var O = P[N];
20757
20758
  O.rect.x = x, O.rect.y = C, x += O.rect.width + w.horizontalPadding, O.rect.height > M && (M = O.rect.height);
20758
20759
  }
20759
20760
  C += M + w.verticalPadding;
@@ -20775,8 +20776,8 @@ function i0() {
20775
20776
  verticalPadding: C,
20776
20777
  horizontalPadding: D
20777
20778
  };
20778
- w.sort(function(I, M) {
20779
- return I.rect.width * I.rect.height > M.rect.width * M.rect.height ? -1 : I.rect.width * I.rect.height < M.rect.width * M.rect.height ? 1 : 0;
20779
+ w.sort(function(P, M) {
20780
+ return P.rect.width * P.rect.height > M.rect.width * M.rect.height ? -1 : P.rect.width * P.rect.height < M.rect.width * M.rect.height ? 1 : 0;
20780
20781
  });
20781
20782
  for (var L = 0; L < w.length; L++) {
20782
20783
  var R = w[L];
@@ -20791,10 +20792,10 @@ function i0() {
20791
20792
  }
20792
20793
  var R = w.rowWidth[C] + x.rect.width;
20793
20794
  w.rows[C].length > 0 && (R += w.horizontalPadding), w.rowWidth[C] = R, w.width < R && (w.width = R);
20794
- var I = x.rect.height;
20795
- C > 0 && (I += w.verticalPadding);
20795
+ var P = x.rect.height;
20796
+ C > 0 && (P += w.verticalPadding);
20796
20797
  var M = 0;
20797
- I > w.rowHeight[C] && (M = w.rowHeight[C], w.rowHeight[C] = I, M = w.rowHeight[C] - M), w.height += M, w.rows[C].push(x);
20798
+ P > w.rowHeight[C] && (M = w.rowHeight[C], w.rowHeight[C] = P, M = w.rowHeight[C] - M), w.height += M, w.rows[C].push(x);
20798
20799
  }, T.prototype.getShortestRowIndex = function(w) {
20799
20800
  for (var x = -1, C = Number.MAX_VALUE, D = 0; D < w.rows.length; D++)
20800
20801
  w.rowWidth[D] < C && (x = D, C = w.rowWidth[D]);
@@ -20813,14 +20814,14 @@ function i0() {
20813
20814
  w.rowHeight[D] < C && D > 0 && (L = C + w.verticalPadding - w.rowHeight[D]);
20814
20815
  var R;
20815
20816
  w.width - A >= x + w.horizontalPadding ? R = (w.height + L) / (A + x + w.horizontalPadding) : R = (w.height + L) / w.width, L = C + w.verticalPadding;
20816
- var I;
20817
- return w.width < x ? I = (w.height + L) / x : I = (w.height + L) / w.width, I < 1 && (I = 1 / I), R < 1 && (R = 1 / R), R < I;
20817
+ var P;
20818
+ return w.width < x ? P = (w.height + L) / x : P = (w.height + L) / w.width, P < 1 && (P = 1 / P), R < 1 && (R = 1 / R), R < P;
20818
20819
  }, T.prototype.shiftToLastRow = function(w) {
20819
20820
  var x = this.getLongestRowIndex(w), C = w.rowWidth.length - 1, D = w.rows[x], A = D[D.length - 1], L = A.width + w.horizontalPadding;
20820
20821
  if (w.width - w.rowWidth[C] > L && x != C) {
20821
20822
  D.splice(-1, 1), w.rows[C].push(A), w.rowWidth[x] = w.rowWidth[x] - L, w.rowWidth[C] = w.rowWidth[C] + L, w.width = w.rowWidth[instance.getLongestRowIndex(w)];
20822
- for (var R = Number.MIN_VALUE, I = 0; I < D.length; I++)
20823
- D[I].height > R && (R = D[I].height);
20823
+ for (var R = Number.MIN_VALUE, P = 0; P < D.length; P++)
20824
+ D[P].height > R && (R = D[P].height);
20824
20825
  x > 0 && (R += w.verticalPadding);
20825
20826
  var M = w.rowHeight[x] + w.rowHeight[C];
20826
20827
  w.rowHeight[x] = R, w.rowHeight[C] < A.height + w.verticalPadding && (w.rowHeight[C] = A.height + w.verticalPadding);
@@ -20838,8 +20839,8 @@ function i0() {
20838
20839
  for (var L = 0; L < D.length; L++)
20839
20840
  C = D[L], C.getEdges().length == 1 && !C.getEdges()[0].isInterGraph && C.getChild() == null && (A.push([C, C.getEdges()[0], C.getOwner()]), x = !0);
20840
20841
  if (x == !0) {
20841
- for (var R = [], I = 0; I < A.length; I++)
20842
- A[I][0].getEdges().length == 1 && (R.push(A[I]), A[I][0].getOwner().remove(A[I][0]));
20842
+ for (var R = [], P = 0; P < A.length; P++)
20843
+ A[P][0].getEdges().length == 1 && (R.push(A[P]), A[P][0].getOwner().remove(A[P][0]));
20843
20844
  w.push(R), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
20844
20845
  }
20845
20846
  }
@@ -20851,18 +20852,18 @@ function i0() {
20851
20852
  }, T.prototype.findPlaceforPrunedNode = function(w) {
20852
20853
  var x, C, D = w[0];
20853
20854
  D == w[1].source ? C = w[1].target : C = w[1].source;
20854
- var A = C.startX, L = C.finishX, R = C.startY, I = C.finishY, M = 0, N = 0, O = 0, k = 0, B = [M, O, N, k];
20855
+ var A = C.startX, L = C.finishX, R = C.startY, P = C.finishY, M = 0, N = 0, O = 0, k = 0, B = [M, O, N, k];
20855
20856
  if (R > 0)
20856
20857
  for (var _ = A; _ <= L; _++)
20857
20858
  B[0] += this.grid[_][R - 1].length + this.grid[_][R].length - 1;
20858
20859
  if (L < this.grid.length - 1)
20859
- for (var _ = R; _ <= I; _++)
20860
+ for (var _ = R; _ <= P; _++)
20860
20861
  B[1] += this.grid[L + 1][_].length + this.grid[L][_].length - 1;
20861
- if (I < this.grid[0].length - 1)
20862
+ if (P < this.grid[0].length - 1)
20862
20863
  for (var _ = A; _ <= L; _++)
20863
- B[2] += this.grid[_][I + 1].length + this.grid[_][I].length - 1;
20864
+ B[2] += this.grid[_][P + 1].length + this.grid[_][P].length - 1;
20864
20865
  if (A > 0)
20865
- for (var _ = R; _ <= I; _++)
20866
+ for (var _ = R; _ <= P; _++)
20866
20867
  B[3] += this.grid[A - 1][_].length + this.grid[A][_].length - 1;
20867
20868
  for (var F = y.MAX_VALUE, G, H, Y = 0; Y < B.length; Y++)
20868
20869
  B[Y] < F ? (F = B[Y], G = 1, H = Y) : B[Y] == F && G++;
@@ -21031,8 +21032,8 @@ function o0() {
21031
21032
  for (var D = 0; D < C.length; D++) {
21032
21033
  var A = C[D], L = this.idToLNode[A.data("source")], R = this.idToLNode[A.data("target")];
21033
21034
  if (L !== R && L.getEdgesBetween(R).length == 0) {
21034
- var I = w.add(T.newEdge(), L, R);
21035
- I.id = A.id();
21035
+ var P = w.add(T.newEdge(), L, R);
21036
+ P.id = A.id();
21036
21037
  }
21037
21038
  }
21038
21039
  var M = function(k, B) {
@@ -21092,8 +21093,8 @@ function o0() {
21092
21093
  C.labelWidth = A, C.labelHeight = L, C.labelPos = R;
21093
21094
  }
21094
21095
  if (this.idToLNode[w.data("id")] = C, isNaN(C.rect.x) && (C.rect.x = 0), isNaN(C.rect.y) && (C.rect.y = 0), x != null && x.length > 0) {
21095
- var I;
21096
- I = E.getGraphManager().add(E.newGraph(), C), this.processChildrenList(I, x, E);
21096
+ var P;
21097
+ P = E.getGraphManager().add(E.newGraph(), C), this.processChildrenList(P, x, E);
21097
21098
  }
21098
21099
  }
21099
21100
  }, p.prototype.stop = function() {
@@ -21183,7 +21184,7 @@ var ro = (function() {
21183
21184
  }
21184
21185
  },
21185
21186
  parse: function(T) {
21186
- var S = this, w = [0], x = [], C = [null], D = [], A = this.table, L = "", R = 0, I = 0, M = 2, N = 1, O = D.slice.call(arguments, 1), k = Object.create(this.lexer), B = { yy: {} };
21187
+ var S = this, w = [0], x = [], C = [null], D = [], A = this.table, L = "", R = 0, P = 0, M = 2, N = 1, O = D.slice.call(arguments, 1), k = Object.create(this.lexer), B = { yy: {} };
21187
21188
  for (var _ in this.yy)
21188
21189
  Object.prototype.hasOwnProperty.call(this.yy, _) && (B.yy[_] = this.yy[_]);
21189
21190
  k.setInput(T, B.yy), B.yy.lexer = k, B.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
@@ -21215,7 +21216,7 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21215
21216
  throw new Error("Parse Error: multiple actions possible at state: " + X + ", token: " + Y);
21216
21217
  switch (W[0]) {
21217
21218
  case 1:
21218
- w.push(Y), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), Y = null, I = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21219
+ w.push(Y), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), Y = null, P = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21219
21220
  break;
21220
21221
  case 2:
21221
21222
  if (z = this.productions_[W[1]][1], ae.$ = C[C.length - z], ae._$ = {
@@ -21228,7 +21229,7 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21228
21229
  D[D.length - 1].range[1]
21229
21230
  ]), ee = this.performAction.apply(ae, [
21230
21231
  L,
21231
- I,
21232
+ P,
21232
21233
  R,
21233
21234
  B.yy,
21234
21235
  W[1],
@@ -21513,9 +21514,9 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21513
21514
  })();
21514
21515
  ro.parser = ro;
21515
21516
  const f0 = ro;
21516
- let Ft = [], nv = 0, Io = {};
21517
+ let Ft = [], nv = 0, Po = {};
21517
21518
  const c0 = () => {
21518
- Ft = [], nv = 0, Io = {};
21519
+ Ft = [], nv = 0, Po = {};
21519
21520
  }, v0 = function(t) {
21520
21521
  for (let e = Ft.length - 1; e >= 0; e--)
21521
21522
  if (Ft[e].level < t)
@@ -21577,7 +21578,7 @@ const c0 = () => {
21577
21578
  return rt.DEFAULT;
21578
21579
  }
21579
21580
  }, p0 = (t, e) => {
21580
- Io[t] = e;
21581
+ Po[t] = e;
21581
21582
  }, y0 = (t) => {
21582
21583
  if (!t)
21583
21584
  return;
@@ -21602,7 +21603,7 @@ const c0 = () => {
21602
21603
  default:
21603
21604
  return "no-border";
21604
21605
  }
21605
- }, b0 = () => Nr, w0 = (t) => Io[t], E0 = {
21606
+ }, b0 = () => Nr, w0 = (t) => Po[t], E0 = {
21606
21607
  clear: c0,
21607
21608
  addNode: d0,
21608
21609
  getMindmap: h0,
@@ -21675,7 +21676,7 @@ function R0(t, e, r, a, n) {
21675
21676
  }).join(" ")
21676
21677
  ).attr("transform", "translate(" + (n.width - e) / 2 + ", " + r + ")");
21677
21678
  }
21678
- const I0 = function(t, e, r) {
21679
+ const P0 = function(t, e, r) {
21679
21680
  const a = r.height, i = a / 4, s = r.width - r.padding + 2 * i, o = [
21680
21681
  { x: i, y: 0 },
21681
21682
  { x: s - i, y: 0 },
@@ -21685,7 +21686,7 @@ const I0 = function(t, e, r) {
21685
21686
  { x: 0, y: -a / 2 }
21686
21687
  ];
21687
21688
  R0(e, s, a, o, r);
21688
- }, P0 = function(t, e, r) {
21689
+ }, I0 = function(t, e, r) {
21689
21690
  e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width);
21690
21691
  }, M0 = function(t, e, r, a, n) {
21691
21692
  const i = n.htmlLabels, s = a % (T0 - 1), o = e.append("g");
@@ -21728,7 +21729,7 @@ const I0 = function(t, e, r) {
21728
21729
  C0(t, l, r, s);
21729
21730
  break;
21730
21731
  case t.nodeType.ROUNDED_RECT:
21731
- P0(t, l, r);
21732
+ I0(t, l, r);
21732
21733
  break;
21733
21734
  case t.nodeType.RECT:
21734
21735
  D0(t, l, r);
@@ -21743,7 +21744,7 @@ const I0 = function(t, e, r) {
21743
21744
  A0(t, l, r);
21744
21745
  break;
21745
21746
  case t.nodeType.HEXAGON:
21746
- I0(t, l, r);
21747
+ P0(t, l, r);
21747
21748
  break;
21748
21749
  }
21749
21750
  return t.setElementForId(r.id, o), r.height;
@@ -21926,12 +21927,12 @@ const F0 = async (t, e, r, a) => {
21926
21927
  dominant-baseline: middle;
21927
21928
  text-align: center;
21928
21929
  }
21929
- `, V0 = z0, X0 = {
21930
+ `, V0 = z0, $0 = {
21930
21931
  db: x0,
21931
21932
  renderer: _0,
21932
21933
  parser: f0,
21933
21934
  styles: V0
21934
21935
  };
21935
21936
  export {
21936
- X0 as diagram
21937
+ $0 as diagram
21937
21938
  };