@smarter.sh/ui-chat 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +328 -107
  2. package/dist/embed/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  3. package/dist/embed/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  4. package/dist/embed/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  5. package/dist/embed/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  6. package/dist/embed/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  7. package/dist/embed/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  8. package/dist/embed/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  9. package/dist/embed/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  10. package/dist/embed/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  11. package/dist/embed/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  12. package/dist/embed/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  13. package/dist/embed/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  14. package/dist/embed/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  15. package/dist/embed/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  16. package/dist/embed/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  17. package/dist/embed/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  18. package/dist/embed/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  19. package/dist/embed/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  20. package/dist/embed/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  21. package/dist/embed/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  22. package/dist/embed/mermaid/abnfDiagram-VCTEODGH-1SbERmPs.js +89 -0
  23. package/dist/embed/mermaid/arc-VicTtbbz.js +82 -0
  24. package/dist/embed/mermaid/architecture-7GRP2DOG-D0nnNZ3B.js +2 -0
  25. package/dist/embed/mermaid/architectureDiagram-5GKGNRK7-CQABdiy9.js +4138 -0
  26. package/dist/embed/mermaid/array-CApNbSU9.js +6 -0
  27. package/dist/embed/mermaid/blockDiagram-I7D4REHJ-CtjOz0Jt.js +1911 -0
  28. package/dist/embed/mermaid/c4Diagram-7LVT6UL2-_qBudB6C.js +3010 -0
  29. package/dist/embed/mermaid/channel-BXMcYHk2.js +5 -0
  30. package/dist/embed/mermaid/chunk-2E4U76K2-CBll2dEU.js +346 -0
  31. package/dist/embed/mermaid/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  32. package/dist/embed/mermaid/chunk-4HAMMTFA-Dhz0SVnN.js +4188 -0
  33. package/dist/embed/mermaid/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  34. package/dist/embed/mermaid/chunk-75Z2AOVW-BsWtLgfj.js +1330 -0
  35. package/dist/embed/mermaid/chunk-CLGD4ZFX-Bkjwlxy9.js +14 -0
  36. package/dist/embed/mermaid/chunk-DU6HZSFF-1zIarP1Q.js +3900 -0
  37. package/dist/embed/mermaid/chunk-F27PBJKO-CiOL12VY.js +61 -0
  38. package/dist/embed/mermaid/chunk-FOHPRMQF-DS9zEyR5.js +21447 -0
  39. package/dist/embed/mermaid/chunk-GMAD6QVW-Dc0gE_3Q.js +1804 -0
  40. package/dist/embed/mermaid/chunk-GVQU2GXP-CWFtOgtb.js +37 -0
  41. package/dist/embed/mermaid/chunk-IMKFNOWR-CLyTlLwx.js +2042 -0
  42. package/dist/embed/mermaid/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  43. package/dist/embed/mermaid/chunk-L3NEJ4N5-DnkSrVO8.js +245 -0
  44. package/dist/embed/mermaid/chunk-LNGE3PJU-ByFTjlja.js +1517 -0
  45. package/dist/embed/mermaid/chunk-OSK3NFVY-B57tZZIG.js +672 -0
  46. package/dist/embed/mermaid/chunk-P2QGCYS3-BUVAOFF-.js +67 -0
  47. package/dist/embed/mermaid/chunk-POPQ4Y6H-BsUdeJ_J.js +26 -0
  48. package/dist/embed/mermaid/chunk-PWAF6VOD-Cb-w19aO.js +275 -0
  49. package/dist/embed/mermaid/chunk-SHT3W25Y-znBBpcIu.js +4183 -0
  50. package/dist/embed/mermaid/chunk-SVP7TREG-DrHUM-6R.js +490 -0
  51. package/dist/embed/mermaid/chunk-TICWLB2K-xlGqZZYJ.js +3357 -0
  52. package/dist/embed/mermaid/chunk-TLUHSLCS-COwDpXBa.js +59 -0
  53. package/dist/embed/mermaid/chunk-XXDRQBXY-pOp8MAr9.js +9 -0
  54. package/dist/embed/mermaid/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  55. package/dist/embed/mermaid/classDiagram-ZZMXUADV-C8BeuQnA.js +30 -0
  56. package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-B3jylZLr.js +30 -0
  57. package/dist/embed/mermaid/cose-bilkent-JH36ORCC-DFvJxZ7v.js +2240 -0
  58. package/dist/embed/mermaid/cynefin-OW5HDTMX-B6YJOAMM.js +2 -0
  59. package/dist/embed/mermaid/cynefinDiagram-5FMLGOSQ-CCm5IQBE.js +355 -0
  60. package/dist/embed/mermaid/cytoscape.esm-BstmGtAB.js +18047 -0
  61. package/dist/embed/mermaid/dagre-BwzzJJA_.js +1932 -0
  62. package/dist/embed/mermaid/dagre-GXQ25YYZ-B3d3iNF-.js +423 -0
  63. package/dist/embed/mermaid/defaultLocale-N-0uLSyg.js +198 -0
  64. package/dist/embed/mermaid/diagram-S7CK7UJ4-BeA5UJrt.js +293 -0
  65. package/dist/embed/mermaid/diagram-UQ7AKVKN-DK0uHb-2.js +214 -0
  66. package/dist/embed/mermaid/diagram-VSXAHHWV-D5JXip1B.js +432 -0
  67. package/dist/embed/mermaid/diagram-VX7I27RA-B1VysvG9.js +527 -0
  68. package/dist/embed/mermaid/diagram-Z3DM3KII-ZGUJaFq-.js +134 -0
  69. package/dist/embed/mermaid/dist-DRRwZ4Yi.js +59 -0
  70. package/dist/embed/mermaid/ebnfDiagram-PWID7BFC-BOahZhWx.js +100 -0
  71. package/dist/embed/mermaid/erDiagram-RLTQ6QDP-7cGpGRQo.js +1966 -0
  72. package/dist/embed/mermaid/eventmodeling-NTZA5JFV-C3kU50Cz.js +2 -0
  73. package/dist/embed/mermaid/flowDiagram-HODETNUW-D-eJN2AO.js +16 -0
  74. package/dist/embed/mermaid/ganttDiagram-EL5Y4UJY-s6Kx4KlU.js +3072 -0
  75. package/dist/embed/mermaid/gitGraph-4MIJSDKK-CqdlGRFk.js +2 -0
  76. package/dist/embed/mermaid/gitGraphDiagram-WWUBYQGX-Blwdy0b7.js +733 -0
  77. package/dist/embed/mermaid/graphlib-XW-Jr8pF.js +1267 -0
  78. package/dist/embed/mermaid/info-A6RAGUB7-2pwra5F3.js +2 -0
  79. package/dist/embed/mermaid/infoDiagram-27XIBGKW-CstzbQPb.js +20 -0
  80. package/dist/embed/mermaid/init-CsQUQz36.js +13 -0
  81. package/dist/embed/mermaid/ishikawaDiagram-5VMMS53U-C6y_w0kd.js +717 -0
  82. package/dist/embed/mermaid/journeyDiagram-3NMN7TZE-BHVux_z1.js +884 -0
  83. package/dist/embed/mermaid/kanban-definition-UXKFOSKX-Cgj-7IHi.js +976 -0
  84. package/dist/embed/mermaid/katex-DmPOayaq.js +21968 -0
  85. package/dist/embed/mermaid/line-brkWVSn0.js +34 -0
  86. package/dist/embed/mermaid/linear-CiZWLcTr.js +287 -0
  87. package/dist/embed/mermaid/mermaid-parser.core-BjLg_By9.js +632 -0
  88. package/dist/embed/mermaid/mermaid.js +1092 -0
  89. package/dist/embed/mermaid/mindmap-definition-YA3MSWOX-DRc-FzI_.js +1006 -0
  90. package/dist/embed/mermaid/ordinal-BubEveRk.js +65 -0
  91. package/dist/embed/mermaid/packet-AYTQ26CC-C3h9OoFk.js +2 -0
  92. package/dist/embed/mermaid/path-CnWkkRiY.js +84 -0
  93. package/dist/embed/mermaid/pegDiagram-XKGWAZYB-Cw-aYwaF.js +94 -0
  94. package/dist/embed/mermaid/pie-WAS4IAKB-CaECYpHT.js +2 -0
  95. package/dist/embed/mermaid/pieDiagram-E7YTZNPT-DoguGyzq.js +203 -0
  96. package/dist/embed/mermaid/quadrantDiagram-AXDQQJYC-Cu4dMFZL.js +2001 -0
  97. package/dist/embed/mermaid/radar-RG4KPBEZ-CoS7pnd_.js +2 -0
  98. package/dist/embed/mermaid/railroad-74A4TZTK-BjHa6MAk.js +2 -0
  99. package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-Bm2YWqjG.js +2 -0
  100. package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-C7mPpgM3.js +2 -0
  101. package/dist/embed/mermaid/railroad-peg-WCYAUIDC-Cyp07M5x.js +2 -0
  102. package/dist/embed/mermaid/railroadDiagram-O6MQD6OU-DDX-9GRQ.js +76 -0
  103. package/dist/embed/mermaid/requirementDiagram-BXWQKSXE-z8PPo06M.js +2224 -0
  104. package/dist/embed/mermaid/rough.esm-DXYGHN3m.js +1361 -0
  105. package/dist/embed/mermaid/sankeyDiagram-P5KCCOFB-CeD0II3M.js +972 -0
  106. package/dist/embed/mermaid/sequenceDiagram-WJ2MYXX4-Cs-Wxyvw.js +4156 -0
  107. package/dist/embed/mermaid/sizeCapture-INFHLROL-DujrpAYz.js +46 -0
  108. package/dist/embed/mermaid/src-DbyMbLVK.js +2141 -0
  109. package/dist/embed/mermaid/stateDiagram-D77RDMKH-CqWtgHSc.js +220 -0
  110. package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-CPideWIU.js +30 -0
  111. package/dist/embed/mermaid/swimlanes-42K2YHIH-MutR4uV4.js +4957 -0
  112. package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BC_o7pti.js +31 -0
  113. package/dist/embed/mermaid/timeline-definition-24CTP7MA-rZfNRFiT.js +1069 -0
  114. package/dist/embed/mermaid/treeView-Q6P3EWNA-C94eS7gV.js +2 -0
  115. package/dist/embed/mermaid/treemap-WGGIJYW6-DnrVJ1h3.js +2 -0
  116. package/dist/embed/mermaid/vennDiagram-4TSXK5OY-KwMHebDQ.js +1880 -0
  117. package/dist/embed/mermaid/wardley-WFR3VGLG-DRDACyIN.js +2 -0
  118. package/dist/embed/mermaid/wardleyDiagram-VM6X3IG4-C-Fm7GGB.js +645 -0
  119. package/dist/embed/mermaid/xychartDiagram-S5SC5T6Z-DZX43ay9.js +2210 -0
  120. package/dist/embed.js +903 -0
  121. package/dist/embed.js.map +1 -0
  122. package/dist/smarter-chat-library.es.js +2722 -2805
  123. package/dist/smarter-chat-library.es.js.map +1 -1
  124. package/dist/smarter-chat-library.umd.js +56 -56
  125. package/dist/smarter-chat-library.umd.js.map +1 -1
  126. package/dist/types/src/components/SmarterChat/Component.d.ts +1 -1
  127. package/dist/types/src/embed/EmbedApp.d.ts +10 -0
  128. package/dist/types/src/embed/assets.d.ts +7 -0
  129. package/dist/types/src/embed/autoMount.d.ts +18 -0
  130. package/dist/types/src/embed/css.d.ts +15 -0
  131. package/dist/types/src/embed/element.d.ts +19 -0
  132. package/dist/types/src/embed/index.d.ts +17 -0
  133. package/dist/types/src/embed/mermaid.d.ts +2 -0
  134. package/dist/types/src/embed/mermaidImport.d.ts +1 -0
  135. package/dist/types/src/embed/options.d.ts +69 -0
  136. package/dist/types/src/lib/cookie.d.ts +4 -3
  137. package/dist/types/src/lib/mermaidImport.d.ts +8 -0
  138. package/dist/types/src/types.d.ts +7 -0
  139. package/package.json +10 -4
