novelaid-markdown 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +15 -0
  2. package/dist/_baseFor-Btt7qhvA.js +394 -0
  3. package/dist/arc-B1ElyJRe.js +80 -0
  4. package/dist/architecture-YZFGNWBL-DbwpLiaF.js +3 -0
  5. package/dist/architectureDiagram-Q4EWVU46-DPdA1a51.js +4057 -0
  6. package/dist/array-D9V22jUe.js +6 -0
  7. package/dist/blockDiagram-DXYQGD6D-Bf0IzYoN.js +3035 -0
  8. package/dist/c4Diagram-AHTNJAMY-BlTBDzAq.js +2961 -0
  9. package/dist/channel-CoqXOEHz.js +5 -0
  10. package/dist/chunk-2KRD3SAO-r21hNzXt.js +23 -0
  11. package/dist/chunk-336JU56O-DcVNMTsS.js +49 -0
  12. package/dist/chunk-426QAEUC-B4JQ_vPF.js +9 -0
  13. package/dist/chunk-4BX2VUAB-JBqrV_IE.js +8 -0
  14. package/dist/chunk-4TB4RGXK-DHS8LN6H.js +3255 -0
  15. package/dist/chunk-55IACEB6-C9COrGK_.js +8 -0
  16. package/dist/chunk-5FUZZQ4R-CdCLluck.js +3638 -0
  17. package/dist/chunk-5PVQY5BW-Dgwc0dUk.js +1299 -0
  18. package/dist/chunk-67CJDMHE-UQ-a7p3g.js +23 -0
  19. package/dist/chunk-7N4EOEYR-CPiwpV-A.js +35 -0
  20. package/dist/chunk-AA7GKIK3-DR_Iqho4.js +30 -0
  21. package/dist/chunk-BSJP7CBP-BrxQKL1l.js +82 -0
  22. package/dist/chunk-CIAEETIT-tbco3aB3.js +23 -0
  23. package/dist/chunk-EDXVE4YY-BHsZxHlc.js +25 -0
  24. package/dist/chunk-ENJZ2VHE-Dm2kuGCh.js +560 -0
  25. package/dist/chunk-FMBD7UC4-DwV8Wmed.js +5 -0
  26. package/dist/chunk-FOC6F5B3-CQtHQje_.js +23 -0
  27. package/dist/chunk-ICPOFSXX-B9lsZaK9.js +3363 -0
  28. package/dist/chunk-K5T4RW27-DI9nuGzI.js +16082 -0
  29. package/dist/chunk-KGLVRYIC-BMNH9LI-.js +23 -0
  30. package/dist/chunk-LIHQZDEY-Dc-yVZ_W.js +64 -0
  31. package/dist/chunk-ORNJ4GCN-DqZLt4_8.js +31 -0
  32. package/dist/chunk-OYMX7WX6-B8KpS9qK.js +2014 -0
  33. package/dist/chunk-QZHKN3VN-C4dmvHME.js +15 -0
  34. package/dist/chunk-U2HBQHQK-BME65g2a.js +1896 -0
  35. package/dist/chunk-X2U36JSP-CesuQ-Sm.js +67 -0
  36. package/dist/chunk-XPW4576I-Wv7jaLUC.js +1146 -0
  37. package/dist/chunk-YZCP3GAM-CJIt1xzm.js +60 -0
  38. package/dist/chunk-ZZ45TVLE-CMBGSmdv.js +32 -0
  39. package/dist/chunk-ha4E1CQs.js +20 -0
  40. package/dist/classDiagram-6PBFFD2Q-kvmQgIxu.js +29 -0
  41. package/dist/classDiagram-v2-HSJHXN6E-DLlYyLVf.js +29 -0
  42. package/dist/clone-B5XHQkPs.js +8 -0
  43. package/dist/cose-bilkent-S5V4N54A-xGhciOop.js +2250 -0
  44. package/dist/cytoscape.esm-BgCYa94Q.js +18103 -0
  45. package/dist/dagre-KV5264BT-DNe8h1eH.js +293 -0
  46. package/dist/dagre-SfibWTbo.js +1606 -0
  47. package/dist/defaultLocale-9iKoEQQi.js +201 -0
  48. package/dist/diagram-5BDNPKRD-D_R6IIhE.js +101 -0
  49. package/dist/diagram-G4DWMVQ6-CGlOggN-.js +524 -0
  50. package/dist/diagram-MMDJMWI5-GlxWkSbK.js +213 -0
  51. package/dist/diagram-TYMM5635-Empbfz-2.js +133 -0
  52. package/dist/dist-Dz2K8jVv.js +59 -0
  53. package/dist/erDiagram-SMLLAGMA-DSnlNLPr.js +1700 -0
  54. package/dist/{esm-Psdhd_27.js → esm-Binvve4F.js} +285 -303
  55. package/dist/flatten-BeeUCBYF.js +40 -0
  56. package/dist/flowDiagram-DWJPFMVM-YAh0NsG9.js +4145 -0
  57. package/dist/ganttDiagram-T4ZO3ILL-DkmkZTO5.js +3077 -0
  58. package/dist/gitGraph-7Q5UKJZL-DamMrPFa.js +3 -0
  59. package/dist/gitGraphDiagram-UUTBAWPF-IjLQtHgn.js +728 -0
  60. package/dist/graphlib-DSQqP-5Y.js +373 -0
  61. package/dist/index.css +2 -0
  62. package/dist/index.js +115 -38
  63. package/dist/index.umd.cjs +3218 -23
  64. package/dist/info-OMHHGYJF-BovemagY.js +3 -0
  65. package/dist/infoDiagram-42DDH7IO-izJQDQJs.js +19 -0
  66. package/dist/init-DkX7cl9c.js +15 -0
  67. package/dist/isEmpty-kLGD071T.js +35 -0
  68. package/dist/ishikawaDiagram-UXIWVN3A-SJb5qsLR.js +718 -0
  69. package/dist/journeyDiagram-VCZTEJTY-BDa8bFXG.js +883 -0
  70. package/dist/kanban-definition-6JOO6SKY-i73I3KFw.js +973 -0
  71. package/dist/katex-DI2iMRYj.js +22000 -0
  72. package/dist/line-BD0OIRsH.js +34 -0
  73. package/dist/linear-DV1pG6aV.js +289 -0
  74. package/dist/mermaid-parser.core-CZznKIov.js +69 -0
  75. package/dist/mermaid.core-a1TLqUAY.js +951 -0
  76. package/dist/mindmap-definition-QFDTVHPH-DPG-HkqU.js +1009 -0
  77. package/dist/ordinal-Zd5qpGcV.js +65 -0
  78. package/dist/packet-4T2RLAQJ-BEP9UcAl.js +3 -0
  79. package/dist/path-BSwIfggT.js +85 -0
  80. package/dist/pie-ZZUOXDRM-AZqQmg1p.js +3 -0
  81. package/dist/pieDiagram-DEJITSTG-Cj1YBlb1.js +165 -0
  82. package/dist/quadrantDiagram-34T5L4WZ-ypBI9wre.js +1974 -0
  83. package/dist/radar-PYXPWWZC-BpKM_Ghb.js +3 -0
  84. package/dist/{react-markdown-BXmDW998.js → react-markdown-CwHVAeQi.js} +82 -81
  85. package/dist/reduce-DQgHi9nw.js +532 -0
  86. package/dist/{rehype-raw-_yRr8ewB.js → rehype-raw-CbJS4QeP.js} +346 -346
  87. package/dist/{remark-gfm-Cfc5YeEq.js → remark-gfm-D_QtAzOA.js} +2 -2
  88. package/dist/requirementDiagram-MS252O5E-CkuWjAxJ.js +2221 -0
  89. package/dist/rough.esm-Dun2l6dn.js +1352 -0
  90. package/dist/sankeyDiagram-XADWPNL6-BzIHfJyL.js +920 -0
  91. package/dist/sequenceDiagram-FGHM5R23-NC0cKvy5.js +4157 -0
  92. package/dist/src-D7IEzgYM.js +2149 -0
  93. package/dist/stateDiagram-FHFEXIEX-vd0cNpSx.js +217 -0
  94. package/dist/stateDiagram-v2-QKLJ7IA2-BXsBMk9U.js +27 -0
  95. package/dist/timeline-definition-GMOUNBTQ-DeOvCyAs.js +1068 -0
  96. package/dist/treeView-SZITEDCU-D-ftaYOL.js +3 -0
  97. package/dist/treemap-W4RFUUIX-B2bp9KIg.js +3 -0
  98. package/dist/vennDiagram-DHZGUBPP-Hraq3pvR.js +1858 -0
  99. package/dist/wardley-RL74JXVD-BdjKuxh8.js +3 -0
  100. package/dist/wardleyDiagram-NUSXRM2D-C06eRanG.js +578 -0
  101. package/dist/xychartDiagram-5P7HB3ND-BiD79JlS.js +2044 -0
  102. package/package.json +2 -1
  103. /package/dist/{blank-line-ClJSvRAu.js → blank-line-DxLGQ569.js} +0 -0
  104. /package/dist/{lib-DWIu06lZ.js → lib-z8X9LcoZ.js} +0 -0
