@peasant-labs/fairtrade 0.0.51 → 0.0.53

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 (118) hide show
  1. package/dist/lib/base.css +1 -1
  2. package/dist/lib/commons.js +544 -522
  3. package/dist/lib/components.css +1 -1
  4. package/dist/lib/share.js +2 -2
  5. package/dist/lib/tokens.css +2 -2
  6. package/dist/lib/tokens.json +2 -2
  7. package/dist/lib/types/AppSidebar.d.ts +9 -11
  8. package/dist/lib/types/Avatar.d.ts +2 -2
  9. package/dist/lib/types/Breadcrumb.d.ts +12 -5
  10. package/dist/lib/types/Dialog.d.ts +1 -1
  11. package/dist/lib/types/Input.d.ts +3 -3
  12. package/dist/lib/types/OverflowList.d.ts +1 -1
  13. package/dist/lib/types/RepoPicker.d.ts +3 -1
  14. package/dist/lib/types/Switch.d.ts +3 -3
  15. package/dist/lib/types/commons/Explore.d.ts +1 -1
  16. package/dist/lib/types/commons/types.d.ts +12 -0
  17. package/dist/lib/{ui-Do7A_I-0.js → ui-suNzomre.js} +1682 -1623
  18. package/dist/lib/ui.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/lib/abnfDiagram-WEYOIA3C-D4LMNFIJ.js +0 -89
  21. package/dist/lib/arc-1xTxsoRi.js +0 -80
  22. package/dist/lib/architecture-WOLXFQ4H-c6RsZuzu.js +0 -3
  23. package/dist/lib/architectureDiagram-ZHVYKT53-DTINqD5R.js +0 -4145
  24. package/dist/lib/array-CApNbSU9.js +0 -6
  25. package/dist/lib/blockDiagram-RJAE7QA3-CUYHoR3g.js +0 -1946
  26. package/dist/lib/c4Diagram-XDPPPE54-Cdx6_DsI.js +0 -2990
  27. package/dist/lib/channel-DagAO2vE.js +0 -5
  28. package/dist/lib/chunk-2E7WHVMD-BzhgXW3b.js +0 -490
  29. package/dist/lib/chunk-2Q5K7J3B-DWNwIK5Y.js +0 -15
  30. package/dist/lib/chunk-4EMNKR2T-DhFrQz9k.js +0 -236
  31. package/dist/lib/chunk-55XCU76K-CI0GXDkJ.js +0 -61
  32. package/dist/lib/chunk-5VM5RSS4-BAQ-46g4.js +0 -5
  33. package/dist/lib/chunk-7S6XSTFO-CMt_p-O6.js +0 -1373
  34. package/dist/lib/chunk-AQDTSKZB-DrZccIQa.js +0 -1847
  35. package/dist/lib/chunk-DSNLSHJZ-CpA9d2CJ.js +0 -4044
  36. package/dist/lib/chunk-DUW6YSOI-C-tN4Kiv.js +0 -10
  37. package/dist/lib/chunk-EJLWFMJV-B30MNYvY.js +0 -75
  38. package/dist/lib/chunk-HAGFOTED-DMU2JNZM.js +0 -4487
  39. package/dist/lib/chunk-HNE4Q36P-BIA0n2gA.js +0 -363
  40. package/dist/lib/chunk-J5ZVWO5B-CA_-jk8G.js +0 -12
  41. package/dist/lib/chunk-JWPE2WC7-KRpHbrIX.js +0 -8
  42. package/dist/lib/chunk-LNGE3PJU-CMGaAEAh.js +0 -1513
  43. package/dist/lib/chunk-NGNAAXSQ-D7Dvct7J.js +0 -19774
  44. package/dist/lib/chunk-NQOKRVIF-MK9F46y3.js +0 -4258
  45. package/dist/lib/chunk-OYAV6JZA-B1yICcbU.js +0 -10
  46. package/dist/lib/chunk-UHW7PFBP-CLrOaA0y.js +0 -67
  47. package/dist/lib/chunk-VQ5W62QI-_ZR3gKe4.js +0 -26
  48. package/dist/lib/chunk-WQQL4CDK-DFtyhYZq.js +0 -693
  49. package/dist/lib/chunk-XXDRQBXY-uzyNBbgx.js +0 -9
  50. package/dist/lib/chunk-Y2CYZVJY-BYzrzvCI.js +0 -12
  51. package/dist/lib/chunk-YZO67HFG-D1jKt78p.js +0 -275
  52. package/dist/lib/chunk-ZAUX2LTX-7XO0Yj1z.js +0 -37
  53. package/dist/lib/chunk-ZCHMQSOR-CxoKltfF.js +0 -349
  54. package/dist/lib/classDiagram-v2-4MYWR3UA-BPvwhZqw.js +0 -3397
  55. package/dist/lib/cose-bilkent-JH36ORCC-Oj79uOIQ.js +0 -2250
  56. package/dist/lib/cynefin-EF2NZ3EQ-COX3NRum.js +0 -3
  57. package/dist/lib/cynefinDiagram-WF24UDRP-UzTptNAX.js +0 -349
  58. package/dist/lib/cytoscape.esm-0ojxgO9x.js +0 -18161
  59. package/dist/lib/dagre-NK4GIZVX-DWZr-NGm.js +0 -2356
  60. package/dist/lib/defaultLocale-BbgDuMnp.js +0 -201
  61. package/dist/lib/diagram-CBK3MWTC-CsyKuv-w.js +0 -525
  62. package/dist/lib/diagram-I5XIIV2D-DWY2JSPC.js +0 -134
  63. package/dist/lib/diagram-ODIL2UCW-DUptj0JZ.js +0 -301
  64. package/dist/lib/diagram-PFBEJUXE-N5XnIBqM.js +0 -447
  65. package/dist/lib/diagram-RJA3I4VV-B9XgohYo.js +0 -214
  66. package/dist/lib/diagram-TYUNFSNR-XnsJIeAd.js +0 -5084
  67. package/dist/lib/dist-AMlsjiDX.js +0 -59
  68. package/dist/lib/ebnfDiagram-V4P3TTPT-BssHqFox.js +0 -100
  69. package/dist/lib/elk-QONTBCTQ-DwmwqYgP.js +0 -47944
  70. package/dist/lib/erDiagram-KYQIGQAA-BQiXw1Tw.js +0 -1970
  71. package/dist/lib/eventmodeling-K75KTNOO-DDb--yMc.js +0 -3
  72. package/dist/lib/flowDiagram-IUGLLWBU-BEqqF1y2.js +0 -17
  73. package/dist/lib/ganttDiagram-R7GPNTJY-BWtGXxEF.js +0 -3094
  74. package/dist/lib/gitGraph-VSP46ZUC-BSwOaak_.js +0 -3
  75. package/dist/lib/gitGraphDiagram-PDYL7XHY-CHGNuGbk.js +0 -729
  76. package/dist/lib/graphlib-Dndp26xU.js +0 -1267
  77. package/dist/lib/info-OHQRW6UA-Dk06sZRe.js +0 -3
  78. package/dist/lib/infoDiagram-MVDRKAX5-Cdhxnjmi.js +0 -20
  79. package/dist/lib/init-Bwwdo3M6.js +0 -15
  80. package/dist/lib/ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js +0 -719
  81. package/dist/lib/journeyDiagram-BOSHW7O7-C3_vsSjw.js +0 -884
  82. package/dist/lib/kanban-definition-FNSA4HC5-XsfCEsjn.js +0 -976
  83. package/dist/lib/katex-Dw0PnoPU.js +0 -21850
  84. package/dist/lib/line-C9krU3Sv.js +0 -34
  85. package/dist/lib/linear-Cvilv3OA.js +0 -289
  86. package/dist/lib/mermaid-parser.core-I7qQ_fxz.js +0 -638
  87. package/dist/lib/mermaid.core-UNHMAbBP.js +0 -1126
  88. package/dist/lib/mindmap-definition-6OY57UG3-CAua-JvB.js +0 -1011
  89. package/dist/lib/ordinal-C55HfHHp.js +0 -65
  90. package/dist/lib/packet-JDAUHWVQ-DZ-MKx4I.js +0 -3
  91. package/dist/lib/path-DNvJyUE8.js +0 -85
  92. package/dist/lib/pegDiagram-ECIUJNBX-BCxa_IO0.js +0 -94
  93. package/dist/lib/pie-XZMESJXO-DpCa-Nnq.js +0 -3
  94. package/dist/lib/pieDiagram-GNMPY74T-CE_C3dCB.js +0 -205
  95. package/dist/lib/quadrantDiagram-D57K4MC3-CDgzdMoL.js +0 -2001
  96. package/dist/lib/radar-ABXABTNO-BOVK7L9p.js +0 -3
  97. package/dist/lib/railroad-I3PHUGI6-B6spKM0Z.js +0 -3
  98. package/dist/lib/railroad-abnf-LNEFI6M7-DEWqfByZ.js +0 -3
  99. package/dist/lib/railroad-ebnf-DWYD2UWJ-CWRLtxHB.js +0 -3
  100. package/dist/lib/railroad-peg-JR7BVNR7-C-3NHSsk.js +0 -3
  101. package/dist/lib/railroadDiagram-Y72NRBL7-a8YVk8LT.js +0 -76
  102. package/dist/lib/requirementDiagram-EQYSW5RA-B9HolqxU.js +0 -2228
  103. package/dist/lib/rough.esm-a8mysczE.js +0 -1352
  104. package/dist/lib/sankeyDiagram-SY24JHO5-CLFMtMJG.js +0 -970
  105. package/dist/lib/sequenceDiagram-BLEHNHQU-B5wfSV85.js +0 -4253
  106. package/dist/lib/sizeCapture-INFHLROL-BWGCc9aa.js +0 -46
  107. package/dist/lib/src-Dcy0zUZH.js +0 -2153
  108. package/dist/lib/stateDiagram-v2-A6IESKWZ-C92vye4N.js +0 -2143
  109. package/dist/lib/swimlanes-B3ENRKFQ-B6-i-tPc.js +0 -4764
  110. package/dist/lib/swimlanesDiagram-AYQRV4AK-CbkBeql-.js +0 -28
  111. package/dist/lib/timeline-definition-JXYKGLGB-D2Ip4r72.js +0 -1073
  112. package/dist/lib/treeView-D4JQ5SDB-CFaKQ_2T.js +0 -3
  113. package/dist/lib/treemap-SAJKECNS-BQ6z7Z3g.js +0 -3
  114. package/dist/lib/usecaseDiagram-WPOLBNNX-BK1Anch1.js +0 -7190
  115. package/dist/lib/vennDiagram-Q3Y3IDCW-B6YTBqTS.js +0 -1880
  116. package/dist/lib/wardley-7MLQ67FV-DChYwu4i.js +0 -3
  117. package/dist/lib/wardleyDiagram-IVAIDKWA-D5I1qLUK.js +0 -645
  118. package/dist/lib/xychartDiagram-4URNHDU4-B6RXyhTO.js +0 -2218