@@ -0,0 +1,3900 @@
1
+ import { h as e, m as t } from "./src-DbyMbLVK.js";
2
+ import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ //#region 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/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 D = j(Array.prototype.forEach);
541
+ Array.prototype.indexOf;
542
+ var ve = j(Array.prototype.lastIndexOf), ye = j(Array.prototype.pop), be = j(Array.prototype.push), xe = j(Array.prototype.slice), Se = j(Array.prototype.splice), Ce = Array.isArray, we = Re(Set), Te = j(Set.prototype.add), Ee = j(Set.prototype.has), De = j(String.prototype.toLowerCase), Oe = j(String.prototype.toString), ke = j(String.prototype.match), Ae = j(String.prototype.replace), je = j(String.prototype.indexOf), Me = j(String.prototype.trim), Ne = j(Number.prototype.toString), O = j(Boolean.prototype.toString), Pe = typeof BigInt > "u" ? null : j(BigInt.prototype.toString), Fe = typeof Symbol > "u" ? null : j(Symbol.prototype.toString), k = j(Object.prototype.hasOwnProperty), Ie = j(Object.prototype.toString), A = j(RegExp.prototype.test), Le = Re(TypeError);
543
+ function j(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 Re(e) {
551
+ return function() {
552
+ return _e(e, [...arguments]);
553
+ };
554
+ }
555
+ function M(e, t) {
556
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : De;
557
+ if (ue && ue(e, null), !Ce(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 ze(e) {
570
+ for (let t = 0; t < e.length; t++) k(e, t) || (e[t] = null);
571
+ return e;
572
+ }
573
+ function N(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
+ k(e, i) && (t[i] = Ce(a) ? ze(a) : a && typeof a == "object" && a.constructor === Object ? N(a) : a);
579
+ }
580
+ return t;
581
+ }
582
+ function Be(e) {
583
+ switch (typeof e) {
584
+ case "string": return e;
585
+ case "number": return Ne(e);
586
+ case "boolean": return O(e);
587
+ case "bigint": return Pe ? Pe(e) : "0";
588
+ case "symbol": return Fe ? Fe(e) : "Symbol()";
589
+ case "undefined": return Ie(e);
590
+ case "function":
591
+ case "object": {
592
+ if (e === null) return Ie(e);
593
+ let t = e, n = P(t, "toString");
594
+ if (typeof n == "function") {
595
+ let e = n(t);
596
+ return typeof e == "string" ? e : Ie(e);
597
+ }
598
+ return Ie(e);
599
+ }
600
+ default: return Ie(e);
601
+ }
602
+ }
603
+ function P(e, t) {
604
+ for (; e !== null;) {
605
+ let n = pe(e, t);
606
+ if (n) {
607
+ if (n.get) return j(n.get);
608
+ if (typeof n.value == "function") return j(n.value);
609
+ }
610
+ e = fe(e);
611
+ }
612
+ function n() {
613
+ return null;
614
+ }
615
+ return n;
616
+ }
617
+ function Ve(e, t) {
618
+ for (; e !== null;) {
619
+ let n = pe(e, t);
620
+ if (n) return n.get ? j(n.get) : null;
621
+ e = fe(e);
622
+ }
623
+ return null;
624
+ }
625
+ function He(e) {
626
+ try {
627
+ return A(e, ""), !0;
628
+ } catch {
629
+ return !1;
630
+ }
631
+ }
632
+ var Ue = 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(".")), We = 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(".")), Ge = 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
+ ]), Ke = 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
+ ]), qe = 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(".")), Je = 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
+ ]), Ye = T(["#text"]), Xe = 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(".")), Ze = 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(".")), Qe = 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(".")), $e = T([
698
+ "xlink:href",
699
+ "xml:id",
700
+ "xlink:title",
701
+ "xml:space",
702
+ "xmlns:xlink"
703
+ ]), et = E(/{{[\w\W]*|^[\w\W]*}}/g), tt = E(/<%[\w\W]*|^[\w\W]*%>/g), nt = E(/\${[\w\W]*/g), rt = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), it = E(/^aria-[\-\w]+$/), at = E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ot = E(/^(?:\w+script|data):/i), st = E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ct = E(/^html$/i), lt = E(/^[a-z][.\w]*(-[.\w]+)+$/i), ut = E(/<[/\w!]/g), dt = E(/<[/\w]/g), ft = E(/<\/no(script|embed|frames)/i), pt = E(/\/>/i), F = {
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
+ }, mt = T(M({}, [
717
+ "style",
718
+ "script",
719
+ "xmp",
720
+ "iframe",
721
+ "noembed",
722
+ "noframes",
723
+ "plaintext",
724
+ "noscript"
725
+ ])), ht = function() {
726
+ return typeof window > "u" ? null : window;
727
+ }, gt = 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
+ }, _t = function() {
745
+ return {
746
+ afterSanitizeAttributes: [],
747
+ afterSanitizeElements: [],
748
+ afterSanitizeShadowDOM: [],
749
+ beforeSanitizeAttributes: [],
750
+ beforeSanitizeElements: [],
751
+ beforeSanitizeShadowDOM: [],
752
+ uponSanitizeAttribute: [],
753
+ uponSanitizeElement: [],
754
+ uponSanitizeShadowNode: []
755
+ };
756
+ }, vt = function(e, t, n, r) {
757
+ return k(e, t) && Ce(e[t]) ? M(r.base ? N(r.base) : {}, e[t], r.transform) : n;
758
+ }, yt = function(e, t, n) {
759
+ let r = k(e, t) ? e[t] : void 0;
760
+ return r && typeof r == "object" ? N(r) : n();
761
+ };
762
+ function bt() {
763
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ht(), t = (e) => bt(e);
764
+ if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== F.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 = P(d, "cloneNode"), p = P(d, "remove"), m = P(d, "removeAttributeNode"), ee = P(d, "nextSibling"), h = P(d, "childNodes"), g = P(d, "parentNode"), te = P(d, "shadowRoot"), _ = P(d, "attributes"), v = o && o.prototype ? P(o.prototype, "nodeType") : null, y = o && o.prototype ? P(o.prototype, "nodeName") : null, b = o && o.prototype ? P(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 = Ve(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 Le("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 = gt(u, i), !0), ae;
798
+ }, fe = n, pe = fe.implementation, he = fe.createNodeIterator, ge = fe.createDocumentFragment, _e = fe.getElementsByTagName, Ne = r.importNode, O = _t();
799
+ t.isSupported = typeof le == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
800
+ let Pe = et, Fe = tt, Ie = nt, j = rt, Re = it, ze = ot, xt = st, St = lt, I = at, L = null, R = M({}, [
801
+ ...Ue,
802
+ ...We,
803
+ ...Ge,
804
+ ...qe,
805
+ ...Ye
806
+ ]), z = null, Ct = M({}, [
807
+ ...Xe,
808
+ ...Ze,
809
+ ...Qe,
810
+ ...$e
811
+ ]), B = 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
+ })), wt = null, Tt = null, V = 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
+ })), Et = !0, Dt = !0, Ot = !1, kt = !0, H = !1, At = !0, jt = !1, Mt = !1, Nt = null, Pt = null, Ft = !1, It = !1, Lt = !1, Rt = !1, zt = !0, Bt = !1, U = "user-content-", W = !0, Vt = !1, G = null, Ht = {}, K = null, Ut = M({}, /* @__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(".")), Wt = null, Gt = M({}, [
844
+ "audio",
845
+ "video",
846
+ "img",
847
+ "source",
848
+ "image",
849
+ "track"
850
+ ]), Kt = null, qt = M({}, [
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
+ ]), Jt = "http://www.w3.org/1998/Math/MathML", q = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, Yt = !1, Xt = null, Zt = M({}, [
866
+ Jt,
867
+ q,
868
+ J
869
+ ], Oe), Qt = T([
870
+ "mi",
871
+ "mo",
872
+ "mn",
873
+ "ms",
874
+ "mtext"
875
+ ]), $t = M({}, Qt), en = T(["annotation-xml"]), tn = M({}, en), nn = M({}, [
876
+ "title",
877
+ "style",
878
+ "font",
879
+ "a",
880
+ "script"
881
+ ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
882
+ return e instanceof RegExp || e instanceof Function;
883
+ }, ln = function() {
884
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
885
+ if (on && on === e) return;
886
+ (!e || typeof e != "object") && (e = {}), e = N(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? Oe : De, L = vt(e, "ALLOWED_TAGS", R, { transform: X }), z = vt(e, "ALLOWED_ATTR", Ct, { transform: X }), Xt = vt(e, "ALLOWED_NAMESPACES", Zt, { transform: Oe }), Kt = vt(e, "ADD_URI_SAFE_ATTR", qt, {
887
+ transform: X,
888
+ base: qt
889
+ }), Wt = vt(e, "ADD_DATA_URI_TAGS", Gt, {
890
+ transform: X,
891
+ base: Gt
892
+ }), K = vt(e, "FORBID_CONTENTS", Ut, { transform: X }), wt = vt(e, "FORBID_TAGS", N({}), { transform: X }), Tt = vt(e, "FORBID_ATTR", N({}), { transform: X }), Ht = k(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? N(e.USE_PROFILES) : e.USE_PROFILES : !1, Et = e.ALLOW_ARIA_ATTR !== !1, Dt = e.ALLOW_DATA_ATTR !== !1, Ot = e.ALLOW_UNKNOWN_PROTOCOLS || !1, kt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, At = e.SAFE_FOR_XML !== !1, jt = e.WHOLE_DOCUMENT || !1, It = e.RETURN_DOM || !1, Lt = e.RETURN_DOM_FRAGMENT || !1, Rt = e.RETURN_TRUSTED_TYPE || !1, Ft = e.FORCE_BODY || !1, zt = e.SANITIZE_DOM !== !1, Bt = e.SANITIZE_NAMED_PROPS || !1, W = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, I = He(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : at, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, $t = yt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => M({}, Qt)), tn = yt(e, "HTML_INTEGRATION_POINTS", () => M({}, en));
893
+ let t = yt(e, "CUSTOM_ELEMENT_HANDLING", () => me(null));
894
+ if (B = me(null), k(t, "tagNameCheck") && cn(t.tagNameCheck) && (B.tagNameCheck = t.tagNameCheck), k(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (B.attributeNameCheck = t.attributeNameCheck), k(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), E(B), H && (Dt = !1), Lt && (It = !0), Ht && (L = M({}, Ye), z = me(null), Ht.html === !0 && (M(L, Ue), M(z, Xe)), Ht.svg === !0 && (M(L, We), M(z, Ze), M(z, $e)), Ht.svgFilters === !0 && (M(L, Ge), M(z, Ze), M(z, $e)), Ht.mathMl === !0 && (M(L, qe), M(z, Qe), M(z, $e))), V.tagCheck = null, V.attributeCheck = null, k(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : Ce(e.ADD_TAGS) && (L === R && (L = N(L)), M(L, e.ADD_TAGS, X))), k(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : Ce(e.ADD_ATTR) && (z === Ct && (z = N(z)), M(z, e.ADD_ATTR, X))), k(e, "ADD_FORBID_CONTENTS") && Ce(e.ADD_FORBID_CONTENTS) && (K === Ut && (K = N(K)), M(K, e.ADD_FORBID_CONTENTS, X)), W && (L["#text"] = !0), jt && M(L, [
895
+ "html",
896
+ "head",
897
+ "body"
898
+ ]), L.table && (M(L, ["tbody"]), delete wt.tbody), e.TRUSTED_TYPES_POLICY) {
899
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Le("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
900
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Le("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), on = e;
910
+ }, un = M({}, [
911
+ ...We,
912
+ ...Ge,
913
+ ...Ke
914
+ ]), dn = M({}, [...qe, ...Je]), fn = function(e, t, n) {
915
+ return t.namespaceURI === J ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
916
+ }, pn = function(e, t, n) {
917
+ return t.namespaceURI === J ? e === "math" : t.namespaceURI === q ? e === "math" && tn[n] : !!dn[e];
918
+ }, mn = function(e, t, n) {
919
+ return t.namespaceURI === q && !tn[n] || t.namespaceURI === Jt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
920
+ }, hn = function(e) {
921
+ let t = re(e), n = De(ne(e)), r = g(e), i, a;
922
+ return r && x(r) === F.element ? (i = { namespaceURI: re(r) }, a = De(ne(r))) : (i = { namespaceURI: Y }, a = "template"), Xt[t] ? t === q ? fn(n, i, a) : t === Jt ? pn(n, i, a) : t === J ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
923
+ }, Z = function(e) {
924
+ be(t.removed, { element: e });
925
+ try {
926
+ g(e).removeChild(e);
927
+ } catch {
928
+ if (p(e), !g(e)) throw Le("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
+ xn(e);
940
+ let t = h(e);
941
+ t && D(xe(t), (e) => {
942
+ try {
943
+ p(e);
944
+ } catch {}
945
+ });
946
+ let n = x(e) === F.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
+ }, vn = function(e, n, r) {
952
+ if (!r) try {
953
+ r = n.getAttributeNode(e);
954
+ } catch {
955
+ r = null;
956
+ }
957
+ be(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") {
969
+ if (It || Lt) try {
970
+ Z(n);
971
+ } catch {}
972
+ else try {
973
+ n.setAttribute(e, "");
974
+ } catch {}
975
+ }
976
+ }, yn = function(e) {
977
+ let t = _(e);
978
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
979
+ let r = t[n], i = r && r.name;
980
+ typeof i != "string" || z[X(i)] || gn(e, r, i);
981
+ }
982
+ }, bn = function(e, t) {
983
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
984
+ for (; r.length > 0;) {
985
+ let e = r.pop();
986
+ if (t(e) === !1) continue;
987
+ if (n && x(e) === F.element) {
988
+ let t = te(e);
989
+ Q(t) && r.push(t);
990
+ }
991
+ let i = h(e);
992
+ if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
993
+ }
994
+ }, xn = function(e) {
995
+ bn(e, (e) => {
996
+ x(e) === F.element && yn(e);
997
+ });
998
+ }, Sn = function(e) {
999
+ let t = [];
1000
+ return bn(e, (e) => {
1001
+ t.push(e);
1002
+ }, !0), t;
1003
+ }, Cn = function(e, t) {
1004
+ let n = we();
1005
+ D(Sn(e), (e) => {
1006
+ x(e) === F.element && Te(n, e);
1007
+ }), D(t, (e) => {
1008
+ x(e) === F.element && !Ee(n, e) && yn(e);
1009
+ });
1010
+ }, wn = function(e, n) {
1011
+ let r = !1;
1012
+ return D(t.removed, (t) => {
1013
+ t.element && (r ||= t.element === e, xn(t.element));
1014
+ }), Cn(e, n), r;
1015
+ }, Tn = function(e, t) {
1016
+ let n = G, r = null, i = () => (r || (r = we(), D(t, (e) => {
1017
+ Te(r, e);
1018
+ })), r);
1019
+ for (let t = 0;; t++) {
1020
+ let r = Sn(e), a = [e], o = !1;
1021
+ if (D(r, (e) => {
1022
+ x(e) === F.documentFragment ? be(a, e) : !o && !Ee(n, e) && (o = Ee(i(), e));
1023
+ }), !o) return;
1024
+ if (t >= 8) throw Le("the tree kept changing during in-place sanitization; refusing to return it");
1025
+ D(a, (t, n) => {
1026
+ En(t, n > 0, e, i());
1027
+ });
1028
+ }
1029
+ }, En = function(e, t, n, r) {
1030
+ let i = jn(e), a;
1031
+ for (; a = i.nextNode();) Ee(r, a) && !Ee(G, a) && (t && $(O.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
1032
+ }, Dn = function(e) {
1033
+ G && Te(G, e);
1034
+ }, On = function(e, t) {
1035
+ return At ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
1036
+ }, kn = function(e) {
1037
+ At && bn(e, (e) => {
1038
+ let t = x(e);
1039
+ if (t === F.processingInstruction || t === F.comment && A(dt, e.data)) {
1040
+ try {
1041
+ p(e);
1042
+ } catch {}
1043
+ return !1;
1044
+ }
1045
+ if (t === F.element) {
1046
+ let t = e, n = X(ne(e));
1047
+ try {
1048
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
1049
+ } catch {}
1050
+ }
1051
+ return !0;
1052
+ });
1053
+ }, An = function(e) {
1054
+ let t = null, r = null;
1055
+ if (Ft) e = "<remove></remove>" + e;
1056
+ else {
1057
+ let t = ke(e, /^[\r\n\t ]+/);
1058
+ r = t && t[0];
1059
+ }
1060
+ rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1061
+ let i = C ? w(e) : e;
1062
+ if (Y === J) try {
1063
+ t = new l().parseFromString(i, rn);
1064
+ } catch {}
1065
+ if (!t || !t.documentElement) {
1066
+ t = pe.createDocument(Y, "template", null);
1067
+ try {
1068
+ t.documentElement.innerHTML = Yt ? ie : i;
1069
+ } catch {}
1070
+ }
1071
+ let a = t.body || t.documentElement;
1072
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? _e.call(t, jt ? "html" : "body")[0] : jt ? t.documentElement : a;
1073
+ }, jn = function(e) {
1074
+ let t = b ? b(e) : e.ownerDocument;
1075
+ return he.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
1076
+ }, Mn = function(e) {
1077
+ return e = Ae(e, Pe, " "), e = Ae(e, Fe, " "), e = Ae(e, Ie, " "), e;
1078
+ }, Nn = function(e) {
1079
+ Pn(e);
1080
+ let t = e.querySelectorAll?.call(e, "template");
1081
+ t && D(t, (e) => {
1082
+ Q(e.content) && Nn(e.content);
1083
+ });
1084
+ }, Pn = function(e) {
1085
+ e.normalize();
1086
+ 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();
1087
+ for (; r;) r.data = Mn(r.data), r = n.nextNode();
1088
+ }, Fn = function(e) {
1089
+ let t = y ? y(e) : null;
1090
+ return typeof t != "string" || X(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);
1091
+ }, Q = function(e) {
1092
+ if (!v || typeof e != "object" || !e) return !1;
1093
+ try {
1094
+ return v(e) === F.documentFragment;
1095
+ } catch {
1096
+ return !1;
1097
+ }
1098
+ }, In = function(e) {
1099
+ if (!v || typeof e != "object" || !e) return !1;
1100
+ try {
1101
+ return typeof v(e) == "number";
1102
+ } catch {
1103
+ return !1;
1104
+ }
1105
+ };
1106
+ function $(e, n, r) {
1107
+ e.length !== 0 && D(e, (e) => {
1108
+ e.call(t, n, r, on);
1109
+ });
1110
+ }
1111
+ let Ln = function(e, t) {
1112
+ return !!(At && e.hasChildNodes() && !In(e.firstElementChild) && A(ut, e.textContent) && A(ut, e.innerHTML) || At && mt[t] && x(e) === F.element && re(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && A(ut, e.textContent)) || e.nodeType === F.processingInstruction || At && e.nodeType === F.comment && A(dt, e.data));
1113
+ }, Rn = function(e, t) {
1114
+ return e instanceof RegExp ? A(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1115
+ }, zn = function(e, t, n) {
1116
+ if (!wt[t] && Gn(t) && Rn(B.tagNameCheck, t)) return !1;
1117
+ if (W && !K[t] && !K[De(t)]) {
1118
+ let t = g(e), r = h(e);
1119
+ if (r && t) {
1120
+ let i = r.length;
1121
+ for (let a = i - 1; a >= 0; --a) {
1122
+ let i = e === n ? f(r[a], !0) : r[a];
1123
+ t.insertBefore(i, ee(e));
1124
+ }
1125
+ }
1126
+ }
1127
+ return Z(e), !0;
1128
+ }, Bn = function(e, t, n, r) {
1129
+ return e.length === 0 ? t : t === n || t === r ? N(t) : t;
1130
+ }, Vn = function(e, t) {
1131
+ return e === t || g(e) !== null ? !1 : (Vt && xn(e), !0);
1132
+ }, Hn = function(e, n) {
1133
+ if (Dn(e), $(O.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
1134
+ if (Fn(e)) return Z(e), !0;
1135
+ let r = X(ne(e));
1136
+ if (L = Bn(O.uponSanitizeElement, L, R, Nt), $(O.uponSanitizeElement, e, {
1137
+ tagName: r,
1138
+ allowedTags: L
1139
+ }), Vn(e, n)) return !0;
1140
+ if (Ln(e, r)) return Z(e), !0;
1141
+ if (wt[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !L[r]) {
1142
+ let t = zn(e, r, n);
1143
+ return t === !1 && ($(O.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
1144
+ }
1145
+ if (x(e) === F.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && A(ft, e.innerHTML)) return Z(e), !0;
1146
+ if (H && e.nodeType === F.text) {
1147
+ let n = Mn(e.textContent);
1148
+ e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1149
+ }
1150
+ return $(O.afterSanitizeElements, e, null), Vn(e, n);
1151
+ }, Un = function(e, t, r) {
1152
+ if (Tt[t] || On(t, e) || zt && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
1153
+ let i = z[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
1154
+ return Dt && A(j, t) || Et && A(Re, t) ? !0 : i ? Kt[t] || A(I, Ae(r, xt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && je(r, "data:") === 0 && Wt[e] || Ot && !A(ze, Ae(r, xt, "")) ? !0 : !r : Gn(e) && Rn(B.tagNameCheck, e) && Rn(B.attributeNameCheck, t, e) || t === "is" && B.allowCustomizedBuiltInElements && Rn(B.tagNameCheck, r);
1155
+ }, Wn = M({}, [
1156
+ "annotation-xml",
1157
+ "color-profile",
1158
+ "font-face",
1159
+ "font-face-format",
1160
+ "font-face-name",
1161
+ "font-face-src",
1162
+ "font-face-uri",
1163
+ "missing-glyph"
1164
+ ]), Gn = function(e) {
1165
+ return !Wn[De(e)] && A(St, e);
1166
+ }, Kn = function(e, t, n, r) {
1167
+ if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1168
+ case "TrustedHTML": return w(r);
1169
+ case "TrustedScriptURL": return ue(r);
1170
+ }
1171
+ return r;
1172
+ }, qn = function(e, t, n, r) {
1173
+ try {
1174
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
1175
+ } catch {
1176
+ return vn(t, e), !1;
1177
+ }
1178
+ }, Jn = function(e, t) {
1179
+ return At && A(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : De(e) === "attributename" && ke(t, "href") !== null;
1180
+ }, Yn = function(e, n) {
1181
+ if ($(O.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
1182
+ let r = e.attributes;
1183
+ if (!r || Fn(e)) return;
1184
+ z = Bn(O.uponSanitizeAttribute, z, Ct, Pt);
1185
+ let i = {
1186
+ attrName: "",
1187
+ attrValue: "",
1188
+ keepAttr: !0,
1189
+ allowedAttributes: z,
1190
+ forceKeepAttr: void 0
1191
+ }, a = r.length, o = X(e.nodeName);
1192
+ for (; a--;) {
1193
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : Me(d), p = !1;
1194
+ i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(O.uponSanitizeAttribute, e, i), f = i.attrValue, Bt && (u === "id" || u === "name") && je(f, U) !== 0 && (vn(s, e, n), f = U + f, p = !0), Jn(s, f) ? vn(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !kt && A(pt, f) ? vn(s, e, n) : (H && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && ye(t.removed)) : vn(s, e, n)) : vn(s, e, n));
1195
+ }
1196
+ $(O.afterSanitizeAttributes, e, null), Vn(e, n);
1197
+ }, Xn = function(e) {
1198
+ let t = null, n = jn(e);
1199
+ for ($(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(O.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), x(t) === F.element) {
1200
+ let e = te(t);
1201
+ Q(e) && (Zn(e), Xn(e));
1202
+ }
1203
+ H && Pn(e), $(O.afterSanitizeShadowDOM, e, null);
1204
+ }, Zn = function(e) {
1205
+ let t = [{
1206
+ node: e,
1207
+ shadow: null
1208
+ }];
1209
+ for (; t.length > 0;) {
1210
+ let e = t.pop();
1211
+ if (e.shadow) {
1212
+ Xn(e.shadow);
1213
+ continue;
1214
+ }
1215
+ let n = e.node, r = x(n) === F.element, i = h(n);
1216
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1217
+ node: i[e],
1218
+ shadow: null
1219
+ });
1220
+ if (r) {
1221
+ let e = y ? y(n) : null;
1222
+ if (typeof e == "string" && X(e) === "template") {
1223
+ let e = n.content;
1224
+ Q(e) && t.push({
1225
+ node: e,
1226
+ shadow: null
1227
+ });
1228
+ }
1229
+ }
1230
+ if (r) {
1231
+ let e = te(n);
1232
+ Q(e) && t.push({
1233
+ node: null,
1234
+ shadow: e
1235
+ }, {
1236
+ node: e,
1237
+ shadow: null
1238
+ });
1239
+ }
1240
+ }
1241
+ };
1242
+ return t.sanitize = function(e) {
1243
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1244
+ if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = Be(e), typeof e != "string")) throw Le("dirty is not a string, aborting");
1245
+ if (!t.isSupported) return e;
1246
+ Mt ? (L = Nt, z = Pt) : ln(n), (O.uponSanitizeElement.length > 0 || O.uponSanitizeAttribute.length > 0) && (L = N(L)), O.uponSanitizeAttribute.length > 0 && (z = N(z)), t.removed = [];
1247
+ let c = Vt && typeof e != "string" && In(e), l = [], u = G;
1248
+ if (c) {
1249
+ kn(e);
1250
+ let t = ne(e);
1251
+ if (typeof t == "string") {
1252
+ let n = X(t);
1253
+ if (!L[n] || wt[n]) throw _n(e), Le("root node is forbidden and cannot be sanitized in-place");
1254
+ }
1255
+ if (Fn(e)) throw _n(e), Le("root node is clobbered and cannot be sanitized in-place");
1256
+ l = Sn(e), G = we();
1257
+ } else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === F.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
1258
+ else {
1259
+ if (!It && !H && !jt && e.indexOf("<") === -1) return C && Rt ? w(e) : e;
1260
+ if (i = An(e), !i) return It ? null : Rt ? ie : "";
1261
+ }
1262
+ i && Ft && Z(i.firstChild);
1263
+ let d = c ? e : i;
1264
+ try {
1265
+ c && Zn(e);
1266
+ let t = jn(d);
1267
+ for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
1268
+ c && Tn(e, l);
1269
+ } catch (t) {
1270
+ throw c && (_n(e), wn(e, l)), t;
1271
+ } finally {
1272
+ G = u;
1273
+ }
1274
+ if (c) {
1275
+ if (wn(e, l)) throw Le("a node selected for removal could not be safely returned; refusing to sanitize in place");
1276
+ return H && Nn(e), e;
1277
+ }
1278
+ if (It) {
1279
+ if (H && Nn(i), Lt) for (s = ge.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1280
+ else s = i;
1281
+ return (z.shadowroot || z.shadowrootmode) && (s = Ne.call(r, s, !0)), s;
1282
+ }
1283
+ let f = jt ? i.outerHTML : i.innerHTML;
1284
+ return jt && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && A(ct, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), H && (f = Mn(f)), C && Rt ? w(f) : f;
1285
+ }, t.setConfig = function() {
1286
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1287
+ ln(e), Mt = !0, Nt = L, Pt = z;
1288
+ }, t.clearConfig = function() {
1289
+ on = null, Mt = !1, Nt = null, Pt = null, C = ae, ie = "";
1290
+ }, t.isValidAttribute = function(e, t, n) {
1291
+ on || ln({});
1292
+ let r = X(e), i = X(t);
1293
+ return typeof n == "string" && (Jn(t, n) || !kt && A(pt, n)) ? !1 : Un(r, i, n);
1294
+ }, t.addHook = function(e, t) {
1295
+ typeof t == "function" && k(O, e) && be(O[e], t);
1296
+ }, t.removeHook = function(e, t) {
1297
+ if (k(O, e)) {
1298
+ if (t !== void 0) {
1299
+ let n = ve(O[e], t);
1300
+ return n === -1 ? void 0 : Se(O[e], n, 1)[0];
1301
+ }
1302
+ return ye(O[e]);
1303
+ }
1304
+ }, t.removeHooks = function(e) {
1305
+ k(O, e) && (O[e] = []);
1306
+ }, t.removeAllHooks = function() {
1307
+ O = _t();
1308
+ }, t;
1309
+ }
1310
+ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1311
+ let r = { depth: n };
1312
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => St(e, t, r)), e;
1313
+ if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1314
+ e.includes(t) || e.push(t);
1315
+ }), e;
1316
+ if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1317
+ if (t != null && typeof e == "object" && typeof t == "object") {
1318
+ let r = e;
1319
+ Object.entries(t).forEach(([t, i]) => {
1320
+ if (typeof i == "object") {
1321
+ if (i === null) return;
1322
+ Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1323
+ value: void 0,
1324
+ writable: !0,
1325
+ enumerable: !0,
1326
+ configurable: !0
1327
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = St(r[t], i, { depth: n - 1 }));
1328
+ } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1329
+ value: i,
1330
+ writable: !0,
1331
+ enumerable: !0,
1332
+ configurable: !0
1333
+ }));
1334
+ });
1335
+ }
1336
+ return e;
1337
+ }, "assignWithDepth"), I = St, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ n((e, t) => t ? x(e, {
1338
+ s: -40,
1339
+ l: 10
1340
+ }) : x(e, {
1341
+ s: -40,
1342
+ l: -10
1343
+ }), "mkBorder"), Ct = class {
1344
+ static {
1345
+ n(this, "Theme");
1346
+ }
1347
+ constructor() {
1348
+ 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))";
1349
+ }
1350
+ updateColors() {
1351
+ 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, {
1352
+ h: 180,
1353
+ l: 5
1354
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1355
+ h: 210,
1356
+ l: 150
1357
+ }), 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);
1358
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1359
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1360
+ 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);
1361
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1362
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1363
+ let e = this.darkMode ? -4 : -1;
1364
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1365
+ h: 180,
1366
+ s: -15,
1367
+ l: e * (5 + t * 3)
1368
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1369
+ h: 180,
1370
+ s: -15,
1371
+ l: e * (8 + t * 3)
1372
+ });
1373
+ 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, {
1374
+ h: 60,
1375
+ l: -10
1376
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1377
+ h: -60,
1378
+ l: -10
1379
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1380
+ h: 120,
1381
+ l: 0
1382
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1383
+ h: 60,
1384
+ l: -20
1385
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1386
+ h: -60,
1387
+ l: -20
1388
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1389
+ h: 120,
1390
+ l: -10
1391
+ }), 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, {
1392
+ h: 60,
1393
+ l: -30
1394
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1395
+ h: -60,
1396
+ l: -30
1397
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1398
+ h: 60,
1399
+ l: -30
1400
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1401
+ h: 120,
1402
+ l: -30
1403
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1404
+ h: 120,
1405
+ l: -30
1406
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1407
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1408
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1409
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1410
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1411
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1412
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1413
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1414
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1415
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1416
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1417
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1418
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1419
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1420
+ textColor: this.cynefin?.textColor || this.textColor,
1421
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1422
+ }, this.radar = {
1423
+ axisColor: this.radar?.axisColor || this.lineColor,
1424
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1425
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1426
+ curveOpacity: this.radar?.curveOpacity || .5,
1427
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1428
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1429
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1430
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1431
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1432
+ legendFontSize: this.radar?.legendFontSize || 12
1433
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1434
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1435
+ axisColor: this.wardley?.axisColor || this.lineColor,
1436
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1437
+ gridColor: this.wardley?.gridColor || this.gridColor,
1438
+ componentFill: this.wardley?.componentFill || this.background,
1439
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1440
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1441
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1442
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1443
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1444
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1445
+ annotationFill: this.wardley?.annotationFill || this.background
1446
+ }, 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, {
1447
+ r: 5,
1448
+ g: 5,
1449
+ b: 5
1450
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1451
+ r: 10,
1452
+ g: 10,
1453
+ b: 10
1454
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1455
+ r: 15,
1456
+ g: 15,
1457
+ b: 15
1458
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1459
+ r: -5,
1460
+ g: -5,
1461
+ b: -5
1462
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1463
+ r: -10,
1464
+ g: -10,
1465
+ b: -10
1466
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1467
+ r: -15,
1468
+ g: -15,
1469
+ b: -15
1470
+ }), 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 = {
1471
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1472
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1473
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1474
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1475
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1476
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1477
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1478
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1479
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1480
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1481
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1482
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1483
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1484
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1485
+ }
1486
+ calculate(e) {
1487
+ if (typeof e != "object") {
1488
+ this.updateColors();
1489
+ return;
1490
+ }
1491
+ let t = Object.keys(e);
1492
+ t.forEach((t) => {
1493
+ this[t] = e[t];
1494
+ }), this.updateColors(), t.forEach((t) => {
1495
+ this[t] = e[t];
1496
+ });
1497
+ }
1498
+ }, B = /* @__PURE__ */ n((e) => {
1499
+ let t = new Ct();
1500
+ return t.calculate(e), t;
1501
+ }, "getThemeVariables"), wt = class {
1502
+ static {
1503
+ n(this, "Theme");
1504
+ }
1505
+ constructor() {
1506
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = 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";
1507
+ }
1508
+ updateColors() {
1509
+ this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = S(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
1510
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1511
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1512
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1513
+ h: 30,
1514
+ s: -30,
1515
+ l: -(-10 + e * 4)
1516
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1517
+ h: 30,
1518
+ s: -30,
1519
+ l: -(-7 + e * 4)
1520
+ });
1521
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1522
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1523
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1524
+ 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";
1525
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1526
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1527
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1528
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1529
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1530
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1531
+ cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1532
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1533
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1534
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1535
+ complexBg: this.cynefin?.complexBg || "#1B5E20",
1536
+ complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1537
+ chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1538
+ clearBg: this.cynefin?.clearBg || "#F57F17",
1539
+ confusionBg: this.cynefin?.confusionBg || "#4A148C",
1540
+ textColor: this.cynefin?.textColor || this.textColor,
1541
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1542
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1543
+ r: 5,
1544
+ g: 5,
1545
+ b: 5
1546
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1547
+ r: 10,
1548
+ g: 10,
1549
+ b: 10
1550
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1551
+ r: 15,
1552
+ g: 15,
1553
+ b: 15
1554
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1555
+ r: -5,
1556
+ g: -5,
1557
+ b: -5
1558
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1559
+ r: -10,
1560
+ g: -10,
1561
+ b: -10
1562
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1563
+ r: -15,
1564
+ g: -15,
1565
+ b: -15
1566
+ }), 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 = {
1567
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1568
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1569
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1570
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1571
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1572
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1573
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1574
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1575
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1576
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1577
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1578
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1579
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1580
+ }, this.packet = {
1581
+ startByteColor: this.primaryTextColor,
1582
+ endByteColor: this.primaryTextColor,
1583
+ labelColor: this.primaryTextColor,
1584
+ titleColor: this.primaryTextColor,
1585
+ blockStrokeColor: this.primaryTextColor,
1586
+ blockFillColor: this.background
1587
+ }, this.radar = {
1588
+ axisColor: this.radar?.axisColor || this.lineColor,
1589
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1590
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1591
+ curveOpacity: this.radar?.curveOpacity || .5,
1592
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1593
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1594
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1595
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1596
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1597
+ legendFontSize: this.radar?.legendFontSize || 12
1598
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1599
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1600
+ axisColor: this.wardley?.axisColor || this.lineColor,
1601
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1602
+ gridColor: this.wardley?.gridColor || this.gridColor,
1603
+ componentFill: this.wardley?.componentFill || this.mainBkg,
1604
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1605
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1606
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1607
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1608
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1609
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1610
+ annotationFill: this.wardley?.annotationFill || this.mainBkg
1611
+ }, 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";
1612
+ }
1613
+ calculate(e) {
1614
+ if (typeof e != "object") {
1615
+ this.updateColors();
1616
+ return;
1617
+ }
1618
+ let t = Object.keys(e);
1619
+ t.forEach((t) => {
1620
+ this[t] = e[t];
1621
+ }), this.updateColors(), t.forEach((t) => {
1622
+ this[t] = e[t];
1623
+ });
1624
+ }
1625
+ }, Tt = /* @__PURE__ */ n((e) => {
1626
+ let t = new wt();
1627
+ return t.calculate(e), t;
1628
+ }, "getThemeVariables"), V = class {
1629
+ static {
1630
+ n(this, "Theme");
1631
+ }
1632
+ constructor() {
1633
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = 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();
1634
+ }
1635
+ updateColors() {
1636
+ 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);
1637
+ 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);
1638
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1639
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1640
+ h: 30,
1641
+ l: -(5 + e * 5)
1642
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1643
+ h: 30,
1644
+ l: -(7 + e * 5)
1645
+ });
1646
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1647
+ this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1648
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1649
+ }
1650
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1651
+ h: 60,
1652
+ l: -20
1653
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1654
+ h: -60,
1655
+ l: -40
1656
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1657
+ h: 120,
1658
+ l: -40
1659
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1660
+ h: 60,
1661
+ l: -40
1662
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1663
+ h: -90,
1664
+ l: -40
1665
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1666
+ h: 120,
1667
+ l: -30
1668
+ }), 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, {
1669
+ h: 60,
1670
+ l: -30
1671
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1672
+ h: -60,
1673
+ l: -30
1674
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1675
+ h: 60,
1676
+ l: -30
1677
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1678
+ h: 120,
1679
+ l: -30
1680
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1681
+ h: 120,
1682
+ l: -30
1683
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1684
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1685
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1686
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1687
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1688
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1689
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1690
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1691
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1692
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1693
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1694
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1695
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1696
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1697
+ textColor: this.cynefin?.textColor || this.textColor,
1698
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1699
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1700
+ r: 5,
1701
+ g: 5,
1702
+ b: 5
1703
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1704
+ r: 10,
1705
+ g: 10,
1706
+ b: 10
1707
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1708
+ r: 15,
1709
+ g: 15,
1710
+ b: 15
1711
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1712
+ r: -5,
1713
+ g: -5,
1714
+ b: -5
1715
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1716
+ r: -10,
1717
+ g: -10,
1718
+ b: -10
1719
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1720
+ r: -15,
1721
+ g: -15,
1722
+ b: -15
1723
+ }), 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 = {
1724
+ axisColor: this.radar?.axisColor || this.lineColor,
1725
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1726
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1727
+ curveOpacity: this.radar?.curveOpacity || .5,
1728
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1729
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1730
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1731
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1732
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1733
+ legendFontSize: this.radar?.legendFontSize || 12
1734
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1735
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1736
+ axisColor: this.wardley?.axisColor || this.lineColor,
1737
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1738
+ gridColor: this.wardley?.gridColor || this.gridColor,
1739
+ componentFill: this.wardley?.componentFill || this.background,
1740
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1741
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1742
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1743
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1744
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1745
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1746
+ annotationFill: this.wardley?.annotationFill || this.background
1747
+ }, this.xyChart = {
1748
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1749
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1750
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1751
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1752
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1753
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1754
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1755
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1756
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1757
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1758
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1759
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1760
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1761
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1762
+ }
1763
+ calculate(e) {
1764
+ if (Object.keys(this).forEach((e) => {
1765
+ this[e] === "calculated" && (this[e] = void 0);
1766
+ }), typeof e != "object") {
1767
+ this.updateColors();
1768
+ return;
1769
+ }
1770
+ let t = Object.keys(e);
1771
+ t.forEach((t) => {
1772
+ this[t] = e[t];
1773
+ }), this.updateColors(), t.forEach((t) => {
1774
+ this[t] = e[t];
1775
+ });
1776
+ }
1777
+ }, Et = /* @__PURE__ */ n((e) => {
1778
+ let t = new V();
1779
+ return t.calculate(e), t;
1780
+ }, "getThemeVariables"), Dt = class {
1781
+ static {
1782
+ n(this, "Theme");
1783
+ }
1784
+ constructor() {
1785
+ this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1786
+ }
1787
+ updateColors() {
1788
+ 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);
1789
+ 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);
1790
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1791
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1792
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1793
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1794
+ h: 30,
1795
+ s: -30,
1796
+ l: -(5 + e * 5)
1797
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1798
+ h: 30,
1799
+ s: -30,
1800
+ l: -(8 + e * 5)
1801
+ });
1802
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
1803
+ h: 40,
1804
+ l: -40
1805
+ }), this.pie7 = this.pie7 || x(this.primaryColor, {
1806
+ h: 60,
1807
+ l: -10
1808
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1809
+ h: -60,
1810
+ l: -10
1811
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1812
+ h: 120,
1813
+ l: 0
1814
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1815
+ h: 60,
1816
+ l: -50
1817
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1818
+ h: -60,
1819
+ l: -50
1820
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1821
+ h: 120,
1822
+ l: -50
1823
+ }), 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, {
1824
+ h: 60,
1825
+ l: -30
1826
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1827
+ h: -60,
1828
+ l: -30
1829
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1830
+ h: 60,
1831
+ l: -30
1832
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1833
+ h: 120,
1834
+ l: -30
1835
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1836
+ h: 120,
1837
+ l: -30
1838
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1839
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1840
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1841
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1842
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1843
+ cliffColor: this.cynefin?.cliffColor || "#8B4513",
1844
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1845
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1846
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1847
+ complexBg: this.cynefin?.complexBg || "#C8E6C9",
1848
+ complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1849
+ chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1850
+ clearBg: this.cynefin?.clearBg || "#FFF9C4",
1851
+ confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1852
+ textColor: this.cynefin?.textColor || this.textColor,
1853
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1854
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1855
+ r: 5,
1856
+ g: 5,
1857
+ b: 5
1858
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1859
+ r: 10,
1860
+ g: 10,
1861
+ b: 10
1862
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1863
+ r: 15,
1864
+ g: 15,
1865
+ b: 15
1866
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1867
+ r: -5,
1868
+ g: -5,
1869
+ b: -5
1870
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1871
+ r: -10,
1872
+ g: -10,
1873
+ b: -10
1874
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1875
+ r: -15,
1876
+ g: -15,
1877
+ b: -15
1878
+ }), 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 = {
1879
+ startByteColor: this.primaryTextColor,
1880
+ endByteColor: this.primaryTextColor,
1881
+ labelColor: this.primaryTextColor,
1882
+ titleColor: this.primaryTextColor,
1883
+ blockStrokeColor: this.primaryTextColor,
1884
+ blockFillColor: this.mainBkg
1885
+ }, this.radar = {
1886
+ axisColor: this.radar?.axisColor || this.lineColor,
1887
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1888
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1889
+ curveOpacity: this.radar?.curveOpacity || .5,
1890
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1891
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1892
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1893
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1894
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1895
+ legendFontSize: this.radar?.legendFontSize || 12
1896
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1897
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1898
+ axisColor: this.wardley?.axisColor || this.lineColor,
1899
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1900
+ gridColor: this.wardley?.gridColor || this.gridColor,
1901
+ componentFill: this.wardley?.componentFill || this.background,
1902
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1903
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1904
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1905
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1906
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1907
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1908
+ annotationFill: this.wardley?.annotationFill || this.background
1909
+ }, this.xyChart = {
1910
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1911
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1912
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1913
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1914
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1915
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1916
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1917
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1918
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1919
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1920
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1921
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1922
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1923
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1924
+ }
1925
+ calculate(e) {
1926
+ if (typeof e != "object") {
1927
+ this.updateColors();
1928
+ return;
1929
+ }
1930
+ let t = Object.keys(e);
1931
+ t.forEach((t) => {
1932
+ this[t] = e[t];
1933
+ }), this.updateColors(), t.forEach((t) => {
1934
+ this[t] = e[t];
1935
+ });
1936
+ }
1937
+ }, Ot = /* @__PURE__ */ n((e) => {
1938
+ let t = new Dt();
1939
+ return t.calculate(e), t;
1940
+ }, "getThemeVariables"), kt = class {
1941
+ static {
1942
+ n(this, "Theme");
1943
+ }
1944
+ constructor() {
1945
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1946
+ }
1947
+ updateColors() {
1948
+ 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";
1949
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1950
+ 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);
1951
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1952
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1953
+ 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) });
1954
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
1955
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1956
+ 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";
1957
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1958
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1959
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1960
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1961
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1962
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1963
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1964
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1965
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1966
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1967
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1968
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1969
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1970
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1971
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1972
+ textColor: this.cynefin?.textColor || this.textColor,
1973
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1974
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1975
+ r: 5,
1976
+ g: 5,
1977
+ b: 5
1978
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1979
+ r: 10,
1980
+ g: 10,
1981
+ b: 10
1982
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1983
+ r: 15,
1984
+ g: 15,
1985
+ b: 15
1986
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1987
+ r: -5,
1988
+ g: -5,
1989
+ b: -5
1990
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1991
+ r: -10,
1992
+ g: -10,
1993
+ b: -10
1994
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1995
+ r: -15,
1996
+ g: -15,
1997
+ b: -15
1998
+ }), 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 = {
1999
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2000
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2001
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2002
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2003
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2004
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2005
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2006
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2007
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2008
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2009
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2010
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2011
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
2012
+ }, this.radar = {
2013
+ axisColor: this.radar?.axisColor || this.lineColor,
2014
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2015
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2016
+ curveOpacity: this.radar?.curveOpacity || .5,
2017
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2018
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2019
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2020
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
2021
+ legendBoxSize: this.radar?.legendBoxSize || 12,
2022
+ legendFontSize: this.radar?.legendFontSize || 12
2023
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
2024
+ backgroundColor: this.wardley?.backgroundColor || this.background,
2025
+ axisColor: this.wardley?.axisColor || this.lineColor,
2026
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2027
+ gridColor: this.wardley?.gridColor || this.gridColor,
2028
+ componentFill: this.wardley?.componentFill || this.background,
2029
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2030
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2031
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2032
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2033
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2034
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2035
+ annotationFill: this.wardley?.annotationFill || this.background
2036
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2037
+ }
2038
+ calculate(e) {
2039
+ if (typeof e != "object") {
2040
+ this.updateColors();
2041
+ return;
2042
+ }
2043
+ let t = Object.keys(e);
2044
+ t.forEach((t) => {
2045
+ this[t] = e[t];
2046
+ }), this.updateColors(), t.forEach((t) => {
2047
+ this[t] = e[t];
2048
+ });
2049
+ }
2050
+ }, H = /* @__PURE__ */ n((e) => {
2051
+ let t = new kt();
2052
+ return t.calculate(e), t;
2053
+ }, "getThemeVariables"), At = class {
2054
+ static {
2055
+ n(this, "Theme");
2056
+ }
2057
+ constructor() {
2058
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
2059
+ }
2060
+ updateColors() {
2061
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2062
+ h: 180,
2063
+ l: 5
2064
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2065
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2066
+ h: 180,
2067
+ l: 5
2068
+ });
2069
+ 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, {
2070
+ h: 210,
2071
+ l: 150
2072
+ }), 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);
2073
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2074
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2075
+ 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);
2076
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2077
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2078
+ let r = this.darkMode ? -4 : -1;
2079
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2080
+ h: 180,
2081
+ s: -15,
2082
+ l: r * (5 + e * 3)
2083
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2084
+ h: 180,
2085
+ s: -15,
2086
+ l: r * (8 + e * 3)
2087
+ });
2088
+ 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, {
2089
+ h: 60,
2090
+ l: -10
2091
+ }), this.pie8 = this.pie8 || x(e, {
2092
+ h: -60,
2093
+ l: -10
2094
+ }), this.pie9 = this.pie9 || x(e, {
2095
+ h: 120,
2096
+ l: 0
2097
+ }), this.pie10 = this.pie10 || x(e, {
2098
+ h: 60,
2099
+ l: -20
2100
+ }), this.pie11 = this.pie11 || x(e, {
2101
+ h: -60,
2102
+ l: -20
2103
+ }), this.pie12 = this.pie12 || x(e, {
2104
+ h: 120,
2105
+ l: -10
2106
+ }), 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, {
2107
+ r: 5,
2108
+ g: 5,
2109
+ b: 5
2110
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2111
+ r: 10,
2112
+ g: 10,
2113
+ b: 10
2114
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2115
+ r: 15,
2116
+ g: 15,
2117
+ b: 15
2118
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2119
+ r: -5,
2120
+ g: -5,
2121
+ b: -5
2122
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2123
+ r: -10,
2124
+ g: -10,
2125
+ b: -10
2126
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2127
+ r: -15,
2128
+ g: -15,
2129
+ b: -15
2130
+ }), 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 = {
2131
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2132
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2133
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2134
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2135
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2136
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2137
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2138
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2139
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2140
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2141
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2142
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2143
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2144
+ }
2145
+ calculate(e) {
2146
+ if (typeof e != "object") {
2147
+ this.updateColors();
2148
+ return;
2149
+ }
2150
+ let t = Object.keys(e);
2151
+ t.forEach((t) => {
2152
+ this[t] = e[t];
2153
+ }), this.updateColors(), t.forEach((t) => {
2154
+ this[t] = e[t];
2155
+ });
2156
+ }
2157
+ }, jt = /* @__PURE__ */ n((e) => {
2158
+ let t = new At();
2159
+ return t.calculate(e), t;
2160
+ }, "getThemeVariables"), Mt = class {
2161
+ static {
2162
+ n(this, "Theme");
2163
+ }
2164
+ constructor() {
2165
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = 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";
2166
+ }
2167
+ updateColors() {
2168
+ 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, {
2169
+ h: 180,
2170
+ l: 5
2171
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2172
+ h: 210,
2173
+ l: 150
2174
+ }), 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);
2175
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2176
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2177
+ 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);
2178
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2179
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2180
+ let e = this.darkMode ? -4 : -1;
2181
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2182
+ h: 180,
2183
+ s: -15,
2184
+ l: e * (5 + t * 3)
2185
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2186
+ h: 180,
2187
+ s: -15,
2188
+ l: e * (8 + t * 3)
2189
+ });
2190
+ 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, {
2191
+ h: 60,
2192
+ l: -10
2193
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2194
+ h: -60,
2195
+ l: -10
2196
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2197
+ h: 120,
2198
+ l: 0
2199
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2200
+ h: 60,
2201
+ l: -20
2202
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2203
+ h: -60,
2204
+ l: -20
2205
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2206
+ h: 120,
2207
+ l: -10
2208
+ }), 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, {
2209
+ r: 5,
2210
+ g: 5,
2211
+ b: 5
2212
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2213
+ r: 10,
2214
+ g: 10,
2215
+ b: 10
2216
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2217
+ r: 15,
2218
+ g: 15,
2219
+ b: 15
2220
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2221
+ r: -5,
2222
+ g: -5,
2223
+ b: -5
2224
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2225
+ r: -10,
2226
+ g: -10,
2227
+ b: -10
2228
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2229
+ r: -15,
2230
+ g: -15,
2231
+ b: -15
2232
+ }), 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 = {
2233
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2234
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2235
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2236
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2237
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2238
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2239
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2240
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2241
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2242
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2243
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2244
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2245
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2246
+ }
2247
+ calculate(e) {
2248
+ if (typeof e != "object") {
2249
+ this.updateColors();
2250
+ return;
2251
+ }
2252
+ let t = Object.keys(e);
2253
+ t.forEach((t) => {
2254
+ this[t] = e[t];
2255
+ }), this.updateColors(), t.forEach((t) => {
2256
+ this[t] = e[t];
2257
+ });
2258
+ }
2259
+ }, Nt = /* @__PURE__ */ n((e) => {
2260
+ let t = new Mt();
2261
+ return t.calculate(e), t;
2262
+ }, "getThemeVariables"), Pt = class {
2263
+ static {
2264
+ n(this, "Theme");
2265
+ }
2266
+ constructor() {
2267
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
2268
+ }
2269
+ updateColors() {
2270
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2271
+ h: 180,
2272
+ l: 5
2273
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2274
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2275
+ h: 180,
2276
+ l: 5
2277
+ });
2278
+ 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;
2279
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2280
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2281
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2282
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2283
+ 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);
2284
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2285
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2286
+ let r = this.darkMode ? -4 : -1;
2287
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2288
+ h: 180,
2289
+ s: -15,
2290
+ l: r * (5 + e * 3)
2291
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2292
+ h: 180,
2293
+ s: -15,
2294
+ l: r * (8 + e * 3)
2295
+ });
2296
+ 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, {
2297
+ h: 60,
2298
+ l: -10
2299
+ }), this.pie8 = this.pie8 || x(e, {
2300
+ h: -60,
2301
+ l: -10
2302
+ }), this.pie9 = this.pie9 || x(e, {
2303
+ h: 120,
2304
+ l: 0
2305
+ }), this.pie10 = this.pie10 || x(e, {
2306
+ h: 60,
2307
+ l: -20
2308
+ }), this.pie11 = this.pie11 || x(e, {
2309
+ h: -60,
2310
+ l: -20
2311
+ }), this.pie12 = this.pie12 || x(e, {
2312
+ h: 120,
2313
+ l: -10
2314
+ }), 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, {
2315
+ r: 5,
2316
+ g: 5,
2317
+ b: 5
2318
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2319
+ r: 10,
2320
+ g: 10,
2321
+ b: 10
2322
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2323
+ r: 15,
2324
+ g: 15,
2325
+ b: 15
2326
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2327
+ r: -5,
2328
+ g: -5,
2329
+ b: -5
2330
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2331
+ r: -10,
2332
+ g: -10,
2333
+ b: -10
2334
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2335
+ r: -15,
2336
+ g: -15,
2337
+ b: -15
2338
+ }), 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 = {
2339
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2340
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2341
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2342
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2343
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2344
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2345
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2346
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2347
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2348
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2349
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2350
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2351
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2352
+ }
2353
+ calculate(e) {
2354
+ if (typeof e != "object") {
2355
+ this.updateColors();
2356
+ return;
2357
+ }
2358
+ let t = Object.keys(e);
2359
+ t.forEach((t) => {
2360
+ this[t] = e[t];
2361
+ }), this.updateColors(), t.forEach((t) => {
2362
+ this[t] = e[t];
2363
+ });
2364
+ }
2365
+ }, Ft = /* @__PURE__ */ n((e) => {
2366
+ let t = new Pt();
2367
+ return t.calculate(e), t;
2368
+ }, "getThemeVariables"), It = class {
2369
+ static {
2370
+ n(this, "Theme");
2371
+ }
2372
+ constructor() {
2373
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = 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";
2374
+ }
2375
+ updateColors() {
2376
+ 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, {
2377
+ h: 180,
2378
+ l: 5
2379
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2380
+ h: 210,
2381
+ l: 150
2382
+ }), 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);
2383
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2384
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2385
+ 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);
2386
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2387
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2388
+ let e = this.darkMode ? -4 : -1;
2389
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2390
+ h: 180,
2391
+ s: -15,
2392
+ l: e * (5 + t * 3)
2393
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2394
+ h: 180,
2395
+ s: -15,
2396
+ l: e * (8 + t * 3)
2397
+ });
2398
+ 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, {
2399
+ h: 60,
2400
+ l: -10
2401
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2402
+ h: -60,
2403
+ l: -10
2404
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2405
+ h: 120,
2406
+ l: 0
2407
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2408
+ h: 60,
2409
+ l: -20
2410
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2411
+ h: -60,
2412
+ l: -20
2413
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2414
+ h: 120,
2415
+ l: -10
2416
+ }), 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, {
2417
+ r: 5,
2418
+ g: 5,
2419
+ b: 5
2420
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2421
+ r: 10,
2422
+ g: 10,
2423
+ b: 10
2424
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2425
+ r: 15,
2426
+ g: 15,
2427
+ b: 15
2428
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2429
+ r: -5,
2430
+ g: -5,
2431
+ b: -5
2432
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2433
+ r: -10,
2434
+ g: -10,
2435
+ b: -10
2436
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2437
+ r: -15,
2438
+ g: -15,
2439
+ b: -15
2440
+ }), 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 = {
2441
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2442
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2443
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2444
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2445
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2446
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2447
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2448
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2449
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2450
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2451
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2452
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2453
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2454
+ }
2455
+ calculate(e) {
2456
+ if (typeof e != "object") {
2457
+ this.updateColors();
2458
+ return;
2459
+ }
2460
+ let t = Object.keys(e);
2461
+ t.forEach((t) => {
2462
+ this[t] = e[t];
2463
+ }), this.updateColors(), t.forEach((t) => {
2464
+ this[t] = e[t];
2465
+ });
2466
+ }
2467
+ }, Lt = /* @__PURE__ */ n((e) => {
2468
+ let t = new It();
2469
+ return t.calculate(e), t;
2470
+ }, "getThemeVariables"), Rt = class {
2471
+ static {
2472
+ n(this, "Theme");
2473
+ }
2474
+ constructor() {
2475
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2476
+ "#E879F9",
2477
+ "#2DD4BF",
2478
+ "#FB923C",
2479
+ "#22D3EE",
2480
+ "#4ADE80",
2481
+ "#A78BFA",
2482
+ "#F87171",
2483
+ "#FACC15",
2484
+ "#818CF8",
2485
+ "#A3E635 ",
2486
+ "#38BDF8",
2487
+ "#FB7185"
2488
+ ], this.bkgColorArray = [
2489
+ "#FDF4FF",
2490
+ "#F0FDFA",
2491
+ "#FFF7ED",
2492
+ "#ECFEFF",
2493
+ "#F0FDF4",
2494
+ "#F5F3FF",
2495
+ "#FEF2F2",
2496
+ "#FEFCE8",
2497
+ "#EEF2FF",
2498
+ "#F7FEE7",
2499
+ "#F0F9FF",
2500
+ "#FFF1F2"
2501
+ ], this.filterColor = "#000000";
2502
+ }
2503
+ updateColors() {
2504
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2505
+ h: 180,
2506
+ l: 5
2507
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2508
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2509
+ h: 180,
2510
+ l: 5
2511
+ });
2512
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2513
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2514
+ 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);
2515
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2516
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2517
+ let r = this.darkMode ? -4 : -1;
2518
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2519
+ h: 180,
2520
+ s: -15,
2521
+ l: r * (5 + e * 3)
2522
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2523
+ h: 180,
2524
+ s: -15,
2525
+ l: r * (8 + e * 3)
2526
+ });
2527
+ 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, {
2528
+ h: 60,
2529
+ l: -10
2530
+ }), this.pie8 = this.pie8 || x(e, {
2531
+ h: -60,
2532
+ l: -10
2533
+ }), this.pie9 = this.pie9 || x(e, {
2534
+ h: 120,
2535
+ l: 0
2536
+ }), this.pie10 = this.pie10 || x(e, {
2537
+ h: 60,
2538
+ l: -20
2539
+ }), this.pie11 = this.pie11 || x(e, {
2540
+ h: -60,
2541
+ l: -20
2542
+ }), this.pie12 = this.pie12 || x(e, {
2543
+ h: 120,
2544
+ l: -10
2545
+ }), 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, {
2546
+ r: 5,
2547
+ g: 5,
2548
+ b: 5
2549
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2550
+ r: 10,
2551
+ g: 10,
2552
+ b: 10
2553
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2554
+ r: 15,
2555
+ g: 15,
2556
+ b: 15
2557
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2558
+ r: -5,
2559
+ g: -5,
2560
+ b: -5
2561
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2562
+ r: -10,
2563
+ g: -10,
2564
+ b: -10
2565
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2566
+ r: -15,
2567
+ g: -15,
2568
+ b: -15
2569
+ }), 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 = {
2570
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2571
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2572
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2573
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2574
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2575
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2576
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2577
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2578
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2579
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2580
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2581
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2582
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2583
+ }
2584
+ calculate(e) {
2585
+ if (typeof e != "object") {
2586
+ this.updateColors();
2587
+ return;
2588
+ }
2589
+ let t = Object.keys(e);
2590
+ t.forEach((t) => {
2591
+ this[t] = e[t];
2592
+ }), this.updateColors(), t.forEach((t) => {
2593
+ this[t] = e[t];
2594
+ });
2595
+ }
2596
+ }, zt = /* @__PURE__ */ n((e) => {
2597
+ let t = new Rt();
2598
+ return t.calculate(e), t;
2599
+ }, "getThemeVariables"), Bt = class {
2600
+ static {
2601
+ n(this, "Theme");
2602
+ }
2603
+ constructor() {
2604
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = 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 = [
2605
+ "#E879F9",
2606
+ "#2DD4BF",
2607
+ "#FB923C",
2608
+ "#22D3EE",
2609
+ "#4ADE80",
2610
+ "#A78BFA",
2611
+ "#F87171",
2612
+ "#FACC15",
2613
+ "#818CF8",
2614
+ "#A3E635 ",
2615
+ "#38BDF8",
2616
+ "#FB7185"
2617
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2618
+ }
2619
+ updateColors() {
2620
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2621
+ h: 180,
2622
+ l: 5
2623
+ }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2624
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2625
+ 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);
2626
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2627
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2628
+ let e = this.darkMode ? -4 : -1;
2629
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2630
+ h: 180,
2631
+ s: -15,
2632
+ l: e * (5 + t * 3)
2633
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2634
+ h: 180,
2635
+ s: -15,
2636
+ l: e * (8 + t * 3)
2637
+ });
2638
+ 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, {
2639
+ h: 60,
2640
+ l: -10
2641
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2642
+ h: -60,
2643
+ l: -10
2644
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2645
+ h: 120,
2646
+ l: 0
2647
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2648
+ h: 60,
2649
+ l: -20
2650
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2651
+ h: -60,
2652
+ l: -20
2653
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2654
+ h: 120,
2655
+ l: -10
2656
+ }), 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, {
2657
+ r: 5,
2658
+ g: 5,
2659
+ b: 5
2660
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2661
+ r: 10,
2662
+ g: 10,
2663
+ b: 10
2664
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2665
+ r: 15,
2666
+ g: 15,
2667
+ b: 15
2668
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2669
+ r: -5,
2670
+ g: -5,
2671
+ b: -5
2672
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2673
+ r: -10,
2674
+ g: -10,
2675
+ b: -10
2676
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2677
+ r: -15,
2678
+ g: -15,
2679
+ b: -15
2680
+ }), 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 = {
2681
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2682
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2683
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2684
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2685
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2686
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2687
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2688
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2689
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2690
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2691
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2692
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2693
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2694
+ }
2695
+ calculate(e) {
2696
+ if (typeof e != "object") {
2697
+ this.updateColors();
2698
+ return;
2699
+ }
2700
+ let t = Object.keys(e);
2701
+ t.forEach((t) => {
2702
+ this[t] = e[t];
2703
+ }), this.updateColors(), t.forEach((t) => {
2704
+ this[t] = e[t];
2705
+ });
2706
+ }
2707
+ }, U = {
2708
+ base: { getThemeVariables: B },
2709
+ dark: { getThemeVariables: Tt },
2710
+ default: { getThemeVariables: Et },
2711
+ forest: { getThemeVariables: Ot },
2712
+ neutral: { getThemeVariables: H },
2713
+ neo: { getThemeVariables: jt },
2714
+ "neo-dark": { getThemeVariables: Nt },
2715
+ redux: { getThemeVariables: Ft },
2716
+ "redux-dark": { getThemeVariables: Lt },
2717
+ "redux-color": { getThemeVariables: zt },
2718
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2719
+ let t = new Bt();
2720
+ return t.calculate(e), t;
2721
+ }, "getThemeVariables") }
2722
+ }, W = {
2723
+ flowchart: {
2724
+ useMaxWidth: !0,
2725
+ titleTopMargin: 25,
2726
+ subGraphTitleMargin: {
2727
+ top: 0,
2728
+ bottom: 0
2729
+ },
2730
+ diagramPadding: 8,
2731
+ htmlLabels: null,
2732
+ nodeSpacing: 50,
2733
+ rankSpacing: 50,
2734
+ curve: "basis",
2735
+ padding: 15,
2736
+ defaultRenderer: "dagre-wrapper",
2737
+ wrappingWidth: 200,
2738
+ inheritDir: !1
2739
+ },
2740
+ swimlane: {
2741
+ useMaxWidth: !0,
2742
+ lineHops: "arc",
2743
+ ignoreCrossLaneEdges: !0,
2744
+ optimizeRanksByCrossings: !0,
2745
+ automaticLaneOrdering: !1
2746
+ },
2747
+ sequence: {
2748
+ useMaxWidth: !0,
2749
+ hideUnusedParticipants: !1,
2750
+ activationWidth: 10,
2751
+ diagramMarginX: 50,
2752
+ diagramMarginY: 10,
2753
+ actorMargin: 50,
2754
+ width: 150,
2755
+ height: 65,
2756
+ boxMargin: 10,
2757
+ boxTextMargin: 5,
2758
+ noteMargin: 10,
2759
+ messageMargin: 35,
2760
+ messageAlign: "center",
2761
+ mirrorActors: !0,
2762
+ forceMenus: !1,
2763
+ bottomMarginAdj: 1,
2764
+ rightAngles: !1,
2765
+ showSequenceNumbers: !1,
2766
+ actorFontSize: 14,
2767
+ actorFontFamily: "\"Open Sans\", sans-serif",
2768
+ actorFontWeight: 400,
2769
+ noteFontSize: 14,
2770
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2771
+ noteFontWeight: 400,
2772
+ noteAlign: "center",
2773
+ messageFontSize: 16,
2774
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2775
+ messageFontWeight: 400,
2776
+ wrap: !1,
2777
+ wrapPadding: 10,
2778
+ labelBoxWidth: 50,
2779
+ labelBoxHeight: 20
2780
+ },
2781
+ gantt: {
2782
+ useMaxWidth: !0,
2783
+ titleTopMargin: 25,
2784
+ barHeight: 20,
2785
+ barGap: 4,
2786
+ topPadding: 50,
2787
+ rightPadding: 75,
2788
+ leftPadding: 75,
2789
+ gridLineStartPadding: 35,
2790
+ fontSize: 11,
2791
+ sectionFontSize: 11,
2792
+ numberSectionStyles: 4,
2793
+ axisFormat: "%Y-%m-%d",
2794
+ topAxis: !1,
2795
+ displayMode: "",
2796
+ weekday: "sunday"
2797
+ },
2798
+ journey: {
2799
+ useMaxWidth: !0,
2800
+ diagramMarginX: 50,
2801
+ diagramMarginY: 10,
2802
+ leftMargin: 150,
2803
+ maxLabelWidth: 360,
2804
+ width: 150,
2805
+ height: 50,
2806
+ boxMargin: 10,
2807
+ boxTextMargin: 5,
2808
+ noteMargin: 10,
2809
+ messageMargin: 35,
2810
+ messageAlign: "center",
2811
+ bottomMarginAdj: 1,
2812
+ rightAngles: !1,
2813
+ taskFontSize: 14,
2814
+ taskFontFamily: "\"Open Sans\", sans-serif",
2815
+ taskMargin: 50,
2816
+ activationWidth: 10,
2817
+ textPlacement: "fo",
2818
+ actorColours: [
2819
+ "#8FBC8F",
2820
+ "#7CFC00",
2821
+ "#00FFFF",
2822
+ "#20B2AA",
2823
+ "#B0E0E6",
2824
+ "#FFFFE0"
2825
+ ],
2826
+ sectionFills: [
2827
+ "#191970",
2828
+ "#8B008B",
2829
+ "#4B0082",
2830
+ "#2F4F4F",
2831
+ "#800000",
2832
+ "#8B4513",
2833
+ "#00008B"
2834
+ ],
2835
+ sectionColours: ["#fff"],
2836
+ titleColor: "",
2837
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2838
+ titleFontSize: "4ex"
2839
+ },
2840
+ class: {
2841
+ useMaxWidth: !0,
2842
+ titleTopMargin: 25,
2843
+ arrowMarkerAbsolute: !1,
2844
+ dividerMargin: 10,
2845
+ padding: 5,
2846
+ textHeight: 10,
2847
+ defaultRenderer: "dagre-wrapper",
2848
+ htmlLabels: !1,
2849
+ hideEmptyMembersBox: !1,
2850
+ hierarchicalNamespaces: !0
2851
+ },
2852
+ state: {
2853
+ useMaxWidth: !0,
2854
+ titleTopMargin: 25,
2855
+ dividerMargin: 10,
2856
+ sizeUnit: 5,
2857
+ padding: 8,
2858
+ textHeight: 10,
2859
+ titleShift: -15,
2860
+ noteMargin: 10,
2861
+ forkWidth: 70,
2862
+ forkHeight: 7,
2863
+ miniPadding: 2,
2864
+ fontSizeFactor: 5.02,
2865
+ fontSize: 24,
2866
+ labelHeight: 16,
2867
+ edgeLengthFactor: "20",
2868
+ compositTitleSize: 35,
2869
+ radius: 5,
2870
+ defaultRenderer: "dagre-wrapper"
2871
+ },
2872
+ er: {
2873
+ useMaxWidth: !0,
2874
+ titleTopMargin: 25,
2875
+ diagramPadding: 20,
2876
+ layoutDirection: "TB",
2877
+ minEntityWidth: 100,
2878
+ minEntityHeight: 75,
2879
+ entityPadding: 15,
2880
+ nodeSpacing: 140,
2881
+ rankSpacing: 80,
2882
+ stroke: "gray",
2883
+ fill: "honeydew",
2884
+ fontSize: 12
2885
+ },
2886
+ pie: {
2887
+ useMaxWidth: !0,
2888
+ textPosition: .75,
2889
+ donutHole: 0,
2890
+ legendPosition: "right",
2891
+ highlightSlice: ""
2892
+ },
2893
+ quadrantChart: {
2894
+ useMaxWidth: !0,
2895
+ chartWidth: 500,
2896
+ chartHeight: 500,
2897
+ titleFontSize: 20,
2898
+ titlePadding: 10,
2899
+ quadrantPadding: 5,
2900
+ xAxisLabelPadding: 5,
2901
+ yAxisLabelPadding: 5,
2902
+ xAxisLabelFontSize: 16,
2903
+ yAxisLabelFontSize: 16,
2904
+ quadrantLabelFontSize: 16,
2905
+ quadrantTextTopPadding: 5,
2906
+ pointTextPadding: 5,
2907
+ pointLabelFontSize: 12,
2908
+ pointRadius: 5,
2909
+ xAxisPosition: "top",
2910
+ yAxisPosition: "left",
2911
+ quadrantInternalBorderStrokeWidth: 1,
2912
+ quadrantExternalBorderStrokeWidth: 2
2913
+ },
2914
+ xyChart: {
2915
+ useMaxWidth: !0,
2916
+ width: 700,
2917
+ height: 500,
2918
+ titleFontSize: 20,
2919
+ titlePadding: 10,
2920
+ showDataLabel: !1,
2921
+ showDataLabelOutsideBar: !1,
2922
+ showTitle: !0,
2923
+ showLegend: !0,
2924
+ legendFontSize: 14,
2925
+ legendPadding: 10,
2926
+ xAxis: {
2927
+ $ref: "#/$defs/XYChartAxisConfig",
2928
+ showLabel: !0,
2929
+ labelFontSize: 14,
2930
+ labelPadding: 5,
2931
+ showTitle: !0,
2932
+ titleFontSize: 16,
2933
+ titlePadding: 5,
2934
+ showTick: !0,
2935
+ tickLength: 5,
2936
+ tickWidth: 2,
2937
+ showAxisLine: !0,
2938
+ axisLineWidth: 2,
2939
+ labelRotation: 0
2940
+ },
2941
+ yAxis: {
2942
+ $ref: "#/$defs/XYChartAxisConfig",
2943
+ showLabel: !0,
2944
+ labelFontSize: 14,
2945
+ labelPadding: 5,
2946
+ showTitle: !0,
2947
+ titleFontSize: 16,
2948
+ titlePadding: 5,
2949
+ showTick: !0,
2950
+ tickLength: 5,
2951
+ tickWidth: 2,
2952
+ showAxisLine: !0,
2953
+ axisLineWidth: 2,
2954
+ labelRotation: 0
2955
+ },
2956
+ chartOrientation: "vertical",
2957
+ plotReservedSpacePercent: 50
2958
+ },
2959
+ requirement: {
2960
+ useMaxWidth: !0,
2961
+ rect_fill: "#f9f9f9",
2962
+ text_color: "#333",
2963
+ rect_border_size: "0.5px",
2964
+ rect_border_color: "#bbb",
2965
+ rect_min_width: 200,
2966
+ rect_min_height: 200,
2967
+ fontSize: 14,
2968
+ rect_padding: 10,
2969
+ line_height: 20
2970
+ },
2971
+ mindmap: {
2972
+ useMaxWidth: !0,
2973
+ padding: 10,
2974
+ maxNodeWidth: 200,
2975
+ layoutAlgorithm: "cose-bilkent"
2976
+ },
2977
+ ishikawa: {
2978
+ useMaxWidth: !0,
2979
+ diagramPadding: 20
2980
+ },
2981
+ kanban: {
2982
+ useMaxWidth: !0,
2983
+ padding: 8,
2984
+ sectionWidth: 200,
2985
+ ticketBaseUrl: ""
2986
+ },
2987
+ timeline: {
2988
+ useMaxWidth: !0,
2989
+ diagramMarginX: 50,
2990
+ diagramMarginY: 10,
2991
+ leftMargin: 150,
2992
+ width: 150,
2993
+ height: 50,
2994
+ boxMargin: 10,
2995
+ boxTextMargin: 5,
2996
+ noteMargin: 10,
2997
+ messageMargin: 35,
2998
+ messageAlign: "center",
2999
+ bottomMarginAdj: 1,
3000
+ rightAngles: !1,
3001
+ taskFontSize: 14,
3002
+ taskFontFamily: "\"Open Sans\", sans-serif",
3003
+ taskMargin: 50,
3004
+ activationWidth: 10,
3005
+ textPlacement: "fo",
3006
+ actorColours: [
3007
+ "#8FBC8F",
3008
+ "#7CFC00",
3009
+ "#00FFFF",
3010
+ "#20B2AA",
3011
+ "#B0E0E6",
3012
+ "#FFFFE0"
3013
+ ],
3014
+ sectionFills: [
3015
+ "#191970",
3016
+ "#8B008B",
3017
+ "#4B0082",
3018
+ "#2F4F4F",
3019
+ "#800000",
3020
+ "#8B4513",
3021
+ "#00008B"
3022
+ ],
3023
+ sectionColours: ["#fff"],
3024
+ disableMulticolor: !1
3025
+ },
3026
+ gitGraph: {
3027
+ useMaxWidth: !0,
3028
+ titleTopMargin: 25,
3029
+ diagramPadding: 8,
3030
+ nodeLabel: {
3031
+ width: 75,
3032
+ height: 100,
3033
+ x: -25,
3034
+ y: 0
3035
+ },
3036
+ mainBranchName: "main",
3037
+ mainBranchOrder: 0,
3038
+ showCommitLabel: !0,
3039
+ showBranches: !0,
3040
+ rotateCommitLabel: !0,
3041
+ parallelCommits: !1,
3042
+ arrowMarkerAbsolute: !1
3043
+ },
3044
+ c4: {
3045
+ useMaxWidth: !0,
3046
+ diagramMarginX: 50,
3047
+ diagramMarginY: 10,
3048
+ c4ShapeMargin: 50,
3049
+ c4ShapePadding: 20,
3050
+ width: 216,
3051
+ height: 60,
3052
+ boxMargin: 10,
3053
+ c4ShapeInRow: 4,
3054
+ nextLinePaddingX: 0,
3055
+ c4BoundaryInRow: 2,
3056
+ personFontSize: 14,
3057
+ personFontFamily: "\"Open Sans\", sans-serif",
3058
+ personFontWeight: "normal",
3059
+ external_personFontSize: 14,
3060
+ external_personFontFamily: "\"Open Sans\", sans-serif",
3061
+ external_personFontWeight: "normal",
3062
+ systemFontSize: 14,
3063
+ systemFontFamily: "\"Open Sans\", sans-serif",
3064
+ systemFontWeight: "normal",
3065
+ external_systemFontSize: 14,
3066
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
3067
+ external_systemFontWeight: "normal",
3068
+ system_dbFontSize: 14,
3069
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
3070
+ system_dbFontWeight: "normal",
3071
+ external_system_dbFontSize: 14,
3072
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
3073
+ external_system_dbFontWeight: "normal",
3074
+ system_queueFontSize: 14,
3075
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
3076
+ system_queueFontWeight: "normal",
3077
+ external_system_queueFontSize: 14,
3078
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
3079
+ external_system_queueFontWeight: "normal",
3080
+ boundaryFontSize: 14,
3081
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
3082
+ boundaryFontWeight: "normal",
3083
+ messageFontSize: 12,
3084
+ messageFontFamily: "\"Open Sans\", sans-serif",
3085
+ messageFontWeight: "normal",
3086
+ containerFontSize: 14,
3087
+ containerFontFamily: "\"Open Sans\", sans-serif",
3088
+ containerFontWeight: "normal",
3089
+ external_containerFontSize: 14,
3090
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
3091
+ external_containerFontWeight: "normal",
3092
+ container_dbFontSize: 14,
3093
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
3094
+ container_dbFontWeight: "normal",
3095
+ external_container_dbFontSize: 14,
3096
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
3097
+ external_container_dbFontWeight: "normal",
3098
+ container_queueFontSize: 14,
3099
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
3100
+ container_queueFontWeight: "normal",
3101
+ external_container_queueFontSize: 14,
3102
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
3103
+ external_container_queueFontWeight: "normal",
3104
+ componentFontSize: 14,
3105
+ componentFontFamily: "\"Open Sans\", sans-serif",
3106
+ componentFontWeight: "normal",
3107
+ external_componentFontSize: 14,
3108
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
3109
+ external_componentFontWeight: "normal",
3110
+ component_dbFontSize: 14,
3111
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
3112
+ component_dbFontWeight: "normal",
3113
+ external_component_dbFontSize: 14,
3114
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
3115
+ external_component_dbFontWeight: "normal",
3116
+ component_queueFontSize: 14,
3117
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
3118
+ component_queueFontWeight: "normal",
3119
+ external_component_queueFontSize: 14,
3120
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
3121
+ external_component_queueFontWeight: "normal",
3122
+ wrap: !0,
3123
+ wrapPadding: 10,
3124
+ person_bg_color: "#08427B",
3125
+ person_border_color: "#073B6F",
3126
+ external_person_bg_color: "#686868",
3127
+ external_person_border_color: "#8A8A8A",
3128
+ system_bg_color: "#1168BD",
3129
+ system_border_color: "#3C7FC0",
3130
+ system_db_bg_color: "#1168BD",
3131
+ system_db_border_color: "#3C7FC0",
3132
+ system_queue_bg_color: "#1168BD",
3133
+ system_queue_border_color: "#3C7FC0",
3134
+ external_system_bg_color: "#999999",
3135
+ external_system_border_color: "#8A8A8A",
3136
+ external_system_db_bg_color: "#999999",
3137
+ external_system_db_border_color: "#8A8A8A",
3138
+ external_system_queue_bg_color: "#999999",
3139
+ external_system_queue_border_color: "#8A8A8A",
3140
+ container_bg_color: "#438DD5",
3141
+ container_border_color: "#3C7FC0",
3142
+ container_db_bg_color: "#438DD5",
3143
+ container_db_border_color: "#3C7FC0",
3144
+ container_queue_bg_color: "#438DD5",
3145
+ container_queue_border_color: "#3C7FC0",
3146
+ external_container_bg_color: "#B3B3B3",
3147
+ external_container_border_color: "#A6A6A6",
3148
+ external_container_db_bg_color: "#B3B3B3",
3149
+ external_container_db_border_color: "#A6A6A6",
3150
+ external_container_queue_bg_color: "#B3B3B3",
3151
+ external_container_queue_border_color: "#A6A6A6",
3152
+ component_bg_color: "#85BBF0",
3153
+ component_border_color: "#78A8D8",
3154
+ component_db_bg_color: "#85BBF0",
3155
+ component_db_border_color: "#78A8D8",
3156
+ component_queue_bg_color: "#85BBF0",
3157
+ component_queue_border_color: "#78A8D8",
3158
+ external_component_bg_color: "#CCCCCC",
3159
+ external_component_border_color: "#BFBFBF",
3160
+ external_component_db_bg_color: "#CCCCCC",
3161
+ external_component_db_border_color: "#BFBFBF",
3162
+ external_component_queue_bg_color: "#CCCCCC",
3163
+ external_component_queue_border_color: "#BFBFBF"
3164
+ },
3165
+ sankey: {
3166
+ useMaxWidth: !0,
3167
+ width: 600,
3168
+ height: 400,
3169
+ linkColor: "gradient",
3170
+ nodeAlignment: "justify",
3171
+ showValues: !0,
3172
+ prefix: "",
3173
+ suffix: "",
3174
+ nodeWidth: 10,
3175
+ nodePadding: 12,
3176
+ labelStyle: "legacy"
3177
+ },
3178
+ block: {
3179
+ useMaxWidth: !0,
3180
+ padding: 8
3181
+ },
3182
+ packet: {
3183
+ useMaxWidth: !0,
3184
+ rowHeight: 32,
3185
+ bitWidth: 32,
3186
+ bitsPerRow: 32,
3187
+ showBits: !0,
3188
+ paddingX: 5,
3189
+ paddingY: 5
3190
+ },
3191
+ treeView: {
3192
+ useMaxWidth: !0,
3193
+ rowIndent: 10,
3194
+ paddingX: 5,
3195
+ paddingY: 5,
3196
+ lineThickness: 1,
3197
+ showIcons: !1,
3198
+ defaultIconPack: "",
3199
+ filenameIcons: {},
3200
+ extensionIcons: {}
3201
+ },
3202
+ architecture: {
3203
+ useMaxWidth: !0,
3204
+ padding: 40,
3205
+ iconSize: 80,
3206
+ fontSize: 16,
3207
+ randomize: !1,
3208
+ nodeSeparation: 75,
3209
+ idealEdgeLengthMultiplier: 1.5,
3210
+ edgeElasticity: .45,
3211
+ numIter: 2500,
3212
+ seed: 1
3213
+ },
3214
+ eventmodeling: {
3215
+ useMaxWidth: !0,
3216
+ padding: 30,
3217
+ rowHeight: 32
3218
+ },
3219
+ radar: {
3220
+ useMaxWidth: !0,
3221
+ width: 600,
3222
+ height: 600,
3223
+ marginTop: 50,
3224
+ marginRight: 50,
3225
+ marginBottom: 50,
3226
+ marginLeft: 50,
3227
+ axisScaleFactor: 1,
3228
+ axisLabelFactor: 1.05,
3229
+ curveTension: .17
3230
+ },
3231
+ venn: {
3232
+ useMaxWidth: !0,
3233
+ width: 800,
3234
+ height: 450,
3235
+ padding: 8,
3236
+ useDebugLayout: !1
3237
+ },
3238
+ cynefin: {
3239
+ useMaxWidth: !0,
3240
+ width: 800,
3241
+ height: 600,
3242
+ padding: 40,
3243
+ showDomainDescriptions: !0,
3244
+ boundaryAmplitude: 8,
3245
+ seed: 0
3246
+ },
3247
+ theme: "default",
3248
+ look: "classic",
3249
+ handDrawnSeed: 0,
3250
+ layout: "dagre",
3251
+ maxTextSize: 5e4,
3252
+ maxEdges: 500,
3253
+ darkMode: !1,
3254
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3255
+ logLevel: 5,
3256
+ securityLevel: "strict",
3257
+ startOnLoad: !0,
3258
+ arrowMarkerAbsolute: !1,
3259
+ secure: [
3260
+ "secure",
3261
+ "securityLevel",
3262
+ "startOnLoad",
3263
+ "maxTextSize",
3264
+ "suppressErrorRendering",
3265
+ "maxEdges"
3266
+ ],
3267
+ legacyMathML: !1,
3268
+ forceLegacyMathML: !1,
3269
+ deterministicIds: !1,
3270
+ fontSize: 16,
3271
+ markdownAutoWrap: !0,
3272
+ suppressErrorRendering: !1
3273
+ }, Vt = {
3274
+ ...W,
3275
+ deterministicIDSeed: void 0,
3276
+ elk: {
3277
+ mergeEdges: !1,
3278
+ nodePlacementStrategy: "BRANDES_KOEPF",
3279
+ nodePlacementAlignment: "NONE",
3280
+ forceNodeModelOrder: !1,
3281
+ considerModelOrder: "NODES_AND_EDGES",
3282
+ keepEntryNodeOnTop: !1
3283
+ },
3284
+ themeCSS: void 0,
3285
+ themeVariables: U.default.getThemeVariables(),
3286
+ sequence: {
3287
+ ...W.sequence,
3288
+ messageFont: /* @__PURE__ */ n(function() {
3289
+ return {
3290
+ fontFamily: this.messageFontFamily,
3291
+ fontSize: this.messageFontSize,
3292
+ fontWeight: this.messageFontWeight
3293
+ };
3294
+ }, "messageFont"),
3295
+ noteFont: /* @__PURE__ */ n(function() {
3296
+ return {
3297
+ fontFamily: this.noteFontFamily,
3298
+ fontSize: this.noteFontSize,
3299
+ fontWeight: this.noteFontWeight
3300
+ };
3301
+ }, "noteFont"),
3302
+ actorFont: /* @__PURE__ */ n(function() {
3303
+ return {
3304
+ fontFamily: this.actorFontFamily,
3305
+ fontSize: this.actorFontSize,
3306
+ fontWeight: this.actorFontWeight
3307
+ };
3308
+ }, "actorFont")
3309
+ },
3310
+ class: {
3311
+ defaultRenderer: "dagre-wrapper",
3312
+ hideEmptyMembersBox: !1,
3313
+ hierarchicalNamespaces: !0
3314
+ },
3315
+ gantt: {
3316
+ ...W.gantt,
3317
+ tickInterval: void 0,
3318
+ useWidth: void 0
3319
+ },
3320
+ c4: {
3321
+ ...W.c4,
3322
+ useWidth: void 0,
3323
+ personFont: /* @__PURE__ */ n(function() {
3324
+ return {
3325
+ fontFamily: this.personFontFamily,
3326
+ fontSize: this.personFontSize,
3327
+ fontWeight: this.personFontWeight
3328
+ };
3329
+ }, "personFont"),
3330
+ flowchart: {
3331
+ ...W.flowchart,
3332
+ inheritDir: !1
3333
+ },
3334
+ external_personFont: /* @__PURE__ */ n(function() {
3335
+ return {
3336
+ fontFamily: this.external_personFontFamily,
3337
+ fontSize: this.external_personFontSize,
3338
+ fontWeight: this.external_personFontWeight
3339
+ };
3340
+ }, "external_personFont"),
3341
+ systemFont: /* @__PURE__ */ n(function() {
3342
+ return {
3343
+ fontFamily: this.systemFontFamily,
3344
+ fontSize: this.systemFontSize,
3345
+ fontWeight: this.systemFontWeight
3346
+ };
3347
+ }, "systemFont"),
3348
+ external_systemFont: /* @__PURE__ */ n(function() {
3349
+ return {
3350
+ fontFamily: this.external_systemFontFamily,
3351
+ fontSize: this.external_systemFontSize,
3352
+ fontWeight: this.external_systemFontWeight
3353
+ };
3354
+ }, "external_systemFont"),
3355
+ system_dbFont: /* @__PURE__ */ n(function() {
3356
+ return {
3357
+ fontFamily: this.system_dbFontFamily,
3358
+ fontSize: this.system_dbFontSize,
3359
+ fontWeight: this.system_dbFontWeight
3360
+ };
3361
+ }, "system_dbFont"),
3362
+ external_system_dbFont: /* @__PURE__ */ n(function() {
3363
+ return {
3364
+ fontFamily: this.external_system_dbFontFamily,
3365
+ fontSize: this.external_system_dbFontSize,
3366
+ fontWeight: this.external_system_dbFontWeight
3367
+ };
3368
+ }, "external_system_dbFont"),
3369
+ system_queueFont: /* @__PURE__ */ n(function() {
3370
+ return {
3371
+ fontFamily: this.system_queueFontFamily,
3372
+ fontSize: this.system_queueFontSize,
3373
+ fontWeight: this.system_queueFontWeight
3374
+ };
3375
+ }, "system_queueFont"),
3376
+ external_system_queueFont: /* @__PURE__ */ n(function() {
3377
+ return {
3378
+ fontFamily: this.external_system_queueFontFamily,
3379
+ fontSize: this.external_system_queueFontSize,
3380
+ fontWeight: this.external_system_queueFontWeight
3381
+ };
3382
+ }, "external_system_queueFont"),
3383
+ containerFont: /* @__PURE__ */ n(function() {
3384
+ return {
3385
+ fontFamily: this.containerFontFamily,
3386
+ fontSize: this.containerFontSize,
3387
+ fontWeight: this.containerFontWeight
3388
+ };
3389
+ }, "containerFont"),
3390
+ external_containerFont: /* @__PURE__ */ n(function() {
3391
+ return {
3392
+ fontFamily: this.external_containerFontFamily,
3393
+ fontSize: this.external_containerFontSize,
3394
+ fontWeight: this.external_containerFontWeight
3395
+ };
3396
+ }, "external_containerFont"),
3397
+ container_dbFont: /* @__PURE__ */ n(function() {
3398
+ return {
3399
+ fontFamily: this.container_dbFontFamily,
3400
+ fontSize: this.container_dbFontSize,
3401
+ fontWeight: this.container_dbFontWeight
3402
+ };
3403
+ }, "container_dbFont"),
3404
+ external_container_dbFont: /* @__PURE__ */ n(function() {
3405
+ return {
3406
+ fontFamily: this.external_container_dbFontFamily,
3407
+ fontSize: this.external_container_dbFontSize,
3408
+ fontWeight: this.external_container_dbFontWeight
3409
+ };
3410
+ }, "external_container_dbFont"),
3411
+ container_queueFont: /* @__PURE__ */ n(function() {
3412
+ return {
3413
+ fontFamily: this.container_queueFontFamily,
3414
+ fontSize: this.container_queueFontSize,
3415
+ fontWeight: this.container_queueFontWeight
3416
+ };
3417
+ }, "container_queueFont"),
3418
+ external_container_queueFont: /* @__PURE__ */ n(function() {
3419
+ return {
3420
+ fontFamily: this.external_container_queueFontFamily,
3421
+ fontSize: this.external_container_queueFontSize,
3422
+ fontWeight: this.external_container_queueFontWeight
3423
+ };
3424
+ }, "external_container_queueFont"),
3425
+ componentFont: /* @__PURE__ */ n(function() {
3426
+ return {
3427
+ fontFamily: this.componentFontFamily,
3428
+ fontSize: this.componentFontSize,
3429
+ fontWeight: this.componentFontWeight
3430
+ };
3431
+ }, "componentFont"),
3432
+ external_componentFont: /* @__PURE__ */ n(function() {
3433
+ return {
3434
+ fontFamily: this.external_componentFontFamily,
3435
+ fontSize: this.external_componentFontSize,
3436
+ fontWeight: this.external_componentFontWeight
3437
+ };
3438
+ }, "external_componentFont"),
3439
+ component_dbFont: /* @__PURE__ */ n(function() {
3440
+ return {
3441
+ fontFamily: this.component_dbFontFamily,
3442
+ fontSize: this.component_dbFontSize,
3443
+ fontWeight: this.component_dbFontWeight
3444
+ };
3445
+ }, "component_dbFont"),
3446
+ external_component_dbFont: /* @__PURE__ */ n(function() {
3447
+ return {
3448
+ fontFamily: this.external_component_dbFontFamily,
3449
+ fontSize: this.external_component_dbFontSize,
3450
+ fontWeight: this.external_component_dbFontWeight
3451
+ };
3452
+ }, "external_component_dbFont"),
3453
+ component_queueFont: /* @__PURE__ */ n(function() {
3454
+ return {
3455
+ fontFamily: this.component_queueFontFamily,
3456
+ fontSize: this.component_queueFontSize,
3457
+ fontWeight: this.component_queueFontWeight
3458
+ };
3459
+ }, "component_queueFont"),
3460
+ external_component_queueFont: /* @__PURE__ */ n(function() {
3461
+ return {
3462
+ fontFamily: this.external_component_queueFontFamily,
3463
+ fontSize: this.external_component_queueFontSize,
3464
+ fontWeight: this.external_component_queueFontWeight
3465
+ };
3466
+ }, "external_component_queueFont"),
3467
+ boundaryFont: /* @__PURE__ */ n(function() {
3468
+ return {
3469
+ fontFamily: this.boundaryFontFamily,
3470
+ fontSize: this.boundaryFontSize,
3471
+ fontWeight: this.boundaryFontWeight
3472
+ };
3473
+ }, "boundaryFont"),
3474
+ messageFont: /* @__PURE__ */ n(function() {
3475
+ return {
3476
+ fontFamily: this.messageFontFamily,
3477
+ fontSize: this.messageFontSize,
3478
+ fontWeight: this.messageFontWeight
3479
+ };
3480
+ }, "messageFont")
3481
+ },
3482
+ pie: {
3483
+ ...W.pie,
3484
+ useWidth: 984
3485
+ },
3486
+ xyChart: {
3487
+ ...W.xyChart,
3488
+ useWidth: void 0
3489
+ },
3490
+ requirement: {
3491
+ ...W.requirement,
3492
+ useWidth: void 0
3493
+ },
3494
+ packet: { ...W.packet },
3495
+ eventmodeling: { ...W.eventmodeling },
3496
+ treeView: {
3497
+ ...W.treeView,
3498
+ useWidth: void 0
3499
+ },
3500
+ radar: { ...W.radar },
3501
+ railroad: {
3502
+ ...W.railroad,
3503
+ fontSize: void 0,
3504
+ fontFamily: void 0,
3505
+ terminalFill: void 0,
3506
+ terminalStroke: void 0,
3507
+ terminalTextColor: void 0,
3508
+ nonTerminalFill: void 0,
3509
+ nonTerminalStroke: void 0,
3510
+ nonTerminalTextColor: void 0,
3511
+ lineColor: void 0,
3512
+ markerFill: void 0,
3513
+ commentFill: void 0,
3514
+ commentStroke: void 0,
3515
+ commentTextColor: void 0,
3516
+ specialFill: void 0,
3517
+ specialStroke: void 0,
3518
+ ruleNameColor: void 0
3519
+ },
3520
+ ishikawa: { ...W.ishikawa },
3521
+ sankey: {
3522
+ ...W.sankey,
3523
+ nodeColors: void 0
3524
+ },
3525
+ treemap: {
3526
+ useMaxWidth: !0,
3527
+ padding: 10,
3528
+ diagramPadding: 8,
3529
+ showValues: !0,
3530
+ nodeWidth: 100,
3531
+ nodeHeight: 40,
3532
+ borderWidth: 1,
3533
+ valueFontSize: 12,
3534
+ labelFontSize: 14,
3535
+ valueFormat: ","
3536
+ },
3537
+ venn: { ...W.venn },
3538
+ cynefin: { ...W.cynefin }
3539
+ }, G = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3540
+ ...n,
3541
+ t + r,
3542
+ ...G(e[r], "")
3543
+ ] : [...n, t + r], []), "keyify"), Ht = new Set(G(Vt, "")), K = Vt, Ut = {
3544
+ nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3545
+ filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3546
+ extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3547
+ }, Wt = /* @__PURE__ */ n((e, n) => {
3548
+ for (let r of Object.keys(e)) {
3549
+ let i = e[r];
3550
+ (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]);
3551
+ }
3552
+ }, "sanitizeDictionaryConfig"), Gt = /* @__PURE__ */ n((e) => {
3553
+ if (t.debug("sanitizeDirective called with", e), typeof e == "object" && e) {
3554
+ if (Array.isArray(e)) e.forEach((e) => Gt(e));
3555
+ else {
3556
+ for (let n of Object.keys(e)) if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Ht.has(n) || e[n] == null) t.debug("sanitize deleting key: ", n), delete e[n];
3557
+ else if (typeof e[n] == "object") {
3558
+ let r = Ut[n];
3559
+ r ? Wt(e[n], r) : (t.debug("sanitizing object", n), Gt(e[n]));
3560
+ } else for (let r of [
3561
+ "themeCSS",
3562
+ "fontFamily",
3563
+ "altFontFamily"
3564
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Kt(e[n]));
3565
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3566
+ let n = e.themeVariables[t];
3567
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3568
+ }
3569
+ t.debug("After sanitization", e);
3570
+ }
3571
+ }
3572
+ }, "sanitizeDirective"), Kt = /* @__PURE__ */ n((e) => {
3573
+ let t = 0, n = 0;
3574
+ for (let r of e) {
3575
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3576
+ r === "{" ? t++ : r === "}" && n++;
3577
+ }
3578
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3579
+ }, "sanitizeCss"), qt = Object.freeze(K), Jt = /* @__PURE__ */ n((e) => !(e === !1 || [
3580
+ "false",
3581
+ "null",
3582
+ "0"
3583
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), q = I({}, qt), J, Y = [], Yt = I({}, qt), Xt = /* @__PURE__ */ n((e, t) => {
3584
+ let n = I({}, e), r = {};
3585
+ for (let e of t) rn(e), r = I(r, e);
3586
+ if (n = I(n, r), r.theme && r.theme in U) {
3587
+ let e = I(I({}, J).themeVariables || {}, r.themeVariables);
3588
+ n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3589
+ }
3590
+ return Yt = n, ln(Yt), Yt;
3591
+ }, "updateCurrentConfig"), Zt = /* @__PURE__ */ n((e) => (q = I({}, qt), q = I(q, e), e.theme && U[e.theme] && (q.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Xt(q, Y), q), "setSiteConfig"), Qt = /* @__PURE__ */ n((e) => {
3592
+ J = I({}, e);
3593
+ }, "saveConfigFromInitialize"), $t = /* @__PURE__ */ n((e) => (q = I(q, e), Xt(q, Y), q), "updateSiteConfig"), en = /* @__PURE__ */ n(() => I({}, q), "getSiteConfig"), tn = /* @__PURE__ */ n((e) => (Xt(Yt, [e]), nn()), "setConfig"), nn = /* @__PURE__ */ n(() => I({}, Yt), "getConfig"), rn = /* @__PURE__ */ n((e) => {
3594
+ e && (["secure", ...q.secure ?? []].forEach((n) => {
3595
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3596
+ }), Object.keys(e).forEach((t) => {
3597
+ t.startsWith("__") && delete e[t];
3598
+ }), Object.keys(e).forEach((t) => {
3599
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && rn(e[t]);
3600
+ }));
3601
+ }, "sanitize"), an = /* @__PURE__ */ n((e) => {
3602
+ Gt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3603
+ ...e.themeVariables,
3604
+ fontFamily: e.fontFamily
3605
+ }), Y.push(e), Xt(q, Y);
3606
+ }, "addDirective"), X = /* @__PURE__ */ n((e = q) => {
3607
+ Y = [], Xt(e, Y);
3608
+ }, "reset"), on = {
3609
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3610
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3611
+ }, sn = {}, cn = /* @__PURE__ */ n((e) => {
3612
+ sn[e] || (t.warn(on[e]), sn[e] = !0);
3613
+ }, "issueWarning"), ln = /* @__PURE__ */ n((e) => {
3614
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && cn("LAZY_LOAD_DEPRECATED");
3615
+ }, "checkConfig"), un = /* @__PURE__ */ n(() => {
3616
+ let e = {};
3617
+ J && (e = I(e, J));
3618
+ for (let t of Y) e = I(e, t);
3619
+ return e;
3620
+ }, "getUserDefinedConfig"), dn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && cn("FLOWCHART_HTML_LABELS_DEPRECATED"), Jt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), fn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, pn = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, mn = /\s*%%.*\n/gm, hn = class extends Error {
3621
+ static {
3622
+ n(this, "UnknownDiagramError");
3623
+ }
3624
+ constructor(e) {
3625
+ super(e), this.name = "UnknownDiagramError";
3626
+ }
3627
+ }, Z = {}, gn = /* @__PURE__ */ n(function(e, t) {
3628
+ e = e.replace(fn, "").replace(pn, "").replace(mn, "\n");
3629
+ for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
3630
+ throw new hn(`No diagram type detected matching given configuration for text: ${e}`);
3631
+ }, "detectType"), _n = /* @__PURE__ */ n((...e) => {
3632
+ for (let { id: t, detector: n, loader: r } of e) vn(t, n, r);
3633
+ }, "registerLazyLoadedDiagrams"), vn = /* @__PURE__ */ n((e, n, r) => {
3634
+ Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
3635
+ detector: n,
3636
+ loader: r
3637
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
3638
+ }, "addDetector"), yn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), bn = /<br\s*\/?>/gi, xn = /* @__PURE__ */ n((e) => e ? jn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Sn = /* @__PURE__ */ (() => {
3639
+ let e = !1;
3640
+ return () => {
3641
+ e ||= (Cn(), !0);
3642
+ };
3643
+ })();
3644
+ function Cn() {
3645
+ let e = "data-temp-href-target";
3646
+ xt.addHook("beforeSanitizeAttributes", (t) => {
3647
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3648
+ }), xt.addHook("afterSanitizeAttributes", (t) => {
3649
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3650
+ });
3651
+ }
3652
+ n(Cn, "setupDompurifyHooks");
3653
+ var wn = /* @__PURE__ */ n((e) => (Sn(), xt.sanitize(e)), "removeScript"), Tn = /* @__PURE__ */ n((e, t) => {
3654
+ if (dn(t)) {
3655
+ let n = t.securityLevel;
3656
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = wn(e) : n !== "loose" && (e = jn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = An(e));
3657
+ }
3658
+ return e;
3659
+ }, "sanitizeMore"), En = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? xt.sanitize(Tn(e, t), t.dompurifyConfig).toString() : xt.sanitize(Tn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Dn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? En(e, t) : e.flat().map((e) => En(e, t)), "sanitizeTextOrArray"), On = /* @__PURE__ */ n((e) => bn.test(e), "hasBreaks"), kn = /* @__PURE__ */ n((e) => e.split(bn), "splitBreaks"), An = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), jn = /* @__PURE__ */ n((e) => e.replace(bn, "#br#"), "breakToPlaceholder"), Mn = /* @__PURE__ */ n((e) => {
3660
+ let t = "";
3661
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3662
+ }, "getUrl"), Nn = /* @__PURE__ */ n(function(...e) {
3663
+ let t = e.filter((e) => !isNaN(e));
3664
+ return Math.max(...t);
3665
+ }, "getMax"), Pn = /* @__PURE__ */ n(function(...e) {
3666
+ let t = e.filter((e) => !isNaN(e));
3667
+ return Math.min(...t);
3668
+ }, "getMin"), Fn = /* @__PURE__ */ n(function(e) {
3669
+ let t = e.split(/(,)/), n = [];
3670
+ for (let e = 0; e < t.length; e++) {
3671
+ let r = t[e];
3672
+ if (r === "," && e > 0 && e + 1 < t.length) {
3673
+ let i = t[e - 1], a = t[e + 1];
3674
+ In(i, a) && (r = i + "," + a, e++, n.pop());
3675
+ }
3676
+ n.push($(r));
3677
+ }
3678
+ return n.join("");
3679
+ }, "parseGenericTypes"), Q = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), In = /* @__PURE__ */ n((e, t) => {
3680
+ let n = Q(e, "~"), r = Q(t, "~");
3681
+ return n === 1 && r === 1;
3682
+ }, "shouldCombineSets"), $ = /* @__PURE__ */ n((e) => {
3683
+ let t = Q(e, "~"), n = !1;
3684
+ if (t <= 1) return e;
3685
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3686
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3687
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3688
+ return n && r.unshift("~"), r.join("");
3689
+ }, "processSet"), Ln = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Rn = /\$\$(.*?)\$\$/g, zn = /* @__PURE__ */ n((e) => (e.match(Rn)?.length ?? 0) > 0, "hasKatex"), Bn = /* @__PURE__ */ n(async (e, t) => {
3690
+ let n = document.createElement("div");
3691
+ n.innerHTML = await Hn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3692
+ let r = {
3693
+ width: n.clientWidth,
3694
+ height: n.clientHeight
3695
+ };
3696
+ return n.remove(), r;
3697
+ }, "calculateMathMLDimensions"), Vn = /* @__PURE__ */ n(async (e, t) => {
3698
+ if (!zn(e)) return e;
3699
+ if (!(Ln() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Rn, "MathML is unsupported in this environment.");
3700
+ {
3701
+ let { default: n } = await import("./katex-DmPOayaq.js"), r = t.forceLegacyMathML || !Ln() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3702
+ return e.split(bn).map((e) => zn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Rn, (e, t) => n.renderToString(t, {
3703
+ throwOnError: !0,
3704
+ displayMode: !0,
3705
+ output: r
3706
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3707
+ }
3708
+ }, "renderKatexUnsanitized"), Hn = /* @__PURE__ */ n(async (e, t) => En(await Vn(e, t), t), "renderKatexSanitized"), Un = {
3709
+ getRows: xn,
3710
+ sanitizeText: En,
3711
+ sanitizeTextOrArray: Dn,
3712
+ hasBreaks: On,
3713
+ splitBreaks: kn,
3714
+ lineBreakRegex: bn,
3715
+ removeScript: wn,
3716
+ getUrl: Mn,
3717
+ evaluate: Jt,
3718
+ getMax: Nn,
3719
+ getMin: Pn
3720
+ }, Wn = /* @__PURE__ */ n(function(e, t) {
3721
+ for (let n of t) e.attr(n[0], n[1]);
3722
+ }, "d3Attrs"), Gn = /* @__PURE__ */ n(function(e, t, n) {
3723
+ let r = /* @__PURE__ */ new Map();
3724
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3725
+ }, "calculateSvgSizeAttrs"), Kn = /* @__PURE__ */ n(function(e, t, n, r) {
3726
+ Wn(e, Gn(t, n, r));
3727
+ }, "configureSvgSize"), qn = /* @__PURE__ */ n(function(e, n, r, i) {
3728
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3729
+ t.info(`SVG bounds: ${o}x${s}`, a);
3730
+ let c = 0, l = 0;
3731
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Kn(n, l, c, i);
3732
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3733
+ n.attr("viewBox", u);
3734
+ }, "setupGraphViewbox"), Jn = {};
3735
+ function Yn(e) {
3736
+ return [...e.cssRules].map((e) => e.cssText).join("\n");
3737
+ }
3738
+ n(Yn, "cssStyleSheetToString");
3739
+ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
3740
+ let a = "";
3741
+ return e in Jn && Jn[e] ? a = Jn[e]({
3742
+ ...r,
3743
+ svgId: i
3744
+ }) : t.warn(`No theme found for ${e}`), `& {
3745
+ font-family: ${r.fontFamily};
3746
+ font-size: ${r.fontSize};
3747
+ fill: ${r.textColor}
3748
+ }
3749
+ @keyframes edge-animation-frame {
3750
+ from {
3751
+ stroke-dashoffset: 0;
3752
+ }
3753
+ }
3754
+ @keyframes dash {
3755
+ to {
3756
+ stroke-dashoffset: 0;
3757
+ }
3758
+ }
3759
+ & .edge-animation-slow {
3760
+ stroke-dasharray: 9,5 !important;
3761
+ stroke-dashoffset: 900;
3762
+ animation: dash 50s linear infinite;
3763
+ stroke-linecap: round;
3764
+ }
3765
+ & .edge-animation-fast {
3766
+ stroke-dasharray: 9,5 !important;
3767
+ stroke-dashoffset: 900;
3768
+ animation: dash 20s linear infinite;
3769
+ stroke-linecap: round;
3770
+ }
3771
+ /* Classes common for multiple diagrams */
3772
+
3773
+ & .error-icon {
3774
+ fill: ${r.errorBkgColor};
3775
+ }
3776
+ & .error-text {
3777
+ fill: ${r.errorTextColor};
3778
+ stroke: ${r.errorTextColor};
3779
+ }
3780
+
3781
+ & .edge-thickness-normal {
3782
+ stroke-width: ${r.strokeWidth ?? 1}px;
3783
+ }
3784
+ & .edge-thickness-thick {
3785
+ stroke-width: 3.5px
3786
+ }
3787
+ & .edge-pattern-solid {
3788
+ stroke-dasharray: 0;
3789
+ }
3790
+ & .edge-thickness-invisible {
3791
+ stroke-width: 0;
3792
+ fill: none;
3793
+ }
3794
+ & .edge-pattern-dashed{
3795
+ stroke-dasharray: 3;
3796
+ }
3797
+ .edge-pattern-dotted {
3798
+ stroke-dasharray: 2;
3799
+ }
3800
+
3801
+ & .marker {
3802
+ fill: ${r.lineColor};
3803
+ stroke: ${r.lineColor};
3804
+ }
3805
+ & .marker.cross {
3806
+ stroke: ${r.lineColor};
3807
+ }
3808
+
3809
+ & svg {
3810
+ font-family: ${r.fontFamily};
3811
+ font-size: ${r.fontSize};
3812
+ }
3813
+ & p {
3814
+ margin: 0
3815
+ }
3816
+
3817
+ ${a}
3818
+ .node .neo-node {
3819
+ stroke: ${r.nodeBorder};
3820
+ }
3821
+
3822
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3823
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3824
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3825
+ }
3826
+ [data-look="neo"].swimlane.cluster rect {
3827
+ filter: none;
3828
+ }
3829
+
3830
+
3831
+ [data-look="neo"].node path {
3832
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3833
+ stroke-width: ${r.strokeWidth ?? 1}px;
3834
+ }
3835
+
3836
+ [data-look="neo"].node .outer-path {
3837
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3838
+ }
3839
+
3840
+ [data-look="neo"].node .neo-line path {
3841
+ stroke: ${r.nodeBorder};
3842
+ filter: none;
3843
+ }
3844
+
3845
+ [data-look="neo"].node circle{
3846
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3847
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3848
+ }
3849
+
3850
+ [data-look="neo"].node circle .state-start{
3851
+ fill: #000000;
3852
+ }
3853
+
3854
+ [data-look="neo"].icon-shape .icon {
3855
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3856
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3857
+ }
3858
+
3859
+ [data-look="neo"].icon-shape .icon-neo path {
3860
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3861
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3862
+ }
3863
+
3864
+ ${n}
3865
+ `;
3866
+ }, "getStyles"), Zn = /* @__PURE__ */ n((e, t) => {
3867
+ t !== void 0 && (Jn[e] = t);
3868
+ }, "addStylesForDiagram"), Qn = Xn, $n = {};
3869
+ r($n, {
3870
+ clear: () => ir,
3871
+ getAccDescription: () => cr,
3872
+ getAccTitle: () => or,
3873
+ getDiagramTitle: () => ur,
3874
+ setAccDescription: () => sr,
3875
+ setAccTitle: () => ar,
3876
+ setDiagramTitle: () => lr
3877
+ });
3878
+ var er = "", tr = "", nr = "", rr = /* @__PURE__ */ n((e) => En(e, nn()), "sanitizeText"), ir = /* @__PURE__ */ n(() => {
3879
+ er = "", nr = "", tr = "";
3880
+ }, "clear"), ar = /* @__PURE__ */ n((e) => {
3881
+ er = rr(e).replace(/^\s+/g, "");
3882
+ }, "setAccTitle"), or = /* @__PURE__ */ n(() => er, "getAccTitle"), sr = /* @__PURE__ */ n((e) => {
3883
+ nr = rr(e).replace(/\n\s+/g, "\n");
3884
+ }, "setAccDescription"), cr = /* @__PURE__ */ n(() => nr, "getAccDescription"), lr = /* @__PURE__ */ n((e) => {
3885
+ tr = rr(e);
3886
+ }, "setDiagramTitle"), ur = /* @__PURE__ */ n(() => tr, "getDiagramTitle"), dr = t, fr = e, pr = nn, mr = tn, hr = qt, gr = /* @__PURE__ */ n((e) => En(e, pr()), "sanitizeText"), _r = qn, vr = /* @__PURE__ */ n(() => $n, "getCommonDb"), yr = {}, br = /* @__PURE__ */ n((e, t, n) => {
3887
+ yr[e] && dr.warn(`Diagram with id ${e} already registered. Overwriting.`), yr[e] = t, n && vn(e, n), Zn(e, t.styles), t.injectUtils?.(dr, fr, pr, gr, _r, vr(), () => {});
3888
+ }, "registerDiagram"), xr = /* @__PURE__ */ n((e) => {
3889
+ if (e in yr) return yr[e];
3890
+ throw new Sr(e);
3891
+ }, "getDiagram"), Sr = class extends Error {
3892
+ static {
3893
+ n(this, "DiagramNotFoundError");
3894
+ }
3895
+ constructor(e) {
3896
+ super(`Diagram ${e} not found.`);
3897
+ }
3898
+ };
3899
+ //#endregion
3900
+ export { xt as $, zn as A, gr as B, yn as C, Et as D, en as E, Hn as F, mr as G, sr as H, X as I, qn as J, lr as K, Kt as L, Fn as M, br as N, Mn as O, _n as P, $t as Q, Gt as R, xr as S, dn as T, ar as U, Qt as V, tn as W, Qn as X, _r as Y, U as Z, fn as _, ir as a, m as at, nn as b, Kn as c, hr as d, b as et, K as f, Jt as g, pn as h, Bn as i, h as it, bn as j, un as k, Yn as l, Z as m, an as n, v as nt, $n as o, a as ot, gn as p, Zt as q, I as r, _ as rt, Un as s, hn as t, y as tt, qt as u, cr as v, ur as w, pr as x, or as y, En as z };