@fibery/custom-app-text-editor 1.2.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 (105) hide show
  1. package/LICENSE +214 -0
  2. package/README.md +33 -0
  3. package/lib/abnfDiagram-VRR7QNED-BgjOQqEh.js +89 -0
  4. package/lib/arc-Dp0rqagO.js +82 -0
  5. package/lib/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  6. package/lib/architectureDiagram-ZJ3FMSHR-BucIluTN.js +4129 -0
  7. package/lib/array-CApNbSU9.js +6 -0
  8. package/lib/blockDiagram-677ZJIJ3-CWYuHThP.js +3157 -0
  9. package/lib/c4Diagram-LMCZKHZV-Cr3_W-xe.js +2982 -0
  10. package/lib/channel-Bb7a6w5c.js +5 -0
  11. package/lib/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  12. package/lib/chunk-32BRIVSS-b-BvyGz0.js +61 -0
  13. package/lib/chunk-52WLFC77-Cf8zEoqs.js +593 -0
  14. package/lib/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  15. package/lib/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  16. package/lib/chunk-C7G6YPKG-CmOuVFlJ.js +67 -0
  17. package/lib/chunk-EX3LRPZG-LynZw14I.js +2042 -0
  18. package/lib/chunk-HOUHSVGY-Br7ZSMKe.js +275 -0
  19. package/lib/chunk-ICXQ74PX-VqT5WUTt.js +1330 -0
  20. package/lib/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  21. package/lib/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  22. package/lib/chunk-MOJQB5TN-rQ4AfTd9.js +490 -0
  23. package/lib/chunk-OGEWGWER-BvF6eV9Q.js +32 -0
  24. package/lib/chunk-PUDLZKDR-BW7SZvCB.js +4135 -0
  25. package/lib/chunk-Q4XR5HBZ-CRgGP3ez.js +1635 -0
  26. package/lib/chunk-RYQCIY6F-CHlASUpG.js +241 -0
  27. package/lib/chunk-V7JOEXUC-OY39ml6X.js +3357 -0
  28. package/lib/chunk-VR4S4FIN-Bk7IFdYB.js +26 -0
  29. package/lib/chunk-WYO6CB5R-MV-yOaop.js +3769 -0
  30. package/lib/chunk-XXDRQBXY-Djd1ChwJ.js +9 -0
  31. package/lib/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  32. package/lib/chunk-ZGVPDNZ5-l81xl1BI.js +3738 -0
  33. package/lib/classDiagram-OUVF2IWQ--wRzSvLt.js +30 -0
  34. package/lib/classDiagram-v2-EOCWNBFH-ChMCdPO-.js +30 -0
  35. package/lib/cose-bilkent-JH36ORCC-CyVZn5M3.js +2254 -0
  36. package/lib/custom-app-text-editor.css +2 -0
  37. package/lib/custom-app-text-editor.js +81102 -0
  38. package/lib/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  39. package/lib/cynefinDiagram-TSTJHNR4-988Y73wV.js +355 -0
  40. package/lib/cytoscape.esm-DMXbtFI-.js +18145 -0
  41. package/lib/dagre-Dmarb1s8.js +1699 -0
  42. package/lib/dagre-VKFMJZFB-Bf-pz2Lx.js +328 -0
  43. package/lib/defaultLocale-A87O3snN.js +198 -0
  44. package/lib/diagram-FQU43EPY-BT8WeVzc.js +432 -0
  45. package/lib/diagram-G47NLZAW-vZ2XG37l.js +527 -0
  46. package/lib/diagram-NH7WQ7WH-CH0IfHB0.js +134 -0
  47. package/lib/diagram-OA4YK3LP-BgwQcJfp.js +300 -0
  48. package/lib/diagram-WEI45ONY-Cd3sVPil.js +214 -0
  49. package/lib/dist-PGS6ynRO.js +59 -0
  50. package/lib/ebnfDiagram-CCIWWBDH-CwBFb2Fm.js +100 -0
  51. package/lib/erDiagram-Q63AITRT-BshRACvj.js +1727 -0
  52. package/lib/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  53. package/lib/flowDiagram-23GEKE2U-C3zDgFvZ.js +16 -0
  54. package/lib/ganttDiagram-NO4QXBWP-BD5PiE8x.js +3073 -0
  55. package/lib/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  56. package/lib/gitGraphDiagram-IHSO6WYX-BAhccBh3.js +733 -0
  57. package/lib/graphlib-DglfpsVp.js +1267 -0
  58. package/lib/index.browser-Dv9K8IAp.js +26 -0
  59. package/lib/info-DKCQHKI2-BD_vOCz6.js +3 -0
  60. package/lib/infoDiagram-FWYZ7A6U-CGZnf03G.js +20 -0
  61. package/lib/init-sjaVZO3f.js +13 -0
  62. package/lib/ishikawaDiagram-FXEZZL3T-PFfVM0NO.js +719 -0
  63. package/lib/journeyDiagram-5HDEW3XC-CRGz7dcx.js +884 -0
  64. package/lib/kanban-definition-HUTT4EX6-BBH4Yn5e.js +974 -0
  65. package/lib/line-CJQicKfr.js +34 -0
  66. package/lib/linear-B9Cv96-J.js +288 -0
  67. package/lib/map-C7KALUOH.js +241 -0
  68. package/lib/mermaid-parser.core-BupC9XGF.js +638 -0
  69. package/lib/mermaid-renderer-Cp0xusfR.js +2425 -0
  70. package/lib/mindmap-definition-LN4V7U3C-CWL1sg0K.js +978 -0
  71. package/lib/ordinal-CNQzPcrr.js +65 -0
  72. package/lib/packet-7NZHBO7P-CgBlALV1.js +3 -0
  73. package/lib/path-DVvH25eQ.js +84 -0
  74. package/lib/pegDiagram-2B236MQR-BKv8dTtv.js +94 -0
  75. package/lib/pie-RZYD4A2V-CryPC-P_.js +3 -0
  76. package/lib/pieDiagram-ENE6RG2P-CXeFg_cL.js +203 -0
  77. package/lib/quadrantDiagram-ABIIQ3AL-v_u3aC8Y.js +2001 -0
  78. package/lib/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  79. package/lib/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  80. package/lib/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  81. package/lib/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  82. package/lib/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  83. package/lib/railroadDiagram-RFXS5EU6-mEC9tVS-.js +76 -0
  84. package/lib/requirementDiagram-TGXJPOKE-BAEzI7V4.js +2223 -0
  85. package/lib/rolldown-runtime-DArdT4gl.js +23 -0
  86. package/lib/rough.esm-B2w_aYoc.js +1361 -0
  87. package/lib/sankeyDiagram-HTMAVEWB-Dbu-sl2E.js +972 -0
  88. package/lib/sequenceDiagram-DBY2YBRQ-DCuWmWHX.js +4156 -0
  89. package/lib/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  90. package/lib/src-DQbL46sB.js +2139 -0
  91. package/lib/src-DuuHKEe6.js +704 -0
  92. package/lib/stateDiagram-2N3HPSRC-fs9QmDMR.js +220 -0
  93. package/lib/stateDiagram-v2-6OUMAXLB-wWxYbttN.js +30 -0
  94. package/lib/swimlanes-5IMT3BWC-QaXUd9db.js +5069 -0
  95. package/lib/swimlanesDiagram-G3AALYLV-BtGToCzH.js +30 -0
  96. package/lib/timeline-definition-FHXFAJF6-CAsyJrsw.js +1069 -0
  97. package/lib/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  98. package/lib/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  99. package/lib/types.d.ts +44 -0
  100. package/lib/v4-CZv9Hsqq.js +33 -0
  101. package/lib/vennDiagram-L72KCM5P-C87u0gjr.js +1880 -0
  102. package/lib/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  103. package/lib/wardleyDiagram-EHGQE667-BxviBDl_.js +645 -0
  104. package/lib/xychartDiagram-FW5EYKEG-BQQhanuH.js +2098 -0
  105. package/package.json +29 -0
