@prefecthq/prefab-ui-docs 0.18.5 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/_renderer/_baseUniq-DH9CMfkg.mjs +477 -0
  2. package/dist/_renderer/{architectureDiagram-2XIMDMQ5-CHx7PBtr.mjs → architectureDiagram-2XIMDMQ5-D822pjiS.mjs} +3 -3
  3. package/dist/_renderer/{blockDiagram-WCTKOSBZ-C5uP2vqK.mjs → blockDiagram-WCTKOSBZ-zC3ZCEht.mjs} +5 -5
  4. package/dist/_renderer/{c4Diagram-IC4MRINW-Mckshwl0.mjs → c4Diagram-IC4MRINW-Cg_dWXmW.mjs} +2 -2
  5. package/dist/_renderer/{carousel-jGRORrJu.mjs → carousel-Cpl1bjkF.mjs} +1 -1
  6. package/dist/_renderer/{channel-KNgIWRh0.mjs → channel-Dxxn7h_C.mjs} +1 -1
  7. package/dist/_renderer/{charts-Kr2PIFri.mjs → charts-DM2qlv55.mjs} +1 -1
  8. package/dist/_renderer/{chunk-4BX2VUAB-D4ZFWMD0.mjs → chunk-4BX2VUAB-Bh5bI7_v.mjs} +1 -1
  9. package/dist/_renderer/{chunk-55IACEB6-DJd76JUM.mjs → chunk-55IACEB6-DaW7GfFV.mjs} +1 -1
  10. package/dist/_renderer/{chunk-FMBD7UC4-BrYDtYUs.mjs → chunk-FMBD7UC4-C2VBZLyr.mjs} +1 -1
  11. package/dist/_renderer/{chunk-JSJVCQXG-DxoJlCoN.mjs → chunk-JSJVCQXG-BVfJez3_.mjs} +1 -1
  12. package/dist/_renderer/{chunk-KX2RTZJC-D-YALGvM.mjs → chunk-KX2RTZJC-CTqbQjR-.mjs} +1 -1
  13. package/dist/_renderer/{chunk-NQ4KR5QH-xMZiDz1z.mjs → chunk-NQ4KR5QH--At4Weuw.mjs} +3 -3
  14. package/dist/_renderer/{chunk-QZHKN3VN-CfPAZxEs.mjs → chunk-QZHKN3VN-B1cy_y-U.mjs} +1 -1
  15. package/dist/_renderer/{chunk-WL4C6EOR-B-gGxeF3.mjs → chunk-WL4C6EOR-BMjZ-0to.mjs} +5 -5
  16. package/dist/_renderer/{classDiagram-v2-RAHNMMFH-CzNkL-4s.mjs → classDiagram-VBA2DB6C-DvUY-C6g.mjs} +2 -2
  17. package/dist/_renderer/{classDiagram-VBA2DB6C-CzNkL-4s.mjs → classDiagram-v2-RAHNMMFH-DvUY-C6g.mjs} +2 -2
  18. package/dist/_renderer/{clone-sZf4oSAl.mjs → clone-D8WW10j4.mjs} +1 -1
  19. package/dist/_renderer/{compound-calendar-B21QjBLX.mjs → compound-calendar-CwUQo8lD.mjs} +1 -1
  20. package/dist/_renderer/{content-ZDehJK5i.mjs → content-B517fd7F.mjs} +1 -1
  21. package/dist/_renderer/{cose-bilkent-S5V4N54A-BoLcm60l.mjs → cose-bilkent-S5V4N54A-D_C6vupm.mjs} +1 -1
  22. package/dist/_renderer/{dagre-KLK3FWXG-Dvs9qe00.mjs → dagre-KLK3FWXG-C4f_kh47.mjs} +24 -25
  23. package/dist/_renderer/{diagram-E7M64L7V-DqYXUdq5.mjs → diagram-E7M64L7V-B8tMSJoq.mjs} +52 -52
  24. package/dist/_renderer/{diagram-IFDJBPK2-C86Tjp8s.mjs → diagram-IFDJBPK2-Dr3YWvRZ.mjs} +3 -3
  25. package/dist/_renderer/{diagram-P4PSJMXO-CSA1CndN.mjs → diagram-P4PSJMXO-DNBN4PVo.mjs} +3 -3
  26. package/dist/_renderer/{embed-2Uwza0kv.mjs → embed-DrRJVNMo.mjs} +2644 -2577
  27. package/dist/_renderer/embed.mjs +1 -1
  28. package/dist/_renderer/{erDiagram-INFDFZHY-tXSAU2V-.mjs → erDiagram-INFDFZHY-DJZ-Zixz.mjs} +4 -4
  29. package/dist/_renderer/{flowDiagram-PKNHOUZH-Ck7GoCsb.mjs → flowDiagram-PKNHOUZH-C3qBnAyS.mjs} +6 -6
  30. package/dist/_renderer/{ganttDiagram-A5KZAMGK-CHkrOJ1q.mjs → ganttDiagram-A5KZAMGK-BjgfTqvH.mjs} +1 -1
  31. package/dist/_renderer/{gitGraphDiagram-K3NZZRJ6-7nzMCub3.mjs → gitGraphDiagram-K3NZZRJ6-DM5r_Ru5.mjs} +4 -4
  32. package/dist/_renderer/{graph-bHaNzIrW.mjs → graph-0OcQYBsN.mjs} +256 -122
  33. package/dist/_renderer/{infoDiagram-LFFYTUFH-b285s-9o.mjs → infoDiagram-LFFYTUFH-CFe_1CRy.mjs} +2 -2
  34. package/dist/_renderer/{ishikawaDiagram-PHBUUO56-BiKtVObK.mjs → ishikawaDiagram-PHBUUO56-Bk2A15A6.mjs} +1 -1
  35. package/dist/_renderer/{journeyDiagram-4ABVD52K-D1ngsxzD.mjs → journeyDiagram-4ABVD52K-CfVNC4Fa.mjs} +3 -3
  36. package/dist/_renderer/{kanban-definition-K7BYSVSG-DTphin_F.mjs → kanban-definition-K7BYSVSG-CKgqgZQ_.mjs} +2 -2
  37. package/dist/_renderer/layout-Cpt54BST.mjs +1441 -0
  38. package/dist/_renderer/{mermaid-7lGQ2UBw.mjs → mermaid-DtgALbpI.mjs} +8 -8
  39. package/dist/_renderer/{mermaid.core-PVHvn-x_.mjs → mermaid.core-DQ-KgOR7.mjs} +92 -94
  40. package/dist/_renderer/min-mcvEHEnR.mjs +38 -0
  41. package/dist/_renderer/{mindmap-definition-YRQLILUH-FOJ_TsVu.mjs → mindmap-definition-YRQLILUH-B-Xixhkq.mjs} +3 -3
  42. package/dist/_renderer/{pieDiagram-SKSYHLDU-poHg5YWZ.mjs → pieDiagram-SKSYHLDU-DyXBBMxw.mjs} +3 -3
  43. package/dist/_renderer/{quadrantDiagram-337W2JSQ-Nq26Je48.mjs → quadrantDiagram-337W2JSQ-fx75_3yK.mjs} +1 -1
  44. package/dist/_renderer/{requirementDiagram-Z7DCOOCP-D4QjC119.mjs → requirementDiagram-Z7DCOOCP-D27A8tvp.mjs} +3 -3
  45. package/dist/_renderer/{sankeyDiagram-WA2Y5GQK-RyTlVkCi.mjs → sankeyDiagram-WA2Y5GQK-CLVR7BQK.mjs} +1 -1
  46. package/dist/_renderer/{sequenceDiagram-2WXFIKYE-CtUrkwmM.mjs → sequenceDiagram-2WXFIKYE-Dv_YORJI.mjs} +3 -3
  47. package/dist/_renderer/{stateDiagram-RAJIS63D-C8Wi0qZn.mjs → stateDiagram-RAJIS63D-DtVfaiJj.mjs} +4 -4
  48. package/dist/_renderer/{stateDiagram-v2-FVOUBMTO-CVZp-z4T.mjs → stateDiagram-v2-FVOUBMTO-ne-KcfsM.mjs} +2 -2
  49. package/dist/_renderer/{svg-BgAbWb9b.mjs → svg-BrimPMDV.mjs} +1 -1
  50. package/dist/_renderer/{timeline-definition-YZTLITO2-CufKH9g5.mjs → timeline-definition-YZTLITO2-Bw3Te8BV.mjs} +1 -1
  51. package/dist/_renderer/{treemap-KZPCXAKY-BF1hUklX.mjs → treemap-KZPCXAKY-DMkjhMHM.mjs} +4754 -4873
  52. package/dist/_renderer/{vennDiagram-LZ73GAT5-B66l06kX.mjs → vennDiagram-LZ73GAT5-CekFoN4h.mjs} +1 -1
  53. package/dist/_renderer/{xychartDiagram-JWTSCODW-CsD1MU3Z.mjs → xychartDiagram-JWTSCODW-BQUGmX67.mjs} +1 -1
  54. package/package.json +1 -1
  55. package/dist/_renderer/_basePickBy-C9hM89XS.mjs +0 -151
  56. package/dist/_renderer/_baseUniq-dLGXSXpi.mjs +0 -614
  57. package/dist/_renderer/layout-BJL2ZwMF.mjs +0 -1335
