@marimo-team/islands 0.12.1-dev2 → 0.12.1-dev21

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 (92) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BUkHSSQ3.js → ConnectedDataExplorerComponent-DNQoDjFe.js} +8 -8
  2. package/dist/{VegaLite-D2gsHKuf.js → VegaLite-C61XFnJy.js} +2456 -2455
  3. package/dist/{_baseUniq-CGdEI3Nv.js → _baseUniq-BVJ8xAuG.js} +1 -1
  4. package/dist/{any-language-editor-CKyudq2-.js → any-language-editor-OJReD1ph.js} +176 -177
  5. package/dist/architectureDiagram-IEHRJDOE-C5szj5L-.js +4634 -0
  6. package/dist/assets/{save-worker-J2nVA3vw.js → save-worker-CYdkP5Ic.js} +5 -5
  7. package/dist/assets/{worker-6ypxTHEH.js → worker-CH7zxkMA.js} +5 -5
  8. package/dist/assets/{worker-0hM8VAjI.js → worker-DEw2ZetQ.js} +5 -5
  9. package/dist/{blockDiagram-ZHA2E4KO-BlCDChLH.js → blockDiagram-JOT3LUYC-6huJKNk4.js} +4 -4
  10. package/dist/{c4Diagram-6F5ED5ID-niLscHfK.js → c4Diagram-VJAJSXHY-DLdlB4_f.js} +2 -2
  11. package/dist/{channel-Bt8mGm9q.js → channel-C4MpN-FJ.js} +1 -1
  12. package/dist/{chunk-TMUBEWPD-CQLP9BEl.js → chunk-4BMEZGHF-CczBKfna.js} +1 -1
  13. package/dist/chunk-A2AXSNBT-BsMPztSQ.js +1372 -0
  14. package/dist/chunk-AEK57VVT-B6c3n8K2.js +1415 -0
  15. package/dist/{chunk-ASOPGD6M-DCxLLtgf.js → chunk-D6G4REZN-X8xBS5rG.js} +1 -1
  16. package/dist/{chunk-5HRBRIJM-DjjlC6eW.js → chunk-RZ5BOZE2-CUqnF2K6.js} +1 -1
  17. package/dist/{chunk-KFBOBJHC-DPkQurpv.js → chunk-XZIHB7SX-CSouwcyb.js} +1 -1
  18. package/dist/classDiagram-GIVACNV2-CG_R_HQh.js +16 -0
  19. package/dist/classDiagram-v2-COTLJTTW-CG_R_HQh.js +16 -0
  20. package/dist/{clike-BLr83cjT.js → clike-BUuHEmgZ.js} +19 -17
  21. package/dist/{clone-COI_V4qE.js → clone-DK3J-MiR.js} +1 -1
  22. package/dist/{dagre-4EVJKHTY-DPsWdzds.js → dagre-OKDRZEBW-D8zhCeNW.js} +46 -46
  23. package/dist/{data-editor-D2rMsHxb.js → data-editor-BHWBseKi.js} +27 -22
  24. package/dist/diagram-SSKATNLV-pHZ4gvQ1.js +221 -0
  25. package/dist/{diagram-QW4FP2JN-D4dzrYii.js → diagram-VNBRO52H-D5_43LWo.js} +28 -28
  26. package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
  27. package/dist/erDiagram-Q7BY3M3F-CqUXZyK-.js +841 -0
  28. package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
  29. package/dist/flowDiagram-4HSFHLVR-DwhP_PW-.js +1622 -0
  30. package/dist/ganttDiagram-APWFNJXF-Coo7g8mK.js +1681 -0
  31. package/dist/{gitGraphDiagram-NRZ2UAAF-CO9Yfk-1.js → gitGraphDiagram-7IBYFJ6S-CJM5LDZc.js} +55 -55
  32. package/dist/{graph-j21MX5m5.js → graph-DXseY-wc.js} +3 -3
  33. package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
  34. package/dist/{index-DwhNQhNY.js → index-B-lvhTmE.js} +1 -1
  35. package/dist/{index-CZoype9l.js → index-B4nMPVvH.js} +1 -1
  36. package/dist/{index-C-FP0asF.js → index-BJcH72DF.js} +1 -1
  37. package/dist/{index-DATq7mzH.js → index-BUjAylGO.js} +1 -1
  38. package/dist/{index-CNYIP8n0.js → index-BeNQgFqm.js} +1 -1
  39. package/dist/{index-CqtUFj8g.js → index-BfQvDHaW.js} +1 -1
  40. package/dist/{index-D83p58Zi.js → index-BnGDaicg.js} +1 -1
  41. package/dist/{index-CxqVUOhW.js → index-C2ispfH7.js} +1 -1
  42. package/dist/{index-Cr0IVnKP.js → index-C31uOHRg.js} +3 -3
  43. package/dist/{index-4YXC3aOd.js → index-CwJWNsd3.js} +1 -1
  44. package/dist/{index-Wlh2yRsy.js → index-DC3Cnx5t.js} +1 -1
  45. package/dist/{index-_v--1fvH.js → index-DCcdmTNw.js} +1 -1
  46. package/dist/{index-Ec1JnxMr.js → index-DMfwuBgb.js} +1 -1
  47. package/dist/{index-VZAogpU3.js → index-DWPlo8vh.js} +1 -1
  48. package/dist/{index-B8argTgS.js → index-DYFTJIXf.js} +1 -1
  49. package/dist/{infoDiagram-A4XQUW5V-D6HtVB0K.js → infoDiagram-PH2N3AL5-CAFARnGi.js} +5 -5
  50. package/dist/{journeyDiagram-G5WM74LC-DMj7UaUs.js → journeyDiagram-U35MCT3I-CxCG-gu9.js} +34 -35
  51. package/dist/{kanban-definition-QRCXZQQD-C9sAvwvv.js → kanban-definition-NDS4AKOZ-DXWk4fBs.js} +26 -25
  52. package/dist/{layout-DnpJ8ssh.js → layout-DCbiAC-B.js} +4 -4
  53. package/dist/{linear-C7S_zUSg.js → linear-C-BjrWtA.js} +1 -1
  54. package/dist/{main-jjvPwD9F.js → main-VRYALaFR.js} +31084 -30575
  55. package/dist/main.js +1 -1
  56. package/dist/mermaid-3srgUkji.js +11991 -0
  57. package/dist/{min-DNi_26db.js → min-C6jNU-8q.js} +2 -2
  58. package/dist/{mindmap-definition-GWI6TPTV-Bbg64FAI.js → mindmap-definition-ALO5MXBD-ItSGCYxS.js} +3 -2
  59. package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
  60. package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
  61. package/dist/{pieDiagram-YF2LJOPJ-Cr3o9epk.js → pieDiagram-IB7DONF6-DvX9YZO3.js} +38 -38
  62. package/dist/{quadrantDiagram-OS5C2QUG-CTdokV-X.js → quadrantDiagram-7GDLP6J5-BbXv1kiZ.js} +2 -2
  63. package/dist/{gitGraph-YCYPL57B-C6vjpJLv.js → radar-MK3ICKWK-Chc5umY2.js} +3259 -2897
  64. package/dist/{react-plotly-D7fFNQUF.js → react-plotly--Re2eJt2.js} +1 -1
  65. package/dist/requirementDiagram-KVF5MWMF-0r_3Jc_R.js +851 -0
  66. package/dist/{sankeyDiagram-Y46BX6SQ-CtGs7dt9.js → sankeyDiagram-QLVOVGJD-eycVAOR9.js} +152 -149
  67. package/dist/sequenceDiagram-X6HHIX6F-DQpYFs9_.js +2281 -0
  68. package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
  69. package/dist/slides-component-BM71y3QA.js +3782 -0
  70. package/dist/{stateDiagram-MAYHULR4-HCOwrhPJ.js → stateDiagram-DGXRK772--5awulBB.js} +41 -39
  71. package/dist/stateDiagram-v2-YXO3MK2T-CrxS4RqA.js +16 -0
  72. package/dist/style.css +1 -1
  73. package/dist/{time-Cf454IRV.js → time-aNhcx3m7.js} +2 -2
  74. package/dist/{timeline-definition-U7ZMHBDA-AcXJneLr.js → timeline-definition-BDJGKUSR-D5qQYaXU.js} +25 -25
  75. package/dist/{vega-component-DN01b8IT.js → vega-component-IC6ZSnx9.js} +2 -2
  76. package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
  77. package/dist/{xychartDiagram-6QU3TZC5-B3SwzwIL.js → xychartDiagram-VJFVF3MP-Ceb_sCs0.js} +11 -11
  78. package/package.json +25 -23
  79. package/dist/architectureDiagram-UYN6MBPD-C8FCwy4e.js +0 -4595
  80. package/dist/chunk-7U56Z5CX-D1T9hvBU.js +0 -1215
  81. package/dist/chunk-T2TOU4HS-DcM_xxju.js +0 -1303
  82. package/dist/classDiagram-LNE6IOMH-XbDq3sOW.js +0 -14
  83. package/dist/classDiagram-v2-MQ7JQ4JX-XbDq3sOW.js +0 -14
  84. package/dist/erDiagram-6RL3IURR-13ULGiOU.js +0 -938
  85. package/dist/flowDiagram-7ASYPVHJ-CMtLojGE.js +0 -1484
  86. package/dist/ganttDiagram-NTVNEXSI-Crv4rrPG.js +0 -1679
  87. package/dist/mermaid-BwpuxK20.js +0 -12937
  88. package/dist/requirementDiagram-MIRIMTAZ-Bz15K_7J.js +0 -769
  89. package/dist/sequenceDiagram-G6AWOVSC-D0hnYjDZ.js +0 -2274
  90. package/dist/slides-component-DM7nuuqG.js +0 -3776
  91. package/dist/stateDiagram-v2-4JROLMXI-Cj6uqksM.js +0 -14
  92. package/dist/stex-92raWT1r.js +0 -129