@@ -0,0 +1,3769 @@
1
+ import { n as e, t } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
2
+ import { h as n, m as r } from "./src-DQbL46sB.js";
3
+ //#region ../../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.js
4
+ var i = {
5
+ min: {
6
+ r: 0,
7
+ g: 0,
8
+ b: 0,
9
+ s: 0,
10
+ l: 0,
11
+ a: 0
12
+ },
13
+ max: {
14
+ r: 255,
15
+ g: 255,
16
+ b: 255,
17
+ h: 360,
18
+ s: 100,
19
+ l: 100,
20
+ a: 1
21
+ },
22
+ clamp: {
23
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
+ h: (e) => e % 360,
27
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
30
+ },
31
+ toLinear: (e) => {
32
+ let t = e / 255;
33
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
34
+ },
35
+ 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),
36
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
37
+ if (!t) return n * 2.55;
38
+ e /= 360, t /= 100, n /= 100;
39
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
40
+ switch (r) {
41
+ case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
42
+ case "g": return i.hue2rgb(o, a, e) * 255;
43
+ case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
44
+ }
45
+ },
46
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
47
+ e /= 255, t /= 255, n /= 255;
48
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
49
+ if (r === "l") return o * 100;
50
+ if (i === a) return 0;
51
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
52
+ if (r === "s") return c * 100;
53
+ switch (i) {
54
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
55
+ case t: return ((n - e) / s + 2) * 60;
56
+ case n: return ((e - t) / s + 4) * 60;
57
+ default: return -1;
58
+ }
59
+ }
60
+ }, a = {
61
+ channel: i,
62
+ lang: {
63
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
64
+ round: (e) => Math.round(e * 1e10) / 1e10
65
+ },
66
+ unit: { dec2hex: (e) => {
67
+ let t = Math.round(e).toString(16);
68
+ return t.length > 1 ? t : `0${t}`;
69
+ } }
70
+ }, o = {};
71
+ for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
72
+ var s = {
73
+ ALL: 0,
74
+ RGB: 1,
75
+ HSL: 2
76
+ }, c = class {
77
+ constructor() {
78
+ this.type = s.ALL;
79
+ }
80
+ get() {
81
+ return this.type;
82
+ }
83
+ set(e) {
84
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
85
+ this.type = e;
86
+ }
87
+ reset() {
88
+ this.type = s.ALL;
89
+ }
90
+ is(e) {
91
+ return this.type === e;
92
+ }
93
+ }, l = new class {
94
+ constructor(e, t) {
95
+ this.color = t, this.changed = !1, this.data = e, this.type = new c();
96
+ }
97
+ set(e, t) {
98
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
99
+ }
100
+ _ensureHSL() {
101
+ let e = this.data, { h: t, s: n, l: r } = e;
102
+ 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"));
103
+ }
104
+ _ensureRGB() {
105
+ let e = this.data, { r: t, g: n, b: r } = e;
106
+ 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"));
107
+ }
108
+ get r() {
109
+ let e = this.data, t = e.r;
110
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
111
+ }
112
+ get g() {
113
+ let e = this.data, t = e.g;
114
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
115
+ }
116
+ get b() {
117
+ let e = this.data, t = e.b;
118
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
119
+ }
120
+ get h() {
121
+ let e = this.data, t = e.h;
122
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
123
+ }
124
+ get s() {
125
+ let e = this.data, t = e.s;
126
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
127
+ }
128
+ get l() {
129
+ let e = this.data, t = e.l;
130
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
131
+ }
132
+ get a() {
133
+ return this.data.a;
134
+ }
135
+ set r(e) {
136
+ this.type.set(s.RGB), this.changed = !0, this.data.r = e;
137
+ }
138
+ set g(e) {
139
+ this.type.set(s.RGB), this.changed = !0, this.data.g = e;
140
+ }
141
+ set b(e) {
142
+ this.type.set(s.RGB), this.changed = !0, this.data.b = e;
143
+ }
144
+ set h(e) {
145
+ this.type.set(s.HSL), this.changed = !0, this.data.h = e;
146
+ }
147
+ set s(e) {
148
+ this.type.set(s.HSL), this.changed = !0, this.data.s = e;
149
+ }
150
+ set l(e) {
151
+ this.type.set(s.HSL), this.changed = !0, this.data.l = e;
152
+ }
153
+ set a(e) {
154
+ this.changed = !0, this.data.a = e;
155
+ }
156
+ }({
157
+ r: 0,
158
+ g: 0,
159
+ b: 0,
160
+ a: 0
161
+ }, "transparent"), u = {
162
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
163
+ parse: (e) => {
164
+ if (e.charCodeAt(0) !== 35) return;
165
+ let t = e.match(u.re);
166
+ if (!t) return;
167
+ 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;
168
+ return l.set({
169
+ r: (r >> c * (d + 3) & f) * s,
170
+ g: (r >> c * (d + 2) & f) * s,
171
+ b: (r >> c * (d + 1) & f) * s,
172
+ a: a ? (r & f) * s / 255 : 1
173
+ }, e);
174
+ },
175
+ stringify: (e) => {
176
+ let { r: t, g: n, b: r, a: i } = e;
177
+ 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)]}`;
178
+ }
179
+ }, d = {
180
+ 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,
181
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
182
+ _hue2deg: (e) => {
183
+ let t = e.match(d.hueRe);
184
+ if (t) {
185
+ let [, e, n] = t;
186
+ switch (n) {
187
+ case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
188
+ case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
+ case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
190
+ }
191
+ }
192
+ return a.channel.clamp.h(parseFloat(e));
193
+ },
194
+ parse: (e) => {
195
+ let t = e.charCodeAt(0);
196
+ if (t !== 104 && t !== 72) return;
197
+ let n = e.match(d.re);
198
+ if (!n) return;
199
+ let [, r, i, o, s, c] = n;
200
+ return l.set({
201
+ h: d._hue2deg(r),
202
+ s: a.channel.clamp.s(parseFloat(i)),
203
+ l: a.channel.clamp.l(parseFloat(o)),
204
+ a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
205
+ }, e);
206
+ },
207
+ stringify: (e) => {
208
+ let { h: t, s: n, l: r, a: i } = e;
209
+ 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)}%)`;
210
+ }
211
+ }, f = {
212
+ colors: {
213
+ aliceblue: "#f0f8ff",
214
+ antiquewhite: "#faebd7",
215
+ aqua: "#00ffff",
216
+ aquamarine: "#7fffd4",
217
+ azure: "#f0ffff",
218
+ beige: "#f5f5dc",
219
+ bisque: "#ffe4c4",
220
+ black: "#000000",
221
+ blanchedalmond: "#ffebcd",
222
+ blue: "#0000ff",
223
+ blueviolet: "#8a2be2",
224
+ brown: "#a52a2a",
225
+ burlywood: "#deb887",
226
+ cadetblue: "#5f9ea0",
227
+ chartreuse: "#7fff00",
228
+ chocolate: "#d2691e",
229
+ coral: "#ff7f50",
230
+ cornflowerblue: "#6495ed",
231
+ cornsilk: "#fff8dc",
232
+ crimson: "#dc143c",
233
+ cyanaqua: "#00ffff",
234
+ darkblue: "#00008b",
235
+ darkcyan: "#008b8b",
236
+ darkgoldenrod: "#b8860b",
237
+ darkgray: "#a9a9a9",
238
+ darkgreen: "#006400",
239
+ darkgrey: "#a9a9a9",
240
+ darkkhaki: "#bdb76b",
241
+ darkmagenta: "#8b008b",
242
+ darkolivegreen: "#556b2f",
243
+ darkorange: "#ff8c00",
244
+ darkorchid: "#9932cc",
245
+ darkred: "#8b0000",
246
+ darksalmon: "#e9967a",
247
+ darkseagreen: "#8fbc8f",
248
+ darkslateblue: "#483d8b",
249
+ darkslategray: "#2f4f4f",
250
+ darkslategrey: "#2f4f4f",
251
+ darkturquoise: "#00ced1",
252
+ darkviolet: "#9400d3",
253
+ deeppink: "#ff1493",
254
+ deepskyblue: "#00bfff",
255
+ dimgray: "#696969",
256
+ dimgrey: "#696969",
257
+ dodgerblue: "#1e90ff",
258
+ firebrick: "#b22222",
259
+ floralwhite: "#fffaf0",
260
+ forestgreen: "#228b22",
261
+ fuchsia: "#ff00ff",
262
+ gainsboro: "#dcdcdc",
263
+ ghostwhite: "#f8f8ff",
264
+ gold: "#ffd700",
265
+ goldenrod: "#daa520",
266
+ gray: "#808080",
267
+ green: "#008000",
268
+ greenyellow: "#adff2f",
269
+ grey: "#808080",
270
+ honeydew: "#f0fff0",
271
+ hotpink: "#ff69b4",
272
+ indianred: "#cd5c5c",
273
+ indigo: "#4b0082",
274
+ ivory: "#fffff0",
275
+ khaki: "#f0e68c",
276
+ lavender: "#e6e6fa",
277
+ lavenderblush: "#fff0f5",
278
+ lawngreen: "#7cfc00",
279
+ lemonchiffon: "#fffacd",
280
+ lightblue: "#add8e6",
281
+ lightcoral: "#f08080",
282
+ lightcyan: "#e0ffff",
283
+ lightgoldenrodyellow: "#fafad2",
284
+ lightgray: "#d3d3d3",
285
+ lightgreen: "#90ee90",
286
+ lightgrey: "#d3d3d3",
287
+ lightpink: "#ffb6c1",
288
+ lightsalmon: "#ffa07a",
289
+ lightseagreen: "#20b2aa",
290
+ lightskyblue: "#87cefa",
291
+ lightslategray: "#778899",
292
+ lightslategrey: "#778899",
293
+ lightsteelblue: "#b0c4de",
294
+ lightyellow: "#ffffe0",
295
+ lime: "#00ff00",
296
+ limegreen: "#32cd32",
297
+ linen: "#faf0e6",
298
+ magenta: "#ff00ff",
299
+ maroon: "#800000",
300
+ mediumaquamarine: "#66cdaa",
301
+ mediumblue: "#0000cd",
302
+ mediumorchid: "#ba55d3",
303
+ mediumpurple: "#9370db",
304
+ mediumseagreen: "#3cb371",
305
+ mediumslateblue: "#7b68ee",
306
+ mediumspringgreen: "#00fa9a",
307
+ mediumturquoise: "#48d1cc",
308
+ mediumvioletred: "#c71585",
309
+ midnightblue: "#191970",
310
+ mintcream: "#f5fffa",
311
+ mistyrose: "#ffe4e1",
312
+ moccasin: "#ffe4b5",
313
+ navajowhite: "#ffdead",
314
+ navy: "#000080",
315
+ oldlace: "#fdf5e6",
316
+ olive: "#808000",
317
+ olivedrab: "#6b8e23",
318
+ orange: "#ffa500",
319
+ orangered: "#ff4500",
320
+ orchid: "#da70d6",
321
+ palegoldenrod: "#eee8aa",
322
+ palegreen: "#98fb98",
323
+ paleturquoise: "#afeeee",
324
+ palevioletred: "#db7093",
325
+ papayawhip: "#ffefd5",
326
+ peachpuff: "#ffdab9",
327
+ peru: "#cd853f",
328
+ pink: "#ffc0cb",
329
+ plum: "#dda0dd",
330
+ powderblue: "#b0e0e6",
331
+ purple: "#800080",
332
+ rebeccapurple: "#663399",
333
+ red: "#ff0000",
334
+ rosybrown: "#bc8f8f",
335
+ royalblue: "#4169e1",
336
+ saddlebrown: "#8b4513",
337
+ salmon: "#fa8072",
338
+ sandybrown: "#f4a460",
339
+ seagreen: "#2e8b57",
340
+ seashell: "#fff5ee",
341
+ sienna: "#a0522d",
342
+ silver: "#c0c0c0",
343
+ skyblue: "#87ceeb",
344
+ slateblue: "#6a5acd",
345
+ slategray: "#708090",
346
+ slategrey: "#708090",
347
+ snow: "#fffafa",
348
+ springgreen: "#00ff7f",
349
+ tan: "#d2b48c",
350
+ teal: "#008080",
351
+ thistle: "#d8bfd8",
352
+ transparent: "#00000000",
353
+ turquoise: "#40e0d0",
354
+ violet: "#ee82ee",
355
+ wheat: "#f5deb3",
356
+ white: "#ffffff",
357
+ whitesmoke: "#f5f5f5",
358
+ yellow: "#ffff00",
359
+ yellowgreen: "#9acd32"
360
+ },
361
+ parse: (e) => {
362
+ e = e.toLowerCase();
363
+ let t = f.colors[e];
364
+ if (t) return u.parse(t);
365
+ },
366
+ stringify: (e) => {
367
+ let t = u.stringify(e);
368
+ for (let e in f.colors) if (f.colors[e] === t) return e;
369
+ }
370
+ }, p = {
371
+ 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,
372
+ parse: (e) => {
373
+ let t = e.charCodeAt(0);
374
+ if (t !== 114 && t !== 82) return;
375
+ let n = e.match(p.re);
376
+ if (!n) return;
377
+ let [, r, i, o, s, c, u, d, f] = n;
378
+ return l.set({
379
+ r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
+ g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
381
+ b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
382
+ a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
383
+ }, e);
384
+ },
385
+ stringify: (e) => {
386
+ let { r: t, g: n, b: r, a: i } = e;
387
+ 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)})`;
388
+ }
389
+ }, m = {
390
+ format: {
391
+ keyword: f,
392
+ hex: u,
393
+ rgb: p,
394
+ rgba: p,
395
+ hsl: d,
396
+ hsla: d
397
+ },
398
+ parse: (e) => {
399
+ if (typeof e != "string") return e;
400
+ let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
401
+ if (t) return t;
402
+ throw Error(`Unsupported color format: "${e}"`);
403
+ },
404
+ 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)
405
+ }, h = (e, t) => {
406
+ let n = m.parse(e);
407
+ for (let e in t) n[e] = a.channel.clamp[e](t[e]);
408
+ return m.stringify(n);
409
+ }, g = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return h(e, { a: t });
411
+ let i = l.set({
412
+ r: a.channel.clamp.r(e),
413
+ g: a.channel.clamp.g(t),
414
+ b: a.channel.clamp.b(n),
415
+ a: a.channel.clamp.a(r)
416
+ });
417
+ return m.stringify(i);
418
+ }, ee = (e) => {
419
+ 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);
420
+ return a.lang.round(i);
421
+ }, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
422
+ let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
423
+ return i !== o && (r[t] = o), m.stringify(r);
424
+ }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
425
+ let n = m.parse(e), r = {};
426
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
+ return h(e, r);
428
+ }, ne = (e, t, n = 50) => {
429
+ 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;
430
+ return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
431
+ }, S = (e, t = 100) => {
432
+ let n = m.parse(e);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
+ };
435
+ //#endregion
436
+ //#region ../../node_modules/.pnpm/dompurify@3.4.12/node_modules/dompurify/dist/purify.es.mjs
437
+ function re(e, t) {
438
+ (t == null || t > e.length) && (t = e.length);
439
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
+ return r;
441
+ }
442
+ function ie(e) {
443
+ if (Array.isArray(e)) return e;
444
+ }
445
+ function ae(e, t) {
446
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
+ if (n != null) {
448
+ var r, i, a, o, s = [], c = !0, l = !1;
449
+ try {
450
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
451
+ } catch (e) {
452
+ l = !0, i = e;
453
+ } finally {
454
+ try {
455
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
456
+ } finally {
457
+ if (l) throw i;
458
+ }
459
+ }
460
+ return s;
461
+ }
462
+ }
463
+ function oe() {
464
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
+ }
466
+ function se(e, t) {
467
+ return ie(e) || ae(e, t) || ce(e, t) || oe();
468
+ }
469
+ function ce(e, t) {
470
+ if (e) {
471
+ if (typeof e == "string") return re(e, t);
472
+ var n = {}.toString.call(e).slice(8, -1);
473
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? re(e, t) : void 0;
474
+ }
475
+ }
476
+ var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, me = Object.create, T = typeof Reflect < "u" && Reflect, he = T.apply, ge = T.construct;
477
+ C ||= function(e) {
478
+ return e;
479
+ }, w ||= function(e) {
480
+ return e;
481
+ }, he ||= function(e, t) {
482
+ var n = [...arguments].slice(2);
483
+ return e.apply(t, n);
484
+ }, ge ||= function(e) {
485
+ return new e(...[...arguments].slice(1));
486
+ };
487
+ var _e = O(Array.prototype.forEach), ve = O(Array.prototype.lastIndexOf), ye = O(Array.prototype.pop), be = O(Array.prototype.push), xe = O(Array.prototype.splice), Se = Array.isArray, Ce = O(String.prototype.toLowerCase), we = O(String.prototype.toString), Te = O(String.prototype.match), Ee = O(String.prototype.replace), De = O(String.prototype.indexOf), Oe = O(String.prototype.trim), ke = O(Number.prototype.toString), Ae = O(Boolean.prototype.toString), je = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Me = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Ne = O(Object.prototype.toString), D = O(RegExp.prototype.test), Pe = Fe(TypeError);
488
+ function O(e) {
489
+ return function(t) {
490
+ t instanceof RegExp && (t.lastIndex = 0);
491
+ var n = [...arguments].slice(1);
492
+ return he(e, t, n);
493
+ };
494
+ }
495
+ function Fe(e) {
496
+ return function() {
497
+ return ge(e, [...arguments]);
498
+ };
499
+ }
500
+ function k(e, t) {
501
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
502
+ if (ue && ue(e, null), !Se(t)) return e;
503
+ let r = t.length;
504
+ for (; r--;) {
505
+ let i = t[r];
506
+ if (typeof i == "string") {
507
+ let e = n(i);
508
+ e !== i && (de(t) || (t[r] = e), i = e);
509
+ }
510
+ e[i] = !0;
511
+ }
512
+ return e;
513
+ }
514
+ function A(e) {
515
+ for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
516
+ return e;
517
+ }
518
+ function j(e) {
519
+ let t = me(null);
520
+ for (let r of le(e)) {
521
+ var n = se(r, 2);
522
+ let i = n[0], a = n[1];
523
+ E(e, i) && (t[i] = Se(a) ? A(a) : a && typeof a == "object" && a.constructor === Object ? j(a) : a);
524
+ }
525
+ return t;
526
+ }
527
+ function Ie(e) {
528
+ switch (typeof e) {
529
+ case "string": return e;
530
+ case "number": return ke(e);
531
+ case "boolean": return Ae(e);
532
+ case "bigint": return je ? je(e) : "0";
533
+ case "symbol": return Me ? Me(e) : "Symbol()";
534
+ case "undefined": return Ne(e);
535
+ case "function":
536
+ case "object": {
537
+ if (e === null) return Ne(e);
538
+ let t = e, n = M(t, "toString");
539
+ if (typeof n == "function") {
540
+ let e = n(t);
541
+ return typeof e == "string" ? e : Ne(e);
542
+ }
543
+ return Ne(e);
544
+ }
545
+ default: return Ne(e);
546
+ }
547
+ }
548
+ function M(e, t) {
549
+ for (; e !== null;) {
550
+ let n = pe(e, t);
551
+ if (n) {
552
+ if (n.get) return O(n.get);
553
+ if (typeof n.value == "function") return O(n.value);
554
+ }
555
+ e = fe(e);
556
+ }
557
+ function n() {
558
+ return null;
559
+ }
560
+ return n;
561
+ }
562
+ function Le(e) {
563
+ try {
564
+ return D(e, ""), !0;
565
+ } catch {
566
+ return !1;
567
+ }
568
+ }
569
+ var Re = C(/* @__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(".")), ze = C(/* @__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(".")), Be = C([
570
+ "feBlend",
571
+ "feColorMatrix",
572
+ "feComponentTransfer",
573
+ "feComposite",
574
+ "feConvolveMatrix",
575
+ "feDiffuseLighting",
576
+ "feDisplacementMap",
577
+ "feDistantLight",
578
+ "feDropShadow",
579
+ "feFlood",
580
+ "feFuncA",
581
+ "feFuncB",
582
+ "feFuncG",
583
+ "feFuncR",
584
+ "feGaussianBlur",
585
+ "feImage",
586
+ "feMerge",
587
+ "feMergeNode",
588
+ "feMorphology",
589
+ "feOffset",
590
+ "fePointLight",
591
+ "feSpecularLighting",
592
+ "feSpotLight",
593
+ "feTile",
594
+ "feTurbulence"
595
+ ]), Ve = C([
596
+ "animate",
597
+ "color-profile",
598
+ "cursor",
599
+ "discard",
600
+ "font-face",
601
+ "font-face-format",
602
+ "font-face-name",
603
+ "font-face-src",
604
+ "font-face-uri",
605
+ "foreignobject",
606
+ "hatch",
607
+ "hatchpath",
608
+ "mesh",
609
+ "meshgradient",
610
+ "meshpatch",
611
+ "meshrow",
612
+ "missing-glyph",
613
+ "script",
614
+ "set",
615
+ "solidcolor",
616
+ "unknown",
617
+ "use"
618
+ ]), He = C(/* @__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(".")), Ue = C([
619
+ "maction",
620
+ "maligngroup",
621
+ "malignmark",
622
+ "mlongdiv",
623
+ "mscarries",
624
+ "mscarry",
625
+ "msgroup",
626
+ "mstack",
627
+ "msline",
628
+ "msrow",
629
+ "semantics",
630
+ "annotation",
631
+ "annotation-xml",
632
+ "mprescripts",
633
+ "none"
634
+ ]), We = C(["#text"]), Ge = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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(".")), Ke = C(/* @__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.dominant-baseline.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-orientation.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(".")), qe = C(/* @__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(".")), Je = C([
635
+ "xlink:href",
636
+ "xml:id",
637
+ "xlink:title",
638
+ "xml:space",
639
+ "xmlns:xlink"
640
+ ]), Ye = w(/{{[\w\W]*|^[\w\W]*}}/g), Xe = w(/<%[\w\W]*|^[\w\W]*%>/g), Ze = w(/\${[\w\W]*/g), Qe = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = w(/^aria-[\-\w]+$/), et = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = w(/^(?:\w+script|data):/i), nt = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = w(/^html$/i), it = w(/^[a-z][.\w]*(-[.\w]+)+$/i), at = w(/<[/\w!]/g), ot = w(/<[/\w]/g), st = w(/<\/no(script|embed|frames)/i), ct = w(/\/>/i), N = {
641
+ element: 1,
642
+ attribute: 2,
643
+ text: 3,
644
+ cdataSection: 4,
645
+ entityReference: 5,
646
+ entityNode: 6,
647
+ processingInstruction: 7,
648
+ comment: 8,
649
+ document: 9,
650
+ documentType: 10,
651
+ documentFragment: 11,
652
+ notation: 12
653
+ }, lt = function() {
654
+ return typeof window > "u" ? null : window;
655
+ }, ut = function(e, t) {
656
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
657
+ let n = null, r = "data-tt-policy-suffix";
658
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
659
+ let i = "dompurify" + (n ? "#" + n : "");
660
+ try {
661
+ return e.createPolicy(i, {
662
+ createHTML(e) {
663
+ return e;
664
+ },
665
+ createScriptURL(e) {
666
+ return e;
667
+ }
668
+ });
669
+ } catch {
670
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
671
+ }
672
+ }, dt = function() {
673
+ return {
674
+ afterSanitizeAttributes: [],
675
+ afterSanitizeElements: [],
676
+ afterSanitizeShadowDOM: [],
677
+ beforeSanitizeAttributes: [],
678
+ beforeSanitizeElements: [],
679
+ beforeSanitizeShadowDOM: [],
680
+ uponSanitizeAttribute: [],
681
+ uponSanitizeElement: [],
682
+ uponSanitizeShadowNode: []
683
+ };
684
+ }, P = function(e, t, n, r) {
685
+ return E(e, t) && Se(e[t]) ? k(r.base ? j(r.base) : {}, e[t], r.transform) : n;
686
+ };
687
+ function ft() {
688
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => ft(e);
689
+ if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
690
+ let n = e.document, r = n, i = r.currentScript;
691
+ e.DocumentFragment;
692
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
693
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
694
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null;
695
+ if (typeof a == "function") {
696
+ let e = n.createElement("template");
697
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
698
+ }
699
+ let y, b = "", x, ne = !1, S = 0, re = function() {
700
+ if (S > 0) throw Pe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
701
+ }, ie = function(e) {
702
+ re(), S++;
703
+ try {
704
+ return y.createHTML(e);
705
+ } finally {
706
+ S--;
707
+ }
708
+ }, ae = function(e) {
709
+ re(), S++;
710
+ try {
711
+ return y.createScriptURL(e);
712
+ } finally {
713
+ S--;
714
+ }
715
+ }, oe = function() {
716
+ return ne ||= (x = ut(u, i), !0), x;
717
+ }, se = n, ce = se.implementation, ue = se.createNodeIterator, de = se.createDocumentFragment, fe = se.getElementsByTagName, pe = r.importNode, T = dt();
718
+ t.isSupported = typeof le == "function" && typeof g == "function" && ce && ce.createHTMLDocument !== void 0;
719
+ let he = Ye, ge = Xe, ke = Ze, Ae = Qe, je = $e, Me = tt, Ne = nt, O = it, Fe = et, A = null, pt = k({}, [
720
+ ...Re,
721
+ ...ze,
722
+ ...Be,
723
+ ...He,
724
+ ...We
725
+ ]), F = null, I = k({}, [
726
+ ...Ge,
727
+ ...Ke,
728
+ ...qe,
729
+ ...Je
730
+ ]), L = Object.seal(me(null, {
731
+ tagNameCheck: {
732
+ writable: !0,
733
+ configurable: !1,
734
+ enumerable: !0,
735
+ value: null
736
+ },
737
+ attributeNameCheck: {
738
+ writable: !0,
739
+ configurable: !1,
740
+ enumerable: !0,
741
+ value: null
742
+ },
743
+ allowCustomizedBuiltInElements: {
744
+ writable: !0,
745
+ configurable: !1,
746
+ enumerable: !0,
747
+ value: !1
748
+ }
749
+ })), R = null, z = null, B = Object.seal(me(null, {
750
+ tagCheck: {
751
+ writable: !0,
752
+ configurable: !1,
753
+ enumerable: !0,
754
+ value: null
755
+ },
756
+ attributeCheck: {
757
+ writable: !0,
758
+ configurable: !1,
759
+ enumerable: !0,
760
+ value: null
761
+ }
762
+ })), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, H = !0, vt = !1, yt = !1, bt = null, xt = null, St = !1, Ct = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, jt = {}, U = null, W = k({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = k({}, [
763
+ "audio",
764
+ "video",
765
+ "img",
766
+ "source",
767
+ "image",
768
+ "track"
769
+ ]), Pt = null, Ft = k({}, [
770
+ "alt",
771
+ "class",
772
+ "for",
773
+ "id",
774
+ "label",
775
+ "name",
776
+ "pattern",
777
+ "placeholder",
778
+ "role",
779
+ "summary",
780
+ "title",
781
+ "value",
782
+ "style",
783
+ "xmlns"
784
+ ]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Rt = G, zt = !1, Bt = null, K = k({}, [
785
+ It,
786
+ Lt,
787
+ G
788
+ ], we), Vt = C([
789
+ "mi",
790
+ "mo",
791
+ "mn",
792
+ "ms",
793
+ "mtext"
794
+ ]), q = k({}, Vt), Ht = C(["annotation-xml"]), Ut = k({}, Ht), Wt = k({}, [
795
+ "title",
796
+ "style",
797
+ "font",
798
+ "a",
799
+ "script"
800
+ ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], J = null, qt = null, Jt = n.createElement("form"), Yt = function(e) {
801
+ return e instanceof RegExp || e instanceof Function;
802
+ }, Xt = function() {
803
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
804
+ if (qt && qt === e) return;
805
+ (!e || typeof e != "object") && (e = {}), e = j(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Gt === "application/xhtml+xml" ? we : Ce, A = P(e, "ALLOWED_TAGS", pt, { transform: J }), F = P(e, "ALLOWED_ATTR", I, { transform: J }), Bt = P(e, "ALLOWED_NAMESPACES", K, { transform: we }), Pt = P(e, "ADD_URI_SAFE_ATTR", Ft, {
806
+ transform: J,
807
+ base: Ft
808
+ }), Mt = P(e, "ADD_DATA_URI_TAGS", Nt, {
809
+ transform: J,
810
+ base: Nt
811
+ }), U = P(e, "FORBID_CONTENTS", W, { transform: J }), R = P(e, "FORBID_TAGS", j({}), { transform: J }), z = P(e, "FORBID_ATTR", j({}), { transform: J }), jt = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, vt = e.WHOLE_DOCUMENT || !1, Ct = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, Rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = E(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : k({}, Vt), Ut = E(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : k({}, Ht);
812
+ let t = E(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
813
+ if (L = me(null), E(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), V && (ht = !1), wt && (Ct = !0), jt && (A = k({}, We), F = me(null), jt.html === !0 && (k(A, Re), k(F, Ge)), jt.svg === !0 && (k(A, ze), k(F, Ke), k(F, Je)), jt.svgFilters === !0 && (k(A, Be), k(F, Ke), k(F, Je)), jt.mathMl === !0 && (k(A, He), k(F, qe), k(F, Je))), B.tagCheck = null, B.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (A === pt && (A = j(A)), k(A, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (F === I && (F = j(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_URI_SAFE_ATTR") && Se(e.ADD_URI_SAFE_ATTR) && k(Pt, e.ADD_URI_SAFE_ATTR, J), E(e, "FORBID_CONTENTS") && Se(e.FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.FORBID_CONTENTS, J)), E(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.ADD_FORBID_CONTENTS, J)), kt && (A["#text"] = !0), vt && k(A, [
814
+ "html",
815
+ "head",
816
+ "body"
817
+ ]), A.table && (k(A, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
818
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
819
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
820
+ let t = y;
821
+ y = e.TRUSTED_TYPES_POLICY;
822
+ try {
823
+ b = ie("");
824
+ } catch (e) {
825
+ throw y = t, e;
826
+ }
827
+ } else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, b = "") : (y === void 0 && (y = oe()), y && typeof b == "string" && (b = ie("")));
828
+ C && C(e), qt = e;
829
+ }, Zt = k({}, [
830
+ ...ze,
831
+ ...Be,
832
+ ...Ve
833
+ ]), Qt = k({}, [...He, ...Ue]), $t = function(e, t, n) {
834
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || q[n]) : !!Zt[e];
835
+ }, en = function(e, t, n) {
836
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Ut[n] : !!Qt[e];
837
+ }, tn = function(e, t, n) {
838
+ return t.namespaceURI === Lt && !Ut[n] || t.namespaceURI === It && !q[n] ? !1 : !Qt[e] && (Wt[e] || !Zt[e]);
839
+ }, nn = function(e) {
840
+ let t = g(e);
841
+ (!t || !t.tagName) && (t = {
842
+ namespaceURI: Rt,
843
+ tagName: "template"
844
+ });
845
+ let n = Ce(e.tagName), r = Ce(t.tagName);
846
+ return Bt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Gt === "application/xhtml+xml" && Bt[e.namespaceURI]) : !1;
847
+ }, Y = function(e) {
848
+ be(t.removed, { element: e });
849
+ try {
850
+ g(e).removeChild(e);
851
+ } catch {
852
+ if (p(e), !g(e)) throw Pe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
853
+ }
854
+ }, rn = function(e) {
855
+ on(e);
856
+ let t = h(e);
857
+ if (t) {
858
+ let e = [];
859
+ _e(t, (t) => {
860
+ be(e, t);
861
+ }), _e(e, (e) => {
862
+ try {
863
+ p(e);
864
+ } catch {}
865
+ });
866
+ }
867
+ let n = te(e);
868
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
869
+ let r = n[t], i = r && r.name;
870
+ if (typeof i == "string") try {
871
+ e.removeAttribute(i);
872
+ } catch {}
873
+ }
874
+ }, X = function(e, n) {
875
+ try {
876
+ be(t.removed, {
877
+ attribute: n.getAttributeNode(e),
878
+ from: n
879
+ });
880
+ } catch {
881
+ be(t.removed, {
882
+ attribute: null,
883
+ from: n
884
+ });
885
+ }
886
+ if (n.removeAttribute(e), e === "is") {
887
+ if (Ct || wt) try {
888
+ Y(n);
889
+ } catch {}
890
+ else try {
891
+ n.setAttribute(e, "");
892
+ } catch {}
893
+ }
894
+ }, an = function(e) {
895
+ let t = te(e);
896
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
897
+ let r = t[n], i = r && r.name;
898
+ if (!(typeof i != "string" || F[J(i)])) try {
899
+ e.removeAttribute(i);
900
+ } catch {}
901
+ }
902
+ }, on = function(e) {
903
+ let t = [e];
904
+ for (; t.length > 0;) {
905
+ let e = t.pop();
906
+ (_ ? _(e) : e.nodeType) === N.element && an(e);
907
+ let n = h(e);
908
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
909
+ }
910
+ }, sn = function(e) {
911
+ if (!H) return;
912
+ let t = [e];
913
+ for (; t.length > 0;) {
914
+ let e = t.pop(), n = _ ? _(e) : e.nodeType;
915
+ if (n === N.processingInstruction || n === N.comment && D(ot, e.data)) {
916
+ try {
917
+ p(e);
918
+ } catch {}
919
+ continue;
920
+ }
921
+ if (n === N.element) {
922
+ let t = e, n = J(v ? v(e) : e.nodeName);
923
+ try {
924
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
925
+ } catch {}
926
+ }
927
+ let r = h(e);
928
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
929
+ }
930
+ }, cn = function(e) {
931
+ let t = null, r = null;
932
+ if (St) e = "<remove></remove>" + e;
933
+ else {
934
+ let t = Te(e, /^[\r\n\t ]+/);
935
+ r = t && t[0];
936
+ }
937
+ Gt === "application/xhtml+xml" && Rt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
938
+ let i = y ? ie(e) : e;
939
+ if (Rt === G) try {
940
+ t = new l().parseFromString(i, Gt);
941
+ } catch {}
942
+ if (!t || !t.documentElement) {
943
+ t = ce.createDocument(Rt, "template", null);
944
+ try {
945
+ t.documentElement.innerHTML = zt ? b : i;
946
+ } catch {}
947
+ }
948
+ let a = t.body || t.documentElement;
949
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rt === G ? fe.call(t, vt ? "html" : "body")[0] : vt ? t.documentElement : a;
950
+ }, ln = function(e) {
951
+ return ue.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
952
+ }, un = function(e) {
953
+ return e = Ee(e, he, " "), e = Ee(e, ge, " "), e = Ee(e, ke, " "), e;
954
+ }, dn = function(e) {
955
+ e.normalize();
956
+ let t = ue.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
957
+ for (; n;) n.data = un(n.data), n = t.nextNode();
958
+ let r = e.querySelectorAll?.call(e, "template");
959
+ r && _e(r, (e) => {
960
+ fn(e.content) && dn(e.content);
961
+ });
962
+ }, Z = function(e) {
963
+ let t = v ? v(e) : null;
964
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
965
+ }, fn = function(e) {
966
+ if (!_ || typeof e != "object" || !e) return !1;
967
+ try {
968
+ return _(e) === N.documentFragment;
969
+ } catch {
970
+ return !1;
971
+ }
972
+ }, pn = function(e) {
973
+ if (!_ || typeof e != "object" || !e) return !1;
974
+ try {
975
+ return typeof _(e) == "number";
976
+ } catch {
977
+ return !1;
978
+ }
979
+ };
980
+ function Q(e, n, r) {
981
+ e.length !== 0 && _e(e, (e) => {
982
+ e.call(t, n, r, qt);
983
+ });
984
+ }
985
+ let mn = function(e, t) {
986
+ return !!(H && e.hasChildNodes() && !pn(e.firstElementChild) && D(at, e.textContent) && D(at, e.innerHTML) || H && e.namespaceURI === G && t === "style" && pn(e.firstElementChild) || e.nodeType === N.processingInstruction || H && e.nodeType === N.comment && D(ot, e.data));
987
+ }, hn = function(e, t) {
988
+ if (!R[t] && vn(t) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
989
+ if (kt && !U[t]) {
990
+ let t = g(e), n = h(e);
991
+ if (n && t) {
992
+ let r = n.length;
993
+ for (let i = r - 1; i >= 0; --i) {
994
+ let r = At ? n[i] : f(n[i], !0);
995
+ t.insertBefore(r, m(e));
996
+ }
997
+ }
998
+ }
999
+ return Y(e), !0;
1000
+ }, $ = function(e, n) {
1001
+ if (Q(T.beforeSanitizeElements, e, null), e !== n && g(e) === null) return !0;
1002
+ if (Z(e)) return Y(e), !0;
1003
+ let r = J(v ? v(e) : e.nodeName);
1004
+ if (Q(T.uponSanitizeElement, e, {
1005
+ tagName: r,
1006
+ allowedTags: A
1007
+ }), e !== n && g(e) === null) return !0;
1008
+ if (mn(e, r)) return Y(e), !0;
1009
+ if (R[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !A[r]) {
1010
+ let t = hn(e, r);
1011
+ return t === !1 && Q(T.afterSanitizeElements, e, null), t;
1012
+ }
1013
+ if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(st, e.innerHTML)) return Y(e), !0;
1014
+ if (V && e.nodeType === N.text) {
1015
+ let n = un(e.textContent);
1016
+ e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1017
+ }
1018
+ return Q(T.afterSanitizeElements, e, null), !1;
1019
+ }, gn = function(e, t, r) {
1020
+ if (z[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
1021
+ let i = F[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
1022
+ if (!(ht && D(Ae, t)) && !(mt && D(je, t))) {
1023
+ if (!i) {
1024
+ if (!(vn(e) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && D(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
1025
+ } else if (!Pt[t] && !D(Fe, Ee(r, Ne, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && Mt[e]) && !(gt && !D(Me, Ee(r, Ne, ""))) && r) return !1;
1026
+ }
1027
+ return !0;
1028
+ }, _n = k({}, [
1029
+ "annotation-xml",
1030
+ "color-profile",
1031
+ "font-face",
1032
+ "font-face-format",
1033
+ "font-face-name",
1034
+ "font-face-src",
1035
+ "font-face-uri",
1036
+ "missing-glyph"
1037
+ ]), vn = function(e) {
1038
+ return !_n[Ce(e)] && D(O, e);
1039
+ }, yn = function(e, t, n, r) {
1040
+ if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1041
+ case "TrustedHTML": return ie(r);
1042
+ case "TrustedScriptURL": return ae(r);
1043
+ }
1044
+ return r;
1045
+ }, bn = function(e, n, r, i) {
1046
+ try {
1047
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), Z(e) ? Y(e) : ye(t.removed);
1048
+ } catch {
1049
+ X(n, e);
1050
+ }
1051
+ }, xn = function(e) {
1052
+ Q(T.beforeSanitizeAttributes, e, null);
1053
+ let t = e.attributes;
1054
+ if (!t || Z(e)) return;
1055
+ let n = {
1056
+ attrName: "",
1057
+ attrValue: "",
1058
+ keepAttr: !0,
1059
+ allowedAttributes: F,
1060
+ forceKeepAttr: void 0
1061
+ }, r = t.length, i = J(e.nodeName);
1062
+ for (; r--;) {
1063
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
1064
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(T.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && De(d, Ot) !== 0 && (X(o, e), d = Ot + d), H && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1065
+ X(o, e);
1066
+ continue;
1067
+ }
1068
+ if (l === "attributename" && Te(d, "href")) {
1069
+ X(o, e);
1070
+ continue;
1071
+ }
1072
+ if (!n.forceKeepAttr) {
1073
+ if (!n.keepAttr) {
1074
+ X(o, e);
1075
+ continue;
1076
+ }
1077
+ if (!_t && D(ct, d)) {
1078
+ X(o, e);
1079
+ continue;
1080
+ }
1081
+ if (V && (d = un(d)), !gn(i, l, d)) {
1082
+ X(o, e);
1083
+ continue;
1084
+ }
1085
+ d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
1086
+ }
1087
+ }
1088
+ Q(T.afterSanitizeAttributes, e, null);
1089
+ }, Sn = function(e) {
1090
+ let t = null, n = ln(e);
1091
+ for (Q(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(T.uponSanitizeShadowNode, t, null), $(t, e), xn(t), fn(t.content) && Sn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
1092
+ let e = ee(t);
1093
+ fn(e) && (Cn(e), Sn(e));
1094
+ }
1095
+ Q(T.afterSanitizeShadowDOM, e, null);
1096
+ }, Cn = function(e) {
1097
+ let t = [{
1098
+ node: e,
1099
+ shadow: null
1100
+ }];
1101
+ for (; t.length > 0;) {
1102
+ let e = t.pop();
1103
+ if (e.shadow) {
1104
+ Sn(e.shadow);
1105
+ continue;
1106
+ }
1107
+ let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = h(n);
1108
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1109
+ node: i[e],
1110
+ shadow: null
1111
+ });
1112
+ if (r) {
1113
+ let e = v ? v(n) : null;
1114
+ if (typeof e == "string" && J(e) === "template") {
1115
+ let e = n.content;
1116
+ fn(e) && t.push({
1117
+ node: e,
1118
+ shadow: null
1119
+ });
1120
+ }
1121
+ }
1122
+ if (r) {
1123
+ let e = ee(n);
1124
+ fn(e) && t.push({
1125
+ node: null,
1126
+ shadow: e
1127
+ }, {
1128
+ node: e,
1129
+ shadow: null
1130
+ });
1131
+ }
1132
+ }
1133
+ };
1134
+ return t.sanitize = function(e) {
1135
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1136
+ if (zt = !e, zt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = Ie(e), typeof e != "string")) throw Pe("dirty is not a string, aborting");
1137
+ if (!t.isSupported) return e;
1138
+ yt ? (A = bt, F = xt) : Xt(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (A = j(A)), T.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
1139
+ let c = At && typeof e != "string" && pn(e);
1140
+ if (c) {
1141
+ sn(e);
1142
+ let t = v ? v(e) : e.nodeName;
1143
+ if (typeof t == "string") {
1144
+ let n = J(t);
1145
+ if (!A[n] || R[n]) throw rn(e), Pe("root node is forbidden and cannot be sanitized in-place");
1146
+ }
1147
+ if (Z(e)) throw rn(e), Pe("root node is clobbered and cannot be sanitized in-place");
1148
+ try {
1149
+ Cn(e);
1150
+ } catch (t) {
1151
+ throw rn(e), t;
1152
+ }
1153
+ } else if (pn(e)) i = cn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
1154
+ else {
1155
+ if (!Ct && !V && !vt && e.indexOf("<") === -1) return y && Tt ? ie(e) : e;
1156
+ if (i = cn(e), !i) return Ct ? null : Tt ? b : "";
1157
+ }
1158
+ i && St && Y(i.firstChild);
1159
+ let l = c ? e : i, u = ln(l);
1160
+ try {
1161
+ for (; o = u.nextNode();) $(o, l), xn(o), fn(o.content) && Sn(o.content);
1162
+ } catch (n) {
1163
+ throw c && (rn(e), _e(t.removed, (e) => {
1164
+ e.element && on(e.element);
1165
+ })), n;
1166
+ }
1167
+ if (c) return _e(t.removed, (e) => {
1168
+ e.element && on(e.element);
1169
+ }), V && dn(e), e;
1170
+ if (Ct) {
1171
+ if (V && dn(i), wt) for (s = de.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1172
+ else s = i;
1173
+ return (F.shadowroot || F.shadowrootmode) && (s = pe.call(r, s, !0)), s;
1174
+ }
1175
+ let d = vt ? i.outerHTML : i.innerHTML;
1176
+ return vt && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(rt, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), V && (d = un(d)), y && Tt ? ie(d) : d;
1177
+ }, t.setConfig = function() {
1178
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1179
+ Xt(e), yt = !0, bt = A, xt = F;
1180
+ }, t.clearConfig = function() {
1181
+ qt = null, yt = !1, bt = null, xt = null, y = x, b = "";
1182
+ }, t.isValidAttribute = function(e, t, n) {
1183
+ qt || Xt({});
1184
+ let r = J(e), i = J(t);
1185
+ return gn(r, i, n);
1186
+ }, t.addHook = function(e, t) {
1187
+ typeof t == "function" && E(T, e) && be(T[e], t);
1188
+ }, t.removeHook = function(e, t) {
1189
+ if (E(T, e)) {
1190
+ if (t !== void 0) {
1191
+ let n = ve(T[e], t);
1192
+ return n === -1 ? void 0 : xe(T[e], n, 1)[0];
1193
+ }
1194
+ return ye(T[e]);
1195
+ }
1196
+ }, t.removeHooks = function(e) {
1197
+ E(T, e) && (T[e] = []);
1198
+ }, t.removeAllHooks = function() {
1199
+ T = dt();
1200
+ }, t;
1201
+ }
1202
+ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1203
+ let i = {
1204
+ depth: n,
1205
+ clobber: r
1206
+ };
1207
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => F(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1208
+ e.includes(t) || e.push(t);
1209
+ }), 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) => {
1210
+ 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] = F(e[i], t[i], {
1211
+ depth: n - 1,
1212
+ clobber: r
1213
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1214
+ }), e);
1215
+ }, "assignWithDepth"), I = F, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ e((e, t) => t ? x(e, {
1216
+ s: -40,
1217
+ l: 10
1218
+ }) : x(e, {
1219
+ s: -40,
1220
+ l: -10
1221
+ }), "mkBorder"), B = class {
1222
+ static {
1223
+ e(this, "Theme");
1224
+ }
1225
+ constructor() {
1226
+ 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))";
1227
+ }
1228
+ updateColors() {
1229
+ 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, {
1230
+ h: 180,
1231
+ l: 5
1232
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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, {
1233
+ h: 210,
1234
+ l: 150
1235
+ }), 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);
1236
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1237
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1238
+ 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);
1239
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1240
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1241
+ let e = this.darkMode ? -4 : -1;
1242
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1243
+ h: 180,
1244
+ s: -15,
1245
+ l: e * (5 + t * 3)
1246
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1247
+ h: 180,
1248
+ s: -15,
1249
+ l: e * (8 + t * 3)
1250
+ });
1251
+ 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, {
1252
+ h: 60,
1253
+ l: -10
1254
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1255
+ h: -60,
1256
+ l: -10
1257
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1258
+ h: 120,
1259
+ l: 0
1260
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1261
+ h: 60,
1262
+ l: -20
1263
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1264
+ h: -60,
1265
+ l: -20
1266
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1267
+ h: 120,
1268
+ l: -10
1269
+ }), 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, {
1270
+ h: 60,
1271
+ l: -30
1272
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1273
+ h: -60,
1274
+ l: -30
1275
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1276
+ h: 60,
1277
+ l: -30
1278
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1279
+ h: 120,
1280
+ l: -30
1281
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1282
+ h: 120,
1283
+ l: -30
1284
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1285
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1286
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1287
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1288
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1289
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1290
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1291
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1292
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1293
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1294
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1295
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1296
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1297
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1298
+ textColor: this.cynefin?.textColor || this.textColor,
1299
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1300
+ }, this.radar = {
1301
+ axisColor: this.radar?.axisColor || this.lineColor,
1302
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1303
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1304
+ curveOpacity: this.radar?.curveOpacity || .5,
1305
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1306
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1307
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1308
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1309
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1310
+ legendFontSize: this.radar?.legendFontSize || 12
1311
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1312
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1313
+ axisColor: this.wardley?.axisColor || this.lineColor,
1314
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1315
+ gridColor: this.wardley?.gridColor || this.gridColor,
1316
+ componentFill: this.wardley?.componentFill || this.background,
1317
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1318
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1319
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1320
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1321
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1322
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1323
+ annotationFill: this.wardley?.annotationFill || this.background
1324
+ }, 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, {
1325
+ r: 5,
1326
+ g: 5,
1327
+ b: 5
1328
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1329
+ r: 10,
1330
+ g: 10,
1331
+ b: 10
1332
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1333
+ r: 15,
1334
+ g: 15,
1335
+ b: 15
1336
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1337
+ r: -5,
1338
+ g: -5,
1339
+ b: -5
1340
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1341
+ r: -10,
1342
+ g: -10,
1343
+ b: -10
1344
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1345
+ r: -15,
1346
+ g: -15,
1347
+ b: -15
1348
+ }), 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 = {
1349
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1350
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1351
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1352
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1353
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1354
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1355
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1356
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1357
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1358
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1359
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1360
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1361
+ }, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1362
+ }
1363
+ calculate(e) {
1364
+ if (typeof e != "object") {
1365
+ this.updateColors();
1366
+ return;
1367
+ }
1368
+ let t = Object.keys(e);
1369
+ t.forEach((t) => {
1370
+ this[t] = e[t];
1371
+ }), this.updateColors(), t.forEach((t) => {
1372
+ this[t] = e[t];
1373
+ });
1374
+ }
1375
+ }, mt = /* @__PURE__ */ e((e) => {
1376
+ let t = new B();
1377
+ return t.calculate(e), t;
1378
+ }, "getThemeVariables"), ht = class {
1379
+ static {
1380
+ e(this, "Theme");
1381
+ }
1382
+ constructor() {
1383
+ 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 = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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";
1384
+ }
1385
+ updateColors() {
1386
+ 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 });
1387
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1388
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1389
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1390
+ h: 30,
1391
+ s: -30,
1392
+ l: -(-10 + e * 4)
1393
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1394
+ h: 30,
1395
+ s: -30,
1396
+ l: -(-7 + e * 4)
1397
+ });
1398
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1399
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1400
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1401
+ 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";
1402
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1403
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1404
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1405
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1406
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1407
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1408
+ cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1409
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1410
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1411
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1412
+ complexBg: this.cynefin?.complexBg || "#1B5E20",
1413
+ complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1414
+ chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1415
+ clearBg: this.cynefin?.clearBg || "#F57F17",
1416
+ confusionBg: this.cynefin?.confusionBg || "#4A148C",
1417
+ textColor: this.cynefin?.textColor || this.textColor,
1418
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1419
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1420
+ r: 5,
1421
+ g: 5,
1422
+ b: 5
1423
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1424
+ r: 10,
1425
+ g: 10,
1426
+ b: 10
1427
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1428
+ r: 15,
1429
+ g: 15,
1430
+ b: 15
1431
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1432
+ r: -5,
1433
+ g: -5,
1434
+ b: -5
1435
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1436
+ r: -10,
1437
+ g: -10,
1438
+ b: -10
1439
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1440
+ r: -15,
1441
+ g: -15,
1442
+ b: -15
1443
+ }), 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 = {
1444
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1445
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1446
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1447
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1448
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1449
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1450
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1451
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1452
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1453
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1454
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1455
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1456
+ }, this.packet = {
1457
+ startByteColor: this.primaryTextColor,
1458
+ endByteColor: this.primaryTextColor,
1459
+ labelColor: this.primaryTextColor,
1460
+ titleColor: this.primaryTextColor,
1461
+ blockStrokeColor: this.primaryTextColor,
1462
+ blockFillColor: this.background
1463
+ }, this.radar = {
1464
+ axisColor: this.radar?.axisColor || this.lineColor,
1465
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1466
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1467
+ curveOpacity: this.radar?.curveOpacity || .5,
1468
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1469
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1470
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1471
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1472
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1473
+ legendFontSize: this.radar?.legendFontSize || 12
1474
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1475
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1476
+ axisColor: this.wardley?.axisColor || this.lineColor,
1477
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1478
+ gridColor: this.wardley?.gridColor || this.gridColor,
1479
+ componentFill: this.wardley?.componentFill || this.mainBkg,
1480
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1481
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1482
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1483
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1484
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1485
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1486
+ annotationFill: this.wardley?.annotationFill || this.mainBkg
1487
+ }, 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.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1488
+ }
1489
+ calculate(e) {
1490
+ if (typeof e != "object") {
1491
+ this.updateColors();
1492
+ return;
1493
+ }
1494
+ let t = Object.keys(e);
1495
+ t.forEach((t) => {
1496
+ this[t] = e[t];
1497
+ }), this.updateColors(), t.forEach((t) => {
1498
+ this[t] = e[t];
1499
+ });
1500
+ }
1501
+ }, gt = /* @__PURE__ */ e((e) => {
1502
+ let t = new ht();
1503
+ return t.calculate(e), t;
1504
+ }, "getThemeVariables"), _t = class {
1505
+ static {
1506
+ e(this, "Theme");
1507
+ }
1508
+ constructor() {
1509
+ 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 = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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 = z(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();
1510
+ }
1511
+ updateColors() {
1512
+ 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);
1513
+ 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);
1514
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1515
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1516
+ h: 30,
1517
+ l: -(5 + e * 5)
1518
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1519
+ h: 30,
1520
+ l: -(7 + e * 5)
1521
+ });
1522
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1523
+ this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1524
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1525
+ }
1526
+ 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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, {
1527
+ h: 60,
1528
+ l: -20
1529
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1530
+ h: -60,
1531
+ l: -40
1532
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1533
+ h: 120,
1534
+ l: -40
1535
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1536
+ h: 60,
1537
+ l: -40
1538
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1539
+ h: -90,
1540
+ l: -40
1541
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1542
+ h: 120,
1543
+ l: -30
1544
+ }), 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, {
1545
+ h: 60,
1546
+ l: -30
1547
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1548
+ h: -60,
1549
+ l: -30
1550
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1551
+ h: 60,
1552
+ l: -30
1553
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1554
+ h: 120,
1555
+ l: -30
1556
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1557
+ h: 120,
1558
+ l: -30
1559
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1560
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1561
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1562
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1563
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1564
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1565
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1566
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1567
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1568
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1569
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1570
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1571
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1572
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1573
+ textColor: this.cynefin?.textColor || this.textColor,
1574
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1575
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1576
+ r: 5,
1577
+ g: 5,
1578
+ b: 5
1579
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1580
+ r: 10,
1581
+ g: 10,
1582
+ b: 10
1583
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1584
+ r: 15,
1585
+ g: 15,
1586
+ b: 15
1587
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1588
+ r: -5,
1589
+ g: -5,
1590
+ b: -5
1591
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1592
+ r: -10,
1593
+ g: -10,
1594
+ b: -10
1595
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1596
+ r: -15,
1597
+ g: -15,
1598
+ b: -15
1599
+ }), 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 = {
1600
+ axisColor: this.radar?.axisColor || this.lineColor,
1601
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1602
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1603
+ curveOpacity: this.radar?.curveOpacity || .5,
1604
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1605
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1606
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1607
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1608
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1609
+ legendFontSize: this.radar?.legendFontSize || 12
1610
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1611
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1612
+ axisColor: this.wardley?.axisColor || this.lineColor,
1613
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1614
+ gridColor: this.wardley?.gridColor || this.gridColor,
1615
+ componentFill: this.wardley?.componentFill || this.background,
1616
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1617
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1618
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1619
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1620
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1621
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1622
+ annotationFill: this.wardley?.annotationFill || this.background
1623
+ }, this.xyChart = {
1624
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1625
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1626
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1627
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1628
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1629
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1630
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1631
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1632
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1633
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1634
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1635
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1636
+ }, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1637
+ }
1638
+ calculate(e) {
1639
+ if (Object.keys(this).forEach((e) => {
1640
+ this[e] === "calculated" && (this[e] = void 0);
1641
+ }), typeof e != "object") {
1642
+ this.updateColors();
1643
+ return;
1644
+ }
1645
+ let t = Object.keys(e);
1646
+ t.forEach((t) => {
1647
+ this[t] = e[t];
1648
+ }), this.updateColors(), t.forEach((t) => {
1649
+ this[t] = e[t];
1650
+ });
1651
+ }
1652
+ }, V = /* @__PURE__ */ e((e) => {
1653
+ let t = new _t();
1654
+ return t.calculate(e), t;
1655
+ }, "getThemeVariables"), H = class {
1656
+ static {
1657
+ e(this, "Theme");
1658
+ }
1659
+ constructor() {
1660
+ 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 = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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))";
1661
+ }
1662
+ updateColors() {
1663
+ 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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);
1664
+ 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);
1665
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1666
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1667
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1668
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1669
+ h: 30,
1670
+ s: -30,
1671
+ l: -(5 + e * 5)
1672
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1673
+ h: 30,
1674
+ s: -30,
1675
+ l: -(8 + e * 5)
1676
+ });
1677
+ 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, {
1678
+ h: 40,
1679
+ l: -40
1680
+ }), this.pie7 = this.pie7 || x(this.primaryColor, {
1681
+ h: 60,
1682
+ l: -10
1683
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1684
+ h: -60,
1685
+ l: -10
1686
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1687
+ h: 120,
1688
+ l: 0
1689
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1690
+ h: 60,
1691
+ l: -50
1692
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1693
+ h: -60,
1694
+ l: -50
1695
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1696
+ h: 120,
1697
+ l: -50
1698
+ }), 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, {
1699
+ h: 60,
1700
+ l: -30
1701
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1702
+ h: -60,
1703
+ l: -30
1704
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1705
+ h: 60,
1706
+ l: -30
1707
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1708
+ h: 120,
1709
+ l: -30
1710
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1711
+ h: 120,
1712
+ l: -30
1713
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1714
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1715
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1716
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1717
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1718
+ cliffColor: this.cynefin?.cliffColor || "#8B4513",
1719
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1720
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1721
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1722
+ complexBg: this.cynefin?.complexBg || "#C8E6C9",
1723
+ complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1724
+ chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1725
+ clearBg: this.cynefin?.clearBg || "#FFF9C4",
1726
+ confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1727
+ textColor: this.cynefin?.textColor || this.textColor,
1728
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1729
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1730
+ r: 5,
1731
+ g: 5,
1732
+ b: 5
1733
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1734
+ r: 10,
1735
+ g: 10,
1736
+ b: 10
1737
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1738
+ r: 15,
1739
+ g: 15,
1740
+ b: 15
1741
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1742
+ r: -5,
1743
+ g: -5,
1744
+ b: -5
1745
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1746
+ r: -10,
1747
+ g: -10,
1748
+ b: -10
1749
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1750
+ r: -15,
1751
+ g: -15,
1752
+ b: -15
1753
+ }), 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 = {
1754
+ startByteColor: this.primaryTextColor,
1755
+ endByteColor: this.primaryTextColor,
1756
+ labelColor: this.primaryTextColor,
1757
+ titleColor: this.primaryTextColor,
1758
+ blockStrokeColor: this.primaryTextColor,
1759
+ blockFillColor: this.mainBkg
1760
+ }, this.radar = {
1761
+ axisColor: this.radar?.axisColor || this.lineColor,
1762
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1763
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1764
+ curveOpacity: this.radar?.curveOpacity || .5,
1765
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1766
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1767
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1768
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1769
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1770
+ legendFontSize: this.radar?.legendFontSize || 12
1771
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1772
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1773
+ axisColor: this.wardley?.axisColor || this.lineColor,
1774
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1775
+ gridColor: this.wardley?.gridColor || this.gridColor,
1776
+ componentFill: this.wardley?.componentFill || this.background,
1777
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1778
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1779
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1780
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1781
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1782
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1783
+ annotationFill: this.wardley?.annotationFill || this.background
1784
+ }, this.xyChart = {
1785
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1786
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1787
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1788
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1789
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1790
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1791
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1792
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1793
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1794
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1795
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1796
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1797
+ }, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1798
+ }
1799
+ calculate(e) {
1800
+ if (typeof e != "object") {
1801
+ this.updateColors();
1802
+ return;
1803
+ }
1804
+ let t = Object.keys(e);
1805
+ t.forEach((t) => {
1806
+ this[t] = e[t];
1807
+ }), this.updateColors(), t.forEach((t) => {
1808
+ this[t] = e[t];
1809
+ });
1810
+ }
1811
+ }, vt = /* @__PURE__ */ e((e) => {
1812
+ let t = new H();
1813
+ return t.calculate(e), t;
1814
+ }, "getThemeVariables"), yt = class {
1815
+ static {
1816
+ e(this, "Theme");
1817
+ }
1818
+ constructor() {
1819
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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))";
1820
+ }
1821
+ updateColors() {
1822
+ 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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";
1823
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1824
+ 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);
1825
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1826
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1827
+ 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) });
1828
+ 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 });
1829
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1830
+ 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";
1831
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1832
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1833
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1834
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1835
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1836
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1837
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1838
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1839
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1840
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1841
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1842
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1843
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1844
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1845
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1846
+ textColor: this.cynefin?.textColor || this.textColor,
1847
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1848
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1849
+ r: 5,
1850
+ g: 5,
1851
+ b: 5
1852
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1853
+ r: 10,
1854
+ g: 10,
1855
+ b: 10
1856
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1857
+ r: 15,
1858
+ g: 15,
1859
+ b: 15
1860
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1861
+ r: -5,
1862
+ g: -5,
1863
+ b: -5
1864
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1865
+ r: -10,
1866
+ g: -10,
1867
+ b: -10
1868
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1869
+ r: -15,
1870
+ g: -15,
1871
+ b: -15
1872
+ }), 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 = {
1873
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1874
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1875
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1876
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1877
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1878
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1879
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1880
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1881
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1882
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1883
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1884
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1885
+ }, this.radar = {
1886
+ axisColor: this.radar?.axisColor || this.lineColor,
1887
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1888
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1889
+ curveOpacity: this.radar?.curveOpacity || .5,
1890
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1891
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1892
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1893
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1894
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1895
+ legendFontSize: this.radar?.legendFontSize || 12
1896
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1897
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1898
+ axisColor: this.wardley?.axisColor || this.lineColor,
1899
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1900
+ gridColor: this.wardley?.gridColor || this.gridColor,
1901
+ componentFill: this.wardley?.componentFill || this.background,
1902
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1903
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1904
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1905
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1906
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1907
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1908
+ annotationFill: this.wardley?.annotationFill || this.background
1909
+ }, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1910
+ }
1911
+ calculate(e) {
1912
+ if (typeof e != "object") {
1913
+ this.updateColors();
1914
+ return;
1915
+ }
1916
+ let t = Object.keys(e);
1917
+ t.forEach((t) => {
1918
+ this[t] = e[t];
1919
+ }), this.updateColors(), t.forEach((t) => {
1920
+ this[t] = e[t];
1921
+ });
1922
+ }
1923
+ }, bt = /* @__PURE__ */ e((e) => {
1924
+ let t = new yt();
1925
+ return t.calculate(e), t;
1926
+ }, "getThemeVariables"), xt = class {
1927
+ static {
1928
+ e(this, "Theme");
1929
+ }
1930
+ constructor() {
1931
+ 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 = z(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";
1932
+ }
1933
+ updateColors() {
1934
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1935
+ h: 180,
1936
+ l: 5
1937
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1938
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1939
+ h: 180,
1940
+ l: 5
1941
+ });
1942
+ 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, {
1943
+ h: 210,
1944
+ l: 150
1945
+ }), 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);
1946
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1947
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1948
+ 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);
1949
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1950
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1951
+ let r = this.darkMode ? -4 : -1;
1952
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1953
+ h: 180,
1954
+ s: -15,
1955
+ l: r * (5 + e * 3)
1956
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1957
+ h: 180,
1958
+ s: -15,
1959
+ l: r * (8 + e * 3)
1960
+ });
1961
+ 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, {
1962
+ h: 60,
1963
+ l: -10
1964
+ }), this.pie8 = this.pie8 || x(e, {
1965
+ h: -60,
1966
+ l: -10
1967
+ }), this.pie9 = this.pie9 || x(e, {
1968
+ h: 120,
1969
+ l: 0
1970
+ }), this.pie10 = this.pie10 || x(e, {
1971
+ h: 60,
1972
+ l: -20
1973
+ }), this.pie11 = this.pie11 || x(e, {
1974
+ h: -60,
1975
+ l: -20
1976
+ }), this.pie12 = this.pie12 || x(e, {
1977
+ h: 120,
1978
+ l: -10
1979
+ }), 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, {
1980
+ r: 5,
1981
+ g: 5,
1982
+ b: 5
1983
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
1984
+ r: 10,
1985
+ g: 10,
1986
+ b: 10
1987
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
1988
+ r: 15,
1989
+ g: 15,
1990
+ b: 15
1991
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1992
+ r: -5,
1993
+ g: -5,
1994
+ b: -5
1995
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1996
+ r: -10,
1997
+ g: -10,
1998
+ b: -10
1999
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2000
+ r: -15,
2001
+ g: -15,
2002
+ b: -15
2003
+ }), 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 = {
2004
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2005
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2006
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2007
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2008
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2009
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2010
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2011
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2012
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2013
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2014
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2015
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2016
+ }
2017
+ calculate(e) {
2018
+ if (typeof e != "object") {
2019
+ this.updateColors();
2020
+ return;
2021
+ }
2022
+ let t = Object.keys(e);
2023
+ t.forEach((t) => {
2024
+ this[t] = e[t];
2025
+ }), this.updateColors(), t.forEach((t) => {
2026
+ this[t] = e[t];
2027
+ });
2028
+ }
2029
+ }, St = /* @__PURE__ */ e((e) => {
2030
+ let t = new xt();
2031
+ return t.calculate(e), t;
2032
+ }, "getThemeVariables"), Ct = class {
2033
+ static {
2034
+ e(this, "Theme");
2035
+ }
2036
+ constructor() {
2037
+ 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 = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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";
2038
+ }
2039
+ updateColors() {
2040
+ 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, {
2041
+ h: 180,
2042
+ l: 5
2043
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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, {
2044
+ h: 210,
2045
+ l: 150
2046
+ }), 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);
2047
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2048
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2049
+ 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);
2050
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2051
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2052
+ let e = this.darkMode ? -4 : -1;
2053
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2054
+ h: 180,
2055
+ s: -15,
2056
+ l: e * (5 + t * 3)
2057
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2058
+ h: 180,
2059
+ s: -15,
2060
+ l: e * (8 + t * 3)
2061
+ });
2062
+ 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, {
2063
+ h: 60,
2064
+ l: -10
2065
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2066
+ h: -60,
2067
+ l: -10
2068
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2069
+ h: 120,
2070
+ l: 0
2071
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2072
+ h: 60,
2073
+ l: -20
2074
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2075
+ h: -60,
2076
+ l: -20
2077
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2078
+ h: 120,
2079
+ l: -10
2080
+ }), 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, {
2081
+ r: 5,
2082
+ g: 5,
2083
+ b: 5
2084
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2085
+ r: 10,
2086
+ g: 10,
2087
+ b: 10
2088
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2089
+ r: 15,
2090
+ g: 15,
2091
+ b: 15
2092
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2093
+ r: -5,
2094
+ g: -5,
2095
+ b: -5
2096
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2097
+ r: -10,
2098
+ g: -10,
2099
+ b: -10
2100
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2101
+ r: -15,
2102
+ g: -15,
2103
+ b: -15
2104
+ }), 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 = {
2105
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2106
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2107
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2108
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2109
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2110
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2111
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2112
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2113
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2114
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2115
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2116
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2117
+ }
2118
+ calculate(e) {
2119
+ if (typeof e != "object") {
2120
+ this.updateColors();
2121
+ return;
2122
+ }
2123
+ let t = Object.keys(e);
2124
+ t.forEach((t) => {
2125
+ this[t] = e[t];
2126
+ }), this.updateColors(), t.forEach((t) => {
2127
+ this[t] = e[t];
2128
+ });
2129
+ }
2130
+ }, wt = /* @__PURE__ */ e((e) => {
2131
+ let t = new Ct();
2132
+ return t.calculate(e), t;
2133
+ }, "getThemeVariables"), Tt = class {
2134
+ static {
2135
+ e(this, "Theme");
2136
+ }
2137
+ constructor() {
2138
+ 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 = z("#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";
2139
+ }
2140
+ updateColors() {
2141
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2142
+ h: 180,
2143
+ l: 5
2144
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2145
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2146
+ h: 180,
2147
+ l: 5
2148
+ });
2149
+ 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;
2150
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2151
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2152
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2153
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2154
+ 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);
2155
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2156
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2157
+ let r = this.darkMode ? -4 : -1;
2158
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2159
+ h: 180,
2160
+ s: -15,
2161
+ l: r * (5 + e * 3)
2162
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2163
+ h: 180,
2164
+ s: -15,
2165
+ l: r * (8 + e * 3)
2166
+ });
2167
+ 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, {
2168
+ h: 60,
2169
+ l: -10
2170
+ }), this.pie8 = this.pie8 || x(e, {
2171
+ h: -60,
2172
+ l: -10
2173
+ }), this.pie9 = this.pie9 || x(e, {
2174
+ h: 120,
2175
+ l: 0
2176
+ }), this.pie10 = this.pie10 || x(e, {
2177
+ h: 60,
2178
+ l: -20
2179
+ }), this.pie11 = this.pie11 || x(e, {
2180
+ h: -60,
2181
+ l: -20
2182
+ }), this.pie12 = this.pie12 || x(e, {
2183
+ h: 120,
2184
+ l: -10
2185
+ }), 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, {
2186
+ r: 5,
2187
+ g: 5,
2188
+ b: 5
2189
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2190
+ r: 10,
2191
+ g: 10,
2192
+ b: 10
2193
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2194
+ r: 15,
2195
+ g: 15,
2196
+ b: 15
2197
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2198
+ r: -5,
2199
+ g: -5,
2200
+ b: -5
2201
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2202
+ r: -10,
2203
+ g: -10,
2204
+ b: -10
2205
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2206
+ r: -15,
2207
+ g: -15,
2208
+ b: -15
2209
+ }), 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 = {
2210
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2211
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2212
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2213
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2214
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2215
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2216
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2217
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2218
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2219
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2220
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2221
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2222
+ }
2223
+ calculate(e) {
2224
+ if (typeof e != "object") {
2225
+ this.updateColors();
2226
+ return;
2227
+ }
2228
+ let t = Object.keys(e);
2229
+ t.forEach((t) => {
2230
+ this[t] = e[t];
2231
+ }), this.updateColors(), t.forEach((t) => {
2232
+ this[t] = e[t];
2233
+ });
2234
+ }
2235
+ }, Et = /* @__PURE__ */ e((e) => {
2236
+ let t = new Tt();
2237
+ return t.calculate(e), t;
2238
+ }, "getThemeVariables"), Dt = class {
2239
+ static {
2240
+ e(this, "Theme");
2241
+ }
2242
+ constructor() {
2243
+ 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 = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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";
2244
+ }
2245
+ updateColors() {
2246
+ 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, {
2247
+ h: 180,
2248
+ l: 5
2249
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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, {
2250
+ h: 210,
2251
+ l: 150
2252
+ }), 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);
2253
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2254
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2255
+ 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);
2256
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2257
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2258
+ let e = this.darkMode ? -4 : -1;
2259
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2260
+ h: 180,
2261
+ s: -15,
2262
+ l: e * (5 + t * 3)
2263
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2264
+ h: 180,
2265
+ s: -15,
2266
+ l: e * (8 + t * 3)
2267
+ });
2268
+ 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, {
2269
+ h: 60,
2270
+ l: -10
2271
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2272
+ h: -60,
2273
+ l: -10
2274
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2275
+ h: 120,
2276
+ l: 0
2277
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2278
+ h: 60,
2279
+ l: -20
2280
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2281
+ h: -60,
2282
+ l: -20
2283
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2284
+ h: 120,
2285
+ l: -10
2286
+ }), 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, {
2287
+ r: 5,
2288
+ g: 5,
2289
+ b: 5
2290
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2291
+ r: 10,
2292
+ g: 10,
2293
+ b: 10
2294
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2295
+ r: 15,
2296
+ g: 15,
2297
+ b: 15
2298
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2299
+ r: -5,
2300
+ g: -5,
2301
+ b: -5
2302
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2303
+ r: -10,
2304
+ g: -10,
2305
+ b: -10
2306
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2307
+ r: -15,
2308
+ g: -15,
2309
+ b: -15
2310
+ }), 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 = {
2311
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2312
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2313
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2314
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2315
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2316
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2317
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2318
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2319
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2320
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2321
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2322
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2323
+ }
2324
+ calculate(e) {
2325
+ if (typeof e != "object") {
2326
+ this.updateColors();
2327
+ return;
2328
+ }
2329
+ let t = Object.keys(e);
2330
+ t.forEach((t) => {
2331
+ this[t] = e[t];
2332
+ }), this.updateColors(), t.forEach((t) => {
2333
+ this[t] = e[t];
2334
+ });
2335
+ }
2336
+ }, Ot = /* @__PURE__ */ e((e) => {
2337
+ let t = new Dt();
2338
+ return t.calculate(e), t;
2339
+ }, "getThemeVariables"), kt = class {
2340
+ static {
2341
+ e(this, "Theme");
2342
+ }
2343
+ constructor() {
2344
+ 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 = z(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 = [
2345
+ "#E879F9",
2346
+ "#2DD4BF",
2347
+ "#FB923C",
2348
+ "#22D3EE",
2349
+ "#4ADE80",
2350
+ "#A78BFA",
2351
+ "#F87171",
2352
+ "#FACC15",
2353
+ "#818CF8",
2354
+ "#A3E635 ",
2355
+ "#38BDF8",
2356
+ "#FB7185"
2357
+ ], this.bkgColorArray = [
2358
+ "#FDF4FF",
2359
+ "#F0FDFA",
2360
+ "#FFF7ED",
2361
+ "#ECFEFF",
2362
+ "#F0FDF4",
2363
+ "#F5F3FF",
2364
+ "#FEF2F2",
2365
+ "#FEFCE8",
2366
+ "#EEF2FF",
2367
+ "#F7FEE7",
2368
+ "#F0F9FF",
2369
+ "#FFF1F2"
2370
+ ], this.filterColor = "#000000";
2371
+ }
2372
+ updateColors() {
2373
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2374
+ h: 180,
2375
+ l: 5
2376
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2377
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2378
+ h: 180,
2379
+ l: 5
2380
+ });
2381
+ 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";
2382
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2383
+ 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);
2384
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2385
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2386
+ let r = this.darkMode ? -4 : -1;
2387
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2388
+ h: 180,
2389
+ s: -15,
2390
+ l: r * (5 + e * 3)
2391
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2392
+ h: 180,
2393
+ s: -15,
2394
+ l: r * (8 + e * 3)
2395
+ });
2396
+ 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, {
2397
+ h: 60,
2398
+ l: -10
2399
+ }), this.pie8 = this.pie8 || x(e, {
2400
+ h: -60,
2401
+ l: -10
2402
+ }), this.pie9 = this.pie9 || x(e, {
2403
+ h: 120,
2404
+ l: 0
2405
+ }), this.pie10 = this.pie10 || x(e, {
2406
+ h: 60,
2407
+ l: -20
2408
+ }), this.pie11 = this.pie11 || x(e, {
2409
+ h: -60,
2410
+ l: -20
2411
+ }), this.pie12 = this.pie12 || x(e, {
2412
+ h: 120,
2413
+ l: -10
2414
+ }), 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, {
2415
+ r: 5,
2416
+ g: 5,
2417
+ b: 5
2418
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2419
+ r: 10,
2420
+ g: 10,
2421
+ b: 10
2422
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2423
+ r: 15,
2424
+ g: 15,
2425
+ b: 15
2426
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2427
+ r: -5,
2428
+ g: -5,
2429
+ b: -5
2430
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2431
+ r: -10,
2432
+ g: -10,
2433
+ b: -10
2434
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2435
+ r: -15,
2436
+ g: -15,
2437
+ b: -15
2438
+ }), 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 = {
2439
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2440
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2441
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2442
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2443
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2444
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2445
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2446
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2447
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2448
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2449
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2450
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2451
+ }
2452
+ calculate(e) {
2453
+ if (typeof e != "object") {
2454
+ this.updateColors();
2455
+ return;
2456
+ }
2457
+ let t = Object.keys(e);
2458
+ t.forEach((t) => {
2459
+ this[t] = e[t];
2460
+ }), this.updateColors(), t.forEach((t) => {
2461
+ this[t] = e[t];
2462
+ });
2463
+ }
2464
+ }, At = /* @__PURE__ */ e((e) => {
2465
+ let t = new kt();
2466
+ return t.calculate(e), t;
2467
+ }, "getThemeVariables"), jt = class {
2468
+ static {
2469
+ e(this, "Theme");
2470
+ }
2471
+ constructor() {
2472
+ 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 = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(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 = [
2473
+ "#E879F9",
2474
+ "#2DD4BF",
2475
+ "#FB923C",
2476
+ "#22D3EE",
2477
+ "#4ADE80",
2478
+ "#A78BFA",
2479
+ "#F87171",
2480
+ "#FACC15",
2481
+ "#818CF8",
2482
+ "#A3E635 ",
2483
+ "#38BDF8",
2484
+ "#FB7185"
2485
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2486
+ }
2487
+ updateColors() {
2488
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2489
+ h: 180,
2490
+ l: 5
2491
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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";
2492
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2493
+ 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);
2494
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2495
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2496
+ let e = this.darkMode ? -4 : -1;
2497
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2498
+ h: 180,
2499
+ s: -15,
2500
+ l: e * (5 + t * 3)
2501
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2502
+ h: 180,
2503
+ s: -15,
2504
+ l: e * (8 + t * 3)
2505
+ });
2506
+ 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, {
2507
+ h: 60,
2508
+ l: -10
2509
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2510
+ h: -60,
2511
+ l: -10
2512
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2513
+ h: 120,
2514
+ l: 0
2515
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2516
+ h: 60,
2517
+ l: -20
2518
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2519
+ h: -60,
2520
+ l: -20
2521
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2522
+ h: 120,
2523
+ l: -10
2524
+ }), 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, {
2525
+ r: 5,
2526
+ g: 5,
2527
+ b: 5
2528
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2529
+ r: 10,
2530
+ g: 10,
2531
+ b: 10
2532
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2533
+ r: 15,
2534
+ g: 15,
2535
+ b: 15
2536
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2537
+ r: -5,
2538
+ g: -5,
2539
+ b: -5
2540
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2541
+ r: -10,
2542
+ g: -10,
2543
+ b: -10
2544
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2545
+ r: -15,
2546
+ g: -15,
2547
+ b: -15
2548
+ }), 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 = {
2549
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2550
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2551
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2552
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2553
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2554
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2555
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2556
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2557
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2558
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2559
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2560
+ }, 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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2561
+ }
2562
+ calculate(e) {
2563
+ if (typeof e != "object") {
2564
+ this.updateColors();
2565
+ return;
2566
+ }
2567
+ let t = Object.keys(e);
2568
+ t.forEach((t) => {
2569
+ this[t] = e[t];
2570
+ }), this.updateColors(), t.forEach((t) => {
2571
+ this[t] = e[t];
2572
+ });
2573
+ }
2574
+ }, U = {
2575
+ base: { getThemeVariables: mt },
2576
+ dark: { getThemeVariables: gt },
2577
+ default: { getThemeVariables: V },
2578
+ forest: { getThemeVariables: vt },
2579
+ neutral: { getThemeVariables: bt },
2580
+ neo: { getThemeVariables: St },
2581
+ "neo-dark": { getThemeVariables: wt },
2582
+ redux: { getThemeVariables: Et },
2583
+ "redux-dark": { getThemeVariables: Ot },
2584
+ "redux-color": { getThemeVariables: At },
2585
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
2586
+ let t = new jt();
2587
+ return t.calculate(e), t;
2588
+ }, "getThemeVariables") }
2589
+ }, W = {
2590
+ flowchart: {
2591
+ useMaxWidth: !0,
2592
+ titleTopMargin: 25,
2593
+ subGraphTitleMargin: {
2594
+ top: 0,
2595
+ bottom: 0
2596
+ },
2597
+ diagramPadding: 8,
2598
+ htmlLabels: null,
2599
+ nodeSpacing: 50,
2600
+ rankSpacing: 50,
2601
+ curve: "basis",
2602
+ padding: 15,
2603
+ defaultRenderer: "dagre-wrapper",
2604
+ wrappingWidth: 200,
2605
+ inheritDir: !1
2606
+ },
2607
+ swimlane: {
2608
+ useMaxWidth: !0,
2609
+ lineHops: "arc",
2610
+ ignoreCrossLaneEdges: !0,
2611
+ optimizeRanksByCrossings: !0,
2612
+ automaticLaneOrdering: !1
2613
+ },
2614
+ sequence: {
2615
+ useMaxWidth: !0,
2616
+ hideUnusedParticipants: !1,
2617
+ activationWidth: 10,
2618
+ diagramMarginX: 50,
2619
+ diagramMarginY: 10,
2620
+ actorMargin: 50,
2621
+ width: 150,
2622
+ height: 65,
2623
+ boxMargin: 10,
2624
+ boxTextMargin: 5,
2625
+ noteMargin: 10,
2626
+ messageMargin: 35,
2627
+ messageAlign: "center",
2628
+ mirrorActors: !0,
2629
+ forceMenus: !1,
2630
+ bottomMarginAdj: 1,
2631
+ rightAngles: !1,
2632
+ showSequenceNumbers: !1,
2633
+ actorFontSize: 14,
2634
+ actorFontFamily: "\"Open Sans\", sans-serif",
2635
+ actorFontWeight: 400,
2636
+ noteFontSize: 14,
2637
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2638
+ noteFontWeight: 400,
2639
+ noteAlign: "center",
2640
+ messageFontSize: 16,
2641
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2642
+ messageFontWeight: 400,
2643
+ wrap: !1,
2644
+ wrapPadding: 10,
2645
+ labelBoxWidth: 50,
2646
+ labelBoxHeight: 20
2647
+ },
2648
+ gantt: {
2649
+ useMaxWidth: !0,
2650
+ titleTopMargin: 25,
2651
+ barHeight: 20,
2652
+ barGap: 4,
2653
+ topPadding: 50,
2654
+ rightPadding: 75,
2655
+ leftPadding: 75,
2656
+ gridLineStartPadding: 35,
2657
+ fontSize: 11,
2658
+ sectionFontSize: 11,
2659
+ numberSectionStyles: 4,
2660
+ axisFormat: "%Y-%m-%d",
2661
+ topAxis: !1,
2662
+ displayMode: "",
2663
+ weekday: "sunday"
2664
+ },
2665
+ journey: {
2666
+ useMaxWidth: !0,
2667
+ diagramMarginX: 50,
2668
+ diagramMarginY: 10,
2669
+ leftMargin: 150,
2670
+ maxLabelWidth: 360,
2671
+ width: 150,
2672
+ height: 50,
2673
+ boxMargin: 10,
2674
+ boxTextMargin: 5,
2675
+ noteMargin: 10,
2676
+ messageMargin: 35,
2677
+ messageAlign: "center",
2678
+ bottomMarginAdj: 1,
2679
+ rightAngles: !1,
2680
+ taskFontSize: 14,
2681
+ taskFontFamily: "\"Open Sans\", sans-serif",
2682
+ taskMargin: 50,
2683
+ activationWidth: 10,
2684
+ textPlacement: "fo",
2685
+ actorColours: [
2686
+ "#8FBC8F",
2687
+ "#7CFC00",
2688
+ "#00FFFF",
2689
+ "#20B2AA",
2690
+ "#B0E0E6",
2691
+ "#FFFFE0"
2692
+ ],
2693
+ sectionFills: [
2694
+ "#191970",
2695
+ "#8B008B",
2696
+ "#4B0082",
2697
+ "#2F4F4F",
2698
+ "#800000",
2699
+ "#8B4513",
2700
+ "#00008B"
2701
+ ],
2702
+ sectionColours: ["#fff"],
2703
+ titleColor: "",
2704
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2705
+ titleFontSize: "4ex"
2706
+ },
2707
+ class: {
2708
+ useMaxWidth: !0,
2709
+ titleTopMargin: 25,
2710
+ arrowMarkerAbsolute: !1,
2711
+ dividerMargin: 10,
2712
+ padding: 5,
2713
+ textHeight: 10,
2714
+ defaultRenderer: "dagre-wrapper",
2715
+ htmlLabels: !1,
2716
+ hideEmptyMembersBox: !1,
2717
+ hierarchicalNamespaces: !0
2718
+ },
2719
+ state: {
2720
+ useMaxWidth: !0,
2721
+ titleTopMargin: 25,
2722
+ dividerMargin: 10,
2723
+ sizeUnit: 5,
2724
+ padding: 8,
2725
+ textHeight: 10,
2726
+ titleShift: -15,
2727
+ noteMargin: 10,
2728
+ forkWidth: 70,
2729
+ forkHeight: 7,
2730
+ miniPadding: 2,
2731
+ fontSizeFactor: 5.02,
2732
+ fontSize: 24,
2733
+ labelHeight: 16,
2734
+ edgeLengthFactor: "20",
2735
+ compositTitleSize: 35,
2736
+ radius: 5,
2737
+ defaultRenderer: "dagre-wrapper"
2738
+ },
2739
+ er: {
2740
+ useMaxWidth: !0,
2741
+ titleTopMargin: 25,
2742
+ diagramPadding: 20,
2743
+ layoutDirection: "TB",
2744
+ minEntityWidth: 100,
2745
+ minEntityHeight: 75,
2746
+ entityPadding: 15,
2747
+ nodeSpacing: 140,
2748
+ rankSpacing: 80,
2749
+ stroke: "gray",
2750
+ fill: "honeydew",
2751
+ fontSize: 12
2752
+ },
2753
+ pie: {
2754
+ useMaxWidth: !0,
2755
+ textPosition: .75,
2756
+ donutHole: 0,
2757
+ legendPosition: "right",
2758
+ highlightSlice: ""
2759
+ },
2760
+ quadrantChart: {
2761
+ useMaxWidth: !0,
2762
+ chartWidth: 500,
2763
+ chartHeight: 500,
2764
+ titleFontSize: 20,
2765
+ titlePadding: 10,
2766
+ quadrantPadding: 5,
2767
+ xAxisLabelPadding: 5,
2768
+ yAxisLabelPadding: 5,
2769
+ xAxisLabelFontSize: 16,
2770
+ yAxisLabelFontSize: 16,
2771
+ quadrantLabelFontSize: 16,
2772
+ quadrantTextTopPadding: 5,
2773
+ pointTextPadding: 5,
2774
+ pointLabelFontSize: 12,
2775
+ pointRadius: 5,
2776
+ xAxisPosition: "top",
2777
+ yAxisPosition: "left",
2778
+ quadrantInternalBorderStrokeWidth: 1,
2779
+ quadrantExternalBorderStrokeWidth: 2
2780
+ },
2781
+ xyChart: {
2782
+ useMaxWidth: !0,
2783
+ width: 700,
2784
+ height: 500,
2785
+ titleFontSize: 20,
2786
+ titlePadding: 10,
2787
+ showDataLabel: !1,
2788
+ showDataLabelOutsideBar: !1,
2789
+ showTitle: !0,
2790
+ xAxis: {
2791
+ $ref: "#/$defs/XYChartAxisConfig",
2792
+ showLabel: !0,
2793
+ labelFontSize: 14,
2794
+ labelPadding: 5,
2795
+ showTitle: !0,
2796
+ titleFontSize: 16,
2797
+ titlePadding: 5,
2798
+ showTick: !0,
2799
+ tickLength: 5,
2800
+ tickWidth: 2,
2801
+ showAxisLine: !0,
2802
+ axisLineWidth: 2,
2803
+ labelRotation: 0
2804
+ },
2805
+ yAxis: {
2806
+ $ref: "#/$defs/XYChartAxisConfig",
2807
+ showLabel: !0,
2808
+ labelFontSize: 14,
2809
+ labelPadding: 5,
2810
+ showTitle: !0,
2811
+ titleFontSize: 16,
2812
+ titlePadding: 5,
2813
+ showTick: !0,
2814
+ tickLength: 5,
2815
+ tickWidth: 2,
2816
+ showAxisLine: !0,
2817
+ axisLineWidth: 2,
2818
+ labelRotation: 0
2819
+ },
2820
+ chartOrientation: "vertical",
2821
+ plotReservedSpacePercent: 50
2822
+ },
2823
+ requirement: {
2824
+ useMaxWidth: !0,
2825
+ rect_fill: "#f9f9f9",
2826
+ text_color: "#333",
2827
+ rect_border_size: "0.5px",
2828
+ rect_border_color: "#bbb",
2829
+ rect_min_width: 200,
2830
+ rect_min_height: 200,
2831
+ fontSize: 14,
2832
+ rect_padding: 10,
2833
+ line_height: 20
2834
+ },
2835
+ mindmap: {
2836
+ useMaxWidth: !0,
2837
+ padding: 10,
2838
+ maxNodeWidth: 200,
2839
+ layoutAlgorithm: "cose-bilkent"
2840
+ },
2841
+ ishikawa: {
2842
+ useMaxWidth: !0,
2843
+ diagramPadding: 20
2844
+ },
2845
+ kanban: {
2846
+ useMaxWidth: !0,
2847
+ padding: 8,
2848
+ sectionWidth: 200,
2849
+ ticketBaseUrl: ""
2850
+ },
2851
+ timeline: {
2852
+ useMaxWidth: !0,
2853
+ diagramMarginX: 50,
2854
+ diagramMarginY: 10,
2855
+ leftMargin: 150,
2856
+ width: 150,
2857
+ height: 50,
2858
+ boxMargin: 10,
2859
+ boxTextMargin: 5,
2860
+ noteMargin: 10,
2861
+ messageMargin: 35,
2862
+ messageAlign: "center",
2863
+ bottomMarginAdj: 1,
2864
+ rightAngles: !1,
2865
+ taskFontSize: 14,
2866
+ taskFontFamily: "\"Open Sans\", sans-serif",
2867
+ taskMargin: 50,
2868
+ activationWidth: 10,
2869
+ textPlacement: "fo",
2870
+ actorColours: [
2871
+ "#8FBC8F",
2872
+ "#7CFC00",
2873
+ "#00FFFF",
2874
+ "#20B2AA",
2875
+ "#B0E0E6",
2876
+ "#FFFFE0"
2877
+ ],
2878
+ sectionFills: [
2879
+ "#191970",
2880
+ "#8B008B",
2881
+ "#4B0082",
2882
+ "#2F4F4F",
2883
+ "#800000",
2884
+ "#8B4513",
2885
+ "#00008B"
2886
+ ],
2887
+ sectionColours: ["#fff"],
2888
+ disableMulticolor: !1
2889
+ },
2890
+ gitGraph: {
2891
+ useMaxWidth: !0,
2892
+ titleTopMargin: 25,
2893
+ diagramPadding: 8,
2894
+ nodeLabel: {
2895
+ width: 75,
2896
+ height: 100,
2897
+ x: -25,
2898
+ y: 0
2899
+ },
2900
+ mainBranchName: "main",
2901
+ mainBranchOrder: 0,
2902
+ showCommitLabel: !0,
2903
+ showBranches: !0,
2904
+ rotateCommitLabel: !0,
2905
+ parallelCommits: !1,
2906
+ arrowMarkerAbsolute: !1
2907
+ },
2908
+ c4: {
2909
+ useMaxWidth: !0,
2910
+ diagramMarginX: 50,
2911
+ diagramMarginY: 10,
2912
+ c4ShapeMargin: 50,
2913
+ c4ShapePadding: 20,
2914
+ width: 216,
2915
+ height: 60,
2916
+ boxMargin: 10,
2917
+ c4ShapeInRow: 4,
2918
+ nextLinePaddingX: 0,
2919
+ c4BoundaryInRow: 2,
2920
+ personFontSize: 14,
2921
+ personFontFamily: "\"Open Sans\", sans-serif",
2922
+ personFontWeight: "normal",
2923
+ external_personFontSize: 14,
2924
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2925
+ external_personFontWeight: "normal",
2926
+ systemFontSize: 14,
2927
+ systemFontFamily: "\"Open Sans\", sans-serif",
2928
+ systemFontWeight: "normal",
2929
+ external_systemFontSize: 14,
2930
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2931
+ external_systemFontWeight: "normal",
2932
+ system_dbFontSize: 14,
2933
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2934
+ system_dbFontWeight: "normal",
2935
+ external_system_dbFontSize: 14,
2936
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2937
+ external_system_dbFontWeight: "normal",
2938
+ system_queueFontSize: 14,
2939
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2940
+ system_queueFontWeight: "normal",
2941
+ external_system_queueFontSize: 14,
2942
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2943
+ external_system_queueFontWeight: "normal",
2944
+ boundaryFontSize: 14,
2945
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2946
+ boundaryFontWeight: "normal",
2947
+ messageFontSize: 12,
2948
+ messageFontFamily: "\"Open Sans\", sans-serif",
2949
+ messageFontWeight: "normal",
2950
+ containerFontSize: 14,
2951
+ containerFontFamily: "\"Open Sans\", sans-serif",
2952
+ containerFontWeight: "normal",
2953
+ external_containerFontSize: 14,
2954
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2955
+ external_containerFontWeight: "normal",
2956
+ container_dbFontSize: 14,
2957
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2958
+ container_dbFontWeight: "normal",
2959
+ external_container_dbFontSize: 14,
2960
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2961
+ external_container_dbFontWeight: "normal",
2962
+ container_queueFontSize: 14,
2963
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2964
+ container_queueFontWeight: "normal",
2965
+ external_container_queueFontSize: 14,
2966
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2967
+ external_container_queueFontWeight: "normal",
2968
+ componentFontSize: 14,
2969
+ componentFontFamily: "\"Open Sans\", sans-serif",
2970
+ componentFontWeight: "normal",
2971
+ external_componentFontSize: 14,
2972
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2973
+ external_componentFontWeight: "normal",
2974
+ component_dbFontSize: 14,
2975
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2976
+ component_dbFontWeight: "normal",
2977
+ external_component_dbFontSize: 14,
2978
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2979
+ external_component_dbFontWeight: "normal",
2980
+ component_queueFontSize: 14,
2981
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2982
+ component_queueFontWeight: "normal",
2983
+ external_component_queueFontSize: 14,
2984
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2985
+ external_component_queueFontWeight: "normal",
2986
+ wrap: !0,
2987
+ wrapPadding: 10,
2988
+ person_bg_color: "#08427B",
2989
+ person_border_color: "#073B6F",
2990
+ external_person_bg_color: "#686868",
2991
+ external_person_border_color: "#8A8A8A",
2992
+ system_bg_color: "#1168BD",
2993
+ system_border_color: "#3C7FC0",
2994
+ system_db_bg_color: "#1168BD",
2995
+ system_db_border_color: "#3C7FC0",
2996
+ system_queue_bg_color: "#1168BD",
2997
+ system_queue_border_color: "#3C7FC0",
2998
+ external_system_bg_color: "#999999",
2999
+ external_system_border_color: "#8A8A8A",
3000
+ external_system_db_bg_color: "#999999",
3001
+ external_system_db_border_color: "#8A8A8A",
3002
+ external_system_queue_bg_color: "#999999",
3003
+ external_system_queue_border_color: "#8A8A8A",
3004
+ container_bg_color: "#438DD5",
3005
+ container_border_color: "#3C7FC0",
3006
+ container_db_bg_color: "#438DD5",
3007
+ container_db_border_color: "#3C7FC0",
3008
+ container_queue_bg_color: "#438DD5",
3009
+ container_queue_border_color: "#3C7FC0",
3010
+ external_container_bg_color: "#B3B3B3",
3011
+ external_container_border_color: "#A6A6A6",
3012
+ external_container_db_bg_color: "#B3B3B3",
3013
+ external_container_db_border_color: "#A6A6A6",
3014
+ external_container_queue_bg_color: "#B3B3B3",
3015
+ external_container_queue_border_color: "#A6A6A6",
3016
+ component_bg_color: "#85BBF0",
3017
+ component_border_color: "#78A8D8",
3018
+ component_db_bg_color: "#85BBF0",
3019
+ component_db_border_color: "#78A8D8",
3020
+ component_queue_bg_color: "#85BBF0",
3021
+ component_queue_border_color: "#78A8D8",
3022
+ external_component_bg_color: "#CCCCCC",
3023
+ external_component_border_color: "#BFBFBF",
3024
+ external_component_db_bg_color: "#CCCCCC",
3025
+ external_component_db_border_color: "#BFBFBF",
3026
+ external_component_queue_bg_color: "#CCCCCC",
3027
+ external_component_queue_border_color: "#BFBFBF"
3028
+ },
3029
+ sankey: {
3030
+ useMaxWidth: !0,
3031
+ width: 600,
3032
+ height: 400,
3033
+ linkColor: "gradient",
3034
+ nodeAlignment: "justify",
3035
+ showValues: !0,
3036
+ prefix: "",
3037
+ suffix: "",
3038
+ nodeWidth: 10,
3039
+ nodePadding: 12,
3040
+ labelStyle: "legacy"
3041
+ },
3042
+ block: {
3043
+ useMaxWidth: !0,
3044
+ padding: 8
3045
+ },
3046
+ packet: {
3047
+ useMaxWidth: !0,
3048
+ rowHeight: 32,
3049
+ bitWidth: 32,
3050
+ bitsPerRow: 32,
3051
+ showBits: !0,
3052
+ paddingX: 5,
3053
+ paddingY: 5
3054
+ },
3055
+ treeView: {
3056
+ useMaxWidth: !0,
3057
+ rowIndent: 10,
3058
+ paddingX: 5,
3059
+ paddingY: 5,
3060
+ lineThickness: 1,
3061
+ showIcons: !1,
3062
+ defaultIconPack: "",
3063
+ filenameIcons: {},
3064
+ extensionIcons: {}
3065
+ },
3066
+ architecture: {
3067
+ useMaxWidth: !0,
3068
+ padding: 40,
3069
+ iconSize: 80,
3070
+ fontSize: 16,
3071
+ randomize: !1,
3072
+ nodeSeparation: 75,
3073
+ idealEdgeLengthMultiplier: 1.5,
3074
+ edgeElasticity: .45,
3075
+ numIter: 2500,
3076
+ seed: 1
3077
+ },
3078
+ eventmodeling: {
3079
+ useMaxWidth: !0,
3080
+ padding: 30,
3081
+ rowHeight: 32
3082
+ },
3083
+ radar: {
3084
+ useMaxWidth: !0,
3085
+ width: 600,
3086
+ height: 600,
3087
+ marginTop: 50,
3088
+ marginRight: 50,
3089
+ marginBottom: 50,
3090
+ marginLeft: 50,
3091
+ axisScaleFactor: 1,
3092
+ axisLabelFactor: 1.05,
3093
+ curveTension: .17
3094
+ },
3095
+ venn: {
3096
+ useMaxWidth: !0,
3097
+ width: 800,
3098
+ height: 450,
3099
+ padding: 8,
3100
+ useDebugLayout: !1
3101
+ },
3102
+ cynefin: {
3103
+ useMaxWidth: !0,
3104
+ width: 800,
3105
+ height: 600,
3106
+ padding: 40,
3107
+ showDomainDescriptions: !0,
3108
+ boundaryAmplitude: 8,
3109
+ seed: 0
3110
+ },
3111
+ theme: "default",
3112
+ look: "classic",
3113
+ handDrawnSeed: 0,
3114
+ layout: "dagre",
3115
+ maxTextSize: 5e4,
3116
+ maxEdges: 500,
3117
+ darkMode: !1,
3118
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3119
+ logLevel: 5,
3120
+ securityLevel: "strict",
3121
+ startOnLoad: !0,
3122
+ arrowMarkerAbsolute: !1,
3123
+ secure: [
3124
+ "secure",
3125
+ "securityLevel",
3126
+ "startOnLoad",
3127
+ "maxTextSize",
3128
+ "suppressErrorRendering",
3129
+ "maxEdges"
3130
+ ],
3131
+ legacyMathML: !1,
3132
+ forceLegacyMathML: !1,
3133
+ deterministicIds: !1,
3134
+ fontSize: 16,
3135
+ markdownAutoWrap: !0,
3136
+ suppressErrorRendering: !1
3137
+ }, Mt = {
3138
+ ...W,
3139
+ deterministicIDSeed: void 0,
3140
+ elk: {
3141
+ mergeEdges: !1,
3142
+ nodePlacementStrategy: "BRANDES_KOEPF",
3143
+ forceNodeModelOrder: !1,
3144
+ considerModelOrder: "NODES_AND_EDGES"
3145
+ },
3146
+ themeCSS: void 0,
3147
+ themeVariables: U.default.getThemeVariables(),
3148
+ sequence: {
3149
+ ...W.sequence,
3150
+ messageFont: /* @__PURE__ */ e(function() {
3151
+ return {
3152
+ fontFamily: this.messageFontFamily,
3153
+ fontSize: this.messageFontSize,
3154
+ fontWeight: this.messageFontWeight
3155
+ };
3156
+ }, "messageFont"),
3157
+ noteFont: /* @__PURE__ */ e(function() {
3158
+ return {
3159
+ fontFamily: this.noteFontFamily,
3160
+ fontSize: this.noteFontSize,
3161
+ fontWeight: this.noteFontWeight
3162
+ };
3163
+ }, "noteFont"),
3164
+ actorFont: /* @__PURE__ */ e(function() {
3165
+ return {
3166
+ fontFamily: this.actorFontFamily,
3167
+ fontSize: this.actorFontSize,
3168
+ fontWeight: this.actorFontWeight
3169
+ };
3170
+ }, "actorFont")
3171
+ },
3172
+ class: {
3173
+ hideEmptyMembersBox: !1,
3174
+ hierarchicalNamespaces: !0
3175
+ },
3176
+ gantt: {
3177
+ ...W.gantt,
3178
+ tickInterval: void 0,
3179
+ useWidth: void 0
3180
+ },
3181
+ c4: {
3182
+ ...W.c4,
3183
+ useWidth: void 0,
3184
+ personFont: /* @__PURE__ */ e(function() {
3185
+ return {
3186
+ fontFamily: this.personFontFamily,
3187
+ fontSize: this.personFontSize,
3188
+ fontWeight: this.personFontWeight
3189
+ };
3190
+ }, "personFont"),
3191
+ flowchart: {
3192
+ ...W.flowchart,
3193
+ inheritDir: !1
3194
+ },
3195
+ external_personFont: /* @__PURE__ */ e(function() {
3196
+ return {
3197
+ fontFamily: this.external_personFontFamily,
3198
+ fontSize: this.external_personFontSize,
3199
+ fontWeight: this.external_personFontWeight
3200
+ };
3201
+ }, "external_personFont"),
3202
+ systemFont: /* @__PURE__ */ e(function() {
3203
+ return {
3204
+ fontFamily: this.systemFontFamily,
3205
+ fontSize: this.systemFontSize,
3206
+ fontWeight: this.systemFontWeight
3207
+ };
3208
+ }, "systemFont"),
3209
+ external_systemFont: /* @__PURE__ */ e(function() {
3210
+ return {
3211
+ fontFamily: this.external_systemFontFamily,
3212
+ fontSize: this.external_systemFontSize,
3213
+ fontWeight: this.external_systemFontWeight
3214
+ };
3215
+ }, "external_systemFont"),
3216
+ system_dbFont: /* @__PURE__ */ e(function() {
3217
+ return {
3218
+ fontFamily: this.system_dbFontFamily,
3219
+ fontSize: this.system_dbFontSize,
3220
+ fontWeight: this.system_dbFontWeight
3221
+ };
3222
+ }, "system_dbFont"),
3223
+ external_system_dbFont: /* @__PURE__ */ e(function() {
3224
+ return {
3225
+ fontFamily: this.external_system_dbFontFamily,
3226
+ fontSize: this.external_system_dbFontSize,
3227
+ fontWeight: this.external_system_dbFontWeight
3228
+ };
3229
+ }, "external_system_dbFont"),
3230
+ system_queueFont: /* @__PURE__ */ e(function() {
3231
+ return {
3232
+ fontFamily: this.system_queueFontFamily,
3233
+ fontSize: this.system_queueFontSize,
3234
+ fontWeight: this.system_queueFontWeight
3235
+ };
3236
+ }, "system_queueFont"),
3237
+ external_system_queueFont: /* @__PURE__ */ e(function() {
3238
+ return {
3239
+ fontFamily: this.external_system_queueFontFamily,
3240
+ fontSize: this.external_system_queueFontSize,
3241
+ fontWeight: this.external_system_queueFontWeight
3242
+ };
3243
+ }, "external_system_queueFont"),
3244
+ containerFont: /* @__PURE__ */ e(function() {
3245
+ return {
3246
+ fontFamily: this.containerFontFamily,
3247
+ fontSize: this.containerFontSize,
3248
+ fontWeight: this.containerFontWeight
3249
+ };
3250
+ }, "containerFont"),
3251
+ external_containerFont: /* @__PURE__ */ e(function() {
3252
+ return {
3253
+ fontFamily: this.external_containerFontFamily,
3254
+ fontSize: this.external_containerFontSize,
3255
+ fontWeight: this.external_containerFontWeight
3256
+ };
3257
+ }, "external_containerFont"),
3258
+ container_dbFont: /* @__PURE__ */ e(function() {
3259
+ return {
3260
+ fontFamily: this.container_dbFontFamily,
3261
+ fontSize: this.container_dbFontSize,
3262
+ fontWeight: this.container_dbFontWeight
3263
+ };
3264
+ }, "container_dbFont"),
3265
+ external_container_dbFont: /* @__PURE__ */ e(function() {
3266
+ return {
3267
+ fontFamily: this.external_container_dbFontFamily,
3268
+ fontSize: this.external_container_dbFontSize,
3269
+ fontWeight: this.external_container_dbFontWeight
3270
+ };
3271
+ }, "external_container_dbFont"),
3272
+ container_queueFont: /* @__PURE__ */ e(function() {
3273
+ return {
3274
+ fontFamily: this.container_queueFontFamily,
3275
+ fontSize: this.container_queueFontSize,
3276
+ fontWeight: this.container_queueFontWeight
3277
+ };
3278
+ }, "container_queueFont"),
3279
+ external_container_queueFont: /* @__PURE__ */ e(function() {
3280
+ return {
3281
+ fontFamily: this.external_container_queueFontFamily,
3282
+ fontSize: this.external_container_queueFontSize,
3283
+ fontWeight: this.external_container_queueFontWeight
3284
+ };
3285
+ }, "external_container_queueFont"),
3286
+ componentFont: /* @__PURE__ */ e(function() {
3287
+ return {
3288
+ fontFamily: this.componentFontFamily,
3289
+ fontSize: this.componentFontSize,
3290
+ fontWeight: this.componentFontWeight
3291
+ };
3292
+ }, "componentFont"),
3293
+ external_componentFont: /* @__PURE__ */ e(function() {
3294
+ return {
3295
+ fontFamily: this.external_componentFontFamily,
3296
+ fontSize: this.external_componentFontSize,
3297
+ fontWeight: this.external_componentFontWeight
3298
+ };
3299
+ }, "external_componentFont"),
3300
+ component_dbFont: /* @__PURE__ */ e(function() {
3301
+ return {
3302
+ fontFamily: this.component_dbFontFamily,
3303
+ fontSize: this.component_dbFontSize,
3304
+ fontWeight: this.component_dbFontWeight
3305
+ };
3306
+ }, "component_dbFont"),
3307
+ external_component_dbFont: /* @__PURE__ */ e(function() {
3308
+ return {
3309
+ fontFamily: this.external_component_dbFontFamily,
3310
+ fontSize: this.external_component_dbFontSize,
3311
+ fontWeight: this.external_component_dbFontWeight
3312
+ };
3313
+ }, "external_component_dbFont"),
3314
+ component_queueFont: /* @__PURE__ */ e(function() {
3315
+ return {
3316
+ fontFamily: this.component_queueFontFamily,
3317
+ fontSize: this.component_queueFontSize,
3318
+ fontWeight: this.component_queueFontWeight
3319
+ };
3320
+ }, "component_queueFont"),
3321
+ external_component_queueFont: /* @__PURE__ */ e(function() {
3322
+ return {
3323
+ fontFamily: this.external_component_queueFontFamily,
3324
+ fontSize: this.external_component_queueFontSize,
3325
+ fontWeight: this.external_component_queueFontWeight
3326
+ };
3327
+ }, "external_component_queueFont"),
3328
+ boundaryFont: /* @__PURE__ */ e(function() {
3329
+ return {
3330
+ fontFamily: this.boundaryFontFamily,
3331
+ fontSize: this.boundaryFontSize,
3332
+ fontWeight: this.boundaryFontWeight
3333
+ };
3334
+ }, "boundaryFont"),
3335
+ messageFont: /* @__PURE__ */ e(function() {
3336
+ return {
3337
+ fontFamily: this.messageFontFamily,
3338
+ fontSize: this.messageFontSize,
3339
+ fontWeight: this.messageFontWeight
3340
+ };
3341
+ }, "messageFont")
3342
+ },
3343
+ pie: {
3344
+ ...W.pie,
3345
+ useWidth: 984
3346
+ },
3347
+ xyChart: {
3348
+ ...W.xyChart,
3349
+ useWidth: void 0
3350
+ },
3351
+ requirement: {
3352
+ ...W.requirement,
3353
+ useWidth: void 0
3354
+ },
3355
+ packet: { ...W.packet },
3356
+ eventmodeling: { ...W.eventmodeling },
3357
+ treeView: {
3358
+ ...W.treeView,
3359
+ useWidth: void 0
3360
+ },
3361
+ radar: { ...W.radar },
3362
+ railroad: {
3363
+ ...W.railroad,
3364
+ fontSize: void 0,
3365
+ fontFamily: void 0,
3366
+ terminalFill: void 0,
3367
+ terminalStroke: void 0,
3368
+ terminalTextColor: void 0,
3369
+ nonTerminalFill: void 0,
3370
+ nonTerminalStroke: void 0,
3371
+ nonTerminalTextColor: void 0,
3372
+ lineColor: void 0,
3373
+ markerFill: void 0,
3374
+ commentFill: void 0,
3375
+ commentStroke: void 0,
3376
+ commentTextColor: void 0,
3377
+ specialFill: void 0,
3378
+ specialStroke: void 0,
3379
+ ruleNameColor: void 0
3380
+ },
3381
+ ishikawa: { ...W.ishikawa },
3382
+ sankey: {
3383
+ ...W.sankey,
3384
+ nodeColors: void 0
3385
+ },
3386
+ treemap: {
3387
+ useMaxWidth: !0,
3388
+ padding: 10,
3389
+ diagramPadding: 8,
3390
+ showValues: !0,
3391
+ nodeWidth: 100,
3392
+ nodeHeight: 40,
3393
+ borderWidth: 1,
3394
+ valueFontSize: 12,
3395
+ labelFontSize: 14,
3396
+ valueFormat: ","
3397
+ },
3398
+ venn: { ...W.venn },
3399
+ cynefin: { ...W.cynefin }
3400
+ }, Nt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3401
+ ...n,
3402
+ t + r,
3403
+ ...Nt(e[r], "")
3404
+ ] : [...n, t + r], []), "keyify"), Pt = new Set(Nt(Mt, "")), Ft = Mt, It = {
3405
+ nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3406
+ filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3407
+ extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3408
+ }, Lt = /* @__PURE__ */ e((e, t) => {
3409
+ for (let n of Object.keys(e)) {
3410
+ let i = e[n];
3411
+ (n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
3412
+ }
3413
+ }, "sanitizeDictionaryConfig"), G = /* @__PURE__ */ e((e) => {
3414
+ if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3415
+ if (Array.isArray(e)) {
3416
+ e.forEach((e) => G(e));
3417
+ return;
3418
+ }
3419
+ for (let t of Object.keys(e)) {
3420
+ if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pt.has(t) || e[t] == null) {
3421
+ r.debug("sanitize deleting key: ", t), delete e[t];
3422
+ continue;
3423
+ }
3424
+ if (typeof e[t] == "object") {
3425
+ let n = It[t];
3426
+ n ? Lt(e[t], n) : (r.debug("sanitizing object", t), G(e[t]));
3427
+ continue;
3428
+ }
3429
+ for (let n of [
3430
+ "themeCSS",
3431
+ "fontFamily",
3432
+ "altFontFamily"
3433
+ ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Rt(e[t]));
3434
+ }
3435
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3436
+ let n = e.themeVariables[t];
3437
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3438
+ }
3439
+ r.debug("After sanitization", e);
3440
+ }
3441
+ }, "sanitizeDirective"), Rt = /* @__PURE__ */ e((e) => {
3442
+ let t = 0, n = 0;
3443
+ for (let r of e) {
3444
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3445
+ r === "{" ? t++ : r === "}" && n++;
3446
+ }
3447
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3448
+ }, "sanitizeCss"), zt = Object.freeze(Ft), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3449
+ "false",
3450
+ "null",
3451
+ "0"
3452
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), K = I({}, zt), Vt, q = [], Ht = I({}, zt), Ut = /* @__PURE__ */ e((e, t) => {
3453
+ let n = I({}, e), r = {};
3454
+ for (let e of t) Yt(e), r = I(r, e);
3455
+ if (n = I(n, r), r.theme && r.theme in U) {
3456
+ let e = I(I({}, Vt).themeVariables || {}, r.themeVariables);
3457
+ n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3458
+ }
3459
+ return Ht = n, tn(Ht), Ht;
3460
+ }, "updateCurrentConfig"), Wt = /* @__PURE__ */ e((e) => (K = I({}, zt), K = I(K, e), e.theme && U[e.theme] && (K.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Ut(K, q), K), "setSiteConfig"), Gt = /* @__PURE__ */ e((e) => {
3461
+ Vt = I({}, e);
3462
+ }, "saveConfigFromInitialize"), Kt = /* @__PURE__ */ e((e) => (K = I(K, e), Ut(K, q), K), "updateSiteConfig"), J = /* @__PURE__ */ e(() => I({}, K), "getSiteConfig"), qt = /* @__PURE__ */ e((e) => (tn(e), I(Ht, e), Jt()), "setConfig"), Jt = /* @__PURE__ */ e(() => I({}, Ht), "getConfig"), Yt = /* @__PURE__ */ e((e) => {
3463
+ e && (["secure", ...K.secure ?? []].forEach((t) => {
3464
+ Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3465
+ }), Object.keys(e).forEach((t) => {
3466
+ t.startsWith("__") && delete e[t];
3467
+ }), Object.keys(e).forEach((t) => {
3468
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Yt(e[t]);
3469
+ }));
3470
+ }, "sanitize"), Xt = /* @__PURE__ */ e((e) => {
3471
+ G(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3472
+ ...e.themeVariables,
3473
+ fontFamily: e.fontFamily
3474
+ }), q.push(e), Ut(K, q);
3475
+ }, "addDirective"), Zt = /* @__PURE__ */ e((e = K) => {
3476
+ q = [], Ut(e, q);
3477
+ }, "reset"), Qt = {
3478
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3479
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3480
+ }, $t = {}, en = /* @__PURE__ */ e((e) => {
3481
+ $t[e] || (r.warn(Qt[e]), $t[e] = !0);
3482
+ }, "issueWarning"), tn = /* @__PURE__ */ e((e) => {
3483
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && en("LAZY_LOAD_DEPRECATED");
3484
+ }, "checkConfig"), nn = /* @__PURE__ */ e(() => {
3485
+ let e = {};
3486
+ Vt && (e = I(e, Vt));
3487
+ for (let t of q) e = I(e, t);
3488
+ return e;
3489
+ }, "getUserDefinedConfig"), Y = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && en("FLOWCHART_HTML_LABELS_DEPRECATED"), Bt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), rn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, an = /\s*%%.*\n/gm, on = class extends Error {
3490
+ static {
3491
+ e(this, "UnknownDiagramError");
3492
+ }
3493
+ constructor(e) {
3494
+ super(e), this.name = "UnknownDiagramError";
3495
+ }
3496
+ }, sn = {}, cn = /* @__PURE__ */ e(function(e, t) {
3497
+ e = e.replace(rn, "").replace(X, "").replace(an, "\n");
3498
+ for (let [n, { detector: r }] of Object.entries(sn)) if (r(e, t)) return n;
3499
+ throw new on(`No diagram type detected matching given configuration for text: ${e}`);
3500
+ }, "detectType"), ln = /* @__PURE__ */ e((...e) => {
3501
+ for (let { id: t, detector: n, loader: r } of e) un(t, n, r);
3502
+ }, "registerLazyLoadedDiagrams"), un = /* @__PURE__ */ e((e, t, n) => {
3503
+ sn[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), sn[e] = {
3504
+ detector: t,
3505
+ loader: n
3506
+ }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
3507
+ }, "addDetector"), dn = /* @__PURE__ */ e((e) => sn[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, fn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), pn = /* @__PURE__ */ (() => {
3508
+ let e = !1;
3509
+ return () => {
3510
+ e ||= (Q(), !0);
3511
+ };
3512
+ })();
3513
+ function Q() {
3514
+ let e = "data-temp-href-target";
3515
+ pt.addHook("beforeSanitizeAttributes", (t) => {
3516
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3517
+ }), pt.addHook("afterSanitizeAttributes", (t) => {
3518
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3519
+ });
3520
+ }
3521
+ e(Q, "setupDompurifyHooks");
3522
+ var mn = /* @__PURE__ */ e((e) => (pn(), pt.sanitize(e)), "removeScript"), hn = /* @__PURE__ */ e((e, t) => {
3523
+ if (Y(t)) {
3524
+ let n = t.securityLevel;
3525
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = mn(e) : n !== "loose" && (e = bn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = yn(e));
3526
+ }
3527
+ return e;
3528
+ }, "sanitizeMore"), $ = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? pt.sanitize(hn(e, t), t.dompurifyConfig).toString() : pt.sanitize(hn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
3529
+ let t = "";
3530
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3531
+ }, "getUrl"), Sn = /* @__PURE__ */ e(function(...e) {
3532
+ let t = e.filter((e) => !isNaN(e));
3533
+ return Math.max(...t);
3534
+ }, "getMax"), Cn = /* @__PURE__ */ e(function(...e) {
3535
+ let t = e.filter((e) => !isNaN(e));
3536
+ return Math.min(...t);
3537
+ }, "getMin"), wn = /* @__PURE__ */ e(function(e) {
3538
+ let t = e.split(/(,)/), n = [];
3539
+ for (let e = 0; e < t.length; e++) {
3540
+ let r = t[e];
3541
+ if (r === "," && e > 0 && e + 1 < t.length) {
3542
+ let i = t[e - 1], a = t[e + 1];
3543
+ En(i, a) && (r = i + "," + a, e++, n.pop());
3544
+ }
3545
+ n.push(Dn(r));
3546
+ }
3547
+ return n.join("");
3548
+ }, "parseGenericTypes"), Tn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), En = /* @__PURE__ */ e((e, t) => {
3549
+ let n = Tn(e, "~"), r = Tn(t, "~");
3550
+ return n === 1 && r === 1;
3551
+ }, "shouldCombineSets"), Dn = /* @__PURE__ */ e((e) => {
3552
+ let t = Tn(e, "~"), n = !1;
3553
+ if (t <= 1) return e;
3554
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3555
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3556
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3557
+ return n && r.unshift("~"), r.join("");
3558
+ }, "processSet"), On = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), kn = /\$\$(.*?)\$\$/g, An = /* @__PURE__ */ e((e) => (e.match(kn)?.length ?? 0) > 0, "hasKatex"), jn = /* @__PURE__ */ e(async (e, t) => {
3559
+ let n = document.createElement("div");
3560
+ n.innerHTML = await Nn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3561
+ let r = {
3562
+ width: n.clientWidth,
3563
+ height: n.clientHeight
3564
+ };
3565
+ return n.remove(), r;
3566
+ }, "calculateMathMLDimensions"), Mn = /* @__PURE__ */ e(async (e, t) => {
3567
+ if (!An(e)) return e;
3568
+ if (!(On() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(kn, "MathML is unsupported in this environment.");
3569
+ {
3570
+ let { default: n } = await import("./custom-app-text-editor.js").then((e) => e.t), r = t.forceLegacyMathML || !On() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3571
+ return e.split(Z).map((e) => An(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(kn, (e, t) => n.renderToString(t, {
3572
+ throwOnError: !0,
3573
+ displayMode: !0,
3574
+ output: r
3575
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3576
+ }
3577
+ }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => $(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3578
+ getRows: fn,
3579
+ sanitizeText: $,
3580
+ sanitizeTextOrArray: gn,
3581
+ hasBreaks: _n,
3582
+ splitBreaks: vn,
3583
+ lineBreakRegex: Z,
3584
+ removeScript: mn,
3585
+ getUrl: xn,
3586
+ evaluate: Bt,
3587
+ getMax: Sn,
3588
+ getMin: Cn
3589
+ }, Fn = /* @__PURE__ */ e(function(e, t) {
3590
+ for (let n of t) e.attr(n[0], n[1]);
3591
+ }, "d3Attrs"), In = /* @__PURE__ */ e(function(e, t, n) {
3592
+ let r = /* @__PURE__ */ new Map();
3593
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3594
+ }, "calculateSvgSizeAttrs"), Ln = /* @__PURE__ */ e(function(e, t, n, r) {
3595
+ Fn(e, In(t, n, r));
3596
+ }, "configureSvgSize"), Rn = /* @__PURE__ */ e(function(e, t, n, i) {
3597
+ let a = t.node().getBBox(), o = a.width, s = a.height;
3598
+ r.info(`SVG bounds: ${o}x${s}`, a);
3599
+ let c = 0, l = 0;
3600
+ r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), Ln(t, l, c, i);
3601
+ let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
3602
+ t.attr("viewBox", u);
3603
+ }, "setupGraphViewbox"), zn = {};
3604
+ function Bn(e) {
3605
+ return [...e.cssRules].map((e) => e.cssText).join("\n");
3606
+ }
3607
+ e(Bn, "cssStyleSheetToString");
3608
+ var Vn = /* @__PURE__ */ e((e, t, n, i) => {
3609
+ let a = "";
3610
+ return e in zn && zn[e] ? a = zn[e]({
3611
+ ...n,
3612
+ svgId: i
3613
+ }) : r.warn(`No theme found for ${e}`), ` & {
3614
+ font-family: ${n.fontFamily};
3615
+ font-size: ${n.fontSize};
3616
+ fill: ${n.textColor}
3617
+ }
3618
+ @keyframes edge-animation-frame {
3619
+ from {
3620
+ stroke-dashoffset: 0;
3621
+ }
3622
+ }
3623
+ @keyframes dash {
3624
+ to {
3625
+ stroke-dashoffset: 0;
3626
+ }
3627
+ }
3628
+ & .edge-animation-slow {
3629
+ stroke-dasharray: 9,5 !important;
3630
+ stroke-dashoffset: 900;
3631
+ animation: dash 50s linear infinite;
3632
+ stroke-linecap: round;
3633
+ }
3634
+ & .edge-animation-fast {
3635
+ stroke-dasharray: 9,5 !important;
3636
+ stroke-dashoffset: 900;
3637
+ animation: dash 20s linear infinite;
3638
+ stroke-linecap: round;
3639
+ }
3640
+ /* Classes common for multiple diagrams */
3641
+
3642
+ & .error-icon {
3643
+ fill: ${n.errorBkgColor};
3644
+ }
3645
+ & .error-text {
3646
+ fill: ${n.errorTextColor};
3647
+ stroke: ${n.errorTextColor};
3648
+ }
3649
+
3650
+ & .edge-thickness-normal {
3651
+ stroke-width: ${n.strokeWidth ?? 1}px;
3652
+ }
3653
+ & .edge-thickness-thick {
3654
+ stroke-width: 3.5px
3655
+ }
3656
+ & .edge-pattern-solid {
3657
+ stroke-dasharray: 0;
3658
+ }
3659
+ & .edge-thickness-invisible {
3660
+ stroke-width: 0;
3661
+ fill: none;
3662
+ }
3663
+ & .edge-pattern-dashed{
3664
+ stroke-dasharray: 3;
3665
+ }
3666
+ .edge-pattern-dotted {
3667
+ stroke-dasharray: 2;
3668
+ }
3669
+
3670
+ & .marker {
3671
+ fill: ${n.lineColor};
3672
+ stroke: ${n.lineColor};
3673
+ }
3674
+ & .marker.cross {
3675
+ stroke: ${n.lineColor};
3676
+ }
3677
+
3678
+ & svg {
3679
+ font-family: ${n.fontFamily};
3680
+ font-size: ${n.fontSize};
3681
+ }
3682
+ & p {
3683
+ margin: 0
3684
+ }
3685
+
3686
+ ${a}
3687
+ .node .neo-node {
3688
+ stroke: ${n.nodeBorder};
3689
+ }
3690
+
3691
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3692
+ stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3693
+ filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3694
+ }
3695
+ [data-look="neo"].swimlane.cluster rect {
3696
+ filter: none;
3697
+ }
3698
+
3699
+
3700
+ [data-look="neo"].node path {
3701
+ stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3702
+ stroke-width: ${n.strokeWidth ?? 1}px;
3703
+ }
3704
+
3705
+ [data-look="neo"].node .outer-path {
3706
+ filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3707
+ }
3708
+
3709
+ [data-look="neo"].node .neo-line path {
3710
+ stroke: ${n.nodeBorder};
3711
+ filter: none;
3712
+ }
3713
+
3714
+ [data-look="neo"].node circle{
3715
+ stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3716
+ filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3717
+ }
3718
+
3719
+ [data-look="neo"].node circle .state-start{
3720
+ fill: #000000;
3721
+ }
3722
+
3723
+ [data-look="neo"].icon-shape .icon {
3724
+ fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3725
+ filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3726
+ }
3727
+
3728
+ [data-look="neo"].icon-shape .icon-neo path {
3729
+ stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3730
+ filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3731
+ }
3732
+
3733
+ ${t}
3734
+ `;
3735
+ }, "getStyles"), Hn = /* @__PURE__ */ e((e, t) => {
3736
+ t !== void 0 && (zn[e] = t);
3737
+ }, "addStylesForDiagram"), Un = Vn, Wn = {};
3738
+ t(Wn, {
3739
+ clear: () => Yn,
3740
+ getAccDescription: () => $n,
3741
+ getAccTitle: () => Zn,
3742
+ getDiagramTitle: () => tr,
3743
+ setAccDescription: () => Qn,
3744
+ setAccTitle: () => Xn,
3745
+ setDiagramTitle: () => er
3746
+ });
3747
+ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "sanitizeText"), Yn = /* @__PURE__ */ e(() => {
3748
+ Gn = "", qn = "", Kn = "";
3749
+ }, "clear"), Xn = /* @__PURE__ */ e((e) => {
3750
+ Gn = Jn(e).replace(/^\s+/g, "");
3751
+ }, "setAccTitle"), Zn = /* @__PURE__ */ e(() => Gn, "getAccTitle"), Qn = /* @__PURE__ */ e((e) => {
3752
+ qn = Jn(e).replace(/\n\s+/g, "\n");
3753
+ }, "setAccDescription"), $n = /* @__PURE__ */ e(() => qn, "getAccDescription"), er = /* @__PURE__ */ e((e) => {
3754
+ Kn = Jn(e);
3755
+ }, "setDiagramTitle"), tr = /* @__PURE__ */ e(() => Kn, "getDiagramTitle"), nr = r, rr = n, ir = Jt, ar = qt, or = zt, sr = /* @__PURE__ */ e((e) => $(e, ir()), "sanitizeText"), cr = Rn, lr = /* @__PURE__ */ e(() => Wn, "getCommonDb"), ur = {}, dr = /* @__PURE__ */ e((e, t, n) => {
3756
+ ur[e] && nr.warn(`Diagram with id ${e} already registered. Overwriting.`), ur[e] = t, n && un(e, n), Hn(e, t.styles), t.injectUtils?.(nr, rr, ir, sr, cr, lr(), () => {});
3757
+ }, "registerDiagram"), fr = /* @__PURE__ */ e((e) => {
3758
+ if (e in ur) return ur[e];
3759
+ throw new pr(e);
3760
+ }, "getDiagram"), pr = class extends Error {
3761
+ static {
3762
+ e(this, "DiagramNotFoundError");
3763
+ }
3764
+ constructor(e) {
3765
+ super(`Diagram ${e} not found.`);
3766
+ }
3767
+ };
3768
+ //#endregion
3769
+ export { pt as $, An as A, sr as B, dn as C, V as D, J as E, Nn as F, ar as G, Qn as H, Zt as I, Rn as J, er as K, Rt as L, wn as M, dr as N, xn as O, ln as P, Kt as Q, G as R, fr as S, Y as T, Xn as U, Gt as V, qt as W, Un as X, cr as Y, U as Z, rn as _, Yn as a, m as at, Jt as b, Ln as c, or as d, b as et, Ft as f, Bt as g, X as h, jn as i, g as it, Z as j, nn as k, Bn as l, sn as m, Xt as n, v as nt, Wn as o, a as ot, cn as p, Wt as q, I as r, _ as rt, Pn as s, on as t, y as tt, zt as u, $n as v, tr as w, ir as x, Zn as y, $ as z };