@antdv-next/x 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/actions/ActionsFeedback.js +1 -1
  2. package/dist/actions/ActionsItem.js +1 -1
  3. package/dist/attachments/index.js +1 -2
  4. package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
  5. package/dist/code-highlighter/CodeHighlighter.js +2 -1
  6. package/dist/code-highlighter/shiki.js +1 -1
  7. package/dist/code-highlighter/style/index.d.ts +76 -4
  8. package/dist/code-highlighter/style/index.js +54 -29
  9. package/dist/folder/Folder.js +2 -1
  10. package/dist/index.umd.js +82 -49
  11. package/dist/mermaid/Mermaid.js +1 -1
  12. package/dist/package.js +1 -1
  13. package/dist/sender/components/SlotTextArea.js +3 -2
  14. package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
  15. package/dist/theme/themes/seed.js +3 -0
  16. package/dist/thought-chain/ThoughtChain.js +2 -2
  17. package/es/Serializer-Sc9uEpQk.js +262 -0
  18. package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-BL4DHvHb.js} +2 -2
  19. package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-CyFYmJd-.js} +3 -3
  20. package/es/antdv-next-x.esm.js +2708 -2688
  21. package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
  22. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  23. package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +52 -52
  24. package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +20 -18
  25. package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-B7y07WFn.js} +6 -6
  26. package/es/{channel-DFgF_2F7.js → channel-CxLj88Pg.js} +1 -1
  27. package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  28. package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  29. package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-mKY502R8.js} +8 -6
  30. package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  31. package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-oBEpn5hN.js} +7 -7
  32. package/es/{chunk-GLR3WWYH-DiXcKb5Y.js → chunk-GLR3WWYH-B2D9kjtF.js} +9 -9
  33. package/es/{chunk-HHEYEP7N-Cxc7E4dX.js → chunk-HHEYEP7N-DcZkCke2.js} +2 -2
  34. package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  35. package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  36. package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-33-uii7Y.js} +7 -7
  37. package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  38. package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-CprADZhD.js} +7 -7
  39. package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-DBAvycZ-.js} +10 -10
  40. package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  41. package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-DIl8TkGX.js} +5 -5
  42. package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  43. package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-Bhp_3T_o.js} +12 -10
  44. package/es/{chunk-XPW4576I-B0KVSHwE.js → chunk-XPW4576I-255j2Rgd.js} +2 -2
  45. package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-kjAdbx6i.js} +1589 -1541
  46. package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-C2IdGsg8.js} +3 -3
  47. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  48. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  49. package/es/{clone-r3YukIBB.js → clone-DIGEZsKS.js} +1 -1
  50. package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +20 -20
  51. package/es/css-CRY9BUqw.js +2 -0
  52. package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-DBPri10E.js} +121 -124
  53. package/es/{dagre-5aGJFKmT.js → dagre-BHOjJWBG.js} +6 -6
  54. package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-CnJPDj7X.js} +18 -15
  55. package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-CBOCgbMd.js} +63 -63
  56. package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BtubJp0H.js} +20 -20
  57. package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-CI30BBYG.js} +17 -17
  58. package/es/{dist-BX_roQzC.js → dist-BpM0Gz7z.js} +1 -1
  59. package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-C8hYuPxm.js} +14 -14
  60. package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +18 -18
  61. package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +25 -26
  62. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  63. package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +20 -20
  64. package/es/{graphlib-dRkI1OCL.js → graphlib-DqWOhV4K.js} +4 -4
  65. package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
  66. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  67. package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +9 -9
  68. package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
  69. package/es/{isEmpty-CmA-HYrg.js → isEmpty-BJdINx-6.js} +1 -1
  70. package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +6 -6
  71. package/es/javascript--0qAxhnA.js +2 -0
  72. package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +9 -9
  73. package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +11 -11
  74. package/es/{katex-DCMiIo1z.js → katex-olkKUfKs.js} +16 -16
  75. package/es/{line-Cu9NTacD.js → line-Cm2n2y9Z.js} +3 -3
  76. package/es/{linear-C0rAYYmp.js → linear-D-yDc6KG.js} +3 -3
  77. package/es/mermaid-parser.core-DFgQn74w.js +259 -0
  78. package/es/{mermaid.core-Bvy_Q6Hu.js → mermaid.core-BzgA0NbC.js} +45 -45
  79. package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +14 -14
  80. package/es/{ordinal-F3U6aXtP.js → ordinal-95c16pGC.js} +1 -1
  81. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  82. package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
  83. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  84. package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +48 -48
  85. package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +4 -4
  86. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  87. package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +13 -13
  88. package/es/{chunk-WQLz0Won.js → rolldown-runtime-Dv1pqm0U.js} +8 -1
  89. package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
  90. package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +4 -4
  91. package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +98 -98
  92. package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-BlKUZiZP.js} +944 -952
  93. package/es/{src-CUQ6oOYk.js → src-3T61hYex.js} +26 -26
  94. package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-153LjStx.js} +16 -16
  95. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  96. package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +4 -4
  97. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  98. package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +8 -8
  99. package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +10 -10
  100. package/package.json +1 -1
  101. package/es/Serializer-D1JYN1kI.js +0 -262
  102. package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
  103. package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
  104. package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
  105. package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
  106. package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
  107. package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
  108. package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
  109. package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
  110. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
  111. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
  112. package/es/css-Bi5OTYo2.js +0 -2
  113. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
  114. package/es/info-3K5VOQVL-COqdvM99.js +0 -3
  115. package/es/javascript-CjdDmufJ.js +0 -2
  116. package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
  117. package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
  118. package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
  119. package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
  120. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
  121. package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
  122. /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
  123. /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
  124. /package/es/{defaultLocale-bckJcYh1.js → defaultLocale-aSMWOJHq.js} +0 -0
  125. /package/es/{init-B75p2clj.js → init-Co4dhKfe.js} +0 -0
  126. /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
  127. /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
  128. /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
  129. /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
  130. /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
@@ -171,7 +171,7 @@ var b = g(""), x = g({}), S = g(function() {}), C = typeof HTMLElement > "u" ? "
171
171
  }, R = function(e) {
172
172
  return w(e) === "event";
173
173
  }, z = function(e) {
174
- return e == null ? !0 : !!(e === "" || e.match(/^\s+$/));
174
+ return e == null || !!(e === "" || e.match(/^\s+$/));
175
175
  }, B = function(e) {
176
176
  return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement;
177
177
  }, V = function(e) {
@@ -209,7 +209,7 @@ var b = g(""), x = g({}), S = g(function() {}), C = typeof HTMLElement > "u" ? "
209
209
  }, ee = function(e, t) {
210
210
  return e.slice(-1 * t.length) === t;
211
211
  }, Y = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", te = "rgb[a]?\\((" + Y + "[%]?)\\s*,\\s*(" + Y + "[%]?)\\s*,\\s*(" + Y + "[%]?)(?:\\s*,\\s*(" + Y + "))?\\)", ne = "rgb[a]?\\((?:" + Y + "[%]?)\\s*,\\s*(?:" + Y + "[%]?)\\s*,\\s*(?:" + Y + "[%]?)(?:\\s*,\\s*(?:" + Y + "))?\\)", re = "hsl[a]?\\((" + Y + ")\\s*,\\s*(" + Y + "[%])\\s*,\\s*(" + Y + "[%])(?:\\s*,\\s*(" + Y + "))?\\)", ie = "hsl[a]?\\((?:" + Y + ")\\s*,\\s*(?:" + Y + "[%])\\s*,\\s*(?:" + Y + "[%])(?:\\s*,\\s*(?:" + Y + "))?\\)", ae = "\\#[0-9a-fA-F]{3}", oe = "\\#[0-9a-fA-F]{6}", se = function(e, t) {