@@ -0,0 +1,1681 @@
1
+ import { _ as c, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, an as U, l as Dt, k as we, j as _e, z as De, u as Se } from "./mermaid-3srgUkji.js";
2
+ import { S as Wt, aw as jt, au as Ut, at as Ce, aH as Ee, aI as Me, aJ as Ae, aK as Ie, aL as Fe, aM as Le, as as Zt, ar as Qt, aq as $t, aa as Kt, aj as Jt } from "./main-VRYALaFR.js";
3
+ import { t as Ye, m as We, a as Ve, i as Pe } from "./time-aNhcx3m7.js";
4
+ import { l as ze } from "./linear-C-BjrWtA.js";
5
+ function Oe(t) {
6
+ return t;
7
+ }
8
+ var vt = 1, Mt = 2, At = 3, pt = 4, te = 1e-6;
9
+ function Re(t) {
10
+ return "translate(" + t + ",0)";
11
+ }
12
+ function Ne(t) {
13
+ return "translate(0," + t + ")";
14
+ }
15
+ function Be(t) {
16
+ return (e) => +t(e);
17
+ }
18
+ function qe(t, e) {
19
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
20
+ }
21
+ function He() {
22
+ return !this.__axis;
23
+ }
24
+ function oe(t, e) {
25
+ var n = [], i = null, a = null, k = 6, d = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === vt || t === pt ? -1 : 1, g = t === pt || t === Mt ? "x" : "y", I = t === vt || t === At ? Re : Ne;
26
+ function S(p) {
27
+ var H = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), F = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Oe), v = Math.max(k, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? qe : Be)(e.copy(), E), R = p.selection ? p.selection() : p, G = R.selectAll(".domain").data([null]), z = R.selectAll(".tick").data(H, e).order(), y = z.exit(), b = z.enter().append("g").attr("class", "tick"), x = z.select("line"), T = z.select("text");
28
+ G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), z = z.merge(b), x = x.merge(b.append("line").attr("stroke", "currentColor").attr(g + "2", C * k)), T = T.merge(b.append("text").attr("fill", "currentColor").attr(g, C * v).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), p !== R && (G = G.transition(p), z = z.transition(p), x = x.transition(p), T = T.transition(p), y = y.transition(p).attr("opacity", te).attr("transform", function(m) {
29
+ return isFinite(m = N(m)) ? I(m + E) : this.getAttribute("transform");
30
+ }), b.attr("opacity", te).attr("transform", function(m) {
31
+ var w = this.parentNode.__axis;
32
+ return I((w && isFinite(w = w(m)) ? w : N(m)) + E);
33
+ })), y.remove(), G.attr("d", t === pt || t === Mt ? d ? "M" + C * d + "," + L + "H" + E + "V" + Y + "H" + C * d : "M" + E + "," + L + "V" + Y : d ? "M" + L + "," + C * d + "V" + E + "H" + Y + "V" + C * d : "M" + L + "," + E + "H" + Y), z.attr("opacity", 1).attr("transform", function(m) {
34
+ return I(N(m) + E);
35
+ }), x.attr(g + "2", C * k), T.attr(g, C * v).text(F), R.filter(He).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Mt ? "start" : t === pt ? "end" : "middle"), R.each(function() {
36
+ this.__axis = N;
37
+ });
38
+ }
39
+ return S.scale = function(p) {
40
+ return arguments.length ? (e = p, S) : e;
41
+ }, S.ticks = function() {
42
+ return n = Array.from(arguments), S;
43
+ }, S.tickArguments = function(p) {
44
+ return arguments.length ? (n = p == null ? [] : Array.from(p), S) : n.slice();
45
+ }, S.tickValues = function(p) {
46
+ return arguments.length ? (i = p == null ? null : Array.from(p), S) : i && i.slice();
47
+ }, S.tickFormat = function(p) {
48
+ return arguments.length ? (a = p, S) : a;
49
+ }, S.tickSize = function(p) {
50
+ return arguments.length ? (k = d = +p, S) : k;
51
+ }, S.tickSizeInner = function(p) {
52
+ return arguments.length ? (k = +p, S) : k;
53
+ }, S.tickSizeOuter = function(p) {
54
+ return arguments.length ? (d = +p, S) : d;
55
+ }, S.tickPadding = function(p) {
56
+ return arguments.length ? (D = +p, S) : D;
57
+ }, S.offset = function(p) {
58
+ return arguments.length ? (E = +p, S) : E;
59
+ }, S;
60
+ }
61
+ function Ge(t) {
62
+ return oe(vt, t);
63
+ }
64
+ function Xe(t) {
65
+ return oe(At, t);
66
+ }
67
+ var xt = { exports: {} }, je = xt.exports, ee;
68
+ function Ue() {
69
+ return ee || (ee = 1, function(t, e) {
70
+ (function(n, i) {
71
+ t.exports = i();
72
+ })(je, function() {
73
+ var n = "day";
74
+ return function(i, a, k) {
75
+ var d = function(C) {
76
+ return C.add(4 - C.isoWeekday(), n);
77
+ }, D = a.prototype;
78
+ D.isoWeekYear = function() {
79
+ return d(this).year();
80
+ }, D.isoWeek = function(C) {
81
+ if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), n);
82
+ var g, I, S, p, H = d(this), F = (g = this.isoWeekYear(), I = this.$u, S = (I ? k.utc : k)().year(g).startOf("year"), p = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (p += 7), S.add(p, n));
83
+ return H.diff(F, "week") + 1;
84
+ }, D.isoWeekday = function(C) {
85
+ return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
86
+ };
87
+ var E = D.startOf;
88
+ D.startOf = function(C, g) {
89
+ var I = this.$utils(), S = !!I.u(g) || g;
90
+ return I.p(C) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : E.bind(this)(C, g);
91
+ };
92
+ };
93
+ });
94
+ }(xt)), xt.exports;
95
+ }
96
+ var Ze = Ue();
97
+ const Qe = /* @__PURE__ */ Wt(Ze);
98
+ var Tt = { exports: {} }, $e = Tt.exports, re;
99
+ function Ke() {
100
+ return re || (re = 1, function(t, e) {
101
+ (function(n, i) {
102
+ t.exports = i();
103
+ })($e, function() {
104
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, k = /\d\d/, d = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(v) {
105
+ return (v = +v) + (v > 68 ? 1900 : 2e3);
106
+ }, g = function(v) {
107
+ return function(M) {
108
+ this[v] = +M;
109
+ };
110
+ }, I = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
111
+ (this.zone || (this.zone = {})).offset = function(M) {
112
+ if (!M || M === "Z") return 0;
113
+ var L = M.match(/([+-]|\d\d)/g), Y = 60 * L[1] + (+L[2] || 0);
114
+ return Y === 0 ? 0 : L[0] === "+" ? -Y : Y;
115
+ }(v);
116
+ }], S = function(v) {
117
+ var M = E[v];
118
+ return M && (M.indexOf ? M : M.s.concat(M.f));
119
+ }, p = function(v, M) {
120
+ var L, Y = E.meridiem;
121
+ if (Y) {
122
+ for (var N = 1; N <= 24; N += 1) if (v.indexOf(Y(N, 0, M)) > -1) {
123
+ L = N > 12;
124
+ break;
125
+ }
126
+ } else L = v === (M ? "pm" : "PM");
127
+ return L;
128
+ }, H = { A: [D, function(v) {
129
+ this.afternoon = p(v, !1);
130
+ }], a: [D, function(v) {
131
+ this.afternoon = p(v, !0);
132
+ }], Q: [a, function(v) {
133
+ this.month = 3 * (v - 1) + 1;
134
+ }], S: [a, function(v) {
135
+ this.milliseconds = 100 * +v;
136
+ }], SS: [k, function(v) {
137
+ this.milliseconds = 10 * +v;
138
+ }], SSS: [/\d{3}/, function(v) {
139
+ this.milliseconds = +v;
140
+ }], s: [d, g("seconds")], ss: [d, g("seconds")], m: [d, g("minutes")], mm: [d, g("minutes")], H: [d, g("hours")], h: [d, g("hours")], HH: [d, g("hours")], hh: [d, g("hours")], D: [d, g("day")], DD: [k, g("day")], Do: [D, function(v) {
141
+ var M = E.ordinal, L = v.match(/\d+/);
142
+ if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === v && (this.day = Y);
143
+ }], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(v) {
144
+ var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
145
+ return Y.slice(0, 3);
146
+ })).indexOf(v) + 1;
147
+ if (L < 1) throw new Error();
148
+ this.month = L % 12 || L;
149
+ }], MMMM: [D, function(v) {
150
+ var M = S("months").indexOf(v) + 1;
151
+ if (M < 1) throw new Error();
152
+ this.month = M % 12 || M;
153
+ }], Y: [/[+-]?\d+/, g("year")], YY: [k, function(v) {
154
+ this.year = C(v);
155
+ }], YYYY: [/\d{4}/, g("year")], Z: I, ZZ: I };
156
+ function F(v) {
157
+ var M, L;
158
+ M = v, L = E && E.formats;
159
+ for (var Y = (v = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, T, m) {
160
+ var w = m && m.toUpperCase();
161
+ return T || L[m] || n[m] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
162
+ return l || h.slice(1);
163
+ });
164
+ })).match(i), N = Y.length, R = 0; R < N; R += 1) {
165
+ var G = Y[R], z = H[G], y = z && z[0], b = z && z[1];
166
+ Y[R] = b ? { regex: y, parser: b } : G.replace(/^\[|\]$/g, "");
167
+ }
168
+ return function(x) {
169
+ for (var T = {}, m = 0, w = 0; m < N; m += 1) {
170
+ var o = Y[m];
171
+ if (typeof o == "string") w += o.length;
172
+ else {
173
+ var l = o.regex, h = o.parser, f = x.slice(w), _ = l.exec(f)[0];
174
+ h.call(T, _), x = x.replace(_, "");
175
+ }
176
+ }
177
+ return function(s) {
178
+ var u = s.afternoon;
179
+ if (u !== void 0) {
180
+ var r = s.hours;
181
+ u ? r < 12 && (s.hours += 12) : r === 12 && (s.hours = 0), delete s.afternoon;
182
+ }
183
+ }(T), T;
184
+ };
185
+ }
186
+ return function(v, M, L) {
187
+ L.p.customParseFormat = !0, v && v.parseTwoDigitYear && (C = v.parseTwoDigitYear);
188
+ var Y = M.prototype, N = Y.parse;
189
+ Y.parse = function(R) {
190
+ var G = R.date, z = R.utc, y = R.args;
191
+ this.$u = z;
192
+ var b = y[1];
193
+ if (typeof b == "string") {
194
+ var x = y[2] === !0, T = y[3] === !0, m = x || T, w = y[2];
195
+ T && (w = y[2]), E = this.$locale(), !x && w && (E = L.Ls[w]), this.$d = function(f, _, s, u) {
196
+ try {
197
+ if (["x", "X"].indexOf(_) > -1) return new Date((_ === "X" ? 1e3 : 1) * f);
198
+ var r = F(_)(f), W = r.year, A = r.month, V = r.day, X = r.hours, P = r.minutes, O = r.seconds, $ = r.milliseconds, st = r.zone, at = r.week, dt = /* @__PURE__ */ new Date(), ft = V || (W || A ? 1 : dt.getDate()), ot = W || dt.getFullYear(), B = 0;
199
+ W && !A || (B = A > 0 ? A - 1 : dt.getMonth());
200
+ var Q, j = X || 0, nt = P || 0, K = O || 0, rt = $ || 0;
201
+ return st ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * st.offset * 1e3)) : s ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : (Q = new Date(ot, B, ft, j, nt, K, rt), at && (Q = u(Q).week(at).toDate()), Q);
202
+ } catch {
203
+ return /* @__PURE__ */ new Date("");
204
+ }
205
+ }(G, b, z, L), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), m && G != this.format(b) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
206
+ } else if (b instanceof Array) for (var o = b.length, l = 1; l <= o; l += 1) {
207
+ y[1] = b[l - 1];
208
+ var h = L.apply(this, y);
209
+ if (h.isValid()) {
210
+ this.$d = h.$d, this.$L = h.$L, this.init();
211
+ break;
212
+ }
213
+ l === o && (this.$d = /* @__PURE__ */ new Date(""));
214
+ }
215
+ else N.call(this, R);
216
+ };
217
+ };
218
+ });
219
+ }(Tt)), Tt.exports;
220
+ }
221
+ var Je = Ke();
222
+ const tr = /* @__PURE__ */ Wt(Je);
223
+ var bt = { exports: {} }, er = bt.exports, ne;
224
+ function rr() {
225
+ return ne || (ne = 1, function(t, e) {
226
+ (function(n, i) {
227
+ t.exports = i();
228
+ })(er, function() {
229
+ return function(n, i) {
230
+ var a = i.prototype, k = a.format;
231
+ a.format = function(d) {
232
+ var D = this, E = this.$locale();
233
+ if (!this.isValid()) return k.bind(this)(d);
234
+ var C = this.$utils(), g = (d || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(I) {
235
+ switch (I) {
236
+ case "Q":
237
+ return Math.ceil((D.$M + 1) / 3);
238
+ case "Do":
239
+ return E.ordinal(D.$D);
240
+ case "gggg":
241
+ return D.weekYear();
242
+ case "GGGG":
243
+ return D.isoWeekYear();
244
+ case "wo":
245
+ return E.ordinal(D.week(), "W");
246
+ case "w":
247
+ case "ww":
248
+ return C.s(D.week(), I === "w" ? 1 : 2, "0");
249
+ case "W":
250
+ case "WW":
251
+ return C.s(D.isoWeek(), I === "W" ? 1 : 2, "0");
252
+ case "k":
253
+ case "kk":
254
+ return C.s(String(D.$H === 0 ? 24 : D.$H), I === "k" ? 1 : 2, "0");
255
+ case "X":
256
+ return Math.floor(D.$d.getTime() / 1e3);
257
+ case "x":
258
+ return D.$d.getTime();
259
+ case "z":
260
+ return "[" + D.offsetName() + "]";
261
+ case "zzz":
262
+ return "[" + D.offsetName("long") + "]";
263
+ default:
264
+ return I;
265
+ }
266
+ });
267
+ return k.bind(this)(g);
268
+ };
269
+ };
270
+ });
271
+ }(bt)), bt.exports;
272
+ }
273
+ var nr = rr();
274
+ const ir = /* @__PURE__ */ Wt(nr);
275
+ var It = function() {
276
+ var t = /* @__PURE__ */ c(function(w, o, l, h) {
277
+ for (l = l || {}, h = w.length; h--; l[w[h]] = o) ;
278
+ return l;
279
+ }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], i = [1, 27], a = [1, 28], k = [1, 29], d = [1, 30], D = [1, 31], E = [1, 32], C = [1, 33], g = [1, 34], I = [1, 9], S = [1, 10], p = [1, 11], H = [1, 12], F = [1, 13], v = [1, 14], M = [1, 15], L = [1, 16], Y = [1, 19], N = [1, 20], R = [1, 21], G = [1, 22], z = [1, 23], y = [1, 25], b = [1, 35], x = {
280
+ trace: /* @__PURE__ */ c(function() {
281
+ }, "trace"),
282
+ yy: {},
283
+ symbols_: { error: 2, start: 3, gantt: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NL: 10, weekday: 11, weekday_monday: 12, weekday_tuesday: 13, weekday_wednesday: 14, weekday_thursday: 15, weekday_friday: 16, weekday_saturday: 17, weekday_sunday: 18, weekend: 19, weekend_friday: 20, weekend_saturday: 21, dateFormat: 22, inclusiveEndDates: 23, topAxis: 24, axisFormat: 25, tickInterval: 26, excludes: 27, includes: 28, todayMarker: 29, title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, section: 36, clickStatement: 37, taskTxt: 38, taskData: 39, click: 40, callbackname: 41, callbackargs: 42, href: 43, clickStatementDebug: 44, $accept: 0, $end: 1 },
284
+ terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 20: "weekend_friday", 21: "weekend_saturday", 22: "dateFormat", 23: "inclusiveEndDates", 24: "topAxis", 25: "axisFormat", 26: "tickInterval", 27: "excludes", 28: "includes", 29: "todayMarker", 30: "title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "section", 38: "taskTxt", 39: "taskData", 40: "click", 41: "callbackname", 42: "callbackargs", 43: "href" },
285
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [19, 1], [19, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [37, 2], [37, 3], [37, 3], [37, 4], [37, 3], [37, 4], [37, 2], [44, 2], [44, 3], [44, 3], [44, 4], [44, 3], [44, 4], [44, 2]],
286
+ performAction: /* @__PURE__ */ c(function(o, l, h, f, _, s, u) {
287
+ var r = s.length - 1;
288
+ switch (_) {
289
+ case 1:
290
+ return s[r - 1];
291
+ case 2:
292
+ this.$ = [];
293
+ break;
294
+ case 3:
295
+ s[r - 1].push(s[r]), this.$ = s[r - 1];
296
+ break;
297
+ case 4:
298
+ case 5:
299
+ this.$ = s[r];
300
+ break;
301
+ case 6:
302
+ case 7:
303
+ this.$ = [];
304
+ break;
305
+ case 8:
306
+ f.setWeekday("monday");
307
+ break;
308
+ case 9:
309
+ f.setWeekday("tuesday");
310
+ break;
311
+ case 10:
312
+ f.setWeekday("wednesday");
313
+ break;
314
+ case 11:
315
+ f.setWeekday("thursday");
316
+ break;
317
+ case 12:
318
+ f.setWeekday("friday");
319
+ break;
320
+ case 13:
321
+ f.setWeekday("saturday");
322
+ break;
323
+ case 14:
324
+ f.setWeekday("sunday");
325
+ break;
326
+ case 15:
327
+ f.setWeekend("friday");
328
+ break;
329
+ case 16:
330
+ f.setWeekend("saturday");
331
+ break;
332
+ case 17:
333
+ f.setDateFormat(s[r].substr(11)), this.$ = s[r].substr(11);
334
+ break;
335
+ case 18:
336
+ f.enableInclusiveEndDates(), this.$ = s[r].substr(18);
337
+ break;
338
+ case 19:
339
+ f.TopAxis(), this.$ = s[r].substr(8);
340
+ break;
341
+ case 20:
342
+ f.setAxisFormat(s[r].substr(11)), this.$ = s[r].substr(11);
343
+ break;
344
+ case 21:
345
+ f.setTickInterval(s[r].substr(13)), this.$ = s[r].substr(13);
346
+ break;
347
+ case 22:
348
+ f.setExcludes(s[r].substr(9)), this.$ = s[r].substr(9);
349
+ break;
350
+ case 23:
351
+ f.setIncludes(s[r].substr(9)), this.$ = s[r].substr(9);
352
+ break;
353
+ case 24:
354
+ f.setTodayMarker(s[r].substr(12)), this.$ = s[r].substr(12);
355
+ break;
356
+ case 27:
357
+ f.setDiagramTitle(s[r].substr(6)), this.$ = s[r].substr(6);
358
+ break;
359
+ case 28:
360
+ this.$ = s[r].trim(), f.setAccTitle(this.$);
361
+ break;
362
+ case 29:
363
+ case 30:
364
+ this.$ = s[r].trim(), f.setAccDescription(this.$);
365
+ break;
366
+ case 31:
367
+ f.addSection(s[r].substr(8)), this.$ = s[r].substr(8);
368
+ break;
369
+ case 33:
370
+ f.addTask(s[r - 1], s[r]), this.$ = "task";
371
+ break;
372
+ case 34:
373
+ this.$ = s[r - 1], f.setClickEvent(s[r - 1], s[r], null);
374
+ break;
375
+ case 35:
376
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], s[r]);
377
+ break;
378
+ case 36:
379
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], null), f.setLink(s[r - 2], s[r]);
380
+ break;
381
+ case 37:
382
+ this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 2], s[r - 1]), f.setLink(s[r - 3], s[r]);
383
+ break;
384
+ case 38:
385
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r], null), f.setLink(s[r - 2], s[r - 1]);
386
+ break;
387
+ case 39:
388
+ this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 1], s[r]), f.setLink(s[r - 3], s[r - 2]);
389
+ break;
390
+ case 40:
391
+ this.$ = s[r - 1], f.setLink(s[r - 1], s[r]);
392
+ break;
393
+ case 41:
394
+ case 47:
395
+ this.$ = s[r - 1] + " " + s[r];
396
+ break;
397
+ case 42:
398
+ case 43:
399
+ case 45:
400
+ this.$ = s[r - 2] + " " + s[r - 1] + " " + s[r];
401
+ break;
402
+ case 44:
403
+ case 46:
404
+ this.$ = s[r - 3] + " " + s[r - 2] + " " + s[r - 1] + " " + s[r];
405
+ break;
406
+ }
407
+ }, "anonymous"),
408
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: C, 21: g, 22: I, 23: S, 24: p, 25: H, 26: F, 27: v, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: C, 21: g, 22: I, 23: S, 24: p, 25: H, 26: F, 27: v, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
409
+ defaultActions: {},
410
+ parseError: /* @__PURE__ */ c(function(o, l) {
411
+ if (l.recoverable)
412
+ this.trace(o);
413
+ else {
414
+ var h = new Error(o);
415
+ throw h.hash = l, h;
416
+ }
417
+ }, "parseError"),
418
+ parse: /* @__PURE__ */ c(function(o) {
419
+ var l = this, h = [0], f = [], _ = [null], s = [], u = this.table, r = "", W = 0, A = 0, V = 2, X = 1, P = s.slice.call(arguments, 1), O = Object.create(this.lexer), $ = { yy: {} };
420
+ for (var st in this.yy)
421
+ Object.prototype.hasOwnProperty.call(this.yy, st) && ($.yy[st] = this.yy[st]);
422
+ O.setInput(o, $.yy), $.yy.lexer = O, $.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
423
+ var at = O.yylloc;
424
+ s.push(at);
425
+ var dt = O.options && O.options.ranges;
426
+ typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
427
+ function ft(Z) {
428
+ h.length = h.length - 2 * Z, _.length = _.length - Z, s.length = s.length - Z;
429
+ }
430
+ c(ft, "popStack");
431
+ function ot() {
432
+ var Z;
433
+ return Z = f.pop() || O.lex() || X, typeof Z != "number" && (Z instanceof Array && (f = Z, Z = f.pop()), Z = l.symbols_[Z] || Z), Z;
434
+ }
435
+ c(ot, "lex");
436
+ for (var B, Q, j, nt, K = {}, rt, J, Xt, yt; ; ) {
437
+ if (Q = h[h.length - 1], this.defaultActions[Q] ? j = this.defaultActions[Q] : ((B === null || typeof B > "u") && (B = ot()), j = u[Q] && u[Q][B]), typeof j > "u" || !j.length || !j[0]) {
438
+ var Et = "";
439
+ yt = [];
440
+ for (rt in u[Q])
441
+ this.terminals_[rt] && rt > V && yt.push("'" + this.terminals_[rt] + "'");
442
+ O.showPosition ? Et = "Parse error on line " + (W + 1) + `:
443
+ ` + O.showPosition() + `
444
+ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (W + 1) + ": Unexpected " + (B == X ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Et, {
445
+ text: O.match,
446
+ token: this.terminals_[B] || B,
447
+ line: O.yylineno,
448
+ loc: at,
449
+ expected: yt
450
+ });
451
+ }
452
+ if (j[0] instanceof Array && j.length > 1)
453
+ throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + B);
454
+ switch (j[0]) {
455
+ case 1:
456
+ h.push(B), _.push(O.yytext), s.push(O.yylloc), h.push(j[1]), B = null, A = O.yyleng, r = O.yytext, W = O.yylineno, at = O.yylloc;
457
+ break;
458
+ case 2:
459
+ if (J = this.productions_[j[1]][1], K.$ = _[_.length - J], K._$ = {
460
+ first_line: s[s.length - (J || 1)].first_line,
461
+ last_line: s[s.length - 1].last_line,
462
+ first_column: s[s.length - (J || 1)].first_column,
463
+ last_column: s[s.length - 1].last_column
464
+ }, dt && (K._$.range = [
465
+ s[s.length - (J || 1)].range[0],
466
+ s[s.length - 1].range[1]
467
+ ]), nt = this.performAction.apply(K, [
468
+ r,
469
+ A,
470
+ W,
471
+ $.yy,
472
+ j[1],
473
+ _,
474
+ s
475
+ ].concat(P)), typeof nt < "u")
476
+ return nt;
477
+ J && (h = h.slice(0, -1 * J * 2), _ = _.slice(0, -1 * J), s = s.slice(0, -1 * J)), h.push(this.productions_[j[1]][0]), _.push(K.$), s.push(K._$), Xt = u[h[h.length - 2]][h[h.length - 1]], h.push(Xt);
478
+ break;
479
+ case 3:
480
+ return !0;
481
+ }
482
+ }
483
+ return !0;
484
+ }, "parse")
485
+ }, T = /* @__PURE__ */ function() {
486
+ var w = {
487
+ EOF: 1,
488
+ parseError: /* @__PURE__ */ c(function(l, h) {
489
+ if (this.yy.parser)
490
+ this.yy.parser.parseError(l, h);
491
+ else
492
+ throw new Error(l);
493
+ }, "parseError"),
494
+ // resets the lexer, sets new input
495
+ setInput: /* @__PURE__ */ c(function(o, l) {
496
+ return this.yy = l || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
497
+ first_line: 1,
498
+ first_column: 0,
499
+ last_line: 1,
500
+ last_column: 0
501
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
502
+ }, "setInput"),
503
+ // consumes and returns one char from the input
504
+ input: /* @__PURE__ */ c(function() {
505
+ var o = this._input[0];
506
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
507
+ var l = o.match(/(?:\r\n?|\n).*/g);
508
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
509
+ }, "input"),
510
+ // unshifts one char (or a string) into the input
511
+ unput: /* @__PURE__ */ c(function(o) {
512
+ var l = o.length, h = o.split(/(?:\r\n?|\n)/g);
513
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
514
+ var f = this.match.split(/(?:\r\n?|\n)/g);
515
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
516
+ var _ = this.yylloc.range;
517
+ return this.yylloc = {
518
+ first_line: this.yylloc.first_line,
519
+ last_line: this.yylineno + 1,
520
+ first_column: this.yylloc.first_column,
521
+ last_column: h ? (h.length === f.length ? this.yylloc.first_column : 0) + f[f.length - h.length].length - h[0].length : this.yylloc.first_column - l
522
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
523
+ }, "unput"),
524
+ // When called from action, caches matched text and appends it on next action
525
+ more: /* @__PURE__ */ c(function() {
526
+ return this._more = !0, this;
527
+ }, "more"),
528
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
529
+ reject: /* @__PURE__ */ c(function() {
530
+ if (this.options.backtrack_lexer)
531
+ this._backtrack = !0;
532
+ else
533
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
534
+ ` + this.showPosition(), {
535
+ text: "",
536
+ token: null,
537
+ line: this.yylineno
538
+ });
539
+ return this;
540
+ }, "reject"),
541
+ // retain first n characters of the match
542
+ less: /* @__PURE__ */ c(function(o) {
543
+ this.unput(this.match.slice(o));
544
+ }, "less"),
545
+ // displays already matched input, i.e. for error messages
546
+ pastInput: /* @__PURE__ */ c(function() {
547
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
548
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
549
+ }, "pastInput"),
550
+ // displays upcoming input, i.e. for error messages
551
+ upcomingInput: /* @__PURE__ */ c(function() {
552
+ var o = this.match;
553
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
554
+ }, "upcomingInput"),
555
+ // displays the character position where the lexing error occurred, i.e. for error messages
556
+ showPosition: /* @__PURE__ */ c(function() {
557
+ var o = this.pastInput(), l = new Array(o.length + 1).join("-");
558
+ return o + this.upcomingInput() + `
559
+ ` + l + "^";
560
+ }, "showPosition"),
561
+ // test the lexed token: return FALSE when not a match, otherwise return token
562
+ test_match: /* @__PURE__ */ c(function(o, l) {
563
+ var h, f, _;
564
+ if (this.options.backtrack_lexer && (_ = {
565
+ yylineno: this.yylineno,
566
+ yylloc: {
567
+ first_line: this.yylloc.first_line,
568
+ last_line: this.last_line,
569
+ first_column: this.yylloc.first_column,
570
+ last_column: this.yylloc.last_column
571
+ },
572
+ yytext: this.yytext,
573
+ match: this.match,
574
+ matches: this.matches,
575
+ matched: this.matched,
576
+ yyleng: this.yyleng,
577
+ offset: this.offset,
578
+ _more: this._more,
579
+ _input: this._input,
580
+ yy: this.yy,
581
+ conditionStack: this.conditionStack.slice(0),
582
+ done: this.done
583
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = o[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
584
+ first_line: this.yylloc.last_line,
585
+ last_line: this.yylineno + 1,
586
+ first_column: this.yylloc.last_column,
587
+ last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
588
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], h = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
589
+ return h;
590
+ if (this._backtrack) {
591
+ for (var s in _)
592
+ this[s] = _[s];
593
+ return !1;
594
+ }
595
+ return !1;
596
+ }, "test_match"),
597
+ // return next match in input
598
+ next: /* @__PURE__ */ c(function() {
599
+ if (this.done)
600
+ return this.EOF;
601
+ this._input || (this.done = !0);
602
+ var o, l, h, f;
603
+ this._more || (this.yytext = "", this.match = "");
604
+ for (var _ = this._currentRules(), s = 0; s < _.length; s++)
605
+ if (h = this._input.match(this.rules[_[s]]), h && (!l || h[0].length > l[0].length)) {
606
+ if (l = h, f = s, this.options.backtrack_lexer) {
607
+ if (o = this.test_match(h, _[s]), o !== !1)
608
+ return o;
609
+ if (this._backtrack) {
610
+ l = !1;
611
+ continue;
612
+ } else
613
+ return !1;
614
+ } else if (!this.options.flex)
615
+ break;
616
+ }
617
+ return l ? (o = this.test_match(l, _[f]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
618
+ ` + this.showPosition(), {
619
+ text: "",
620
+ token: null,
621
+ line: this.yylineno
622
+ });
623
+ }, "next"),
624
+ // return next match that has a token
625
+ lex: /* @__PURE__ */ c(function() {
626
+ var l = this.next();
627
+ return l || this.lex();
628
+ }, "lex"),
629
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
630
+ begin: /* @__PURE__ */ c(function(l) {
631
+ this.conditionStack.push(l);
632
+ }, "begin"),
633
+ // pop the previously active lexer condition state off the condition stack
634
+ popState: /* @__PURE__ */ c(function() {
635
+ var l = this.conditionStack.length - 1;
636
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
637
+ }, "popState"),
638
+ // produce the lexer rule set which is active for the currently active lexer condition state
639
+ _currentRules: /* @__PURE__ */ c(function() {
640
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
641
+ }, "_currentRules"),
642
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
643
+ topState: /* @__PURE__ */ c(function(l) {
644
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
645
+ }, "topState"),
646
+ // alias for begin(condition)
647
+ pushState: /* @__PURE__ */ c(function(l) {
648
+ this.begin(l);
649
+ }, "pushState"),
650
+ // return the number of states currently on the stack
651
+ stateStackSize: /* @__PURE__ */ c(function() {
652
+ return this.conditionStack.length;
653
+ }, "stateStackSize"),
654
+ options: { "case-insensitive": !0 },
655
+ performAction: /* @__PURE__ */ c(function(l, h, f, _) {
656
+ switch (f) {
657
+ case 0:
658
+ return this.begin("open_directive"), "open_directive";
659
+ case 1:
660
+ return this.begin("acc_title"), 31;
661
+ case 2:
662
+ return this.popState(), "acc_title_value";
663
+ case 3:
664
+ return this.begin("acc_descr"), 33;
665
+ case 4:
666
+ return this.popState(), "acc_descr_value";
667
+ case 5:
668
+ this.begin("acc_descr_multiline");
669
+ break;
670
+ case 6:
671
+ this.popState();
672
+ break;
673
+ case 7:
674
+ return "acc_descr_multiline_value";
675
+ case 8:
676
+ break;
677
+ case 9:
678
+ break;
679
+ case 10:
680
+ break;
681
+ case 11:
682
+ return 10;
683
+ case 12:
684
+ break;
685
+ case 13:
686
+ break;
687
+ case 14:
688
+ this.begin("href");
689
+ break;
690
+ case 15:
691
+ this.popState();
692
+ break;
693
+ case 16:
694
+ return 43;
695
+ case 17:
696
+ this.begin("callbackname");
697
+ break;
698
+ case 18:
699
+ this.popState();
700
+ break;
701
+ case 19:
702
+ this.popState(), this.begin("callbackargs");
703
+ break;
704
+ case 20:
705
+ return 41;
706
+ case 21:
707
+ this.popState();
708
+ break;
709
+ case 22:
710
+ return 42;
711
+ case 23:
712
+ this.begin("click");
713
+ break;
714
+ case 24:
715
+ this.popState();
716
+ break;
717
+ case 25:
718
+ return 40;
719
+ case 26:
720
+ return 4;
721
+ case 27:
722
+ return 22;
723
+ case 28:
724
+ return 23;
725
+ case 29:
726
+ return 24;
727
+ case 30:
728
+ return 25;
729
+ case 31:
730
+ return 26;
731
+ case 32:
732
+ return 28;
733
+ case 33:
734
+ return 27;
735
+ case 34:
736
+ return 29;
737
+ case 35:
738
+ return 12;
739
+ case 36:
740
+ return 13;
741
+ case 37:
742
+ return 14;
743
+ case 38:
744
+ return 15;
745
+ case 39:
746
+ return 16;
747
+ case 40:
748
+ return 17;
749
+ case 41:
750
+ return 18;
751
+ case 42:
752
+ return 20;
753
+ case 43:
754
+ return 21;
755
+ case 44:
756
+ return "date";
757
+ case 45:
758
+ return 30;
759
+ case 46:
760
+ return "accDescription";
761
+ case 47:
762
+ return 36;
763
+ case 48:
764
+ return 38;
765
+ case 49:
766
+ return 39;
767
+ case 50:
768
+ return ":";
769
+ case 51:
770
+ return 6;
771
+ case 52:
772
+ return "INVALID";
773
+ }
774
+ }, "anonymous"),
775
+ rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:weekend\s+friday\b)/i, /^(?:weekend\s+saturday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^\n]+)/i, /^(?:[^:\n]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
776
+ conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, callbackargs: { rules: [21, 22], inclusive: !1 }, callbackname: { rules: [18, 19, 20], inclusive: !1 }, href: { rules: [15, 16], inclusive: !1 }, click: { rules: [24, 25], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], inclusive: !0 } }
777
+ };
778
+ return w;
779
+ }();
780
+ x.lexer = T;
781
+ function m() {
782
+ this.yy = {};
783
+ }
784
+ return c(m, "Parser"), m.prototype = x, x.Parser = m, new m();
785
+ }();
786
+ It.parser = It;
787
+ var sr = It;
788
+ U.extend(Qe);
789
+ U.extend(tr);
790
+ U.extend(ir);
791
+ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht = [], mt = [], Ot = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone"], Bt = [], kt = !1, qt = !1, Ht = "sunday", Ct = "saturday", Ft = 0, ar = /* @__PURE__ */ c(function() {
792
+ Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, q = [], tt = "", Vt = "", Nt = "", Pt = void 0, zt = "", ht = [], mt = [], kt = !1, qt = !1, Ft = 0, Ot = /* @__PURE__ */ new Map(), De(), Ht = "sunday", Ct = "saturday";
793
+ }, "clear"), or = /* @__PURE__ */ c(function(t) {
794
+ Vt = t;
795
+ }, "setAxisFormat"), cr = /* @__PURE__ */ c(function() {
796
+ return Vt;
797
+ }, "getAxisFormat"), lr = /* @__PURE__ */ c(function(t) {
798
+ Pt = t;
799
+ }, "setTickInterval"), ur = /* @__PURE__ */ c(function() {
800
+ return Pt;
801
+ }, "getTickInterval"), dr = /* @__PURE__ */ c(function(t) {
802
+ zt = t;
803
+ }, "setTodayMarker"), fr = /* @__PURE__ */ c(function() {
804
+ return zt;
805
+ }, "getTodayMarker"), hr = /* @__PURE__ */ c(function(t) {
806
+ tt = t;
807
+ }, "setDateFormat"), mr = /* @__PURE__ */ c(function() {
808
+ kt = !0;
809
+ }, "enableInclusiveEndDates"), kr = /* @__PURE__ */ c(function() {
810
+ return kt;
811
+ }, "endDatesAreInclusive"), yr = /* @__PURE__ */ c(function() {
812
+ qt = !0;
813
+ }, "enableTopAxis"), gr = /* @__PURE__ */ c(function() {
814
+ return qt;
815
+ }, "topAxisEnabled"), pr = /* @__PURE__ */ c(function(t) {
816
+ Nt = t;
817
+ }, "setDisplayMode"), vr = /* @__PURE__ */ c(function() {
818
+ return Nt;
819
+ }, "getDisplayMode"), xr = /* @__PURE__ */ c(function() {
820
+ return tt;
821
+ }, "getDateFormat"), Tr = /* @__PURE__ */ c(function(t) {
822
+ ht = t.toLowerCase().split(/[\s,]+/);
823
+ }, "setIncludes"), br = /* @__PURE__ */ c(function() {
824
+ return ht;
825
+ }, "getIncludes"), wr = /* @__PURE__ */ c(function(t) {
826
+ mt = t.toLowerCase().split(/[\s,]+/);
827
+ }, "setExcludes"), _r = /* @__PURE__ */ c(function() {
828
+ return mt;
829
+ }, "getExcludes"), Dr = /* @__PURE__ */ c(function() {
830
+ return Ot;
831
+ }, "getLinks"), Sr = /* @__PURE__ */ c(function(t) {
832
+ ut = t, Rt.push(t);
833
+ }, "addSection"), Cr = /* @__PURE__ */ c(function() {
834
+ return Rt;
835
+ }, "getSections"), Er = /* @__PURE__ */ c(function() {
836
+ let t = se();
837
+ const e = 10;
838
+ let n = 0;
839
+ for (; !t && n < e; )
840
+ t = se(), n++;
841
+ return St = q, St;
842
+ }, "getTasks"), le = /* @__PURE__ */ c(function(t, e, n, i) {
843
+ return i.includes(t.format(e.trim())) ? !1 : n.includes("weekends") && (t.isoWeekday() === ie[Ct] || t.isoWeekday() === ie[Ct] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(t.format(e.trim()));
844
+ }, "isInvalidDate"), Mr = /* @__PURE__ */ c(function(t) {
845
+ Ht = t;
846
+ }, "setWeekday"), Ar = /* @__PURE__ */ c(function() {
847
+ return Ht;
848
+ }, "getWeekday"), Ir = /* @__PURE__ */ c(function(t) {
849
+ Ct = t;
850
+ }, "setWeekend"), ue = /* @__PURE__ */ c(function(t, e, n, i) {
851
+ if (!n.length || t.manualEndTime)
852
+ return;
853
+ let a;
854
+ t.startTime instanceof Date ? a = U(t.startTime) : a = U(t.startTime, e, !0), a = a.add(1, "d");
855
+ let k;
856
+ t.endTime instanceof Date ? k = U(t.endTime) : k = U(t.endTime, e, !0);
857
+ const [d, D] = Fr(
858
+ a,
859
+ k,
860
+ e,
861
+ n,
862
+ i
863
+ );
864
+ t.endTime = d.toDate(), t.renderEndTime = D;
865
+ }, "checkTaskDates"), Fr = /* @__PURE__ */ c(function(t, e, n, i, a) {
866
+ let k = !1, d = null;
867
+ for (; t <= e; )
868
+ k || (d = e.toDate()), k = le(t, n, i, a), k && (e = e.add(1, "d")), t = t.add(1, "d");
869
+ return [e, d];
870
+ }, "fixTaskDates"), Lt = /* @__PURE__ */ c(function(t, e, n) {
871
+ n = n.trim();
872
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
873
+ if (a !== null) {
874
+ let d = null;
875
+ for (const E of a.groups.ids.split(" ")) {
876
+ let C = it(E);
877
+ C !== void 0 && (!d || C.endTime > d.endTime) && (d = C);
878
+ }
879
+ if (d)
880
+ return d.endTime;
881
+ const D = /* @__PURE__ */ new Date();
882
+ return D.setHours(0, 0, 0, 0), D;
883
+ }
884
+ let k = U(n, e.trim(), !0);
885
+ if (k.isValid())
886
+ return k.toDate();
887
+ {
888
+ Dt.debug("Invalid date:" + n), Dt.debug("With date format:" + e.trim());
889
+ const d = new Date(n);
890
+ if (d === void 0 || isNaN(d.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
891
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
892
+ // This can cause virtually infinite loops while rendering, so for the
893
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
894
+ // invalid.
895
+ d.getFullYear() < -1e4 || d.getFullYear() > 1e4)
896
+ throw new Error("Invalid date:" + n);
897
+ return d;
898
+ }
899
+ }, "getStartDate"), de = /* @__PURE__ */ c(function(t) {
900
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
901
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
902
+ }, "parseDuration"), fe = /* @__PURE__ */ c(function(t, e, n, i = !1) {
903
+ n = n.trim();
904
+ const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
905
+ if (k !== null) {
906
+ let g = null;
907
+ for (const S of k.groups.ids.split(" ")) {
908
+ let p = it(S);
909
+ p !== void 0 && (!g || p.startTime < g.startTime) && (g = p);
910
+ }
911
+ if (g)
912
+ return g.startTime;
913
+ const I = /* @__PURE__ */ new Date();
914
+ return I.setHours(0, 0, 0, 0), I;
915
+ }
916
+ let d = U(n, e.trim(), !0);
917
+ if (d.isValid())
918
+ return i && (d = d.add(1, "d")), d.toDate();
919
+ let D = U(t);
920
+ const [E, C] = de(n);
921
+ if (!Number.isNaN(E)) {
922
+ const g = D.add(E, C);
923
+ g.isValid() && (D = g);
924
+ }
925
+ return D.toDate();
926
+ }, "getEndDate"), wt = 0, lt = /* @__PURE__ */ c(function(t) {
927
+ return t === void 0 ? (wt = wt + 1, "task" + wt) : t;
928
+ }, "parseId"), Lr = /* @__PURE__ */ c(function(t, e) {
929
+ let n;
930
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
931
+ const i = n.split(","), a = {};
932
+ Gt(i, a, ce);
933
+ for (let d = 0; d < i.length; d++)
934
+ i[d] = i[d].trim();
935
+ let k = "";
936
+ switch (i.length) {
937
+ case 1:
938
+ a.id = lt(), a.startTime = t.endTime, k = i[0];
939
+ break;
940
+ case 2:
941
+ a.id = lt(), a.startTime = Lt(void 0, tt, i[0]), k = i[1];
942
+ break;
943
+ case 3:
944
+ a.id = lt(i[0]), a.startTime = Lt(void 0, tt, i[1]), k = i[2];
945
+ break;
946
+ }
947
+ return k && (a.endTime = fe(a.startTime, tt, k, kt), a.manualEndTime = U(k, "YYYY-MM-DD", !0).isValid(), ue(a, tt, mt, ht)), a;
948
+ }, "compileData"), Yr = /* @__PURE__ */ c(function(t, e) {
949
+ let n;
950
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
951
+ const i = n.split(","), a = {};
952
+ Gt(i, a, ce);
953
+ for (let k = 0; k < i.length; k++)
954
+ i[k] = i[k].trim();
955
+ switch (i.length) {
956
+ case 1:
957
+ a.id = lt(), a.startTime = {
958
+ type: "prevTaskEnd",
959
+ id: t
960
+ }, a.endTime = {
961
+ data: i[0]
962
+ };
963
+ break;
964
+ case 2:
965
+ a.id = lt(), a.startTime = {
966
+ type: "getStartDate",
967
+ startData: i[0]
968
+ }, a.endTime = {
969
+ data: i[1]
970
+ };
971
+ break;
972
+ case 3:
973
+ a.id = lt(i[0]), a.startTime = {
974
+ type: "getStartDate",
975
+ startData: i[1]
976
+ }, a.endTime = {
977
+ data: i[2]
978
+ };
979
+ break;
980
+ }
981
+ return a;
982
+ }, "parseData"), Yt, _t, q = [], he = {}, Wr = /* @__PURE__ */ c(function(t, e) {
983
+ const n = {
984
+ section: ut,
985
+ type: ut,
986
+ processed: !1,
987
+ manualEndTime: !1,
988
+ renderEndTime: null,
989
+ raw: { data: e },
990
+ task: t,
991
+ classes: []
992
+ }, i = Yr(_t, e);
993
+ n.raw.startTime = i.startTime, n.raw.endTime = i.endTime, n.id = i.id, n.prevTaskId = _t, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, n.order = Ft, Ft++;
994
+ const a = q.push(n);
995
+ _t = n.id, he[n.id] = a - 1;
996
+ }, "addTask"), it = /* @__PURE__ */ c(function(t) {
997
+ const e = he[t];
998
+ return q[e];
999
+ }, "findTaskById"), Vr = /* @__PURE__ */ c(function(t, e) {
1000
+ const n = {
1001
+ section: ut,
1002
+ type: ut,
1003
+ description: t,
1004
+ task: t,
1005
+ classes: []
1006
+ }, i = Lr(Yt, e);
1007
+ n.startTime = i.startTime, n.endTime = i.endTime, n.id = i.id, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, Yt = n, St.push(n);
1008
+ }, "addTaskOrg"), se = /* @__PURE__ */ c(function() {
1009
+ const t = /* @__PURE__ */ c(function(n) {
1010
+ const i = q[n];
1011
+ let a = "";
1012
+ switch (q[n].raw.startTime.type) {
1013
+ case "prevTaskEnd": {
1014
+ const k = it(i.prevTaskId);
1015
+ i.startTime = k.endTime;
1016
+ break;
1017
+ }
1018
+ case "getStartDate":
1019
+ a = Lt(void 0, tt, q[n].raw.startTime.startData), a && (q[n].startTime = a);
1020
+ break;
1021
+ }
1022
+ return q[n].startTime && (q[n].endTime = fe(
1023
+ q[n].startTime,
1024
+ tt,
1025
+ q[n].raw.endTime.data,
1026
+ kt
1027
+ ), q[n].endTime && (q[n].processed = !0, q[n].manualEndTime = U(
1028
+ q[n].raw.endTime.data,
1029
+ "YYYY-MM-DD",
1030
+ !0
1031
+ ).isValid(), ue(q[n], tt, mt, ht))), q[n].processed;
1032
+ }, "compileTask");
1033
+ let e = !0;
1034
+ for (const [n, i] of q.entries())
1035
+ t(n), e = e && i.processed;
1036
+ return e;
1037
+ }, "compileTasks"), Pr = /* @__PURE__ */ c(function(t, e) {
1038
+ let n = e;
1039
+ ct().securityLevel !== "loose" && (n = _e.sanitizeUrl(e)), t.split(",").forEach(function(i) {
1040
+ it(i) !== void 0 && (ke(i, () => {
1041
+ window.open(n, "_self");
1042
+ }), Ot.set(i, n));
1043
+ }), me(t, "clickable");
1044
+ }, "setLink"), me = /* @__PURE__ */ c(function(t, e) {
1045
+ t.split(",").forEach(function(n) {
1046
+ let i = it(n);
1047
+ i !== void 0 && i.classes.push(e);
1048
+ });
1049
+ }, "setClass"), zr = /* @__PURE__ */ c(function(t, e, n) {
1050
+ if (ct().securityLevel !== "loose" || e === void 0)
1051
+ return;
1052
+ let i = [];
1053
+ if (typeof n == "string") {
1054
+ i = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1055
+ for (let k = 0; k < i.length; k++) {
1056
+ let d = i[k].trim();
1057
+ d.startsWith('"') && d.endsWith('"') && (d = d.substr(1, d.length - 2)), i[k] = d;
1058
+ }
1059
+ }
1060
+ i.length === 0 && i.push(t), it(t) !== void 0 && ke(t, () => {
1061
+ Se.runFunc(e, ...i);
1062
+ });
1063
+ }, "setClickFun"), ke = /* @__PURE__ */ c(function(t, e) {
1064
+ Bt.push(
1065
+ function() {
1066
+ const n = document.querySelector(`[id="${t}"]`);
1067
+ n !== null && n.addEventListener("click", function() {
1068
+ e();
1069
+ });
1070
+ },
1071
+ function() {
1072
+ const n = document.querySelector(`[id="${t}-text"]`);
1073
+ n !== null && n.addEventListener("click", function() {
1074
+ e();
1075
+ });
1076
+ }
1077
+ );
1078
+ }, "pushFun"), Or = /* @__PURE__ */ c(function(t, e, n) {
1079
+ t.split(",").forEach(function(i) {
1080
+ zr(i, e, n);
1081
+ }), me(t, "clickable");
1082
+ }, "setClickEvent"), Rr = /* @__PURE__ */ c(function(t) {
1083
+ Bt.forEach(function(e) {
1084
+ e(t);
1085
+ });
1086
+ }, "bindFunctions"), Nr = {
1087
+ getConfig: /* @__PURE__ */ c(() => ct().gantt, "getConfig"),
1088
+ clear: ar,
1089
+ setDateFormat: hr,
1090
+ getDateFormat: xr,
1091
+ enableInclusiveEndDates: mr,
1092
+ endDatesAreInclusive: kr,
1093
+ enableTopAxis: yr,
1094
+ topAxisEnabled: gr,
1095
+ setAxisFormat: or,
1096
+ getAxisFormat: cr,
1097
+ setTickInterval: lr,
1098
+ getTickInterval: ur,
1099
+ setTodayMarker: dr,
1100
+ getTodayMarker: fr,
1101
+ setAccTitle: Te,
1102
+ getAccTitle: xe,
1103
+ setDiagramTitle: ve,
1104
+ getDiagramTitle: pe,
1105
+ setDisplayMode: pr,
1106
+ getDisplayMode: vr,
1107
+ setAccDescription: ge,
1108
+ getAccDescription: ye,
1109
+ addSection: Sr,
1110
+ getSections: Cr,
1111
+ getTasks: Er,
1112
+ addTask: Wr,
1113
+ findTaskById: it,
1114
+ addTaskOrg: Vr,
1115
+ setIncludes: Tr,
1116
+ getIncludes: br,
1117
+ setExcludes: wr,
1118
+ getExcludes: _r,
1119
+ setClickEvent: Or,
1120
+ setLink: Pr,
1121
+ getLinks: Dr,
1122
+ bindFunctions: Rr,
1123
+ parseDuration: de,
1124
+ isInvalidDate: le,
1125
+ setWeekday: Mr,
1126
+ getWeekday: Ar,
1127
+ setWeekend: Ir
1128
+ };
1129
+ function Gt(t, e, n) {
1130
+ let i = !0;
1131
+ for (; i; )
1132
+ i = !1, n.forEach(function(a) {
1133
+ const k = "^\\s*" + a + "\\s*$", d = new RegExp(k);
1134
+ t[0].match(d) && (e[a] = !0, t.shift(1), i = !0);
1135
+ });
1136
+ }
1137
+ c(Gt, "getTaskTags");
1138
+ var Br = /* @__PURE__ */ c(function() {
1139
+ Dt.debug("Something is calling, setConf, remove the call");
1140
+ }, "setConf"), ae = {
1141
+ monday: Le,
1142
+ tuesday: Fe,
1143
+ wednesday: Ie,
1144
+ thursday: Ae,
1145
+ friday: Me,
1146
+ saturday: Ee,
1147
+ sunday: Ce
1148
+ }, qr = /* @__PURE__ */ c((t, e) => {
1149
+ let n = [...t].map(() => -1 / 0), i = [...t].sort((k, d) => k.startTime - d.startTime || k.order - d.order), a = 0;
1150
+ for (const k of i)
1151
+ for (let d = 0; d < n.length; d++)
1152
+ if (k.startTime >= n[d]) {
1153
+ n[d] = k.endTime, k.order = d + e, d > a && (a = d);
1154
+ break;
1155
+ }
1156
+ return a;
1157
+ }, "getMaxIntersections"), et, Hr = /* @__PURE__ */ c(function(t, e, n, i) {
1158
+ const a = ct().gantt, k = ct().securityLevel;
1159
+ let d;
1160
+ k === "sandbox" && (d = gt("#i" + e));
1161
+ const D = k === "sandbox" ? gt(d.nodes()[0].contentDocument.body) : gt("body"), E = k === "sandbox" ? d.nodes()[0].contentDocument : document, C = E.getElementById(e);
1162
+ et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
1163
+ const g = i.db.getTasks();
1164
+ let I = [];
1165
+ for (const y of g)
1166
+ I.push(y.type);
1167
+ I = z(I);
1168
+ const S = {};
1169
+ let p = 2 * a.topPadding;
1170
+ if (i.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1171
+ const y = {};
1172
+ for (const x of g)
1173
+ y[x.section] === void 0 ? y[x.section] = [x] : y[x.section].push(x);
1174
+ let b = 0;
1175
+ for (const x of Object.keys(y)) {
1176
+ const T = qr(y[x], b) + 1;
1177
+ b += T, p += T * (a.barHeight + a.barGap), S[x] = T;
1178
+ }
1179
+ } else {
1180
+ p += g.length * (a.barHeight + a.barGap);
1181
+ for (const y of I)
1182
+ S[y] = g.filter((b) => b.type === y).length;
1183
+ }
1184
+ C.setAttribute("viewBox", "0 0 " + et + " " + p);
1185
+ const H = D.select(`[id="${e}"]`), F = Ye().domain([
1186
+ We(g, function(y) {
1187
+ return y.startTime;
1188
+ }),
1189
+ Ve(g, function(y) {
1190
+ return y.endTime;
1191
+ })
1192
+ ]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
1193
+ function v(y, b) {
1194
+ const x = y.startTime, T = b.startTime;
1195
+ let m = 0;
1196
+ return x > T ? m = 1 : x < T && (m = -1), m;
1197
+ }
1198
+ c(v, "taskCompare"), g.sort(v), M(g, et, p), be(H, p, et, a.useMaxWidth), H.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
1199
+ function M(y, b, x) {
1200
+ const T = a.barHeight, m = T + a.barGap, w = a.topPadding, o = a.leftPadding, l = ze().domain([0, I.length]).range(["#00B9FA", "#F95002"]).interpolate(Pe);
1201
+ Y(
1202
+ m,
1203
+ w,
1204
+ o,
1205
+ b,
1206
+ x,
1207
+ y,
1208
+ i.db.getExcludes(),
1209
+ i.db.getIncludes()
1210
+ ), N(o, w, b, x), L(y, m, w, o, T, l, b), R(m, w), G(o, w, b, x);
1211
+ }
1212
+ c(M, "makeGantt");
1213
+ function L(y, b, x, T, m, w, o) {
1214
+ const h = [...new Set(y.map((u) => u.order))].map((u) => y.find((r) => r.order === u));
1215
+ H.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(u, r) {
1216
+ return r = u.order, r * b + x - 2;
1217
+ }).attr("width", function() {
1218
+ return o - a.rightPadding / 2;
1219
+ }).attr("height", b).attr("class", function(u) {
1220
+ for (const [r, W] of I.entries())
1221
+ if (u.type === W)
1222
+ return "section section" + r % a.numberSectionStyles;
1223
+ return "section section0";
1224
+ });
1225
+ const f = H.append("g").selectAll("rect").data(y).enter(), _ = i.db.getLinks();
1226
+ if (f.append("rect").attr("id", function(u) {
1227
+ return u.id;
1228
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
1229
+ return u.milestone ? F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m : F(u.startTime) + T;
1230
+ }).attr("y", function(u, r) {
1231
+ return r = u.order, r * b + x;
1232
+ }).attr("width", function(u) {
1233
+ return u.milestone ? m : F(u.renderEndTime || u.endTime) - F(u.startTime);
1234
+ }).attr("height", m).attr("transform-origin", function(u, r) {
1235
+ return r = u.order, (F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime))).toString() + "px " + (r * b + x + 0.5 * m).toString() + "px";
1236
+ }).attr("class", function(u) {
1237
+ const r = "task";
1238
+ let W = "";
1239
+ u.classes.length > 0 && (W = u.classes.join(" "));
1240
+ let A = 0;
1241
+ for (const [X, P] of I.entries())
1242
+ u.type === P && (A = X % a.numberSectionStyles);
1243
+ let V = "";
1244
+ return u.active ? u.crit ? V += " activeCrit" : V = " active" : u.done ? u.crit ? V = " doneCrit" : V = " done" : u.crit && (V += " crit"), V.length === 0 && (V = " task"), u.milestone && (V = " milestone " + V), V += A, V += " " + W, r + V;
1245
+ }), f.append("text").attr("id", function(u) {
1246
+ return u.id + "-text";
1247
+ }).text(function(u) {
1248
+ return u.task;
1249
+ }).attr("font-size", a.fontSize).attr("x", function(u) {
1250
+ let r = F(u.startTime), W = F(u.renderEndTime || u.endTime);
1251
+ u.milestone && (r += 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m), u.milestone && (W = r + m);
1252
+ const A = this.getBBox().width;
1253
+ return A > W - r ? W + A + 1.5 * a.leftPadding > o ? r + T - 5 : W + T + 5 : (W - r) / 2 + r + T;
1254
+ }).attr("y", function(u, r) {
1255
+ return r = u.order, r * b + a.barHeight / 2 + (a.fontSize / 2 - 2) + x;
1256
+ }).attr("text-height", m).attr("class", function(u) {
1257
+ const r = F(u.startTime);
1258
+ let W = F(u.endTime);
1259
+ u.milestone && (W = r + m);
1260
+ const A = this.getBBox().width;
1261
+ let V = "";
1262
+ u.classes.length > 0 && (V = u.classes.join(" "));
1263
+ let X = 0;
1264
+ for (const [O, $] of I.entries())
1265
+ u.type === $ && (X = O % a.numberSectionStyles);
1266
+ let P = "";
1267
+ return u.active && (u.crit ? P = "activeCritText" + X : P = "activeText" + X), u.done ? u.crit ? P = P + " doneCritText" + X : P = P + " doneText" + X : u.crit && (P = P + " critText" + X), u.milestone && (P += " milestoneText"), A > W - r ? W + A + 1.5 * a.leftPadding > o ? V + " taskTextOutsideLeft taskTextOutside" + X + " " + P : V + " taskTextOutsideRight taskTextOutside" + X + " " + P + " width-" + A : V + " taskText taskText" + X + " " + P + " width-" + A;
1268
+ }), ct().securityLevel === "sandbox") {
1269
+ let u;
1270
+ u = gt("#i" + e);
1271
+ const r = u.nodes()[0].contentDocument;
1272
+ f.filter(function(W) {
1273
+ return _.has(W.id);
1274
+ }).each(function(W) {
1275
+ var A = r.querySelector("#" + W.id), V = r.querySelector("#" + W.id + "-text");
1276
+ const X = A.parentNode;
1277
+ var P = r.createElement("a");
1278
+ P.setAttribute("xlink:href", _.get(W.id)), P.setAttribute("target", "_top"), X.appendChild(P), P.appendChild(A), P.appendChild(V);
1279
+ });
1280
+ }
1281
+ }
1282
+ c(L, "drawRects");
1283
+ function Y(y, b, x, T, m, w, o, l) {
1284
+ if (o.length === 0 && l.length === 0)
1285
+ return;
1286
+ let h, f;
1287
+ for (const { startTime: A, endTime: V } of w)
1288
+ (h === void 0 || A < h) && (h = A), (f === void 0 || V > f) && (f = V);
1289
+ if (!h || !f)
1290
+ return;
1291
+ if (U(f).diff(U(h), "year") > 5) {
1292
+ Dt.warn(
1293
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
1294
+ );
1295
+ return;
1296
+ }
1297
+ const _ = i.db.getDateFormat(), s = [];
1298
+ let u = null, r = U(h);
1299
+ for (; r.valueOf() <= f; )
1300
+ i.db.isInvalidDate(r, _, o, l) ? u ? u.end = r : u = {
1301
+ start: r,
1302
+ end: r
1303
+ } : u && (s.push(u), u = null), r = r.add(1, "d");
1304
+ H.append("g").selectAll("rect").data(s).enter().append("rect").attr("id", function(A) {
1305
+ return "exclude-" + A.start.format("YYYY-MM-DD");
1306
+ }).attr("x", function(A) {
1307
+ return F(A.start) + x;
1308
+ }).attr("y", a.gridLineStartPadding).attr("width", function(A) {
1309
+ const V = A.end.add(1, "day");
1310
+ return F(V) - F(A.start);
1311
+ }).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(A, V) {
1312
+ return (F(A.start) + x + 0.5 * (F(A.end) - F(A.start))).toString() + "px " + (V * y + 0.5 * m).toString() + "px";
1313
+ }).attr("class", "exclude-range");
1314
+ }
1315
+ c(Y, "drawExcludeDays");
1316
+ function N(y, b, x, T) {
1317
+ let m = Xe(F).tickSize(-T + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
1318
+ const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1319
+ i.db.getTickInterval() || a.tickInterval
1320
+ );
1321
+ if (o !== null) {
1322
+ const l = o[1], h = o[2], f = i.db.getWeekday() || a.weekday;
1323
+ switch (h) {
1324
+ case "millisecond":
1325
+ m.ticks(Jt.every(l));
1326
+ break;
1327
+ case "second":
1328
+ m.ticks(Kt.every(l));
1329
+ break;
1330
+ case "minute":
1331
+ m.ticks($t.every(l));
1332
+ break;
1333
+ case "hour":
1334
+ m.ticks(Qt.every(l));
1335
+ break;
1336
+ case "day":
1337
+ m.ticks(Zt.every(l));
1338
+ break;
1339
+ case "week":
1340
+ m.ticks(ae[f].every(l));
1341
+ break;
1342
+ case "month":
1343
+ m.ticks(Ut.every(l));
1344
+ break;
1345
+ }
1346
+ }
1347
+ if (H.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (T - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || a.topAxis) {
1348
+ let l = Ge(F).tickSize(-T + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
1349
+ if (o !== null) {
1350
+ const h = o[1], f = o[2], _ = i.db.getWeekday() || a.weekday;
1351
+ switch (f) {
1352
+ case "millisecond":
1353
+ l.ticks(Jt.every(h));
1354
+ break;
1355
+ case "second":
1356
+ l.ticks(Kt.every(h));
1357
+ break;
1358
+ case "minute":
1359
+ l.ticks($t.every(h));
1360
+ break;
1361
+ case "hour":
1362
+ l.ticks(Qt.every(h));
1363
+ break;
1364
+ case "day":
1365
+ l.ticks(Zt.every(h));
1366
+ break;
1367
+ case "week":
1368
+ l.ticks(ae[_].every(h));
1369
+ break;
1370
+ case "month":
1371
+ l.ticks(Ut.every(h));
1372
+ break;
1373
+ }
1374
+ }
1375
+ H.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + b + ")").call(l).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1376
+ }
1377
+ }
1378
+ c(N, "makeGrid");
1379
+ function R(y, b) {
1380
+ let x = 0;
1381
+ const T = Object.keys(S).map((m) => [m, S[m]]);
1382
+ H.append("g").selectAll("text").data(T).enter().append(function(m) {
1383
+ const w = m[0].split(we.lineBreakRegex), o = -(w.length - 1) / 2, l = E.createElementNS("http://www.w3.org/2000/svg", "text");
1384
+ l.setAttribute("dy", o + "em");
1385
+ for (const [h, f] of w.entries()) {
1386
+ const _ = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
1387
+ _.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f, l.appendChild(_);
1388
+ }
1389
+ return l;
1390
+ }).attr("x", 10).attr("y", function(m, w) {
1391
+ if (w > 0)
1392
+ for (let o = 0; o < w; o++)
1393
+ return x += T[w - 1][1], m[1] * y / 2 + x * y + b;
1394
+ else
1395
+ return m[1] * y / 2 + b;
1396
+ }).attr("font-size", a.sectionFontSize).attr("class", function(m) {
1397
+ for (const [w, o] of I.entries())
1398
+ if (m[0] === o)
1399
+ return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
1400
+ return "sectionTitle";
1401
+ });
1402
+ }
1403
+ c(R, "vertLabels");
1404
+ function G(y, b, x, T) {
1405
+ const m = i.db.getTodayMarker();
1406
+ if (m === "off")
1407
+ return;
1408
+ const w = H.append("g").attr("class", "today"), o = /* @__PURE__ */ new Date(), l = w.append("line");
1409
+ l.attr("x1", F(o) + y).attr("x2", F(o) + y).attr("y1", a.titleTopMargin).attr("y2", T - a.titleTopMargin).attr("class", "today"), m !== "" && l.attr("style", m.replace(/,/g, ";"));
1410
+ }
1411
+ c(G, "drawToday");
1412
+ function z(y) {
1413
+ const b = {}, x = [];
1414
+ for (let T = 0, m = y.length; T < m; ++T)
1415
+ Object.prototype.hasOwnProperty.call(b, y[T]) || (b[y[T]] = !0, x.push(y[T]));
1416
+ return x;
1417
+ }
1418
+ c(z, "checkUnique");
1419
+ }, "draw"), Gr = {
1420
+ setConf: Br,
1421
+ draw: Hr
1422
+ }, Xr = /* @__PURE__ */ c((t) => `
1423
+ .mermaid-main-font {
1424
+ font-family: ${t.fontFamily};
1425
+ }
1426
+
1427
+ .exclude-range {
1428
+ fill: ${t.excludeBkgColor};
1429
+ }
1430
+
1431
+ .section {
1432
+ stroke: none;
1433
+ opacity: 0.2;
1434
+ }
1435
+
1436
+ .section0 {
1437
+ fill: ${t.sectionBkgColor};
1438
+ }
1439
+
1440
+ .section2 {
1441
+ fill: ${t.sectionBkgColor2};
1442
+ }
1443
+
1444
+ .section1,
1445
+ .section3 {
1446
+ fill: ${t.altSectionBkgColor};
1447
+ opacity: 0.2;
1448
+ }
1449
+
1450
+ .sectionTitle0 {
1451
+ fill: ${t.titleColor};
1452
+ }
1453
+
1454
+ .sectionTitle1 {
1455
+ fill: ${t.titleColor};
1456
+ }
1457
+
1458
+ .sectionTitle2 {
1459
+ fill: ${t.titleColor};
1460
+ }
1461
+
1462
+ .sectionTitle3 {
1463
+ fill: ${t.titleColor};
1464
+ }
1465
+
1466
+ .sectionTitle {
1467
+ text-anchor: start;
1468
+ font-family: ${t.fontFamily};
1469
+ }
1470
+
1471
+
1472
+ /* Grid and axis */
1473
+
1474
+ .grid .tick {
1475
+ stroke: ${t.gridColor};
1476
+ opacity: 0.8;
1477
+ shape-rendering: crispEdges;
1478
+ }
1479
+
1480
+ .grid .tick text {
1481
+ font-family: ${t.fontFamily};
1482
+ fill: ${t.textColor};
1483
+ }
1484
+
1485
+ .grid path {
1486
+ stroke-width: 0;
1487
+ }
1488
+
1489
+
1490
+ /* Today line */
1491
+
1492
+ .today {
1493
+ fill: none;
1494
+ stroke: ${t.todayLineColor};
1495
+ stroke-width: 2px;
1496
+ }
1497
+
1498
+
1499
+ /* Task styling */
1500
+
1501
+ /* Default task */
1502
+
1503
+ .task {
1504
+ stroke-width: 2;
1505
+ }
1506
+
1507
+ .taskText {
1508
+ text-anchor: middle;
1509
+ font-family: ${t.fontFamily};
1510
+ }
1511
+
1512
+ .taskTextOutsideRight {
1513
+ fill: ${t.taskTextDarkColor};
1514
+ text-anchor: start;
1515
+ font-family: ${t.fontFamily};
1516
+ }
1517
+
1518
+ .taskTextOutsideLeft {
1519
+ fill: ${t.taskTextDarkColor};
1520
+ text-anchor: end;
1521
+ }
1522
+
1523
+
1524
+ /* Special case clickable */
1525
+
1526
+ .task.clickable {
1527
+ cursor: pointer;
1528
+ }
1529
+
1530
+ .taskText.clickable {
1531
+ cursor: pointer;
1532
+ fill: ${t.taskTextClickableColor} !important;
1533
+ font-weight: bold;
1534
+ }
1535
+
1536
+ .taskTextOutsideLeft.clickable {
1537
+ cursor: pointer;
1538
+ fill: ${t.taskTextClickableColor} !important;
1539
+ font-weight: bold;
1540
+ }
1541
+
1542
+ .taskTextOutsideRight.clickable {
1543
+ cursor: pointer;
1544
+ fill: ${t.taskTextClickableColor} !important;
1545
+ font-weight: bold;
1546
+ }
1547
+
1548
+
1549
+ /* Specific task settings for the sections*/
1550
+
1551
+ .taskText0,
1552
+ .taskText1,
1553
+ .taskText2,
1554
+ .taskText3 {
1555
+ fill: ${t.taskTextColor};
1556
+ }
1557
+
1558
+ .task0,
1559
+ .task1,
1560
+ .task2,
1561
+ .task3 {
1562
+ fill: ${t.taskBkgColor};
1563
+ stroke: ${t.taskBorderColor};
1564
+ }
1565
+
1566
+ .taskTextOutside0,
1567
+ .taskTextOutside2
1568
+ {
1569
+ fill: ${t.taskTextOutsideColor};
1570
+ }
1571
+
1572
+ .taskTextOutside1,
1573
+ .taskTextOutside3 {
1574
+ fill: ${t.taskTextOutsideColor};
1575
+ }
1576
+
1577
+
1578
+ /* Active task */
1579
+
1580
+ .active0,
1581
+ .active1,
1582
+ .active2,
1583
+ .active3 {
1584
+ fill: ${t.activeTaskBkgColor};
1585
+ stroke: ${t.activeTaskBorderColor};
1586
+ }
1587
+
1588
+ .activeText0,
1589
+ .activeText1,
1590
+ .activeText2,
1591
+ .activeText3 {
1592
+ fill: ${t.taskTextDarkColor} !important;
1593
+ }
1594
+
1595
+
1596
+ /* Completed task */
1597
+
1598
+ .done0,
1599
+ .done1,
1600
+ .done2,
1601
+ .done3 {
1602
+ stroke: ${t.doneTaskBorderColor};
1603
+ fill: ${t.doneTaskBkgColor};
1604
+ stroke-width: 2;
1605
+ }
1606
+
1607
+ .doneText0,
1608
+ .doneText1,
1609
+ .doneText2,
1610
+ .doneText3 {
1611
+ fill: ${t.taskTextDarkColor} !important;
1612
+ }
1613
+
1614
+
1615
+ /* Tasks on the critical line */
1616
+
1617
+ .crit0,
1618
+ .crit1,
1619
+ .crit2,
1620
+ .crit3 {
1621
+ stroke: ${t.critBorderColor};
1622
+ fill: ${t.critBkgColor};
1623
+ stroke-width: 2;
1624
+ }
1625
+
1626
+ .activeCrit0,
1627
+ .activeCrit1,
1628
+ .activeCrit2,
1629
+ .activeCrit3 {
1630
+ stroke: ${t.critBorderColor};
1631
+ fill: ${t.activeTaskBkgColor};
1632
+ stroke-width: 2;
1633
+ }
1634
+
1635
+ .doneCrit0,
1636
+ .doneCrit1,
1637
+ .doneCrit2,
1638
+ .doneCrit3 {
1639
+ stroke: ${t.critBorderColor};
1640
+ fill: ${t.doneTaskBkgColor};
1641
+ stroke-width: 2;
1642
+ cursor: pointer;
1643
+ shape-rendering: crispEdges;
1644
+ }
1645
+
1646
+ .milestone {
1647
+ transform: rotate(45deg) scale(0.8,0.8);
1648
+ }
1649
+
1650
+ .milestoneText {
1651
+ font-style: italic;
1652
+ }
1653
+ .doneCritText0,
1654
+ .doneCritText1,
1655
+ .doneCritText2,
1656
+ .doneCritText3 {
1657
+ fill: ${t.taskTextDarkColor} !important;
1658
+ }
1659
+
1660
+ .activeCritText0,
1661
+ .activeCritText1,
1662
+ .activeCritText2,
1663
+ .activeCritText3 {
1664
+ fill: ${t.taskTextDarkColor} !important;
1665
+ }
1666
+
1667
+ .titleText {
1668
+ text-anchor: middle;
1669
+ font-size: 18px;
1670
+ fill: ${t.titleColor || t.textColor};
1671
+ font-family: ${t.fontFamily};
1672
+ }
1673
+ `, "getStyles"), jr = Xr, Kr = {
1674
+ parser: sr,
1675
+ db: Nr,
1676
+ renderer: Gr,
1677
+ styles: jr
1678
+ };
1679
+ export {
1680
+ Kr as diagram
1681
+ };