react-docs-ui 0.6.17 → 0.6.19

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 (150) hide show
  1. package/dist/{AIChatDialog-W60DtiEW.js → AIChatDialog-BnAX3dRn.js} +2 -2
  2. package/dist/{AISelectionTrigger-MaBGhxTE.js → AISelectionTrigger-SLyb8Vep.js} +2 -2
  3. package/dist/{AISettingsPanel-aiMnncnQ.js → AISettingsPanel-Bsd_wLP4.js} +3 -3
  4. package/dist/{DocsApp-BN6Bo0YD.js → DocsApp-CybQmyB8.js} +3669 -3285
  5. package/dist/{GlobalContextMenu-DG6x5Y5w.js → GlobalContextMenu-BtVjQk0v.js} +1 -1
  6. package/dist/{MdxContent-CMB8ZbXo.js → MdxContent-CH9GcMIg.js} +310 -306
  7. package/dist/{MdxContent.lazy-C4rcCv4v.js → MdxContent.lazy-D7XJ-ZHl.js} +1 -1
  8. package/dist/{SearchDialog-tUSKKsxW.js → SearchDialog-DWVre6R9.js} +66 -56
  9. package/dist/{SearchRuntime-5fXpxDsi.js → SearchRuntime-D0rSMKV3.js} +6 -5
  10. package/dist/_basePickBy-D8oNWNf8.js +166 -0
  11. package/dist/_baseUniq-DHuXxixa.js +682 -0
  12. package/dist/arc-j69r3jDe.js +80 -0
  13. package/dist/architecture-PBZL5I3N-DvHexcWL.js +3 -0
  14. package/dist/architectureDiagram-2XIMDMQ5-DmhcSwl7.js +4045 -0
  15. package/dist/array-DHiPsILf.js +6 -0
  16. package/dist/blockDiagram-WCTKOSBZ-B6A-w3LB.js +3025 -0
  17. package/dist/c4Diagram-IC4MRINW-AmEpu2Zd.js +2964 -0
  18. package/dist/channel-CqxMgZ5t.js +5 -0
  19. package/dist/chunk-4BX2VUAB-D3p73nhw.js +8 -0
  20. package/dist/chunk-55IACEB6-CLgZJbYv.js +8 -0
  21. package/dist/chunk-7E7YKBS2-CKRA8Egz.js +23 -0
  22. package/dist/chunk-7R4GIKGN-C19ZEV_b.js +2596 -0
  23. package/dist/chunk-C72U2L5F-B6IP-vol.js +23 -0
  24. package/dist/chunk-EGIJ26TM-Cw4ft_Ra.js +23 -0
  25. package/dist/chunk-FMBD7UC4-D-Ronn4l.js +5 -0
  26. package/dist/chunk-GEFDOKGD-8e2771NL.js +1121 -0
  27. package/dist/chunk-GLR3WWYH-ShSppUzV.js +41 -0
  28. package/dist/chunk-HHEYEP7N-CU-ZzGab.js +9 -0
  29. package/dist/chunk-JSJVCQXG-D49UMhzO.js +60 -0
  30. package/dist/chunk-KX2RTZJC-BDcxmH0D.js +25 -0
  31. package/dist/chunk-KYZI473N-B9L8Kk83.js +3434 -0
  32. package/dist/chunk-L3YUKLVL-CEVeJJT9.js +23 -0
  33. package/dist/chunk-MX3YWQON-CVZUx3EI.js +80 -0
  34. package/dist/chunk-NBPlniwU.js +23 -0
  35. package/dist/chunk-NQ4KR5QH-BWRGvKed.js +2002 -0
  36. package/dist/chunk-O4XLMI2P-BlC0d_Zr.js +511 -0
  37. package/dist/chunk-OZEHJAEY-BuORg3qI.js +64 -0
  38. package/dist/chunk-PQ6SQG4A-BggLWIDB.js +67 -0
  39. package/dist/chunk-PU5JKC2W-CeOPBYeP.js +1885 -0
  40. package/dist/chunk-QZHKN3VN-3LiJhn2O.js +15 -0
  41. package/dist/chunk-R5LLSJPH-B8KdhC9h.js +35 -0
  42. package/dist/chunk-WL4C6EOR-DLbU3P3W.js +3194 -0
  43. package/dist/chunk-XIRO2GV7-Bv7JEVD4.js +30 -0
  44. package/dist/chunk-XPW4576I-Bu03pPNP.js +1146 -0
  45. package/dist/chunk-XZSTWKYB-CpQJcKKv.js +15797 -0
  46. package/dist/chunk-YBOYWFTD-BAPGCoDq.js +32 -0
  47. package/dist/classDiagram-VBA2DB6C-D4y64v83.js +29 -0
  48. package/dist/classDiagram-v2-RAHNMMFH-DXkt0Wd4.js +29 -0
  49. package/dist/clone-B2fVtDap.js +8 -0
  50. package/dist/cose-bilkent-S5V4N54A-BX63fiTJ.js +2250 -0
  51. package/dist/cytoscape.esm-D1tmL96B.js +18100 -0
  52. package/dist/dagre-BM10A37c.js +1483 -0
  53. package/dist/dagre-KLK3FWXG-BkGeaeJf.js +294 -0
  54. package/dist/defaultLocale-CS9riXxY.js +201 -0
  55. package/dist/diagram-E7M64L7V-BCpOexcP.js +527 -0
  56. package/dist/diagram-IFDJBPK2-lSNeST-Z.js +213 -0
  57. package/dist/diagram-P4PSJMXO-Dd8HMHpS.js +133 -0
  58. package/dist/dist-DeXxBykG.js +50 -0
  59. package/dist/docs-app.es.js +1 -1
  60. package/dist/erDiagram-INFDFZHY-DjNq2UqZ.js +1666 -0
  61. package/dist/flowDiagram-PKNHOUZH-AUeVhXRc.js +4161 -0
  62. package/dist/ganttDiagram-A5KZAMGK-DZIM1zx8.js +3072 -0
  63. package/dist/gitGraph-HDMCJU4V-BiirFMfI.js +3 -0
  64. package/dist/gitGraphDiagram-K3NZZRJ6-CpR0vINe.js +625 -0
  65. package/dist/graphlib-DOjl69i0.js +225 -0
  66. package/dist/info-3K5VOQVL-CfGgZztt.js +3 -0
  67. package/dist/infoDiagram-LFFYTUFH-DAJ9foHI.js +19 -0
  68. package/dist/init-B4NvJPDj.js +15 -0
  69. package/dist/isArrayLikeObject-DLIYDRni.js +578 -0
  70. package/dist/isEmpty-DhbfzuZy.js +35 -0
  71. package/dist/ishikawaDiagram-PHBUUO56-B7xss2de.js +717 -0
  72. package/dist/journeyDiagram-4ABVD52K-BbX80Gcw.js +883 -0
  73. package/dist/kanban-definition-K7BYSVSG-BQ87hifQ.js +971 -0
  74. package/dist/line-DfLnhEwA.js +34 -0
  75. package/dist/linear-CWB56ned.js +289 -0
  76. package/dist/math-DHDNczAo.js +10 -0
  77. package/dist/{shiki-highlighter-BmQSSJpS.js → mdx-components-m1cGPhc8.js} +1437 -1338
  78. package/dist/mermaid-parser.core-l4wHnGuN.js +59 -0
  79. package/dist/mermaid.core-CtkJeRVj.js +919 -0
  80. package/dist/mindmap-definition-YRQLILUH-Cnl-qPDR.js +964 -0
  81. package/dist/ordinal-CD64W6lf.js +65 -0
  82. package/dist/packet-RMMSAZCW-DfA9M99B.js +3 -0
  83. package/dist/path-BjiRrKY7.js +85 -0
  84. package/dist/pie-UPGHQEXC-Bujrkgkt.js +3 -0
  85. package/dist/pieDiagram-SKSYHLDU-xow4mVuZ.js +165 -0
  86. package/dist/quadrantDiagram-337W2JSQ-CV2tMWXO.js +1974 -0
  87. package/dist/radar-KQ55EAFF-DEzDT04F.js +3 -0
  88. package/dist/react-docs-ui.css +1 -1
  89. package/dist/react-docs-ui.es.js +19 -19
  90. package/dist/requirementDiagram-Z7DCOOCP-Bx6NAgqy.js +2201 -0
  91. package/dist/rough.esm-BOvWpVpy.js +1352 -0
  92. package/dist/sankeyDiagram-WA2Y5GQK-CvTU-CXN.js +920 -0
  93. package/dist/sequenceDiagram-2WXFIKYE-1wYHvZEI.js +4109 -0
  94. package/dist/src-DI0MZP4m.js +2146 -0
  95. package/dist/stateDiagram-RAJIS63D-DFmbSHPX.js +217 -0
  96. package/dist/stateDiagram-v2-FVOUBMTO-TjYtTjLB.js +27 -0
  97. package/dist/timeline-definition-YZTLITO2-BAK411Yg.js +830 -0
  98. package/dist/treemap-KZPCXAKY-DThdSsPR.js +3 -0
  99. package/dist/types/components/AnnouncementBar.d.ts +12 -0
  100. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  101. package/dist/types/components/DocsLayout.d.ts +10 -2
  102. package/dist/types/components/DocsLayout.d.ts.map +1 -1
  103. package/dist/types/components/HeaderNav.d.ts +17 -1
  104. package/dist/types/components/HeaderNav.d.ts.map +1 -1
  105. package/dist/types/components/MdxContent.d.ts.map +1 -1
  106. package/dist/types/components/MobileSidebar.d.ts +2 -1
  107. package/dist/types/components/MobileSidebar.d.ts.map +1 -1
  108. package/dist/types/components/PageFeedback.d.ts +11 -0
  109. package/dist/types/components/PageFeedback.d.ts.map +1 -0
  110. package/dist/types/components/PageMetaActions.d.ts +15 -0
  111. package/dist/types/components/PageMetaActions.d.ts.map +1 -0
  112. package/dist/types/components/PageNavigation.d.ts +2 -1
  113. package/dist/types/components/PageNavigation.d.ts.map +1 -1
  114. package/dist/types/components/SearchLauncher.d.ts +2 -1
  115. package/dist/types/components/SearchLauncher.d.ts.map +1 -1
  116. package/dist/types/components/SidebarNav.d.ts +2 -1
  117. package/dist/types/components/SidebarNav.d.ts.map +1 -1
  118. package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
  119. package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
  120. package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
  121. package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
  122. package/dist/types/components/mdx-components/index.d.ts +2 -0
  123. package/dist/types/components/mdx-components/index.d.ts.map +1 -1
  124. package/dist/types/components/search/SearchProvider.d.ts +2 -1
  125. package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
  126. package/dist/types/components/search/SearchRuntime.d.ts +2 -1
  127. package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
  128. package/dist/types/lib/component-scanner.d.ts.map +1 -1
  129. package/dist/types/lib/config.d.ts +52 -0
  130. package/dist/types/lib/config.d.ts.map +1 -1
  131. package/dist/types/lib/navigation.d.ts +1 -1
  132. package/dist/types/lib/navigation.d.ts.map +1 -1
  133. package/dist/types/lib/page-meta.d.ts +16 -0
  134. package/dist/types/lib/page-meta.d.ts.map +1 -0
  135. package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
  136. package/dist/types/lib/search/build/types.d.ts +1 -0
  137. package/dist/types/lib/search/build/types.d.ts.map +1 -1
  138. package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
  139. package/dist/types/lib/search/runtime/types.d.ts +1 -0
  140. package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
  141. package/dist/types/lib/versioning.d.ts +6 -0
  142. package/dist/types/lib/versioning.d.ts.map +1 -0
  143. package/dist/vennDiagram-LZ73GAT5-B7dft0U9.js +1858 -0
  144. package/dist/xychartDiagram-JWTSCODW-CXtfEnJM.js +2041 -0
  145. package/package.json +6 -2
  146. /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
  147. /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
  148. /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
  149. /package/dist/{mdx-components-Dxpipc50.js → mdx-components-TEc3uhbY.js} +0 -0
  150. /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
