@smarter.sh/ui-chat 0.8.0 → 0.9.1

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