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,1121 @@
1
+ import { A as e, B as t, F as n, H as r, O as i, R as a, S as o, U as s, V as c, b as l, c as u, g as ee, i as te, j as d, l as f, n as p, p as m, r as ne, s as re, t as ie, u as h, y as ae } from "./isArrayLikeObject-DLIYDRni.js";
2
+ import { g, h as _, p as v } from "./src-DI0MZP4m.js";
3
+ import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-C19ZEV_b.js";
4
+ import "./math-DHDNczAo.js";
5
+ import { t as ce } from "./dist-DeXxBykG.js";
6
+ //#region node_modules/lodash-es/isPlainObject.js
7
+ var le = "[object Object]", ue = Function.prototype, de = Object.prototype, fe = ue.toString, pe = de.hasOwnProperty, me = fe.call(Object);
8
+ function he(e) {
9
+ if (!r(e) || s(e) != le) return !1;
10
+ var t = f(e);
11
+ if (t === null) return !0;
12
+ var n = pe.call(t, "constructor") && t.constructor;
13
+ return typeof n == "function" && n instanceof n && fe.call(n) == me;
14
+ }
15
+ //#endregion
16
+ //#region node_modules/lodash-es/_assignMergeValue.js
17
+ function S(t, n, r) {
18
+ (r !== void 0 && !e(t[n], r) || r === void 0 && !(n in t)) && d(t, n, r);
19
+ }
20
+ //#endregion
21
+ //#region node_modules/lodash-es/_safeGet.js
22
+ function C(e, t) {
23
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
24
+ }
25
+ //#endregion
26
+ //#region node_modules/lodash-es/toPlainObject.js
27
+ function ge(e) {
28
+ return i(e, m(e));
29
+ }
30
+ //#endregion
31
+ //#region node_modules/lodash-es/_baseMergeDeep.js
32
+ function _e(e, r, i, o, s, u, d) {
33
+ var f = C(e, i), p = C(r, i), m = d.get(p);
34
+ if (m) {
35
+ S(e, i, m);
36
+ return;
37
+ }
38
+ var h = u ? u(f, p, i + "", e, r, d) : void 0, g = h === void 0;
39
+ if (g) {
40
+ var _ = c(p), v = !_ && ae(p), y = !_ && !v && ee(p);
41
+ h = p, _ || v || y ? c(f) ? h = f : ie(f) ? h = n(f) : v ? (g = !1, h = re(p, !0)) : y ? (g = !1, h = te(p, !0)) : h = [] : he(p) || l(p) ? (h = f, l(f) ? h = ge(f) : (!t(f) || a(f)) && (h = ne(p))) : g = !1;
42
+ }
43
+ g && (d.set(p, h), s(h, p, o, u, d), d.delete(p)), S(e, i, h);
44
+ }
45
+ //#endregion
46
+ //#region node_modules/lodash-es/_baseMerge.js
47
+ function ve(e, n, r, i, a) {
48
+ e !== n && p(n, function(o, s) {
49
+ if (a ||= new u(), t(o)) _e(e, n, s, r, ve, i, a);
50
+ else {
51
+ var c = i ? i(C(e, s), o, s + "", e, n, a) : void 0;
52
+ c === void 0 && (c = o), S(e, s, c);
53
+ }
54
+ }, m);
55
+ }
56
+ //#endregion
57
+ //#region node_modules/lodash-es/merge.js
58
+ var ye = o(function(e, t, n) {
59
+ ve(e, t, n);
60
+ });
61
+ //#endregion
62
+ //#region node_modules/d3-shape/src/curve/linear.js
63
+ function w(e) {
64
+ this._context = e;
65
+ }
66
+ w.prototype = {
67
+ areaStart: function() {
68
+ this._line = 0;
69
+ },
70
+ areaEnd: function() {
71
+ this._line = NaN;
72
+ },
73
+ lineStart: function() {
74
+ this._point = 0;
75
+ },
76
+ lineEnd: function() {
77
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
78
+ },
79
+ point: function(e, t) {
80
+ switch (e = +e, t = +t, this._point) {
81
+ case 0:
82
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
83
+ break;
84
+ case 1: this._point = 2;
85
+ default:
86
+ this._context.lineTo(e, t);
87
+ break;
88
+ }
89
+ }
90
+ };
91
+ function be(e) {
92
+ return new w(e);
93
+ }
94
+ //#endregion
95
+ //#region node_modules/d3-shape/src/curve/bump.js
96
+ var xe = class {
97
+ constructor(e, t) {
98
+ this._context = e, this._x = t;
99
+ }
100
+ areaStart() {
101
+ this._line = 0;
102
+ }
103
+ areaEnd() {
104
+ this._line = NaN;
105
+ }
106
+ lineStart() {
107
+ this._point = 0;
108
+ }
109
+ lineEnd() {
110
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
111
+ }
112
+ point(e, t) {
113
+ switch (e = +e, t = +t, this._point) {
114
+ case 0:
115
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
116
+ break;
117
+ case 1: this._point = 2;
118
+ default:
119
+ this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
120
+ break;
121
+ }
122
+ this._x0 = e, this._y0 = t;
123
+ }
124
+ };
125
+ function Se(e) {
126
+ return new xe(e, !0);
127
+ }
128
+ function Ce(e) {
129
+ return new xe(e, !1);
130
+ }
131
+ //#endregion
132
+ //#region node_modules/d3-shape/src/noop.js
133
+ function T() {}
134
+ //#endregion
135
+ //#region node_modules/d3-shape/src/curve/basis.js
136
+ function E(e, t, n) {
137
+ e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
138
+ }
139
+ function D(e) {
140
+ this._context = e;
141
+ }
142
+ D.prototype = {
143
+ areaStart: function() {
144
+ this._line = 0;
145
+ },
146
+ areaEnd: function() {
147
+ this._line = NaN;
148
+ },
149
+ lineStart: function() {
150
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
151
+ },
152
+ lineEnd: function() {
153
+ switch (this._point) {
154
+ case 3: E(this, this._x1, this._y1);
155
+ case 2:
156
+ this._context.lineTo(this._x1, this._y1);
157
+ break;
158
+ }
159
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
160
+ },
161
+ point: function(e, t) {
162
+ switch (e = +e, t = +t, this._point) {
163
+ case 0:
164
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
165
+ break;
166
+ case 1:
167
+ this._point = 2;
168
+ break;
169
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
170
+ default:
171
+ E(this, e, t);
172
+ break;
173
+ }
174
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
175
+ }
176
+ };
177
+ function we(e) {
178
+ return new D(e);
179
+ }
180
+ //#endregion
181
+ //#region node_modules/d3-shape/src/curve/basisClosed.js
182
+ function Te(e) {
183
+ this._context = e;
184
+ }
185
+ Te.prototype = {
186
+ areaStart: T,
187
+ areaEnd: T,
188
+ lineStart: function() {
189
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
190
+ },
191
+ lineEnd: function() {
192
+ switch (this._point) {
193
+ case 1:
194
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
195
+ break;
196
+ case 2:
197
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
198
+ break;
199
+ case 3:
200
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
201
+ break;
202
+ }
203
+ },
204
+ point: function(e, t) {
205
+ switch (e = +e, t = +t, this._point) {
206
+ case 0:
207
+ this._point = 1, this._x2 = e, this._y2 = t;
208
+ break;
209
+ case 1:
210
+ this._point = 2, this._x3 = e, this._y3 = t;
211
+ break;
212
+ case 2:
213
+ this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
214
+ break;
215
+ default:
216
+ E(this, e, t);
217
+ break;
218
+ }
219
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
220
+ }
221
+ };
222
+ function Ee(e) {
223
+ return new Te(e);
224
+ }
225
+ //#endregion
226
+ //#region node_modules/d3-shape/src/curve/basisOpen.js
227
+ function De(e) {
228
+ this._context = e;
229
+ }
230
+ De.prototype = {
231
+ areaStart: function() {
232
+ this._line = 0;
233
+ },
234
+ areaEnd: function() {
235
+ this._line = NaN;
236
+ },
237
+ lineStart: function() {
238
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
239
+ },
240
+ lineEnd: function() {
241
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
242
+ },
243
+ point: function(e, t) {
244
+ switch (e = +e, t = +t, this._point) {
245
+ case 0:
246
+ this._point = 1;
247
+ break;
248
+ case 1:
249
+ this._point = 2;
250
+ break;
251
+ case 2:
252
+ this._point = 3;
253
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
254
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
255
+ break;
256
+ case 3: this._point = 4;
257
+ default:
258
+ E(this, e, t);
259
+ break;
260
+ }
261
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
262
+ }
263
+ };
264
+ function Oe(e) {
265
+ return new De(e);
266
+ }
267
+ //#endregion
268
+ //#region node_modules/d3-shape/src/curve/bundle.js
269
+ function ke(e, t) {
270
+ this._basis = new D(e), this._beta = t;
271
+ }
272
+ ke.prototype = {
273
+ lineStart: function() {
274
+ this._x = [], this._y = [], this._basis.lineStart();
275
+ },
276
+ lineEnd: function() {
277
+ var e = this._x, t = this._y, n = e.length - 1;
278
+ if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
279
+ this._x = this._y = null, this._basis.lineEnd();
280
+ },
281
+ point: function(e, t) {
282
+ this._x.push(+e), this._y.push(+t);
283
+ }
284
+ };
285
+ var Ae = (function e(t) {
286
+ function n(e) {
287
+ return t === 1 ? new D(e) : new ke(e, t);
288
+ }
289
+ return n.beta = function(t) {
290
+ return e(+t);
291
+ }, n;
292
+ })(.85);
293
+ //#endregion
294
+ //#region node_modules/d3-shape/src/curve/cardinal.js
295
+ function O(e, t, n) {
296
+ e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
297
+ }
298
+ function k(e, t) {
299
+ this._context = e, this._k = (1 - t) / 6;
300
+ }
301
+ k.prototype = {
302
+ areaStart: function() {
303
+ this._line = 0;
304
+ },
305
+ areaEnd: function() {
306
+ this._line = NaN;
307
+ },
308
+ lineStart: function() {
309
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
310
+ },
311
+ lineEnd: function() {
312
+ switch (this._point) {
313
+ case 2:
314
+ this._context.lineTo(this._x2, this._y2);
315
+ break;
316
+ case 3:
317
+ O(this, this._x1, this._y1);
318
+ break;
319
+ }
320
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
321
+ },
322
+ point: function(e, t) {
323
+ switch (e = +e, t = +t, this._point) {
324
+ case 0:
325
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
326
+ break;
327
+ case 1:
328
+ this._point = 2, this._x1 = e, this._y1 = t;
329
+ break;
330
+ case 2: this._point = 3;
331
+ default:
332
+ O(this, e, t);
333
+ break;
334
+ }
335
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
336
+ }
337
+ };
338
+ var je = (function e(t) {
339
+ function n(e) {
340
+ return new k(e, t);
341
+ }
342
+ return n.tension = function(t) {
343
+ return e(+t);
344
+ }, n;
345
+ })(0);
346
+ //#endregion
347
+ //#region node_modules/d3-shape/src/curve/cardinalClosed.js
348
+ function A(e, t) {
349
+ this._context = e, this._k = (1 - t) / 6;
350
+ }
351
+ A.prototype = {
352
+ areaStart: T,
353
+ areaEnd: T,
354
+ lineStart: function() {
355
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
356
+ },
357
+ lineEnd: function() {
358
+ switch (this._point) {
359
+ case 1:
360
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
361
+ break;
362
+ case 2:
363
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
364
+ break;
365
+ case 3:
366
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
367
+ break;
368
+ }
369
+ },
370
+ point: function(e, t) {
371
+ switch (e = +e, t = +t, this._point) {
372
+ case 0:
373
+ this._point = 1, this._x3 = e, this._y3 = t;
374
+ break;
375
+ case 1:
376
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
377
+ break;
378
+ case 2:
379
+ this._point = 3, this._x5 = e, this._y5 = t;
380
+ break;
381
+ default:
382
+ O(this, e, t);
383
+ break;
384
+ }
385
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
386
+ }
387
+ };
388
+ var Me = (function e(t) {
389
+ function n(e) {
390
+ return new A(e, t);
391
+ }
392
+ return n.tension = function(t) {
393
+ return e(+t);
394
+ }, n;
395
+ })(0);
396
+ //#endregion
397
+ //#region node_modules/d3-shape/src/curve/cardinalOpen.js
398
+ function j(e, t) {
399
+ this._context = e, this._k = (1 - t) / 6;
400
+ }
401
+ j.prototype = {
402
+ areaStart: function() {
403
+ this._line = 0;
404
+ },
405
+ areaEnd: function() {
406
+ this._line = NaN;
407
+ },
408
+ lineStart: function() {
409
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
410
+ },
411
+ lineEnd: function() {
412
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
413
+ },
414
+ point: function(e, t) {
415
+ switch (e = +e, t = +t, this._point) {
416
+ case 0:
417
+ this._point = 1;
418
+ break;
419
+ case 1:
420
+ this._point = 2;
421
+ break;
422
+ case 2:
423
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
424
+ break;
425
+ case 3: this._point = 4;
426
+ default:
427
+ O(this, e, t);
428
+ break;
429
+ }
430
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
431
+ }
432
+ };
433
+ var Ne = (function e(t) {
434
+ function n(e) {
435
+ return new j(e, t);
436
+ }
437
+ return n.tension = function(t) {
438
+ return e(+t);
439
+ }, n;
440
+ })(0);
441
+ //#endregion
442
+ //#region node_modules/d3-shape/src/curve/catmullRom.js
443
+ function M(e, t, n) {
444
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
445
+ if (e._l01_a > 1e-12) {
446
+ var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
447
+ r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
448
+ }
449
+ if (e._l23_a > 1e-12) {
450
+ var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
451
+ a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
452
+ }
453
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
454
+ }
455
+ function N(e, t) {
456
+ this._context = e, this._alpha = t;
457
+ }
458
+ N.prototype = {
459
+ areaStart: function() {
460
+ this._line = 0;
461
+ },
462
+ areaEnd: function() {
463
+ this._line = NaN;
464
+ },
465
+ lineStart: function() {
466
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
467
+ },
468
+ lineEnd: function() {
469
+ switch (this._point) {
470
+ case 2:
471
+ this._context.lineTo(this._x2, this._y2);
472
+ break;
473
+ case 3:
474
+ this.point(this._x2, this._y2);
475
+ break;
476
+ }
477
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
478
+ },
479
+ point: function(e, t) {
480
+ if (e = +e, t = +t, this._point) {
481
+ var n = this._x2 - e, r = this._y2 - t;
482
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
483
+ }
484
+ switch (this._point) {
485
+ case 0:
486
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
487
+ break;
488
+ case 1:
489
+ this._point = 2;
490
+ break;
491
+ case 2: this._point = 3;
492
+ default:
493
+ M(this, e, t);
494
+ break;
495
+ }
496
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
497
+ }
498
+ };
499
+ var P = (function e(t) {
500
+ function n(e) {
501
+ return t ? new N(e, t) : new k(e, 0);
502
+ }
503
+ return n.alpha = function(t) {
504
+ return e(+t);
505
+ }, n;
506
+ })(.5);
507
+ //#endregion
508
+ //#region node_modules/d3-shape/src/curve/catmullRomClosed.js
509
+ function F(e, t) {
510
+ this._context = e, this._alpha = t;
511
+ }
512
+ F.prototype = {
513
+ areaStart: T,
514
+ areaEnd: T,
515
+ lineStart: function() {
516
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
517
+ },
518
+ lineEnd: function() {
519
+ switch (this._point) {
520
+ case 1:
521
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
522
+ break;
523
+ case 2:
524
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
525
+ break;
526
+ case 3:
527
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
528
+ break;
529
+ }
530
+ },
531
+ point: function(e, t) {
532
+ if (e = +e, t = +t, this._point) {
533
+ var n = this._x2 - e, r = this._y2 - t;
534
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
535
+ }
536
+ switch (this._point) {
537
+ case 0:
538
+ this._point = 1, this._x3 = e, this._y3 = t;
539
+ break;
540
+ case 1:
541
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
542
+ break;
543
+ case 2:
544
+ this._point = 3, this._x5 = e, this._y5 = t;
545
+ break;
546
+ default:
547
+ M(this, e, t);
548
+ break;
549
+ }
550
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
551
+ }
552
+ };
553
+ var Pe = (function e(t) {
554
+ function n(e) {
555
+ return t ? new F(e, t) : new A(e, 0);
556
+ }
557
+ return n.alpha = function(t) {
558
+ return e(+t);
559
+ }, n;
560
+ })(.5);
561
+ //#endregion
562
+ //#region node_modules/d3-shape/src/curve/catmullRomOpen.js
563
+ function I(e, t) {
564
+ this._context = e, this._alpha = t;
565
+ }
566
+ I.prototype = {
567
+ areaStart: function() {
568
+ this._line = 0;
569
+ },
570
+ areaEnd: function() {
571
+ this._line = NaN;
572
+ },
573
+ lineStart: function() {
574
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
575
+ },
576
+ lineEnd: function() {
577
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
578
+ },
579
+ point: function(e, t) {
580
+ if (e = +e, t = +t, this._point) {
581
+ var n = this._x2 - e, r = this._y2 - t;
582
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
583
+ }
584
+ switch (this._point) {
585
+ case 0:
586
+ this._point = 1;
587
+ break;
588
+ case 1:
589
+ this._point = 2;
590
+ break;
591
+ case 2:
592
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
593
+ break;
594
+ case 3: this._point = 4;
595
+ default:
596
+ M(this, e, t);
597
+ break;
598
+ }
599
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
600
+ }
601
+ };
602
+ var Fe = (function e(t) {
603
+ function n(e) {
604
+ return t ? new I(e, t) : new j(e, 0);
605
+ }
606
+ return n.alpha = function(t) {
607
+ return e(+t);
608
+ }, n;
609
+ })(.5);
610
+ //#endregion
611
+ //#region node_modules/d3-shape/src/curve/linearClosed.js
612
+ function L(e) {
613
+ this._context = e;
614
+ }
615
+ L.prototype = {
616
+ areaStart: T,
617
+ areaEnd: T,
618
+ lineStart: function() {
619
+ this._point = 0;
620
+ },
621
+ lineEnd: function() {
622
+ this._point && this._context.closePath();
623
+ },
624
+ point: function(e, t) {
625
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
626
+ }
627
+ };
628
+ function Ie(e) {
629
+ return new L(e);
630
+ }
631
+ //#endregion
632
+ //#region node_modules/d3-shape/src/curve/monotone.js
633
+ function R(e) {
634
+ return e < 0 ? -1 : 1;
635
+ }
636
+ function z(e, t, n) {
637
+ var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
638
+ return (R(a) + R(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
639
+ }
640
+ function Le(e, t) {
641
+ var n = e._x1 - e._x0;
642
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
643
+ }
644
+ function B(e, t, n) {
645
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
646
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
647
+ }
648
+ function V(e) {
649
+ this._context = e;
650
+ }
651
+ V.prototype = {
652
+ areaStart: function() {
653
+ this._line = 0;
654
+ },
655
+ areaEnd: function() {
656
+ this._line = NaN;
657
+ },
658
+ lineStart: function() {
659
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
660
+ },
661
+ lineEnd: function() {
662
+ switch (this._point) {
663
+ case 2:
664
+ this._context.lineTo(this._x1, this._y1);
665
+ break;
666
+ case 3:
667
+ B(this, this._t0, Le(this, this._t0));
668
+ break;
669
+ }
670
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
671
+ },
672
+ point: function(e, t) {
673
+ var n = NaN;
674
+ if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
675
+ switch (this._point) {
676
+ case 0:
677
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
678
+ break;
679
+ case 1:
680
+ this._point = 2;
681
+ break;
682
+ case 2:
683
+ this._point = 3, B(this, Le(this, n = z(this, e, t)), n);
684
+ break;
685
+ default:
686
+ B(this, this._t0, n = z(this, e, t));
687
+ break;
688
+ }
689
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
690
+ }
691
+ }
692
+ };
693
+ function Re(e) {
694
+ this._context = new ze(e);
695
+ }
696
+ (Re.prototype = Object.create(V.prototype)).point = function(e, t) {
697
+ V.prototype.point.call(this, t, e);
698
+ };
699
+ function ze(e) {
700
+ this._context = e;
701
+ }
702
+ ze.prototype = {
703
+ moveTo: function(e, t) {
704
+ this._context.moveTo(t, e);
705
+ },
706
+ closePath: function() {
707
+ this._context.closePath();
708
+ },
709
+ lineTo: function(e, t) {
710
+ this._context.lineTo(t, e);
711
+ },
712
+ bezierCurveTo: function(e, t, n, r, i, a) {
713
+ this._context.bezierCurveTo(t, e, r, n, a, i);
714
+ }
715
+ };
716
+ function Be(e) {
717
+ return new V(e);
718
+ }
719
+ function Ve(e) {
720
+ return new Re(e);
721
+ }
722
+ //#endregion
723
+ //#region node_modules/d3-shape/src/curve/natural.js
724
+ function He(e) {
725
+ this._context = e;
726
+ }
727
+ He.prototype = {
728
+ areaStart: function() {
729
+ this._line = 0;
730
+ },
731
+ areaEnd: function() {
732
+ this._line = NaN;
733
+ },
734
+ lineStart: function() {
735
+ this._x = [], this._y = [];
736
+ },
737
+ lineEnd: function() {
738
+ var e = this._x, t = this._y, n = e.length;
739
+ if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
740
+ else for (var r = Ue(e), i = Ue(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
741
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
742
+ },
743
+ point: function(e, t) {
744
+ this._x.push(+e), this._y.push(+t);
745
+ }
746
+ };
747
+ function Ue(e) {
748
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
749
+ for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
750
+ for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
751
+ for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
752
+ for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
753
+ return [i, a];
754
+ }
755
+ function We(e) {
756
+ return new He(e);
757
+ }
758
+ //#endregion
759
+ //#region node_modules/d3-shape/src/curve/step.js
760
+ function H(e, t) {
761
+ this._context = e, this._t = t;
762
+ }
763
+ H.prototype = {
764
+ areaStart: function() {
765
+ this._line = 0;
766
+ },
767
+ areaEnd: function() {
768
+ this._line = NaN;
769
+ },
770
+ lineStart: function() {
771
+ this._x = this._y = NaN, this._point = 0;
772
+ },
773
+ lineEnd: function() {
774
+ 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
775
+ },
776
+ point: function(e, t) {
777
+ switch (e = +e, t = +t, this._point) {
778
+ case 0:
779
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
780
+ break;
781
+ case 1: this._point = 2;
782
+ default:
783
+ if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
784
+ else {
785
+ var n = this._x * (1 - this._t) + e * this._t;
786
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
787
+ }
788
+ break;
789
+ }
790
+ this._x = e, this._y = t;
791
+ }
792
+ };
793
+ function Ge(e) {
794
+ return new H(e, .5);
795
+ }
796
+ function Ke(e) {
797
+ return new H(e, 0);
798
+ }
799
+ function qe(e) {
800
+ return new H(e, 1);
801
+ }
802
+ //#endregion
803
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GEFDOKGD.mjs
804
+ var Je = ce(), Ye = {
805
+ curveBasis: we,
806
+ curveBasisClosed: Ee,
807
+ curveBasisOpen: Oe,
808
+ curveBumpX: Se,
809
+ curveBumpY: Ce,
810
+ curveBundle: Ae,
811
+ curveCardinalClosed: Me,
812
+ curveCardinalOpen: Ne,
813
+ curveCardinal: je,
814
+ curveCatmullRomClosed: Pe,
815
+ curveCatmullRomOpen: Fe,
816
+ curveCatmullRom: P,
817
+ curveLinear: be,
818
+ curveLinearClosed: Ie,
819
+ curveMonotoneX: Be,
820
+ curveMonotoneY: Ve,
821
+ curveNatural: We,
822
+ curveStep: Ge,
823
+ curveStepAfter: qe,
824
+ curveStepBefore: Ke
825
+ }, Xe = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ze = /* @__PURE__ */ _(function(e, t) {
826
+ let n = Qe(e, /(?:init\b)|(?:initialize\b)/), r = {};
827
+ if (Array.isArray(n)) {
828
+ let e = n.map((e) => e.args);
829
+ y(e), r = se(r, [...e]);
830
+ } else r = n.args;
831
+ if (!r) return;
832
+ let i = oe(e, t), a = "config";
833
+ return r[a] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), r[i] = r[a], delete r[a]), r;
834
+ }, "detectInit"), Qe = /* @__PURE__ */ _(function(e, t = null) {
835
+ try {
836
+ let n = RegExp(`[%]{2}(?![{]${Xe.source})(?=[}][%]{2}).*
837
+ `, "ig");
838
+ e = e.trim().replace(n, "").replace(/'/gm, "\""), g.debug(`Detecting diagram directive${t === null ? "" : " type:" + t} based on the text:${e}`);
839
+ let r, i = [];
840
+ for (; (r = b.exec(e)) !== null;) if (r.index === b.lastIndex && b.lastIndex++, r && !t || t && r[1]?.match(t) || t && r[2]?.match(t)) {
841
+ let e = r[1] ? r[1] : r[2], t = r[3] ? r[3].trim() : r[4] ? JSON.parse(r[4].trim()) : null;
842
+ i.push({
843
+ type: e,
844
+ args: t
845
+ });
846
+ }
847
+ return i.length === 0 ? {
848
+ type: e,
849
+ args: null
850
+ } : i.length === 1 ? i[0] : i;
851
+ } catch (n) {
852
+ return g.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`), {
853
+ type: void 0,
854
+ args: null
855
+ };
856
+ }
857
+ }, "detectDirective"), $e = /* @__PURE__ */ _(function(e) {
858
+ return e.replace(b, "");
859
+ }, "removeDirectives"), et = /* @__PURE__ */ _(function(e, t) {
860
+ for (let [n, r] of t.entries()) if (r.match(e)) return n;
861
+ return -1;
862
+ }, "isSubstringInArray");
863
+ function U(e, t) {
864
+ return e ? Ye[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
865
+ }
866
+ _(U, "interpolateToCurve");
867
+ function tt(e, t) {
868
+ let n = e.trim();
869
+ if (n) return t.securityLevel === "loose" ? n : (0, Je.sanitizeUrl)(n);
870
+ }
871
+ _(tt, "formatUrl");
872
+ var nt = /* @__PURE__ */ _((e, ...t) => {
873
+ let n = e.split("."), r = n.length - 1, i = n[r], a = window;
874
+ for (let t = 0; t < r; t++) if (a = a[n[t]], !a) {
875
+ g.error(`Function name: ${e} not found in window`);
876
+ return;
877
+ }
878
+ a[i](...t);
879
+ }, "runFunc");
880
+ function W(e, t) {
881
+ return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
882
+ }
883
+ _(W, "distance");
884
+ function rt(e) {
885
+ let t, n = 0;
886
+ return e.forEach((e) => {
887
+ n += W(e, t), t = e;
888
+ }), G(e, n / 2);
889
+ }
890
+ _(rt, "traverseEdge");
891
+ function it(e) {
892
+ return e.length === 1 ? e[0] : rt(e);
893
+ }
894
+ _(it, "calcLabelPosition");
895
+ var at = /* @__PURE__ */ _((e, t = 2) => {
896
+ let n = 10 ** t;
897
+ return Math.round(e * n) / n;
898
+ }, "roundNumber"), G = /* @__PURE__ */ _((e, t) => {
899
+ let n, r = t;
900
+ for (let t of e) {
901
+ if (n) {
902
+ let e = W(t, n);
903
+ if (e === 0) return n;
904
+ if (e < r) r -= e;
905
+ else {
906
+ let i = r / e;
907
+ if (i <= 0) return n;
908
+ if (i >= 1) return {
909
+ x: t.x,
910
+ y: t.y
911
+ };
912
+ if (i > 0 && i < 1) return {
913
+ x: at((1 - i) * n.x + i * t.x, 5),
914
+ y: at((1 - i) * n.y + i * t.y, 5)
915
+ };
916
+ }
917
+ }
918
+ n = t;
919
+ }
920
+ throw Error("Could not find a suitable point for the given distance");
921
+ }, "calculatePoint"), ot = /* @__PURE__ */ _((e, t, n) => {
922
+ g.info(`our points ${JSON.stringify(t)}`), t[0] !== n && (t = t.reverse());
923
+ let r = G(t, 25), i = e ? 10 : 5, a = Math.atan2(t[0].y - r.y, t[0].x - r.x), o = {
924
+ x: 0,
925
+ y: 0
926
+ };
927
+ return o.x = Math.sin(a) * i + (t[0].x + r.x) / 2, o.y = -Math.cos(a) * i + (t[0].y + r.y) / 2, o;
928
+ }, "calcCardinalityPosition");
929
+ function st(e, t, n) {
930
+ let r = structuredClone(n);
931
+ g.info("our points", r), t !== "start_left" && t !== "start_right" && r.reverse();
932
+ let i = G(r, 25 + e), a = 10 + e * .5, o = Math.atan2(r[0].y - i.y, r[0].x - i.x), s = {
933
+ x: 0,
934
+ y: 0
935
+ };
936
+ return t === "start_left" ? (s.x = Math.sin(o + Math.PI) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o + Math.PI) * a + (r[0].y + i.y) / 2) : t === "end_right" ? (s.x = Math.sin(o - Math.PI) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o - Math.PI) * a + (r[0].y + i.y) / 2 - 5) : t === "end_left" ? (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2 - 5) : (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2), s;
937
+ }
938
+ _(st, "calcTerminalLabelPosition");
939
+ function K(e) {
940
+ let t = "", n = "";
941
+ for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
942
+ return {
943
+ style: t,
944
+ labelStyle: n
945
+ };
946
+ }
947
+ _(K, "getStylesFromArray");
948
+ var q = 0, ct = /* @__PURE__ */ _(() => (q++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + q), "generateId");
949
+ function lt(e) {
950
+ let t = "";
951
+ for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
952
+ return t;
953
+ }
954
+ _(lt, "makeRandomHex");
955
+ var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */ _(function() {
956
+ return {
957
+ x: 0,
958
+ y: 0,
959
+ fill: void 0,
960
+ anchor: "start",
961
+ style: "#666",
962
+ width: 100,
963
+ height: 100,
964
+ textMargin: 0,
965
+ rx: 0,
966
+ ry: 0,
967
+ valign: void 0,
968
+ text: ""
969
+ };
970
+ }, "getTextObj"), ft = /* @__PURE__ */ _(function(e, t) {
971
+ let n = t.text.replace(x.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
972
+ i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
973
+ let a = i.append("tspan");
974
+ return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
975
+ }, "drawSimpleText"), pt = h((e, t, n) => {
976
+ if (!e || (n = Object.assign({
977
+ fontSize: 12,
978
+ fontWeight: 400,
979
+ fontFamily: "Arial",
980
+ joinWith: "<br/>"
981
+ }, n), x.lineBreakRegex.test(e))) return e;
982
+ let r = e.split(" ").filter(Boolean), i = [], a = "";
983
+ return r.forEach((e, o) => {
984
+ let s = Y(`${e} `, n), c = Y(a, n);
985
+ if (s > t) {
986
+ let { hyphenatedStrings: r, remainingWord: o } = mt(e, t, "-", n);
987
+ i.push(a, ...r), a = o;
988
+ } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
989
+ o + 1 === r.length && i.push(a);
990
+ }), i.filter((e) => e !== "").join(n.joinWith);
991
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = h((e, t, n = "-", r) => {
992
+ r = Object.assign({
993
+ fontSize: 12,
994
+ fontWeight: 400,
995
+ fontFamily: "Arial",
996
+ margin: 0
997
+ }, r);
998
+ let i = [...e], a = [], o = "";
999
+ return i.forEach((e, s) => {
1000
+ let c = `${o}${e}`;
1001
+ if (Y(c, r) >= t) {
1002
+ let e = s + 1, t = i.length === e, r = `${c}${n}`;
1003
+ a.push(t ? c : r), o = "";
1004
+ } else o = c;
1005
+ }), {
1006
+ hyphenatedStrings: a,
1007
+ remainingWord: o
1008
+ };
1009
+ }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1010
+ function J(e, t) {
1011
+ return X(e, t).height;
1012
+ }
1013
+ _(J, "calculateTextHeight");
1014
+ function Y(e, t) {
1015
+ return X(e, t).width;
1016
+ }
1017
+ _(Y, "calculateTextWidth");
1018
+ var X = h((e, t) => {
1019
+ let { fontSize: n = 12, fontFamily: r = "Arial", fontWeight: i = 400 } = t;
1020
+ if (!e) return {
1021
+ width: 0,
1022
+ height: 0
1023
+ };
1024
+ let [, a] = Q(n), o = ["sans-serif", r], s = e.split(x.lineBreakRegex), c = [], l = v("body");
1025
+ if (!l.remove) return {
1026
+ width: 0,
1027
+ height: 0,
1028
+ lineHeight: 0
1029
+ };
1030
+ let u = l.append("svg");
1031
+ for (let e of o) {
1032
+ let t = 0, n = {
1033
+ width: 0,
1034
+ height: 0,
1035
+ lineHeight: 0
1036
+ };
1037
+ for (let r of s) {
1038
+ let o = dt();
1039
+ o.text = r || "​";
1040
+ let s = ft(u, o).style("font-size", a).style("font-weight", i).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1041
+ if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1042
+ n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1043
+ }
1044
+ c.push(n);
1045
+ }
1046
+ return u.remove(), c[isNaN(c[1].height) || isNaN(c[1].width) || isNaN(c[1].lineHeight) || c[0].height > c[1].height && c[0].width > c[1].width && c[0].lineHeight > c[1].lineHeight ? 0 : 1];
1047
+ }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ht = class {
1048
+ constructor(e = !1, t) {
1049
+ this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1050
+ }
1051
+ static {
1052
+ _(this, "InitIDGenerator");
1053
+ }
1054
+ }, Z, gt = /* @__PURE__ */ _(function(e) {
1055
+ return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1056
+ }, "entityDecode");
1057
+ function _t(e) {
1058
+ return "str" in e;
1059
+ }
1060
+ _(_t, "isDetailedError");
1061
+ var vt = /* @__PURE__ */ _((e, t, n, r) => {
1062
+ if (!r) return;
1063
+ let i = e.node()?.getBBox();
1064
+ i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1065
+ }, "insertTitle"), Q = /* @__PURE__ */ _((e) => {
1066
+ if (typeof e == "number") return [e, e + "px"];
1067
+ let t = parseInt(e ?? "", 10);
1068
+ return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1069
+ }, "parseFontSize");
1070
+ function $(e, t) {
1071
+ return ye({}, e, t);
1072
+ }
1073
+ _($, "cleanAndMerge");
1074
+ var yt = {
1075
+ assignWithDepth: se,
1076
+ wrapLabel: pt,
1077
+ calculateTextHeight: J,
1078
+ calculateTextWidth: Y,
1079
+ calculateTextDimensions: X,
1080
+ cleanAndMerge: $,
1081
+ detectInit: Ze,
1082
+ detectDirective: Qe,
1083
+ isSubstringInArray: et,
1084
+ interpolateToCurve: U,
1085
+ calcLabelPosition: it,
1086
+ calcCardinalityPosition: ot,
1087
+ calcTerminalLabelPosition: st,
1088
+ formatUrl: tt,
1089
+ getStylesFromArray: K,
1090
+ generateId: ct,
1091
+ random: ut,
1092
+ runFunc: nt,
1093
+ entityDecode: gt,
1094
+ insertTitle: vt,
1095
+ isLabelCoordinateInPath: wt,
1096
+ parseFontSize: Q,
1097
+ InitIDGenerator: ht
1098
+ }, bt = /* @__PURE__ */ _(function(e) {
1099
+ let t = e;
1100
+ return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1101
+ return e.substring(0, e.length - 1);
1102
+ }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1103
+ return e.substring(0, e.length - 1);
1104
+ }), t = t.replace(/#\w+;/g, function(e) {
1105
+ let t = e.substring(1, e.length - 1);
1106
+ return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1107
+ }), t;
1108
+ }, "encodeEntities"), xt = /* @__PURE__ */ _(function(e) {
1109
+ return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1110
+ }, "decodeEntities"), St = /* @__PURE__ */ _((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1111
+ function Ct(e) {
1112
+ return e ?? null;
1113
+ }
1114
+ _(Ct, "handleUndefinedAttr");
1115
+ function wt(e, t) {
1116
+ let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1117
+ return i.includes(n.toString()) || i.includes(r.toString());
1118
+ }
1119
+ _(wt, "isLabelCoordinateInPath");
1120
+ //#endregion
1121
+ export { P as C, Ce as D, Se as E, be as O, Ve as S, we as T, qe as _, bt as a, We as b, K as c, _t as d, Q as f, pt as g, yt as h, xt as i, ye as k, Ct as l, $e as m, Y as n, ct as o, ut as p, $ as r, St as s, J as t, U as u, Ke as v, je as w, Be as x, Ge as y };