@@ -0,0 +1,527 @@
1
+ import { r as e } from "./chunk-GEFDOKGD-8e2771NL.js";
2
+ import { g as t, h as n, p as r } from "./src-DI0MZP4m.js";
3
+ import { B as i, C as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-C19ZEV_b.js";
4
+ import { t as m } from "./ordinal-CD64W6lf.js";
5
+ import { t as h } from "./defaultLocale-CS9riXxY.js";
6
+ import { t as g } from "./chunk-HHEYEP7N-CU-ZzGab.js";
7
+ import { t as _ } from "./chunk-4BX2VUAB-D3p73nhw.js";
8
+ import { t as v } from "./mermaid-parser.core-l4wHnGuN.js";
9
+ import { t as y } from "./chunk-KX2RTZJC-BDcxmH0D.js";
10
+ import { i as b, n as x } from "./chunk-PQ6SQG4A-BggLWIDB.js";
11
+ //#region node_modules/d3-hierarchy/src/hierarchy/count.js
12
+ function S(e) {
13
+ var t = 0, n = e.children, r = n && n.length;
14
+ if (!r) t = 1;
15
+ else for (; --r >= 0;) t += n[r].value;
16
+ e.value = t;
17
+ }
18
+ function C() {
19
+ return this.eachAfter(S);
20
+ }
21
+ //#endregion
22
+ //#region node_modules/d3-hierarchy/src/hierarchy/each.js
23
+ function w(e, t) {
24
+ let n = -1;
25
+ for (let r of this) e.call(t, r, ++n, this);
26
+ return this;
27
+ }
28
+ //#endregion
29
+ //#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
30
+ function T(e, t) {
31
+ for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
32
+ return this;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
36
+ function E(e, t) {
37
+ for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
38
+ for (; n = i.pop();) e.call(t, n, ++c, this);
39
+ return this;
40
+ }
41
+ //#endregion
42
+ //#region node_modules/d3-hierarchy/src/hierarchy/find.js
43
+ function D(e, t) {
44
+ let n = -1;
45
+ for (let r of this) if (e.call(t, r, ++n, this)) return r;
46
+ }
47
+ //#endregion
48
+ //#region node_modules/d3-hierarchy/src/hierarchy/sum.js
49
+ function O(e) {
50
+ return this.eachAfter(function(t) {
51
+ for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
52
+ t.value = n;
53
+ });
54
+ }
55
+ //#endregion
56
+ //#region node_modules/d3-hierarchy/src/hierarchy/sort.js
57
+ function k(e) {
58
+ return this.eachBefore(function(t) {
59
+ t.children && t.children.sort(e);
60
+ });
61
+ }
62
+ //#endregion
63
+ //#region node_modules/d3-hierarchy/src/hierarchy/path.js
64
+ function A(e) {
65
+ for (var t = this, n = j(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
66
+ for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
67
+ return r;
68
+ }
69
+ function j(e, t) {
70
+ if (e === t) return e;
71
+ var n = e.ancestors(), r = t.ancestors(), i = null;
72
+ for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
73
+ return i;
74
+ }
75
+ //#endregion
76
+ //#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
77
+ function M() {
78
+ for (var e = this, t = [e]; e = e.parent;) t.push(e);
79
+ return t;
80
+ }
81
+ //#endregion
82
+ //#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
83
+ function N() {
84
+ return Array.from(this);
85
+ }
86
+ //#endregion
87
+ //#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
88
+ function P() {
89
+ var e = [];
90
+ return this.eachBefore(function(t) {
91
+ t.children || e.push(t);
92
+ }), e;
93
+ }
94
+ //#endregion
95
+ //#region node_modules/d3-hierarchy/src/hierarchy/links.js
96
+ function F() {
97
+ var e = this, t = [];
98
+ return e.each(function(n) {
99
+ n !== e && t.push({
100
+ source: n.parent,
101
+ target: n
102
+ });
103
+ }), t;
104
+ }
105
+ //#endregion
106
+ //#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
107
+ function* I() {
108
+ var e = this, t, n = [e], r, i, a;
109
+ do
110
+ for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
111
+ while (n.length);
112
+ }
113
+ //#endregion
114
+ //#region node_modules/d3-hierarchy/src/hierarchy/index.js
115
+ function L(e, t) {
116
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = B)) : t === void 0 && (t = z);
117
+ for (var n = new U(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new U(o[s])), a.parent = r, a.depth = r.depth + 1;
118
+ return n.eachBefore(H);
119
+ }
120
+ function R() {
121
+ return L(this).eachBefore(V);
122
+ }
123
+ function z(e) {
124
+ return e.children;
125
+ }
126
+ function B(e) {
127
+ return Array.isArray(e) ? e[1] : null;
128
+ }
129
+ function V(e) {
130
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
131
+ }
132
+ function H(e) {
133
+ var t = 0;
134
+ do
135
+ e.height = t;
136
+ while ((e = e.parent) && e.height < ++t);
137
+ }
138
+ function U(e) {
139
+ this.data = e, this.depth = this.height = 0, this.parent = null;
140
+ }
141
+ U.prototype = L.prototype = {
142
+ constructor: U,
143
+ count: C,
144
+ each: w,
145
+ eachAfter: E,
146
+ eachBefore: T,
147
+ find: D,
148
+ sum: O,
149
+ sort: k,
150
+ path: A,
151
+ ancestors: M,
152
+ descendants: N,
153
+ leaves: P,
154
+ links: F,
155
+ copy: R,
156
+ [Symbol.iterator]: I
157
+ };
158
+ //#endregion
159
+ //#region node_modules/d3-hierarchy/src/accessors.js
160
+ function W(e) {
161
+ if (typeof e != "function") throw Error();
162
+ return e;
163
+ }
164
+ //#endregion
165
+ //#region node_modules/d3-hierarchy/src/constant.js
166
+ function G() {
167
+ return 0;
168
+ }
169
+ function K(e) {
170
+ return function() {
171
+ return e;
172
+ };
173
+ }
174
+ //#endregion
175
+ //#region node_modules/d3-hierarchy/src/treemap/round.js
176
+ function q(e) {
177
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
178
+ }
179
+ //#endregion
180
+ //#region node_modules/d3-hierarchy/src/treemap/dice.js
181
+ function J(e, t, n, r, i) {
182
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
183
+ }
184
+ //#endregion
185
+ //#region node_modules/d3-hierarchy/src/treemap/slice.js
186
+ function ee(e, t, n, r, i) {
187
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
188
+ }
189
+ //#endregion
190
+ //#region node_modules/d3-hierarchy/src/treemap/squarify.js
191
+ var te = (1 + Math.sqrt(5)) / 2;
192
+ function ne(e, t, n, r, i, a) {
193
+ for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
194
+ p = i - n, m = a - r;
195
+ do
196
+ g = s[d++].value;
197
+ while (!g && d < f);
198
+ for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
199
+ if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
200
+ g -= l;
201
+ break;
202
+ }
203
+ b = y;
204
+ }
205
+ o.push(c = {
206
+ value: g,
207
+ dice: p < m,
208
+ children: s.slice(u, d)
209
+ }), c.dice ? J(c, n, r, i, h ? r += m * g / h : a) : ee(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
210
+ }
211
+ return o;
212
+ }
213
+ var re = (function e(t) {
214
+ function n(e, n, r, i, a) {
215
+ ne(t, e, n, r, i, a);
216
+ }
217
+ return n.ratio = function(t) {
218
+ return e((t = +t) > 1 ? t : 1);
219
+ }, n;
220
+ })(te);
221
+ //#endregion
222
+ //#region node_modules/d3-hierarchy/src/treemap/index.js
223
+ function ie() {
224
+ var e = re, t = !1, n = 1, r = 1, i = [0], a = G, o = G, s = G, c = G, l = G;
225
+ function u(e) {
226
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(q), e;
227
+ }
228
+ function d(t) {
229
+ var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
230
+ d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
231
+ }
232
+ return u.round = function(e) {
233
+ return arguments.length ? (t = !!e, u) : t;
234
+ }, u.size = function(e) {
235
+ return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
236
+ }, u.tile = function(t) {
237
+ return arguments.length ? (e = W(t), u) : e;
238
+ }, u.padding = function(e) {
239
+ return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
240
+ }, u.paddingInner = function(e) {
241
+ return arguments.length ? (a = typeof e == "function" ? e : K(+e), u) : a;
242
+ }, u.paddingOuter = function(e) {
243
+ return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
244
+ }, u.paddingTop = function(e) {
245
+ return arguments.length ? (o = typeof e == "function" ? e : K(+e), u) : o;
246
+ }, u.paddingRight = function(e) {
247
+ return arguments.length ? (s = typeof e == "function" ? e : K(+e), u) : s;
248
+ }, u.paddingBottom = function(e) {
249
+ return arguments.length ? (c = typeof e == "function" ? e : K(+e), u) : c;
250
+ }, u.paddingLeft = function(e) {
251
+ return arguments.length ? (l = typeof e == "function" ? e : K(+e), u) : l;
252
+ }, u;
253
+ }
254
+ //#endregion
255
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-E7M64L7V.mjs
256
+ var Y = class {
257
+ constructor() {
258
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = o, this.getAccTitle = f, this.setDiagramTitle = s, this.getDiagramTitle = a, this.getAccDescription = c, this.setAccDescription = i;
259
+ }
260
+ static {
261
+ n(this, "TreeMapDB");
262
+ }
263
+ getNodes() {
264
+ return this.nodes;
265
+ }
266
+ getConfig() {
267
+ let t = d, n = p();
268
+ return e({
269
+ ...t.treemap,
270
+ ...n.treemap ?? {}
271
+ });
272
+ }
273
+ addNode(e, t) {
274
+ this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
275
+ }
276
+ getRoot() {
277
+ return {
278
+ name: "",
279
+ children: this.outerNodes
280
+ };
281
+ }
282
+ addClass(e, t) {
283
+ let n = this.classes.get(e) ?? {
284
+ id: e,
285
+ styles: [],
286
+ textStyles: []
287
+ }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
288
+ r && r.forEach((e) => {
289
+ x(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
290
+ }), this.classes.set(e, n);
291
+ }
292
+ getClasses() {
293
+ return this.classes;
294
+ }
295
+ getStylesForClass(e) {
296
+ return this.classes.get(e)?.styles ?? [];
297
+ }
298
+ clear() {
299
+ l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
300
+ }
301
+ };
302
+ function X(e) {
303
+ if (!e.length) return [];
304
+ let t = [], n = [];
305
+ return e.forEach((e) => {
306
+ let r = {
307
+ name: e.name,
308
+ children: e.type === "Leaf" ? void 0 : []
309
+ };
310
+ for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
311
+ if (n.length === 0) t.push(r);
312
+ else {
313
+ let e = n[n.length - 1].node;
314
+ e.children ? e.children.push(r) : e.children = [r];
315
+ }
316
+ e.type !== "Leaf" && n.push({
317
+ node: r,
318
+ level: e.level
319
+ });
320
+ }), t;
321
+ }
322
+ n(X, "buildHierarchy");
323
+ var ae = /* @__PURE__ */ n((e, t) => {
324
+ _(e, t);
325
+ let r = [];
326
+ for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
327
+ for (let n of e.TreemapRows ?? []) {
328
+ let e = n.item;
329
+ if (!e) continue;
330
+ let i = n.indent ? parseInt(n.indent) : 0, a = oe(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
331
+ level: i,
332
+ name: a,
333
+ type: e.$type,
334
+ value: e.value,
335
+ classSelector: e.classSelector,
336
+ cssCompiledStyles: s
337
+ };
338
+ r.push(c);
339
+ }
340
+ let i = X(r), a = /* @__PURE__ */ n((e, n) => {
341
+ for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && a(r.children, n + 1);
342
+ }, "addNodesRecursively");
343
+ a(i, 0);
344
+ }, "populate"), oe = /* @__PURE__ */ n((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
345
+ parser: { yy: void 0 },
346
+ parse: /* @__PURE__ */ n(async (e) => {
347
+ try {
348
+ let n = await v("treemap", e);
349
+ t.debug("Treemap AST:", n);
350
+ let r = Z.parser?.yy;
351
+ if (!(r instanceof Y)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
352
+ ae(n, r);
353
+ } catch (e) {
354
+ throw t.error("Error parsing treemap:", e), e;
355
+ }
356
+ }, "parse")
357
+ }, se = 10, Q = 10, $ = 25, ce = {
358
+ draw: /* @__PURE__ */ n((e, i, a, o) => {
359
+ let s = o.db, c = s.getConfig(), l = c.padding ?? se, d = s.getDiagramTitle(), f = s.getRoot(), { themeVariables: _ } = p();
360
+ if (!f) return;
361
+ let v = d ? 30 : 0, x = g(i), S = c.nodeWidth ? c.nodeWidth * Q : 960, C = c.nodeHeight ? c.nodeHeight * Q : 500, w = S, T = C + v;
362
+ x.attr("viewBox", `0 0 ${w} ${T}`), u(x, T, w, c.useMaxWidth);
363
+ let E;
364
+ try {
365
+ let e = c.valueFormat || ",";
366
+ if (e === "$0,0") E = /* @__PURE__ */ n((e) => "$" + h(",")(e), "valueFormat");
367
+ else if (e.startsWith("$") && e.includes(",")) {
368
+ let t = /\.\d+/.exec(e), r = t ? t[0] : "";
369
+ E = /* @__PURE__ */ n((e) => "$" + h("," + r)(e), "valueFormat");
370
+ } else if (e.startsWith("$")) {
371
+ let t = e.substring(1);
372
+ E = /* @__PURE__ */ n((e) => "$" + h(t || "")(e), "valueFormat");
373
+ } else E = h(e);
374
+ } catch (e) {
375
+ t.error("Error creating format function:", e), E = h(",");
376
+ }
377
+ let D = m().range([
378
+ "transparent",
379
+ _.cScale0,
380
+ _.cScale1,
381
+ _.cScale2,
382
+ _.cScale3,
383
+ _.cScale4,
384
+ _.cScale5,
385
+ _.cScale6,
386
+ _.cScale7,
387
+ _.cScale8,
388
+ _.cScale9,
389
+ _.cScale10,
390
+ _.cScale11
391
+ ]), O = m().range([
392
+ "transparent",
393
+ _.cScalePeer0,
394
+ _.cScalePeer1,
395
+ _.cScalePeer2,
396
+ _.cScalePeer3,
397
+ _.cScalePeer4,
398
+ _.cScalePeer5,
399
+ _.cScalePeer6,
400
+ _.cScalePeer7,
401
+ _.cScalePeer8,
402
+ _.cScalePeer9,
403
+ _.cScalePeer10,
404
+ _.cScalePeer11
405
+ ]), k = m().range([
406
+ _.cScaleLabel0,
407
+ _.cScaleLabel1,
408
+ _.cScaleLabel2,
409
+ _.cScaleLabel3,
410
+ _.cScaleLabel4,
411
+ _.cScaleLabel5,
412
+ _.cScaleLabel6,
413
+ _.cScaleLabel7,
414
+ _.cScaleLabel8,
415
+ _.cScaleLabel9,
416
+ _.cScaleLabel10,
417
+ _.cScaleLabel11
418
+ ]);
419
+ d && x.append("text").attr("x", w / 2).attr("y", v / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
420
+ let A = x.append("g").attr("transform", `translate(0, ${v})`).attr("class", "treemapContainer"), j = L(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ie().size([S, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(l).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
421
+ P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
422
+ if (e.depth === 0) return "display: none;";
423
+ let t = b({ cssCompiledStyles: e.data.cssCompiledStyles });
424
+ return t.nodeStyles + ";" + t.borderStyles.join(";");
425
+ }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
426
+ if (e.depth === 0) return;
427
+ let t = r(this), n = e.data.name;
428
+ t.text(n);
429
+ let i = e.x1 - e.x0, a;
430
+ a = c.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
431
+ let o = Math.max(15, a), s = t.node();
432
+ if (s.getComputedTextLength() > o) {
433
+ let e = n;
434
+ for (; e.length > 0;) {
435
+ if (e = n.substring(0, e.length - 1), e.length === 0) {
436
+ t.text("..."), s.getComputedTextLength() > o && t.text("");
437
+ break;
438
+ }
439
+ if (t.text(e + "..."), s.getComputedTextLength() <= o) break;
440
+ }
441
+ }
442
+ }), c.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
443
+ let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
444
+ I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => b({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), I.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
445
+ let t = r(this), n = e.x1 - e.x0, i = e.y1 - e.y0, a = t.node(), o = n - 8, s = i - 8;
446
+ if (o < 10 || s < 10) {
447
+ t.style("display", "none");
448
+ return;
449
+ }
450
+ let c = parseInt(t.style("font-size"), 10), l = .6;
451
+ for (; a.getComputedTextLength() > o && c > 8;) c--, t.style("font-size", `${c}px`);
452
+ let u = Math.max(6, Math.min(28, Math.round(c * l))), d = c + 2 + u;
453
+ for (; d > s && c > 8 && (c--, u = Math.max(6, Math.min(28, Math.round(c * l))), !(u < 6 && c === 8));) t.style("font-size", `${c}px`), d = c + 2 + u;
454
+ t.style("font-size", `${c}px`), (a.getComputedTextLength() > o || c < 8 || s < c) && t.style("display", "none");
455
+ }), c.showValues !== !1 && I.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
456
+ return (e.y1 - e.y0) / 2;
457
+ }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
458
+ let t = r(this), n = this.parentNode;
459
+ if (!n) {
460
+ t.style("display", "none");
461
+ return;
462
+ }
463
+ let i = r(n).select(".treemapLabel");
464
+ if (i.empty() || i.style("display") === "none") {
465
+ t.style("display", "none");
466
+ return;
467
+ }
468
+ let a = parseFloat(i.style("font-size")), o = Math.max(6, Math.min(28, Math.round(a * .6)));
469
+ t.style("font-size", `${o}px`);
470
+ let s = (e.y1 - e.y0) / 2 + a / 2 + 2;
471
+ t.attr("y", s);
472
+ let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 8;
473
+ t.node().getComputedTextLength() > u || s + o > l || o < 6 ? t.style("display", "none") : t.style("display", null);
474
+ }), y(x, c.diagramPadding ?? 8, "flowchart", c?.useMaxWidth || !1);
475
+ }, "draw"),
476
+ getClasses: /* @__PURE__ */ n(function(e, t) {
477
+ return t.db.getClasses();
478
+ }, "getClasses")
479
+ }, le = {
480
+ sectionStrokeColor: "black",
481
+ sectionStrokeWidth: "1",
482
+ sectionFillColor: "#efefef",
483
+ leafStrokeColor: "black",
484
+ leafStrokeWidth: "1",
485
+ leafFillColor: "#efefef",
486
+ labelColor: "black",
487
+ labelFontSize: "12px",
488
+ valueFontSize: "10px",
489
+ valueColor: "black",
490
+ titleColor: "black",
491
+ titleFontSize: "14px"
492
+ }, ue = {
493
+ parser: Z,
494
+ get db() {
495
+ return new Y();
496
+ },
497
+ renderer: ce,
498
+ styles: /* @__PURE__ */ n(({ treemap: t } = {}) => {
499
+ let n = e(le, t);
500
+ return `
501
+ .treemapNode.section {
502
+ stroke: ${n.sectionStrokeColor};
503
+ stroke-width: ${n.sectionStrokeWidth};
504
+ fill: ${n.sectionFillColor};
505
+ }
506
+ .treemapNode.leaf {
507
+ stroke: ${n.leafStrokeColor};
508
+ stroke-width: ${n.leafStrokeWidth};
509
+ fill: ${n.leafFillColor};
510
+ }
511
+ .treemapLabel {
512
+ fill: ${n.labelColor};
513
+ font-size: ${n.labelFontSize};
514
+ }
515
+ .treemapValue {
516
+ fill: ${n.valueColor};
517
+ font-size: ${n.valueFontSize};
518
+ }
519
+ .treemapTitle {
520
+ fill: ${n.titleColor};
521
+ font-size: ${n.titleFontSize};
522
+ }
523
+ `;
524
+ }, "getStyles")
525
+ };
526
+ //#endregion
527
+ export { ue as diagram };