@nxgt/material 1.13.0 → 1.16.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.
- package/README.md +4 -0
- package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
- package/dist/channel-1fT-W0NS.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
- package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
- package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
- package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
- package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
- package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
- package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
- package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
- package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
- package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
- package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
- package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
- package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
- package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
- package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
- package/dist/components.js +3 -3
- package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
- package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
- package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
- package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
- package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
- package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
- package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
- package/dist/dist-1DdJvBEt.js +50 -0
- package/dist/{dist-BGGDEbJ3.js → dist-DppLdkXt.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
- package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
- package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
- package/dist/graphlib-DFaO_iIU.js +372 -0
- package/dist/{hooks-DReKyuyc.js → hooks-C5xy0u03.js} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-DtDrodl8.js → i18n-Cech9IAc.js} +314 -841
- package/dist/i18n.js +1 -1
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
- package/dist/init-Buj1GKRa.js +27 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
- package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
- package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
- package/dist/lib/components/ui/markdown/index.d.ts +3 -0
- package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
- package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
- package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
- package/dist/lib/components/ui/mentions/index.d.ts +3 -0
- package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/mentions/types.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
- package/dist/lib/components/ui/terminal/index.d.ts +2 -0
- package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
- package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/index.d.ts +14 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/{lib-CD3tyuc8.js → lib-Bbw5QPoj.js} +472 -471
- package/dist/lib.js +2 -2
- package/dist/{main-r84Yresa.js → main-BjDU9FDM.js} +59393 -30376
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/dist/math-C5EhTgJw.js +10 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-BI1sunfX.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
- package/dist/ordinal-DuP05kVQ.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-Cjou0lUh.js +85 -0
- package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
- package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
- package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-B4npqWNl.js +1775 -0
- package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
- package/dist/step-B6KjpKgN.js +706 -0
- package/dist/string-B-ZWXCs2.js +392 -0
- package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
- package/package.json +7 -1
|
@@ -0,0 +1,663 @@
|
|
|
1
|
+
import { n as e, t } from "./src-B4npqWNl.js";
|
|
2
|
+
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as ee, o as te, p as ne, r as re, s as ie, t as ae, u as oe, v as se } from "./step-B6KjpKgN.js";
|
|
3
|
+
import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { R as ce, h as p, p as le, r as ue, s as m } from "./chunk-O7XYJQB3-md6vjVm4.js";
|
|
5
|
+
import { t as de } from "./dist-1DdJvBEt.js";
|
|
6
|
+
//#region node_modules/d3-shape/src/curve/bump.js
|
|
7
|
+
var h = class {
|
|
8
|
+
constructor(e, t) {
|
|
9
|
+
this._context = e, this._x = t;
|
|
10
|
+
}
|
|
11
|
+
areaStart() {
|
|
12
|
+
this._line = 0;
|
|
13
|
+
}
|
|
14
|
+
areaEnd() {
|
|
15
|
+
this._line = NaN;
|
|
16
|
+
}
|
|
17
|
+
lineStart() {
|
|
18
|
+
this._point = 0;
|
|
19
|
+
}
|
|
20
|
+
lineEnd() {
|
|
21
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
22
|
+
}
|
|
23
|
+
point(e, t) {
|
|
24
|
+
switch (e = +e, t = +t, this._point) {
|
|
25
|
+
case 0:
|
|
26
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
27
|
+
break;
|
|
28
|
+
case 1: this._point = 2;
|
|
29
|
+
default:
|
|
30
|
+
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);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
this._x0 = e, this._y0 = t;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
function g(e) {
|
|
37
|
+
return new h(e, !0);
|
|
38
|
+
}
|
|
39
|
+
function _(e) {
|
|
40
|
+
return new h(e, !1);
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
|
|
44
|
+
function v(e) {
|
|
45
|
+
if (typeof e != "object" || !e) return !1;
|
|
46
|
+
if (Object.getPrototypeOf(e) === null) return !0;
|
|
47
|
+
if (Object.prototype.toString.call(e) !== "[object Object]") {
|
|
48
|
+
let t = e[Symbol.toStringTag];
|
|
49
|
+
return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
|
|
50
|
+
}
|
|
51
|
+
let t = e;
|
|
52
|
+
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
53
|
+
return Object.getPrototypeOf(e) === t;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/es-toolkit/dist/function/noop.mjs
|
|
57
|
+
function fe() {}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
60
|
+
function pe(e) {
|
|
61
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
65
|
+
function y(e) {
|
|
66
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
70
|
+
var b = "[object RegExp]", x = "[object String]", S = "[object Number]", C = "[object Boolean]", w = "[object Arguments]", me = "[object Symbol]", he = "[object Date]", ge = "[object Map]", _e = "[object Set]", ve = "[object Array]", ye = "[object ArrayBuffer]", be = "[object Object]", xe = "[object DataView]", Se = "[object Uint8Array]", Ce = "[object Uint8ClampedArray]", we = "[object Uint16Array]", T = "[object Uint32Array]", E = "[object Int8Array]", D = "[object Int16Array]", O = "[object Int32Array]", k = "[object Float32Array]", A = "[object Float64Array]", j = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
|
|
71
|
+
return this;
|
|
72
|
+
})();
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
75
|
+
function M(e) {
|
|
76
|
+
return j.Buffer !== void 0 && j.Buffer.isBuffer(e);
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
80
|
+
function Te(e) {
|
|
81
|
+
return Number.isSafeInteger(e) && e >= 0;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
85
|
+
function N(e) {
|
|
86
|
+
return e != null && typeof e != "function" && Te(e.length);
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
90
|
+
function Ee(e) {
|
|
91
|
+
return e === "__proto__";
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
95
|
+
function P(e) {
|
|
96
|
+
return e == null || typeof e != "object" && typeof e != "function";
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
100
|
+
function F(e) {
|
|
101
|
+
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
105
|
+
function De(e, t) {
|
|
106
|
+
return I(e, void 0, e, /* @__PURE__ */ new Map(), t);
|
|
107
|
+
}
|
|
108
|
+
function I(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
109
|
+
let a = i?.(e, t, n, r);
|
|
110
|
+
if (a !== void 0) return a;
|
|
111
|
+
if (P(e)) return e;
|
|
112
|
+
if (r.has(e)) return r.get(e);
|
|
113
|
+
if (Array.isArray(e)) {
|
|
114
|
+
let t = Array(e.length);
|
|
115
|
+
r.set(e, t);
|
|
116
|
+
for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
|
|
117
|
+
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
118
|
+
}
|
|
119
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
120
|
+
if (e instanceof RegExp) {
|
|
121
|
+
let t = new RegExp(e.source, e.flags);
|
|
122
|
+
return t.lastIndex = e.lastIndex, t;
|
|
123
|
+
}
|
|
124
|
+
if (e instanceof Map) {
|
|
125
|
+
let t = /* @__PURE__ */ new Map();
|
|
126
|
+
r.set(e, t);
|
|
127
|
+
for (let [a, o] of e) t.set(a, I(o, a, n, r, i));
|
|
128
|
+
return t;
|
|
129
|
+
}
|
|
130
|
+
if (e instanceof Set) {
|
|
131
|
+
let t = /* @__PURE__ */ new Set();
|
|
132
|
+
r.set(e, t);
|
|
133
|
+
for (let a of e) t.add(I(a, void 0, n, r, i));
|
|
134
|
+
return t;
|
|
135
|
+
}
|
|
136
|
+
if (M(e)) return e.subarray();
|
|
137
|
+
if (F(e)) {
|
|
138
|
+
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
139
|
+
r.set(e, t);
|
|
140
|
+
for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
|
|
141
|
+
return t;
|
|
142
|
+
}
|
|
143
|
+
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
144
|
+
if (e instanceof DataView) {
|
|
145
|
+
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
146
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
147
|
+
}
|
|
148
|
+
if (typeof File < "u" && e instanceof File) {
|
|
149
|
+
let t = new File([e], e.name, { type: e.type });
|
|
150
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
151
|
+
}
|
|
152
|
+
if (typeof Blob < "u" && e instanceof Blob) {
|
|
153
|
+
let t = new Blob([e], { type: e.type });
|
|
154
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
155
|
+
}
|
|
156
|
+
if (e instanceof Error) {
|
|
157
|
+
let t = structuredClone(e);
|
|
158
|
+
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, L(t, e, n, r, i), t;
|
|
159
|
+
}
|
|
160
|
+
if (e instanceof Boolean) {
|
|
161
|
+
let t = new Boolean(e.valueOf());
|
|
162
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
163
|
+
}
|
|
164
|
+
if (e instanceof Number) {
|
|
165
|
+
let t = new Number(e.valueOf());
|
|
166
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
167
|
+
}
|
|
168
|
+
if (e instanceof String) {
|
|
169
|
+
let t = new String(e.valueOf());
|
|
170
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
171
|
+
}
|
|
172
|
+
if (typeof e == "object" && Oe(e)) {
|
|
173
|
+
let t = Object.create(Object.getPrototypeOf(e));
|
|
174
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
175
|
+
}
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
function L(e, t, n = e, r, i) {
|
|
179
|
+
let a = [...Object.keys(t), ...pe(t)];
|
|
180
|
+
for (let o = 0; o < a.length; o++) {
|
|
181
|
+
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
182
|
+
(c == null || c.writable) && (e[s] = I(t[s], s, n, r, i));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function Oe(e) {
|
|
186
|
+
switch (y(e)) {
|
|
187
|
+
case w:
|
|
188
|
+
case ve:
|
|
189
|
+
case ye:
|
|
190
|
+
case xe:
|
|
191
|
+
case C:
|
|
192
|
+
case he:
|
|
193
|
+
case k:
|
|
194
|
+
case A:
|
|
195
|
+
case E:
|
|
196
|
+
case D:
|
|
197
|
+
case O:
|
|
198
|
+
case ge:
|
|
199
|
+
case S:
|
|
200
|
+
case be:
|
|
201
|
+
case b:
|
|
202
|
+
case _e:
|
|
203
|
+
case x:
|
|
204
|
+
case me:
|
|
205
|
+
case Se:
|
|
206
|
+
case Ce:
|
|
207
|
+
case we:
|
|
208
|
+
case T: return !0;
|
|
209
|
+
default: return !1;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
|
|
214
|
+
function ke(e, t) {
|
|
215
|
+
return De(e, (n, r, i, a) => {
|
|
216
|
+
let o = t?.(n, r, i, a);
|
|
217
|
+
if (o !== void 0) return o;
|
|
218
|
+
if (typeof e == "object") {
|
|
219
|
+
if (y(e) === "[object Object]" && typeof e.constructor != "function") {
|
|
220
|
+
let t = {};
|
|
221
|
+
return a.set(e, t), L(t, e, i, a), t;
|
|
222
|
+
}
|
|
223
|
+
switch (Object.prototype.toString.call(e)) {
|
|
224
|
+
case S:
|
|
225
|
+
case x:
|
|
226
|
+
case C: {
|
|
227
|
+
let t = new e.constructor(e?.valueOf());
|
|
228
|
+
return L(t, e), t;
|
|
229
|
+
}
|
|
230
|
+
case w: {
|
|
231
|
+
let t = {};
|
|
232
|
+
return L(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
|
|
233
|
+
}
|
|
234
|
+
default: return;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
|
|
241
|
+
function R(e) {
|
|
242
|
+
return ke(e);
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
|
|
246
|
+
function z(e) {
|
|
247
|
+
return typeof e == "object" && !!e && y(e) === "[object Arguments]";
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
|
|
251
|
+
function B(e) {
|
|
252
|
+
return typeof e == "object" && !!e;
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
|
|
256
|
+
function Ae(e) {
|
|
257
|
+
return B(e) && N(e);
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
|
|
261
|
+
function V(e) {
|
|
262
|
+
return F(e);
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region node_modules/es-toolkit/dist/compat/function/memoize.mjs
|
|
266
|
+
function H(e, t) {
|
|
267
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
|
|
268
|
+
let n = function(...r) {
|
|
269
|
+
let i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
270
|
+
if (a.has(i)) return a.get(i);
|
|
271
|
+
let o = e.apply(this, r);
|
|
272
|
+
return n.cache = a.set(i, o) || a, o;
|
|
273
|
+
};
|
|
274
|
+
return n.cache = new (H.Cache || Map)(), n;
|
|
275
|
+
}
|
|
276
|
+
H.Cache = Map;
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region node_modules/es-toolkit/dist/object/clone.mjs
|
|
279
|
+
function je(e) {
|
|
280
|
+
if (P(e)) return e;
|
|
281
|
+
if (Array.isArray(e) || F(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
282
|
+
let t = Object.getPrototypeOf(e);
|
|
283
|
+
if (t == null) return Object.assign(Object.create(t), e);
|
|
284
|
+
let n = t.constructor;
|
|
285
|
+
if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
|
|
286
|
+
if (e instanceof RegExp) {
|
|
287
|
+
let t = new n(e);
|
|
288
|
+
return t.lastIndex = e.lastIndex, t;
|
|
289
|
+
}
|
|
290
|
+
if (e instanceof DataView) return new n(e.buffer.slice(0));
|
|
291
|
+
if (e instanceof Error) {
|
|
292
|
+
let t;
|
|
293
|
+
return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
|
|
294
|
+
}
|
|
295
|
+
return typeof File < "u" && e instanceof File ? new n([e], e.name, {
|
|
296
|
+
type: e.type,
|
|
297
|
+
lastModified: e.lastModified
|
|
298
|
+
}) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
|
|
302
|
+
function Me(e, ...t) {
|
|
303
|
+
let n = t.slice(0, -1), r = t[t.length - 1], i = e;
|
|
304
|
+
for (let e = 0; e < n.length; e++) {
|
|
305
|
+
let t = n[e];
|
|
306
|
+
i = U(i, t, r, /* @__PURE__ */ new Map());
|
|
307
|
+
}
|
|
308
|
+
return i;
|
|
309
|
+
}
|
|
310
|
+
function U(e, t, n, r) {
|
|
311
|
+
if (P(e) && (e = Object(e)), typeof t != "object" || !t) return e;
|
|
312
|
+
if (r.has(t)) return je(r.get(t));
|
|
313
|
+
if (r.set(t, e), Array.isArray(t)) {
|
|
314
|
+
t = t.slice();
|
|
315
|
+
for (let e = 0; e < t.length; e++) e in t || (t[e] = void 0);
|
|
316
|
+
}
|
|
317
|
+
let i = [...Object.keys(t), ...pe(t)];
|
|
318
|
+
for (let a = 0; a < i.length; a++) {
|
|
319
|
+
let o = i[a];
|
|
320
|
+
if (Ee(o)) continue;
|
|
321
|
+
let s = t[o], c = e[o];
|
|
322
|
+
if (z(s) && (s = { ...s }), z(c) && (c = { ...c }), M(s) && (s = R(s)), Array.isArray(s)) if (Array.isArray(c)) {
|
|
323
|
+
let e = [], t = Reflect.ownKeys(c);
|
|
324
|
+
for (let n = 0; n < t.length; n++) {
|
|
325
|
+
let r = t[n];
|
|
326
|
+
e[r] = c[r];
|
|
327
|
+
}
|
|
328
|
+
c = e;
|
|
329
|
+
} else if (Ae(c)) {
|
|
330
|
+
let e = [];
|
|
331
|
+
for (let t = 0; t < c.length; t++) e[t] = c[t];
|
|
332
|
+
c = e;
|
|
333
|
+
} else c = [];
|
|
334
|
+
let l = n(c, s, o, e, t, r);
|
|
335
|
+
l === void 0 ? Array.isArray(s) || B(c) && B(s) && (v(c) || v(s) || V(c) || V(s)) ? e[o] = U(c, s, n, r) : c == null && v(s) ? e[o] = U({}, s, n, r) : c == null && V(s) ? e[o] = R(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
|
|
336
|
+
}
|
|
337
|
+
return e;
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region node_modules/es-toolkit/dist/compat/object/merge.mjs
|
|
341
|
+
function Ne(e, ...t) {
|
|
342
|
+
return Me(e, ...t, fe);
|
|
343
|
+
}
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIGJFQKS.mjs
|
|
346
|
+
var Pe = de(), Fe = {
|
|
347
|
+
curveBasis: n,
|
|
348
|
+
curveBasisClosed: s,
|
|
349
|
+
curveBasisOpen: c,
|
|
350
|
+
curveBumpX: g,
|
|
351
|
+
curveBumpY: _,
|
|
352
|
+
curveBundle: d,
|
|
353
|
+
curveCardinalClosed: o,
|
|
354
|
+
curveCardinalOpen: a,
|
|
355
|
+
curveCardinal: ne,
|
|
356
|
+
curveCatmullRomClosed: u,
|
|
357
|
+
curveCatmullRomOpen: i,
|
|
358
|
+
curveCatmullRom: oe,
|
|
359
|
+
curveLinear: se,
|
|
360
|
+
curveLinearClosed: ie,
|
|
361
|
+
curveMonotoneX: r,
|
|
362
|
+
curveMonotoneY: te,
|
|
363
|
+
curveNatural: l,
|
|
364
|
+
curveStep: re,
|
|
365
|
+
curveStepAfter: ae,
|
|
366
|
+
curveStepBefore: ee
|
|
367
|
+
}, Ie = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Le = /* @__PURE__ */ f(function(e, t) {
|
|
368
|
+
let n = Re(e, /(?:init\b)|(?:initialize\b)/), r = {};
|
|
369
|
+
if (Array.isArray(n)) {
|
|
370
|
+
let e = n.map((e) => e.args);
|
|
371
|
+
ce(e), r = ue(r, [...e]);
|
|
372
|
+
} else r = n.args;
|
|
373
|
+
if (!r) return;
|
|
374
|
+
let i = le(e, t), a = "config";
|
|
375
|
+
return r[a] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), r[i] = r[a], delete r[a]), r;
|
|
376
|
+
}, "detectInit"), Re = /* @__PURE__ */ f(function(t, n = null) {
|
|
377
|
+
try {
|
|
378
|
+
let r = RegExp(`[%]{2}(?![{]${Ie.source})(?=[}][%]{2}).*
|
|
379
|
+
`, "ig");
|
|
380
|
+
t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
|
|
381
|
+
let i, a = [];
|
|
382
|
+
for (; (i = p.exec(t)) !== null;) if (i.index === p.lastIndex && p.lastIndex++, i && !n || n && i[1]?.match(n) || n && i[2]?.match(n)) {
|
|
383
|
+
let e = i[1] ? i[1] : i[2], t = i[3] ? i[3].trim() : i[4] ? JSON.parse(i[4].trim()) : null;
|
|
384
|
+
a.push({
|
|
385
|
+
type: e,
|
|
386
|
+
args: t
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
return a.length === 0 ? {
|
|
390
|
+
type: t,
|
|
391
|
+
args: null
|
|
392
|
+
} : a.length === 1 ? a[0] : a;
|
|
393
|
+
} catch (r) {
|
|
394
|
+
return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
|
|
395
|
+
type: void 0,
|
|
396
|
+
args: null
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
}, "detectDirective"), ze = /* @__PURE__ */ f(function(e) {
|
|
400
|
+
return e.replace(p, "");
|
|
401
|
+
}, "removeDirectives"), Be = /* @__PURE__ */ f(function(e, t) {
|
|
402
|
+
for (let [n, r] of t.entries()) if (r.match(e)) return n;
|
|
403
|
+
return -1;
|
|
404
|
+
}, "isSubstringInArray");
|
|
405
|
+
function W(e, t) {
|
|
406
|
+
return e ? Fe[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
|
|
407
|
+
}
|
|
408
|
+
f(W, "interpolateToCurve");
|
|
409
|
+
function Ve(e, t) {
|
|
410
|
+
let n = e.trim();
|
|
411
|
+
if (n) return t.securityLevel === "loose" ? n : (0, Pe.sanitizeUrl)(n);
|
|
412
|
+
}
|
|
413
|
+
f(Ve, "formatUrl");
|
|
414
|
+
var He = /* @__PURE__ */ f((t, ...n) => {
|
|
415
|
+
let r = t.split("."), i = r.length - 1, a = r[i], o = window;
|
|
416
|
+
for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
|
|
417
|
+
e.error(`Function name: ${t} not found in window`);
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
o[a](...n);
|
|
421
|
+
}, "runFunc");
|
|
422
|
+
function G(e, t) {
|
|
423
|
+
return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
|
|
424
|
+
}
|
|
425
|
+
f(G, "distance");
|
|
426
|
+
function Ue(e) {
|
|
427
|
+
let t, n = 0;
|
|
428
|
+
return e.forEach((e) => {
|
|
429
|
+
n += G(e, t), t = e;
|
|
430
|
+
}), K(e, n / 2);
|
|
431
|
+
}
|
|
432
|
+
f(Ue, "traverseEdge");
|
|
433
|
+
function We(e) {
|
|
434
|
+
return e.length === 1 ? e[0] : Ue(e);
|
|
435
|
+
}
|
|
436
|
+
f(We, "calcLabelPosition");
|
|
437
|
+
var Ge = /* @__PURE__ */ f((e, t = 2) => {
|
|
438
|
+
let n = 10 ** t;
|
|
439
|
+
return Math.round(e * n) / n;
|
|
440
|
+
}, "roundNumber"), K = /* @__PURE__ */ f((e, t) => {
|
|
441
|
+
let n, r = t;
|
|
442
|
+
for (let t of e) {
|
|
443
|
+
if (n) {
|
|
444
|
+
let e = G(t, n);
|
|
445
|
+
if (e === 0) return n;
|
|
446
|
+
if (e < r) r -= e;
|
|
447
|
+
else {
|
|
448
|
+
let i = r / e;
|
|
449
|
+
if (i <= 0) return n;
|
|
450
|
+
if (i >= 1) return {
|
|
451
|
+
x: t.x,
|
|
452
|
+
y: t.y
|
|
453
|
+
};
|
|
454
|
+
if (i > 0 && i < 1) return {
|
|
455
|
+
x: Ge((1 - i) * n.x + i * t.x, 5),
|
|
456
|
+
y: Ge((1 - i) * n.y + i * t.y, 5)
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
n = t;
|
|
461
|
+
}
|
|
462
|
+
throw Error("Could not find a suitable point for the given distance");
|
|
463
|
+
}, "calculatePoint"), Ke = /* @__PURE__ */ f((t, n, r) => {
|
|
464
|
+
e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
|
|
465
|
+
let i = K(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
|
|
466
|
+
x: 0,
|
|
467
|
+
y: 0
|
|
468
|
+
};
|
|
469
|
+
return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
|
|
470
|
+
}, "calcCardinalityPosition");
|
|
471
|
+
function qe(t, n, r) {
|
|
472
|
+
let i = structuredClone(r);
|
|
473
|
+
e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
|
|
474
|
+
let a = K(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
|
|
475
|
+
x: 0,
|
|
476
|
+
y: 0
|
|
477
|
+
};
|
|
478
|
+
return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
|
|
479
|
+
}
|
|
480
|
+
f(qe, "calcTerminalLabelPosition");
|
|
481
|
+
function q(e) {
|
|
482
|
+
let t = "", n = "";
|
|
483
|
+
for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
|
|
484
|
+
return {
|
|
485
|
+
style: t,
|
|
486
|
+
labelStyle: n
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
f(q, "getStylesFromArray");
|
|
490
|
+
var Je = 0, Ye = /* @__PURE__ */ f(() => (Je++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Je), "generateId");
|
|
491
|
+
function Xe(e) {
|
|
492
|
+
let t = "";
|
|
493
|
+
for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
|
|
494
|
+
return t;
|
|
495
|
+
}
|
|
496
|
+
f(Xe, "makeRandomHex");
|
|
497
|
+
var Ze = /* @__PURE__ */ f((e) => Xe(e.length), "random"), Qe = /* @__PURE__ */ f(function() {
|
|
498
|
+
return {
|
|
499
|
+
x: 0,
|
|
500
|
+
y: 0,
|
|
501
|
+
fill: void 0,
|
|
502
|
+
anchor: "start",
|
|
503
|
+
style: "#666",
|
|
504
|
+
width: 100,
|
|
505
|
+
height: 100,
|
|
506
|
+
textMargin: 0,
|
|
507
|
+
rx: 0,
|
|
508
|
+
ry: 0,
|
|
509
|
+
valign: void 0,
|
|
510
|
+
text: ""
|
|
511
|
+
};
|
|
512
|
+
}, "getTextObj"), $e = /* @__PURE__ */ f(function(e, t) {
|
|
513
|
+
let n = t.text.replace(m.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
|
|
514
|
+
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);
|
|
515
|
+
let a = i.append("tspan");
|
|
516
|
+
return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
|
|
517
|
+
}, "drawSimpleText"), et = H((e, t, n) => {
|
|
518
|
+
if (!e || (n = Object.assign({
|
|
519
|
+
fontSize: 12,
|
|
520
|
+
fontWeight: 400,
|
|
521
|
+
fontFamily: "Arial",
|
|
522
|
+
joinWith: "<br/>"
|
|
523
|
+
}, n), m.hasBreaks(e))) return e;
|
|
524
|
+
let r = e.split(" ").filter(Boolean), i = [], a = "";
|
|
525
|
+
return r.forEach((e, o) => {
|
|
526
|
+
let s = Y(`${e} `, n), c = Y(a, n);
|
|
527
|
+
if (s > t) {
|
|
528
|
+
let { hyphenatedStrings: r, remainingWord: o } = tt(e, t, "-", n);
|
|
529
|
+
i.push(a, ...r), a = o;
|
|
530
|
+
} else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
|
|
531
|
+
o + 1 === r.length && i.push(a);
|
|
532
|
+
}), i.filter((e) => e !== "").join(n.joinWith);
|
|
533
|
+
}, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), tt = H((e, t, n = "-", r) => {
|
|
534
|
+
r = Object.assign({
|
|
535
|
+
fontSize: 12,
|
|
536
|
+
fontWeight: 400,
|
|
537
|
+
fontFamily: "Arial",
|
|
538
|
+
margin: 0
|
|
539
|
+
}, r);
|
|
540
|
+
let i = [...e], a = [], o = "";
|
|
541
|
+
return i.forEach((e, s) => {
|
|
542
|
+
let c = `${o}${e}`;
|
|
543
|
+
if (Y(c, r) >= t) {
|
|
544
|
+
let e = s + 1, t = i.length === e, r = `${c}${n}`;
|
|
545
|
+
a.push(t ? c : r), o = "";
|
|
546
|
+
} else o = c;
|
|
547
|
+
}), {
|
|
548
|
+
hyphenatedStrings: a,
|
|
549
|
+
remainingWord: o
|
|
550
|
+
};
|
|
551
|
+
}, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
|
|
552
|
+
function J(e, t) {
|
|
553
|
+
return X(e, t).height;
|
|
554
|
+
}
|
|
555
|
+
f(J, "calculateTextHeight");
|
|
556
|
+
function Y(e, t) {
|
|
557
|
+
return X(e, t).width;
|
|
558
|
+
}
|
|
559
|
+
f(Y, "calculateTextWidth");
|
|
560
|
+
var X = H((e, n) => {
|
|
561
|
+
let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = n;
|
|
562
|
+
if (!e) return {
|
|
563
|
+
width: 0,
|
|
564
|
+
height: 0
|
|
565
|
+
};
|
|
566
|
+
let [, o] = Q(r), s = ["sans-serif", i], c = e.split(m.lineBreakRegex), l = [], u = t("body");
|
|
567
|
+
if (!u.remove) return {
|
|
568
|
+
width: 0,
|
|
569
|
+
height: 0,
|
|
570
|
+
lineHeight: 0
|
|
571
|
+
};
|
|
572
|
+
let d = u.append("svg");
|
|
573
|
+
for (let e of s) {
|
|
574
|
+
let t = 0, n = {
|
|
575
|
+
width: 0,
|
|
576
|
+
height: 0,
|
|
577
|
+
lineHeight: 0
|
|
578
|
+
};
|
|
579
|
+
for (let r of c) {
|
|
580
|
+
let i = Qe();
|
|
581
|
+
i.text = r || "";
|
|
582
|
+
let s = $e(d, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
|
|
583
|
+
if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
|
|
584
|
+
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));
|
|
585
|
+
}
|
|
586
|
+
l.push(n);
|
|
587
|
+
}
|
|
588
|
+
return d.remove(), l[isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1];
|
|
589
|
+
}, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), nt = class {
|
|
590
|
+
constructor(e = !1, t) {
|
|
591
|
+
this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
|
|
592
|
+
}
|
|
593
|
+
static {
|
|
594
|
+
f(this, "InitIDGenerator");
|
|
595
|
+
}
|
|
596
|
+
}, Z, rt = /* @__PURE__ */ f(function(e) {
|
|
597
|
+
return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
|
|
598
|
+
}, "entityDecode");
|
|
599
|
+
function it(e) {
|
|
600
|
+
return "str" in e;
|
|
601
|
+
}
|
|
602
|
+
f(it, "isDetailedError");
|
|
603
|
+
var at = /* @__PURE__ */ f((e, t, n, r) => {
|
|
604
|
+
if (!r) return;
|
|
605
|
+
let i = e.node()?.getBBox();
|
|
606
|
+
i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
|
|
607
|
+
}, "insertTitle"), Q = /* @__PURE__ */ f((e) => {
|
|
608
|
+
if (typeof e == "number") return [e, e + "px"];
|
|
609
|
+
let t = parseInt(e ?? "", 10);
|
|
610
|
+
return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
|
|
611
|
+
}, "parseFontSize");
|
|
612
|
+
function $(e, t) {
|
|
613
|
+
return Ne({}, e, t);
|
|
614
|
+
}
|
|
615
|
+
f($, "cleanAndMerge");
|
|
616
|
+
var ot = {
|
|
617
|
+
assignWithDepth: ue,
|
|
618
|
+
wrapLabel: et,
|
|
619
|
+
calculateTextHeight: J,
|
|
620
|
+
calculateTextWidth: Y,
|
|
621
|
+
calculateTextDimensions: X,
|
|
622
|
+
cleanAndMerge: $,
|
|
623
|
+
detectInit: Le,
|
|
624
|
+
detectDirective: Re,
|
|
625
|
+
isSubstringInArray: Be,
|
|
626
|
+
interpolateToCurve: W,
|
|
627
|
+
calcLabelPosition: We,
|
|
628
|
+
calcCardinalityPosition: Ke,
|
|
629
|
+
calcTerminalLabelPosition: qe,
|
|
630
|
+
formatUrl: Ve,
|
|
631
|
+
getStylesFromArray: q,
|
|
632
|
+
generateId: Ye,
|
|
633
|
+
random: Ze,
|
|
634
|
+
runFunc: He,
|
|
635
|
+
entityDecode: rt,
|
|
636
|
+
insertTitle: at,
|
|
637
|
+
isLabelCoordinateInPath: dt,
|
|
638
|
+
parseFontSize: Q,
|
|
639
|
+
InitIDGenerator: nt
|
|
640
|
+
}, st = /* @__PURE__ */ f(function(e) {
|
|
641
|
+
let t = e;
|
|
642
|
+
return t = t.replace(/style.*:\S*#.*;/g, function(e) {
|
|
643
|
+
return e.substring(0, e.length - 1);
|
|
644
|
+
}), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
|
|
645
|
+
return e.substring(0, e.length - 1);
|
|
646
|
+
}), t = t.replace(/#\w+;/g, function(e) {
|
|
647
|
+
let t = e.substring(1, e.length - 1);
|
|
648
|
+
return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
|
|
649
|
+
}), t;
|
|
650
|
+
}, "encodeEntities"), ct = /* @__PURE__ */ f(function(e) {
|
|
651
|
+
return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
652
|
+
}, "decodeEntities"), lt = /* @__PURE__ */ f((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
|
|
653
|
+
function ut(e) {
|
|
654
|
+
return e ?? null;
|
|
655
|
+
}
|
|
656
|
+
f(ut, "handleUndefinedAttr");
|
|
657
|
+
function dt(e, t) {
|
|
658
|
+
let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
|
|
659
|
+
return i.includes(n.toString()) || i.includes(r.toString());
|
|
660
|
+
}
|
|
661
|
+
f(dt, "isLabelCoordinateInPath");
|
|
662
|
+
//#endregion
|
|
663
|
+
export { A, me as B, w as C, xe as D, C as E, S as F, y as G, T as H, be as I, g as K, b as L, O as M, E as N, he as O, ge as P, _e as R, M as S, ve as T, Se as U, we as V, Ce as W, et as _, ct as a, P as b, lt as c, W as d, it as f, ot as g, ze as h, $ as i, D as j, k, q as l, Ze as m, J as n, st as o, Q as p, _ as q, Y as r, Ye as s, X as t, ut as u, V as v, ye as w, N as x, z as y, x as z };
|