212
- return e < t ? -1 : e > t ? 1 : 0;
212
+ return e < t ? -1 : +(e > t);
213
213
  }, ce = function(e, t) {
214
214
  return -1 * se(e, t);
215
215
  }, X = Object.assign == null ? function(e) {
@@ -222,7 +222,7 @@ var b = g(""), x = g({}), S = g(function() {}), C = typeof HTMLElement > "u" ? "
222
222
  }
223
223
  return e;
224
224
  } : Object.assign.bind(Object), le = function(e) {
225
- if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) {
225
+ if (!(e.length !== 4 && e.length !== 7 || e[0] !== "#")) {
226
226
  var t = e.length === 4, n, r, i, a = 16;
227
227
  return t ? (n = parseInt(e[1] + e[1], a), r = parseInt(e[2] + e[2], a), i = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), r = parseInt(e[3] + e[4], a), i = parseInt(e[5] + e[6], a)), [
228
228
  n,
@@ -1211,7 +1211,7 @@ function ot() {
1211
1211
  }
1212
1212
  return it = o, it;
1213
1213
  }
1214
- var st = /* @__PURE__ */ ve(ot()), ct = v ? v.performance : null, lt = ct && ct.now ? function() {
1214
+ var st = /*@__PURE__*/ ve(ot()), ct = v ? v.performance : null, lt = ct && ct.now ? function() {
1215
1215
  return ct.now();
1216
1216
  } : function() {
1217
1217
  return Date.now();
@@ -1379,7 +1379,7 @@ var kt = !0, At = console.warn != null, jt = console.trace != null, Mt = 2 ** 53
1379
1379
  }
1380
1380
  }
1381
1381
  ]);
1382
- }(), $t = "undefined", en = /* @__PURE__ */ function() {
1382
+ }(), $t = "undefined", en = /*#__PURE__*/ function() {
1383
1383
  function e(t) {
1384
1384
  if (r(this, e), this._obj = Object.create(null), this.size = 0, t != null) for (var n = t.instanceString != null && t.instanceString() === this.instanceString() ? t.toArray() : t, i = 0; i < n.length; i++) this.add(n[i]);
1385
1385
  }
@@ -1464,10 +1464,10 @@ var kt = !0, At = console.warn != null, jt = console.trace != null, Mt = 2 ** 53
1464
1464
  styleKeys: {},
1465
1465
  removed: !0,
1466
1466
  selected: !!t.selected,
1467
- selectable: t.selectable === void 0 ? !0 : !!t.selectable,
1467
+ selectable: t.selectable === void 0 || !!t.selectable,
1468
1468
  locked: !!t.locked,
1469
1469
  grabbed: !1,
1470
- grabbable: t.grabbable === void 0 ? !0 : !!t.grabbable,
1470
+ grabbable: t.grabbable === void 0 || !!t.grabbable,
1471
1471
  pannable: t.pannable === void 0 ? r === "edges" : !!t.pannable,
1472
1472
  active: !1,
1473
1473
  classes: new tn(),
@@ -1546,7 +1546,7 @@ var kt = !0, At = console.warn != null, jt = console.trace != null, Mt = 2 ** 53
1546
1546
  }), w = C.id();
1547
1547
  C.length !== 0 && !d[w] && (C = C[0], s.push(C), e.bfs && (d[w] = !0, c.push(C)), l[w] = S, u[w] = u[i] + 1);
1548
1548
  }