@@ -1,4044 +0,0 @@
1
- import { h as e, m as t } from "./src-Dcy0zUZH.js";
2
- import { n, t as r } from "./chunk-Y2CYZVJY-BYzrzvCI.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
- }, ee = (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
- }, h = (e, t, n = 0, r = 1) => {
410
- if (typeof e != "number") return ee(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
- }, g = (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) => g(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 ee(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, ee = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - ee;
430
- return h(r * ee + s * g, i * ee + c * g, a * ee + l * g, 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.17/node_modules/dompurify/dist/purify.es.mjs
437
- function re(e, t) {
438
- this.v = e, this.k = t;
439
- }
440
- function C(e, t) {
441
- (t == null || t > e.length) && (t = e.length);
442
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
443
- return r;
444
- }
445
- function ie(e) {
446
- if (Array.isArray(e)) return e;
447
- }
448
- function ae(e, t) {
449
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
450
- if (n != null) {
451
- var r, i, a, o, s = [], c = !0, l = !1;
452
- try {
453
- if (a = (n = n.call(e)).next, t === 0) {
454
- if (Object(n) !== n) return;
455
- c = !1;
456
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
457
- } catch (e) {
458
- l = !0, i = e;
459
- } finally {
460
- try {
461
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
462
- } finally {
463
- if (l) throw i;
464
- }
465
- }
466
- return s;
467
- }
468
- }
469
- function oe() {
470
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
471
- }
472
- function se(e, t) {
473
- return ie(e) || ae(e, t) || ce(e, t) || oe();
474
- }
475
- function ce(e, t) {
476
- if (e) {
477
- if (typeof e == "string") return C(e, t);
478
- var n = {}.toString.call(e).slice(8, -1);
479
- 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) ? C(e, t) : void 0;
480
- }
481
- }
482
- function w(e) {
483
- var t, n;
484
- function r(t, n) {
485
- try {
486
- var a = e[t](n), o = a.value, s = o instanceof re;
487
- Promise.resolve(s ? o.v : o).then(function(n) {
488
- if (s) {
489
- var c = t === "return" && o.k ? t : "next";
490
- if (!o.k || n.done) return r(c, n);
491
- n = e[c](n).value;
492
- }
493
- i(!!a.done, n);
494
- }, function(e) {
495
- r("throw", e);
496
- });
497
- } catch (e) {
498
- i(2, e);
499
- }
500
- }
501
- function i(e, i) {
502
- e === 2 ? t.reject(i) : t.resolve({
503
- value: i,
504
- done: e
505
- }), (t = t.next) ? r(t.key, t.arg) : n = null;
506
- }
507
- this._invoke = function(e, i) {
508
- return new Promise(function(a, o) {
509
- var s = {
510
- key: e,
511
- arg: i,
512
- resolve: a,
513
- reject: o,
514
- next: null
515
- };
516
- n ? n = n.next = s : (t = n = s, r(e, i));
517
- });
518
- }, typeof e.return != "function" && (this.return = void 0);
519
- }
520
- w.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
521
- return this;
522
- }, w.prototype.next = function(e) {
523
- return this._invoke("next", e);
524
- }, w.prototype.throw = function(e) {
525
- return this._invoke("throw", e);
526
- }, w.prototype.return = function(e) {
527
- return this._invoke("return", e);
528
- };
529
- var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, T = Object.freeze, E = Object.seal, me = Object.create, he = typeof Reflect < "u" && Reflect, ge = he.apply, _e = he.construct;
530
- T ||= function(e) {
531
- return e;
532
- }, E ||= function(e) {
533
- return e;
534
- }, ge ||= function(e, t) {
535
- var n = [...arguments].slice(2);
536
- return e.apply(t, n);
537
- }, _e ||= function(e) {
538
- return new e(...[...arguments].slice(1));
539
- };
540
- var ve = A(Array.prototype.forEach);
541
- Array.prototype.indexOf;
542
- var ye = A(Array.prototype.lastIndexOf), be = A(Array.prototype.pop), xe = A(Array.prototype.push), Se = A(Array.prototype.slice), Ce = A(Array.prototype.splice), we = Array.isArray, Te = ze(Set), Ee = A(Set.prototype.add), De = A(Set.prototype.has), Oe = A(String.prototype.toLowerCase), ke = A(String.prototype.toString), Ae = A(String.prototype.match), je = A(String.prototype.replace), Me = A(String.prototype.indexOf), Ne = A(String.prototype.trim), Pe = A(Number.prototype.toString), D = A(Boolean.prototype.toString), Fe = typeof BigInt > "u" ? null : A(BigInt.prototype.toString), Ie = typeof Symbol > "u" ? null : A(Symbol.prototype.toString), O = A(Object.prototype.hasOwnProperty), Le = A(Object.prototype.toString), k = A(RegExp.prototype.test), Re = ze(TypeError);
543
- function A(e) {
544
- return function(t) {
545
- t instanceof RegExp && (t.lastIndex = 0);
546
- var n = [...arguments].slice(1);
547
- return ge(e, t, n);
548
- };
549
- }
550
- function ze(e) {
551
- return function() {
552
- return _e(e, [...arguments]);
553
- };
554
- }
555
- function j(e, t) {
556
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Oe;
557
- if (ue && ue(e, null), !we(t)) return e;
558
- let r = t.length;
559
- for (; r--;) {
560
- let i = t[r];
561
- if (typeof i == "string") {
562
- let e = n(i);
563
- e !== i && (de(t) || (t[r] = e), i = e);
564
- }
565
- e[i] = !0;
566
- }
567
- return e;
568
- }
569
- function Be(e) {
570
- for (let t = 0; t < e.length; t++) O(e, t) || (e[t] = null);
571
- return e;
572
- }
573
- function M(e) {
574
- let t = me(null);
575
- for (let r of le(e)) {
576
- var n = se(r, 2);
577
- let i = n[0], a = n[1];
578
- O(e, i) && (we(a) ? t[i] = Be(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = M(a) : t[i] = a);
579
- }
580
- return t;
581
- }
582
- function Ve(e) {
583
- switch (typeof e) {
584
- case "string": return e;
585
- case "number": return Pe(e);
586
- case "boolean": return D(e);
587
- case "bigint": return Fe ? Fe(e) : "0";
588
- case "symbol": return Ie ? Ie(e) : "Symbol()";
589
- case "undefined": return Le(e);
590
- case "function":
591
- case "object": {
592
- if (e === null) return Le(e);
593
- let t = e, n = N(t, "toString");
594
- if (typeof n == "function") {
595
- let e = n(t);
596
- return typeof e == "string" ? e : Le(e);
597
- }
598
- return Le(e);
599
- }
600
- default: return Le(e);
601
- }
602
- }
603
- function N(e, t) {
604
- for (; e !== null;) {
605
- let n = pe(e, t);
606
- if (n) {
607
- if (n.get) return A(n.get);
608
- if (typeof n.value == "function") return A(n.value);
609
- }
610
- e = fe(e);
611
- }
612
- function n() {
613
- return null;
614
- }
615
- return n;
616
- }
617
- function He(e, t) {
618
- for (; e !== null;) {
619
- let n = pe(e, t);
620
- if (n) return n.get ? A(n.get) : null;
621
- e = fe(e);
622
- }
623
- return null;
624
- }
625
- function Ue(e) {
626
- try {
627
- return k(e, ""), !0;
628
- } catch {
629
- return !1;
630
- }
631
- }
632
- var We = T(/* @__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(".")), Ge = T(/* @__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(".")), Ke = T([
633
- "feBlend",
634
- "feColorMatrix",
635
- "feComponentTransfer",
636
- "feComposite",
637
- "feConvolveMatrix",
638
- "feDiffuseLighting",
639
- "feDisplacementMap",
640
- "feDistantLight",
641
- "feDropShadow",
642
- "feFlood",
643
- "feFuncA",
644
- "feFuncB",
645
- "feFuncG",
646
- "feFuncR",
647
- "feGaussianBlur",
648
- "feImage",
649
- "feMerge",
650
- "feMergeNode",
651
- "feMorphology",
652
- "feOffset",
653
- "fePointLight",
654
- "feSpecularLighting",
655
- "feSpotLight",
656
- "feTile",
657
- "feTurbulence"
658
- ]), qe = T([
659
- "animate",
660
- "color-profile",
661
- "cursor",
662
- "discard",
663
- "font-face",
664
- "font-face-format",
665
- "font-face-name",
666
- "font-face-src",
667
- "font-face-uri",
668
- "foreignobject",
669
- "hatch",
670
- "hatchpath",
671
- "mesh",
672
- "meshgradient",
673
- "meshpatch",
674
- "meshrow",
675
- "missing-glyph",
676
- "script",
677
- "set",
678
- "solidcolor",
679
- "unknown",
680
- "use"
681
- ]), Je = T(/* @__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(".")), Ye = T([
682
- "maction",
683
- "maligngroup",
684
- "malignmark",
685
- "mlongdiv",
686
- "mscarries",
687
- "mscarry",
688
- "msgroup",
689
- "mstack",
690
- "msline",
691
- "msrow",
692
- "semantics",
693
- "annotation",
694
- "annotation-xml",
695
- "mprescripts",
696
- "none"
697
- ]), Xe = T(["#text"]), Ze = T(/* @__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(".")), Qe = T(/* @__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.pointer-events.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.vector-effect.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(".")), $e = T(/* @__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(".")), et = T([
698
- "xlink:href",
699
- "xml:id",
700
- "xlink:title",
701
- "xml:space",
702
- "xmlns:xlink"
703
- ]), tt = E(/{{[\w\W]*|^[\w\W]*}}/g), nt = E(/<%[\w\W]*|^[\w\W]*%>/g), rt = E(/\${[\w\W]*/g), it = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), at = E(/^aria-[\-\w]+$/), ot = E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), st = E(/^(?:\w+script|data):/i), ct = E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), lt = E(/^html$/i), ut = E(/^[a-z][.\w]*(-[.\w]+)+$/i), dt = E(/<[/\w!]/g), ft = E(/<[/\w]/g), pt = E(/<\/no(script|embed|frames)/i), mt = E(/\/>/i), P = {
704
- element: 1,
705
- attribute: 2,
706
- text: 3,
707
- cdataSection: 4,
708
- entityReference: 5,
709
- entityNode: 6,
710
- processingInstruction: 7,
711
- comment: 8,
712
- document: 9,
713
- documentType: 10,
714
- documentFragment: 11,
715
- notation: 12
716
- }, ht = T(j({}, [
717
- "style",
718
- "script",
719
- "xmp",
720
- "iframe",
721
- "noembed",
722
- "noframes",
723
- "plaintext",
724
- "noscript"
725
- ])), gt = function() {
726
- return typeof window > "u" ? null : window;
727
- }, _t = function(e, t) {
728
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
729
- let n = null, r = "data-tt-policy-suffix";
730
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
731
- let i = "dompurify" + (n ? "#" + n : "");
732
- try {
733
- return e.createPolicy(i, {
734
- createHTML(e) {
735
- return e;
736
- },
737
- createScriptURL(e) {
738
- return e;
739
- }
740
- });
741
- } catch {
742
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
743
- }
744
- }, vt = function() {
745
- return {
746
- afterSanitizeAttributes: [],
747
- afterSanitizeElements: [],
748
- afterSanitizeShadowDOM: [],
749
- beforeSanitizeAttributes: [],
750
- beforeSanitizeElements: [],
751
- beforeSanitizeShadowDOM: [],
752
- uponSanitizeAttribute: [],
753
- uponSanitizeElement: [],
754
- uponSanitizeShadowNode: []
755
- };
756
- }, yt = function(e, t, n, r) {
757
- return O(e, t) && we(e[t]) ? j(r.base ? M(r.base) : {}, e[t], r.transform) : n;
758
- }, bt = function(e, t, n) {
759
- let r = O(e, t) ? e[t] : void 0;
760
- return r && typeof r == "object" ? M(r) : n();
761
- };
762
- function xt() {
763
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt(), t = (e) => xt(e);
764
- if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== P.document || !e.Element) return t.isSupported = !1, t;
765
- let n = e.document, r = n, i = r.currentScript;
766
- e.DocumentFragment;
767
- let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
768
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
769
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = N(d, "cloneNode"), p = N(d, "remove"), m = N(d, "removeAttributeNode"), ee = N(d, "nextSibling"), h = N(d, "childNodes"), g = N(d, "parentNode"), te = N(d, "shadowRoot"), _ = N(d, "attributes"), v = o && o.prototype ? N(o.prototype, "nodeType") : null, y = o && o.prototype ? N(o.prototype, "nodeName") : null, b = o && o.prototype ? N(o.prototype, "ownerDocument") : null, x = function(e) {
770
- return v ? v(e) : e.nodeType;
771
- }, ne = function(e) {
772
- return y ? y(e) : e.nodeName;
773
- }, S = He(d, "namespaceURI"), re = function(e) {
774
- return S ? S(e) : e.namespaceURI;
775
- };
776
- if (typeof a == "function") {
777
- let e = n.createElement("template");
778
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
779
- }
780
- let C, ie = "", ae, oe = !1, se = 0, ce = function() {
781
- if (se > 0) throw Re("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.");
782
- }, w = function(e) {
783
- ce(), se++;
784
- try {
785
- return C.createHTML(e);
786
- } finally {
787
- se--;
788
- }
789
- }, ue = function(e) {
790
- ce(), se++;
791
- try {
792
- return C.createScriptURL(e);
793
- } finally {
794
- se--;
795
- }
796
- }, de = function() {
797
- return oe ||= (ae = _t(u, i), !0), ae;
798
- }, fe = n, pe = fe.implementation, he = fe.createNodeIterator, ge = fe.createDocumentFragment, _e = fe.getElementsByTagName, Pe = r.importNode, D = vt();
799
- t.isSupported = typeof le == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
800
- let Fe = tt, Ie = nt, Le = rt, A = it, ze = at, Be = st, St = ct, Ct = ut, wt = ot, F = null, Tt = j({}, [
801
- ...We,
802
- ...Ge,
803
- ...Ke,
804
- ...Je,
805
- ...Xe
806
- ]), I = null, Et = j({}, [
807
- ...Ze,
808
- ...Qe,
809
- ...$e,
810
- ...et
811
- ]), L = Object.seal(me(null, {
812
- tagNameCheck: {
813
- writable: !0,
814
- configurable: !1,
815
- enumerable: !0,
816
- value: null
817
- },
818
- attributeNameCheck: {
819
- writable: !0,
820
- configurable: !1,
821
- enumerable: !0,
822
- value: null
823
- },
824
- allowCustomizedBuiltInElements: {
825
- writable: !0,
826
- configurable: !1,
827
- enumerable: !0,
828
- value: !1
829
- }
830
- })), R = null, Dt = null, Ot = Object.seal(me(null, {
831
- tagCheck: {
832
- writable: !0,
833
- configurable: !1,
834
- enumerable: !0,
835
- value: null
836
- },
837
- attributeCheck: {
838
- writable: !0,
839
- configurable: !1,
840
- enumerable: !0,
841
- value: null
842
- }
843
- })), kt = !0, At = !0, jt = !1, z = !0, B = !1, V = !0, H = !1, Mt = !1, U = null, Nt = null, Pt = !1, Ft = !1, It = !1, Lt = !1, Rt = !0, zt = !1, Bt = "user-content-", Vt = !0, Ht = !1, Ut = null, Wt = {}, Gt = null, Kt = j({}, /* @__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(".")), qt = null, Jt = j({}, [
844
- "audio",
845
- "video",
846
- "img",
847
- "source",
848
- "image",
849
- "track"
850
- ]), Yt = null, Xt = j({}, [
851
- "alt",
852
- "class",
853
- "for",
854
- "id",
855
- "label",
856
- "name",
857
- "pattern",
858
- "placeholder",
859
- "role",
860
- "summary",
861
- "title",
862
- "value",
863
- "style",
864
- "xmlns"
865
- ]), Zt = "http://www.w3.org/1998/Math/MathML", Qt = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, K = !1, $t = null, en = j({}, [
866
- Zt,
867
- Qt,
868
- W
869
- ], ke), tn = T([
870
- "mi",
871
- "mo",
872
- "mn",
873
- "ms",
874
- "mtext"
875
- ]), nn = j({}, tn), rn = T(["annotation-xml"]), an = j({}, rn), on = j({}, [
876
- "title",
877
- "style",
878
- "font",
879
- "a",
880
- "script"
881
- ]), sn = null, cn = ["application/xhtml+xml", "text/html"], q = null, J = null, ln = n.createElement("form"), un = function(e) {
882
- return e instanceof RegExp || e instanceof Function;
883
- }, dn = function() {
884
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
885
- if (J && J === e) return;
886
- (!e || typeof e != "object") && (e = {}), e = M(e), sn = cn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, q = sn === "application/xhtml+xml" ? ke : Oe, F = yt(e, "ALLOWED_TAGS", Tt, { transform: q }), I = yt(e, "ALLOWED_ATTR", Et, { transform: q }), $t = yt(e, "ALLOWED_NAMESPACES", en, { transform: ke }), Yt = yt(e, "ADD_URI_SAFE_ATTR", Xt, {
887
- transform: q,
888
- base: Xt
889
- }), qt = yt(e, "ADD_DATA_URI_TAGS", Jt, {
890
- transform: q,
891
- base: Jt
892
- }), Gt = yt(e, "FORBID_CONTENTS", Kt, { transform: q }), R = yt(e, "FORBID_TAGS", M({}), { transform: q }), Dt = yt(e, "FORBID_ATTR", M({}), { transform: q }), Wt = O(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? M(e.USE_PROFILES) : e.USE_PROFILES : !1, kt = e.ALLOW_ARIA_ATTR !== !1, At = e.ALLOW_DATA_ATTR !== !1, jt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, z = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, Ft = e.RETURN_DOM || !1, It = e.RETURN_DOM_FRAGMENT || !1, Lt = e.RETURN_TRUSTED_TYPE || !1, Pt = e.FORCE_BODY || !1, Rt = e.SANITIZE_DOM !== !1, zt = e.SANITIZE_NAMED_PROPS || !1, Vt = e.KEEP_CONTENT !== !1, Ht = e.IN_PLACE || !1, wt = Ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ot, G = typeof e.NAMESPACE == "string" ? e.NAMESPACE : W, nn = bt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => j({}, tn)), an = bt(e, "HTML_INTEGRATION_POINTS", () => j({}, rn));
893
- let t = bt(e, "CUSTOM_ELEMENT_HANDLING", () => me(null));
894
- if (L = me(null), O(t, "tagNameCheck") && un(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), O(t, "attributeNameCheck") && un(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), O(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), E(L), B && (At = !1), It && (Ft = !0), Wt && (F = j({}, Xe), I = me(null), Wt.html === !0 && (j(F, We), j(I, Ze)), Wt.svg === !0 && (j(F, Ge), j(I, Qe), j(I, et)), Wt.svgFilters === !0 && (j(F, Ke), j(I, Qe), j(I, et)), Wt.mathMl === !0 && (j(F, Je), j(I, $e), j(I, et))), Ot.tagCheck = null, Ot.attributeCheck = null, O(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ot.tagCheck = e.ADD_TAGS : we(e.ADD_TAGS) && (F === Tt && (F = M(F)), j(F, e.ADD_TAGS, q))), O(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ot.attributeCheck = e.ADD_ATTR : we(e.ADD_ATTR) && (I === Et && (I = M(I)), j(I, e.ADD_ATTR, q))), O(e, "ADD_FORBID_CONTENTS") && we(e.ADD_FORBID_CONTENTS) && (Gt === Kt && (Gt = M(Gt)), j(Gt, e.ADD_FORBID_CONTENTS, q)), Vt && (F["#text"] = !0), H && j(F, [
895
- "html",
896
- "head",
897
- "body"
898
- ]), F.table && (j(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
899
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Re("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
900
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Re("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
901
- let t = C;
902
- C = e.TRUSTED_TYPES_POLICY;
903
- try {
904
- ie = w("");
905
- } catch (e) {
906
- throw C = t, e;
907
- }
908
- } else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, ie = "") : (C === void 0 && (C = de()), C && typeof ie == "string" && (ie = w("")));
909
- T && T(e), J = e;
910
- }, fn = j({}, [
911
- ...Ge,
912
- ...Ke,
913
- ...qe
914
- ]), pn = j({}, [...Je, ...Ye]), Y = function(e, t, n) {
915
- return t.namespaceURI === W ? e === "svg" : t.namespaceURI === Zt ? e === "svg" && (n === "annotation-xml" || nn[n]) : !!fn[e];
916
- }, mn = function(e, t, n) {
917
- return t.namespaceURI === W ? e === "math" : t.namespaceURI === Qt ? e === "math" && an[n] : !!pn[e];
918
- }, hn = function(e, t, n) {
919
- return t.namespaceURI === Qt && !an[n] || t.namespaceURI === Zt && !nn[n] ? !1 : !pn[e] && (on[e] || !fn[e]);
920
- }, X = function(e) {
921
- let t = re(e), n = Oe(ne(e)), r = g(e), i, a;
922
- return r && x(r) === P.element ? (i = { namespaceURI: re(r) }, a = Oe(ne(r))) : (i = { namespaceURI: G }, a = "template"), $t[t] ? t === Qt ? Y(n, i, a) : t === Zt ? mn(n, i, a) : t === W ? hn(n, i, a) : !!(sn === "application/xhtml+xml" && $t[t]) : !1;
923
- }, Z = function(e) {
924
- xe(t.removed, { element: e });
925
- try {
926
- g(e).removeChild(e);
927
- } catch {
928
- if (p(e), !g(e)) throw Re("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
929
- }
930
- }, gn = function(e, t, n) {
931
- try {
932
- m(e, t);
933
- } catch {
934
- try {
935
- e.removeAttribute(n);
936
- } catch {}
937
- }
938
- }, _n = function(e) {
939
- bn(e);
940
- let t = h(e);
941
- t && ve(Se(t), (e) => {
942
- try {
943
- p(e);
944
- } catch {}
945
- });
946
- let n = x(e) === P.element ? _(e) : null;
947
- if (n) for (let t = n.length - 1; t >= 0; --t) {
948
- let r = n[t], i = r && r.name;
949
- typeof i == "string" && gn(e, r, i);
950
- }
951
- }, Q = function(e, n, r) {
952
- if (!r) try {
953
- r = n.getAttributeNode(e);
954
- } catch {
955
- r = null;
956
- }
957
- xe(t.removed, {
958
- attribute: r || null,
959
- from: n
960
- });
961
- try {
962
- r ? m(n, r) : n.removeAttribute(e);
963
- } catch {
964
- try {
965
- n.removeAttribute(e);
966
- } catch {}
967
- }
968
- if (e === "is") if (Ft || It) try {
969
- Z(n);
970
- } catch {}
971
- else try {
972
- n.setAttribute(e, "");
973
- } catch {}
974
- }, vn = function(e) {
975
- let t = _(e);
976
- if (t) for (let n = t.length - 1; n >= 0; --n) {
977
- let r = t[n], i = r && r.name;
978
- typeof i != "string" || I[q(i)] || gn(e, r, i);
979
- }
980
- }, yn = function(e, t) {
981
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = [e];
982
- for (; r.length > 0;) {
983
- let e = r.pop();
984
- if (t(e) === !1) continue;
985
- if (n && x(e) === P.element) {
986
- let t = te(e);
987
- Fn(t) && r.push(t);
988
- }
989
- let i = h(e);
990
- if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
991
- }
992
- }, bn = function(e) {
993
- yn(e, (e) => {
994
- x(e) === P.element && vn(e);
995
- });
996
- }, xn = function(e) {
997
- let t = [];
998
- return yn(e, (e) => {
999
- t.push(e);
1000
- }, !0), t;
1001
- }, Sn = function(e, t) {
1002
- let n = Te();
1003
- ve(xn(e), (e) => {
1004
- x(e) === P.element && Ee(n, e);
1005
- }), ve(t, (e) => {
1006
- x(e) === P.element && !De(n, e) && vn(e);
1007
- });
1008
- }, Cn = function(e, n) {
1009
- let r = !1;
1010
- return ve(t.removed, (t) => {
1011
- t.element && (r ||= t.element === e, bn(t.element));
1012
- }), Sn(e, n), r;
1013
- }, wn = function(e, t) {
1014
- let n = Ut, r = null, i = () => (r || (r = Te(), ve(t, (e) => {
1015
- Ee(r, e);
1016
- })), r);
1017
- for (let t = 0;; t++) {
1018
- let r = xn(e), a = [e], o = !1;
1019
- if (ve(r, (e) => {
1020
- x(e) === P.documentFragment ? xe(a, e) : !o && !De(n, e) && (o = De(i(), e));
1021
- }), !o) return;
1022
- if (t >= 8) throw Re("the tree kept changing during in-place sanitization; refusing to return it");
1023
- ve(a, (t, n) => {
1024
- Tn(t, n > 0, e, i());
1025
- });
1026
- }
1027
- }, Tn = function(e, t, n, r) {
1028
- let i = An(e), a;
1029
- for (; a = i.nextNode();) !De(r, a) || De(Ut, a) || (t && $(D.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Fn(a.content) && Xn(a.content));
1030
- }, En = function(e) {
1031
- Ut && Ee(Ut, e);
1032
- }, Dn = function(e, t) {
1033
- return V ? e === "patchsrc" ? !0 : e === "for" && t !== "label" && t !== "output" : !1;
1034
- }, On = function(e) {
1035
- V && yn(e, (e) => {
1036
- let t = x(e);
1037
- if (t === P.processingInstruction || t === P.comment && k(ft, e.data)) {
1038
- try {
1039
- p(e);
1040
- } catch {}
1041
- return !1;
1042
- }
1043
- if (t === P.element) {
1044
- let t = e, n = q(ne(e));
1045
- try {
1046
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Dn("for", n) && t.removeAttribute("for");
1047
- } catch {}
1048
- }
1049
- return !0;
1050
- });
1051
- }, kn = function(e) {
1052
- let t = null, r = null;
1053
- if (Pt) e = "<remove></remove>" + e;
1054
- else {
1055
- let t = Ae(e, /^[\r\n\t ]+/);
1056
- r = t && t[0];
1057
- }
1058
- sn === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1059
- let i = C ? w(e) : e;
1060
- if (G === W) try {
1061
- t = new l().parseFromString(i, sn);
1062
- } catch {}
1063
- if (!t || !t.documentElement) {
1064
- t = pe.createDocument(G, "template", null);
1065
- try {
1066
- t.documentElement.innerHTML = K ? ie : i;
1067
- } catch {}
1068
- }
1069
- let a = t.body || t.documentElement;
1070
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? _e.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
1071
- }, An = function(e) {
1072
- let t = b ? b(e) : e.ownerDocument;
1073
- return he.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
1074
- }, jn = function(e) {
1075
- return e = je(e, Fe, " "), e = je(e, Ie, " "), e = je(e, Le, " "), e;
1076
- }, Mn = function(e) {
1077
- Nn(e);
1078
- let t = e.querySelectorAll?.call(e, "template");
1079
- t && ve(t, (e) => {
1080
- Fn(e.content) && Mn(e.content);
1081
- });
1082
- }, Nn = function(e) {
1083
- e.normalize();
1084
- let t = b ? b(e) : e.ownerDocument, n = he.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
1085
- for (; r;) r.data = jn(r.data), r = n.nextNode();
1086
- }, Pn = function(e) {
1087
- let t = y ? y(e) : null;
1088
- return typeof t != "string" || q(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== h(e);
1089
- }, Fn = function(e) {
1090
- if (!v || typeof e != "object" || !e) return !1;
1091
- try {
1092
- return v(e) === P.documentFragment;
1093
- } catch {
1094
- return !1;
1095
- }
1096
- }, In = function(e) {
1097
- if (!v || typeof e != "object" || !e) return !1;
1098
- try {
1099
- return typeof v(e) == "number";
1100
- } catch {
1101
- return !1;
1102
- }
1103
- };
1104
- function $(e, n, r) {
1105
- e.length !== 0 && ve(e, (e) => {
1106
- e.call(t, n, r, J);
1107
- });
1108
- }
1109
- let Ln = function(e, t) {
1110
- return !!(V && e.hasChildNodes() && !In(e.firstElementChild) && k(dt, e.textContent) && k(dt, e.innerHTML) || V && ht[t] && x(e) === P.element && re(e) === W && (In(e.firstElementChild) || typeof e.textContent == "string" && k(dt, e.textContent)) || e.nodeType === P.processingInstruction || V && e.nodeType === P.comment && k(ft, e.data));
1111
- }, Rn = function(e, t) {
1112
- return e instanceof RegExp ? k(e, t) : e instanceof Function ? !!e(t, ...[...arguments].slice(2)) : !1;
1113
- }, zn = function(e, t, n) {
1114
- if (!R[t] && Gn(t) && Rn(L.tagNameCheck, t)) return !1;
1115
- if (Vt && !Gt[t] && !Gt[Oe(t)]) {
1116
- let t = g(e), r = h(e);
1117
- if (r && t) {
1118
- let i = r.length;
1119
- for (let a = i - 1; a >= 0; --a) {
1120
- let i = e === n ? f(r[a], !0) : r[a];
1121
- t.insertBefore(i, ee(e));
1122
- }
1123
- }
1124
- }
1125
- return Z(e), !0;
1126
- }, Bn = function(e, t, n, r) {
1127
- return e.length === 0 ? t : t === n || t === r ? M(t) : t;
1128
- }, Vn = function(e, t) {
1129
- return e === t || g(e) !== null ? !1 : (Ht && bn(e), !0);
1130
- }, Hn = function(e, n) {
1131
- if (En(e), $(D.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
1132
- if (Pn(e)) return Z(e), !0;
1133
- let r = q(ne(e));
1134
- if (F = Bn(D.uponSanitizeElement, F, Tt, U), $(D.uponSanitizeElement, e, {
1135
- tagName: r,
1136
- allowedTags: F
1137
- }), Vn(e, n)) return !0;
1138
- if (Ln(e, r)) return Z(e), !0;
1139
- if (R[r] || !(Ot.tagCheck instanceof Function && Ot.tagCheck(r)) && !F[r]) {
1140
- let t = zn(e, r, n);
1141
- return t === !1 && ($(D.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
1142
- }
1143
- if (x(e) === P.element && !X(e) || (r === "noscript" || r === "noembed" || r === "noframes") && k(pt, e.innerHTML)) return Z(e), !0;
1144
- if (B && e.nodeType === P.text) {
1145
- let n = jn(e.textContent);
1146
- e.textContent !== n && (xe(t.removed, { element: e.cloneNode() }), e.textContent = n);
1147
- }
1148
- return $(D.afterSanitizeElements, e, null), Vn(e, n);
1149
- }, Un = function(e, t, r) {
1150
- if (Dt[t] || Dn(t, e) || Rt && (t === "id" || t === "name") && (r in n || r in ln)) return !1;
1151
- let i = I[t] || Ot.attributeCheck instanceof Function && Ot.attributeCheck(t, e);
1152
- return At && k(A, t) || kt && k(ze, t) ? !0 : i ? Yt[t] || k(wt, je(r, St, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Me(r, "data:") === 0 && qt[e] || jt && !k(Be, je(r, St, "")) ? !0 : !r : Gn(e) && Rn(L.tagNameCheck, e) && Rn(L.attributeNameCheck, t, e) || t === "is" && L.allowCustomizedBuiltInElements && Rn(L.tagNameCheck, r);
1153
- }, Wn = j({}, [
1154
- "annotation-xml",
1155
- "color-profile",
1156
- "font-face",
1157
- "font-face-format",
1158
- "font-face-name",
1159
- "font-face-src",
1160
- "font-face-uri",
1161
- "missing-glyph"
1162
- ]), Gn = function(e) {
1163
- return !Wn[Oe(e)] && k(Ct, e);
1164
- }, Kn = function(e, t, n, r) {
1165
- if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1166
- case "TrustedHTML": return w(r);
1167
- case "TrustedScriptURL": return ue(r);
1168
- }
1169
- return r;
1170
- }, qn = function(e, t, n, r) {
1171
- try {
1172
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), Pn(e) ? (Z(e), !1) : !0;
1173
- } catch {
1174
- return Q(t, e), !1;
1175
- }
1176
- }, Jn = function(e, t) {
1177
- return V && k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : Oe(e) === "attributename" && Ae(t, "href") !== null;
1178
- }, Yn = function(e, n) {
1179
- if ($(D.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
1180
- let r = e.attributes;
1181
- if (!r || Pn(e)) return;
1182
- I = Bn(D.uponSanitizeAttribute, I, Et, Nt);
1183
- let i = {
1184
- attrName: "",
1185
- attrValue: "",
1186
- keepAttr: !0,
1187
- allowedAttributes: I,
1188
- forceKeepAttr: void 0
1189
- }, a = r.length, o = q(e.nodeName);
1190
- for (; a--;) {
1191
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = q(s), d = l, f = s === "value" ? d : Ne(d), p = !1;
1192
- if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(D.uponSanitizeAttribute, e, i), f = i.attrValue, zt && (u === "id" || u === "name") && Me(f, Bt) !== 0 && (Q(s, e, n), f = Bt + f, p = !0), Jn(s, f)) {
1193
- Q(s, e, n);
1194
- continue;
1195
- }
1196
- if (!i.forceKeepAttr) {
1197
- if (!i.keepAttr) {
1198
- Q(s, e, n);
1199
- continue;
1200
- }
1201
- if (!z && k(mt, f)) {
1202
- Q(s, e, n);
1203
- continue;
1204
- }
1205
- if (B && (f = jn(f)), !Un(o, u, f)) {
1206
- Q(s, e, n);
1207
- continue;
1208
- }
1209
- f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && be(t.removed);
1210
- }
1211
- }
1212
- $(D.afterSanitizeAttributes, e, null), Vn(e, n);
1213
- }, Xn = function(e) {
1214
- let t = null, n = An(e);
1215
- for ($(D.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(D.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Fn(t.content) && Xn(t.content), x(t) === P.element) {
1216
- let e = te(t);
1217
- Fn(e) && (Zn(e), Xn(e));
1218
- }
1219
- B && Nn(e), $(D.afterSanitizeShadowDOM, e, null);
1220
- }, Zn = function(e) {
1221
- let t = [{
1222
- node: e,
1223
- shadow: null
1224
- }];
1225
- for (; t.length > 0;) {
1226
- let e = t.pop();
1227
- if (e.shadow) {
1228
- Xn(e.shadow);
1229
- continue;
1230
- }
1231
- let n = e.node, r = x(n) === P.element, i = h(n);
1232
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1233
- node: i[e],
1234
- shadow: null
1235
- });
1236
- if (r) {
1237
- let e = y ? y(n) : null;
1238
- if (typeof e == "string" && q(e) === "template") {
1239
- let e = n.content;
1240
- Fn(e) && t.push({
1241
- node: e,
1242
- shadow: null
1243
- });
1244
- }
1245
- }
1246
- if (r) {
1247
- let e = te(n);
1248
- Fn(e) && t.push({
1249
- node: null,
1250
- shadow: e
1251
- }, {
1252
- node: e,
1253
- shadow: null
1254
- });
1255
- }
1256
- }
1257
- };
1258
- return t.sanitize = function(e) {
1259
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1260
- if (K = !e, K && (e = "<!-->"), typeof e != "string" && !In(e) && (e = Ve(e), typeof e != "string")) throw Re("dirty is not a string, aborting");
1261
- if (!t.isSupported) return e;
1262
- Mt ? (F = U, I = Nt) : dn(n), (D.uponSanitizeElement.length > 0 || D.uponSanitizeAttribute.length > 0) && (F = M(F)), D.uponSanitizeAttribute.length > 0 && (I = M(I)), t.removed = [];
1263
- let c = Ht && typeof e != "string" && In(e), l = [], u = Ut;
1264
- if (c) {
1265
- On(e);
1266
- let t = ne(e);
1267
- if (typeof t == "string") {
1268
- let n = q(t);
1269
- if (!F[n] || R[n]) throw _n(e), Re("root node is forbidden and cannot be sanitized in-place");
1270
- }
1271
- if (Pn(e)) throw _n(e), Re("root node is clobbered and cannot be sanitized in-place");
1272
- l = xn(e), Ut = Te();
1273
- } else if (In(e)) i = kn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === P.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
1274
- else {
1275
- if (!Ft && !B && !H && e.indexOf("<") === -1) return C && Lt ? w(e) : e;
1276
- if (i = kn(e), !i) return Ft ? null : Lt ? ie : "";
1277
- }
1278
- i && Pt && Z(i.firstChild);
1279
- let d = c ? e : i;
1280
- try {
1281
- c && Zn(e);
1282
- let t = An(d);
1283
- for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Fn(o.content) && Xn(o.content);
1284
- c && wn(e, l);
1285
- } catch (t) {
1286
- throw c && (_n(e), Cn(e, l)), t;
1287
- } finally {
1288
- Ut = u;
1289
- }
1290
- if (c) {
1291
- if (Cn(e, l)) throw Re("a node selected for removal could not be safely returned; refusing to sanitize in place");
1292
- return B && Mn(e), e;
1293
- }
1294
- if (Ft) {
1295
- if (B && Mn(i), It) for (s = ge.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1296
- else s = i;
1297
- return (I.shadowroot || I.shadowrootmode) && (s = Pe.call(r, s, !0)), s;
1298
- }
1299
- let f = H ? i.outerHTML : i.innerHTML;
1300
- return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && k(lt, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), B && (f = jn(f)), C && Lt ? w(f) : f;
1301
- }, t.setConfig = function() {
1302
- dn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Mt = !0, U = F, Nt = I;
1303
- }, t.clearConfig = function() {
1304
- J = null, Mt = !1, U = null, Nt = null, C = ae, ie = "";
1305
- }, t.isValidAttribute = function(e, t, n) {
1306
- J || dn({});
1307
- let r = q(e), i = q(t);
1308
- return typeof n == "string" && (Jn(t, n) || !z && k(mt, n)) ? !1 : Un(r, i, n);
1309
- }, t.addHook = function(e, t) {
1310
- typeof t == "function" && O(D, e) && xe(D[e], t);
1311
- }, t.removeHook = function(e, t) {
1312
- if (O(D, e)) {
1313
- if (t !== void 0) {
1314
- let n = ye(D[e], t);
1315
- return n === -1 ? void 0 : Ce(D[e], n, 1)[0];
1316
- }
1317
- return be(D[e]);
1318
- }
1319
- }, t.removeHooks = function(e) {
1320
- O(D, e) && (D[e] = []);
1321
- }, t.removeAllHooks = function() {
1322
- D = vt();
1323
- }, t;
1324
- }
1325
- var St = xt(), Ct = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, wt = /\s/, F = /* @__PURE__ */ n((e) => {
1326
- let t = "", n = 0, r = 0;
1327
- for (; r < e.length;) {
1328
- let i = e.indexOf("%%", r);
1329
- if (i === -1) break;
1330
- let a = e.indexOf("\n", i);
1331
- if (a === -1) break;
1332
- let o = i;
1333
- for (; o > n && wt.test(e[o - 1]);) o--;
1334
- t += e.slice(n, o) + "\n", n = a + 1, r = n;
1335
- }
1336
- return t + e.slice(n);
1337
- }, "stripAnyComments"), Tt = /* @__PURE__ */ n((e) => e === "\n" || e === "\r", "isLineBreak"), I = /* @__PURE__ */ n((e, t) => {
1338
- let n = -1;
1339
- for (let r = t; r < e.length && wt.test(e[r]); r++) Tt(e[r]) && (n = r);
1340
- return n;
1341
- }, "lastLineBreakInWhitespaceRun"), Et = /* @__PURE__ */ n((e) => {
1342
- let t = 0;
1343
- for (; t < e.length && wt.test(e[t]) && !Tt(e[t]);) t++;
1344
- let r = e.slice(0, t);
1345
- if (!e.startsWith("---", t)) return;
1346
- let i = [];
1347
- for (let n = t + 3; n < e.length && wt.test(e[n]); n++) Tt(e[n]) && i.push(n);
1348
- if (i.length === 0) return;
1349
- let a = `${r}---`, o = /* @__PURE__ */ n((t) => Tt(e[t]) && e.startsWith(a, t + 1) ? I(e, t + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
1350
- for (let t = s; t < e.length; t++) o(t) !== -1 && (c = t);
1351
- if (c === -1) return;
1352
- let l = i[0];
1353
- for (let e of i) e < c && (l = e);
1354
- let u = l + 1;
1355
- for (let t = u; t <= c; t++) {
1356
- let n = o(t);
1357
- if (n !== -1) return {
1358
- indent: r,
1359
- body: e.slice(u, t),
1360
- length: n + 1
1361
- };
1362
- }
1363
- }, "matchFrontMatter"), L = class extends Error {
1364
- static {
1365
- n(this, "UnknownDiagramError");
1366
- }
1367
- constructor(e) {
1368
- super(e), this.name = "UnknownDiagramError";
1369
- }
1370
- }, R = {}, Dt = /* @__PURE__ */ n(function(e, t) {
1371
- let n = Et(e);
1372
- e = F((n ? e.slice(n.length) : e).replace(Ct, ""));
1373
- for (let [n, { detector: r }] of Object.entries(R)) if (r(e, t)) return n;
1374
- throw new L(`No diagram type detected matching given configuration for text: ${e}`);
1375
- }, "detectType"), Ot = /* @__PURE__ */ n((...e) => {
1376
- for (let { id: t, detector: n, loader: r } of e) kt(t, n, r);
1377
- }, "registerLazyLoadedDiagrams"), kt = /* @__PURE__ */ n((e, n, r) => {
1378
- R[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), R[e] = {
1379
- detector: n,
1380
- loader: r
1381
- }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
1382
- }, "addDetector"), At = /* @__PURE__ */ n((e) => R[e].loader, "getDiagramLoader"), jt = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1383
- let r = { depth: n };
1384
- if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => jt(e, t, r)), e;
1385
- if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1386
- e.includes(t) || e.push(t);
1387
- }), e;
1388
- if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1389
- if (t != null && typeof e == "object" && typeof t == "object") {
1390
- let r = e;
1391
- Object.entries(t).forEach(([t, i]) => {
1392
- if (typeof i == "object") {
1393
- if (i === null) return;
1394
- Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1395
- value: void 0,
1396
- writable: !0,
1397
- enumerable: !0,
1398
- configurable: !0
1399
- }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = jt(r[t], i, { depth: n - 1 }));
1400
- } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1401
- value: i,
1402
- writable: !0,
1403
- enumerable: !0,
1404
- configurable: !0
1405
- }));
1406
- });
1407
- }
1408
- return e;
1409
- }, "assignWithDepth"), z = jt, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? x(e, {
1410
- s: -40,
1411
- l: 10
1412
- }) : x(e, {
1413
- s: -40,
1414
- l: -10
1415
- }), "mkBorder"), Mt = /* @__PURE__ */ n((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), U = /* @__PURE__ */ n((e, t) => Mt(e) && Mt(t) ? {
1416
- ...e,
1417
- ...t
1418
- } : t, "applyOverride"), Nt = class {
1419
- static {
1420
- n(this, "Theme");
1421
- }
1422
- constructor() {
1423
- 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))";
1424
- }
1425
- updateColors() {
1426
- 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, {
1427
- h: 180,
1428
- l: 5
1429
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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, {
1430
- h: 210,
1431
- l: 150
1432
- }), 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);
1433
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1434
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1435
- 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);
1436
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1437
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1438
- let e = this.darkMode ? -4 : -1;
1439
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1440
- h: 180,
1441
- s: -15,
1442
- l: e * (5 + t * 3)
1443
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1444
- h: 180,
1445
- s: -15,
1446
- l: e * (8 + t * 3)
1447
- });
1448
- 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, {
1449
- h: 60,
1450
- l: -10
1451
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1452
- h: -60,
1453
- l: -10
1454
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1455
- h: 120,
1456
- l: 0
1457
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1458
- h: 60,
1459
- l: -20
1460
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1461
- h: -60,
1462
- l: -20
1463
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1464
- h: 120,
1465
- l: -10
1466
- }), 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, {
1467
- h: 60,
1468
- l: -30
1469
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1470
- h: -60,
1471
- l: -30
1472
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1473
- h: 60,
1474
- l: -30
1475
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1476
- h: 120,
1477
- l: -30
1478
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1479
- h: 120,
1480
- l: -30
1481
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1482
- domainFontSize: this.cynefin?.domainFontSize || 16,
1483
- itemFontSize: this.cynefin?.itemFontSize || 12,
1484
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1485
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1486
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
1487
- cliffWidth: this.cynefin?.cliffWidth || 4,
1488
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1489
- arrowWidth: this.cynefin?.arrowWidth || 2,
1490
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
1491
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1492
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1493
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
1494
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1495
- textColor: this.cynefin?.textColor || this.textColor,
1496
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1497
- }, this.radar = {
1498
- axisColor: this.radar?.axisColor || this.lineColor,
1499
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1500
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1501
- curveOpacity: this.radar?.curveOpacity || .5,
1502
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1503
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1504
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1505
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1506
- legendBoxSize: this.radar?.legendBoxSize || 12,
1507
- legendFontSize: this.radar?.legendFontSize || 12
1508
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1509
- backgroundColor: this.wardley?.backgroundColor || this.background,
1510
- axisColor: this.wardley?.axisColor || this.lineColor,
1511
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1512
- gridColor: this.wardley?.gridColor || this.gridColor,
1513
- componentFill: this.wardley?.componentFill || this.background,
1514
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1515
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1516
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1517
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1518
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1519
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1520
- annotationFill: this.wardley?.annotationFill || this.background
1521
- }, 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, {
1522
- r: 5,
1523
- g: 5,
1524
- b: 5
1525
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1526
- r: 10,
1527
- g: 10,
1528
- b: 10
1529
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1530
- r: 15,
1531
- g: 15,
1532
- b: 15
1533
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1534
- r: -5,
1535
- g: -5,
1536
- b: -5
1537
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1538
- r: -10,
1539
- g: -10,
1540
- b: -10
1541
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1542
- r: -15,
1543
- g: -15,
1544
- b: -15
1545
- }), 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 = {
1546
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1547
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1548
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1549
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1550
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1551
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1552
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1553
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1554
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1555
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1556
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1557
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1558
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1559
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1560
- }
1561
- calculate(e) {
1562
- if (typeof e != "object") {
1563
- this.updateColors();
1564
- return;
1565
- }
1566
- let t = Object.keys(e);
1567
- t.forEach((t) => {
1568
- this[t] = e[t];
1569
- }), this.updateColors(), t.forEach((t) => {
1570
- this[t] = U(this[t], e[t]);
1571
- }), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
1572
- }
1573
- }, Pt = /* @__PURE__ */ n((e) => {
1574
- let t = new Nt();
1575
- return t.calculate(e), t;
1576
- }, "getThemeVariables"), Ft = class {
1577
- static {
1578
- n(this, "Theme");
1579
- }
1580
- constructor() {
1581
- 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 = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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 = h(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 = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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";
1582
- }
1583
- updateColors() {
1584
- 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 });
1585
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1586
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1587
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1588
- h: 30,
1589
- s: -30,
1590
- l: -(-10 + e * 4)
1591
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1592
- h: 30,
1593
- s: -30,
1594
- l: -(-7 + e * 4)
1595
- });
1596
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1597
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1598
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1599
- 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";
1600
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1601
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1602
- domainFontSize: this.cynefin?.domainFontSize || 16,
1603
- itemFontSize: this.cynefin?.itemFontSize || 12,
1604
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1605
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1606
- cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1607
- cliffWidth: this.cynefin?.cliffWidth || 4,
1608
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1609
- arrowWidth: this.cynefin?.arrowWidth || 2,
1610
- complexBg: this.cynefin?.complexBg || "#1B5E20",
1611
- complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1612
- chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1613
- clearBg: this.cynefin?.clearBg || "#F57F17",
1614
- confusionBg: this.cynefin?.confusionBg || "#4A148C",
1615
- textColor: this.cynefin?.textColor || this.textColor,
1616
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1617
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1618
- r: 5,
1619
- g: 5,
1620
- b: 5
1621
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1622
- r: 10,
1623
- g: 10,
1624
- b: 10
1625
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1626
- r: 15,
1627
- g: 15,
1628
- b: 15
1629
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1630
- r: -5,
1631
- g: -5,
1632
- b: -5
1633
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1634
- r: -10,
1635
- g: -10,
1636
- b: -10
1637
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1638
- r: -15,
1639
- g: -15,
1640
- b: -15
1641
- }), 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 = {
1642
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1643
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1644
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1645
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1646
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1647
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1648
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1649
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1650
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1651
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1652
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1653
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1654
- plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1655
- }, this.packet = {
1656
- startByteColor: this.primaryTextColor,
1657
- endByteColor: this.primaryTextColor,
1658
- labelColor: this.primaryTextColor,
1659
- titleColor: this.primaryTextColor,
1660
- blockStrokeColor: this.primaryTextColor,
1661
- blockFillColor: this.background
1662
- }, this.radar = {
1663
- axisColor: this.radar?.axisColor || this.lineColor,
1664
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1665
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1666
- curveOpacity: this.radar?.curveOpacity || .5,
1667
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1668
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1669
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1670
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1671
- legendBoxSize: this.radar?.legendBoxSize || 12,
1672
- legendFontSize: this.radar?.legendFontSize || 12
1673
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1674
- backgroundColor: this.wardley?.backgroundColor || this.background,
1675
- axisColor: this.wardley?.axisColor || this.lineColor,
1676
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1677
- gridColor: this.wardley?.gridColor || this.gridColor,
1678
- componentFill: this.wardley?.componentFill || this.mainBkg,
1679
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1680
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1681
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1682
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1683
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1684
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1685
- annotationFill: this.wardley?.annotationFill || this.mainBkg
1686
- }, 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";
1687
- }
1688
- calculate(e) {
1689
- if (typeof e != "object") {
1690
- this.updateColors();
1691
- return;
1692
- }
1693
- let t = Object.keys(e);
1694
- t.forEach((t) => {
1695
- this[t] = e[t];
1696
- }), this.updateColors(), t.forEach((t) => {
1697
- this[t] = U(this[t], e[t]);
1698
- });
1699
- }
1700
- }, It = /* @__PURE__ */ n((e) => {
1701
- let t = new Ft();
1702
- return t.calculate(e), t;
1703
- }, "getThemeVariables"), Lt = class {
1704
- static {
1705
- n(this, "Theme");
1706
- }
1707
- constructor() {
1708
- 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 = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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 = H(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 = h(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();
1709
- }
1710
- updateColors() {
1711
- 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);
1712
- 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);
1713
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1714
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1715
- h: 30,
1716
- l: -(5 + e * 5)
1717
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1718
- h: 30,
1719
- l: -(7 + e * 5)
1720
- });
1721
- if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1722
- this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1723
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1724
- }
1725
- 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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, {
1726
- h: 60,
1727
- l: -20
1728
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1729
- h: -60,
1730
- l: -40
1731
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1732
- h: 120,
1733
- l: -40
1734
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1735
- h: 60,
1736
- l: -40
1737
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1738
- h: -90,
1739
- l: -40
1740
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1741
- h: 120,
1742
- l: -30
1743
- }), 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, {
1744
- h: 60,
1745
- l: -30
1746
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1747
- h: -60,
1748
- l: -30
1749
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1750
- h: 60,
1751
- l: -30
1752
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1753
- h: 120,
1754
- l: -30
1755
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1756
- h: 120,
1757
- l: -30
1758
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1759
- domainFontSize: this.cynefin?.domainFontSize || 16,
1760
- itemFontSize: this.cynefin?.itemFontSize || 12,
1761
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1762
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1763
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
1764
- cliffWidth: this.cynefin?.cliffWidth || 4,
1765
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1766
- arrowWidth: this.cynefin?.arrowWidth || 2,
1767
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
1768
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1769
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1770
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
1771
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1772
- textColor: this.cynefin?.textColor || this.textColor,
1773
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1774
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1775
- r: 5,
1776
- g: 5,
1777
- b: 5
1778
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1779
- r: 10,
1780
- g: 10,
1781
- b: 10
1782
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1783
- r: 15,
1784
- g: 15,
1785
- b: 15
1786
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1787
- r: -5,
1788
- g: -5,
1789
- b: -5
1790
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1791
- r: -10,
1792
- g: -10,
1793
- b: -10
1794
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1795
- r: -15,
1796
- g: -15,
1797
- b: -15
1798
- }), 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 = {
1799
- axisColor: this.radar?.axisColor || this.lineColor,
1800
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1801
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1802
- curveOpacity: this.radar?.curveOpacity || .5,
1803
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1804
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1805
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1806
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1807
- legendBoxSize: this.radar?.legendBoxSize || 12,
1808
- legendFontSize: this.radar?.legendFontSize || 12
1809
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1810
- backgroundColor: this.wardley?.backgroundColor || this.background,
1811
- axisColor: this.wardley?.axisColor || this.lineColor,
1812
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1813
- gridColor: this.wardley?.gridColor || this.gridColor,
1814
- componentFill: this.wardley?.componentFill || this.background,
1815
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1816
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1817
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1818
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1819
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1820
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1821
- annotationFill: this.wardley?.annotationFill || this.background
1822
- }, this.xyChart = {
1823
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1824
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1825
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1826
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1827
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1828
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1829
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1830
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1831
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1832
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1833
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1834
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1835
- plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1836
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1837
- }
1838
- calculate(e) {
1839
- if (Object.keys(this).forEach((e) => {
1840
- this[e] === "calculated" && (this[e] = void 0);
1841
- }), typeof e != "object") {
1842
- this.updateColors();
1843
- return;
1844
- }
1845
- let t = Object.keys(e);
1846
- t.forEach((t) => {
1847
- this[t] = e[t];
1848
- }), this.updateColors(), t.forEach((t) => {
1849
- this[t] = U(this[t], e[t]);
1850
- });
1851
- }
1852
- }, Rt = /* @__PURE__ */ n((e) => {
1853
- let t = new Lt();
1854
- return t.calculate(e), t;
1855
- }, "getThemeVariables"), zt = class {
1856
- static {
1857
- n(this, "Theme");
1858
- }
1859
- constructor() {
1860
- 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 = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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))";
1861
- }
1862
- updateColors() {
1863
- 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);
1864
- 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);
1865
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1866
- this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1867
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1868
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1869
- h: 30,
1870
- s: -30,
1871
- l: -(5 + e * 5)
1872
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1873
- h: 30,
1874
- s: -30,
1875
- l: -(8 + e * 5)
1876
- });
1877
- this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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, {
1878
- h: 40,
1879
- l: -40
1880
- }), this.pie7 = this.pie7 || x(this.primaryColor, {
1881
- h: 60,
1882
- l: -10
1883
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1884
- h: -60,
1885
- l: -10
1886
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1887
- h: 120,
1888
- l: 0
1889
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1890
- h: 60,
1891
- l: -50
1892
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1893
- h: -60,
1894
- l: -50
1895
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1896
- h: 120,
1897
- l: -50
1898
- }), 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, {
1899
- h: 60,
1900
- l: -30
1901
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1902
- h: -60,
1903
- l: -30
1904
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1905
- h: 60,
1906
- l: -30
1907
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1908
- h: 120,
1909
- l: -30
1910
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1911
- h: 120,
1912
- l: -30
1913
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1914
- domainFontSize: this.cynefin?.domainFontSize || 16,
1915
- itemFontSize: this.cynefin?.itemFontSize || 12,
1916
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1917
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1918
- cliffColor: this.cynefin?.cliffColor || "#8B4513",
1919
- cliffWidth: this.cynefin?.cliffWidth || 4,
1920
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1921
- arrowWidth: this.cynefin?.arrowWidth || 2,
1922
- complexBg: this.cynefin?.complexBg || "#C8E6C9",
1923
- complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1924
- chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1925
- clearBg: this.cynefin?.clearBg || "#FFF9C4",
1926
- confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1927
- textColor: this.cynefin?.textColor || this.textColor,
1928
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1929
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1930
- r: 5,
1931
- g: 5,
1932
- b: 5
1933
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1934
- r: 10,
1935
- g: 10,
1936
- b: 10
1937
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1938
- r: 15,
1939
- g: 15,
1940
- b: 15
1941
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1942
- r: -5,
1943
- g: -5,
1944
- b: -5
1945
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1946
- r: -10,
1947
- g: -10,
1948
- b: -10
1949
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1950
- r: -15,
1951
- g: -15,
1952
- b: -15
1953
- }), 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 = {
1954
- startByteColor: this.primaryTextColor,
1955
- endByteColor: this.primaryTextColor,
1956
- labelColor: this.primaryTextColor,
1957
- titleColor: this.primaryTextColor,
1958
- blockStrokeColor: this.primaryTextColor,
1959
- blockFillColor: this.mainBkg
1960
- }, this.radar = {
1961
- axisColor: this.radar?.axisColor || this.lineColor,
1962
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1963
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1964
- curveOpacity: this.radar?.curveOpacity || .5,
1965
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1966
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1967
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1968
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1969
- legendBoxSize: this.radar?.legendBoxSize || 12,
1970
- legendFontSize: this.radar?.legendFontSize || 12
1971
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1972
- backgroundColor: this.wardley?.backgroundColor || this.background,
1973
- axisColor: this.wardley?.axisColor || this.lineColor,
1974
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1975
- gridColor: this.wardley?.gridColor || this.gridColor,
1976
- componentFill: this.wardley?.componentFill || this.background,
1977
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1978
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1979
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1980
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1981
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1982
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1983
- annotationFill: this.wardley?.annotationFill || this.background
1984
- }, this.xyChart = {
1985
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1986
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1987
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1988
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1989
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1990
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1991
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1992
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1993
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1994
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1995
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1996
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1997
- plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1998
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1999
- }
2000
- calculate(e) {
2001
- if (typeof e != "object") {
2002
- this.updateColors();
2003
- return;
2004
- }
2005
- let t = Object.keys(e);
2006
- t.forEach((t) => {
2007
- this[t] = e[t];
2008
- }), this.updateColors(), t.forEach((t) => {
2009
- this[t] = U(this[t], e[t]);
2010
- });
2011
- }
2012
- }, Bt = /* @__PURE__ */ n((e) => {
2013
- let t = new zt();
2014
- return t.calculate(e), t;
2015
- }, "getThemeVariables"), Vt = class {
2016
- static {
2017
- n(this, "Theme");
2018
- }
2019
- constructor() {
2020
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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))";
2021
- }
2022
- updateColors() {
2023
- 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";
2024
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2025
- 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);
2026
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
2027
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2028
- 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) });
2029
- 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 });
2030
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
2031
- 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";
2032
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
2033
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
2034
- domainFontSize: this.cynefin?.domainFontSize || 16,
2035
- itemFontSize: this.cynefin?.itemFontSize || 12,
2036
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
2037
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
2038
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
2039
- cliffWidth: this.cynefin?.cliffWidth || 4,
2040
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
2041
- arrowWidth: this.cynefin?.arrowWidth || 2,
2042
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
2043
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
2044
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
2045
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
2046
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
2047
- textColor: this.cynefin?.textColor || this.textColor,
2048
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
2049
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2050
- r: 5,
2051
- g: 5,
2052
- b: 5
2053
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2054
- r: 10,
2055
- g: 10,
2056
- b: 10
2057
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2058
- r: 15,
2059
- g: 15,
2060
- b: 15
2061
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2062
- r: -5,
2063
- g: -5,
2064
- b: -5
2065
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2066
- r: -10,
2067
- g: -10,
2068
- b: -10
2069
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2070
- r: -15,
2071
- g: -15,
2072
- b: -15
2073
- }), 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 = {
2074
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2075
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2076
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2077
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2078
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2079
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2080
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2081
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2082
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2083
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2084
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2085
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2086
- plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
2087
- }, this.radar = {
2088
- axisColor: this.radar?.axisColor || this.lineColor,
2089
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2090
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2091
- curveOpacity: this.radar?.curveOpacity || .5,
2092
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2093
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2094
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2095
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
2096
- legendBoxSize: this.radar?.legendBoxSize || 12,
2097
- legendFontSize: this.radar?.legendFontSize || 12
2098
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
2099
- backgroundColor: this.wardley?.backgroundColor || this.background,
2100
- axisColor: this.wardley?.axisColor || this.lineColor,
2101
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2102
- gridColor: this.wardley?.gridColor || this.gridColor,
2103
- componentFill: this.wardley?.componentFill || this.background,
2104
- componentStroke: this.wardley?.componentStroke || this.lineColor,
2105
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2106
- linkStroke: this.wardley?.linkStroke || this.lineColor,
2107
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2108
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2109
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2110
- annotationFill: this.wardley?.annotationFill || this.background
2111
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2112
- }
2113
- calculate(e) {
2114
- if (typeof e != "object") {
2115
- this.updateColors();
2116
- return;
2117
- }
2118
- let t = Object.keys(e);
2119
- t.forEach((t) => {
2120
- this[t] = e[t];
2121
- }), this.updateColors(), t.forEach((t) => {
2122
- this[t] = U(this[t], e[t]);
2123
- });
2124
- }
2125
- }, Ht = /* @__PURE__ */ n((e) => {
2126
- let t = new Vt();
2127
- return t.calculate(e), t;
2128
- }, "getThemeVariables"), Ut = class {
2129
- static {
2130
- n(this, "Theme");
2131
- }
2132
- constructor() {
2133
- 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 = H(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";
2134
- }
2135
- updateColors() {
2136
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2137
- h: 180,
2138
- l: 5
2139
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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.background) ? y(this.background, 4) : b(this.background, 4));
2140
- let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2141
- h: 180,
2142
- l: 5
2143
- });
2144
- 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, {
2145
- h: 210,
2146
- l: 150
2147
- }), 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);
2148
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2149
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2150
- 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);
2151
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2152
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2153
- let r = this.darkMode ? -4 : -1;
2154
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2155
- h: 180,
2156
- s: -15,
2157
- l: r * (5 + e * 3)
2158
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2159
- h: 180,
2160
- s: -15,
2161
- l: r * (8 + e * 3)
2162
- });
2163
- 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, {
2164
- h: 60,
2165
- l: -10
2166
- }), this.pie8 = this.pie8 || x(e, {
2167
- h: -60,
2168
- l: -10
2169
- }), this.pie9 = this.pie9 || x(e, {
2170
- h: 120,
2171
- l: 0
2172
- }), this.pie10 = this.pie10 || x(e, {
2173
- h: 60,
2174
- l: -20
2175
- }), this.pie11 = this.pie11 || x(e, {
2176
- h: -60,
2177
- l: -20
2178
- }), this.pie12 = this.pie12 || x(e, {
2179
- h: 120,
2180
- l: -10
2181
- }), 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, {
2182
- r: 5,
2183
- g: 5,
2184
- b: 5
2185
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2186
- r: 10,
2187
- g: 10,
2188
- b: 10
2189
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2190
- r: 15,
2191
- g: 15,
2192
- b: 15
2193
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2194
- r: -5,
2195
- g: -5,
2196
- b: -5
2197
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2198
- r: -10,
2199
- g: -10,
2200
- b: -10
2201
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2202
- r: -15,
2203
- g: -15,
2204
- b: -15
2205
- }), 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 = {
2206
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2207
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2208
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2209
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2210
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2211
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2212
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2213
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2214
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2215
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2216
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2217
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2218
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2219
- }
2220
- calculate(e) {
2221
- if (typeof e != "object") {
2222
- this.updateColors();
2223
- return;
2224
- }
2225
- let t = Object.keys(e);
2226
- t.forEach((t) => {
2227
- this[t] = e[t];
2228
- }), this.updateColors(), t.forEach((t) => {
2229
- this[t] = U(this[t], e[t]);
2230
- });
2231
- }
2232
- }, Wt = /* @__PURE__ */ n((e) => {
2233
- let t = new Ut();
2234
- return t.calculate(e), t;
2235
- }, "getThemeVariables"), Gt = class {
2236
- static {
2237
- n(this, "Theme");
2238
- }
2239
- constructor() {
2240
- 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 = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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 = h(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";
2241
- }
2242
- updateColors() {
2243
- 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, {
2244
- h: 180,
2245
- l: 5
2246
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || this.secondBkg, 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, {
2247
- h: 210,
2248
- l: 150
2249
- }), 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);
2250
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2251
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2252
- 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);
2253
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2254
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2255
- let e = this.darkMode ? -4 : -1;
2256
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2257
- h: 180,
2258
- s: -15,
2259
- l: e * (5 + t * 3)
2260
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2261
- h: 180,
2262
- s: -15,
2263
- l: e * (8 + t * 3)
2264
- });
2265
- 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, {
2266
- h: 60,
2267
- l: -10
2268
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
2269
- h: -60,
2270
- l: -10
2271
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
2272
- h: 120,
2273
- l: 0
2274
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
2275
- h: 60,
2276
- l: -20
2277
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
2278
- h: -60,
2279
- l: -20
2280
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
2281
- h: 120,
2282
- l: -10
2283
- }), 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, {
2284
- r: 5,
2285
- g: 5,
2286
- b: 5
2287
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2288
- r: 10,
2289
- g: 10,
2290
- b: 10
2291
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2292
- r: 15,
2293
- g: 15,
2294
- b: 15
2295
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2296
- r: -5,
2297
- g: -5,
2298
- b: -5
2299
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2300
- r: -10,
2301
- g: -10,
2302
- b: -10
2303
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2304
- r: -15,
2305
- g: -15,
2306
- b: -15
2307
- }), 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 = {
2308
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2309
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2310
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2311
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2312
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2313
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2314
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2315
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2316
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2317
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2318
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2319
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2320
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2321
- }
2322
- calculate(e) {
2323
- if (typeof e != "object") {
2324
- this.updateColors();
2325
- return;
2326
- }
2327
- let t = Object.keys(e);
2328
- t.forEach((t) => {
2329
- this[t] = e[t];
2330
- }), this.updateColors(), t.forEach((t) => {
2331
- this[t] = U(this[t], e[t]);
2332
- });
2333
- }
2334
- }, Kt = /* @__PURE__ */ n((e) => {
2335
- let t = new Gt();
2336
- return t.calculate(e), t;
2337
- }, "getThemeVariables"), qt = class {
2338
- static {
2339
- n(this, "Theme");
2340
- }
2341
- constructor() {
2342
- 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 = H("#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";
2343
- }
2344
- updateColors() {
2345
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2346
- h: 180,
2347
- l: 5
2348
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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.background) ? y(this.background, 4) : b(this.background, 4));
2349
- let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2350
- h: 180,
2351
- l: 5
2352
- });
2353
- 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;
2354
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2355
- if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2356
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2357
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2358
- 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);
2359
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2360
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2361
- let r = this.darkMode ? -4 : -1;
2362
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2363
- h: 180,
2364
- s: -15,
2365
- l: r * (5 + e * 3)
2366
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2367
- h: 180,
2368
- s: -15,
2369
- l: r * (8 + e * 3)
2370
- });
2371
- 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, {
2372
- h: 60,
2373
- l: -10
2374
- }), this.pie8 = this.pie8 || x(e, {
2375
- h: -60,
2376
- l: -10
2377
- }), this.pie9 = this.pie9 || x(e, {
2378
- h: 120,
2379
- l: 0
2380
- }), this.pie10 = this.pie10 || x(e, {
2381
- h: 60,
2382
- l: -20
2383
- }), this.pie11 = this.pie11 || x(e, {
2384
- h: -60,
2385
- l: -20
2386
- }), this.pie12 = this.pie12 || x(e, {
2387
- h: 120,
2388
- l: -10
2389
- }), 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, {
2390
- r: 5,
2391
- g: 5,
2392
- b: 5
2393
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2394
- r: 10,
2395
- g: 10,
2396
- b: 10
2397
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2398
- r: 15,
2399
- g: 15,
2400
- b: 15
2401
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2402
- r: -5,
2403
- g: -5,
2404
- b: -5
2405
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2406
- r: -10,
2407
- g: -10,
2408
- b: -10
2409
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2410
- r: -15,
2411
- g: -15,
2412
- b: -15
2413
- }), 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 = {
2414
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2415
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2416
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2417
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2418
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2419
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2420
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2421
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2422
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2423
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2424
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2425
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2426
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2427
- }
2428
- calculate(e) {
2429
- if (typeof e != "object") {
2430
- this.updateColors();
2431
- return;
2432
- }
2433
- let t = Object.keys(e);
2434
- t.forEach((t) => {
2435
- this[t] = e[t];
2436
- }), this.updateColors(), t.forEach((t) => {
2437
- this[t] = U(this[t], e[t]);
2438
- });
2439
- }
2440
- }, Jt = /* @__PURE__ */ n((e) => {
2441
- let t = new qt();
2442
- return t.calculate(e), t;
2443
- }, "getThemeVariables"), Yt = class {
2444
- static {
2445
- n(this, "Theme");
2446
- }
2447
- constructor() {
2448
- 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 = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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 = h(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";
2449
- }
2450
- updateColors() {
2451
- 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, {
2452
- h: 180,
2453
- l: 5
2454
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || this.secondBkg, 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, {
2455
- h: 210,
2456
- l: 150
2457
- }), 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);
2458
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2459
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2460
- 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);
2461
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2462
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2463
- let e = this.darkMode ? -4 : -1;
2464
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2465
- h: 180,
2466
- s: -15,
2467
- l: e * (5 + t * 3)
2468
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2469
- h: 180,
2470
- s: -15,
2471
- l: e * (8 + t * 3)
2472
- });
2473
- 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, {
2474
- h: 60,
2475
- l: -10
2476
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
2477
- h: -60,
2478
- l: -10
2479
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
2480
- h: 120,
2481
- l: 0
2482
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
2483
- h: 60,
2484
- l: -20
2485
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
2486
- h: -60,
2487
- l: -20
2488
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
2489
- h: 120,
2490
- l: -10
2491
- }), 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, {
2492
- r: 5,
2493
- g: 5,
2494
- b: 5
2495
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2496
- r: 10,
2497
- g: 10,
2498
- b: 10
2499
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2500
- r: 15,
2501
- g: 15,
2502
- b: 15
2503
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2504
- r: -5,
2505
- g: -5,
2506
- b: -5
2507
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2508
- r: -10,
2509
- g: -10,
2510
- b: -10
2511
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2512
- r: -15,
2513
- g: -15,
2514
- b: -15
2515
- }), 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 = {
2516
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2517
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2518
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2519
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2520
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2521
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2522
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2523
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2524
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2525
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2526
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2527
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2528
- }, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2529
- }
2530
- calculate(e) {
2531
- if (typeof e != "object") {
2532
- this.updateColors();
2533
- return;
2534
- }
2535
- let t = Object.keys(e);
2536
- t.forEach((t) => {
2537
- this[t] = e[t];
2538
- }), this.updateColors(), t.forEach((t) => {
2539
- this[t] = U(this[t], e[t]);
2540
- });
2541
- }
2542
- }, Xt = /* @__PURE__ */ n((e) => {
2543
- let t = new Yt();
2544
- return t.calculate(e), t;
2545
- }, "getThemeVariables"), Zt = class {
2546
- static {
2547
- n(this, "Theme");
2548
- }
2549
- constructor() {
2550
- 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 = H("#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.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 = [
2551
- "#E879F9",
2552
- "#2DD4BF",
2553
- "#FB923C",
2554
- "#22D3EE",
2555
- "#4ADE80",
2556
- "#A78BFA",
2557
- "#F87171",
2558
- "#FACC15",
2559
- "#818CF8",
2560
- "#A3E635 ",
2561
- "#38BDF8",
2562
- "#FB7185"
2563
- ], this.bkgColorArray = [
2564
- "#FDF4FF",
2565
- "#F0FDFA",
2566
- "#FFF7ED",
2567
- "#ECFEFF",
2568
- "#F0FDF4",
2569
- "#F5F3FF",
2570
- "#FEF2F2",
2571
- "#FEFCE8",
2572
- "#EEF2FF",
2573
- "#F7FEE7",
2574
- "#F0F9FF",
2575
- "#FFF1F2"
2576
- ], this.usecaseActorBorder = "#A78BFA", this.usecaseActorBkg = "#F5F3FF", this.usecaseBorder = "#2DD4BF", this.usecaseBkg = "#F0FDFA", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseBoundaryBkg = "#FAFAFC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#000000";
2577
- }
2578
- updateColors() {
2579
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2580
- h: 180,
2581
- l: 5
2582
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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.background) ? y(this.background, 4) : b(this.background, 4));
2583
- let e = "#ECECFE", t = x(e, {
2584
- h: 180,
2585
- l: 5
2586
- });
2587
- 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#FFFFFF", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#F9F9FB", this.compositeTitleBackground = this.compositeTitleBackground || "#F9F9FB", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || "white";
2588
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2589
- 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);
2590
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2591
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2592
- let n = this.darkMode ? -4 : -1;
2593
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2594
- h: 180,
2595
- s: -15,
2596
- l: n * (5 + e * 3)
2597
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2598
- h: 180,
2599
- s: -15,
2600
- l: n * (8 + e * 3)
2601
- });
2602
- this.classText = this.classText || this.textColor;
2603
- for (let e = 0; e < 8; e++) this["fillType" + e] = this["fillType" + e] || this.bkgColorArray[e];
2604
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2605
- 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";
2606
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2607
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2608
- r: 5,
2609
- g: 5,
2610
- b: 5
2611
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2612
- r: 10,
2613
- g: 10,
2614
- b: 10
2615
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2616
- r: 15,
2617
- g: 15,
2618
- b: 15
2619
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2620
- r: -5,
2621
- g: -5,
2622
- b: -5
2623
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2624
- r: -10,
2625
- g: -10,
2626
- b: -10
2627
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2628
- r: -15,
2629
- g: -15,
2630
- b: -15
2631
- }), 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 = {
2632
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2633
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2634
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2635
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2636
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2637
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2638
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2639
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2640
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2641
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2642
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2643
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2644
- }, 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 || "#E9E9F1", this.git2 = this.git2 || t, 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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2645
- }
2646
- calculate(e) {
2647
- if (typeof e != "object") {
2648
- this.updateColors();
2649
- return;
2650
- }
2651
- let t = Object.keys(e);
2652
- t.forEach((t) => {
2653
- this[t] = e[t];
2654
- }), this.updateColors(), t.forEach((t) => {
2655
- this[t] = U(this[t], e[t]);
2656
- });
2657
- }
2658
- }, Qt = /* @__PURE__ */ n((e) => {
2659
- let t = new Zt();
2660
- return t.calculate(e), t;
2661
- }, "getThemeVariables"), W = class {
2662
- static {
2663
- n(this, "Theme");
2664
- }
2665
- constructor() {
2666
- 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 = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(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 = h(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 = [
2667
- "#E879F9",
2668
- "#2DD4BF",
2669
- "#FB923C",
2670
- "#22D3EE",
2671
- "#4ADE80",
2672
- "#A78BFA",
2673
- "#F87171",
2674
- "#FACC15",
2675
- "#818CF8",
2676
- "#A3E635 ",
2677
- "#38BDF8",
2678
- "#FB7185"
2679
- ], this.bkgColorArray = [], this.usecaseActorBorder = "#A78BFA", this.usecaseBorder = "#2DD4BF", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#FFFFFF";
2680
- }
2681
- updateColors() {
2682
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2683
- h: 180,
2684
- l: 5
2685
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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.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 || this.secondBkg, 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#16141F", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || "#16141F", this.altBackground = this.altBackground || "#16141F", this.compositeTitleBackground = this.compositeTitleBackground || "#16141F", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || this.background;
2686
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2687
- 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);
2688
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2689
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2690
- let e = this.darkMode ? -4 : -1;
2691
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2692
- h: 180,
2693
- s: -15,
2694
- l: e * (5 + t * 3)
2695
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2696
- h: 180,
2697
- s: -15,
2698
- l: e * (8 + t * 3)
2699
- });
2700
- this.classText = this.classText || this.textColor, [
2701
- "#701a75",
2702
- "#134e4a",
2703
- "#7c2d12",
2704
- "#581c87",
2705
- "#14532d",
2706
- "#4c1d95",
2707
- "#7f1d1d",
2708
- "#713f12"
2709
- ].forEach((e, t) => {
2710
- this["fillType" + t] = this["fillType" + t] || e;
2711
- });
2712
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2713
- this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || "#28253D", 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";
2714
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2715
- 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, {
2716
- r: 5,
2717
- g: 5,
2718
- b: 5
2719
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2720
- r: 10,
2721
- g: 10,
2722
- b: 10
2723
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2724
- r: 15,
2725
- g: 15,
2726
- b: 15
2727
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2728
- r: -5,
2729
- g: -5,
2730
- b: -5
2731
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2732
- r: -10,
2733
- g: -10,
2734
- b: -10
2735
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2736
- r: -15,
2737
- g: -15,
2738
- b: -15
2739
- }), 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 = {
2740
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2741
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2742
- legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2743
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2744
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2745
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2746
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2747
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2748
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2749
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2750
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2751
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2752
- }, 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.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2753
- }
2754
- calculate(e) {
2755
- if (typeof e != "object") {
2756
- this.updateColors();
2757
- return;
2758
- }
2759
- let t = Object.keys(e);
2760
- t.forEach((t) => {
2761
- this[t] = e[t];
2762
- }), this.updateColors(), t.forEach((t) => {
2763
- this[t] = U(this[t], e[t]);
2764
- });
2765
- }
2766
- }, G = {
2767
- base: { getThemeVariables: Pt },
2768
- dark: { getThemeVariables: It },
2769
- default: { getThemeVariables: Rt },
2770
- forest: { getThemeVariables: Bt },
2771
- neutral: { getThemeVariables: Ht },
2772
- neo: { getThemeVariables: Wt },
2773
- "neo-dark": { getThemeVariables: Kt },
2774
- redux: { getThemeVariables: Jt },
2775
- "redux-dark": { getThemeVariables: Xt },
2776
- "redux-color": { getThemeVariables: Qt },
2777
- "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2778
- let t = new W();
2779
- return t.calculate(e), t;
2780
- }, "getThemeVariables") }
2781
- }, K = {
2782
- flowchart: {
2783
- useMaxWidth: !0,
2784
- theme: "redux-color",
2785
- look: "neo",
2786
- titleTopMargin: 25,
2787
- subGraphTitleMargin: {
2788
- top: 0,
2789
- bottom: 0
2790
- },
2791
- diagramPadding: 8,
2792
- htmlLabels: null,
2793
- nodeSpacing: 50,
2794
- rankSpacing: 50,
2795
- curve: "basis",
2796
- padding: 15,
2797
- wrappingWidth: 120,
2798
- minNodeWidth: 120,
2799
- inheritDir: !1
2800
- },
2801
- swimlane: {
2802
- useMaxWidth: !0,
2803
- theme: "redux-color",
2804
- look: "neo",
2805
- layout: "swimlane",
2806
- lineHops: "arc",
2807
- ignoreCrossLaneEdges: !0,
2808
- optimizeRanksByCrossings: !0,
2809
- automaticLaneOrdering: !1
2810
- },
2811
- agentflow: {
2812
- useMaxWidth: !0,
2813
- theme: "redux-color",
2814
- look: "neo",
2815
- titleTopMargin: 25,
2816
- diagramPadding: 8,
2817
- nodeSpacing: 50,
2818
- rankSpacing: 50,
2819
- wrappingWidth: 120,
2820
- minNodeWidth: 120
2821
- },
2822
- sequence: {
2823
- useMaxWidth: !0,
2824
- theme: "redux-color",
2825
- look: "neo",
2826
- hideUnusedParticipants: !1,
2827
- activationWidth: 10,
2828
- diagramMarginX: 50,
2829
- diagramMarginY: 10,
2830
- actorMargin: 50,
2831
- width: 150,
2832
- height: 65,
2833
- boxMargin: 10,
2834
- boxTextMargin: 5,
2835
- noteMargin: 10,
2836
- messageMargin: 35,
2837
- messageAlign: "center",
2838
- mirrorActors: !0,
2839
- forceMenus: !1,
2840
- bottomMarginAdj: 1,
2841
- rightAngles: !1,
2842
- showSequenceNumbers: !1,
2843
- actorFontSize: 14,
2844
- actorFontFamily: "\"Open Sans\", sans-serif",
2845
- actorFontWeight: 400,
2846
- noteFontSize: 14,
2847
- noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2848
- noteFontWeight: 400,
2849
- noteAlign: "center",
2850
- messageFontSize: 16,
2851
- messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2852
- messageFontWeight: 400,
2853
- wrap: !1,
2854
- wrapPadding: 10,
2855
- labelBoxWidth: 50,
2856
- labelBoxHeight: 20
2857
- },
2858
- gantt: {
2859
- useMaxWidth: !0,
2860
- titleTopMargin: 25,
2861
- barHeight: 20,
2862
- barGap: 4,
2863
- topPadding: 50,
2864
- rightPadding: 75,
2865
- leftPadding: 75,
2866
- gridLineStartPadding: 35,
2867
- fontSize: 11,
2868
- sectionFontSize: 11,
2869
- numberSectionStyles: 4,
2870
- axisFormat: "%Y-%m-%d",
2871
- topAxis: !1,
2872
- displayMode: "",
2873
- weekday: "sunday"
2874
- },
2875
- journey: {
2876
- useMaxWidth: !0,
2877
- diagramMarginX: 50,
2878
- diagramMarginY: 10,
2879
- leftMargin: 150,
2880
- maxLabelWidth: 360,
2881
- width: 150,
2882
- height: 50,
2883
- boxMargin: 10,
2884
- boxTextMargin: 5,
2885
- noteMargin: 10,
2886
- messageMargin: 35,
2887
- messageAlign: "center",
2888
- bottomMarginAdj: 1,
2889
- rightAngles: !1,
2890
- taskFontSize: 14,
2891
- taskFontFamily: "\"Open Sans\", sans-serif",
2892
- taskMargin: 50,
2893
- activationWidth: 10,
2894
- textPlacement: "fo",
2895
- actorColours: [
2896
- "#8FBC8F",
2897
- "#7CFC00",
2898
- "#00FFFF",
2899
- "#20B2AA",
2900
- "#B0E0E6",
2901
- "#FFFFE0"
2902
- ],
2903
- sectionFills: [
2904
- "#191970",
2905
- "#8B008B",
2906
- "#4B0082",
2907
- "#2F4F4F",
2908
- "#800000",
2909
- "#8B4513",
2910
- "#00008B"
2911
- ],
2912
- sectionColours: ["#fff"],
2913
- titleColor: "",
2914
- titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2915
- titleFontSize: "4ex"
2916
- },
2917
- class: {
2918
- useMaxWidth: !0,
2919
- theme: "redux-color",
2920
- look: "neo",
2921
- titleTopMargin: 25,
2922
- arrowMarkerAbsolute: !1,
2923
- dividerMargin: 10,
2924
- padding: 5,
2925
- textHeight: 10,
2926
- htmlLabels: !1,
2927
- hideEmptyMembersBox: !1,
2928
- hierarchicalNamespaces: !0
2929
- },
2930
- state: {
2931
- useMaxWidth: !0,
2932
- theme: "redux-color",
2933
- look: "neo",
2934
- layout: "elk",
2935
- wrappingWidth: 120,
2936
- minNodeWidth: 120,
2937
- titleTopMargin: 25,
2938
- dividerMargin: 10,
2939
- sizeUnit: 5,
2940
- padding: 8,
2941
- textHeight: 10,
2942
- titleShift: -15,
2943
- noteMargin: 10,
2944
- forkWidth: 70,
2945
- forkHeight: 7,
2946
- miniPadding: 2,
2947
- fontSizeFactor: 5.02,
2948
- fontSize: 24,
2949
- labelHeight: 16,
2950
- edgeLengthFactor: "20",
2951
- compositTitleSize: 35,
2952
- radius: 5
2953
- },
2954
- er: {
2955
- useMaxWidth: !0,
2956
- theme: "redux-color",
2957
- look: "neo",
2958
- titleTopMargin: 25,
2959
- diagramPadding: 20,
2960
- layoutDirection: "TB",
2961
- minEntityWidth: 100,
2962
- minEntityHeight: 75,
2963
- entityPadding: 15,
2964
- nodeSpacing: 140,
2965
- rankSpacing: 80,
2966
- stroke: "gray",
2967
- fill: "honeydew",
2968
- fontSize: 12
2969
- },
2970
- pie: {
2971
- useMaxWidth: !0,
2972
- textPosition: .75,
2973
- donutHole: 0,
2974
- legendPosition: "right",
2975
- highlightSlice: ""
2976
- },
2977
- quadrantChart: {
2978
- useMaxWidth: !0,
2979
- chartWidth: 500,
2980
- chartHeight: 500,
2981
- titleFontSize: 20,
2982
- titlePadding: 10,
2983
- quadrantPadding: 5,
2984
- xAxisLabelPadding: 5,
2985
- yAxisLabelPadding: 5,
2986
- xAxisLabelFontSize: 16,
2987
- yAxisLabelFontSize: 16,
2988
- quadrantLabelFontSize: 16,
2989
- quadrantTextTopPadding: 5,
2990
- pointTextPadding: 5,
2991
- pointLabelFontSize: 12,
2992
- pointRadius: 5,
2993
- xAxisPosition: "top",
2994
- yAxisPosition: "left",
2995
- quadrantInternalBorderStrokeWidth: 1,
2996
- quadrantExternalBorderStrokeWidth: 2
2997
- },
2998
- xyChart: {
2999
- useMaxWidth: !0,
3000
- width: 700,
3001
- height: 500,
3002
- titleFontSize: 20,
3003
- titlePadding: 10,
3004
- showDataLabel: !1,
3005
- showDataLabelOutsideBar: !1,
3006
- showTitle: !0,
3007
- showLegend: !0,
3008
- legendFontSize: 14,
3009
- legendPadding: 10,
3010
- xAxis: {
3011
- $ref: "#/$defs/XYChartAxisConfig",
3012
- showLabel: !0,
3013
- labelFontSize: 14,
3014
- labelPadding: 5,
3015
- showTitle: !0,
3016
- titleFontSize: 16,
3017
- titlePadding: 5,
3018
- showTick: !0,
3019
- tickLength: 5,
3020
- tickWidth: 2,
3021
- showAxisLine: !0,
3022
- axisLineWidth: 2,
3023
- labelRotation: 0
3024
- },
3025
- yAxis: {
3026
- $ref: "#/$defs/XYChartAxisConfig",
3027
- showLabel: !0,
3028
- labelFontSize: 14,
3029
- labelPadding: 5,
3030
- showTitle: !0,
3031
- titleFontSize: 16,
3032
- titlePadding: 5,
3033
- showTick: !0,
3034
- tickLength: 5,
3035
- tickWidth: 2,
3036
- showAxisLine: !0,
3037
- axisLineWidth: 2,
3038
- labelRotation: 0
3039
- },
3040
- chartOrientation: "vertical",
3041
- plotReservedSpacePercent: 50
3042
- },
3043
- requirement: {
3044
- useMaxWidth: !0,
3045
- theme: "redux-color",
3046
- look: "neo",
3047
- rect_fill: "#f9f9f9",
3048
- text_color: "#333",
3049
- rect_border_size: "0.5px",
3050
- rect_border_color: "#bbb",
3051
- rect_min_width: 200,
3052
- rect_min_height: 200,
3053
- fontSize: 14,
3054
- rect_padding: 10,
3055
- line_height: 20
3056
- },
3057
- mindmap: {
3058
- useMaxWidth: !0,
3059
- colorBy: "branch",
3060
- padding: 10,
3061
- maxNodeWidth: 200,
3062
- layoutAlgorithm: "cose-bilkent"
3063
- },
3064
- ishikawa: {
3065
- useMaxWidth: !0,
3066
- diagramPadding: 20
3067
- },
3068
- kanban: {
3069
- useMaxWidth: !0,
3070
- padding: 8,
3071
- sectionWidth: 200,
3072
- ticketBaseUrl: ""
3073
- },
3074
- timeline: {
3075
- useMaxWidth: !0,
3076
- diagramMarginX: 50,
3077
- diagramMarginY: 10,
3078
- leftMargin: 150,
3079
- width: 150,
3080
- height: 50,
3081
- boxMargin: 10,
3082
- boxTextMargin: 5,
3083
- noteMargin: 10,
3084
- messageMargin: 35,
3085
- messageAlign: "center",
3086
- bottomMarginAdj: 1,
3087
- rightAngles: !1,
3088
- taskFontSize: 14,
3089
- taskFontFamily: "\"Open Sans\", sans-serif",
3090
- taskMargin: 50,
3091
- activationWidth: 10,
3092
- textPlacement: "fo",
3093
- actorColours: [
3094
- "#8FBC8F",
3095
- "#7CFC00",
3096
- "#00FFFF",
3097
- "#20B2AA",
3098
- "#B0E0E6",
3099
- "#FFFFE0"
3100
- ],
3101
- sectionFills: [
3102
- "#191970",
3103
- "#8B008B",
3104
- "#4B0082",
3105
- "#2F4F4F",
3106
- "#800000",
3107
- "#8B4513",
3108
- "#00008B"
3109
- ],
3110
- sectionColours: ["#fff"],
3111
- disableMulticolor: !1
3112
- },
3113
- gitGraph: {
3114
- useMaxWidth: !0,
3115
- titleTopMargin: 25,
3116
- diagramPadding: 8,
3117
- nodeLabel: {
3118
- width: 75,
3119
- height: 100,
3120
- x: -25,
3121
- y: 0
3122
- },
3123
- mainBranchName: "main",
3124
- mainBranchOrder: 0,
3125
- showCommitLabel: !0,
3126
- showBranches: !0,
3127
- rotateCommitLabel: !0,
3128
- parallelCommits: !1,
3129
- arrowMarkerAbsolute: !1
3130
- },
3131
- c4: {
3132
- useMaxWidth: !0,
3133
- diagramMarginX: 50,
3134
- diagramMarginY: 10,
3135
- c4ShapeMargin: 50,
3136
- c4ShapePadding: 20,
3137
- width: 216,
3138
- height: 60,
3139
- boxMargin: 10,
3140
- c4ShapeInRow: 4,
3141
- nextLinePaddingX: 0,
3142
- c4BoundaryInRow: 2,
3143
- personFontSize: 14,
3144
- personFontFamily: "\"Open Sans\", sans-serif",
3145
- personFontWeight: "normal",
3146
- external_personFontSize: 14,
3147
- external_personFontFamily: "\"Open Sans\", sans-serif",
3148
- external_personFontWeight: "normal",
3149
- systemFontSize: 14,
3150
- systemFontFamily: "\"Open Sans\", sans-serif",
3151
- systemFontWeight: "normal",
3152
- external_systemFontSize: 14,
3153
- external_systemFontFamily: "\"Open Sans\", sans-serif",
3154
- external_systemFontWeight: "normal",
3155
- system_dbFontSize: 14,
3156
- system_dbFontFamily: "\"Open Sans\", sans-serif",
3157
- system_dbFontWeight: "normal",
3158
- external_system_dbFontSize: 14,
3159
- external_system_dbFontFamily: "\"Open Sans\", sans-serif",
3160
- external_system_dbFontWeight: "normal",
3161
- system_queueFontSize: 14,
3162
- system_queueFontFamily: "\"Open Sans\", sans-serif",
3163
- system_queueFontWeight: "normal",
3164
- external_system_queueFontSize: 14,
3165
- external_system_queueFontFamily: "\"Open Sans\", sans-serif",
3166
- external_system_queueFontWeight: "normal",
3167
- boundaryFontSize: 14,
3168
- boundaryFontFamily: "\"Open Sans\", sans-serif",
3169
- boundaryFontWeight: "normal",
3170
- messageFontSize: 12,
3171
- messageFontFamily: "\"Open Sans\", sans-serif",
3172
- messageFontWeight: "normal",
3173
- containerFontSize: 14,
3174
- containerFontFamily: "\"Open Sans\", sans-serif",
3175
- containerFontWeight: "normal",
3176
- external_containerFontSize: 14,
3177
- external_containerFontFamily: "\"Open Sans\", sans-serif",
3178
- external_containerFontWeight: "normal",
3179
- container_dbFontSize: 14,
3180
- container_dbFontFamily: "\"Open Sans\", sans-serif",
3181
- container_dbFontWeight: "normal",
3182
- external_container_dbFontSize: 14,
3183
- external_container_dbFontFamily: "\"Open Sans\", sans-serif",
3184
- external_container_dbFontWeight: "normal",
3185
- container_queueFontSize: 14,
3186
- container_queueFontFamily: "\"Open Sans\", sans-serif",
3187
- container_queueFontWeight: "normal",
3188
- external_container_queueFontSize: 14,
3189
- external_container_queueFontFamily: "\"Open Sans\", sans-serif",
3190
- external_container_queueFontWeight: "normal",
3191
- componentFontSize: 14,
3192
- componentFontFamily: "\"Open Sans\", sans-serif",
3193
- componentFontWeight: "normal",
3194
- external_componentFontSize: 14,
3195
- external_componentFontFamily: "\"Open Sans\", sans-serif",
3196
- external_componentFontWeight: "normal",
3197
- component_dbFontSize: 14,
3198
- component_dbFontFamily: "\"Open Sans\", sans-serif",
3199
- component_dbFontWeight: "normal",
3200
- external_component_dbFontSize: 14,
3201
- external_component_dbFontFamily: "\"Open Sans\", sans-serif",
3202
- external_component_dbFontWeight: "normal",
3203
- component_queueFontSize: 14,
3204
- component_queueFontFamily: "\"Open Sans\", sans-serif",
3205
- component_queueFontWeight: "normal",
3206
- external_component_queueFontSize: 14,
3207
- external_component_queueFontFamily: "\"Open Sans\", sans-serif",
3208
- external_component_queueFontWeight: "normal",
3209
- wrap: !0,
3210
- wrapPadding: 10,
3211
- person_bg_color: "#08427B",
3212
- person_border_color: "#073B6F",
3213
- external_person_bg_color: "#686868",
3214
- external_person_border_color: "#8A8A8A",
3215
- system_bg_color: "#1168BD",
3216
- system_border_color: "#3C7FC0",
3217
- system_db_bg_color: "#1168BD",
3218
- system_db_border_color: "#3C7FC0",
3219
- system_queue_bg_color: "#1168BD",
3220
- system_queue_border_color: "#3C7FC0",
3221
- external_system_bg_color: "#999999",
3222
- external_system_border_color: "#8A8A8A",
3223
- external_system_db_bg_color: "#999999",
3224
- external_system_db_border_color: "#8A8A8A",
3225
- external_system_queue_bg_color: "#999999",
3226
- external_system_queue_border_color: "#8A8A8A",
3227
- container_bg_color: "#438DD5",
3228
- container_border_color: "#3C7FC0",
3229
- container_db_bg_color: "#438DD5",
3230
- container_db_border_color: "#3C7FC0",
3231
- container_queue_bg_color: "#438DD5",
3232
- container_queue_border_color: "#3C7FC0",
3233
- external_container_bg_color: "#B3B3B3",
3234
- external_container_border_color: "#A6A6A6",
3235
- external_container_db_bg_color: "#B3B3B3",
3236
- external_container_db_border_color: "#A6A6A6",
3237
- external_container_queue_bg_color: "#B3B3B3",
3238
- external_container_queue_border_color: "#A6A6A6",
3239
- component_bg_color: "#85BBF0",
3240
- component_border_color: "#78A8D8",
3241
- component_db_bg_color: "#85BBF0",
3242
- component_db_border_color: "#78A8D8",
3243
- component_queue_bg_color: "#85BBF0",
3244
- component_queue_border_color: "#78A8D8",
3245
- external_component_bg_color: "#CCCCCC",
3246
- external_component_border_color: "#BFBFBF",
3247
- external_component_db_bg_color: "#CCCCCC",
3248
- external_component_db_border_color: "#BFBFBF",
3249
- external_component_queue_bg_color: "#CCCCCC",
3250
- external_component_queue_border_color: "#BFBFBF"
3251
- },
3252
- sankey: {
3253
- useMaxWidth: !0,
3254
- width: 600,
3255
- height: 400,
3256
- linkColor: "gradient",
3257
- nodeAlignment: "justify",
3258
- showValues: !0,
3259
- prefix: "",
3260
- suffix: "",
3261
- nodeWidth: 10,
3262
- nodePadding: 12,
3263
- labelStyle: "legacy"
3264
- },
3265
- block: {
3266
- useMaxWidth: !0,
3267
- padding: 8
3268
- },
3269
- packet: {
3270
- useMaxWidth: !0,
3271
- rowHeight: 32,
3272
- bitWidth: 32,
3273
- bitsPerRow: 32,
3274
- showBits: !0,
3275
- bitOrder: "ascending",
3276
- paddingX: 5,
3277
- paddingY: 5
3278
- },
3279
- treeView: {
3280
- useMaxWidth: !0,
3281
- rowIndent: 10,
3282
- paddingX: 5,
3283
- paddingY: 5,
3284
- lineThickness: 1,
3285
- showIcons: !1,
3286
- defaultIconPack: "",
3287
- filenameIcons: {},
3288
- extensionIcons: {}
3289
- },
3290
- architecture: {
3291
- useMaxWidth: !0,
3292
- padding: 40,
3293
- iconSize: 80,
3294
- fontSize: 16,
3295
- randomize: !1,
3296
- nodeSeparation: 75,
3297
- idealEdgeLengthMultiplier: 1.5,
3298
- edgeElasticity: .45,
3299
- numIter: 2500,
3300
- seed: 1
3301
- },
3302
- eventmodeling: {
3303
- useMaxWidth: !0,
3304
- padding: 30,
3305
- rowHeight: 32
3306
- },
3307
- radar: {
3308
- useMaxWidth: !0,
3309
- width: 600,
3310
- height: 600,
3311
- marginTop: 50,
3312
- marginRight: 50,
3313
- marginBottom: 50,
3314
- marginLeft: 50,
3315
- axisScaleFactor: 1,
3316
- axisLabelFactor: 1.05,
3317
- curveTension: .17
3318
- },
3319
- usecase: {
3320
- useMaxWidth: !0,
3321
- theme: "redux-color",
3322
- look: "neo",
3323
- wrappingWidth: 120,
3324
- minNodeWidth: 120,
3325
- actorFontSize: 14,
3326
- actorFontFamily: "\"Open Sans\", sans-serif",
3327
- actorFontWeight: "normal",
3328
- usecaseFontSize: 12,
3329
- usecaseFontFamily: "\"Open Sans\", sans-serif",
3330
- usecaseFontWeight: "normal",
3331
- nodeSpacing: 50,
3332
- rankSpacing: 50,
3333
- diagramPadding: 20,
3334
- colorScheme: "role"
3335
- },
3336
- venn: {
3337
- useMaxWidth: !0,
3338
- theme: "redux-color",
3339
- look: "neo",
3340
- width: 800,
3341
- height: 450,
3342
- padding: 8,
3343
- useDebugLayout: !1
3344
- },
3345
- cynefin: {
3346
- useMaxWidth: !0,
3347
- width: 800,
3348
- height: 600,
3349
- padding: 40,
3350
- showDomainDescriptions: !0,
3351
- boundaryAmplitude: 8,
3352
- seed: 0
3353
- },
3354
- theme: "default",
3355
- look: "classic",
3356
- handDrawnSeed: 0,
3357
- layout: "elk",
3358
- maxTextSize: 5e4,
3359
- maxEdges: 500,
3360
- darkMode: !1,
3361
- fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3362
- logLevel: 5,
3363
- securityLevel: "strict",
3364
- startOnLoad: !0,
3365
- arrowMarkerAbsolute: !1,
3366
- secure: [
3367
- "secure",
3368
- "securityLevel",
3369
- "startOnLoad",
3370
- "maxTextSize",
3371
- "suppressErrorRendering",
3372
- "maxEdges"
3373
- ],
3374
- legacyMathML: !1,
3375
- forceLegacyMathML: !1,
3376
- deterministicIds: !1,
3377
- fontSize: 16,
3378
- markdownAutoWrap: !0,
3379
- suppressErrorRendering: !1
3380
- }, $t = {
3381
- ...K,
3382
- deterministicIDSeed: void 0,
3383
- elk: {
3384
- mergeEdges: !1,
3385
- straightenEdges: !0,
3386
- lineHops: !0,
3387
- preset: "default",
3388
- nodePlacementStrategy: void 0,
3389
- layeringStrategy: void 0,
3390
- cycleBreakingStrategy: void 0,
3391
- layeringLayerBound: 4,
3392
- nodePlacementAlignment: void 0,
3393
- forceNodeModelOrder: !1,
3394
- considerModelOrder: "NODES_AND_EDGES",
3395
- keepEntryNodeOnTop: !1,
3396
- orientFeedbackEdges: !0
3397
- },
3398
- themeCSS: void 0,
3399
- themeVariables: G.default.getThemeVariables(),
3400
- sequence: {
3401
- ...K.sequence,
3402
- messageFont: /* @__PURE__ */ n(function() {
3403
- return {
3404
- fontFamily: this.messageFontFamily,
3405
- fontSize: this.messageFontSize,
3406
- fontWeight: this.messageFontWeight
3407
- };
3408
- }, "messageFont"),
3409
- noteFont: /* @__PURE__ */ n(function() {
3410
- return {
3411
- fontFamily: this.noteFontFamily,
3412
- fontSize: this.noteFontSize,
3413
- fontWeight: this.noteFontWeight
3414
- };
3415
- }, "noteFont"),
3416
- actorFont: /* @__PURE__ */ n(function() {
3417
- return {
3418
- fontFamily: this.actorFontFamily,
3419
- fontSize: this.actorFontSize,
3420
- fontWeight: this.actorFontWeight
3421
- };
3422
- }, "actorFont")
3423
- },
3424
- class: {
3425
- theme: K.class?.theme,
3426
- look: K.class?.look,
3427
- layout: K.class?.layout,
3428
- hideEmptyMembersBox: !1,
3429
- hierarchicalNamespaces: !0
3430
- },
3431
- gantt: {
3432
- ...K.gantt,
3433
- tickInterval: void 0,
3434
- useWidth: void 0
3435
- },
3436
- c4: {
3437
- ...K.c4,
3438
- useWidth: void 0,
3439
- personFont: /* @__PURE__ */ n(function() {
3440
- return {
3441
- fontFamily: this.personFontFamily,
3442
- fontSize: this.personFontSize,
3443
- fontWeight: this.personFontWeight
3444
- };
3445
- }, "personFont"),
3446
- flowchart: {
3447
- ...K.flowchart,
3448
- inheritDir: !1
3449
- },
3450
- external_personFont: /* @__PURE__ */ n(function() {
3451
- return {
3452
- fontFamily: this.external_personFontFamily,
3453
- fontSize: this.external_personFontSize,
3454
- fontWeight: this.external_personFontWeight
3455
- };
3456
- }, "external_personFont"),
3457
- systemFont: /* @__PURE__ */ n(function() {
3458
- return {
3459
- fontFamily: this.systemFontFamily,
3460
- fontSize: this.systemFontSize,
3461
- fontWeight: this.systemFontWeight
3462
- };
3463
- }, "systemFont"),
3464
- external_systemFont: /* @__PURE__ */ n(function() {
3465
- return {
3466
- fontFamily: this.external_systemFontFamily,
3467
- fontSize: this.external_systemFontSize,
3468
- fontWeight: this.external_systemFontWeight
3469
- };
3470
- }, "external_systemFont"),
3471
- system_dbFont: /* @__PURE__ */ n(function() {
3472
- return {
3473
- fontFamily: this.system_dbFontFamily,
3474
- fontSize: this.system_dbFontSize,
3475
- fontWeight: this.system_dbFontWeight
3476
- };
3477
- }, "system_dbFont"),
3478
- external_system_dbFont: /* @__PURE__ */ n(function() {
3479
- return {
3480
- fontFamily: this.external_system_dbFontFamily,
3481
- fontSize: this.external_system_dbFontSize,
3482
- fontWeight: this.external_system_dbFontWeight
3483
- };
3484
- }, "external_system_dbFont"),
3485
- system_queueFont: /* @__PURE__ */ n(function() {
3486
- return {
3487
- fontFamily: this.system_queueFontFamily,
3488
- fontSize: this.system_queueFontSize,
3489
- fontWeight: this.system_queueFontWeight
3490
- };
3491
- }, "system_queueFont"),
3492
- external_system_queueFont: /* @__PURE__ */ n(function() {
3493
- return {
3494
- fontFamily: this.external_system_queueFontFamily,
3495
- fontSize: this.external_system_queueFontSize,
3496
- fontWeight: this.external_system_queueFontWeight
3497
- };
3498
- }, "external_system_queueFont"),
3499
- containerFont: /* @__PURE__ */ n(function() {
3500
- return {
3501
- fontFamily: this.containerFontFamily,
3502
- fontSize: this.containerFontSize,
3503
- fontWeight: this.containerFontWeight
3504
- };
3505
- }, "containerFont"),
3506
- external_containerFont: /* @__PURE__ */ n(function() {
3507
- return {
3508
- fontFamily: this.external_containerFontFamily,
3509
- fontSize: this.external_containerFontSize,
3510
- fontWeight: this.external_containerFontWeight
3511
- };
3512
- }, "external_containerFont"),
3513
- container_dbFont: /* @__PURE__ */ n(function() {
3514
- return {
3515
- fontFamily: this.container_dbFontFamily,
3516
- fontSize: this.container_dbFontSize,
3517
- fontWeight: this.container_dbFontWeight
3518
- };
3519
- }, "container_dbFont"),
3520
- external_container_dbFont: /* @__PURE__ */ n(function() {
3521
- return {
3522
- fontFamily: this.external_container_dbFontFamily,
3523
- fontSize: this.external_container_dbFontSize,
3524
- fontWeight: this.external_container_dbFontWeight
3525
- };
3526
- }, "external_container_dbFont"),
3527
- container_queueFont: /* @__PURE__ */ n(function() {
3528
- return {
3529
- fontFamily: this.container_queueFontFamily,
3530
- fontSize: this.container_queueFontSize,
3531
- fontWeight: this.container_queueFontWeight
3532
- };
3533
- }, "container_queueFont"),
3534
- external_container_queueFont: /* @__PURE__ */ n(function() {
3535
- return {
3536
- fontFamily: this.external_container_queueFontFamily,
3537
- fontSize: this.external_container_queueFontSize,
3538
- fontWeight: this.external_container_queueFontWeight
3539
- };
3540
- }, "external_container_queueFont"),
3541
- componentFont: /* @__PURE__ */ n(function() {
3542
- return {
3543
- fontFamily: this.componentFontFamily,
3544
- fontSize: this.componentFontSize,
3545
- fontWeight: this.componentFontWeight
3546
- };
3547
- }, "componentFont"),
3548
- external_componentFont: /* @__PURE__ */ n(function() {
3549
- return {
3550
- fontFamily: this.external_componentFontFamily,
3551
- fontSize: this.external_componentFontSize,
3552
- fontWeight: this.external_componentFontWeight
3553
- };
3554
- }, "external_componentFont"),
3555
- component_dbFont: /* @__PURE__ */ n(function() {
3556
- return {
3557
- fontFamily: this.component_dbFontFamily,
3558
- fontSize: this.component_dbFontSize,
3559
- fontWeight: this.component_dbFontWeight
3560
- };
3561
- }, "component_dbFont"),
3562
- external_component_dbFont: /* @__PURE__ */ n(function() {
3563
- return {
3564
- fontFamily: this.external_component_dbFontFamily,
3565
- fontSize: this.external_component_dbFontSize,
3566
- fontWeight: this.external_component_dbFontWeight
3567
- };
3568
- }, "external_component_dbFont"),
3569
- component_queueFont: /* @__PURE__ */ n(function() {
3570
- return {
3571
- fontFamily: this.component_queueFontFamily,
3572
- fontSize: this.component_queueFontSize,
3573
- fontWeight: this.component_queueFontWeight
3574
- };
3575
- }, "component_queueFont"),
3576
- external_component_queueFont: /* @__PURE__ */ n(function() {
3577
- return {
3578
- fontFamily: this.external_component_queueFontFamily,
3579
- fontSize: this.external_component_queueFontSize,
3580
- fontWeight: this.external_component_queueFontWeight
3581
- };
3582
- }, "external_component_queueFont"),
3583
- boundaryFont: /* @__PURE__ */ n(function() {
3584
- return {
3585
- fontFamily: this.boundaryFontFamily,
3586
- fontSize: this.boundaryFontSize,
3587
- fontWeight: this.boundaryFontWeight
3588
- };
3589
- }, "boundaryFont"),
3590
- messageFont: /* @__PURE__ */ n(function() {
3591
- return {
3592
- fontFamily: this.messageFontFamily,
3593
- fontSize: this.messageFontSize,
3594
- fontWeight: this.messageFontWeight
3595
- };
3596
- }, "messageFont")
3597
- },
3598
- pie: {
3599
- ...K.pie,
3600
- useWidth: 984
3601
- },
3602
- xyChart: {
3603
- ...K.xyChart,
3604
- useWidth: void 0
3605
- },
3606
- requirement: {
3607
- ...K.requirement,
3608
- useWidth: void 0
3609
- },
3610
- packet: { ...K.packet },
3611
- eventmodeling: { ...K.eventmodeling },
3612
- treeView: {
3613
- ...K.treeView,
3614
- useWidth: void 0
3615
- },
3616
- radar: { ...K.radar },
3617
- usecase: { ...K.usecase },
3618
- railroad: {
3619
- ...K.railroad,
3620
- fontSize: void 0,
3621
- fontFamily: void 0,
3622
- terminalFill: void 0,
3623
- terminalStroke: void 0,
3624
- terminalTextColor: void 0,
3625
- nonTerminalFill: void 0,
3626
- nonTerminalStroke: void 0,
3627
- nonTerminalTextColor: void 0,
3628
- lineColor: void 0,
3629
- markerFill: void 0,
3630
- commentFill: void 0,
3631
- commentStroke: void 0,
3632
- commentTextColor: void 0,
3633
- specialFill: void 0,
3634
- specialStroke: void 0,
3635
- ruleNameColor: void 0
3636
- },
3637
- ishikawa: { ...K.ishikawa },
3638
- sankey: {
3639
- ...K.sankey,
3640
- nodeColors: void 0
3641
- },
3642
- treemap: {
3643
- useMaxWidth: !0,
3644
- padding: 10,
3645
- diagramPadding: 8,
3646
- showValues: !0,
3647
- nodeWidth: 100,
3648
- nodeHeight: 40,
3649
- borderWidth: 1,
3650
- valueFontSize: 12,
3651
- labelFontSize: 14,
3652
- valueFormat: ","
3653
- },
3654
- venn: { ...K.venn },
3655
- cynefin: { ...K.cynefin }
3656
- }, en = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3657
- ...n,
3658
- t + r,
3659
- ...en(e[r], "")
3660
- ] : [...n, t + r], []), "keyify"), tn = new Set(en($t, "")), nn = $t, rn = {
3661
- "flowchart-v2": "flowchart",
3662
- "flowchart-elk": "flowchart",
3663
- classDiagram: "class",
3664
- stateDiagram: "state",
3665
- xychart: "xyChart",
3666
- railroadAbnf: "railroad",
3667
- railroadEbnf: "railroad",
3668
- railroadPeg: "railroad"
3669
- }, an = /* @__PURE__ */ n((e) => rn[e] ?? e, "getDiagramConfigKey"), on = {
3670
- nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3671
- filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3672
- extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3673
- }, sn = /* @__PURE__ */ n((e, n) => {
3674
- for (let r of Object.keys(e)) {
3675
- let i = e[r];
3676
- (r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (t.debug("sanitize deleting dictionary entry:", r, i), delete e[r]);
3677
- }
3678
- }, "sanitizeDictionaryConfig"), cn = /* @__PURE__ */ n((e) => {
3679
- if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3680
- if (Array.isArray(e)) {
3681
- e.forEach((e) => cn(e));
3682
- return;
3683
- }
3684
- for (let n of Object.keys(e)) {
3685
- if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !tn.has(n) || e[n] == null) {
3686
- t.debug("sanitize deleting key: ", n), delete e[n];
3687
- continue;
3688
- }
3689
- if (typeof e[n] == "object") {
3690
- let r = on[n];
3691
- r ? sn(e[n], r) : (t.debug("sanitizing object", n), cn(e[n]));
3692
- continue;
3693
- }
3694
- for (let r of [
3695
- "themeCSS",
3696
- "fontFamily",
3697
- "altFontFamily"
3698
- ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = q(e[n]));
3699
- }
3700
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3701
- let n = e.themeVariables[t];
3702
- n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3703
- }
3704
- t.debug("After sanitization", e);
3705
- }
3706
- }, "sanitizeDirective"), q = /* @__PURE__ */ n((e) => {
3707
- let t = 0, n = 0;
3708
- for (let r of e) {
3709
- if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3710
- r === "{" ? t++ : r === "}" && n++;
3711
- }
3712
- return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3713
- }, "sanitizeCss"), J = Object.freeze(nn), ln = [
3714
- "theme",
3715
- "look",
3716
- "layout"
3717
- ], un = /* @__PURE__ */ new Set([
3718
- "classic",
3719
- "handDrawn",
3720
- "neo"
3721
- ]), dn = /* @__PURE__ */ n((e, t) => e === "theme" ? t === "null" || Object.hasOwn(G, t) : e !== "look" || un.has(t), "isUsableAppearance"), fn = /* @__PURE__ */ n((e, t, n) => {
3722
- if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && dn(n, e));
3723
- }, "readAppearance"), pn = /* @__PURE__ */ n((e) => !(e === !1 || [
3724
- "false",
3725
- "null",
3726
- "0"
3727
- ].includes(String(e).trim().toLowerCase())), "evaluate"), Y = z({}, J), mn, hn = {}, X = [], Z = z({}, J), gn, _n = /* @__PURE__ */ n((e, t) => {
3728
- if (!gn) return;
3729
- let n = [
3730
- t,
3731
- ...[...X].reverse(),
3732
- hn,
3733
- J
3734
- ], r = e[gn];
3735
- for (let t of ln) for (let i of n) {
3736
- let n = fn(i, gn, t);
3737
- if (n !== void 0) {
3738
- e[t] = n, r?.[t] !== void 0 && (r[t] = n);
3739
- break;
3740
- }
3741
- }
3742
- }, "resolveAppearance"), Q = /* @__PURE__ */ n((e, t) => {
3743
- let n = z({}, e), r = {};
3744
- for (let e of t) Tn(e), r = z(r, e);
3745
- if (n = z(n, r), _n(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(G, n.theme)) {
3746
- let e = z(z({}, mn).themeVariables || {}, r.themeVariables);
3747
- n.themeVariables = G[n.theme].getThemeVariables(e);
3748
- }
3749
- return Z = n, jn(Z), Z;
3750
- }, "updateCurrentConfig"), vn = /* @__PURE__ */ n((e) => {
3751
- gn = e === void 0 ? void 0 : an(e), Q(Y, X);
3752
- }, "setDiagramConfigScope"), yn = /* @__PURE__ */ n((e) => (Y = z({}, J), Y = z(Y, e), hn = z({}, e), e.theme && Object.hasOwn(G, e.theme) && (Y.themeVariables = G[e.theme].getThemeVariables(e.themeVariables)), Q(Y, X), Y), "setSiteConfig"), bn = /* @__PURE__ */ n((e) => {
3753
- mn = z({}, e);
3754
- }, "saveConfigFromInitialize"), xn = /* @__PURE__ */ n((e) => (Y = z(Y, e), hn = z(hn, e), Q(Y, X), Y), "updateSiteConfig"), Sn = /* @__PURE__ */ n(() => z({}, Y), "getSiteConfig"), Cn = /* @__PURE__ */ n((e) => (Q(Z, [e]), wn()), "setConfig"), wn = /* @__PURE__ */ n(() => z({}, Z), "getConfig"), Tn = /* @__PURE__ */ n((e) => {
3755
- e && (["secure", ...Y.secure ?? []].forEach((n) => {
3756
- Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3757
- }), Object.keys(e).forEach((t) => {
3758
- t.startsWith("__") && delete e[t];
3759
- }), Object.keys(e).forEach((t) => {
3760
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Tn(e[t]);
3761
- }));
3762
- }, "sanitize"), En = /* @__PURE__ */ n((e) => {
3763
- cn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3764
- ...e.themeVariables,
3765
- fontFamily: e.fontFamily
3766
- }), X.push(e), Q(Y, X);
3767
- }, "addDirective"), Dn = /* @__PURE__ */ n((e = Y) => {
3768
- X = [], gn = void 0, Q(e, X);
3769
- }, "reset"), On = {
3770
- LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3771
- FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3772
- }, kn = {}, An = /* @__PURE__ */ n((e) => {
3773
- kn[e] || (t.warn(On[e]), kn[e] = !0);
3774
- }, "issueWarning"), jn = /* @__PURE__ */ n((e) => {
3775
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && An("LAZY_LOAD_DEPRECATED");
3776
- }, "checkConfig"), Mn = /* @__PURE__ */ n(() => {
3777
- let e = {};
3778
- mn && (e = z(e, mn));
3779
- for (let t of X) e = z(e, t);
3780
- return e;
3781
- }, "getUserDefinedConfig"), Nn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && An("FLOWCHART_HTML_LABELS_DEPRECATED"), pn(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Pn = /<\/?br\s*\/?>/gi, Fn = new RegExp(Pn.source, "i"), In = /* @__PURE__ */ n((e) => e ? Gn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), $ = /* @__PURE__ */ (() => {
3782
- let e = !1;
3783
- return () => {
3784
- e ||= (Ln(), !0);
3785
- };
3786
- })();
3787
- function Ln() {
3788
- let e = "data-temp-href-target";
3789
- St.addHook("beforeSanitizeAttributes", (t) => {
3790
- t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3791
- }), St.addHook("afterSanitizeAttributes", (t) => {
3792
- t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3793
- });
3794
- }
3795
- n(Ln, "setupDompurifyHooks");
3796
- var Rn = /* @__PURE__ */ n((e) => ($(), St.sanitize(e)), "removeScript"), zn = /* @__PURE__ */ n((e, t) => {
3797
- if (Nn(t)) {
3798
- let n = t.securityLevel;
3799
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = Rn(e) : n !== "loose" && (e = Gn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Wn(e));
3800
- }
3801
- return e;
3802
- }, "sanitizeMore"), Bn = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? St.sanitize(zn(e, t), t.dompurifyConfig).toString() : St.sanitize(zn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Vn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? Bn(e, t) : e.flat().map((e) => Bn(e, t)), "sanitizeTextOrArray"), Hn = /* @__PURE__ */ n((e) => Fn.test(e), "hasBreaks"), Un = /* @__PURE__ */ n((e) => e.split(Pn), "splitBreaks"), Wn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Gn = /* @__PURE__ */ n((e) => e.replace(Pn, "#br#"), "breakToPlaceholder"), Kn = /* @__PURE__ */ n((e) => {
3803
- let t = "";
3804
- return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3805
- }, "getUrl"), qn = /* @__PURE__ */ n(function(...e) {
3806
- let t = e.filter((e) => !isNaN(e));
3807
- return Math.max(...t);
3808
- }, "getMax"), Jn = /* @__PURE__ */ n(function(...e) {
3809
- let t = e.filter((e) => !isNaN(e));
3810
- return Math.min(...t);
3811
- }, "getMin"), Yn = /* @__PURE__ */ n(function(e) {
3812
- let t = e.split(/(,)/), n = [];
3813
- for (let e = 0; e < t.length; e++) {
3814
- let r = t[e];
3815
- if (r === "," && e > 0 && e + 1 < t.length) {
3816
- let i = t[e - 1], a = t[e + 1];
3817
- Zn(i, a) && (r = i + "," + a, e++, n.pop());
3818
- }
3819
- n.push(Qn(r));
3820
- }
3821
- return n.join("");
3822
- }, "parseGenericTypes"), Xn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Zn = /* @__PURE__ */ n((e, t) => {
3823
- let n = Xn(e, "~"), r = Xn(t, "~");
3824
- return n === 1 && r === 1;
3825
- }, "shouldCombineSets"), Qn = /* @__PURE__ */ n((e) => {
3826
- let t = Xn(e, "~"), n = !1;
3827
- if (t <= 1) return e;
3828
- t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3829
- let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3830
- for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3831
- return n && r.unshift("~"), r.join("");
3832
- }, "processSet"), $n = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), er = /\$\$(.*?)\$\$/g, tr = /* @__PURE__ */ n((e) => (e.match(er)?.length ?? 0) > 0, "hasKatex"), nr = /* @__PURE__ */ n(async (e, t) => {
3833
- let n = document.createElement("div");
3834
- n.innerHTML = await ir(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3835
- let r = {
3836
- width: n.clientWidth,
3837
- height: n.clientHeight
3838
- };
3839
- return n.remove(), r;
3840
- }, "calculateMathMLDimensions"), rr = /* @__PURE__ */ n(async (e, t) => {
3841
- if (!tr(e)) return e;
3842
- if (!($n() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(er, "MathML is unsupported in this environment.");
3843
- {
3844
- let { default: n } = await import("./katex-Dw0PnoPU.js"), r = t.forceLegacyMathML || !$n() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3845
- return e.split(Pn).map((e) => tr(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(er, (e, t) => n.renderToString(t, {
3846
- throwOnError: !0,
3847
- displayMode: !0,
3848
- output: r
3849
- }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3850
- }
3851
- return e.replace(er, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3852
- }, "renderKatexUnsanitized"), ir = /* @__PURE__ */ n(async (e, t) => Bn(await rr(e, t), t), "renderKatexSanitized"), ar = {
3853
- getRows: In,
3854
- sanitizeText: Bn,
3855
- sanitizeTextOrArray: Vn,
3856
- hasBreaks: Hn,
3857
- splitBreaks: Un,
3858
- lineBreakRegex: Pn,
3859
- removeScript: Rn,
3860
- getUrl: Kn,
3861
- evaluate: pn,
3862
- getMax: qn,
3863
- getMin: Jn
3864
- }, or = /* @__PURE__ */ n(function(e, t) {
3865
- for (let n of t) e.attr(n[0], n[1]);
3866
- }, "d3Attrs"), sr = /* @__PURE__ */ n(function(e, t, n) {
3867
- let r = /* @__PURE__ */ new Map();
3868
- return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3869
- }, "calculateSvgSizeAttrs"), cr = /* @__PURE__ */ n(function(e, t, n, r) {
3870
- or(e, sr(t, n, r));
3871
- }, "configureSvgSize"), lr = /* @__PURE__ */ n(function(e, n, r, i) {
3872
- let a = n.node().getBBox(), o = a.width, s = a.height;
3873
- t.info(`SVG bounds: ${o}x${s}`, a);
3874
- let c = 0, l = 0;
3875
- t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), cr(n, l, c, i);
3876
- let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3877
- n.attr("viewBox", u);
3878
- }, "setupGraphViewbox"), ur = {};
3879
- function dr(e) {
3880
- return [...e.cssRules].map((e) => e.cssText).join("\n");
3881
- }
3882
- n(dr, "cssStyleSheetToString");
3883
- var fr = /* @__PURE__ */ n((e, n, r, i) => {
3884
- let a = "";
3885
- return e in ur && ur[e] ? a = ur[e]({
3886
- ...r,
3887
- svgId: i
3888
- }) : t.warn(`No theme found for ${e}`), `& {
3889
- font-family: ${r.fontFamily};
3890
- font-size: ${r.fontSize};
3891
- fill: ${r.textColor}
3892
- }
3893
- @keyframes edge-animation-frame {
3894
- from {
3895
- stroke-dashoffset: 0;
3896
- }
3897
- }
3898
- @keyframes dash {
3899
- to {
3900
- stroke-dashoffset: 0;
3901
- }
3902
- }
3903
- & .edge-animation-slow {
3904
- stroke-dasharray: 9,5 !important;
3905
- stroke-dashoffset: 900;
3906
- animation: dash 50s linear infinite;
3907
- stroke-linecap: round;
3908
- }
3909
- & .edge-animation-fast {
3910
- stroke-dasharray: 9,5 !important;
3911
- stroke-dashoffset: 900;
3912
- animation: dash 20s linear infinite;
3913
- stroke-linecap: round;
3914
- }
3915
- /* Classes common for multiple diagrams */
3916
-
3917
- & .error-icon {
3918
- fill: ${r.errorBkgColor};
3919
- }
3920
- & .error-text {
3921
- fill: ${r.errorTextColor};
3922
- stroke: ${r.errorTextColor};
3923
- }
3924
-
3925
- & .edge-thickness-normal {
3926
- stroke-width: ${r.strokeWidth ?? 1}px;
3927
- }
3928
- & .edge-thickness-thick {
3929
- stroke-width: 3.5px
3930
- }
3931
- & .edge-pattern-solid {
3932
- stroke-dasharray: 0;
3933
- }
3934
- & .edge-thickness-invisible {
3935
- stroke-width: 0;
3936
- fill: none;
3937
- }
3938
- & .edge-pattern-dashed{
3939
- stroke-dasharray: 3;
3940
- }
3941
- .edge-pattern-dotted {
3942
- stroke-dasharray: 2;
3943
- }
3944
-
3945
- & .marker {
3946
- fill: ${r.lineColor};
3947
- stroke: ${r.lineColor};
3948
- }
3949
- & .marker.cross {
3950
- stroke: ${r.lineColor};
3951
- }
3952
-
3953
- & svg {
3954
- font-family: ${r.fontFamily};
3955
- font-size: ${r.fontSize};
3956
- }
3957
- & p {
3958
- margin: 0
3959
- }
3960
-
3961
- ${a}
3962
- .node .neo-node {
3963
- stroke: ${r.nodeBorder};
3964
- }
3965
-
3966
- [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3967
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3968
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3969
- }
3970
- [data-look="neo"].swimlane.cluster rect {
3971
- filter: none;
3972
- }
3973
-
3974
-
3975
- [data-look="neo"].node path {
3976
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3977
- stroke-width: ${r.strokeWidth ?? 1}px;
3978
- }
3979
-
3980
- [data-look="neo"].node .outer-path {
3981
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3982
- }
3983
-
3984
- [data-look="neo"].node .neo-line path {
3985
- stroke: ${r.nodeBorder};
3986
- filter: none;
3987
- }
3988
-
3989
- [data-look="neo"].node circle{
3990
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3991
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3992
- }
3993
-
3994
- [data-look="neo"].node circle .state-start{
3995
- fill: #000000;
3996
- }
3997
-
3998
- [data-look="neo"].icon-shape .icon {
3999
- fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
4000
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
4001
- }
4002
-
4003
- [data-look="neo"].icon-shape .icon-neo path {
4004
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
4005
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
4006
- }
4007
-
4008
- ${n}
4009
- `;
4010
- }, "getStyles"), pr = /* @__PURE__ */ n((e, t) => {
4011
- t !== void 0 && (ur[e] = t);
4012
- }, "addStylesForDiagram"), mr = fr, hr = {};
4013
- r(hr, {
4014
- clear: () => br,
4015
- getAccDescription: () => wr,
4016
- getAccTitle: () => Sr,
4017
- getDiagramTitle: () => Er,
4018
- setAccDescription: () => Cr,
4019
- setAccTitle: () => xr,
4020
- setDiagramTitle: () => Tr
4021
- });
4022
- var gr = "", _r = "", vr = "", yr = /* @__PURE__ */ n((e) => Bn(e, wn()), "sanitizeText"), br = /* @__PURE__ */ n(() => {
4023
- gr = "", vr = "", _r = "";
4024
- }, "clear"), xr = /* @__PURE__ */ n((e) => {
4025
- gr = yr(e).replace(/^\s+/g, "");
4026
- }, "setAccTitle"), Sr = /* @__PURE__ */ n(() => gr, "getAccTitle"), Cr = /* @__PURE__ */ n((e) => {
4027
- vr = yr(e).replace(/\n\s+/g, "\n");
4028
- }, "setAccDescription"), wr = /* @__PURE__ */ n(() => vr, "getAccDescription"), Tr = /* @__PURE__ */ n((e) => {
4029
- _r = yr(e);
4030
- }, "setDiagramTitle"), Er = /* @__PURE__ */ n(() => _r, "getDiagramTitle"), Dr = t, Or = e, kr = wn, Ar = Cn, jr = J, Mr = /* @__PURE__ */ n((e) => Bn(e, kr()), "sanitizeText"), Nr = lr, Pr = /* @__PURE__ */ n(() => hr, "getCommonDb"), Fr = {}, Ir = /* @__PURE__ */ n((e, t, n) => {
4031
- Fr[e] && Dr.warn(`Diagram with id ${e} already registered. Overwriting.`), Fr[e] = t, n && kt(e, n), pr(e, t.styles), t.injectUtils?.(Dr, Or, kr, Mr, Nr, Pr(), () => {});
4032
- }, "registerDiagram"), Lr = /* @__PURE__ */ n((e) => {
4033
- if (e in Fr) return Fr[e];
4034
- throw new Rr(e);
4035
- }, "getDiagram"), Rr = class extends Error {
4036
- static {
4037
- n(this, "DiagramNotFoundError");
4038
- }
4039
- constructor(e) {
4040
- super(`Diagram ${e} not found.`);
4041
- }
4042
- };
4043
- //#endregion
4044
- export { xn as $, Pn as A, Mr as B, Er as C, Kn as D, Rt as E, ir as F, Ar as G, Cr as H, Dn as I, yn as J, vn as K, q as L, Yn as M, Ir as N, Mn as O, Ot as P, G as Q, cn as R, At as S, Sn as T, xr as U, bn as V, Cn as W, Nr as X, lr as Y, mr as Z, wr as _, br as a, h as at, kr as b, cr as c, jr as d, St as et, nn as f, pn as g, Ct as h, nr as i, _ as it, Et as j, tr as k, dr as l, R as m, En as n, y as nt, hr as o, m as ot, Dt as p, Tr as q, z as r, v as rt, ar as s, a as st, L as t, b as tt, J as u, Sr as v, Nn as w, Lr as x, wn as y, Bn as z };