@@ -1 +1 @@
1
- export * from "./embed-2Uwza0kv.mjs";
1
+ export * from "./embed-DrRJVNMo.mjs";
@@ -1,7 +1,7 @@
1
- import { g as Vt } from "./chunk-55IACEB6-DJd76JUM.mjs";
2
- import { s as Mt } from "./chunk-KX2RTZJC-D-YALGvM.mjs";
3
- import { _ as u, b as Bt, a as Ft, s as Yt, g as Pt, p as zt, q as Gt, c as it, l as L, y as Kt, x as Ut, A as Zt, B as jt, o as Wt, r as Qt, d as Xt, u as qt } from "./mermaid.core-PVHvn-x_.mjs";
4
- import { c as Ht } from "./channel-KNgIWRh0.mjs";
1
+ import { g as Vt } from "./chunk-55IACEB6-DaW7GfFV.mjs";
2
+ import { s as Mt } from "./chunk-KX2RTZJC-CTqbQjR-.mjs";
3
+ import { _ as u, b as Bt, a as Ft, s as Yt, g as Pt, p as zt, q as Gt, c as it, l as L, y as Kt, x as Ut, A as Zt, B as jt, o as Wt, r as Qt, d as Xt, u as qt } from "./mermaid.core-DQ-KgOR7.mjs";
4
+ import { c as Ht } from "./channel-Dxxn7h_C.mjs";
5
5
  var _t = (function() {
6
6
  var s = /* @__PURE__ */ u(function(R, n, a, c) {
7
7
  for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
@@ -1,10 +1,10 @@
1
- import { g as Ht } from "./chunk-FMBD7UC4-BrYDtYUs.mjs";
2
- import { _ as m, n as Mt, l as t1, c as b1, d as O1, o as Xt, r as Qt, u as rt, b as Jt, s as Zt, p as $t, a as te, g as ee, q as se, k as ie, t as re, J as ae, v as ne, x as it, y as ue, z as oe, A as le } from "./mermaid.core-PVHvn-x_.mjs";
3
- import { c as ce } from "./chunk-JSJVCQXG-DxoJlCoN.mjs";
4
- import { g as he } from "./chunk-55IACEB6-DJd76JUM.mjs";
5
- import { s as de } from "./chunk-KX2RTZJC-D-YALGvM.mjs";
1
+ import { g as Ht } from "./chunk-FMBD7UC4-C2VBZLyr.mjs";
2
+ import { _ as m, n as Mt, l as t1, c as b1, d as O1, o as Xt, r as Qt, u as rt, b as Jt, s as Zt, p as $t, a as te, g as ee, q as se, k as ie, t as re, J as ae, v as ne, x as it, y as ue, z as oe, A as le } from "./mermaid.core-DQ-KgOR7.mjs";
3
+ import { c as ce } from "./chunk-JSJVCQXG-BVfJez3_.mjs";
4
+ import { g as he } from "./chunk-55IACEB6-DaW7GfFV.mjs";
5
+ import { s as de } from "./chunk-KX2RTZJC-CTqbQjR-.mjs";
6
6
  import { p as pe } from "./purify.es-M2Bspgo5.mjs";
7
- import { c as fe } from "./channel-KNgIWRh0.mjs";
7
+ import { c as fe } from "./channel-Dxxn7h_C.mjs";
8
8
  var ge = "flowchart-", G1, be = (G1 = class {
9
9
  // cspell:ignore funs
10
10
  constructor() {
@@ -1,4 +1,4 @@
1
- import { g as ze, s as Ve, q as Re, p as He, a as qe, b as Be, _ as c, c as dt, d as Tt, e as je, av as G, l as ot, k as Ge, j as Xe, y as Ue, u as Ze } from "./mermaid.core-PVHvn-x_.mjs";
1
+ import { g as ze, s as Ve, q as Re, p as He, a as qe, b as Be, _ as c, c as dt, d as Tt, e as je, at as G, l as ot, k as Ge, j as Xe, y as Ue, u as Ze } from "./mermaid.core-DQ-KgOR7.mjs";
2
2
  import { g as Ft } from "./icons-z7UO1VFZ.mjs";
3
3
  import { t as Qe, m as Ke, a as Je, b as se, c as ae, d as tr, e as er, f as rr, g as ir, h as nr, i as sr, j as ar, k as oe, l as ce, n as le, s as ue, o as de } from "./time-sQ_UKgU4.mjs";
4
4
  import { l as or } from "./linear-CVnzSbdA.mjs";
@@ -1,7 +1,7 @@
1
- import { p as V } from "./chunk-4BX2VUAB-D4ZFWMD0.mjs";
2
- import { I as X } from "./chunk-QZHKN3VN-CfPAZxEs.mjs";
3
- import { q as J, p as Q, s as Z, g as rr, a as er, b as tr, _ as $, l as m, d as ar, u as sr, C as nr, y as or, k as E, D as cr, E as ir, F as dr, G as hr } from "./mermaid.core-PVHvn-x_.mjs";
4
- import { p as lr } from "./treemap-KZPCXAKY-BF1hUklX.mjs";
1
+ import { p as V } from "./chunk-4BX2VUAB-Bh5bI7_v.mjs";
2
+ import { I as X } from "./chunk-QZHKN3VN-B1cy_y-U.mjs";
3
+ import { q as J, p as Q, s as Z, g as rr, a as er, b as tr, _ as $, l as m, d as ar, u as sr, C as nr, y as or, k as E, D as cr, E as ir, F as dr, G as hr } from "./mermaid.core-DQ-KgOR7.mjs";
4
+ import { p as lr } from "./treemap-KZPCXAKY-DMkjhMHM.mjs";
5
5
  var p = {
6
6
  NORMAL: 0,
7
7
  REVERSE: 1,
@@ -1,14 +1,145 @@
1
- import { ac as N, ad as j, ae as f, af as b, ag as E } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { a as v, c as P, k as _, f as g, d, i as l, v as p, r as D } from "./_baseUniq-dLGXSXpi.mjs";
3
- var w = N(function(o) {
4
- return v(P(o, 1, j, !0));
5
- }), F = "\0", a = "\0", O = "";
6
- class L {
1
+ import { au as T, av as C, aw as Z, ax as R, ay as v, az as k, aA as K, aB as L, aC as V, aD as j, aE as ee, aF as te, aG as re, aH as se, aI as ne, aJ as ie, ao as ae, aK as oe, aL as ue, aM as he, aN as y, aO as S, aP as $ } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { k as d, g as H, s as de, e as ce, f as fe, h as ge, j as le, d as _e, l as be, b as pe, m, n as g, r as ye } from "./_baseUniq-DH9CMfkg.mjs";
3
+ function me(t, e) {
4
+ return t && T(e, d(e), t);
5
+ }
6
+ function je(t, e) {
7
+ return t && T(e, C(e), t);
8
+ }
9
+ function Te(t, e) {
10
+ return T(t, H(t), e);
11
+ }
12
+ var Oe = Object.getOwnPropertySymbols, Y = Oe ? function(t) {
13
+ for (var e = []; t; )
14
+ ce(e, H(t)), t = Z(t);
15
+ return e;
16
+ } : de;
17
+ function Ae(t, e) {
18
+ return T(t, Y(t), e);
19
+ }
20
+ function Ee(t) {
21
+ return fe(t, C, Y);
22
+ }
23
+ var Ce = Object.prototype, Le = Ce.hasOwnProperty;
24
+ function we(t) {
25
+ var e = t.length, r = new t.constructor(e);
26
+ return e && typeof t[0] == "string" && Le.call(t, "index") && (r.index = t.index, r.input = t.input), r;
27
+ }
28
+ function Ne(t, e) {
29
+ var r = e ? R(t.buffer) : t.buffer;
30
+ return new t.constructor(r, t.byteOffset, t.byteLength);
31
+ }
32
+ var Fe = /\w*$/;
33
+ function Pe(t) {
34
+ var e = new t.constructor(t.source, Fe.exec(t));
35
+ return e.lastIndex = t.lastIndex, e;
36
+ }
37
+ var I = v ? v.prototype : void 0, D = I ? I.valueOf : void 0;
38
+ function ve(t) {
39
+ return D ? Object(D.call(t)) : {};
40
+ }
41
+ var Se = "[object Boolean]", $e = "[object Date]", Ie = "[object Map]", De = "[object Number]", Me = "[object RegExp]", Ge = "[object Set]", xe = "[object String]", Ue = "[object Symbol]", Be = "[object ArrayBuffer]", Re = "[object DataView]", Ke = "[object Float32Array]", Ve = "[object Float64Array]", He = "[object Int8Array]", Ye = "[object Int16Array]", qe = "[object Int32Array]", Je = "[object Uint8Array]", We = "[object Uint8ClampedArray]", ze = "[object Uint16Array]", Qe = "[object Uint32Array]";
42
+ function Xe(t, e, r) {
43
+ var s = t.constructor;
44
+ switch (e) {
45
+ case Be:
46
+ return R(t);
47
+ case Se:
48
+ case $e:
49
+ return new s(+t);
50
+ case Re:
51
+ return Ne(t, r);
52
+ case Ke:
53
+ case Ve:
54
+ case He:
55
+ case Ye:
56
+ case qe:
57
+ case Je:
58
+ case We:
59
+ case ze:
60
+ case Qe:
61
+ return k(t, r);
62
+ case Ie:
63
+ return new s();
64
+ case De:
65
+ case xe:
66
+ return new s(t);
67
+ case Me:
68
+ return Pe(t);
69
+ case Ge:
70
+ return new s();
71
+ case Ue:
72
+ return ve(t);
73
+ }
74
+ }
75
+ var Ze = "[object Map]";
76
+ function ke(t) {
77
+ return K(t) && L(t) == Ze;
78
+ }
79
+ var M = j && j.isMap, et = M ? V(M) : ke, tt = "[object Set]";
80
+ function rt(t) {
81
+ return K(t) && L(t) == tt;
82
+ }
83
+ var G = j && j.isSet, st = G ? V(G) : rt, nt = 1, it = 2, at = 4, q = "[object Arguments]", ot = "[object Array]", ut = "[object Boolean]", ht = "[object Date]", dt = "[object Error]", J = "[object Function]", ct = "[object GeneratorFunction]", ft = "[object Map]", gt = "[object Number]", W = "[object Object]", lt = "[object RegExp]", _t = "[object Set]", bt = "[object String]", pt = "[object Symbol]", yt = "[object WeakMap]", mt = "[object ArrayBuffer]", jt = "[object DataView]", Tt = "[object Float32Array]", Ot = "[object Float64Array]", At = "[object Int8Array]", Et = "[object Int16Array]", Ct = "[object Int32Array]", Lt = "[object Uint8Array]", wt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Ft = "[object Uint32Array]", o = {};
84
+ o[q] = o[ot] = o[mt] = o[jt] = o[ut] = o[ht] = o[Tt] = o[Ot] = o[At] = o[Et] = o[Ct] = o[ft] = o[gt] = o[W] = o[lt] = o[_t] = o[bt] = o[pt] = o[Lt] = o[wt] = o[Nt] = o[Ft] = !0;
85
+ o[dt] = o[J] = o[yt] = !1;
86
+ function O(t, e, r, s, n, a) {
87
+ var i, u = e & nt, h = e & it, Q = e & at;
88
+ if (i !== void 0)
89
+ return i;
90
+ if (!ee(t))
91
+ return t;
92
+ var w = ae(t);
93
+ if (w) {
94
+ if (i = we(t), !u)
95
+ return te(t, i);
96
+ } else {
97
+ var _ = L(t), N = _ == J || _ == ct;
98
+ if (re(t))
99
+ return se(t, u);
100
+ if (_ == W || _ == q || N && !n) {
101
+ if (i = h || N ? {} : ne(t), !u)
102
+ return h ? Ae(t, je(i, t)) : Te(t, me(i, t));
103
+ } else {
104
+ if (!o[_])
105
+ return n ? t : {};
106
+ i = Xe(t, _, u);
107
+ }
108
+ }
109
+ a || (a = new ie());
110
+ var F = a.get(t);
111
+ if (F)
112
+ return F;
113
+ a.set(t, i), st(t) ? t.forEach(function(c) {
114
+ i.add(O(c, e, r, c, t, a));
115
+ }) : et(t) && t.forEach(function(c, f) {
116
+ i.set(f, O(c, e, r, f, t, a));
117
+ });
118
+ var X = Q ? h ? Ee : le : h ? C : d, P = w ? void 0 : X(t);
119
+ return ge(P || t, function(c, f) {
120
+ P && (f = c, c = t[f]), oe(i, f, O(c, e, r, f, t, a));
121
+ }), i;
122
+ }
123
+ function Pt(t, e) {
124
+ return _e(e, function(r) {
125
+ return t[r];
126
+ });
127
+ }
128
+ function A(t) {
129
+ return t == null ? [] : Pt(t, d(t));
130
+ }
131
+ function b(t) {
132
+ return t === void 0;
133
+ }
134
+ var vt = ue(function(t) {
135
+ return be(pe(t, 1, he, !0));
136
+ }), St = "\0", l = "\0", x = "";
137
+ class z {
7
138
  /**
8
139
  * @param {GraphOptions} [opts] - Graph options.
9
140
  */
10
141
  constructor(e = {}) {
11
- this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = f(void 0), this._defaultEdgeLabelFn = f(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[a] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
142
+ this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = y(void 0), this._defaultEdgeLabelFn = y(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[l] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
12
143
  }
13
144
  /* === Graph functions ========= */
14
145
  /**
@@ -84,7 +215,7 @@ class L {
84
215
  * @returns {this}
85
216
  */
86
217
  setDefaultNodeLabel(e) {
87
- return b(e) || (e = f(e)), this._defaultNodeLabelFn = e, this;
218
+ return S(e) || (e = y(e)), this._defaultNodeLabelFn = e, this;
88
219
  }
89
220
  /**
90
221
  * @returns {number} the number of nodes in the graph.
@@ -100,7 +231,7 @@ class L {
100
231
  * Takes `O(|V|)` time.
101
232
  */
102
233
  nodes() {
103
- return _(this._nodes);
234
+ return d(this._nodes);
104
235
  }
105
236
  /**
106
237
  * @returns {NodeID[]} those nodes in the graph that have no in-edges.
@@ -108,8 +239,8 @@ class L {
108
239
  */
109
240
  sources() {
110
241
  var e = this;
111
- return g(this.nodes(), function(t) {
112
- return E(e._in[t]);
242
+ return m(this.nodes(), function(r) {
243
+ return $(e._in[r]);
113
244
  });
114
245
  }
115
246
  /**
@@ -118,8 +249,8 @@ class L {
118
249
  */
119
250
  sinks() {
120
251
  var e = this;
121
- return g(this.nodes(), function(t) {
122
- return E(e._out[t]);
252
+ return m(this.nodes(), function(r) {
253
+ return $(e._out[r]);
123
254
  });
124
255
  }
125
256
  /**
@@ -130,10 +261,10 @@ class L {
130
261
  * @returns {this}
131
262
  * @remarks Complexity: O(|names|).
132
263
  */
133
- setNodes(e, t) {
134
- var s = arguments, i = this;
135
- return d(e, function(r) {
136
- s.length > 1 ? i.setNode(r, t) : i.setNode(r);
264
+ setNodes(e, r) {
265
+ var s = arguments, n = this;
266
+ return g(e, function(a) {
267
+ s.length > 1 ? n.setNode(a, r) : n.setNode(a);
137
268
  }), this;
138
269
  }
139
270
  /**
@@ -146,8 +277,8 @@ class L {
146
277
  * @returns {this} the graph, allowing this to be chained with other functions.
147
278
  * @remarks Takes `O(1)` time.
148
279
  */
149
- setNode(e, t) {
150
- return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = a, this._children[e] = {}, this._children[a][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
280
+ setNode(e, r) {
281
+ return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = r), this) : (this._nodes[e] = arguments.length > 1 ? r : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = l, this._children[e] = {}, this._children[l][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
151
282
  }
152
283
  /**
153
284
  * Gets the label of node with specified name.
@@ -183,10 +314,10 @@ class L {
183
314
  */
184
315
  removeNode(e) {
185
316
  if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
186
- var t = (s) => this.removeEdge(this._edgeObjs[s]);
187
- delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], d(this.children(e), (s) => {
317
+ var r = (s) => this.removeEdge(this._edgeObjs[s]);
318
+ delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], g(this.children(e), (s) => {
188
319
  this.setParent(s);
189
- }), delete this._children[e]), d(_(this._in[e]), t), delete this._in[e], delete this._preds[e], d(_(this._out[e]), t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
320
+ }), delete this._children[e]), g(d(this._in[e]), r), delete this._in[e], delete this._preds[e], g(d(this._out[e]), r), delete this._out[e], delete this._sucs[e], --this._nodeCount;
190
321
  }
191
322
  return this;
192
323
  }
@@ -201,19 +332,19 @@ class L {
201
332
  * @throws if setting the parent would create a cycle.
202
333
  * @remarks Takes `O(1)` time.
203
334
  */
204
- setParent(e, t) {
335
+ setParent(e, r) {
205
336
  if (!this._isCompound)
206
337
  throw new Error("Cannot set parent in a non-compound graph");
207
- if (l(t))
208
- t = a;
338
+ if (b(r))
339
+ r = l;
209
340
  else {
210
- t += "";
211
- for (var s = t; !l(s); s = this.parent(s))
341
+ r += "";
342
+ for (var s = r; !b(s); s = this.parent(s))
212
343
  if (s === e)
213
- throw new Error("Setting " + t + " as parent of " + e + " would create a cycle");
214
- this.setNode(t);
344
+ throw new Error("Setting " + r + " as parent of " + e + " would create a cycle");
345
+ this.setNode(r);
215
346
  }
216
- return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
347
+ return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = r, this._children[r][e] = !0, this;
217
348
  }
218
349
  /**
219
350
  * @private
@@ -234,9 +365,9 @@ class L {
234
365
  */
235
366
  parent(e) {
236
367
  if (this._isCompound) {
237
- var t = this._parent[e];
238
- if (t !== a)
239
- return t;
368
+ var r = this._parent[e];
369
+ if (r !== l)
370
+ return r;
240
371
  }
241
372
  }
242
373
  /**
@@ -250,12 +381,12 @@ class L {
250
381
  * @remarks Takes `O(|V|)` time.
251
382
  */
252
383
  children(e) {
253
- if (l(e) && (e = a), this._isCompound) {
254
- var t = this._children[e];
255
- if (t)
256
- return _(t);
384
+ if (b(e) && (e = l), this._isCompound) {
385
+ var r = this._children[e];
386
+ if (r)
387
+ return d(r);
257
388
  } else {
258
- if (e === a)
389
+ if (e === l)
259
390
  return this.nodes();
260
391
  if (this.hasNode(e))
261
392
  return [];
@@ -270,9 +401,9 @@ class L {
270
401
  * Takes `O(|V|)` time.
271
402
  */
272
403
  predecessors(e) {
273
- var t = this._preds[e];
274
- if (t)
275
- return _(t);
404
+ var r = this._preds[e];
405
+ if (r)
406
+ return d(r);
276
407
  }
277
408
  /**
278
409
  * @param {NodeID | number} v - Node ID.
@@ -283,9 +414,9 @@ class L {
283
414
  * Takes `O(|V|)` time.
284
415
  */
285
416
  successors(e) {
286
- var t = this._sucs[e];
287
- if (t)
288
- return _(t);
417
+ var r = this._sucs[e];
418
+ if (r)
419
+ return d(r);
289
420
  }
290
421
  /**
291
422
  * @param {NodeID | number} v - Node ID.
@@ -295,17 +426,17 @@ class L {
295
426
  * @remarks Takes `O(|V|)` time.
296
427
  */
297
428
  neighbors(e) {
298
- var t = this.predecessors(e);
299
- if (t)
300
- return w(t, this.successors(e));
429
+ var r = this.predecessors(e);
430
+ if (r)
431
+ return vt(r, this.successors(e));
301
432
  }
302
433
  /**
303
434
  * @param {NodeID | number} v - Node ID.
304
435
  * @returns {boolean} True if the node is a leaf (has no successors), false otherwise.
305
436
  */
306
437
  isLeaf(e) {
307
- var t;
308
- return this.isDirected() ? t = this.successors(e) : t = this.neighbors(e), t.length === 0;
438
+ var r;
439
+ return this.isDirected() ? r = this.successors(e) : r = this.neighbors(e), r.length === 0;
309
440
  }
310
441
  /**
311
442
  * Creates new graph with nodes filtered via `filter`.
@@ -320,26 +451,26 @@ class L {
320
451
  * @remarks Average-case complexity: O(|E|+|V|).
321
452
  */
322
453
  filterNodes(e) {
323
- var t = new this.constructor({
454
+ var r = new this.constructor({
324
455
  directed: this._isDirected,
325
456
  multigraph: this._isMultigraph,
326
457
  compound: this._isCompound
327
458
  });
328
- t.setGraph(this.graph());
459
+ r.setGraph(this.graph());
329
460
  var s = this;
330
- d(this._nodes, function(n, h) {
331
- e(h) && t.setNode(h, n);
332
- }), d(this._edgeObjs, function(n) {
333
- t.hasNode(n.v) && t.hasNode(n.w) && t.setEdge(n, s.edge(n));
461
+ g(this._nodes, function(i, u) {
462
+ e(u) && r.setNode(u, i);
463
+ }), g(this._edgeObjs, function(i) {
464
+ r.hasNode(i.v) && r.hasNode(i.w) && r.setEdge(i, s.edge(i));
334
465
  });
335
- var i = {};
336
- function r(n) {
337
- var h = s.parent(n);
338
- return h === void 0 || t.hasNode(h) ? (i[n] = h, h) : h in i ? i[h] : r(h);
466
+ var n = {};
467
+ function a(i) {
468
+ var u = s.parent(i);
469
+ return u === void 0 || r.hasNode(u) ? (n[i] = u, u) : u in n ? n[u] : a(u);
339
470
  }
340
- return this._isCompound && d(t.nodes(), function(n) {
341
- t.setParent(n, r(n));
342
- }), t;
471
+ return this._isCompound && g(r.nodes(), function(i) {
472
+ r.setParent(i, a(i));
473
+ }), r;
343
474
  }
344
475
  /* === Edge functions ========== */
345
476
  /**
@@ -352,7 +483,7 @@ class L {
352
483
  * @returns {this}
353
484
  */
354
485
  setDefaultEdgeLabel(e) {
355
- return b(e) || (e = f(e)), this._defaultEdgeLabelFn = e, this;
486
+ return S(e) || (e = y(e)), this._defaultEdgeLabelFn = e, this;
356
487
  }
357
488
  /**
358
489
  * @returns {number} the number of edges in the graph.
@@ -372,7 +503,7 @@ class L {
372
503
  * Takes `O(|E|)` time.
373
504
  */
374
505
  edges() {
375
- return p(this._edgeObjs);
506
+ return A(this._edgeObjs);
376
507
  }
377
508
  /**
378
509
  * Establish an edges path over the nodes in nodes list.
@@ -386,10 +517,10 @@ class L {
386
517
  * @returns {this}
387
518
  * @remarks Complexity: O(|nodes|).
388
519
  */
389
- setPath(e, t) {
390
- var s = this, i = arguments;
391
- return D(e, function(r, n) {
392
- return i.length > 1 ? s.setEdge(r, n, t) : s.setEdge(r, n), n;
520
+ setPath(e, r) {
521
+ var s = this, n = arguments;
522
+ return ye(e, function(a, i) {
523
+ return n.length > 1 ? s.setEdge(a, i, r) : s.setEdge(a, i), i;
393
524
  }), this;
394
525
  }
395
526
  /**
@@ -419,16 +550,16 @@ class L {
419
550
  * @remarks Takes `O(1)` time.
420
551
  */
421
552
  setEdge() {
422
- var e, t, s, i, r = !1, n = arguments[0];
423
- typeof n == "object" && n !== null && "v" in n ? (e = n.v, t = n.w, s = n.name, arguments.length === 2 && (i = arguments[1], r = !0)) : (e = n, t = arguments[1], s = arguments[3], arguments.length > 2 && (i = arguments[2], r = !0)), e = "" + e, t = "" + t, l(s) || (s = "" + s);
424
- var h = c(this._isDirected, e, t, s);
425
- if (Object.prototype.hasOwnProperty.call(this._edgeLabels, h))
426
- return r && (this._edgeLabels[h] = i), this;
427
- if (!l(s) && !this._isMultigraph)
553
+ var e, r, s, n, a = !1, i = arguments[0];
554
+ typeof i == "object" && i !== null && "v" in i ? (e = i.v, r = i.w, s = i.name, arguments.length === 2 && (n = arguments[1], a = !0)) : (e = i, r = arguments[1], s = arguments[3], arguments.length > 2 && (n = arguments[2], a = !0)), e = "" + e, r = "" + r, b(s) || (s = "" + s);
555
+ var u = p(this._isDirected, e, r, s);
556
+ if (Object.prototype.hasOwnProperty.call(this._edgeLabels, u))
557
+ return a && (this._edgeLabels[u] = n), this;
558
+ if (!b(s) && !this._isMultigraph)
428
559
  throw new Error("Cannot set a named edge when isMultigraph = false");
429
- this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
430
- var u = M(this._isDirected, e, t, s);
431
- return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, y(this._preds[t], e), y(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
560
+ this.setNode(e), this.setNode(r), this._edgeLabels[u] = a ? n : this._defaultEdgeLabelFn(e, r, s);
561
+ var h = $t(this._isDirected, e, r, s);
562
+ return e = h.v, r = h.w, Object.freeze(h), this._edgeObjs[u] = h, U(this._preds[r], e), U(this._sucs[e], r), this._in[r][u] = h, this._out[e][u] = h, this._edgeCount++, this;
432
563
  }
433
564
  /**
434
565
  * Gets the label for the specified edge.
@@ -456,9 +587,9 @@ class L {
456
587
  * `v` and `w` can be interchanged for undirected graphs.
457
588
  * Takes `O(1)` time.
458
589
  */
459
- edge(e, t, s) {
460
- var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
461
- return this._edgeLabels[i];
590
+ edge(e, r, s) {
591
+ var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
592
+ return this._edgeLabels[n];
462
593
  }
463
594
  /**
464
595
  * Detects whether the graph contains specified edge or not.
@@ -486,9 +617,9 @@ class L {
486
617
  * No subgraphs are considered.
487
618
  * Takes `O(1)` time.
488
619
  */
489
- hasEdge(e, t, s) {
490
- var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
491
- return Object.prototype.hasOwnProperty.call(this._edgeLabels, i);
620
+ hasEdge(e, r, s) {
621
+ var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
622
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, n);
492
623
  }
493
624
  /**
494
625
  * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w`
@@ -515,9 +646,9 @@ class L {
515
646
  * `v` and `w` can be interchanged for undirected graphs.
516
647
  * Takes `O(1)` time.
517
648
  */
518
- removeEdge(e, t, s) {
519
- var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
520
- return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], C(this._preds[t], e), C(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
649
+ removeEdge(e, r, s) {
650
+ var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s), a = this._edgeObjs[n];
651
+ return a && (e = a.v, r = a.w, delete this._edgeLabels[n], delete this._edgeObjs[n], B(this._preds[r], e), B(this._sucs[e], r), delete this._in[r][n], delete this._out[e][n], this._edgeCount--), this;
521
652
  }
522
653
  /**
523
654
  * @param {NodeID | number} v - Target node ID.
@@ -529,13 +660,13 @@ class L {
529
660
  * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead.
530
661
  * Takes `O(|E|)` time.
531
662
  */
532
- inEdges(e, t) {
663
+ inEdges(e, r) {
533
664
  var s = this._in[e];
534
665
  if (s) {
535
- var i = p(s);
536
- return t ? g(i, function(r) {
537
- return r.v === t;
538
- }) : i;
666
+ var n = A(s);
667
+ return r ? m(n, function(a) {
668
+ return a.v === r;
669
+ }) : n;
539
670
  }
540
671
  }
541
672
  /**
@@ -548,13 +679,13 @@ class L {
548
679
  * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead.
549
680
  * Takes `O(|E|)` time.
550
681
  */
551
- outEdges(e, t) {
682
+ outEdges(e, r) {
552
683
  var s = this._out[e];
553
684
  if (s) {
554
- var i = p(s);
555
- return t ? g(i, function(r) {
556
- return r.w === t;
557
- }) : i;
685
+ var n = A(s);
686
+ return r ? m(n, function(a) {
687
+ return a.w === r;
688
+ }) : n;
558
689
  }
559
690
  }
560
691
  /**
@@ -565,40 +696,43 @@ class L {
565
696
  * of direction. Returns `undefined` if node `v` is not in the graph.
566
697
  * @remarks Takes `O(|E|)` time.
567
698
  */
568
- nodeEdges(e, t) {
569
- var s = this.inEdges(e, t);
699
+ nodeEdges(e, r) {
700
+ var s = this.inEdges(e, r);
570
701
  if (s)
571
- return s.concat(this.outEdges(e, t));
702
+ return s.concat(this.outEdges(e, r));
572
703
  }
573
704
  }
574
- L.prototype._nodeCount = 0;
575
- L.prototype._edgeCount = 0;
576
- function y(o, e) {
577
- o[e] ? o[e]++ : o[e] = 1;
705
+ z.prototype._nodeCount = 0;
706
+ z.prototype._edgeCount = 0;
707
+ function U(t, e) {
708
+ t[e] ? t[e]++ : t[e] = 1;
578
709
  }
579
- function C(o, e) {
580
- --o[e] || delete o[e];
710
+ function B(t, e) {
711
+ --t[e] || delete t[e];
581
712
  }
582
- function c(o, e, t, s) {
583
- var i = "" + e, r = "" + t;
584
- if (!o && i > r) {
585
- var n = i;
586
- i = r, r = n;
713
+ function p(t, e, r, s) {
714
+ var n = "" + e, a = "" + r;
715
+ if (!t && n > a) {
716
+ var i = n;
717
+ n = a, a = i;
587
718
  }
588
- return i + O + r + O + (l(s) ? F : s);
719
+ return n + x + a + x + (b(s) ? St : s);
589
720
  }
590
- function M(o, e, t, s) {
591
- var i = "" + e, r = "" + t;
592
- if (!o && i > r) {
593
- var n = i;
594
- i = r, r = n;
595
- }
596
- var h = { v: i, w: r };
597
- return s && (h.name = s), h;
721
+ function $t(t, e, r, s) {
722
+ var n = "" + e, a = "" + r;
723
+ if (!t && n > a) {
724
+ var i = n;
725
+ n = a, a = i;
726
+ }
727
+ var u = { v: n, w: a };
728
+ return s && (u.name = s), u;
598
729
  }
599
- function m(o, e) {
600
- return c(o, e.v, e.w, e.name);
730
+ function E(t, e) {
731
+ return p(t, e.v, e.w, e.name);
601
732
  }
602
733
  export {
603
- L as G
734
+ z as G,
735
+ O as b,
736
+ b as i,
737
+ A as v
604
738
  };
@@ -1,5 +1,5 @@
1
- import { _ as a, l as s, H as o, e as i } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { p as g } from "./treemap-KZPCXAKY-BF1hUklX.mjs";
1
+ import { _ as a, l as s, H as o, e as i } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { p as g } from "./treemap-KZPCXAKY-DMkjhMHM.mjs";
3
3
  var p = {
4
4
  parse: /* @__PURE__ */ a(async (r) => {
5
5
  const e = await g("info", r);
@@ -1,4 +1,4 @@
1
- import { _ as o, c as ot, N as ut, H as dt, ab as yt, y as ft, k as pt, p as it, a as gt, b as kt, g as wt, s as mt, q as _t, e as bt } from "./mermaid.core-PVHvn-x_.mjs";
1
+ import { _ as o, c as ot, N as ut, H as dt, ab as yt, y as ft, k as pt, p as it, a as gt, b as kt, g as wt, s as mt, q as _t, e as bt } from "./mermaid.core-DQ-KgOR7.mjs";
2
2
  var tt = (function() {
3
3
  var e = /* @__PURE__ */ o(function(M, t, s, i) {
4
4
  for (s = s || {}, i = M.length; i--; s[M[i]] = t) ;