1549
- }, x; s.length !== 0 && (x = b(), !(x !== 0 && x === 1)););
1549
+ }, x; s.length !== 0 && (x = b(), x === 0 || x !== 1););
1550
1550
  for (var S = a.collection(), C = 0; C < c.length; C++) {
1551
1551
  var w = c[C], D = l[w.id()];
1552
1552
  D != null && S.push(D), S.push(w);
@@ -1567,7 +1567,7 @@ function ln() {
1567
1567
  (function() {
1568
1568
  var t, n, r = Math.floor, i, a, o, s, c, l, u = Math.min, d, f, p, m, h;
1569
1569
  n = function(e, t) {
1570
- return e < t ? -1 : e > t ? 1 : 0;
1570
+ return e < t ? -1 : +(e > t);
1571
1571
  }, l = function(e, t, i, a, o) {
1572
1572
  var s;
1573
1573
  if (i ??= 0, o ??= n, i < 0) throw Error("lo must be non-negative");
@@ -1668,7 +1668,7 @@ var un, dn;
1668
1668
  function fn() {
1669
1669
  return dn ? un : (dn = 1, un = ln(), un);
1670
1670
  }
1671
- var pn = /* @__PURE__ */ ve(fn()), mn = Kt({
1671
+ var pn = /*@__PURE__*/ ve(fn()), mn = Kt({
1672
1672
  root: null,
1673
1673
  weight: function(e) {
1674
1674
  return 1;
@@ -2264,7 +2264,7 @@ var sr = function(e, t, n, r, i, a, o) {
2264
2264
  var o = [e - n, t - r], s = [i - n, a - r], c = s[0] * s[0] + s[1] * s[1], l = o[0] * o[0] + o[1] * o[1], u = o[0] * s[0] + o[1] * s[1], d = u * u / c;
2265
2265
  return u < 0 ? l : d > c ? (e - i) * (e - i) + (t - a) * (t - a) : l - d;
2266
2266
  }, mr = function(e, t, n) {
2267
- for (var r, i, a, o, s, c = 0, l = 0; l < n.length / 2; l++) if (r = n[l * 2], i = n[l * 2 + 1], l + 1 < n.length / 2 ? (a = n[(l + 1) * 2], o = n[(l + 1) * 2 + 1]) : (a = n[(l + 1 - n.length / 2) * 2], o = n[(l + 1 - n.length / 2) * 2 + 1]), !(r == e && a == e)) if (r >= e && e >= a || r <= e && e <= a) s = (e - r) / (a - r) * (o - i) + i, s > t && c++;
2267
+ for (var r, i, a, o, s, c = 0, l = 0; l < n.length / 2; l++) if (r = n[l * 2], i = n[l * 2 + 1], l + 1 < n.length / 2 ? (a = n[(l + 1) * 2], o = n[(l + 1) * 2 + 1]) : (a = n[(l + 1 - n.length / 2) * 2], o = n[(l + 1 - n.length / 2) * 2 + 1]), r != e || a != e) if (r >= e && e >= a || r <= e && e <= a) s = (e - r) / (a - r) * (o - i) + i, s > t && c++;
2268
2268
  else continue;
2269
2269
  return c % 2 != 0;
2270
2270
  }, hr = function(e, t, n, r, i, a, o, s, c) {
@@ -3068,7 +3068,7 @@ var mi = Kt({
3068
3068
  d[M * o + M] = (1 - r.damping) * (N - y[M]) + r.damping * v[M];
3069
3069
  }
3070
3070
  for (var I = 0, L = 0; L < o; L++) {
3071
- var R = d[L * o + L] + u[L * o + L] > 0 ? 1 : 0;
3071
+ var R = +(d[L * o + L] + u[L * o + L] > 0);
3072
3072
  S[w % r.minIterations * o + L] = R, I += R;
3073
3073
  }
3074
3074
  if (I > 0 && (w >= r.minIterations - 1 || w == r.maxIterations - 1)) {
@@ -3655,7 +3655,7 @@ function Za() {
3655
3655
  Xa = 1;
3656
3656
  function e(e) {
3657
3657
  var t = this.has(e) && delete this.__data__[e];
3658
- return this.size -= t ? 1 : 0, t;
3658
+ return this.size -= +!!t, t;
3659
3659
  }
3660
3660
  return Ya = e, Ya;
3661
3661
  }
@@ -3692,7 +3692,7 @@ function oo() {
3692
3692
  var e = Ga(), t = "__lodash_hash_undefined__";
3693
3693
  function n(n, r) {
3694
3694
  var i = this.__data__;
3695
- return this.size += this.has(n) ? 0 : 1, i[n] = e && r === void 0 ? t : r, this;
3695
+ return this.size += +!this.has(n), i[n] = e && r === void 0 ? t : r, this;
3696
3696
  }
3697
3697
  return io = n, io;
3698
3698
  }
@@ -3842,7 +3842,7 @@ function Yo() {
3842
3842
  var e = Ko();
3843
3843
  function t(t) {
3844
3844
  var n = e(this, t).delete(t);
3845
- return this.size -= n ? 1 : 0, n;
3845
+ return this.size -= +!!n, n;
3846
3846
  }
3847
3847
  return qo = t, qo;
3848
3848
  }
@@ -4012,7 +4012,7 @@ function Ls() {
4012
4012
  }
4013
4013
  return Fs = t, Fs;
4014
4014
  }
4015
- var Rs = /* @__PURE__ */ ve(Ls()), zs, Bs;
4015
+ var Rs = /*@__PURE__*/ ve(Ls()), zs, Bs;
4016
4016
  function Vs() {
4017
4017
  if (Bs) return zs;
4018
4018
  Bs = 1;
@@ -4092,7 +4092,7 @@ function nc() {
4092
4092
  }
4093
4093
  return ec = t, ec;
4094
4094
  }
4095
- var rc = /* @__PURE__ */ ve(nc()), ic, ac;
4095
+ var rc = /*@__PURE__*/ ve(nc()), ic, ac;
4096
4096
  function oc() {
4097
4097
  if (ac) return ic;
4098
4098
  ac = 1;
@@ -4113,7 +4113,7 @@ function lc() {
4113
4113
  }
4114
4114
  return sc = s, sc;
4115
4115
  }
4116
- var uc = /* @__PURE__ */ ve(lc()), dc = {
4116
+ var uc = /*@__PURE__*/ ve(lc()), dc = {
4117
4117
  data: function(e) {
4118
4118
  return e = X({}, {
4119
4119
  field: "data",
@@ -5247,10 +5247,10 @@ X(qc, {
5247
5247
  return t.source().same(t.target()) ? 2 : 1;
5248
5248
  }),
5249
5249
  indegree: Jc(function(e, t) {
5250
- return t.target().same(e) ? 1 : 0;
5250
+ return +!!t.target().same(e);
5251
5251
  }),
5252
5252
  outdegree: Jc(function(e, t) {
5253
- return t.source().same(e) ? 1 : 0;
5253
+ return +!!t.source().same(e);
5254
5254
  })
5255
5255
  });
5256
5256
  function Yc(e, t) {
@@ -5293,7 +5293,7 @@ var Xc, Zc, Qc = function(e, t, n) {
5293
5293
  x: t.x == null ? 0 : t.x - a.x,
5294
5294
  y: t.y == null ? 0 : t.y - a.y
5295
5295
  };
5296
- i.isParent() && !(o.x === 0 && o.y === 0) && i.children().shift(o, n), i.dirtyBoundingBoxCache();
5296
+ i.isParent() && (o.x !== 0 || o.y !== 0) && i.children().shift(o, n), i.dirtyBoundingBoxCache();
5297
5297
  }
5298
5298
  }
5299
5299
  }, $c = {
@@ -5429,7 +5429,7 @@ nl.renderedBoundingBox = function(e) {
5429
5429
  h: c - s
5430
5430
  };
5431
5431
  }, nl.dirtyCompoundBoundsCache = function() {
5432
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = this.cy();
5432
+ var e = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], t = this.cy();
5433
5433
  return !t.styleEnabled() || !t.hasCompoundNodes() || this.forEachUp(function(t) {
5434
5434
  if (t.isParent()) {
5435
5435
  var n = t._private;
@@ -5437,7 +5437,7 @@ nl.renderedBoundingBox = function(e) {
5437
5437
  }
5438
5438
  }), this;
5439
5439
  }, nl.updateCompoundBounds = function() {
5440
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = this.cy();
5440
+ var e = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], t = this.cy();
5441
5441
  if (!t.styleEnabled() || !t.hasCompoundNodes() || !e && t.batching()) return this;
5442
5442
  function n(e) {
5443
5443
  if (!e.isParent()) return;
@@ -5500,7 +5500,7 @@ nl.renderedBoundingBox = function(e) {
5500
5500
  var rl = function(e) {
5501
5501
  return e === Infinity || e === -Infinity ? 0 : e;
5502
5502
  }, il = function(e, t, n, r, i) {
5503
- r - t === 0 || i - n === 0 || t == null || n == null || r == null || i == null || (e.x1 = t < e.x1 ? t : e.x1, e.x2 = r > e.x2 ? r : e.x2, e.y1 = n < e.y1 ? n : e.y1, e.y2 = i > e.y2 ? i : e.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1);
5503
+ r - t !== 0 && i - n !== 0 && t != null && n != null && r != null && i != null && (e.x1 = t < e.x1 ? t : e.x1, e.x2 = r > e.x2 ? r : e.x2, e.y1 = n < e.y1 ? n : e.y1, e.y2 = i > e.y2 ? i : e.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1);
5504
5504
  }, al = function(e, t) {
5505
5505
  return t == null ? e : il(e, t.x1, t.y1, t.x2, t.y2);
5506
5506
  }, ol = function(e, t, n) {
@@ -5677,7 +5677,7 @@ var rl = function(e) {
5677
5677
  return a.x1 = rl(a.x1), a.y1 = rl(a.y1), a.x2 = rl(a.x2), a.y2 = rl(a.y2), a.w = rl(a.x2 - a.x1), a.h = rl(a.y2 - a.y1), a.w > 0 && a.h > 0 && v && (Qn(a, g), Zn(a, 1)), a;
5678
5678
  }, pl = function(e) {
5679
5679
  var t = 0, n = function(e) {
5680
- return (e ? 1 : 0) << t++;
5680
+ return +!!e << t++;
5681
5681
  }, r = 0;
5682
5682
  return r += n(e.incudeNodes), r += n(e.includeEdges), r += n(e.includeLabels), r += n(e.includeMainLabels), r += n(e.includeSourceLabels), r += n(e.includeTargetLabels), r += n(e.includeOverlays), r += n(e.includeOutlines), r;
5683
5683
  }, ml = function(e) {
@@ -5999,7 +5999,7 @@ var Ul = {
5999
5999
  },
6000
6000
  eventMatches: function(e, t, n) {
6001
6001
  var r = t.qualifier;
6002
- return r == null ? !0 : e !== n.target && P(n.target) && r.matches(n.target);
6002
+ return r == null || e !== n.target && P(n.target) && r.matches(n.target);
6003
6003
  },
6004
6004
  addEventFields: function(e, t) {
6005
6005
  t.cy = e.cy(), t.target = e;
@@ -6287,7 +6287,7 @@ var Jl = {
6287
6287
  var i = r(e) - r(t);
6288
6288
  if (i !== 0) return i;
6289
6289
  function a(e) {
6290
- return e.pstyle("z-index-compare").value === "auto" && e.isNode() ? 1 : 0;
6290
+ return e.pstyle("z-index-compare").value === "auto" ? +!!e.isNode() : 0;
6291
6291
  }
6292
6292
  var o = a(e) - a(t);
6293
6293
  if (o !== 0) return o;
@@ -6640,7 +6640,7 @@ function iu(e) {
6640
6640
  };
6641
6641
  }
6642
6642
  var au = eu("eleTakesUpSpace", function(e) {
6643
- return e.pstyle("display").value === "element" && e.width() !== 0 && (e.isNode() ? e.height() !== 0 : !0);
6643
+ return e.pstyle("display").value === "element" && e.width() !== 0 && (!e.isNode() || e.height() !== 0);
6644
6644
  });
6645
6645
  nu.takesUpSpace = tu("takesUpSpace", iu({ ok: au })), nu.interactive = tu("interactive", iu({
6646
6646
  ok: eu("eleInteractive", function(e) {
@@ -6731,14 +6731,14 @@ cu({
6731
6731
  field: "selected",
6732
6732
  ableField: "selectable",
6733
6733
  overrideAble: function(e) {
6734
- return e.cy().autounselectify() ? !1 : void 0;
6734
+ return !e.cy().autounselectify() && void 0;
6735
6735
  },
6736
6736
  on: "select",
6737
6737
  off: "unselect"
6738
6738
  }), cu({
6739
6739
  field: "selectable",
6740
6740
  overrideField: function(e) {
6741
- return e.cy().autounselectify() ? !1 : void 0;
6741
+ return !e.cy().autounselectify() && void 0;
6742
6742
  },
6743
6743
  on: "selectify",
6744
6744
  off: "unselectify"
@@ -6924,7 +6924,7 @@ X(lu, {
6924
6924
  }
6925
6925
  }), lu.componentsOf = lu.components;
6926
6926
  var gu = function(e, t) {
6927
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
6927
+ var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
6928
6928
  if (e === void 0) {
6929
6929
  Lt("A collection must have a reference to the core");
6930
6930
  return;
@@ -7282,59 +7282,59 @@ var vu = {
7282
7282
  }
7283
7283
  };
7284
7284
  function yu(e, t, n, r) {
7285
- var i = 4, a = .001, o = 1e-7, s = 10, c = 11, l = 1 / (c - 1), u = typeof Float32Array < "u";
7285
+ var i = 11, a = 1 / (i - 1), o = typeof Float32Array < "u";
7286
7286
  if (arguments.length !== 4) return !1;
7287
- for (var d = 0; d < 4; ++d) if (typeof arguments[d] != "number" || isNaN(arguments[d]) || !isFinite(arguments[d])) return !1;
7287
+ for (var s = 0; s < 4; ++s) if (typeof arguments[s] != "number" || isNaN(arguments[s]) || !isFinite(arguments[s])) return !1;
7288
7288
  e = Math.min(e, 1), n = Math.min(n, 1), e = Math.max(e, 0), n = Math.max(n, 0);
7289
- var f = u ? new Float32Array(c) : Array(c);
7290
- function p(e, t) {
7289
+ var c = o ? new Float32Array(i) : Array(i);
7290
+ function l(e, t) {
7291
7291
  return 1 - 3 * t + 3 * e;
7292
7292
  }
7293
- function m(e, t) {
7293
+ function u(e, t) {
7294
7294
  return 3 * t - 6 * e;
7295
7295
  }
7296
- function h(e) {
7296
+ function d(e) {
7297
7297
  return 3 * e;
7298
7298
  }
7299
- function g(e, t, n) {
7300
- return ((p(t, n) * e + m(t, n)) * e + h(t)) * e;
7299
+ function f(e, t, n) {
7300
+ return ((l(t, n) * e + u(t, n)) * e + d(t)) * e;
7301
7301
  }
7302
- function _(e, t, n) {
7303
- return 3 * p(t, n) * e * e + 2 * m(t, n) * e + h(t);
7302
+ function p(e, t, n) {
7303
+ return 3 * l(t, n) * e * e + 2 * u(t, n) * e + d(t);
7304
7304
  }
7305
- function v(t, r) {
7306
- for (var a = 0; a < i; ++a) {
7307
- var o = _(r, e, n);
7308
- if (o === 0) return r;
7309
- var s = g(r, e, n) - t;
7310
- r -= s / o;
7305
+ function m(t, r) {
7306
+ for (var i = 0; i < 4; ++i) {
7307
+ var a = p(r, e, n);
7308
+ if (a === 0) return r;
7309
+ var o = f(r, e, n) - t;
7310
+ r -= o / a;
7311
7311
  }
7312
7312
  return r;
7313
7313
  }
7314
- function y() {
7315
- for (var t = 0; t < c; ++t) f[t] = g(t * l, e, n);
7314
+ function h() {
7315
+ for (var t = 0; t < i; ++t) c[t] = f(t * a, e, n);
7316
7316
  }
7317
- function b(t, r, i) {
7318
- var a, c, l = 0;
7317
+ function g(t, r, i) {
7318
+ var a, o, s = 0;
7319
7319
  do
7320
- c = r + (i - r) / 2, a = g(c, e, n) - t, a > 0 ? i = c : r = c;
7321
- while (Math.abs(a) > o && ++l < s);
7322
- return c;
7320
+ o = r + (i - r) / 2, a = f(o, e, n) - t, a > 0 ? i = o : r = o;
7321
+ while (Math.abs(a) > 1e-7 && ++s < 10);
7322
+ return o;
7323
7323
  }
7324
- function x(t) {
7325
- for (var r = 0, i = 1, o = c - 1; i !== o && f[i] <= t; ++i) r += l;
7326
- --i;
7327
- var s = (t - f[i]) / (f[i + 1] - f[i]), u = r + s * l, d = _(u, e, n);
7328
- return d >= a ? v(t, u) : d === 0 ? u : b(t, r, r + l);
7324
+ function _(t) {
7325
+ for (var r = 0, o = 1, s = i - 1; o !== s && c[o] <= t; ++o) r += a;
7326
+ --o;
7327
+ var l = (t - c[o]) / (c[o + 1] - c[o]), u = r + l * a, d = p(u, e, n);
7328
+ return d >= .001 ? m(t, u) : d === 0 ? u : g(t, r, r + a);
7329
7329
  }
7330
- var S = !1;
7331
- function C() {
7332
- S = !0, (e !== t || n !== r) && y();
7330
+ var v = !1;
7331
+ function y() {
7332
+ v = !0, (e !== t || n !== r) && h();
7333
7333
  }
7334
- var w = function(i) {
7335
- return S || C(), e === t && n === r ? i : i === 0 ? 0 : i === 1 ? 1 : g(x(i), t, r);
7334
+ var b = function(i) {
7335
+ return v || y(), e === t && n === r ? i : i === 0 ? 0 : i === 1 ? 1 : f(_(i), t, r);
7336
7336
  };
7337
- w.getControlPoints = function() {
7337
+ b.getControlPoints = function() {
7338
7338
  return [{
7339
7339
  x: e,
7340
7340
  y: t
@@ -7343,15 +7343,15 @@ function yu(e, t, n, r) {
7343
7343
  y: r
7344
7344
  }];
7345
7345
  };
7346
- var T = "generateBezier(" + [
7346
+ var x = "generateBezier(" + [
7347
7347
  e,
7348
7348
  t,
7349
7349
  n,
7350
7350
  r
7351
7351
  ] + ")";
7352
- return w.toString = function() {
7353
- return T;
7354
- }, w;
7352
+ return b.toString = function() {
7353
+ return x;
7354
+ }, b;
7355
7355
  }
7356
7356
  var bu = function() {
7357
7357
  function e(e) {
@@ -7558,7 +7558,7 @@ var Au = {
7558
7558
  },
7559
7559
  eventMatches: function(e, t, n) {
7560
7560
  var r = t.qualifier;
7561
- return r == null ? !0 : e !== n.target && P(n.target) && r.matches(n.target);
7561
+ return r == null || e !== n.target && P(n.target) && r.matches(n.target);
7562
7562
  },
7563
7563
  addEventFields: function(e, t) {
7564
7564
  t.cy = e, t.target = e;
@@ -8713,7 +8713,7 @@ var Ju = {};
8713
8713
  };
8714
8714
  var c = {
8715
8715
  zeroNonZero: function(e, t) {
8716
- return (e == null || t == null) && e !== t || e == 0 && t != 0 ? !0 : e != 0 && t == 0;
8716
+ return (e == null || t == null) && e !== t || e == 0 && t != 0 || e != 0 && t == 0;
8717
8717
  },
8718
8718
  any: function(e, t) {
8719
8719
  return e != t;
@@ -8939,7 +8939,7 @@ var Ju = {};
8939
8939
  triggersBounds: c.any,
8940
8940
  triggersBoundsOfConnectedEdges: c.any,
8941
8941
  triggersBoundsOfParallelEdges: function(e, t, n) {
8942
- return e === t ? !1 : n.pstyle("curve-style").value === "bezier";
8942
+ return e !== t && n.pstyle("curve-style").value === "bezier";
8943
8943
  }
8944
8944
  },
8945
8945
  {
@@ -10828,7 +10828,7 @@ cd.prototype.run = function() {
10828
10828
  var c = od(s);
10829
10829
  if (c != null) {
10830
10830
  var l = c.index, u = c.depth;
10831
- if (!(l == null || u == null)) {
10831
+ if (l != null && u != null) {
10832
10832
  var d = _[u].length;
10833
10833
  u < t && (i += l / d, a++);
10834
10834
  }
@@ -11266,7 +11266,7 @@ var gd = function(e, t, n) {
11266
11266
  }, kd = function(e, t) {
11267
11267
  for (var n = 0; n < e.edgeSize; n++) {
11268
11268
  var r = e.layoutEdges[n], i = e.idToIndex[r.sourceId], a = e.layoutNodes[i], o = e.idToIndex[r.targetId], s = e.layoutNodes[o], c = s.positionX - a.positionX, l = s.positionY - a.positionY;
11269
- if (!(c === 0 && l === 0)) {
11269
+ if (c !== 0 || l !== 0) {
11270
11270
  var u = Od(a, c, l), d = Od(s, -1 * c, -1 * l), f = d.x - u.x, p = d.y - u.y, m = Math.sqrt(f * f + p * p), h = (r.idealLength - m) ** 2 / r.elasticity;
11271
11271
  if (m !== 0) var g = h * f / m, _ = h * p / m;
11272
11272
  else var g = 0, _ = 0;
@@ -11866,10 +11866,10 @@ Yd.projectIntoViewport = function(e, t) {
11866
11866
  right: r("border-right-width"),
11867
11867
  top: r("border-top-width"),
11868
11868
  bottom: r("border-bottom-width")
11869
- }, o = e.clientWidth, s = e.clientHeight, c = i.left + i.right, l = i.top + i.bottom, u = a.left + a.right, d = t.width / (o + u), f = o - c, p = s - l;
11869
+ }, o = e.clientWidth, s = e.clientHeight, c = i.left + i.right, l = i.top + i.bottom, u = a.left + a.right, d = t.width / (o + u), f = o - c, p = s - l, m = t.left + i.left + a.left, h = t.top + i.top + a.top;
11870
11870
  return this.containerBB = [
11871
- t.left + i.left + a.left,
11872
- t.top + i.top + a.top,
11871
+ m,
11872
+ h,
11873
11873
  f,
11874
11874
  p,
11875
11875
  d
@@ -12531,7 +12531,7 @@ wf.findMidptPtsEtc = function(e, t) {
12531
12531
  var t = this;
12532
12532
  if (!(!e || e.length === 0)) {
12533
12533
  for (var n = this, r = n.cy.hasCompoundNodes(), i = new Qt(), a = function(e, t) {
12534
- return [].concat(p(e), [t ? 1 : 0]).join("-");
12534
+ return [].concat(p(e), [+!!t]).join("-");
12535
12535
  }, o = [], s = [], c = 0; c < e.length; c++) {
12536
12536
  var l = e[c], u = l._private, d = l.pstyle("curve-style").value;
12537
12537
  if (!(l.removed() || !l.takesUpSpace())) {
@@ -13254,7 +13254,7 @@ Bf.registerBinding = function(e, t, n, r) {
13254
13254
  var n = t.addToList;
13255
13255
  !n.has(e) && e.grabbable() && !e.locked() && (n.merge(e), s(e));
13256
13256
  }, m = function(e, t) {
13257
- if (e.cy().hasCompoundNodes() && !(t.inDragLayer == null && t.addToList == null)) {
13257
+ if (e.cy().hasCompoundNodes() && (t.inDragLayer != null || t.addToList != null)) {
13258
13258
  var n = e.descendants();
13259
13259
  t.inDragLayer && (n.forEach(l), n.connectedEdges().forEach(l)), t.addToList && p(n, t);
13260
13260
  }
@@ -13271,7 +13271,7 @@ Bf.registerBinding = function(e, t, n, r) {
13271
13271
  c(e), u(e), f(e);
13272
13272
  }), e.updateCachedGrabbedEles());
13273
13273
  }, v = function(e, t) {
13274
- if (!(t.inDragLayer == null && t.addToList == null) && e.cy().hasCompoundNodes()) {
13274
+ if ((t.inDragLayer != null || t.addToList != null) && e.cy().hasCompoundNodes()) {
13275
13275
  var n = e.ancestors().orphans();
13276
13276
  if (!n.same(e)) {
13277
13277
  var r = n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()), i = r.connectedEdges();
@@ -13331,7 +13331,7 @@ Bf.registerBinding = function(e, t, n, r) {
13331
13331
  return !!p;
13332
13332
  };
13333
13333
  e.registerBinding(e.container, "mousedown", function(t) {
13334
- if (E(t) && !(e.hoverData.which === 1 && t.which !== 1)) {
13334
+ if (E(t) && (e.hoverData.which !== 1 || t.which === 1)) {
13335
13335
  t.preventDefault(), y(), e.hoverData.capture = !0, e.hoverData.which = t.which;
13336
13336
  var n = e.cy, r = [t.clientX, t.clientY], a = e.projectIntoViewport(r[0], r[1]), o = e.selection, s = e.findNearestElements(a[0], a[1], !0, !1), c = s[0], l = e.dragData.possibleDragElements;
13337
13337
  e.hoverData.mdownPos = a, e.hoverData.mdownGPos = r;
@@ -14140,7 +14140,7 @@ Vf.generatePolygon = function(e, t) {
14140
14140
  this.renderer.nodeShapeImpl(this.name, e, t, n, r, i);
14141
14141
  },
14142
14142
  intersectLine: function(e, t, n, r, i, a, o, s) {
14143
- var c = .15, l = .5, u = .85, d = this.generateBarrelBezierPts(n + 2 * o, r + 2 * o, e, t), f = function(e) {
14143
+ var c = this.generateBarrelBezierPts(n + 2 * o, r + 2 * o, e, t), l = function(e) {
14144
14144
  var t = Un({
14145
14145
  x: e[0],
14146
14146
  y: e[1]
@@ -14150,7 +14150,7 @@ Vf.generatePolygon = function(e, t) {
14150
14150
  }, {
14151
14151
  x: e[4],
14152
14152
  y: e[5]
14153
- }, c), n = Un({
14153
+ }, .15), n = Un({
14154
14154
  x: e[0],
14155
14155
  y: e[1]
14156
14156
  }, {
@@ -14159,7 +14159,7 @@ Vf.generatePolygon = function(e, t) {
14159
14159
  }, {
14160
14160
  x: e[4],
14161
14161
  y: e[5]
14162
- }, l), r = Un({
14162
+ }, .5), r = Un({
14163
14163
  x: e[0],
14164
14164
  y: e[1]
14165
14165
  }, {
@@ -14168,7 +14168,7 @@ Vf.generatePolygon = function(e, t) {
14168
14168
  }, {
14169
14169
  x: e[4],
14170
14170
  y: e[5]
14171
- }, u);
14171
+ }, .85);
14172
14172
  return [
14173
14173
  e[0],
14174
14174
  e[1],
@@ -14182,7 +14182,7 @@ Vf.generatePolygon = function(e, t) {
14182
14182
  e[5]
14183
14183
  ];
14184
14184
  };
14185
- return Tr(i, a, [].concat(f(d.topLeft), f(d.topRight), f(d.bottomRight), f(d.bottomLeft)), e, t);
14185
+ return Tr(i, a, [].concat(l(c.topLeft), l(c.topRight), l(c.bottomRight), l(c.bottomLeft)), e, t);
14186
14186
  },
14187
14187
  generateBarrelBezierPts: function(e, t, n, r) {
14188
14188
  var i = t / 2, a = e / 2, o = n - a, s = n + a, c = r - i, l = r + i, u = Fr(e, t), d = u.heightOffset, f = u.widthOffset, p = u.ctrlPtOffsetPct * e, m = {
@@ -14532,7 +14532,7 @@ var Kf = 1e3 / 60, qf = { setupDequeueing: function(e) {
14532
14532
  n.beforeRender(i, a(t));
14533
14533
  }
14534
14534
  };
14535
- } }, Jf = /* @__PURE__ */ function() {
14535
+ } }, Jf = /*#__PURE__*/ function() {
14536
14536
  function e(t) {
14537
14537
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pt;
14538
14538
  r(this, e), this.idsByKey = new Qt(), this.keyForId = new Qt(), this.cachesByLvl = new Qt(), this.lvls = [], this.getKey = t, this.doesEleInvalidateKey = n;
@@ -15114,7 +15114,7 @@ Up.drawElement = function(e, t, n, r, i, a) {
15114
15114
  t.isNode() ? n.drawNodeUnderlay(e, t) : n.drawEdgeUnderlay(e, t);
15115
15115
  }, Up.drawCachedElementPortion = function(e, t, n, r, i, a, o, s) {
15116
15116
  var c = this, l = n.getBoundingBox(t);
15117
- if (!(l.w === 0 || l.h === 0)) {
15117
+ if (l.w !== 0 && l.h !== 0) {
15118
15118
  var u = n.getElement(t, l, r, i, a);
15119
15119
  if (u != null) {
15120
15120
  var d = s(c, t);
@@ -15169,7 +15169,7 @@ Up.drawCachedElement = function(e, t, n, r, i, a) {
15169
15169
  var i = this, a = i.data.lyrTxrCache.getLayers(t, n);
15170
15170
  if (a) for (var o = 0; o < a.length; o++) {
15171
15171
  var s = a[o], c = s.bb;
15172
- c.w === 0 || c.h === 0 || e.drawImage(s.canvas, c.x1, c.y1, c.w, c.h);
15172
+ c.w !== 0 && c.h !== 0 && e.drawImage(s.canvas, c.x1, c.y1, c.w, c.h);
15173
15173
  }
15174
15174
  else i.drawCachedElements(e, t, n, r);
15175
15175
  };
@@ -15315,7 +15315,7 @@ Qp.safeDrawImage = function(e, t, n, r, i, a, o, s, c, l) {
15315
15315
  var C = t.width || t.cachedW, w = t.height || t.cachedH;
15316
15316
  (C == null || w == null) && (document.body.appendChild(t), C = t.cachedW = t.width || t.offsetWidth, w = t.cachedH = t.height || t.offsetHeight, document.body.removeChild(t));
15317
15317
  var T = C, E = w;
15318
- if (u(n, "background-width", "value", r) !== "auto" && (T = u(n, "background-width", "units", r) === "%" ? u(n, "background-width", "pfValue", r) * g : u(n, "background-width", "pfValue", r)), u(n, "background-height", "value", r) !== "auto" && (E = u(n, "background-height", "units", r) === "%" ? u(n, "background-height", "pfValue", r) * _ : u(n, "background-height", "pfValue", r)), !(T === 0 || E === 0)) {
15318
+ if (u(n, "background-width", "value", r) !== "auto" && (T = u(n, "background-width", "units", r) === "%" ? u(n, "background-width", "pfValue", r) * g : u(n, "background-width", "pfValue", r)), u(n, "background-height", "value", r) !== "auto" && (E = u(n, "background-height", "units", r) === "%" ? u(n, "background-height", "pfValue", r) * _ : u(n, "background-height", "pfValue", r)), T !== 0 && E !== 0) {
15319
15319
  if (d === "contain") {
15320
15320
  var D = Math.min(g / T, _ / E);
15321
15321
  T *= D, E *= D;
@@ -15513,10 +15513,10 @@ nm.drawNode = function(e, t, n) {
15513
15513
  }
15514
15514
  l.backgrounding = a !== x, i !== l.backgrounding && t.updateStyle(!1);
15515
15515
  }, ne = function() {
15516
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
15516
+ var n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
15517
15517
  o.hasPie(t) && (o.drawPie(e, t, r), n && (p || o.nodeShapes[o.getNodeShape(t)].draw(e, d.x, d.y, s, c, H, u)));
15518
15518
  }, re = function() {
15519
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
15519
+ var n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
15520
15520
  o.hasStripe(t) && (e.save(), p ? e.clip(u.pathCache) : (o.nodeShapes[o.getNodeShape(t)].draw(e, d.x, d.y, s, c, H, u), e.clip()), o.drawStripe(e, t, r), e.restore(), n && (p || o.nodeShapes[o.getNodeShape(t)].draw(e, d.x, d.y, s, c, H, u)));
15521
15521
  }, ie = function() {
15522
15522
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, n = (T > 0 ? T : -T) * t, r = T > 0 ? 0 : 255;
@@ -15776,7 +15776,7 @@ im.getPixelRatio = function() {
15776
15776
  var t = this, n = t.data, r = t.findContainerClientCoords(), i = r[2], a = r[3], o = t.getPixelRatio(), s = t.motionBlurPxRatio;
15777
15777
  (e === t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE] || e === t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG]) && (o = s);
15778
15778
  var c = i * o, l = a * o, u;
15779
- if (!(c === t.canvasWidth && l === t.canvasHeight)) {
15779
+ if (c !== t.canvasWidth || l !== t.canvasHeight) {
15780
15780
  t.fontCaches = null;
15781
15781
  var d = n.canvasContainer;
15782
15782
  d.style.width = i + "px", d.style.height = a + "px";
@@ -15815,7 +15815,7 @@ im.getPixelRatio = function() {
15815
15815
  y: x.y
15816
15816
  }
15817
15817
  }, w = t.prevViewport;
15818
- !(w === void 0 || C.zoom !== w.zoom || C.pan.x !== w.pan.x || C.pan.y !== w.pan.y) && !(h && !m) && (t.motionBlurPxRatio = 1), s && (S = s), b *= c, S.x *= c, S.y *= c;
15818
+ w !== void 0 && C.zoom === w.zoom && C.pan.x === w.pan.x && C.pan.y === w.pan.y && !(h && !m) && (t.motionBlurPxRatio = 1), s && (S = s), b *= c, S.x *= c, S.y *= c;
15819
15819
  var T = t.getCachedZSortedEles();
15820
15820
  function E(e, n, r, i, a) {
15821
15821
  var o = e.globalCompositeOperation;
@@ -15935,7 +15935,7 @@ function fm(e, t, n, r, i) {
15935
15935
  return o = Math.round(e.canvasHeight - o), [a, o];
15936
15936
  }
15937
15937
  function pm(e) {
15938
- return e.pstyle("background-fill").value !== "solid" || e.pstyle("background-image").strValue !== "none" ? !1 : e.pstyle("border-width").value === 0 || e.pstyle("border-opacity").value === 0 ? !0 : e.pstyle("border-style").value === "solid";
15938
+ return e.pstyle("background-fill").value !== "solid" || e.pstyle("background-image").strValue !== "none" ? !1 : e.pstyle("border-width").value === 0 || e.pstyle("border-opacity").value === 0 || e.pstyle("border-style").value === "solid";
15939
15939
  }
15940
15940
  function mm(e, t) {
15941
15941
  if (e.length !== t.length) return !1;
@@ -16092,7 +16092,7 @@ function Mm(e, t, n) {
16092
16092
  function Nm(e, t, n) {
16093
16093
  return e[0] = 2 / t, e[1] = 0, e[2] = 0, e[3] = 0, e[4] = -2 / n, e[5] = 0, e[6] = -1, e[7] = 1, e[8] = 1, e;
16094
16094
  }
16095
- var Pm = /* @__PURE__ */ function() {
16095
+ var Pm = /*#__PURE__*/ function() {
16096
16096
  function e(t, n, i, a) {
16097
16097
  r(this, e), this.debugID = Math.floor(Math.random() * 1e4), this.r = t, this.texSize = n, this.texRows = i, this.texHeight = Math.floor(n / i), this.enableWrapping = !0, this.locked = !1, this.texture = null, this.needsBuffer = !0, this.freePointer = {
16098
16098
  x: 0,
@@ -16207,7 +16207,7 @@ var Pm = /* @__PURE__ */ function() {
16207
16207
  }
16208
16208
  }
16209
16209
  ]);
16210
- }(), Fm = /* @__PURE__ */ function() {
16210
+ }(), Fm = /*#__PURE__*/ function() {
16211
16211
  function e(t, n, i, a) {
16212
16212
  r(this, e), this.r = t, this.texSize = n, this.texRows = i, this.createTextureCanvas = a, this.atlases = [], this.styleKeyToAtlas = /* @__PURE__ */ new Map(), this.markedKeys = /* @__PURE__ */ new Set();
16213
16213
  }
@@ -16229,8 +16229,8 @@ var Pm = /* @__PURE__ */ function() {
16229
16229
  key: "_getScratchCanvas",
16230
16230
  value: function() {
16231
16231
  if (!this.scratch) {
16232
- var e = this.r, t = this.texSize, n = this.texRows, r = this.createTextureCanvas;
16233
- this.scratch = r(e, t, Math.floor(t / n), "scratch");
16232
+ var e = this.r, t = this.texSize, n = this.texRows, r = this.createTextureCanvas, i = Math.floor(t / n);
16233
+ this.scratch = r(e, t, i, "scratch");
16234
16234
  }
16235
16235
  return this.scratch;
16236
16236
  }
@@ -16340,7 +16340,7 @@ function Im(e, t) {
16340
16340
  return t.has(e);
16341
16341
  }));
16342
16342
  }
16343
- var Lm = /* @__PURE__ */ function() {
16343
+ var Lm = /*#__PURE__*/ function() {
16344
16344
  function e(t, n) {
16345
16345
  r(this, e), this.r = t, this.globalOptions = n, this.atlasSize = n.webglTexSize, this.maxAtlasesPerBatch = n.webglTexPerBatch, this.renderTypes = /* @__PURE__ */ new Map(), this.collections = /* @__PURE__ */ new Map(), this.typeAndIdToKey = /* @__PURE__ */ new Map();
16346
16346
  }
@@ -16400,7 +16400,7 @@ var Lm = /* @__PURE__ */ function() {
16400
16400
  {
16401
16401
  key: "invalidate",
16402
16402
  value: function(e) {
16403
- var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.forceRedraw, i = r === void 0 ? !1 : r, a = n.filterEle, s = a === void 0 ? function() {
16403
+ var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.forceRedraw, i = r !== void 0 && r, a = n.filterEle, s = a === void 0 ? function() {
16404
16404
  return !0;
16405
16405
  } : a, c = n.filterType, l = c === void 0 ? function() {
16406
16406
  return !0;
@@ -16506,7 +16506,7 @@ var Lm = /* @__PURE__ */ function() {
16506
16506
  }
16507
16507
  }
16508
16508
  ]);
16509
- }(), Rm = /* @__PURE__ */ function() {
16509
+ }(), Rm = /*#__PURE__*/ function() {
16510
16510
  function e(t) {
16511
16511
  r(this, e), this.globalOptions = t, this.atlasSize = t.webglTexSize, this.maxAtlasesPerBatch = t.webglTexPerBatch, this.batchAtlases = [];
16512
16512
  }
@@ -16552,7 +16552,7 @@ var Lm = /* @__PURE__ */ function() {
16552
16552
  {
16553
16553
  key: "canAddToCurrentBatch",
16554
16554
  value: function(e) {
16555
- return this.batchAtlases.length === this.maxAtlasesPerBatch ? this.batchAtlases.includes(e) : !0;
16555
+ return this.batchAtlases.length !== this.maxAtlasesPerBatch || this.batchAtlases.includes(e);
16556
16556
  }
16557
16557
  },
16558
16558
  {
@@ -16579,7 +16579,7 @@ var Lm = /* @__PURE__ */ function() {
16579
16579
  }, Wm = {
16580
16580
  IGNORE: 1,
16581
16581
  USE_BB: 2
16582
- }, Gm = 0, Km = 1, qm = 2, Jm = 3, Ym = 4, Xm = 5, Zm = 6, Qm = 7, $m = /* @__PURE__ */ function() {
16582
+ }, Gm = 0, Km = 1, qm = 2, Jm = 3, Ym = 4, Xm = 5, Zm = 6, Qm = 7, $m = /*#__PURE__*/ function() {
16583
16583
  function e(t, n, i) {
16584
16584
  r(this, e), this.r = t, this.gl = n, this.maxInstances = i.webglBatchSize, this.atlasSize = i.webglTexSize, this.bgColor = i.bgColor, this.debug = i.webglDebug, this.batchDebugInfo = [], i.enableWrapping = !0, i.createTextureCanvas = lm, this.atlasManager = new Lm(t, i), this.batchManager = new Rm(i), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Um.SCREEN), this.pickingProgram = this._createShaderProgram(Um.PICKING), this.vao = this._createVAO();
16585
16585
  }
@@ -17514,30 +17514,27 @@ function gh(e, t, n) {
17514
17514
  i.endFrame(), n.screen && e.webglDebugShowAtlases && (dh(e), fh(e)), e.data.canvasNeedsRedraw[e.NODE] = !1, e.data.canvasNeedsRedraw[e.DRAG] = !1;
17515
17515
  }
17516
17516
  if (e.webglDebug) {
17517
- var p = performance.now(), m = !1, h = Math.ceil(p - r), g = i.getDebugInfo(), _ = [
17517
+ var p = performance.now(), m = Math.ceil(p - r), h = i.getDebugInfo(), g = [
17518
17518
  `${a} elements`,
17519
- `${g.totalInstances} instances`,
17520
- `${g.batchCount} batches`,
17521
- `${g.totalAtlases} atlases`,
17522
- `${g.wrappedCount} wrapped textures`,
17523
- `${g.simpleCount} simple shapes`
17519
+ `${h.totalInstances} instances`,
17520
+ `${h.batchCount} batches`,
17521
+ `${h.totalAtlases} atlases`,
17522
+ `${h.wrappedCount} wrapped textures`,
17523
+ `${h.simpleCount} simple shapes`
17524
17524
  ].join(", ");
17525
- if (m) console.log(`WebGL (${n.name}) - time ${h}ms, ${_}`);
17526
- else {
17527
- console.log(`WebGL (${n.name}) - frame time ${h}ms`), console.log("Totals:"), console.log(` ${_}`), console.log("Texture Atlases Used:");
17528
- var v = g.atlasInfo, y = o(v), b;
17529
- try {
17530
- for (y.s(); !(b = y.n()).done;) {
17531
- var x = b.value;
17532
- console.log(` ${x.type}: ${x.keyCount} keys, ${x.atlasCount} atlases`);
17533
- }
17534
- } catch (e) {
17535
- y.e(e);
17536
- } finally {
17537
- y.f();
17525
+ console.log(`WebGL (${n.name}) - frame time ${m}ms`), console.log("Totals:"), console.log(` ${g}`), console.log("Texture Atlases Used:");
17526
+ var _ = h.atlasInfo, v = o(_), y;
17527
+ try {
17528
+ for (v.s(); !(y = v.n()).done;) {
17529
+ var b = y.value;
17530
+ console.log(` ${b.type}: ${b.keyCount} keys, ${b.atlasCount} atlases`);
17538
17531
  }
17539
- console.log("");
17532
+ } catch (e) {
17533
+ v.e(e);
17534
+ } finally {
17535
+ v.f();
17540
17536
  }
17537
+ console.log("");
17541
17538
  }
17542
17539
  e.data.gc && (console.log("Garbage Collect!"), e.data.gc = !1, i.gc());
17543
17540
  }