@@ -0,0 +1,3363 @@
1
+ import { _ as e, g as t, h as n, m as r } from "./src-D7IEzgYM.js";
2
+ //#region node_modules/khroma/dist/utils/channel.js
3
+ var i = {
4
+ min: {
5
+ r: 0,
6
+ g: 0,
7
+ b: 0,
8
+ s: 0,
9
+ l: 0,
10
+ a: 0
11
+ },
12
+ max: {
13
+ r: 255,
14
+ g: 255,
15
+ b: 255,
16
+ h: 360,
17
+ s: 100,
18
+ l: 100,
19
+ a: 1
20
+ },
21
+ clamp: {
22
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
23
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ h: (e) => e % 360,
26
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
27
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
29
+ },
30
+ toLinear: (e) => {
31
+ let t = e / 255;
32
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
33
+ },
34
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
35
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
36
+ if (!t) return n * 2.55;
37
+ e /= 360, t /= 100, n /= 100;
38
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
39
+ switch (r) {
40
+ case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
41
+ case "g": return i.hue2rgb(o, a, e) * 255;
42
+ case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
43
+ }
44
+ },
45
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
46
+ e /= 255, t /= 255, n /= 255;
47
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
48
+ if (r === "l") return o * 100;
49
+ if (i === a) return 0;
50
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
51
+ if (r === "s") return c * 100;
52
+ switch (i) {
53
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
54
+ case t: return ((n - e) / s + 2) * 60;
55
+ case n: return ((e - t) / s + 4) * 60;
56
+ default: return -1;
57
+ }
58
+ }
59
+ }, a = {
60
+ channel: i,
61
+ lang: {
62
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
63
+ round: (e) => Math.round(e * 1e10) / 1e10
64
+ },
65
+ unit: { dec2hex: (e) => {
66
+ let t = Math.round(e).toString(16);
67
+ return t.length > 1 ? t : `0${t}`;
68
+ } }
69
+ }, o = {};
70
+ for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
71
+ var s = {
72
+ ALL: 0,
73
+ RGB: 1,
74
+ HSL: 2
75
+ }, c = class {
76
+ constructor() {
77
+ this.type = s.ALL;
78
+ }
79
+ get() {
80
+ return this.type;
81
+ }
82
+ set(e) {
83
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
84
+ this.type = e;
85
+ }
86
+ reset() {
87
+ this.type = s.ALL;
88
+ }
89
+ is(e) {
90
+ return this.type === e;
91
+ }
92
+ }, l = new class {
93
+ constructor(e, t) {
94
+ this.color = t, this.changed = !1, this.data = e, this.type = new c();
95
+ }
96
+ set(e, t) {
97
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
98
+ }
99
+ _ensureHSL() {
100
+ let e = this.data, { h: t, s: n, l: r } = e;
101
+ t === void 0 && (e.h = a.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = a.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = a.channel.rgb2hsl(e, "l"));
102
+ }
103
+ _ensureRGB() {
104
+ let e = this.data, { r: t, g: n, b: r } = e;
105
+ t === void 0 && (e.r = a.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = a.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = a.channel.hsl2rgb(e, "b"));
106
+ }
107
+ get r() {
108
+ let e = this.data, t = e.r;
109
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
110
+ }
111
+ get g() {
112
+ let e = this.data, t = e.g;
113
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
114
+ }
115
+ get b() {
116
+ let e = this.data, t = e.b;
117
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
118
+ }
119
+ get h() {
120
+ let e = this.data, t = e.h;
121
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
122
+ }
123
+ get s() {
124
+ let e = this.data, t = e.s;
125
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
126
+ }
127
+ get l() {
128
+ let e = this.data, t = e.l;
129
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
130
+ }
131
+ get a() {
132
+ return this.data.a;
133
+ }
134
+ set r(e) {
135
+ this.type.set(s.RGB), this.changed = !0, this.data.r = e;
136
+ }
137
+ set g(e) {
138
+ this.type.set(s.RGB), this.changed = !0, this.data.g = e;
139
+ }
140
+ set b(e) {
141
+ this.type.set(s.RGB), this.changed = !0, this.data.b = e;
142
+ }
143
+ set h(e) {
144
+ this.type.set(s.HSL), this.changed = !0, this.data.h = e;
145
+ }
146
+ set s(e) {
147
+ this.type.set(s.HSL), this.changed = !0, this.data.s = e;
148
+ }
149
+ set l(e) {
150
+ this.type.set(s.HSL), this.changed = !0, this.data.l = e;
151
+ }
152
+ set a(e) {
153
+ this.changed = !0, this.data.a = e;
154
+ }
155
+ }({
156
+ r: 0,
157
+ g: 0,
158
+ b: 0,
159
+ a: 0
160
+ }, "transparent"), u = {
161
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
162
+ parse: (e) => {
163
+ if (e.charCodeAt(0) !== 35) return;
164
+ let t = e.match(u.re);
165
+ if (!t) return;
166
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
167
+ return l.set({
168
+ r: (r >> c * (d + 3) & f) * s,
169
+ g: (r >> c * (d + 2) & f) * s,
170
+ b: (r >> c * (d + 1) & f) * s,
171
+ a: a ? (r & f) * s / 255 : 1
172
+ }, e);
173
+ },
174
+ stringify: (e) => {
175
+ let { r: t, g: n, b: r, a: i } = e;
176
+ return i < 1 ? `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i * 255)]}` : `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`;
177
+ }
178
+ }, d = {
179
+ re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
180
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
181
+ _hue2deg: (e) => {
182
+ let t = e.match(d.hueRe);
183
+ if (t) {
184
+ let [, e, n] = t;
185
+ switch (n) {
186
+ case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
187
+ case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
188
+ case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
189
+ }
190
+ }
191
+ return a.channel.clamp.h(parseFloat(e));
192
+ },
193
+ parse: (e) => {
194
+ let t = e.charCodeAt(0);
195
+ if (t !== 104 && t !== 72) return;
196
+ let n = e.match(d.re);
197
+ if (!n) return;
198
+ let [, r, i, o, s, c] = n;
199
+ return l.set({
200
+ h: d._hue2deg(r),
201
+ s: a.channel.clamp.s(parseFloat(i)),
202
+ l: a.channel.clamp.l(parseFloat(o)),
203
+ a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
204
+ }, e);
205
+ },
206
+ stringify: (e) => {
207
+ let { h: t, s: n, l: r, a: i } = e;
208
+ return i < 1 ? `hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})` : `hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`;
209
+ }
210
+ }, f = {
211
+ colors: {
212
+ aliceblue: "#f0f8ff",
213
+ antiquewhite: "#faebd7",
214
+ aqua: "#00ffff",
215
+ aquamarine: "#7fffd4",
216
+ azure: "#f0ffff",
217
+ beige: "#f5f5dc",
218
+ bisque: "#ffe4c4",
219
+ black: "#000000",
220
+ blanchedalmond: "#ffebcd",
221
+ blue: "#0000ff",
222
+ blueviolet: "#8a2be2",
223
+ brown: "#a52a2a",
224
+ burlywood: "#deb887",
225
+ cadetblue: "#5f9ea0",
226
+ chartreuse: "#7fff00",
227
+ chocolate: "#d2691e",
228
+ coral: "#ff7f50",
229
+ cornflowerblue: "#6495ed",
230
+ cornsilk: "#fff8dc",
231
+ crimson: "#dc143c",
232
+ cyanaqua: "#00ffff",
233
+ darkblue: "#00008b",
234
+ darkcyan: "#008b8b",
235
+ darkgoldenrod: "#b8860b",
236
+ darkgray: "#a9a9a9",
237
+ darkgreen: "#006400",
238
+ darkgrey: "#a9a9a9",
239
+ darkkhaki: "#bdb76b",
240
+ darkmagenta: "#8b008b",
241
+ darkolivegreen: "#556b2f",
242
+ darkorange: "#ff8c00",
243
+ darkorchid: "#9932cc",
244
+ darkred: "#8b0000",
245
+ darksalmon: "#e9967a",
246
+ darkseagreen: "#8fbc8f",
247
+ darkslateblue: "#483d8b",
248
+ darkslategray: "#2f4f4f",
249
+ darkslategrey: "#2f4f4f",
250
+ darkturquoise: "#00ced1",
251
+ darkviolet: "#9400d3",
252
+ deeppink: "#ff1493",
253
+ deepskyblue: "#00bfff",
254
+ dimgray: "#696969",
255
+ dimgrey: "#696969",
256
+ dodgerblue: "#1e90ff",
257
+ firebrick: "#b22222",
258
+ floralwhite: "#fffaf0",
259
+ forestgreen: "#228b22",
260
+ fuchsia: "#ff00ff",
261
+ gainsboro: "#dcdcdc",
262
+ ghostwhite: "#f8f8ff",
263
+ gold: "#ffd700",
264
+ goldenrod: "#daa520",
265
+ gray: "#808080",
266
+ green: "#008000",
267
+ greenyellow: "#adff2f",
268
+ grey: "#808080",
269
+ honeydew: "#f0fff0",
270
+ hotpink: "#ff69b4",
271
+ indianred: "#cd5c5c",
272
+ indigo: "#4b0082",
273
+ ivory: "#fffff0",
274
+ khaki: "#f0e68c",
275
+ lavender: "#e6e6fa",
276
+ lavenderblush: "#fff0f5",
277
+ lawngreen: "#7cfc00",
278
+ lemonchiffon: "#fffacd",
279
+ lightblue: "#add8e6",
280
+ lightcoral: "#f08080",
281
+ lightcyan: "#e0ffff",
282
+ lightgoldenrodyellow: "#fafad2",
283
+ lightgray: "#d3d3d3",
284
+ lightgreen: "#90ee90",
285
+ lightgrey: "#d3d3d3",
286
+ lightpink: "#ffb6c1",
287
+ lightsalmon: "#ffa07a",
288
+ lightseagreen: "#20b2aa",
289
+ lightskyblue: "#87cefa",
290
+ lightslategray: "#778899",
291
+ lightslategrey: "#778899",
292
+ lightsteelblue: "#b0c4de",
293
+ lightyellow: "#ffffe0",
294
+ lime: "#00ff00",
295
+ limegreen: "#32cd32",
296
+ linen: "#faf0e6",
297
+ magenta: "#ff00ff",
298
+ maroon: "#800000",
299
+ mediumaquamarine: "#66cdaa",
300
+ mediumblue: "#0000cd",
301
+ mediumorchid: "#ba55d3",
302
+ mediumpurple: "#9370db",
303
+ mediumseagreen: "#3cb371",
304
+ mediumslateblue: "#7b68ee",
305
+ mediumspringgreen: "#00fa9a",
306
+ mediumturquoise: "#48d1cc",
307
+ mediumvioletred: "#c71585",
308
+ midnightblue: "#191970",
309
+ mintcream: "#f5fffa",
310
+ mistyrose: "#ffe4e1",
311
+ moccasin: "#ffe4b5",
312
+ navajowhite: "#ffdead",
313
+ navy: "#000080",
314
+ oldlace: "#fdf5e6",
315
+ olive: "#808000",
316
+ olivedrab: "#6b8e23",
317
+ orange: "#ffa500",
318
+ orangered: "#ff4500",
319
+ orchid: "#da70d6",
320
+ palegoldenrod: "#eee8aa",
321
+ palegreen: "#98fb98",
322
+ paleturquoise: "#afeeee",
323
+ palevioletred: "#db7093",
324
+ papayawhip: "#ffefd5",
325
+ peachpuff: "#ffdab9",
326
+ peru: "#cd853f",
327
+ pink: "#ffc0cb",
328
+ plum: "#dda0dd",
329
+ powderblue: "#b0e0e6",
330
+ purple: "#800080",
331
+ rebeccapurple: "#663399",
332
+ red: "#ff0000",
333
+ rosybrown: "#bc8f8f",
334
+ royalblue: "#4169e1",
335
+ saddlebrown: "#8b4513",
336
+ salmon: "#fa8072",
337
+ sandybrown: "#f4a460",
338
+ seagreen: "#2e8b57",
339
+ seashell: "#fff5ee",
340
+ sienna: "#a0522d",
341
+ silver: "#c0c0c0",
342
+ skyblue: "#87ceeb",
343
+ slateblue: "#6a5acd",
344
+ slategray: "#708090",
345
+ slategrey: "#708090",
346
+ snow: "#fffafa",
347
+ springgreen: "#00ff7f",
348
+ tan: "#d2b48c",
349
+ teal: "#008080",
350
+ thistle: "#d8bfd8",
351
+ transparent: "#00000000",
352
+ turquoise: "#40e0d0",
353
+ violet: "#ee82ee",
354
+ wheat: "#f5deb3",
355
+ white: "#ffffff",
356
+ whitesmoke: "#f5f5f5",
357
+ yellow: "#ffff00",
358
+ yellowgreen: "#9acd32"
359
+ },
360
+ parse: (e) => {
361
+ e = e.toLowerCase();
362
+ let t = f.colors[e];
363
+ if (t) return u.parse(t);
364
+ },
365
+ stringify: (e) => {
366
+ let t = u.stringify(e);
367
+ for (let e in f.colors) if (f.colors[e] === t) return e;
368
+ }
369
+ }, p = {
370
+ re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
371
+ parse: (e) => {
372
+ let t = e.charCodeAt(0);
373
+ if (t !== 114 && t !== 82) return;
374
+ let n = e.match(p.re);
375
+ if (!n) return;
376
+ let [, r, i, o, s, c, u, d, f] = n;
377
+ return l.set({
378
+ r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
379
+ g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
380
+ b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
381
+ a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
382
+ }, e);
383
+ },
384
+ stringify: (e) => {
385
+ let { r: t, g: n, b: r, a: i } = e;
386
+ return i < 1 ? `rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})` : `rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`;
387
+ }
388
+ }, m = {
389
+ format: {
390
+ keyword: f,
391
+ hex: u,
392
+ rgb: p,
393
+ rgba: p,
394
+ hsl: d,
395
+ hsla: d
396
+ },
397
+ parse: (e) => {
398
+ if (typeof e != "string") return e;
399
+ let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
400
+ if (t) return t;
401
+ throw Error(`Unsupported color format: "${e}"`);
402
+ },
403
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(s.HSL) || e.data.r === void 0 ? d.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? p.stringify(e) : u.stringify(e)
404
+ }, h = (e, t) => {
405
+ let n = m.parse(e);
406
+ for (let e in t) n[e] = a.channel.clamp[e](t[e]);
407
+ return m.stringify(n);
408
+ }, g = (e, t, n = 0, r = 1) => {
409
+ if (typeof e != "number") return h(e, { a: t });
410
+ let i = l.set({
411
+ r: a.channel.clamp.r(e),
412
+ g: a.channel.clamp.g(t),
413
+ b: a.channel.clamp.b(n),
414
+ a: a.channel.clamp.a(r)
415
+ });
416
+ return m.stringify(i);
417
+ }, ee = (e) => {
418
+ let { r: t, g: n, b: r } = m.parse(e), i = .2126 * a.channel.toLinear(t) + .7152 * a.channel.toLinear(n) + .0722 * a.channel.toLinear(r);
419
+ return a.lang.round(i);
420
+ }, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
421
+ let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
422
+ return i !== o && (r[t] = o), m.stringify(r);
423
+ }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
424
+ let n = m.parse(e), r = {};
425
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
426
+ return h(e, r);
427
+ }, ne = (e, t, n = 50) => {
428
+ let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, h = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, ee = 1 - h;
429
+ return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
430
+ }, S = (e, t = 100) => {
431
+ let n = m.parse(e);
432
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
433
+ }, { entries: re, setPrototypeOf: ie, isFrozen: C, getPrototypeOf: ae, getOwnPropertyDescriptor: oe } = Object, { freeze: w, seal: T, create: se } = Object, { apply: ce, construct: le } = typeof Reflect < "u" && Reflect;
434
+ w ||= function(e) {
435
+ return e;
436
+ }, T ||= function(e) {
437
+ return e;
438
+ }, ce ||= function(e, t) {
439
+ var n = [...arguments].slice(2);
440
+ return e.apply(t, n);
441
+ }, le ||= function(e) {
442
+ return new e(...[...arguments].slice(1));
443
+ };
444
+ var ue = A(Array.prototype.forEach), de = A(Array.prototype.lastIndexOf), fe = A(Array.prototype.pop), pe = A(Array.prototype.push), me = A(Array.prototype.splice), E = Array.isArray, he = A(String.prototype.toLowerCase), ge = A(String.prototype.toString), _e = A(String.prototype.match), ve = A(String.prototype.replace), ye = A(String.prototype.indexOf), be = A(String.prototype.trim), xe = A(Number.prototype.toString), Se = A(Boolean.prototype.toString), Ce = typeof BigInt > "u" ? null : A(BigInt.prototype.toString), we = typeof Symbol > "u" ? null : A(Symbol.prototype.toString), D = A(Object.prototype.hasOwnProperty), O = A(Object.prototype.toString), k = A(RegExp.prototype.test), Te = j(TypeError);
445
+ function A(e) {
446
+ return function(t) {
447
+ t instanceof RegExp && (t.lastIndex = 0);
448
+ var n = [...arguments].slice(1);
449
+ return ce(e, t, n);
450
+ };
451
+ }
452
+ function j(e) {
453
+ return function() {
454
+ return le(e, [...arguments]);
455
+ };
456
+ }
457
+ function M(e, t) {
458
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : he;
459
+ if (ie && ie(e, null), !E(t)) return e;
460
+ let r = t.length;
461
+ for (; r--;) {
462
+ let i = t[r];
463
+ if (typeof i == "string") {
464
+ let e = n(i);
465
+ e !== i && (C(t) || (t[r] = e), i = e);
466
+ }
467
+ e[i] = !0;
468
+ }
469
+ return e;
470
+ }
471
+ function Ee(e) {
472
+ for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
473
+ return e;
474
+ }
475
+ function N(e) {
476
+ let t = se(null);
477
+ for (let [n, r] of re(e)) D(e, n) && (E(r) ? t[n] = Ee(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = N(r) : t[n] = r);
478
+ return t;
479
+ }
480
+ function De(e) {
481
+ switch (typeof e) {
482
+ case "string": return e;
483
+ case "number": return xe(e);
484
+ case "boolean": return Se(e);
485
+ case "bigint": return Ce ? Ce(e) : "0";
486
+ case "symbol": return we ? we(e) : "Symbol()";
487
+ case "undefined": return O(e);
488
+ case "function":
489
+ case "object": {
490
+ if (e === null) return O(e);
491
+ let t = e, n = Oe(t, "toString");
492
+ if (typeof n == "function") {
493
+ let e = n(t);
494
+ return typeof e == "string" ? e : O(e);
495
+ }
496
+ return O(e);
497
+ }
498
+ default: return O(e);
499
+ }
500
+ }
501
+ function Oe(e, t) {
502
+ for (; e !== null;) {
503
+ let n = oe(e, t);
504
+ if (n) {
505
+ if (n.get) return A(n.get);
506
+ if (typeof n.value == "function") return A(n.value);
507
+ }
508
+ e = ae(e);
509
+ }
510
+ function n() {
511
+ return null;
512
+ }
513
+ return n;
514
+ }
515
+ function ke(e) {
516
+ try {
517
+ return k(e, ""), !0;
518
+ } catch {
519
+ return !1;
520
+ }
521
+ }
522
+ var Ae = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), je = w(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Me = w([
523
+ "feBlend",
524
+ "feColorMatrix",
525
+ "feComponentTransfer",
526
+ "feComposite",
527
+ "feConvolveMatrix",
528
+ "feDiffuseLighting",
529
+ "feDisplacementMap",
530
+ "feDistantLight",
531
+ "feDropShadow",
532
+ "feFlood",
533
+ "feFuncA",
534
+ "feFuncB",
535
+ "feFuncG",
536
+ "feFuncR",
537
+ "feGaussianBlur",
538
+ "feImage",
539
+ "feMerge",
540
+ "feMergeNode",
541
+ "feMorphology",
542
+ "feOffset",
543
+ "fePointLight",
544
+ "feSpecularLighting",
545
+ "feSpotLight",
546
+ "feTile",
547
+ "feTurbulence"
548
+ ]), Ne = w([
549
+ "animate",
550
+ "color-profile",
551
+ "cursor",
552
+ "discard",
553
+ "font-face",
554
+ "font-face-format",
555
+ "font-face-name",
556
+ "font-face-src",
557
+ "font-face-uri",
558
+ "foreignobject",
559
+ "hatch",
560
+ "hatchpath",
561
+ "mesh",
562
+ "meshgradient",
563
+ "meshpatch",
564
+ "meshrow",
565
+ "missing-glyph",
566
+ "script",
567
+ "set",
568
+ "solidcolor",
569
+ "unknown",
570
+ "use"
571
+ ]), Pe = w(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Fe = w([
572
+ "maction",
573
+ "maligngroup",
574
+ "malignmark",
575
+ "mlongdiv",
576
+ "mscarries",
577
+ "mscarry",
578
+ "msgroup",
579
+ "mstack",
580
+ "msline",
581
+ "msrow",
582
+ "semantics",
583
+ "annotation",
584
+ "annotation-xml",
585
+ "mprescripts",
586
+ "none"
587
+ ]), Ie = w(["#text"]), Le = w(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Re = w(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), ze = w(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Be = w([
588
+ "xlink:href",
589
+ "xml:id",
590
+ "xlink:title",
591
+ "xml:space",
592
+ "xmlns:xlink"
593
+ ]), P = T(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ve = T(/<%[\w\W]*|[\w\W]*%>/gm), He = T(/\$\{[\w\W]*/gm), F = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ue = T(/^aria-[\-\w]+$/), We = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ge = T(/^(?:\w+script|data):/i), Ke = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), qe = T(/^html$/i), Je = T(/^[a-z][.\w]*(-[.\w]+)+$/i), Ye = /* @__PURE__ */ Object.freeze({
594
+ __proto__: null,
595
+ ARIA_ATTR: Ue,
596
+ ATTR_WHITESPACE: Ke,
597
+ CUSTOM_ELEMENT: Je,
598
+ DATA_ATTR: F,
599
+ DOCTYPE_NAME: qe,
600
+ ERB_EXPR: Ve,
601
+ IS_ALLOWED_URI: We,
602
+ IS_SCRIPT_OR_DATA: Ge,
603
+ MUSTACHE_EXPR: P,
604
+ TMPLIT_EXPR: He
605
+ }), Xe = {
606
+ element: 1,
607
+ text: 3,
608
+ progressingInstruction: 7,
609
+ comment: 8,
610
+ document: 9
611
+ }, Ze = function() {
612
+ return typeof window > "u" ? null : window;
613
+ }, Qe = function(e, t) {
614
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
615
+ let n = null, r = "data-tt-policy-suffix";
616
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
617
+ let i = "dompurify" + (n ? "#" + n : "");
618
+ try {
619
+ return e.createPolicy(i, {
620
+ createHTML(e) {
621
+ return e;
622
+ },
623
+ createScriptURL(e) {
624
+ return e;
625
+ }
626
+ });
627
+ } catch {
628
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
629
+ }
630
+ }, $e = function() {
631
+ return {
632
+ afterSanitizeAttributes: [],
633
+ afterSanitizeElements: [],
634
+ afterSanitizeShadowDOM: [],
635
+ beforeSanitizeAttributes: [],
636
+ beforeSanitizeElements: [],
637
+ beforeSanitizeShadowDOM: [],
638
+ uponSanitizeAttribute: [],
639
+ uponSanitizeElement: [],
640
+ uponSanitizeShadowNode: []
641
+ };
642
+ };
643
+ function et() {
644
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze(), t = (e) => et(e);
645
+ if (t.version = "3.4.1", t.removed = [], !e || !e.document || e.document.nodeType !== Xe.document || !e.Element) return t.isSupported = !1, t;
646
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = Oe(m, "cloneNode"), g = Oe(m, "remove"), ee = Oe(m, "nextSibling"), te = Oe(m, "childNodes"), _ = Oe(m, "parentNode");
647
+ if (typeof o == "function") {
648
+ let e = n.createElement("template");
649
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
650
+ }
651
+ let v, y = "", { implementation: b, createNodeIterator: x, createDocumentFragment: ne, getElementsByTagName: S } = n, { importNode: ie } = r, C = $e();
652
+ t.isSupported = typeof re == "function" && typeof _ == "function" && b && b.createHTMLDocument !== void 0;
653
+ let { MUSTACHE_EXPR: ae, ERB_EXPR: oe, TMPLIT_EXPR: T, DATA_ATTR: ce, ARIA_ATTR: le, IS_SCRIPT_OR_DATA: xe, ATTR_WHITESPACE: Se, CUSTOM_ELEMENT: Ce } = Ye, { IS_ALLOWED_URI: we } = Ye, O = null, A = M({}, [
654
+ ...Ae,
655
+ ...je,
656
+ ...Me,
657
+ ...Pe,
658
+ ...Ie
659
+ ]), j = null, Ee = M({}, [
660
+ ...Le,
661
+ ...Re,
662
+ ...ze,
663
+ ...Be
664
+ ]), P = Object.seal(se(null, {
665
+ tagNameCheck: {
666
+ writable: !0,
667
+ configurable: !1,
668
+ enumerable: !0,
669
+ value: null
670
+ },
671
+ attributeNameCheck: {
672
+ writable: !0,
673
+ configurable: !1,
674
+ enumerable: !0,
675
+ value: null
676
+ },
677
+ allowCustomizedBuiltInElements: {
678
+ writable: !0,
679
+ configurable: !1,
680
+ enumerable: !0,
681
+ value: !1
682
+ }
683
+ })), Ve = null, He = null, F = Object.seal(se(null, {
684
+ tagCheck: {
685
+ writable: !0,
686
+ configurable: !1,
687
+ enumerable: !0,
688
+ value: null
689
+ },
690
+ attributeCheck: {
691
+ writable: !0,
692
+ configurable: !1,
693
+ enumerable: !0,
694
+ value: null
695
+ }
696
+ })), Ue = !0, Ge = !0, Ke = !1, Je = !0, I = !1, L = !0, R = !1, tt = !1, nt = !1, z = !1, rt = !1, it = !1, at = !0, ot = !1, st = "user-content-", B = !0, V = !1, H = {}, U = null, ct = M({}, [
697
+ "annotation-xml",
698
+ "audio",
699
+ "colgroup",
700
+ "desc",
701
+ "foreignobject",
702
+ "head",
703
+ "iframe",
704
+ "math",
705
+ "mi",
706
+ "mn",
707
+ "mo",
708
+ "ms",
709
+ "mtext",
710
+ "noembed",
711
+ "noframes",
712
+ "noscript",
713
+ "plaintext",
714
+ "script",
715
+ "style",
716
+ "svg",
717
+ "template",
718
+ "thead",
719
+ "title",
720
+ "video",
721
+ "xmp"
722
+ ]), lt = null, ut = M({}, [
723
+ "audio",
724
+ "video",
725
+ "img",
726
+ "source",
727
+ "image",
728
+ "track"
729
+ ]), dt = null, ft = M({}, [
730
+ "alt",
731
+ "class",
732
+ "for",
733
+ "id",
734
+ "label",
735
+ "name",
736
+ "pattern",
737
+ "placeholder",
738
+ "role",
739
+ "summary",
740
+ "title",
741
+ "value",
742
+ "style",
743
+ "xmlns"
744
+ ]), pt = "http://www.w3.org/1998/Math/MathML", mt = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, ht = !1, gt = null, _t = M({}, [
745
+ pt,
746
+ mt,
747
+ W
748
+ ], ge), vt = M({}, [
749
+ "mi",
750
+ "mo",
751
+ "mn",
752
+ "ms",
753
+ "mtext"
754
+ ]), yt = M({}, ["annotation-xml"]), bt = M({}, [
755
+ "title",
756
+ "style",
757
+ "font",
758
+ "a",
759
+ "script"
760
+ ]), xt = null, St = ["application/xhtml+xml", "text/html"], K = null, Ct = null, wt = n.createElement("form"), Tt = function(e) {
761
+ return e instanceof RegExp || e instanceof Function;
762
+ }, q = function() {
763
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
764
+ if (Ct && Ct === e) return;
765
+ (!e || typeof e != "object") && (e = {}), e = N(e), xt = St.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = xt === "application/xhtml+xml" ? ge : he, O = D(e, "ALLOWED_TAGS") && E(e.ALLOWED_TAGS) ? M({}, e.ALLOWED_TAGS, K) : A, j = D(e, "ALLOWED_ATTR") && E(e.ALLOWED_ATTR) ? M({}, e.ALLOWED_ATTR, K) : Ee, gt = D(e, "ALLOWED_NAMESPACES") && E(e.ALLOWED_NAMESPACES) ? M({}, e.ALLOWED_NAMESPACES, ge) : _t, dt = D(e, "ADD_URI_SAFE_ATTR") && E(e.ADD_URI_SAFE_ATTR) ? M(N(ft), e.ADD_URI_SAFE_ATTR, K) : ft, lt = D(e, "ADD_DATA_URI_TAGS") && E(e.ADD_DATA_URI_TAGS) ? M(N(ut), e.ADD_DATA_URI_TAGS, K) : ut, U = D(e, "FORBID_CONTENTS") && E(e.FORBID_CONTENTS) ? M({}, e.FORBID_CONTENTS, K) : ct, Ve = D(e, "FORBID_TAGS") && E(e.FORBID_TAGS) ? M({}, e.FORBID_TAGS, K) : N({}), He = D(e, "FORBID_ATTR") && E(e.FORBID_ATTR) ? M({}, e.FORBID_ATTR, K) : N({}), H = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? N(e.USE_PROFILES) : e.USE_PROFILES : !1, Ue = e.ALLOW_ARIA_ATTR !== !1, Ge = e.ALLOW_DATA_ATTR !== !1, Ke = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Je = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = e.SAFE_FOR_TEMPLATES || !1, L = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, rt = e.RETURN_DOM_FRAGMENT || !1, it = e.RETURN_TRUSTED_TYPE || !1, nt = e.FORCE_BODY || !1, at = e.SANITIZE_DOM !== !1, ot = e.SANITIZE_NAMED_PROPS || !1, B = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, we = ke(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : We, G = typeof e.NAMESPACE == "string" ? e.NAMESPACE : W, vt = D(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? N(e.MATHML_TEXT_INTEGRATION_POINTS) : M({}, [
766
+ "mi",
767
+ "mo",
768
+ "mn",
769
+ "ms",
770
+ "mtext"
771
+ ]), yt = D(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? N(e.HTML_INTEGRATION_POINTS) : M({}, ["annotation-xml"]);
772
+ let t = D(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? N(e.CUSTOM_ELEMENT_HANDLING) : se(null);
773
+ if (P = se(null), D(t, "tagNameCheck") && Tt(t.tagNameCheck) && (P.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && Tt(t.attributeNameCheck) && (P.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), I && (Ge = !1), rt && (z = !0), H && (O = M({}, Ie), j = se(null), H.html === !0 && (M(O, Ae), M(j, Le)), H.svg === !0 && (M(O, je), M(j, Re), M(j, Be)), H.svgFilters === !0 && (M(O, Me), M(j, Re), M(j, Be)), H.mathMl === !0 && (M(O, Pe), M(j, ze), M(j, Be))), F.tagCheck = null, F.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? F.tagCheck = e.ADD_TAGS : E(e.ADD_TAGS) && (O === A && (O = N(O)), M(O, e.ADD_TAGS, K))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? F.attributeCheck = e.ADD_ATTR : E(e.ADD_ATTR) && (j === Ee && (j = N(j)), M(j, e.ADD_ATTR, K))), D(e, "ADD_URI_SAFE_ATTR") && E(e.ADD_URI_SAFE_ATTR) && M(dt, e.ADD_URI_SAFE_ATTR, K), D(e, "FORBID_CONTENTS") && E(e.FORBID_CONTENTS) && (U === ct && (U = N(U)), M(U, e.FORBID_CONTENTS, K)), D(e, "ADD_FORBID_CONTENTS") && E(e.ADD_FORBID_CONTENTS) && (U === ct && (U = N(U)), M(U, e.ADD_FORBID_CONTENTS, K)), B && (O["#text"] = !0), R && M(O, [
774
+ "html",
775
+ "head",
776
+ "body"
777
+ ]), O.table && (M(O, ["tbody"]), delete Ve.tbody), e.TRUSTED_TYPES_POLICY) {
778
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Te("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
779
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Te("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
780
+ v = e.TRUSTED_TYPES_POLICY, y = v.createHTML("");
781
+ } else v === void 0 && (v = Qe(p, i)), v !== null && typeof y == "string" && (y = v.createHTML(""));
782
+ w && w(e), Ct = e;
783
+ }, J = M({}, [
784
+ ...je,
785
+ ...Me,
786
+ ...Ne
787
+ ]), Et = M({}, [...Pe, ...Fe]), Dt = function(e) {
788
+ let t = _(e);
789
+ (!t || !t.tagName) && (t = {
790
+ namespaceURI: G,
791
+ tagName: "template"
792
+ });
793
+ let n = he(e.tagName), r = he(t.tagName);
794
+ return gt[e.namespaceURI] ? e.namespaceURI === mt ? t.namespaceURI === W ? n === "svg" : t.namespaceURI === pt ? n === "svg" && (r === "annotation-xml" || vt[r]) : !!J[n] : e.namespaceURI === pt ? t.namespaceURI === W ? n === "math" : t.namespaceURI === mt ? n === "math" && yt[r] : !!Et[n] : e.namespaceURI === W ? t.namespaceURI === mt && !yt[r] || t.namespaceURI === pt && !vt[r] ? !1 : !Et[n] && (bt[n] || !J[n]) : !!(xt === "application/xhtml+xml" && gt[e.namespaceURI]) : !1;
795
+ }, Y = function(e) {
796
+ pe(t.removed, { element: e });
797
+ try {
798
+ _(e).removeChild(e);
799
+ } catch {
800
+ g(e);
801
+ }
802
+ }, X = function(e, n) {
803
+ try {
804
+ pe(t.removed, {
805
+ attribute: n.getAttributeNode(e),
806
+ from: n
807
+ });
808
+ } catch {
809
+ pe(t.removed, {
810
+ attribute: null,
811
+ from: n
812
+ });
813
+ }
814
+ if (n.removeAttribute(e), e === "is") if (z || rt) try {
815
+ Y(n);
816
+ } catch {}
817
+ else try {
818
+ n.setAttribute(e, "");
819
+ } catch {}
820
+ }, Ot = function(e) {
821
+ let t = null, r = null;
822
+ if (nt) e = "<remove></remove>" + e;
823
+ else {
824
+ let t = _e(e, /^[\r\n\t ]+/);
825
+ r = t && t[0];
826
+ }
827
+ xt === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
828
+ let i = v ? v.createHTML(e) : e;
829
+ if (G === W) try {
830
+ t = new f().parseFromString(i, xt);
831
+ } catch {}
832
+ if (!t || !t.documentElement) {
833
+ t = b.createDocument(G, "template", null);
834
+ try {
835
+ t.documentElement.innerHTML = ht ? y : i;
836
+ } catch {}
837
+ }
838
+ let a = t.body || t.documentElement;
839
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? S.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
840
+ }, kt = function(e) {
841
+ return x.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
842
+ }, Z = function(e) {
843
+ return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
844
+ }, At = function(e) {
845
+ return typeof s == "function" && e instanceof s;
846
+ };
847
+ function Q(e, n, r) {
848
+ ue(e, (e) => {
849
+ e.call(t, n, r, Ct);
850
+ });
851
+ }
852
+ let jt = function(e) {
853
+ let n = null;
854
+ if (Q(C.beforeSanitizeElements, e, null), Z(e)) return Y(e), !0;
855
+ let r = K(e.nodeName);
856
+ if (Q(C.uponSanitizeElement, e, {
857
+ tagName: r,
858
+ allowedTags: O
859
+ }), L && e.hasChildNodes() && !At(e.firstElementChild) && k(/<[/\w!]/g, e.innerHTML) && k(/<[/\w!]/g, e.textContent) || L && e.namespaceURI === W && r === "style" && At(e.firstElementChild) || e.nodeType === Xe.progressingInstruction || L && e.nodeType === Xe.comment && k(/<[/\w]/g, e.data)) return Y(e), !0;
860
+ if (Ve[r] || !(F.tagCheck instanceof Function && F.tagCheck(r)) && !O[r]) {
861
+ if (!Ve[r] && Nt(r) && (P.tagNameCheck instanceof RegExp && k(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
862
+ if (B && !U[r]) {
863
+ let t = _(e) || e.parentNode, n = te(e) || e.childNodes;
864
+ if (n && t) {
865
+ let r = n.length;
866
+ for (let i = r - 1; i >= 0; --i) {
867
+ let r = h(n[i], !0);
868
+ t.insertBefore(r, ee(e));
869
+ }
870
+ }
871
+ }
872
+ return Y(e), !0;
873
+ }
874
+ return e instanceof c && !Dt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && k(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Y(e), !0) : (I && e.nodeType === Xe.text && (n = e.textContent, ue([
875
+ ae,
876
+ oe,
877
+ T
878
+ ], (e) => {
879
+ n = ve(n, e, " ");
880
+ }), e.textContent !== n && (pe(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(C.afterSanitizeElements, e, null), !1);
881
+ }, $ = function(e, t, r) {
882
+ if (He[t] || at && (t === "id" || t === "name") && (r in n || r in wt)) return !1;
883
+ if (!(Ge && !He[t] && k(ce, t)) && !(Ue && k(le, t)) && !(F.attributeCheck instanceof Function && F.attributeCheck(t, e))) {
884
+ if (!j[t] || He[t]) {
885
+ if (!(Nt(e) && (P.tagNameCheck instanceof RegExp && k(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && k(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && k(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r)))) return !1;
886
+ } else if (!dt[t] && !k(we, ve(r, Se, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ye(r, "data:") === 0 && lt[e]) && !(Ke && !k(xe, ve(r, Se, ""))) && r) return !1;
887
+ }
888
+ return !0;
889
+ }, Mt = M({}, [
890
+ "annotation-xml",
891
+ "color-profile",
892
+ "font-face",
893
+ "font-face-format",
894
+ "font-face-name",
895
+ "font-face-src",
896
+ "font-face-uri",
897
+ "missing-glyph"
898
+ ]), Nt = function(e) {
899
+ return !Mt[he(e)] && k(Ce, e);
900
+ }, Pt = function(e) {
901
+ Q(C.beforeSanitizeAttributes, e, null);
902
+ let { attributes: n } = e;
903
+ if (!n || Z(e)) return;
904
+ let r = {
905
+ attrName: "",
906
+ attrValue: "",
907
+ keepAttr: !0,
908
+ allowedAttributes: j,
909
+ forceKeepAttr: void 0
910
+ }, i = n.length;
911
+ for (; i--;) {
912
+ let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : be(l);
913
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(C.uponSanitizeAttribute, e, r), u = r.attrValue, ot && (c === "id" || c === "name") && ye(u, st) !== 0 && (X(a, e), u = st + u), L && k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
914
+ X(a, e);
915
+ continue;
916
+ }
917
+ if (c === "attributename" && _e(u, "href")) {
918
+ X(a, e);
919
+ continue;
920
+ }
921
+ if (r.forceKeepAttr) continue;
922
+ if (!r.keepAttr) {
923
+ X(a, e);
924
+ continue;
925
+ }
926
+ if (!Je && k(/\/>/i, u)) {
927
+ X(a, e);
928
+ continue;
929
+ }
930
+ I && ue([
931
+ ae,
932
+ oe,
933
+ T
934
+ ], (e) => {
935
+ u = ve(u, e, " ");
936
+ });
937
+ let d = K(e.nodeName);
938
+ if (!$(d, c, u)) {
939
+ X(a, e);
940
+ continue;
941
+ }
942
+ if (v && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
943
+ case "TrustedHTML":
944
+ u = v.createHTML(u);
945
+ break;
946
+ case "TrustedScriptURL":
947
+ u = v.createScriptURL(u);
948
+ break;
949
+ }
950
+ if (u !== l) try {
951
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Z(e) ? Y(e) : fe(t.removed);
952
+ } catch {
953
+ X(a, e);
954
+ }
955
+ }
956
+ Q(C.afterSanitizeAttributes, e, null);
957
+ }, Ft = function(e) {
958
+ let t = null, n = kt(e);
959
+ for (Q(C.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) Q(C.uponSanitizeShadowNode, t, null), jt(t), Pt(t), t.content instanceof a && Ft(t.content);
960
+ Q(C.afterSanitizeShadowDOM, e, null);
961
+ };
962
+ return t.sanitize = function(e) {
963
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
964
+ if (ht = !e, ht && (e = "<!-->"), typeof e != "string" && !At(e) && (e = De(e), typeof e != "string")) throw Te("dirty is not a string, aborting");
965
+ if (!t.isSupported) return e;
966
+ if (tt || q(n), t.removed = [], typeof e == "string" && (V = !1), V) {
967
+ let t = e.nodeName;
968
+ if (typeof t == "string") {
969
+ let e = K(t);
970
+ if (!O[e] || Ve[e]) throw Te("root node is forbidden and cannot be sanitized in-place");
971
+ }
972
+ } else if (e instanceof s) i = Ot("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === Xe.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
973
+ else {
974
+ if (!z && !I && !R && e.indexOf("<") === -1) return v && it ? v.createHTML(e) : e;
975
+ if (i = Ot(e), !i) return z ? null : it ? y : "";
976
+ }
977
+ i && nt && Y(i.firstChild);
978
+ let u = kt(V ? e : i);
979
+ for (; c = u.nextNode();) jt(c), Pt(c), c.content instanceof a && Ft(c.content);
980
+ if (V) return e;
981
+ if (z) {
982
+ if (I) {
983
+ i.normalize();
984
+ let e = i.innerHTML;
985
+ ue([
986
+ ae,
987
+ oe,
988
+ T
989
+ ], (t) => {
990
+ e = ve(e, t, " ");
991
+ }), i.innerHTML = e;
992
+ }
993
+ if (rt) for (l = ne.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
994
+ else l = i;
995
+ return (j.shadowroot || j.shadowrootmode) && (l = ie.call(r, l, !0)), l;
996
+ }
997
+ let d = R ? i.outerHTML : i.innerHTML;
998
+ return R && O["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && k(qe, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), I && ue([
999
+ ae,
1000
+ oe,
1001
+ T
1002
+ ], (e) => {
1003
+ d = ve(d, e, " ");
1004
+ }), v && it ? v.createHTML(d) : d;
1005
+ }, t.setConfig = function() {
1006
+ q(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), tt = !0;
1007
+ }, t.clearConfig = function() {
1008
+ Ct = null, tt = !1;
1009
+ }, t.isValidAttribute = function(e, t, n) {
1010
+ return Ct || q({}), $(K(e), K(t), n);
1011
+ }, t.addHook = function(e, t) {
1012
+ typeof t == "function" && pe(C[e], t);
1013
+ }, t.removeHook = function(e, t) {
1014
+ if (t !== void 0) {
1015
+ let n = de(C[e], t);
1016
+ return n === -1 ? void 0 : me(C[e], n, 1)[0];
1017
+ }
1018
+ return fe(C[e]);
1019
+ }, t.removeHooks = function(e) {
1020
+ C[e] = [];
1021
+ }, t.removeAllHooks = function() {
1022
+ C = $e();
1023
+ }, t;
1024
+ }
1025
+ var I = et(), L = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, R = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, tt = /\s*%%.*\n/gm, nt = class extends Error {
1026
+ static {
1027
+ n(this, "UnknownDiagramError");
1028
+ }
1029
+ constructor(e) {
1030
+ super(e), this.name = "UnknownDiagramError";
1031
+ }
1032
+ }, z = {}, rt = /* @__PURE__ */ n(function(e, t) {
1033
+ e = e.replace(L, "").replace(R, "").replace(tt, "\n");
1034
+ for (let [n, { detector: r }] of Object.entries(z)) if (r(e, t)) return n;
1035
+ throw new nt(`No diagram type detected matching given configuration for text: ${e}`);
1036
+ }, "detectType"), it = /* @__PURE__ */ n((...e) => {
1037
+ for (let { id: t, detector: n, loader: r } of e) at(t, n, r);
1038
+ }, "registerLazyLoadedDiagrams"), at = /* @__PURE__ */ n((e, n, r) => {
1039
+ z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), z[e] = {
1040
+ detector: n,
1041
+ loader: r
1042
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
1043
+ }, "addDetector"), ot = /* @__PURE__ */ n((e) => z[e].loader, "getDiagramLoader"), st = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1044
+ let i = {
1045
+ depth: n,
1046
+ clobber: r
1047
+ };
1048
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => st(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1049
+ e.includes(t) || e.push(t);
1050
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1051
+ typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = st(e[i], t[i], {
1052
+ depth: n - 1,
1053
+ clobber: r
1054
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1055
+ }), e);
1056
+ }, "assignWithDepth"), B = st, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ n((e, t) => t ? x(e, {
1057
+ s: -40,
1058
+ l: 10
1059
+ }) : x(e, {
1060
+ s: -40,
1061
+ l: -10
1062
+ }), "mkBorder"), ct = class {
1063
+ static {
1064
+ n(this, "Theme");
1065
+ }
1066
+ constructor() {
1067
+ this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1068
+ }
1069
+ updateColors() {
1070
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1071
+ h: 180,
1072
+ l: 5
1073
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1074
+ h: 210,
1075
+ l: 150
1076
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1077
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1078
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1079
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1080
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1081
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1082
+ let e = this.darkMode ? -4 : -1;
1083
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1084
+ h: 180,
1085
+ s: -15,
1086
+ l: e * (5 + t * 3)
1087
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1088
+ h: 180,
1089
+ s: -15,
1090
+ l: e * (8 + t * 3)
1091
+ });
1092
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1093
+ h: 60,
1094
+ l: -10
1095
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1096
+ h: -60,
1097
+ l: -10
1098
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1099
+ h: 120,
1100
+ l: 0
1101
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1102
+ h: 60,
1103
+ l: -20
1104
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1105
+ h: -60,
1106
+ l: -20
1107
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1108
+ h: 120,
1109
+ l: -10
1110
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1111
+ h: 60,
1112
+ l: -30
1113
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1114
+ h: -60,
1115
+ l: -30
1116
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1117
+ h: 60,
1118
+ l: -30
1119
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1120
+ h: 120,
1121
+ l: -30
1122
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1123
+ h: 120,
1124
+ l: -30
1125
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
1126
+ axisColor: this.radar?.axisColor || this.lineColor,
1127
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1128
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1129
+ curveOpacity: this.radar?.curveOpacity || .5,
1130
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1131
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1132
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1133
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1134
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1135
+ legendFontSize: this.radar?.legendFontSize || 12
1136
+ }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1137
+ r: 5,
1138
+ g: 5,
1139
+ b: 5
1140
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1141
+ r: 10,
1142
+ g: 10,
1143
+ b: 10
1144
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1145
+ r: 15,
1146
+ g: 15,
1147
+ b: 15
1148
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1149
+ r: -5,
1150
+ g: -5,
1151
+ b: -5
1152
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1153
+ r: -10,
1154
+ g: -10,
1155
+ b: -10
1156
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1157
+ r: -15,
1158
+ g: -15,
1159
+ b: -15
1160
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1161
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1162
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1163
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1164
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1165
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1166
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1167
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1168
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1169
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1170
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1171
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1172
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1173
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1174
+ }
1175
+ calculate(e) {
1176
+ if (typeof e != "object") {
1177
+ this.updateColors();
1178
+ return;
1179
+ }
1180
+ let t = Object.keys(e);
1181
+ t.forEach((t) => {
1182
+ this[t] = e[t];
1183
+ }), this.updateColors(), t.forEach((t) => {
1184
+ this[t] = e[t];
1185
+ });
1186
+ }
1187
+ }, lt = /* @__PURE__ */ n((e) => {
1188
+ let t = new ct();
1189
+ return t.calculate(e), t;
1190
+ }, "getThemeVariables"), ut = class {
1191
+ static {
1192
+ n(this, "Theme");
1193
+ }
1194
+ constructor() {
1195
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1196
+ }
1197
+ updateColors() {
1198
+ this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = S(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
1199
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1200
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1201
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1202
+ h: 30,
1203
+ s: -30,
1204
+ l: -(-10 + e * 4)
1205
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1206
+ h: 30,
1207
+ s: -30,
1208
+ l: -(-7 + e * 4)
1209
+ });
1210
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1211
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1212
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1213
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
1214
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1215
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1216
+ r: 5,
1217
+ g: 5,
1218
+ b: 5
1219
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1220
+ r: 10,
1221
+ g: 10,
1222
+ b: 10
1223
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1224
+ r: 15,
1225
+ g: 15,
1226
+ b: 15
1227
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1228
+ r: -5,
1229
+ g: -5,
1230
+ b: -5
1231
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1232
+ r: -10,
1233
+ g: -10,
1234
+ b: -10
1235
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1236
+ r: -15,
1237
+ g: -15,
1238
+ b: -15
1239
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1240
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1241
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1242
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1243
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1244
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1245
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1246
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1247
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1248
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1249
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1250
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1251
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1252
+ }, this.packet = {
1253
+ startByteColor: this.primaryTextColor,
1254
+ endByteColor: this.primaryTextColor,
1255
+ labelColor: this.primaryTextColor,
1256
+ titleColor: this.primaryTextColor,
1257
+ blockStrokeColor: this.primaryTextColor,
1258
+ blockFillColor: this.background
1259
+ }, this.radar = {
1260
+ axisColor: this.radar?.axisColor || this.lineColor,
1261
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1262
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1263
+ curveOpacity: this.radar?.curveOpacity || .5,
1264
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1265
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1266
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1267
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1268
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1269
+ legendFontSize: this.radar?.legendFontSize || 12
1270
+ }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1271
+ }
1272
+ calculate(e) {
1273
+ if (typeof e != "object") {
1274
+ this.updateColors();
1275
+ return;
1276
+ }
1277
+ let t = Object.keys(e);
1278
+ t.forEach((t) => {
1279
+ this[t] = e[t];
1280
+ }), this.updateColors(), t.forEach((t) => {
1281
+ this[t] = e[t];
1282
+ });
1283
+ }
1284
+ }, dt = /* @__PURE__ */ n((e) => {
1285
+ let t = new ut();
1286
+ return t.calculate(e), t;
1287
+ }, "getThemeVariables"), ft = class {
1288
+ static {
1289
+ n(this, "Theme");
1290
+ }
1291
+ constructor() {
1292
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = g(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1293
+ }
1294
+ updateColors() {
1295
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1296
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1297
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1298
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1299
+ h: 30,
1300
+ l: -(5 + e * 5)
1301
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1302
+ h: 30,
1303
+ l: -(7 + e * 5)
1304
+ });
1305
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1306
+ this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1307
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1308
+ }
1309
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1310
+ h: 60,
1311
+ l: -20
1312
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1313
+ h: -60,
1314
+ l: -40
1315
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1316
+ h: 120,
1317
+ l: -40
1318
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1319
+ h: 60,
1320
+ l: -40
1321
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1322
+ h: -90,
1323
+ l: -40
1324
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1325
+ h: 120,
1326
+ l: -30
1327
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1328
+ h: 60,
1329
+ l: -30
1330
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1331
+ h: -60,
1332
+ l: -30
1333
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1334
+ h: 60,
1335
+ l: -30
1336
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1337
+ h: 120,
1338
+ l: -30
1339
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1340
+ h: 120,
1341
+ l: -30
1342
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1343
+ r: 5,
1344
+ g: 5,
1345
+ b: 5
1346
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1347
+ r: 10,
1348
+ g: 10,
1349
+ b: 10
1350
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1351
+ r: 15,
1352
+ g: 15,
1353
+ b: 15
1354
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1355
+ r: -5,
1356
+ g: -5,
1357
+ b: -5
1358
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1359
+ r: -10,
1360
+ g: -10,
1361
+ b: -10
1362
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1363
+ r: -15,
1364
+ g: -15,
1365
+ b: -15
1366
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
1367
+ axisColor: this.radar?.axisColor || this.lineColor,
1368
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1369
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1370
+ curveOpacity: this.radar?.curveOpacity || .5,
1371
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1372
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1373
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1374
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1375
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1376
+ legendFontSize: this.radar?.legendFontSize || 12
1377
+ }, this.xyChart = {
1378
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1379
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1380
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1381
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1382
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1383
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1384
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1385
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1386
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1387
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1388
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1389
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1390
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1391
+ }
1392
+ calculate(e) {
1393
+ if (Object.keys(this).forEach((e) => {
1394
+ this[e] === "calculated" && (this[e] = void 0);
1395
+ }), typeof e != "object") {
1396
+ this.updateColors();
1397
+ return;
1398
+ }
1399
+ let t = Object.keys(e);
1400
+ t.forEach((t) => {
1401
+ this[t] = e[t];
1402
+ }), this.updateColors(), t.forEach((t) => {
1403
+ this[t] = e[t];
1404
+ });
1405
+ }
1406
+ }, pt = /* @__PURE__ */ n((e) => {
1407
+ let t = new ft();
1408
+ return t.calculate(e), t;
1409
+ }, "getThemeVariables"), mt = class {
1410
+ static {
1411
+ n(this, "Theme");
1412
+ }
1413
+ constructor() {
1414
+ this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1415
+ }
1416
+ updateColors() {
1417
+ this.actorBorder = b(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1418
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1419
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1420
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1421
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1422
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1423
+ h: 30,
1424
+ s: -30,
1425
+ l: -(5 + e * 5)
1426
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1427
+ h: 30,
1428
+ s: -30,
1429
+ l: -(8 + e * 5)
1430
+ });
1431
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
1432
+ h: 40,
1433
+ l: -40
1434
+ }), this.pie7 = this.pie7 || x(this.primaryColor, {
1435
+ h: 60,
1436
+ l: -10
1437
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1438
+ h: -60,
1439
+ l: -10
1440
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1441
+ h: 120,
1442
+ l: 0
1443
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1444
+ h: 60,
1445
+ l: -50
1446
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1447
+ h: -60,
1448
+ l: -50
1449
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1450
+ h: 120,
1451
+ l: -50
1452
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1453
+ h: 60,
1454
+ l: -30
1455
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1456
+ h: -60,
1457
+ l: -30
1458
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1459
+ h: 60,
1460
+ l: -30
1461
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1462
+ h: 120,
1463
+ l: -30
1464
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1465
+ h: 120,
1466
+ l: -30
1467
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1468
+ r: 5,
1469
+ g: 5,
1470
+ b: 5
1471
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1472
+ r: 10,
1473
+ g: 10,
1474
+ b: 10
1475
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1476
+ r: 15,
1477
+ g: 15,
1478
+ b: 15
1479
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1480
+ r: -5,
1481
+ g: -5,
1482
+ b: -5
1483
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1484
+ r: -10,
1485
+ g: -10,
1486
+ b: -10
1487
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1488
+ r: -15,
1489
+ g: -15,
1490
+ b: -15
1491
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
1492
+ startByteColor: this.primaryTextColor,
1493
+ endByteColor: this.primaryTextColor,
1494
+ labelColor: this.primaryTextColor,
1495
+ titleColor: this.primaryTextColor,
1496
+ blockStrokeColor: this.primaryTextColor,
1497
+ blockFillColor: this.mainBkg
1498
+ }, this.radar = {
1499
+ axisColor: this.radar?.axisColor || this.lineColor,
1500
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1501
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1502
+ curveOpacity: this.radar?.curveOpacity || .5,
1503
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1504
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1505
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1506
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1507
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1508
+ legendFontSize: this.radar?.legendFontSize || 12
1509
+ }, this.xyChart = {
1510
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1511
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1512
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1513
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1514
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1515
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1516
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1517
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1518
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1519
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1520
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1521
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1522
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1523
+ }
1524
+ calculate(e) {
1525
+ if (typeof e != "object") {
1526
+ this.updateColors();
1527
+ return;
1528
+ }
1529
+ let t = Object.keys(e);
1530
+ t.forEach((t) => {
1531
+ this[t] = e[t];
1532
+ }), this.updateColors(), t.forEach((t) => {
1533
+ this[t] = e[t];
1534
+ });
1535
+ }
1536
+ }, W = /* @__PURE__ */ n((e) => {
1537
+ let t = new mt();
1538
+ return t.calculate(e), t;
1539
+ }, "getThemeVariables"), G = class {
1540
+ static {
1541
+ n(this, "Theme");
1542
+ }
1543
+ constructor() {
1544
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1545
+ }
1546
+ updateColors() {
1547
+ this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1548
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1549
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1550
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1551
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1552
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) });
1553
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
1554
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1555
+ this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
1556
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1557
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1558
+ r: 5,
1559
+ g: 5,
1560
+ b: 5
1561
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1562
+ r: 10,
1563
+ g: 10,
1564
+ b: 10
1565
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1566
+ r: 15,
1567
+ g: 15,
1568
+ b: 15
1569
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1570
+ r: -5,
1571
+ g: -5,
1572
+ b: -5
1573
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1574
+ r: -10,
1575
+ g: -10,
1576
+ b: -10
1577
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1578
+ r: -15,
1579
+ g: -15,
1580
+ b: -15
1581
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1582
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1583
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1584
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1585
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1586
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1587
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1588
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1589
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1590
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1591
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1592
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1593
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1594
+ }, this.radar = {
1595
+ axisColor: this.radar?.axisColor || this.lineColor,
1596
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1597
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1598
+ curveOpacity: this.radar?.curveOpacity || .5,
1599
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1600
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1601
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1602
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1603
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1604
+ legendFontSize: this.radar?.legendFontSize || 12
1605
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1606
+ }
1607
+ calculate(e) {
1608
+ if (typeof e != "object") {
1609
+ this.updateColors();
1610
+ return;
1611
+ }
1612
+ let t = Object.keys(e);
1613
+ t.forEach((t) => {
1614
+ this[t] = e[t];
1615
+ }), this.updateColors(), t.forEach((t) => {
1616
+ this[t] = e[t];
1617
+ });
1618
+ }
1619
+ }, ht = /* @__PURE__ */ n((e) => {
1620
+ let t = new G();
1621
+ return t.calculate(e), t;
1622
+ }, "getThemeVariables"), gt = class {
1623
+ static {
1624
+ n(this, "Theme");
1625
+ }
1626
+ constructor() {
1627
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1628
+ }
1629
+ updateColors() {
1630
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1631
+ h: 180,
1632
+ l: 5
1633
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor);
1634
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1635
+ h: 180,
1636
+ l: 5
1637
+ });
1638
+ if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, {
1639
+ h: 210,
1640
+ l: 150
1641
+ }), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1642
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1643
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1644
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1645
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1646
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1647
+ let r = this.darkMode ? -4 : -1;
1648
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1649
+ h: 180,
1650
+ s: -15,
1651
+ l: r * (5 + e * 3)
1652
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1653
+ h: 180,
1654
+ s: -15,
1655
+ l: r * (8 + e * 3)
1656
+ });
1657
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
1658
+ h: 60,
1659
+ l: -10
1660
+ }), this.pie8 = this.pie8 || x(e, {
1661
+ h: -60,
1662
+ l: -10
1663
+ }), this.pie9 = this.pie9 || x(e, {
1664
+ h: 120,
1665
+ l: 0
1666
+ }), this.pie10 = this.pie10 || x(e, {
1667
+ h: 60,
1668
+ l: -20
1669
+ }), this.pie11 = this.pie11 || x(e, {
1670
+ h: -60,
1671
+ l: -20
1672
+ }), this.pie12 = this.pie12 || x(e, {
1673
+ h: 120,
1674
+ l: -10
1675
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
1676
+ r: 5,
1677
+ g: 5,
1678
+ b: 5
1679
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
1680
+ r: 10,
1681
+ g: 10,
1682
+ b: 10
1683
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
1684
+ r: 15,
1685
+ g: 15,
1686
+ b: 15
1687
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1688
+ r: -5,
1689
+ g: -5,
1690
+ b: -5
1691
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1692
+ r: -10,
1693
+ g: -10,
1694
+ b: -10
1695
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1696
+ r: -15,
1697
+ g: -15,
1698
+ b: -15
1699
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1700
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1701
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1702
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1703
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1704
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1705
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1706
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1707
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1708
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1709
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1710
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1711
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1712
+ }
1713
+ calculate(e) {
1714
+ if (typeof e != "object") {
1715
+ this.updateColors();
1716
+ return;
1717
+ }
1718
+ let t = Object.keys(e);
1719
+ t.forEach((t) => {
1720
+ this[t] = e[t];
1721
+ }), this.updateColors(), t.forEach((t) => {
1722
+ this[t] = e[t];
1723
+ });
1724
+ }
1725
+ }, _t = /* @__PURE__ */ n((e) => {
1726
+ let t = new gt();
1727
+ return t.calculate(e), t;
1728
+ }, "getThemeVariables"), vt = class {
1729
+ static {
1730
+ n(this, "Theme");
1731
+ }
1732
+ constructor() {
1733
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1734
+ }
1735
+ updateColors() {
1736
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1737
+ h: 180,
1738
+ l: 5
1739
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1740
+ h: 210,
1741
+ l: 150
1742
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1743
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1744
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1745
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1746
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1747
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1748
+ let e = this.darkMode ? -4 : -1;
1749
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1750
+ h: 180,
1751
+ s: -15,
1752
+ l: e * (5 + t * 3)
1753
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1754
+ h: 180,
1755
+ s: -15,
1756
+ l: e * (8 + t * 3)
1757
+ });
1758
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1759
+ h: 60,
1760
+ l: -10
1761
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1762
+ h: -60,
1763
+ l: -10
1764
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1765
+ h: 120,
1766
+ l: 0
1767
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1768
+ h: 60,
1769
+ l: -20
1770
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1771
+ h: -60,
1772
+ l: -20
1773
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1774
+ h: 120,
1775
+ l: -10
1776
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1777
+ r: 5,
1778
+ g: 5,
1779
+ b: 5
1780
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1781
+ r: 10,
1782
+ g: 10,
1783
+ b: 10
1784
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1785
+ r: 15,
1786
+ g: 15,
1787
+ b: 15
1788
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1789
+ r: -5,
1790
+ g: -5,
1791
+ b: -5
1792
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1793
+ r: -10,
1794
+ g: -10,
1795
+ b: -10
1796
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1797
+ r: -15,
1798
+ g: -15,
1799
+ b: -15
1800
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1801
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1802
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1803
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1804
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1805
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1806
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1807
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1808
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1809
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1810
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1811
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1812
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1813
+ }
1814
+ calculate(e) {
1815
+ if (typeof e != "object") {
1816
+ this.updateColors();
1817
+ return;
1818
+ }
1819
+ let t = Object.keys(e);
1820
+ t.forEach((t) => {
1821
+ this[t] = e[t];
1822
+ }), this.updateColors(), t.forEach((t) => {
1823
+ this[t] = e[t];
1824
+ });
1825
+ }
1826
+ }, yt = /* @__PURE__ */ n((e) => {
1827
+ let t = new vt();
1828
+ return t.calculate(e), t;
1829
+ }, "getThemeVariables"), bt = class {
1830
+ static {
1831
+ n(this, "Theme");
1832
+ }
1833
+ constructor() {
1834
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
1835
+ }
1836
+ updateColors() {
1837
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1838
+ h: 180,
1839
+ l: 5
1840
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor);
1841
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1842
+ h: 180,
1843
+ l: 5
1844
+ });
1845
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
1846
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1847
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1848
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1849
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1850
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1851
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1852
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1853
+ let r = this.darkMode ? -4 : -1;
1854
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1855
+ h: 180,
1856
+ s: -15,
1857
+ l: r * (5 + e * 3)
1858
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1859
+ h: 180,
1860
+ s: -15,
1861
+ l: r * (8 + e * 3)
1862
+ });
1863
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
1864
+ h: 60,
1865
+ l: -10
1866
+ }), this.pie8 = this.pie8 || x(e, {
1867
+ h: -60,
1868
+ l: -10
1869
+ }), this.pie9 = this.pie9 || x(e, {
1870
+ h: 120,
1871
+ l: 0
1872
+ }), this.pie10 = this.pie10 || x(e, {
1873
+ h: 60,
1874
+ l: -20
1875
+ }), this.pie11 = this.pie11 || x(e, {
1876
+ h: -60,
1877
+ l: -20
1878
+ }), this.pie12 = this.pie12 || x(e, {
1879
+ h: 120,
1880
+ l: -10
1881
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
1882
+ r: 5,
1883
+ g: 5,
1884
+ b: 5
1885
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
1886
+ r: 10,
1887
+ g: 10,
1888
+ b: 10
1889
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
1890
+ r: 15,
1891
+ g: 15,
1892
+ b: 15
1893
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1894
+ r: -5,
1895
+ g: -5,
1896
+ b: -5
1897
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1898
+ r: -10,
1899
+ g: -10,
1900
+ b: -10
1901
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1902
+ r: -15,
1903
+ g: -15,
1904
+ b: -15
1905
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1906
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1907
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1908
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1909
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1910
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1911
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1912
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1913
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1914
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1915
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1916
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1917
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1918
+ }
1919
+ calculate(e) {
1920
+ if (typeof e != "object") {
1921
+ this.updateColors();
1922
+ return;
1923
+ }
1924
+ let t = Object.keys(e);
1925
+ t.forEach((t) => {
1926
+ this[t] = e[t];
1927
+ }), this.updateColors(), t.forEach((t) => {
1928
+ this[t] = e[t];
1929
+ });
1930
+ }
1931
+ }, xt = /* @__PURE__ */ n((e) => {
1932
+ let t = new bt();
1933
+ return t.calculate(e), t;
1934
+ }, "getThemeVariables"), St = class {
1935
+ static {
1936
+ n(this, "Theme");
1937
+ }
1938
+ constructor() {
1939
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
1940
+ }
1941
+ updateColors() {
1942
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1943
+ h: 180,
1944
+ l: 5
1945
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1946
+ h: 210,
1947
+ l: 150
1948
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1949
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1950
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1951
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1952
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1953
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1954
+ let e = this.darkMode ? -4 : -1;
1955
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1956
+ h: 180,
1957
+ s: -15,
1958
+ l: e * (5 + t * 3)
1959
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1960
+ h: 180,
1961
+ s: -15,
1962
+ l: e * (8 + t * 3)
1963
+ });
1964
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1965
+ h: 60,
1966
+ l: -10
1967
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1968
+ h: -60,
1969
+ l: -10
1970
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1971
+ h: 120,
1972
+ l: 0
1973
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1974
+ h: 60,
1975
+ l: -20
1976
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1977
+ h: -60,
1978
+ l: -20
1979
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1980
+ h: 120,
1981
+ l: -10
1982
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1983
+ r: 5,
1984
+ g: 5,
1985
+ b: 5
1986
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1987
+ r: 10,
1988
+ g: 10,
1989
+ b: 10
1990
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1991
+ r: 15,
1992
+ g: 15,
1993
+ b: 15
1994
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1995
+ r: -5,
1996
+ g: -5,
1997
+ b: -5
1998
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1999
+ r: -10,
2000
+ g: -10,
2001
+ b: -10
2002
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2003
+ r: -15,
2004
+ g: -15,
2005
+ b: -15
2006
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
2007
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2008
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2009
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2010
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2011
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2012
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2013
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2014
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2015
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2016
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2017
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2018
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2019
+ }
2020
+ calculate(e) {
2021
+ if (typeof e != "object") {
2022
+ this.updateColors();
2023
+ return;
2024
+ }
2025
+ let t = Object.keys(e);
2026
+ t.forEach((t) => {
2027
+ this[t] = e[t];
2028
+ }), this.updateColors(), t.forEach((t) => {
2029
+ this[t] = e[t];
2030
+ });
2031
+ }
2032
+ }, K = /* @__PURE__ */ n((e) => {
2033
+ let t = new St();
2034
+ return t.calculate(e), t;
2035
+ }, "getThemeVariables"), Ct = class {
2036
+ static {
2037
+ n(this, "Theme");
2038
+ }
2039
+ constructor() {
2040
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2041
+ "#E879F9",
2042
+ "#2DD4BF",
2043
+ "#FB923C",
2044
+ "#22D3EE",
2045
+ "#4ADE80",
2046
+ "#A78BFA",
2047
+ "#F87171",
2048
+ "#FACC15",
2049
+ "#818CF8",
2050
+ "#A3E635 ",
2051
+ "#38BDF8",
2052
+ "#FB7185"
2053
+ ], this.bkgColorArray = [
2054
+ "#FDF4FF",
2055
+ "#F0FDFA",
2056
+ "#FFF7ED",
2057
+ "#ECFEFF",
2058
+ "#F0FDF4",
2059
+ "#F5F3FF",
2060
+ "#FEF2F2",
2061
+ "#FEFCE8",
2062
+ "#EEF2FF",
2063
+ "#F7FEE7",
2064
+ "#F0F9FF",
2065
+ "#FFF1F2"
2066
+ ], this.filterColor = "#000000";
2067
+ }
2068
+ updateColors() {
2069
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2070
+ h: 180,
2071
+ l: 5
2072
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor);
2073
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2074
+ h: 180,
2075
+ l: 5
2076
+ });
2077
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2078
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2079
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2080
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2081
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2082
+ let r = this.darkMode ? -4 : -1;
2083
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2084
+ h: 180,
2085
+ s: -15,
2086
+ l: r * (5 + e * 3)
2087
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2088
+ h: 180,
2089
+ s: -15,
2090
+ l: r * (8 + e * 3)
2091
+ });
2092
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2093
+ h: 60,
2094
+ l: -10
2095
+ }), this.pie8 = this.pie8 || x(e, {
2096
+ h: -60,
2097
+ l: -10
2098
+ }), this.pie9 = this.pie9 || x(e, {
2099
+ h: 120,
2100
+ l: 0
2101
+ }), this.pie10 = this.pie10 || x(e, {
2102
+ h: 60,
2103
+ l: -20
2104
+ }), this.pie11 = this.pie11 || x(e, {
2105
+ h: -60,
2106
+ l: -20
2107
+ }), this.pie12 = this.pie12 || x(e, {
2108
+ h: 120,
2109
+ l: -10
2110
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2111
+ r: 5,
2112
+ g: 5,
2113
+ b: 5
2114
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2115
+ r: 10,
2116
+ g: 10,
2117
+ b: 10
2118
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2119
+ r: 15,
2120
+ g: 15,
2121
+ b: 15
2122
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2123
+ r: -5,
2124
+ g: -5,
2125
+ b: -5
2126
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2127
+ r: -10,
2128
+ g: -10,
2129
+ b: -10
2130
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2131
+ r: -15,
2132
+ g: -15,
2133
+ b: -15
2134
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
2135
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2136
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2137
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2138
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2139
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2140
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2141
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2142
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2143
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2144
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2145
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2146
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2147
+ }
2148
+ calculate(e) {
2149
+ if (typeof e != "object") {
2150
+ this.updateColors();
2151
+ return;
2152
+ }
2153
+ let t = Object.keys(e);
2154
+ t.forEach((t) => {
2155
+ this[t] = e[t];
2156
+ }), this.updateColors(), t.forEach((t) => {
2157
+ this[t] = e[t];
2158
+ });
2159
+ }
2160
+ }, wt = /* @__PURE__ */ n((e) => {
2161
+ let t = new Ct();
2162
+ return t.calculate(e), t;
2163
+ }, "getThemeVariables"), Tt = class {
2164
+ static {
2165
+ n(this, "Theme");
2166
+ }
2167
+ constructor() {
2168
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2169
+ "#E879F9",
2170
+ "#2DD4BF",
2171
+ "#FB923C",
2172
+ "#22D3EE",
2173
+ "#4ADE80",
2174
+ "#A78BFA",
2175
+ "#F87171",
2176
+ "#FACC15",
2177
+ "#818CF8",
2178
+ "#A3E635 ",
2179
+ "#38BDF8",
2180
+ "#FB7185"
2181
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2182
+ }
2183
+ updateColors() {
2184
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2185
+ h: 180,
2186
+ l: 5
2187
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2188
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2189
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2190
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2191
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2192
+ let e = this.darkMode ? -4 : -1;
2193
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2194
+ h: 180,
2195
+ s: -15,
2196
+ l: e * (5 + t * 3)
2197
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2198
+ h: 180,
2199
+ s: -15,
2200
+ l: e * (8 + t * 3)
2201
+ });
2202
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2203
+ h: 60,
2204
+ l: -10
2205
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2206
+ h: -60,
2207
+ l: -10
2208
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2209
+ h: 120,
2210
+ l: 0
2211
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2212
+ h: 60,
2213
+ l: -20
2214
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2215
+ h: -60,
2216
+ l: -20
2217
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2218
+ h: 120,
2219
+ l: -10
2220
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2221
+ r: 5,
2222
+ g: 5,
2223
+ b: 5
2224
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2225
+ r: 10,
2226
+ g: 10,
2227
+ b: 10
2228
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2229
+ r: 15,
2230
+ g: 15,
2231
+ b: 15
2232
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2233
+ r: -5,
2234
+ g: -5,
2235
+ b: -5
2236
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2237
+ r: -10,
2238
+ g: -10,
2239
+ b: -10
2240
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2241
+ r: -15,
2242
+ g: -15,
2243
+ b: -15
2244
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
2245
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2246
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2247
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2248
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2249
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2250
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2251
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2252
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2253
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2254
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2255
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2256
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2257
+ }
2258
+ calculate(e) {
2259
+ if (typeof e != "object") {
2260
+ this.updateColors();
2261
+ return;
2262
+ }
2263
+ let t = Object.keys(e);
2264
+ t.forEach((t) => {
2265
+ this[t] = e[t];
2266
+ }), this.updateColors(), t.forEach((t) => {
2267
+ this[t] = e[t];
2268
+ });
2269
+ }
2270
+ }, q = {
2271
+ base: { getThemeVariables: lt },
2272
+ dark: { getThemeVariables: dt },
2273
+ default: { getThemeVariables: pt },
2274
+ forest: { getThemeVariables: W },
2275
+ neutral: { getThemeVariables: ht },
2276
+ neo: { getThemeVariables: _t },
2277
+ "neo-dark": { getThemeVariables: yt },
2278
+ redux: { getThemeVariables: xt },
2279
+ "redux-dark": { getThemeVariables: K },
2280
+ "redux-color": { getThemeVariables: wt },
2281
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2282
+ let t = new Tt();
2283
+ return t.calculate(e), t;
2284
+ }, "getThemeVariables") }
2285
+ }, J = {
2286
+ flowchart: {
2287
+ useMaxWidth: !0,
2288
+ titleTopMargin: 25,
2289
+ subGraphTitleMargin: {
2290
+ top: 0,
2291
+ bottom: 0
2292
+ },
2293
+ diagramPadding: 8,
2294
+ htmlLabels: null,
2295
+ nodeSpacing: 50,
2296
+ rankSpacing: 50,
2297
+ curve: "basis",
2298
+ padding: 15,
2299
+ defaultRenderer: "dagre-wrapper",
2300
+ wrappingWidth: 200,
2301
+ inheritDir: !1
2302
+ },
2303
+ sequence: {
2304
+ useMaxWidth: !0,
2305
+ hideUnusedParticipants: !1,
2306
+ activationWidth: 10,
2307
+ diagramMarginX: 50,
2308
+ diagramMarginY: 10,
2309
+ actorMargin: 50,
2310
+ width: 150,
2311
+ height: 65,
2312
+ boxMargin: 10,
2313
+ boxTextMargin: 5,
2314
+ noteMargin: 10,
2315
+ messageMargin: 35,
2316
+ messageAlign: "center",
2317
+ mirrorActors: !0,
2318
+ forceMenus: !1,
2319
+ bottomMarginAdj: 1,
2320
+ rightAngles: !1,
2321
+ showSequenceNumbers: !1,
2322
+ actorFontSize: 14,
2323
+ actorFontFamily: "\"Open Sans\", sans-serif",
2324
+ actorFontWeight: 400,
2325
+ noteFontSize: 14,
2326
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2327
+ noteFontWeight: 400,
2328
+ noteAlign: "center",
2329
+ messageFontSize: 16,
2330
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2331
+ messageFontWeight: 400,
2332
+ wrap: !1,
2333
+ wrapPadding: 10,
2334
+ labelBoxWidth: 50,
2335
+ labelBoxHeight: 20
2336
+ },
2337
+ gantt: {
2338
+ useMaxWidth: !0,
2339
+ titleTopMargin: 25,
2340
+ barHeight: 20,
2341
+ barGap: 4,
2342
+ topPadding: 50,
2343
+ rightPadding: 75,
2344
+ leftPadding: 75,
2345
+ gridLineStartPadding: 35,
2346
+ fontSize: 11,
2347
+ sectionFontSize: 11,
2348
+ numberSectionStyles: 4,
2349
+ axisFormat: "%Y-%m-%d",
2350
+ topAxis: !1,
2351
+ displayMode: "",
2352
+ weekday: "sunday"
2353
+ },
2354
+ journey: {
2355
+ useMaxWidth: !0,
2356
+ diagramMarginX: 50,
2357
+ diagramMarginY: 10,
2358
+ leftMargin: 150,
2359
+ maxLabelWidth: 360,
2360
+ width: 150,
2361
+ height: 50,
2362
+ boxMargin: 10,
2363
+ boxTextMargin: 5,
2364
+ noteMargin: 10,
2365
+ messageMargin: 35,
2366
+ messageAlign: "center",
2367
+ bottomMarginAdj: 1,
2368
+ rightAngles: !1,
2369
+ taskFontSize: 14,
2370
+ taskFontFamily: "\"Open Sans\", sans-serif",
2371
+ taskMargin: 50,
2372
+ activationWidth: 10,
2373
+ textPlacement: "fo",
2374
+ actorColours: [
2375
+ "#8FBC8F",
2376
+ "#7CFC00",
2377
+ "#00FFFF",
2378
+ "#20B2AA",
2379
+ "#B0E0E6",
2380
+ "#FFFFE0"
2381
+ ],
2382
+ sectionFills: [
2383
+ "#191970",
2384
+ "#8B008B",
2385
+ "#4B0082",
2386
+ "#2F4F4F",
2387
+ "#800000",
2388
+ "#8B4513",
2389
+ "#00008B"
2390
+ ],
2391
+ sectionColours: ["#fff"],
2392
+ titleColor: "",
2393
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2394
+ titleFontSize: "4ex"
2395
+ },
2396
+ class: {
2397
+ useMaxWidth: !0,
2398
+ titleTopMargin: 25,
2399
+ arrowMarkerAbsolute: !1,
2400
+ dividerMargin: 10,
2401
+ padding: 5,
2402
+ textHeight: 10,
2403
+ defaultRenderer: "dagre-wrapper",
2404
+ htmlLabels: !1,
2405
+ hideEmptyMembersBox: !1
2406
+ },
2407
+ state: {
2408
+ useMaxWidth: !0,
2409
+ titleTopMargin: 25,
2410
+ dividerMargin: 10,
2411
+ sizeUnit: 5,
2412
+ padding: 8,
2413
+ textHeight: 10,
2414
+ titleShift: -15,
2415
+ noteMargin: 10,
2416
+ forkWidth: 70,
2417
+ forkHeight: 7,
2418
+ miniPadding: 2,
2419
+ fontSizeFactor: 5.02,
2420
+ fontSize: 24,
2421
+ labelHeight: 16,
2422
+ edgeLengthFactor: "20",
2423
+ compositTitleSize: 35,
2424
+ radius: 5,
2425
+ defaultRenderer: "dagre-wrapper"
2426
+ },
2427
+ er: {
2428
+ useMaxWidth: !0,
2429
+ titleTopMargin: 25,
2430
+ diagramPadding: 20,
2431
+ layoutDirection: "TB",
2432
+ minEntityWidth: 100,
2433
+ minEntityHeight: 75,
2434
+ entityPadding: 15,
2435
+ nodeSpacing: 140,
2436
+ rankSpacing: 80,
2437
+ stroke: "gray",
2438
+ fill: "honeydew",
2439
+ fontSize: 12
2440
+ },
2441
+ pie: {
2442
+ useMaxWidth: !0,
2443
+ textPosition: .75
2444
+ },
2445
+ quadrantChart: {
2446
+ useMaxWidth: !0,
2447
+ chartWidth: 500,
2448
+ chartHeight: 500,
2449
+ titleFontSize: 20,
2450
+ titlePadding: 10,
2451
+ quadrantPadding: 5,
2452
+ xAxisLabelPadding: 5,
2453
+ yAxisLabelPadding: 5,
2454
+ xAxisLabelFontSize: 16,
2455
+ yAxisLabelFontSize: 16,
2456
+ quadrantLabelFontSize: 16,
2457
+ quadrantTextTopPadding: 5,
2458
+ pointTextPadding: 5,
2459
+ pointLabelFontSize: 12,
2460
+ pointRadius: 5,
2461
+ xAxisPosition: "top",
2462
+ yAxisPosition: "left",
2463
+ quadrantInternalBorderStrokeWidth: 1,
2464
+ quadrantExternalBorderStrokeWidth: 2
2465
+ },
2466
+ xyChart: {
2467
+ useMaxWidth: !0,
2468
+ width: 700,
2469
+ height: 500,
2470
+ titleFontSize: 20,
2471
+ titlePadding: 10,
2472
+ showDataLabel: !1,
2473
+ showDataLabelOutsideBar: !1,
2474
+ showTitle: !0,
2475
+ xAxis: {
2476
+ $ref: "#/$defs/XYChartAxisConfig",
2477
+ showLabel: !0,
2478
+ labelFontSize: 14,
2479
+ labelPadding: 5,
2480
+ showTitle: !0,
2481
+ titleFontSize: 16,
2482
+ titlePadding: 5,
2483
+ showTick: !0,
2484
+ tickLength: 5,
2485
+ tickWidth: 2,
2486
+ showAxisLine: !0,
2487
+ axisLineWidth: 2
2488
+ },
2489
+ yAxis: {
2490
+ $ref: "#/$defs/XYChartAxisConfig",
2491
+ showLabel: !0,
2492
+ labelFontSize: 14,
2493
+ labelPadding: 5,
2494
+ showTitle: !0,
2495
+ titleFontSize: 16,
2496
+ titlePadding: 5,
2497
+ showTick: !0,
2498
+ tickLength: 5,
2499
+ tickWidth: 2,
2500
+ showAxisLine: !0,
2501
+ axisLineWidth: 2
2502
+ },
2503
+ chartOrientation: "vertical",
2504
+ plotReservedSpacePercent: 50
2505
+ },
2506
+ requirement: {
2507
+ useMaxWidth: !0,
2508
+ rect_fill: "#f9f9f9",
2509
+ text_color: "#333",
2510
+ rect_border_size: "0.5px",
2511
+ rect_border_color: "#bbb",
2512
+ rect_min_width: 200,
2513
+ rect_min_height: 200,
2514
+ fontSize: 14,
2515
+ rect_padding: 10,
2516
+ line_height: 20
2517
+ },
2518
+ mindmap: {
2519
+ useMaxWidth: !0,
2520
+ padding: 10,
2521
+ maxNodeWidth: 200,
2522
+ layoutAlgorithm: "cose-bilkent"
2523
+ },
2524
+ ishikawa: {
2525
+ useMaxWidth: !0,
2526
+ diagramPadding: 20
2527
+ },
2528
+ kanban: {
2529
+ useMaxWidth: !0,
2530
+ padding: 8,
2531
+ sectionWidth: 200,
2532
+ ticketBaseUrl: ""
2533
+ },
2534
+ timeline: {
2535
+ useMaxWidth: !0,
2536
+ diagramMarginX: 50,
2537
+ diagramMarginY: 10,
2538
+ leftMargin: 150,
2539
+ width: 150,
2540
+ height: 50,
2541
+ boxMargin: 10,
2542
+ boxTextMargin: 5,
2543
+ noteMargin: 10,
2544
+ messageMargin: 35,
2545
+ messageAlign: "center",
2546
+ bottomMarginAdj: 1,
2547
+ rightAngles: !1,
2548
+ taskFontSize: 14,
2549
+ taskFontFamily: "\"Open Sans\", sans-serif",
2550
+ taskMargin: 50,
2551
+ activationWidth: 10,
2552
+ textPlacement: "fo",
2553
+ actorColours: [
2554
+ "#8FBC8F",
2555
+ "#7CFC00",
2556
+ "#00FFFF",
2557
+ "#20B2AA",
2558
+ "#B0E0E6",
2559
+ "#FFFFE0"
2560
+ ],
2561
+ sectionFills: [
2562
+ "#191970",
2563
+ "#8B008B",
2564
+ "#4B0082",
2565
+ "#2F4F4F",
2566
+ "#800000",
2567
+ "#8B4513",
2568
+ "#00008B"
2569
+ ],
2570
+ sectionColours: ["#fff"],
2571
+ disableMulticolor: !1
2572
+ },
2573
+ gitGraph: {
2574
+ useMaxWidth: !0,
2575
+ titleTopMargin: 25,
2576
+ diagramPadding: 8,
2577
+ nodeLabel: {
2578
+ width: 75,
2579
+ height: 100,
2580
+ x: -25,
2581
+ y: 0
2582
+ },
2583
+ mainBranchName: "main",
2584
+ mainBranchOrder: 0,
2585
+ showCommitLabel: !0,
2586
+ showBranches: !0,
2587
+ rotateCommitLabel: !0,
2588
+ parallelCommits: !1,
2589
+ arrowMarkerAbsolute: !1
2590
+ },
2591
+ c4: {
2592
+ useMaxWidth: !0,
2593
+ diagramMarginX: 50,
2594
+ diagramMarginY: 10,
2595
+ c4ShapeMargin: 50,
2596
+ c4ShapePadding: 20,
2597
+ width: 216,
2598
+ height: 60,
2599
+ boxMargin: 10,
2600
+ c4ShapeInRow: 4,
2601
+ nextLinePaddingX: 0,
2602
+ c4BoundaryInRow: 2,
2603
+ personFontSize: 14,
2604
+ personFontFamily: "\"Open Sans\", sans-serif",
2605
+ personFontWeight: "normal",
2606
+ external_personFontSize: 14,
2607
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2608
+ external_personFontWeight: "normal",
2609
+ systemFontSize: 14,
2610
+ systemFontFamily: "\"Open Sans\", sans-serif",
2611
+ systemFontWeight: "normal",
2612
+ external_systemFontSize: 14,
2613
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2614
+ external_systemFontWeight: "normal",
2615
+ system_dbFontSize: 14,
2616
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2617
+ system_dbFontWeight: "normal",
2618
+ external_system_dbFontSize: 14,
2619
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2620
+ external_system_dbFontWeight: "normal",
2621
+ system_queueFontSize: 14,
2622
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2623
+ system_queueFontWeight: "normal",
2624
+ external_system_queueFontSize: 14,
2625
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2626
+ external_system_queueFontWeight: "normal",
2627
+ boundaryFontSize: 14,
2628
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2629
+ boundaryFontWeight: "normal",
2630
+ messageFontSize: 12,
2631
+ messageFontFamily: "\"Open Sans\", sans-serif",
2632
+ messageFontWeight: "normal",
2633
+ containerFontSize: 14,
2634
+ containerFontFamily: "\"Open Sans\", sans-serif",
2635
+ containerFontWeight: "normal",
2636
+ external_containerFontSize: 14,
2637
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2638
+ external_containerFontWeight: "normal",
2639
+ container_dbFontSize: 14,
2640
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2641
+ container_dbFontWeight: "normal",
2642
+ external_container_dbFontSize: 14,
2643
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2644
+ external_container_dbFontWeight: "normal",
2645
+ container_queueFontSize: 14,
2646
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2647
+ container_queueFontWeight: "normal",
2648
+ external_container_queueFontSize: 14,
2649
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2650
+ external_container_queueFontWeight: "normal",
2651
+ componentFontSize: 14,
2652
+ componentFontFamily: "\"Open Sans\", sans-serif",
2653
+ componentFontWeight: "normal",
2654
+ external_componentFontSize: 14,
2655
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2656
+ external_componentFontWeight: "normal",
2657
+ component_dbFontSize: 14,
2658
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2659
+ component_dbFontWeight: "normal",
2660
+ external_component_dbFontSize: 14,
2661
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2662
+ external_component_dbFontWeight: "normal",
2663
+ component_queueFontSize: 14,
2664
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2665
+ component_queueFontWeight: "normal",
2666
+ external_component_queueFontSize: 14,
2667
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2668
+ external_component_queueFontWeight: "normal",
2669
+ wrap: !0,
2670
+ wrapPadding: 10,
2671
+ person_bg_color: "#08427B",
2672
+ person_border_color: "#073B6F",
2673
+ external_person_bg_color: "#686868",
2674
+ external_person_border_color: "#8A8A8A",
2675
+ system_bg_color: "#1168BD",
2676
+ system_border_color: "#3C7FC0",
2677
+ system_db_bg_color: "#1168BD",
2678
+ system_db_border_color: "#3C7FC0",
2679
+ system_queue_bg_color: "#1168BD",
2680
+ system_queue_border_color: "#3C7FC0",
2681
+ external_system_bg_color: "#999999",
2682
+ external_system_border_color: "#8A8A8A",
2683
+ external_system_db_bg_color: "#999999",
2684
+ external_system_db_border_color: "#8A8A8A",
2685
+ external_system_queue_bg_color: "#999999",
2686
+ external_system_queue_border_color: "#8A8A8A",
2687
+ container_bg_color: "#438DD5",
2688
+ container_border_color: "#3C7FC0",
2689
+ container_db_bg_color: "#438DD5",
2690
+ container_db_border_color: "#3C7FC0",
2691
+ container_queue_bg_color: "#438DD5",
2692
+ container_queue_border_color: "#3C7FC0",
2693
+ external_container_bg_color: "#B3B3B3",
2694
+ external_container_border_color: "#A6A6A6",
2695
+ external_container_db_bg_color: "#B3B3B3",
2696
+ external_container_db_border_color: "#A6A6A6",
2697
+ external_container_queue_bg_color: "#B3B3B3",
2698
+ external_container_queue_border_color: "#A6A6A6",
2699
+ component_bg_color: "#85BBF0",
2700
+ component_border_color: "#78A8D8",
2701
+ component_db_bg_color: "#85BBF0",
2702
+ component_db_border_color: "#78A8D8",
2703
+ component_queue_bg_color: "#85BBF0",
2704
+ component_queue_border_color: "#78A8D8",
2705
+ external_component_bg_color: "#CCCCCC",
2706
+ external_component_border_color: "#BFBFBF",
2707
+ external_component_db_bg_color: "#CCCCCC",
2708
+ external_component_db_border_color: "#BFBFBF",
2709
+ external_component_queue_bg_color: "#CCCCCC",
2710
+ external_component_queue_border_color: "#BFBFBF"
2711
+ },
2712
+ sankey: {
2713
+ useMaxWidth: !0,
2714
+ width: 600,
2715
+ height: 400,
2716
+ linkColor: "gradient",
2717
+ nodeAlignment: "justify",
2718
+ showValues: !0,
2719
+ prefix: "",
2720
+ suffix: ""
2721
+ },
2722
+ block: {
2723
+ useMaxWidth: !0,
2724
+ padding: 8
2725
+ },
2726
+ packet: {
2727
+ useMaxWidth: !0,
2728
+ rowHeight: 32,
2729
+ bitWidth: 32,
2730
+ bitsPerRow: 32,
2731
+ showBits: !0,
2732
+ paddingX: 5,
2733
+ paddingY: 5
2734
+ },
2735
+ treeView: {
2736
+ useMaxWidth: !0,
2737
+ rowIndent: 10,
2738
+ paddingX: 5,
2739
+ paddingY: 5,
2740
+ lineThickness: 1
2741
+ },
2742
+ architecture: {
2743
+ useMaxWidth: !0,
2744
+ padding: 40,
2745
+ iconSize: 80,
2746
+ fontSize: 16,
2747
+ randomize: !1
2748
+ },
2749
+ radar: {
2750
+ useMaxWidth: !0,
2751
+ width: 600,
2752
+ height: 600,
2753
+ marginTop: 50,
2754
+ marginRight: 50,
2755
+ marginBottom: 50,
2756
+ marginLeft: 50,
2757
+ axisScaleFactor: 1,
2758
+ axisLabelFactor: 1.05,
2759
+ curveTension: .17
2760
+ },
2761
+ venn: {
2762
+ useMaxWidth: !0,
2763
+ width: 800,
2764
+ height: 450,
2765
+ padding: 8,
2766
+ useDebugLayout: !1
2767
+ },
2768
+ theme: "default",
2769
+ look: "classic",
2770
+ handDrawnSeed: 0,
2771
+ layout: "dagre",
2772
+ maxTextSize: 5e4,
2773
+ maxEdges: 500,
2774
+ darkMode: !1,
2775
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2776
+ logLevel: 5,
2777
+ securityLevel: "strict",
2778
+ startOnLoad: !0,
2779
+ arrowMarkerAbsolute: !1,
2780
+ secure: [
2781
+ "secure",
2782
+ "securityLevel",
2783
+ "startOnLoad",
2784
+ "maxTextSize",
2785
+ "suppressErrorRendering",
2786
+ "maxEdges"
2787
+ ],
2788
+ legacyMathML: !1,
2789
+ forceLegacyMathML: !1,
2790
+ deterministicIds: !1,
2791
+ fontSize: 16,
2792
+ markdownAutoWrap: !0,
2793
+ suppressErrorRendering: !1
2794
+ }, Et = {
2795
+ ...J,
2796
+ deterministicIDSeed: void 0,
2797
+ elk: {
2798
+ mergeEdges: !1,
2799
+ nodePlacementStrategy: "BRANDES_KOEPF",
2800
+ forceNodeModelOrder: !1,
2801
+ considerModelOrder: "NODES_AND_EDGES"
2802
+ },
2803
+ themeCSS: void 0,
2804
+ themeVariables: q.default.getThemeVariables(),
2805
+ sequence: {
2806
+ ...J.sequence,
2807
+ messageFont: /* @__PURE__ */ n(function() {
2808
+ return {
2809
+ fontFamily: this.messageFontFamily,
2810
+ fontSize: this.messageFontSize,
2811
+ fontWeight: this.messageFontWeight
2812
+ };
2813
+ }, "messageFont"),
2814
+ noteFont: /* @__PURE__ */ n(function() {
2815
+ return {
2816
+ fontFamily: this.noteFontFamily,
2817
+ fontSize: this.noteFontSize,
2818
+ fontWeight: this.noteFontWeight
2819
+ };
2820
+ }, "noteFont"),
2821
+ actorFont: /* @__PURE__ */ n(function() {
2822
+ return {
2823
+ fontFamily: this.actorFontFamily,
2824
+ fontSize: this.actorFontSize,
2825
+ fontWeight: this.actorFontWeight
2826
+ };
2827
+ }, "actorFont")
2828
+ },
2829
+ class: { hideEmptyMembersBox: !1 },
2830
+ gantt: {
2831
+ ...J.gantt,
2832
+ tickInterval: void 0,
2833
+ useWidth: void 0
2834
+ },
2835
+ c4: {
2836
+ ...J.c4,
2837
+ useWidth: void 0,
2838
+ personFont: /* @__PURE__ */ n(function() {
2839
+ return {
2840
+ fontFamily: this.personFontFamily,
2841
+ fontSize: this.personFontSize,
2842
+ fontWeight: this.personFontWeight
2843
+ };
2844
+ }, "personFont"),
2845
+ flowchart: {
2846
+ ...J.flowchart,
2847
+ inheritDir: !1
2848
+ },
2849
+ external_personFont: /* @__PURE__ */ n(function() {
2850
+ return {
2851
+ fontFamily: this.external_personFontFamily,
2852
+ fontSize: this.external_personFontSize,
2853
+ fontWeight: this.external_personFontWeight
2854
+ };
2855
+ }, "external_personFont"),
2856
+ systemFont: /* @__PURE__ */ n(function() {
2857
+ return {
2858
+ fontFamily: this.systemFontFamily,
2859
+ fontSize: this.systemFontSize,
2860
+ fontWeight: this.systemFontWeight
2861
+ };
2862
+ }, "systemFont"),
2863
+ external_systemFont: /* @__PURE__ */ n(function() {
2864
+ return {
2865
+ fontFamily: this.external_systemFontFamily,
2866
+ fontSize: this.external_systemFontSize,
2867
+ fontWeight: this.external_systemFontWeight
2868
+ };
2869
+ }, "external_systemFont"),
2870
+ system_dbFont: /* @__PURE__ */ n(function() {
2871
+ return {
2872
+ fontFamily: this.system_dbFontFamily,
2873
+ fontSize: this.system_dbFontSize,
2874
+ fontWeight: this.system_dbFontWeight
2875
+ };
2876
+ }, "system_dbFont"),
2877
+ external_system_dbFont: /* @__PURE__ */ n(function() {
2878
+ return {
2879
+ fontFamily: this.external_system_dbFontFamily,
2880
+ fontSize: this.external_system_dbFontSize,
2881
+ fontWeight: this.external_system_dbFontWeight
2882
+ };
2883
+ }, "external_system_dbFont"),
2884
+ system_queueFont: /* @__PURE__ */ n(function() {
2885
+ return {
2886
+ fontFamily: this.system_queueFontFamily,
2887
+ fontSize: this.system_queueFontSize,
2888
+ fontWeight: this.system_queueFontWeight
2889
+ };
2890
+ }, "system_queueFont"),
2891
+ external_system_queueFont: /* @__PURE__ */ n(function() {
2892
+ return {
2893
+ fontFamily: this.external_system_queueFontFamily,
2894
+ fontSize: this.external_system_queueFontSize,
2895
+ fontWeight: this.external_system_queueFontWeight
2896
+ };
2897
+ }, "external_system_queueFont"),
2898
+ containerFont: /* @__PURE__ */ n(function() {
2899
+ return {
2900
+ fontFamily: this.containerFontFamily,
2901
+ fontSize: this.containerFontSize,
2902
+ fontWeight: this.containerFontWeight
2903
+ };
2904
+ }, "containerFont"),
2905
+ external_containerFont: /* @__PURE__ */ n(function() {
2906
+ return {
2907
+ fontFamily: this.external_containerFontFamily,
2908
+ fontSize: this.external_containerFontSize,
2909
+ fontWeight: this.external_containerFontWeight
2910
+ };
2911
+ }, "external_containerFont"),
2912
+ container_dbFont: /* @__PURE__ */ n(function() {
2913
+ return {
2914
+ fontFamily: this.container_dbFontFamily,
2915
+ fontSize: this.container_dbFontSize,
2916
+ fontWeight: this.container_dbFontWeight
2917
+ };
2918
+ }, "container_dbFont"),
2919
+ external_container_dbFont: /* @__PURE__ */ n(function() {
2920
+ return {
2921
+ fontFamily: this.external_container_dbFontFamily,
2922
+ fontSize: this.external_container_dbFontSize,
2923
+ fontWeight: this.external_container_dbFontWeight
2924
+ };
2925
+ }, "external_container_dbFont"),
2926
+ container_queueFont: /* @__PURE__ */ n(function() {
2927
+ return {
2928
+ fontFamily: this.container_queueFontFamily,
2929
+ fontSize: this.container_queueFontSize,
2930
+ fontWeight: this.container_queueFontWeight
2931
+ };
2932
+ }, "container_queueFont"),
2933
+ external_container_queueFont: /* @__PURE__ */ n(function() {
2934
+ return {
2935
+ fontFamily: this.external_container_queueFontFamily,
2936
+ fontSize: this.external_container_queueFontSize,
2937
+ fontWeight: this.external_container_queueFontWeight
2938
+ };
2939
+ }, "external_container_queueFont"),
2940
+ componentFont: /* @__PURE__ */ n(function() {
2941
+ return {
2942
+ fontFamily: this.componentFontFamily,
2943
+ fontSize: this.componentFontSize,
2944
+ fontWeight: this.componentFontWeight
2945
+ };
2946
+ }, "componentFont"),
2947
+ external_componentFont: /* @__PURE__ */ n(function() {
2948
+ return {
2949
+ fontFamily: this.external_componentFontFamily,
2950
+ fontSize: this.external_componentFontSize,
2951
+ fontWeight: this.external_componentFontWeight
2952
+ };
2953
+ }, "external_componentFont"),
2954
+ component_dbFont: /* @__PURE__ */ n(function() {
2955
+ return {
2956
+ fontFamily: this.component_dbFontFamily,
2957
+ fontSize: this.component_dbFontSize,
2958
+ fontWeight: this.component_dbFontWeight
2959
+ };
2960
+ }, "component_dbFont"),
2961
+ external_component_dbFont: /* @__PURE__ */ n(function() {
2962
+ return {
2963
+ fontFamily: this.external_component_dbFontFamily,
2964
+ fontSize: this.external_component_dbFontSize,
2965
+ fontWeight: this.external_component_dbFontWeight
2966
+ };
2967
+ }, "external_component_dbFont"),
2968
+ component_queueFont: /* @__PURE__ */ n(function() {
2969
+ return {
2970
+ fontFamily: this.component_queueFontFamily,
2971
+ fontSize: this.component_queueFontSize,
2972
+ fontWeight: this.component_queueFontWeight
2973
+ };
2974
+ }, "component_queueFont"),
2975
+ external_component_queueFont: /* @__PURE__ */ n(function() {
2976
+ return {
2977
+ fontFamily: this.external_component_queueFontFamily,
2978
+ fontSize: this.external_component_queueFontSize,
2979
+ fontWeight: this.external_component_queueFontWeight
2980
+ };
2981
+ }, "external_component_queueFont"),
2982
+ boundaryFont: /* @__PURE__ */ n(function() {
2983
+ return {
2984
+ fontFamily: this.boundaryFontFamily,
2985
+ fontSize: this.boundaryFontSize,
2986
+ fontWeight: this.boundaryFontWeight
2987
+ };
2988
+ }, "boundaryFont"),
2989
+ messageFont: /* @__PURE__ */ n(function() {
2990
+ return {
2991
+ fontFamily: this.messageFontFamily,
2992
+ fontSize: this.messageFontSize,
2993
+ fontWeight: this.messageFontWeight
2994
+ };
2995
+ }, "messageFont")
2996
+ },
2997
+ pie: {
2998
+ ...J.pie,
2999
+ useWidth: 984
3000
+ },
3001
+ xyChart: {
3002
+ ...J.xyChart,
3003
+ useWidth: void 0
3004
+ },
3005
+ requirement: {
3006
+ ...J.requirement,
3007
+ useWidth: void 0
3008
+ },
3009
+ packet: { ...J.packet },
3010
+ treeView: {
3011
+ ...J.treeView,
3012
+ useWidth: void 0
3013
+ },
3014
+ radar: { ...J.radar },
3015
+ ishikawa: { ...J.ishikawa },
3016
+ treemap: {
3017
+ useMaxWidth: !0,
3018
+ padding: 10,
3019
+ diagramPadding: 8,
3020
+ showValues: !0,
3021
+ nodeWidth: 100,
3022
+ nodeHeight: 40,
3023
+ borderWidth: 1,
3024
+ valueFontSize: 12,
3025
+ labelFontSize: 14,
3026
+ valueFormat: ","
3027
+ },
3028
+ venn: { ...J.venn }
3029
+ }, Dt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3030
+ ...n,
3031
+ t + r,
3032
+ ...Dt(e[r], "")
3033
+ ] : [...n, t + r], []), "keyify"), Y = new Set(Dt(Et, "")), X = Et, Ot = /* @__PURE__ */ n((e) => {
3034
+ if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3035
+ if (Array.isArray(e)) {
3036
+ e.forEach((e) => Ot(e));
3037
+ return;
3038
+ }
3039
+ for (let n of Object.keys(e)) {
3040
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Y.has(n) || e[n] == null) {
3041
+ t.debug("sanitize deleting key: ", n), delete e[n];
3042
+ continue;
3043
+ }
3044
+ if (typeof e[n] == "object") {
3045
+ t.debug("sanitizing object", n), Ot(e[n]);
3046
+ continue;
3047
+ }
3048
+ for (let r of [
3049
+ "themeCSS",
3050
+ "fontFamily",
3051
+ "altFontFamily"
3052
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = kt(e[n]));
3053
+ }
3054
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3055
+ let n = e.themeVariables[t];
3056
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3057
+ }
3058
+ t.debug("After sanitization", e);
3059
+ }
3060
+ }, "sanitizeDirective"), kt = /* @__PURE__ */ n((e) => {
3061
+ let t = 0, n = 0;
3062
+ for (let r of e) {
3063
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3064
+ r === "{" ? t++ : r === "}" && n++;
3065
+ }
3066
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3067
+ }, "sanitizeCss"), Z = Object.freeze(X), At = /* @__PURE__ */ n((e) => !(e === !1 || [
3068
+ "false",
3069
+ "null",
3070
+ "0"
3071
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), Q = B({}, Z), jt, $ = [], Mt = B({}, Z), Nt = /* @__PURE__ */ n((e, t) => {
3072
+ let n = B({}, e), r = {};
3073
+ for (let e of t) Bt(e), r = B(r, e);
3074
+ if (n = B(n, r), r.theme && r.theme in q) {
3075
+ let e = B(B({}, jt).themeVariables || {}, r.themeVariables);
3076
+ n.theme && n.theme in q && (n.themeVariables = q[n.theme].getThemeVariables(e));
3077
+ }
3078
+ return Mt = n, Kt(Mt), Mt;
3079
+ }, "updateCurrentConfig"), Pt = /* @__PURE__ */ n((e) => (Q = B({}, Z), Q = B(Q, e), e.theme && q[e.theme] && (Q.themeVariables = q[e.theme].getThemeVariables(e.themeVariables)), Nt(Q, $), Q), "setSiteConfig"), Ft = /* @__PURE__ */ n((e) => {
3080
+ jt = B({}, e);
3081
+ }, "saveConfigFromInitialize"), It = /* @__PURE__ */ n((e) => (Q = B(Q, e), Nt(Q, $), Q), "updateSiteConfig"), Lt = /* @__PURE__ */ n(() => B({}, Q), "getSiteConfig"), Rt = /* @__PURE__ */ n((e) => (Kt(e), B(Mt, e), zt()), "setConfig"), zt = /* @__PURE__ */ n(() => B({}, Mt), "getConfig"), Bt = /* @__PURE__ */ n((e) => {
3082
+ e && (["secure", ...Q.secure ?? []].forEach((n) => {
3083
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3084
+ }), Object.keys(e).forEach((t) => {
3085
+ t.startsWith("__") && delete e[t];
3086
+ }), Object.keys(e).forEach((t) => {
3087
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Bt(e[t]);
3088
+ }));
3089
+ }, "sanitize"), Vt = /* @__PURE__ */ n((e) => {
3090
+ Ot(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3091
+ ...e.themeVariables,
3092
+ fontFamily: e.fontFamily
3093
+ }), $.push(e), Nt(Q, $);
3094
+ }, "addDirective"), Ht = /* @__PURE__ */ n((e = Q) => {
3095
+ $ = [], Nt(e, $);
3096
+ }, "reset"), Ut = {
3097
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3098
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3099
+ }, Wt = {}, Gt = /* @__PURE__ */ n((e) => {
3100
+ Wt[e] || (t.warn(Ut[e]), Wt[e] = !0);
3101
+ }, "issueWarning"), Kt = /* @__PURE__ */ n((e) => {
3102
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Gt("LAZY_LOAD_DEPRECATED");
3103
+ }, "checkConfig"), qt = /* @__PURE__ */ n(() => {
3104
+ let e = {};
3105
+ jt && (e = B(e, jt));
3106
+ for (let t of $) e = B(e, t);
3107
+ return e;
3108
+ }, "getUserDefinedConfig"), Jt = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Gt("FLOWCHART_HTML_LABELS_DEPRECATED"), At(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Yt = /<br\s*\/?>/gi, Xt = /* @__PURE__ */ n((e) => e ? sn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Zt = /* @__PURE__ */ (() => {
3109
+ let e = !1;
3110
+ return () => {
3111
+ e ||= (Qt(), !0);
3112
+ };
3113
+ })();
3114
+ function Qt() {
3115
+ let e = "data-temp-href-target";
3116
+ I.addHook("beforeSanitizeAttributes", (t) => {
3117
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3118
+ }), I.addHook("afterSanitizeAttributes", (t) => {
3119
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3120
+ });
3121
+ }
3122
+ n(Qt, "setupDompurifyHooks");
3123
+ var $t = /* @__PURE__ */ n((e) => (Zt(), I.sanitize(e)), "removeScript"), en = /* @__PURE__ */ n((e, t) => {
3124
+ if (Jt(t)) {
3125
+ let n = t.securityLevel;
3126
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = $t(e) : n !== "loose" && (e = sn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = on(e));
3127
+ }
3128
+ return e;
3129
+ }, "sanitizeMore"), tn = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? I.sanitize(en(e, t), t.dompurifyConfig).toString() : I.sanitize(en(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), nn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? tn(e, t) : e.flat().map((e) => tn(e, t)), "sanitizeTextOrArray"), rn = /* @__PURE__ */ n((e) => Yt.test(e), "hasBreaks"), an = /* @__PURE__ */ n((e) => e.split(Yt), "splitBreaks"), on = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), sn = /* @__PURE__ */ n((e) => e.replace(Yt, "#br#"), "breakToPlaceholder"), cn = /* @__PURE__ */ n((e) => {
3130
+ let t = "";
3131
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3132
+ }, "getUrl"), ln = /* @__PURE__ */ n(function(...e) {
3133
+ let t = e.filter((e) => !isNaN(e));
3134
+ return Math.max(...t);
3135
+ }, "getMax"), un = /* @__PURE__ */ n(function(...e) {
3136
+ let t = e.filter((e) => !isNaN(e));
3137
+ return Math.min(...t);
3138
+ }, "getMin"), dn = /* @__PURE__ */ n(function(e) {
3139
+ let t = e.split(/(,)/), n = [];
3140
+ for (let e = 0; e < t.length; e++) {
3141
+ let r = t[e];
3142
+ if (r === "," && e > 0 && e + 1 < t.length) {
3143
+ let i = t[e - 1], a = t[e + 1];
3144
+ pn(i, a) && (r = i + "," + a, e++, n.pop());
3145
+ }
3146
+ n.push(mn(r));
3147
+ }
3148
+ return n.join("");
3149
+ }, "parseGenericTypes"), fn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), pn = /* @__PURE__ */ n((e, t) => {
3150
+ let n = fn(e, "~"), r = fn(t, "~");
3151
+ return n === 1 && r === 1;
3152
+ }, "shouldCombineSets"), mn = /* @__PURE__ */ n((e) => {
3153
+ let t = fn(e, "~"), n = !1;
3154
+ if (t <= 1) return e;
3155
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3156
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3157
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3158
+ return n && r.unshift("~"), r.join("");
3159
+ }, "processSet"), hn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), gn = /\$\$(.*)\$\$/g, _n = /* @__PURE__ */ n((e) => (e.match(gn)?.length ?? 0) > 0, "hasKatex"), vn = /* @__PURE__ */ n(async (e, t) => {
3160
+ let n = document.createElement("div");
3161
+ n.innerHTML = await bn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3162
+ let r = {
3163
+ width: n.clientWidth,
3164
+ height: n.clientHeight
3165
+ };
3166
+ return n.remove(), r;
3167
+ }, "calculateMathMLDimensions"), yn = /* @__PURE__ */ n(async (e, t) => {
3168
+ if (!_n(e)) return e;
3169
+ if (!(hn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(gn, "MathML is unsupported in this environment.");
3170
+ {
3171
+ let { default: n } = await import("./katex-DI2iMRYj.js"), r = t.forceLegacyMathML || !hn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3172
+ return e.split(Yt).map((e) => _n(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(gn, (e, t) => n.renderToString(t, {
3173
+ throwOnError: !0,
3174
+ displayMode: !0,
3175
+ output: r
3176
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3177
+ }
3178
+ return e.replace(gn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3179
+ }, "renderKatexUnsanitized"), bn = /* @__PURE__ */ n(async (e, t) => tn(await yn(e, t), t), "renderKatexSanitized"), xn = {
3180
+ getRows: Xt,
3181
+ sanitizeText: tn,
3182
+ sanitizeTextOrArray: nn,
3183
+ hasBreaks: rn,
3184
+ splitBreaks: an,
3185
+ lineBreakRegex: Yt,
3186
+ removeScript: $t,
3187
+ getUrl: cn,
3188
+ evaluate: At,
3189
+ getMax: ln,
3190
+ getMin: un
3191
+ }, Sn = /* @__PURE__ */ n(function(e, t) {
3192
+ for (let n of t) e.attr(n[0], n[1]);
3193
+ }, "d3Attrs"), Cn = /* @__PURE__ */ n(function(e, t, n) {
3194
+ let r = /* @__PURE__ */ new Map();
3195
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3196
+ }, "calculateSvgSizeAttrs"), wn = /* @__PURE__ */ n(function(e, t, n, r) {
3197
+ Sn(e, Cn(t, n, r));
3198
+ }, "configureSvgSize"), Tn = /* @__PURE__ */ n(function(e, n, r, i) {
3199
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3200
+ t.info(`SVG bounds: ${o}x${s}`, a);
3201
+ let c = 0, l = 0;
3202
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), wn(n, l, c, i);
3203
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3204
+ n.attr("viewBox", u);
3205
+ }, "setupGraphViewbox"), En = {}, Dn = /* @__PURE__ */ n((e, n, r, i) => {
3206
+ let a = "";
3207
+ return e in En && En[e] ? a = En[e]({
3208
+ ...r,
3209
+ svgId: i
3210
+ }) : t.warn(`No theme found for ${e}`), ` & {
3211
+ font-family: ${r.fontFamily};
3212
+ font-size: ${r.fontSize};
3213
+ fill: ${r.textColor}
3214
+ }
3215
+ @keyframes edge-animation-frame {
3216
+ from {
3217
+ stroke-dashoffset: 0;
3218
+ }
3219
+ }
3220
+ @keyframes dash {
3221
+ to {
3222
+ stroke-dashoffset: 0;
3223
+ }
3224
+ }
3225
+ & .edge-animation-slow {
3226
+ stroke-dasharray: 9,5 !important;
3227
+ stroke-dashoffset: 900;
3228
+ animation: dash 50s linear infinite;
3229
+ stroke-linecap: round;
3230
+ }
3231
+ & .edge-animation-fast {
3232
+ stroke-dasharray: 9,5 !important;
3233
+ stroke-dashoffset: 900;
3234
+ animation: dash 20s linear infinite;
3235
+ stroke-linecap: round;
3236
+ }
3237
+ /* Classes common for multiple diagrams */
3238
+
3239
+ & .error-icon {
3240
+ fill: ${r.errorBkgColor};
3241
+ }
3242
+ & .error-text {
3243
+ fill: ${r.errorTextColor};
3244
+ stroke: ${r.errorTextColor};
3245
+ }
3246
+
3247
+ & .edge-thickness-normal {
3248
+ stroke-width: ${r.strokeWidth ?? 1}px;
3249
+ }
3250
+ & .edge-thickness-thick {
3251
+ stroke-width: 3.5px
3252
+ }
3253
+ & .edge-pattern-solid {
3254
+ stroke-dasharray: 0;
3255
+ }
3256
+ & .edge-thickness-invisible {
3257
+ stroke-width: 0;
3258
+ fill: none;
3259
+ }
3260
+ & .edge-pattern-dashed{
3261
+ stroke-dasharray: 3;
3262
+ }
3263
+ .edge-pattern-dotted {
3264
+ stroke-dasharray: 2;
3265
+ }
3266
+
3267
+ & .marker {
3268
+ fill: ${r.lineColor};
3269
+ stroke: ${r.lineColor};
3270
+ }
3271
+ & .marker.cross {
3272
+ stroke: ${r.lineColor};
3273
+ }
3274
+
3275
+ & svg {
3276
+ font-family: ${r.fontFamily};
3277
+ font-size: ${r.fontSize};
3278
+ }
3279
+ & p {
3280
+ margin: 0
3281
+ }
3282
+
3283
+ ${a}
3284
+ .node .neo-node {
3285
+ stroke: ${r.nodeBorder};
3286
+ }
3287
+
3288
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3289
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3290
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3291
+ }
3292
+
3293
+
3294
+ [data-look="neo"].node path {
3295
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3296
+ stroke-width: ${r.strokeWidth ?? 1}px;
3297
+ }
3298
+
3299
+ [data-look="neo"].node .outer-path {
3300
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3301
+ }
3302
+
3303
+ [data-look="neo"].node .neo-line path {
3304
+ stroke: ${r.nodeBorder};
3305
+ filter: none;
3306
+ }
3307
+
3308
+ [data-look="neo"].node circle{
3309
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3310
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3311
+ }
3312
+
3313
+ [data-look="neo"].node circle .state-start{
3314
+ fill: #000000;
3315
+ }
3316
+
3317
+ [data-look="neo"].icon-shape .icon {
3318
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3319
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3320
+ }
3321
+
3322
+ [data-look="neo"].icon-shape .icon-neo path {
3323
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3324
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3325
+ }
3326
+
3327
+ ${n}
3328
+ `;
3329
+ }, "getStyles"), On = /* @__PURE__ */ n((e, t) => {
3330
+ t !== void 0 && (En[e] = t);
3331
+ }, "addStylesForDiagram"), kn = Dn, An = {};
3332
+ r(An, {
3333
+ clear: () => Fn,
3334
+ getAccDescription: () => zn,
3335
+ getAccTitle: () => Ln,
3336
+ getDiagramTitle: () => Vn,
3337
+ setAccDescription: () => Rn,
3338
+ setAccTitle: () => In,
3339
+ setDiagramTitle: () => Bn
3340
+ });
3341
+ var jn = "", Mn = "", Nn = "", Pn = /* @__PURE__ */ n((e) => tn(e, zt()), "sanitizeText"), Fn = /* @__PURE__ */ n(() => {
3342
+ jn = "", Nn = "", Mn = "";
3343
+ }, "clear"), In = /* @__PURE__ */ n((e) => {
3344
+ jn = Pn(e).replace(/^\s+/g, "");
3345
+ }, "setAccTitle"), Ln = /* @__PURE__ */ n(() => jn, "getAccTitle"), Rn = /* @__PURE__ */ n((e) => {
3346
+ Nn = Pn(e).replace(/\n\s+/g, "\n");
3347
+ }, "setAccDescription"), zn = /* @__PURE__ */ n(() => Nn, "getAccDescription"), Bn = /* @__PURE__ */ n((e) => {
3348
+ Mn = Pn(e);
3349
+ }, "setDiagramTitle"), Vn = /* @__PURE__ */ n(() => Mn, "getDiagramTitle"), Hn = t, Un = e, Wn = zt, Gn = Rt, Kn = Z, qn = /* @__PURE__ */ n((e) => tn(e, Wn()), "sanitizeText"), Jn = Tn, Yn = /* @__PURE__ */ n(() => An, "getCommonDb"), Xn = {}, Zn = /* @__PURE__ */ n((e, t, n) => {
3350
+ Xn[e] && Hn.warn(`Diagram with id ${e} already registered. Overwriting.`), Xn[e] = t, n && at(e, n), On(e, t.styles), t.injectUtils?.(Hn, Un, Wn, qn, Jn, Yn(), () => {});
3351
+ }, "registerDiagram"), Qn = /* @__PURE__ */ n((e) => {
3352
+ if (e in Xn) return Xn[e];
3353
+ throw new $n(e);
3354
+ }, "getDiagram"), $n = class extends Error {
3355
+ static {
3356
+ n(this, "DiagramNotFoundError");
3357
+ }
3358
+ constructor(e) {
3359
+ super(`Diagram ${e} not found.`);
3360
+ }
3361
+ };
3362
+ //#endregion
3363
+ export { y as $, Yt as A, Rn as B, Vn as C, cn as D, pt as E, Ht as F, Pt as G, Rt as H, Ot as I, kn as J, Tn as K, tn as L, Zn as M, it as N, qt as O, bn as P, b as Q, qn as R, ot as S, Lt as T, Gn as U, In as V, Bn as W, It as X, q as Y, I as Z, zn as _, Fn as a, Wn as b, wn as c, X as d, v as et, rt as f, L as g, At as h, vn as i, a as it, dn as j, _n as k, Z as l, R as m, Vt as n, g as nt, An as o, z as p, Jn as q, B as r, m as rt, xn as s, nt as t, _ as tt, Kn as u, Ln as v, Jt as w, Qn as x, zt as y, Ft as z };