@sourcegraph/amp 0.0.1749585689-g82b91d → 0.0.1749614780-g9a56bd
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.
- package/dist/amp.js +3 -3
- package/dist/architectureDiagram-RWNHDUBN-1v8WgxdD.js +4635 -0
- package/dist/blockDiagram-XZSR5OGQ-XFBYN-jB.js +2243 -0
- package/dist/c4Diagram-6R2MQUNL-B0L0pltn.js +1587 -0
- package/dist/chunk-COUQ6RZ3-qd4eG6tc.js +17852 -0
- package/dist/chunk-CRQPXCKQ-yjI467Bq.js +65 -0
- package/dist/chunk-EFPBJHX4-DdHmqd0M.js +1378 -0
- package/dist/chunk-EOAU2GW5-CpRNAcjo.js +253 -0
- package/dist/chunk-IHYUGLNO-DJcRQIf7.js +1365 -0
- package/dist/chunk-K2ZEYYM2-CbqHhUqy.js +9 -0
- package/dist/chunk-Q7VUVKE6-gBSSbdjU.js +24 -0
- package/dist/chunk-T2M37SMK-Br8mK30k.js +1411 -0
- package/dist/chunk-TGZYFRKZ-BYBLXoJz.js +1331 -0
- package/dist/chunk-YJGJQOYZ-BGiSkWF0.js +19 -0
- package/dist/classDiagram-LB37KKQG-DhFsEyDS.js +17 -0
- package/dist/classDiagram-v2-KFQJBC22-DhFsEyDS.js +17 -0
- package/dist/{client-C1WG2nEf.js → client-D-YAg8x6.js} +6 -6
- package/dist/{console-DK0gDzNQ.js → console-CoE5Qzyz.js} +41106 -22971
- package/dist/create_file.node-Co0Uh1F3.js +21 -0
- package/dist/dagre-CMTPJJKG-UDPzd9Iy.js +446 -0
- package/dist/diagram-BIPOGRU5-B7TV59-n.js +128 -0
- package/dist/diagram-YF4VECWA-LsAZsciQ.js +219 -0
- package/dist/{edit_file.node-BH524GkF.js → edit_file.node-CmTZeBc2.js} +11 -11
- package/dist/erDiagram-AK44R45H-BWpeEu7D.js +843 -0
- package/dist/{executable-5cBRGrsC.js → executable-BE7tfoX5.js} +1 -1
- package/dist/{files-CybxYgbE.js → files-DqpRf5q4.js} +10 -10
- package/dist/flowDiagram-XARHJDSH-DzpV02UB.js +1618 -0
- package/dist/ganttDiagram-H5QQZTZ5-C0BhJTzn.js +1605 -0
- package/dist/gitGraphDiagram-XHLTLO3W-0EiOmv44.js +701 -0
- package/dist/{glob.node-C6HbLuPt.js → glob.node-DNei8bFS.js} +11 -11
- package/dist/{index-C2wo7rRZ.js → index-BcjxaWOc.js} +31 -31
- package/dist/infoDiagram-TP2HPDHO-CQX5a0Fc.js +24 -0
- package/dist/journeyDiagram-VHRN44N3-C82dEe4G.js +809 -0
- package/dist/kanban-definition-K5J3OUUV-xilJcrom.js +718 -0
- package/dist/katex-5N2NCDMP-CAsrnb6_.js +11703 -0
- package/dist/{list_directory.node-ZQscizpi.js → list_directory.node-CMiNNbXP.js} +1 -1
- package/dist/{load-profile-BbmyxO_7.js → load-profile-Cg8XaTx6.js} +1 -1
- package/dist/{main-CiUaVPC2.js → main-CtwgALCc.js} +23 -16
- package/dist/mindmap-definition-TI5ONXTW-BNaRba4R.js +3221 -0
- package/dist/{node-VrazB_nQ.js → node-Bfma_T75.js} +58 -58
- package/dist/{node-DvmQAW7h.js → node-BtG1o_DD.js} +2 -2
- package/dist/{node-GgocwWwI.js → node-CZJC9BSF.js} +3 -3
- package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
- package/dist/{node-CiFAW-F3.js → node-Ctw1i0nl.js} +12 -12
- package/dist/{node-CgVq0JJ9.js → node-D1zxOCuN.js} +1 -1
- package/dist/pieDiagram-FPR3CNQC-_30_tQz0.js +120 -0
- package/dist/quadrantDiagram-RLP5YTJ2-CTD43GTk.js +1028 -0
- package/dist/radar-MK3ICKWK-55CS4JTO-afihMdR4.js +14398 -0
- package/dist/{read_file.node-CIdAFiJ6.js → read_file.node-QZ0VCmB2.js} +1 -1
- package/dist/requirementDiagram-P5NVWGNK-Sd2_6g8e.js +853 -0
- package/dist/sankeyDiagram-C6NZRJHT-D1EcCYaw.js +864 -0
- package/dist/sequenceDiagram-6SLVIXKN-CghQTpGf.js +2283 -0
- package/dist/stateDiagram-WI5ZVJ5I-Bv21MlSK.js +272 -0
- package/dist/stateDiagram-v2-KVDSFUFK-BgP0D8xL.js +17 -0
- package/dist/{stdio-D9HyubOc.js → stdio-yXWLIEvb.js} +8 -8
- package/dist/storybook.js +7 -7
- package/dist/timeline-definition-65575674-BUqRZdJ-.js +800 -0
- package/dist/{undo_edit.node-VYuTxRwd.js → undo_edit.node-BkletvTZ.js} +5 -5
- package/dist/xychartDiagram-674MFTBU-DjBabATx.js +1291 -0
- package/package.json +1 -1
- package/dist/create_file.node-DtVTaHj5.js +0 -21
@@ -0,0 +1,1605 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
import { _ as c, v as ot, u as ct, U as lt, T as ut, w as dt, x as ft, y as ce, z as pe, a8 as ht, a9 as kt, aa as mt, C as yt, ab as gt, ac as pt, J as de, A as be, ad as vt, ae as je, af as Be, ag as Tt, ah as bt, ai as xt, aj as _t, ak as wt, al as Dt, am as St, an as qe, ao as Ge, ap as He, aq as Ue, ar as Xe, as as Ct, L as Et, Z as Mt, at as Ke, N as At, S as It, au as Ae } from "./console-CoE5Qzyz.js";
|
3
|
+
var Lt = Ae({
|
4
|
+
"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.js"(e, s) {
|
5
|
+
(function(a, i) {
|
6
|
+
typeof e == "object" && typeof s < "u" ? s.exports = i() : typeof define == "function" && define.amd ? define(i) : (a = typeof globalThis < "u" ? globalThis : a || self).dayjs_plugin_isoWeek = i();
|
7
|
+
})(e, function() {
|
8
|
+
var a = "day";
|
9
|
+
return function(i, n, k) {
|
10
|
+
var f = /* @__PURE__ */ c(function(E) {
|
11
|
+
return E.add(4 - E.isoWeekday(), a);
|
12
|
+
}, "a"), w = n.prototype;
|
13
|
+
w.isoWeekYear = function() {
|
14
|
+
return f(this).year();
|
15
|
+
}, w.isoWeek = function(E) {
|
16
|
+
if (!this.$utils().u(E)) return this.add(7 * (E - this.isoWeek()), a);
|
17
|
+
var g, M, O, P, j = f(this), C = (g = this.isoWeekYear(), M = this.$u, O = (M ? k.utc : k)().year(g).startOf("year"), P = 4 - O.isoWeekday(), O.isoWeekday() > 4 && (P += 7), O.add(P, a));
|
18
|
+
return j.diff(C, "week") + 1;
|
19
|
+
}, w.isoWeekday = function(E) {
|
20
|
+
return this.$utils().u(E) ? this.day() || 7 : this.day(this.day() % 7 ? E : E - 7);
|
21
|
+
};
|
22
|
+
var Y = w.startOf;
|
23
|
+
w.startOf = function(E, g) {
|
24
|
+
var M = this.$utils(), O = !!M.u(g) || g;
|
25
|
+
return M.p(E) === "isoweek" ? O ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : Y.bind(this)(E, g);
|
26
|
+
};
|
27
|
+
};
|
28
|
+
});
|
29
|
+
}
|
30
|
+
}), Ft = Ae({
|
31
|
+
"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.js"(e, s) {
|
32
|
+
(function(a, i) {
|
33
|
+
typeof e == "object" && typeof s < "u" ? s.exports = i() : typeof define == "function" && define.amd ? define(i) : (a = typeof globalThis < "u" ? globalThis : a || self).dayjs_plugin_customParseFormat = i();
|
34
|
+
})(e, function() {
|
35
|
+
var a = { 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, n = /\d/, k = /\d\d/, f = /\d\d?/, w = /\d*[^-_:/,()\s\d]+/, Y = {}, E = /* @__PURE__ */ c(function(p) {
|
36
|
+
return (p = +p) + (p > 68 ? 1900 : 2e3);
|
37
|
+
}, "a"), g = /* @__PURE__ */ c(function(p) {
|
38
|
+
return function(S) {
|
39
|
+
this[p] = +S;
|
40
|
+
};
|
41
|
+
}, "f"), M = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
|
42
|
+
(this.zone || (this.zone = {})).offset = function(S) {
|
43
|
+
if (!S || S === "Z") return 0;
|
44
|
+
var L = S.match(/([+-]|\d\d)/g), F = 60 * L[1] + (+L[2] || 0);
|
45
|
+
return F === 0 ? 0 : L[0] === "+" ? -F : F;
|
46
|
+
}(p);
|
47
|
+
}], O = /* @__PURE__ */ c(function(p) {
|
48
|
+
var S = Y[p];
|
49
|
+
return S && (S.indexOf ? S : S.s.concat(S.f));
|
50
|
+
}, "u"), P = /* @__PURE__ */ c(function(p, S) {
|
51
|
+
var L, F = Y.meridiem;
|
52
|
+
if (F) {
|
53
|
+
for (var q = 1; q <= 24; q += 1) if (p.indexOf(F(q, 0, S)) > -1) {
|
54
|
+
L = q > 12;
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
} else L = p === (S ? "pm" : "PM");
|
58
|
+
return L;
|
59
|
+
}, "d"), j = { A: [w, function(p) {
|
60
|
+
this.afternoon = P(p, !1);
|
61
|
+
}], a: [w, function(p) {
|
62
|
+
this.afternoon = P(p, !0);
|
63
|
+
}], Q: [n, function(p) {
|
64
|
+
this.month = 3 * (p - 1) + 1;
|
65
|
+
}], S: [n, function(p) {
|
66
|
+
this.milliseconds = 100 * +p;
|
67
|
+
}], SS: [k, function(p) {
|
68
|
+
this.milliseconds = 10 * +p;
|
69
|
+
}], SSS: [/\d{3}/, function(p) {
|
70
|
+
this.milliseconds = +p;
|
71
|
+
}], s: [f, g("seconds")], ss: [f, g("seconds")], m: [f, g("minutes")], mm: [f, g("minutes")], H: [f, g("hours")], h: [f, g("hours")], HH: [f, g("hours")], hh: [f, g("hours")], D: [f, g("day")], DD: [k, g("day")], Do: [w, function(p) {
|
72
|
+
var S = Y.ordinal, L = p.match(/\d+/);
|
73
|
+
if (this.day = L[0], S) for (var F = 1; F <= 31; F += 1) S(F).replace(/\[|\]/g, "") === p && (this.day = F);
|
74
|
+
}], w: [f, g("week")], ww: [k, g("week")], M: [f, g("month")], MM: [k, g("month")], MMM: [w, function(p) {
|
75
|
+
var S = O("months"), L = (O("monthsShort") || S.map(function(F) {
|
76
|
+
return F.slice(0, 3);
|
77
|
+
})).indexOf(p) + 1;
|
78
|
+
if (L < 1) throw new Error();
|
79
|
+
this.month = L % 12 || L;
|
80
|
+
}], MMMM: [w, function(p) {
|
81
|
+
var S = O("months").indexOf(p) + 1;
|
82
|
+
if (S < 1) throw new Error();
|
83
|
+
this.month = S % 12 || S;
|
84
|
+
}], Y: [/[+-]?\d+/, g("year")], YY: [k, function(p) {
|
85
|
+
this.year = E(p);
|
86
|
+
}], YYYY: [/\d{4}/, g("year")], Z: M, ZZ: M };
|
87
|
+
function C(p) {
|
88
|
+
var S, L;
|
89
|
+
S = p, L = Y && Y.formats;
|
90
|
+
for (var F = (p = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, x, m) {
|
91
|
+
var _ = m && m.toUpperCase();
|
92
|
+
return x || L[m] || a[m] || L[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
|
93
|
+
return l || h.slice(1);
|
94
|
+
});
|
95
|
+
})).match(i), q = F.length, G = 0; G < q; G += 1) {
|
96
|
+
var Q = F[G], H = j[Q], y = H && H[0], T = H && H[1];
|
97
|
+
F[G] = T ? { regex: y, parser: T } : Q.replace(/^\[|\]$/g, "");
|
98
|
+
}
|
99
|
+
return function(b) {
|
100
|
+
for (var x = {}, m = 0, _ = 0; m < q; m += 1) {
|
101
|
+
var o = F[m];
|
102
|
+
if (typeof o == "string") _ += o.length;
|
103
|
+
else {
|
104
|
+
var l = o.regex, h = o.parser, d = b.slice(_), v = l.exec(d)[0];
|
105
|
+
h.call(x, v), b = b.replace(v, "");
|
106
|
+
}
|
107
|
+
}
|
108
|
+
return function(r) {
|
109
|
+
var u = r.afternoon;
|
110
|
+
if (u !== void 0) {
|
111
|
+
var t = r.hours;
|
112
|
+
u ? t < 12 && (r.hours += 12) : t === 12 && (r.hours = 0), delete r.afternoon;
|
113
|
+
}
|
114
|
+
}(x), x;
|
115
|
+
};
|
116
|
+
}
|
117
|
+
return c(C, "l"), function(p, S, L) {
|
118
|
+
L.p.customParseFormat = !0, p && p.parseTwoDigitYear && (E = p.parseTwoDigitYear);
|
119
|
+
var F = S.prototype, q = F.parse;
|
120
|
+
F.parse = function(G) {
|
121
|
+
var Q = G.date, H = G.utc, y = G.args;
|
122
|
+
this.$u = H;
|
123
|
+
var T = y[1];
|
124
|
+
if (typeof T == "string") {
|
125
|
+
var b = y[2] === !0, x = y[3] === !0, m = b || x, _ = y[2];
|
126
|
+
x && (_ = y[2]), Y = this.$locale(), !b && _ && (Y = L.Ls[_]), this.$d = function(d, v, r, u) {
|
127
|
+
try {
|
128
|
+
if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * d);
|
129
|
+
var t = C(v)(d), A = t.year, D = t.month, I = t.day, N = t.hours, W = t.minutes, V = t.seconds, J = t.milliseconds, re = t.zone, ne = t.week, fe = /* @__PURE__ */ new Date(), he = I || (A || D ? 1 : fe.getDate()), oe = A || fe.getFullYear(), z = 0;
|
130
|
+
A && !D || (z = D > 0 ? D - 1 : fe.getMonth());
|
131
|
+
var X, B = N || 0, ae = W || 0, K = V || 0, se = J || 0;
|
132
|
+
return re ? new Date(Date.UTC(oe, z, he, B, ae, K, se + 60 * re.offset * 1e3)) : r ? new Date(Date.UTC(oe, z, he, B, ae, K, se)) : (X = new Date(oe, z, he, B, ae, K, se), ne && (X = u(X).week(ne).toDate()), X);
|
133
|
+
} catch {
|
134
|
+
return /* @__PURE__ */ new Date("");
|
135
|
+
}
|
136
|
+
}(Q, T, H, L), this.init(), _ && _ !== !0 && (this.$L = this.locale(_).$L), m && Q != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), Y = {};
|
137
|
+
} else if (T instanceof Array) for (var o = T.length, l = 1; l <= o; l += 1) {
|
138
|
+
y[1] = T[l - 1];
|
139
|
+
var h = L.apply(this, y);
|
140
|
+
if (h.isValid()) {
|
141
|
+
this.$d = h.$d, this.$L = h.$L, this.init();
|
142
|
+
break;
|
143
|
+
}
|
144
|
+
l === o && (this.$d = /* @__PURE__ */ new Date(""));
|
145
|
+
}
|
146
|
+
else q.call(this, G);
|
147
|
+
};
|
148
|
+
};
|
149
|
+
});
|
150
|
+
}
|
151
|
+
}), Yt = Ae({
|
152
|
+
"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.js"(e, s) {
|
153
|
+
(function(a, i) {
|
154
|
+
typeof e == "object" && typeof s < "u" ? s.exports = i() : typeof define == "function" && define.amd ? define(i) : (a = typeof globalThis < "u" ? globalThis : a || self).dayjs_plugin_advancedFormat = i();
|
155
|
+
})(e, function() {
|
156
|
+
return function(a, i) {
|
157
|
+
var n = i.prototype, k = n.format;
|
158
|
+
n.format = function(f) {
|
159
|
+
var w = this, Y = this.$locale();
|
160
|
+
if (!this.isValid()) return k.bind(this)(f);
|
161
|
+
var E = this.$utils(), g = (f || "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(M) {
|
162
|
+
switch (M) {
|
163
|
+
case "Q":
|
164
|
+
return Math.ceil((w.$M + 1) / 3);
|
165
|
+
case "Do":
|
166
|
+
return Y.ordinal(w.$D);
|
167
|
+
case "gggg":
|
168
|
+
return w.weekYear();
|
169
|
+
case "GGGG":
|
170
|
+
return w.isoWeekYear();
|
171
|
+
case "wo":
|
172
|
+
return Y.ordinal(w.week(), "W");
|
173
|
+
case "w":
|
174
|
+
case "ww":
|
175
|
+
return E.s(w.week(), M === "w" ? 1 : 2, "0");
|
176
|
+
case "W":
|
177
|
+
case "WW":
|
178
|
+
return E.s(w.isoWeek(), M === "W" ? 1 : 2, "0");
|
179
|
+
case "k":
|
180
|
+
case "kk":
|
181
|
+
return E.s(String(w.$H === 0 ? 24 : w.$H), M === "k" ? 1 : 2, "0");
|
182
|
+
case "X":
|
183
|
+
return Math.floor(w.$d.getTime() / 1e3);
|
184
|
+
case "x":
|
185
|
+
return w.$d.getTime();
|
186
|
+
case "z":
|
187
|
+
return "[" + w.offsetName() + "]";
|
188
|
+
case "zzz":
|
189
|
+
return "[" + w.offsetName("long") + "]";
|
190
|
+
default:
|
191
|
+
return M;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
return k.bind(this)(g);
|
195
|
+
};
|
196
|
+
};
|
197
|
+
});
|
198
|
+
}
|
199
|
+
}), Se = function() {
|
200
|
+
var e = /* @__PURE__ */ c(function(_, o, l, h) {
|
201
|
+
for (l = l || {}, h = _.length; h--; l[_[h]] = o) ;
|
202
|
+
return l;
|
203
|
+
}, "o"), s = [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], a = [1, 26], i = [1, 27], n = [1, 28], k = [1, 29], f = [1, 30], w = [1, 31], Y = [1, 32], E = [1, 33], g = [1, 34], M = [1, 9], O = [1, 10], P = [1, 11], j = [1, 12], C = [1, 13], p = [1, 14], S = [1, 15], L = [1, 16], F = [1, 19], q = [1, 20], G = [1, 21], Q = [1, 22], H = [1, 23], y = [1, 25], T = [1, 35], b = {
|
204
|
+
trace: /* @__PURE__ */ c(function() {
|
205
|
+
}, "trace"),
|
206
|
+
yy: {},
|
207
|
+
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 },
|
208
|
+
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" },
|
209
|
+
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]],
|
210
|
+
performAction: /* @__PURE__ */ c(function(o, l, h, d, v, r, u) {
|
211
|
+
var t = r.length - 1;
|
212
|
+
switch (v) {
|
213
|
+
case 1:
|
214
|
+
return r[t - 1];
|
215
|
+
case 2:
|
216
|
+
this.$ = [];
|
217
|
+
break;
|
218
|
+
case 3:
|
219
|
+
r[t - 1].push(r[t]), this.$ = r[t - 1];
|
220
|
+
break;
|
221
|
+
case 4:
|
222
|
+
case 5:
|
223
|
+
this.$ = r[t];
|
224
|
+
break;
|
225
|
+
case 6:
|
226
|
+
case 7:
|
227
|
+
this.$ = [];
|
228
|
+
break;
|
229
|
+
case 8:
|
230
|
+
d.setWeekday("monday");
|
231
|
+
break;
|
232
|
+
case 9:
|
233
|
+
d.setWeekday("tuesday");
|
234
|
+
break;
|
235
|
+
case 10:
|
236
|
+
d.setWeekday("wednesday");
|
237
|
+
break;
|
238
|
+
case 11:
|
239
|
+
d.setWeekday("thursday");
|
240
|
+
break;
|
241
|
+
case 12:
|
242
|
+
d.setWeekday("friday");
|
243
|
+
break;
|
244
|
+
case 13:
|
245
|
+
d.setWeekday("saturday");
|
246
|
+
break;
|
247
|
+
case 14:
|
248
|
+
d.setWeekday("sunday");
|
249
|
+
break;
|
250
|
+
case 15:
|
251
|
+
d.setWeekend("friday");
|
252
|
+
break;
|
253
|
+
case 16:
|
254
|
+
d.setWeekend("saturday");
|
255
|
+
break;
|
256
|
+
case 17:
|
257
|
+
d.setDateFormat(r[t].substr(11)), this.$ = r[t].substr(11);
|
258
|
+
break;
|
259
|
+
case 18:
|
260
|
+
d.enableInclusiveEndDates(), this.$ = r[t].substr(18);
|
261
|
+
break;
|
262
|
+
case 19:
|
263
|
+
d.TopAxis(), this.$ = r[t].substr(8);
|
264
|
+
break;
|
265
|
+
case 20:
|
266
|
+
d.setAxisFormat(r[t].substr(11)), this.$ = r[t].substr(11);
|
267
|
+
break;
|
268
|
+
case 21:
|
269
|
+
d.setTickInterval(r[t].substr(13)), this.$ = r[t].substr(13);
|
270
|
+
break;
|
271
|
+
case 22:
|
272
|
+
d.setExcludes(r[t].substr(9)), this.$ = r[t].substr(9);
|
273
|
+
break;
|
274
|
+
case 23:
|
275
|
+
d.setIncludes(r[t].substr(9)), this.$ = r[t].substr(9);
|
276
|
+
break;
|
277
|
+
case 24:
|
278
|
+
d.setTodayMarker(r[t].substr(12)), this.$ = r[t].substr(12);
|
279
|
+
break;
|
280
|
+
case 27:
|
281
|
+
d.setDiagramTitle(r[t].substr(6)), this.$ = r[t].substr(6);
|
282
|
+
break;
|
283
|
+
case 28:
|
284
|
+
this.$ = r[t].trim(), d.setAccTitle(this.$);
|
285
|
+
break;
|
286
|
+
case 29:
|
287
|
+
case 30:
|
288
|
+
this.$ = r[t].trim(), d.setAccDescription(this.$);
|
289
|
+
break;
|
290
|
+
case 31:
|
291
|
+
d.addSection(r[t].substr(8)), this.$ = r[t].substr(8);
|
292
|
+
break;
|
293
|
+
case 33:
|
294
|
+
d.addTask(r[t - 1], r[t]), this.$ = "task";
|
295
|
+
break;
|
296
|
+
case 34:
|
297
|
+
this.$ = r[t - 1], d.setClickEvent(r[t - 1], r[t], null);
|
298
|
+
break;
|
299
|
+
case 35:
|
300
|
+
this.$ = r[t - 2], d.setClickEvent(r[t - 2], r[t - 1], r[t]);
|
301
|
+
break;
|
302
|
+
case 36:
|
303
|
+
this.$ = r[t - 2], d.setClickEvent(r[t - 2], r[t - 1], null), d.setLink(r[t - 2], r[t]);
|
304
|
+
break;
|
305
|
+
case 37:
|
306
|
+
this.$ = r[t - 3], d.setClickEvent(r[t - 3], r[t - 2], r[t - 1]), d.setLink(r[t - 3], r[t]);
|
307
|
+
break;
|
308
|
+
case 38:
|
309
|
+
this.$ = r[t - 2], d.setClickEvent(r[t - 2], r[t], null), d.setLink(r[t - 2], r[t - 1]);
|
310
|
+
break;
|
311
|
+
case 39:
|
312
|
+
this.$ = r[t - 3], d.setClickEvent(r[t - 3], r[t - 1], r[t]), d.setLink(r[t - 3], r[t - 2]);
|
313
|
+
break;
|
314
|
+
case 40:
|
315
|
+
this.$ = r[t - 1], d.setLink(r[t - 1], r[t]);
|
316
|
+
break;
|
317
|
+
case 41:
|
318
|
+
case 47:
|
319
|
+
this.$ = r[t - 1] + " " + r[t];
|
320
|
+
break;
|
321
|
+
case 42:
|
322
|
+
case 43:
|
323
|
+
case 45:
|
324
|
+
this.$ = r[t - 2] + " " + r[t - 1] + " " + r[t];
|
325
|
+
break;
|
326
|
+
case 44:
|
327
|
+
case 46:
|
328
|
+
this.$ = r[t - 3] + " " + r[t - 2] + " " + r[t - 1] + " " + r[t];
|
329
|
+
break;
|
330
|
+
}
|
331
|
+
}, "anonymous"),
|
332
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, e(s, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: a, 13: i, 14: n, 15: k, 16: f, 17: w, 18: Y, 19: 18, 20: E, 21: g, 22: M, 23: O, 24: P, 25: j, 26: C, 27: p, 28: S, 29: L, 30: F, 31: q, 33: G, 35: Q, 36: H, 37: 24, 38: y, 40: T }, e(s, [2, 7], { 1: [2, 1] }), e(s, [2, 3]), { 9: 36, 11: 17, 12: a, 13: i, 14: n, 15: k, 16: f, 17: w, 18: Y, 19: 18, 20: E, 21: g, 22: M, 23: O, 24: P, 25: j, 26: C, 27: p, 28: S, 29: L, 30: F, 31: q, 33: G, 35: Q, 36: H, 37: 24, 38: y, 40: T }, e(s, [2, 5]), e(s, [2, 6]), e(s, [2, 17]), e(s, [2, 18]), e(s, [2, 19]), e(s, [2, 20]), e(s, [2, 21]), e(s, [2, 22]), e(s, [2, 23]), e(s, [2, 24]), e(s, [2, 25]), e(s, [2, 26]), e(s, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, e(s, [2, 30]), e(s, [2, 31]), e(s, [2, 32]), { 39: [1, 39] }, e(s, [2, 8]), e(s, [2, 9]), e(s, [2, 10]), e(s, [2, 11]), e(s, [2, 12]), e(s, [2, 13]), e(s, [2, 14]), e(s, [2, 15]), e(s, [2, 16]), { 41: [1, 40], 43: [1, 41] }, e(s, [2, 4]), e(s, [2, 28]), e(s, [2, 29]), e(s, [2, 33]), e(s, [2, 34], { 42: [1, 42], 43: [1, 43] }), e(s, [2, 40], { 41: [1, 44] }), e(s, [2, 35], { 43: [1, 45] }), e(s, [2, 36]), e(s, [2, 38], { 42: [1, 46] }), e(s, [2, 37]), e(s, [2, 39])],
|
333
|
+
defaultActions: {},
|
334
|
+
parseError: /* @__PURE__ */ c(function(o, l) {
|
335
|
+
if (l.recoverable)
|
336
|
+
this.trace(o);
|
337
|
+
else {
|
338
|
+
var h = new Error(o);
|
339
|
+
throw h.hash = l, h;
|
340
|
+
}
|
341
|
+
}, "parseError"),
|
342
|
+
parse: /* @__PURE__ */ c(function(o) {
|
343
|
+
var l = this, h = [0], d = [], v = [null], r = [], u = this.table, t = "", A = 0, D = 0, I = 2, N = 1, W = r.slice.call(arguments, 1), V = Object.create(this.lexer), J = { yy: {} };
|
344
|
+
for (var re in this.yy)
|
345
|
+
Object.prototype.hasOwnProperty.call(this.yy, re) && (J.yy[re] = this.yy[re]);
|
346
|
+
V.setInput(o, J.yy), J.yy.lexer = V, J.yy.parser = this, typeof V.yylloc > "u" && (V.yylloc = {});
|
347
|
+
var ne = V.yylloc;
|
348
|
+
r.push(ne);
|
349
|
+
var fe = V.options && V.options.ranges;
|
350
|
+
typeof J.yy.parseError == "function" ? this.parseError = J.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
351
|
+
function he(U) {
|
352
|
+
h.length = h.length - 2 * U, v.length = v.length - U, r.length = r.length - U;
|
353
|
+
}
|
354
|
+
c(he, "popStack");
|
355
|
+
function oe() {
|
356
|
+
var U;
|
357
|
+
return U = d.pop() || V.lex() || N, typeof U != "number" && (U instanceof Array && (d = U, U = d.pop()), U = l.symbols_[U] || U), U;
|
358
|
+
}
|
359
|
+
c(oe, "lex");
|
360
|
+
for (var z, X, B, ae, K = {}, se, $, Ne, ge; ; ) {
|
361
|
+
if (X = h[h.length - 1], this.defaultActions[X] ? B = this.defaultActions[X] : ((z === null || typeof z > "u") && (z = oe()), B = u[X] && u[X][z]), typeof B > "u" || !B.length || !B[0]) {
|
362
|
+
var we = "";
|
363
|
+
ge = [];
|
364
|
+
for (se in u[X])
|
365
|
+
this.terminals_[se] && se > I && ge.push("'" + this.terminals_[se] + "'");
|
366
|
+
V.showPosition ? we = "Parse error on line " + (A + 1) + `:
|
367
|
+
` + V.showPosition() + `
|
368
|
+
Expecting ` + ge.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : we = "Parse error on line " + (A + 1) + ": Unexpected " + (z == N ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(we, {
|
369
|
+
text: V.match,
|
370
|
+
token: this.terminals_[z] || z,
|
371
|
+
line: V.yylineno,
|
372
|
+
loc: ne,
|
373
|
+
expected: ge
|
374
|
+
});
|
375
|
+
}
|
376
|
+
if (B[0] instanceof Array && B.length > 1)
|
377
|
+
throw new Error("Parse Error: multiple actions possible at state: " + X + ", token: " + z);
|
378
|
+
switch (B[0]) {
|
379
|
+
case 1:
|
380
|
+
h.push(z), v.push(V.yytext), r.push(V.yylloc), h.push(B[1]), z = null, D = V.yyleng, t = V.yytext, A = V.yylineno, ne = V.yylloc;
|
381
|
+
break;
|
382
|
+
case 2:
|
383
|
+
if ($ = this.productions_[B[1]][1], K.$ = v[v.length - $], K._$ = {
|
384
|
+
first_line: r[r.length - ($ || 1)].first_line,
|
385
|
+
last_line: r[r.length - 1].last_line,
|
386
|
+
first_column: r[r.length - ($ || 1)].first_column,
|
387
|
+
last_column: r[r.length - 1].last_column
|
388
|
+
}, fe && (K._$.range = [
|
389
|
+
r[r.length - ($ || 1)].range[0],
|
390
|
+
r[r.length - 1].range[1]
|
391
|
+
]), ae = this.performAction.apply(K, [
|
392
|
+
t,
|
393
|
+
D,
|
394
|
+
A,
|
395
|
+
J.yy,
|
396
|
+
B[1],
|
397
|
+
v,
|
398
|
+
r
|
399
|
+
].concat(W)), typeof ae < "u")
|
400
|
+
return ae;
|
401
|
+
$ && (h = h.slice(0, -1 * $ * 2), v = v.slice(0, -1 * $), r = r.slice(0, -1 * $)), h.push(this.productions_[B[1]][0]), v.push(K.$), r.push(K._$), Ne = u[h[h.length - 2]][h[h.length - 1]], h.push(Ne);
|
402
|
+
break;
|
403
|
+
case 3:
|
404
|
+
return !0;
|
405
|
+
}
|
406
|
+
}
|
407
|
+
return !0;
|
408
|
+
}, "parse")
|
409
|
+
}, x = /* @__PURE__ */ function() {
|
410
|
+
var _ = {
|
411
|
+
EOF: 1,
|
412
|
+
parseError: /* @__PURE__ */ c(function(l, h) {
|
413
|
+
if (this.yy.parser)
|
414
|
+
this.yy.parser.parseError(l, h);
|
415
|
+
else
|
416
|
+
throw new Error(l);
|
417
|
+
}, "parseError"),
|
418
|
+
// resets the lexer, sets new input
|
419
|
+
setInput: /* @__PURE__ */ c(function(o, l) {
|
420
|
+
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 = {
|
421
|
+
first_line: 1,
|
422
|
+
first_column: 0,
|
423
|
+
last_line: 1,
|
424
|
+
last_column: 0
|
425
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
426
|
+
}, "setInput"),
|
427
|
+
// consumes and returns one char from the input
|
428
|
+
input: /* @__PURE__ */ c(function() {
|
429
|
+
var o = this._input[0];
|
430
|
+
this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
|
431
|
+
var l = o.match(/(?:\r\n?|\n).*/g);
|
432
|
+
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;
|
433
|
+
}, "input"),
|
434
|
+
// unshifts one char (or a string) into the input
|
435
|
+
unput: /* @__PURE__ */ c(function(o) {
|
436
|
+
var l = o.length, h = o.split(/(?:\r\n?|\n)/g);
|
437
|
+
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
438
|
+
var d = this.match.split(/(?:\r\n?|\n)/g);
|
439
|
+
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);
|
440
|
+
var v = this.yylloc.range;
|
441
|
+
return this.yylloc = {
|
442
|
+
first_line: this.yylloc.first_line,
|
443
|
+
last_line: this.yylineno + 1,
|
444
|
+
first_column: this.yylloc.first_column,
|
445
|
+
last_column: h ? (h.length === d.length ? this.yylloc.first_column : 0) + d[d.length - h.length].length - h[0].length : this.yylloc.first_column - l
|
446
|
+
}, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
447
|
+
}, "unput"),
|
448
|
+
// When called from action, caches matched text and appends it on next action
|
449
|
+
more: /* @__PURE__ */ c(function() {
|
450
|
+
return this._more = !0, this;
|
451
|
+
}, "more"),
|
452
|
+
// 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.
|
453
|
+
reject: /* @__PURE__ */ c(function() {
|
454
|
+
if (this.options.backtrack_lexer)
|
455
|
+
this._backtrack = !0;
|
456
|
+
else
|
457
|
+
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).
|
458
|
+
` + this.showPosition(), {
|
459
|
+
text: "",
|
460
|
+
token: null,
|
461
|
+
line: this.yylineno
|
462
|
+
});
|
463
|
+
return this;
|
464
|
+
}, "reject"),
|
465
|
+
// retain first n characters of the match
|
466
|
+
less: /* @__PURE__ */ c(function(o) {
|
467
|
+
this.unput(this.match.slice(o));
|
468
|
+
}, "less"),
|
469
|
+
// displays already matched input, i.e. for error messages
|
470
|
+
pastInput: /* @__PURE__ */ c(function() {
|
471
|
+
var o = this.matched.substr(0, this.matched.length - this.match.length);
|
472
|
+
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
|
473
|
+
}, "pastInput"),
|
474
|
+
// displays upcoming input, i.e. for error messages
|
475
|
+
upcomingInput: /* @__PURE__ */ c(function() {
|
476
|
+
var o = this.match;
|
477
|
+
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
|
478
|
+
}, "upcomingInput"),
|
479
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
480
|
+
showPosition: /* @__PURE__ */ c(function() {
|
481
|
+
var o = this.pastInput(), l = new Array(o.length + 1).join("-");
|
482
|
+
return o + this.upcomingInput() + `
|
483
|
+
` + l + "^";
|
484
|
+
}, "showPosition"),
|
485
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
486
|
+
test_match: /* @__PURE__ */ c(function(o, l) {
|
487
|
+
var h, d, v;
|
488
|
+
if (this.options.backtrack_lexer && (v = {
|
489
|
+
yylineno: this.yylineno,
|
490
|
+
yylloc: {
|
491
|
+
first_line: this.yylloc.first_line,
|
492
|
+
last_line: this.last_line,
|
493
|
+
first_column: this.yylloc.first_column,
|
494
|
+
last_column: this.yylloc.last_column
|
495
|
+
},
|
496
|
+
yytext: this.yytext,
|
497
|
+
match: this.match,
|
498
|
+
matches: this.matches,
|
499
|
+
matched: this.matched,
|
500
|
+
yyleng: this.yyleng,
|
501
|
+
offset: this.offset,
|
502
|
+
_more: this._more,
|
503
|
+
_input: this._input,
|
504
|
+
yy: this.yy,
|
505
|
+
conditionStack: this.conditionStack.slice(0),
|
506
|
+
done: this.done
|
507
|
+
}, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), d = o[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
508
|
+
first_line: this.yylloc.last_line,
|
509
|
+
last_line: this.yylineno + 1,
|
510
|
+
first_column: this.yylloc.last_column,
|
511
|
+
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
512
|
+
}, 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)
|
513
|
+
return h;
|
514
|
+
if (this._backtrack) {
|
515
|
+
for (var r in v)
|
516
|
+
this[r] = v[r];
|
517
|
+
return !1;
|
518
|
+
}
|
519
|
+
return !1;
|
520
|
+
}, "test_match"),
|
521
|
+
// return next match in input
|
522
|
+
next: /* @__PURE__ */ c(function() {
|
523
|
+
if (this.done)
|
524
|
+
return this.EOF;
|
525
|
+
this._input || (this.done = !0);
|
526
|
+
var o, l, h, d;
|
527
|
+
this._more || (this.yytext = "", this.match = "");
|
528
|
+
for (var v = this._currentRules(), r = 0; r < v.length; r++)
|
529
|
+
if (h = this._input.match(this.rules[v[r]]), h && (!l || h[0].length > l[0].length)) {
|
530
|
+
if (l = h, d = r, this.options.backtrack_lexer) {
|
531
|
+
if (o = this.test_match(h, v[r]), o !== !1)
|
532
|
+
return o;
|
533
|
+
if (this._backtrack) {
|
534
|
+
l = !1;
|
535
|
+
continue;
|
536
|
+
} else
|
537
|
+
return !1;
|
538
|
+
} else if (!this.options.flex)
|
539
|
+
break;
|
540
|
+
}
|
541
|
+
return l ? (o = this.test_match(l, v[d]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
542
|
+
` + this.showPosition(), {
|
543
|
+
text: "",
|
544
|
+
token: null,
|
545
|
+
line: this.yylineno
|
546
|
+
});
|
547
|
+
}, "next"),
|
548
|
+
// return next match that has a token
|
549
|
+
lex: /* @__PURE__ */ c(function() {
|
550
|
+
var l = this.next();
|
551
|
+
return l || this.lex();
|
552
|
+
}, "lex"),
|
553
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
554
|
+
begin: /* @__PURE__ */ c(function(l) {
|
555
|
+
this.conditionStack.push(l);
|
556
|
+
}, "begin"),
|
557
|
+
// pop the previously active lexer condition state off the condition stack
|
558
|
+
popState: /* @__PURE__ */ c(function() {
|
559
|
+
var l = this.conditionStack.length - 1;
|
560
|
+
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
561
|
+
}, "popState"),
|
562
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
563
|
+
_currentRules: /* @__PURE__ */ c(function() {
|
564
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
565
|
+
}, "_currentRules"),
|
566
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
567
|
+
topState: /* @__PURE__ */ c(function(l) {
|
568
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
569
|
+
}, "topState"),
|
570
|
+
// alias for begin(condition)
|
571
|
+
pushState: /* @__PURE__ */ c(function(l) {
|
572
|
+
this.begin(l);
|
573
|
+
}, "pushState"),
|
574
|
+
// return the number of states currently on the stack
|
575
|
+
stateStackSize: /* @__PURE__ */ c(function() {
|
576
|
+
return this.conditionStack.length;
|
577
|
+
}, "stateStackSize"),
|
578
|
+
options: { "case-insensitive": !0 },
|
579
|
+
performAction: /* @__PURE__ */ c(function(l, h, d, v) {
|
580
|
+
switch (d) {
|
581
|
+
case 0:
|
582
|
+
return this.begin("open_directive"), "open_directive";
|
583
|
+
case 1:
|
584
|
+
return this.begin("acc_title"), 31;
|
585
|
+
case 2:
|
586
|
+
return this.popState(), "acc_title_value";
|
587
|
+
case 3:
|
588
|
+
return this.begin("acc_descr"), 33;
|
589
|
+
case 4:
|
590
|
+
return this.popState(), "acc_descr_value";
|
591
|
+
case 5:
|
592
|
+
this.begin("acc_descr_multiline");
|
593
|
+
break;
|
594
|
+
case 6:
|
595
|
+
this.popState();
|
596
|
+
break;
|
597
|
+
case 7:
|
598
|
+
return "acc_descr_multiline_value";
|
599
|
+
case 8:
|
600
|
+
break;
|
601
|
+
case 9:
|
602
|
+
break;
|
603
|
+
case 10:
|
604
|
+
break;
|
605
|
+
case 11:
|
606
|
+
return 10;
|
607
|
+
case 12:
|
608
|
+
break;
|
609
|
+
case 13:
|
610
|
+
break;
|
611
|
+
case 14:
|
612
|
+
this.begin("href");
|
613
|
+
break;
|
614
|
+
case 15:
|
615
|
+
this.popState();
|
616
|
+
break;
|
617
|
+
case 16:
|
618
|
+
return 43;
|
619
|
+
case 17:
|
620
|
+
this.begin("callbackname");
|
621
|
+
break;
|
622
|
+
case 18:
|
623
|
+
this.popState();
|
624
|
+
break;
|
625
|
+
case 19:
|
626
|
+
this.popState(), this.begin("callbackargs");
|
627
|
+
break;
|
628
|
+
case 20:
|
629
|
+
return 41;
|
630
|
+
case 21:
|
631
|
+
this.popState();
|
632
|
+
break;
|
633
|
+
case 22:
|
634
|
+
return 42;
|
635
|
+
case 23:
|
636
|
+
this.begin("click");
|
637
|
+
break;
|
638
|
+
case 24:
|
639
|
+
this.popState();
|
640
|
+
break;
|
641
|
+
case 25:
|
642
|
+
return 40;
|
643
|
+
case 26:
|
644
|
+
return 4;
|
645
|
+
case 27:
|
646
|
+
return 22;
|
647
|
+
case 28:
|
648
|
+
return 23;
|
649
|
+
case 29:
|
650
|
+
return 24;
|
651
|
+
case 30:
|
652
|
+
return 25;
|
653
|
+
case 31:
|
654
|
+
return 26;
|
655
|
+
case 32:
|
656
|
+
return 28;
|
657
|
+
case 33:
|
658
|
+
return 27;
|
659
|
+
case 34:
|
660
|
+
return 29;
|
661
|
+
case 35:
|
662
|
+
return 12;
|
663
|
+
case 36:
|
664
|
+
return 13;
|
665
|
+
case 37:
|
666
|
+
return 14;
|
667
|
+
case 38:
|
668
|
+
return 15;
|
669
|
+
case 39:
|
670
|
+
return 16;
|
671
|
+
case 40:
|
672
|
+
return 17;
|
673
|
+
case 41:
|
674
|
+
return 18;
|
675
|
+
case 42:
|
676
|
+
return 20;
|
677
|
+
case 43:
|
678
|
+
return 21;
|
679
|
+
case 44:
|
680
|
+
return "date";
|
681
|
+
case 45:
|
682
|
+
return 30;
|
683
|
+
case 46:
|
684
|
+
return "accDescription";
|
685
|
+
case 47:
|
686
|
+
return 36;
|
687
|
+
case 48:
|
688
|
+
return 38;
|
689
|
+
case 49:
|
690
|
+
return 39;
|
691
|
+
case 50:
|
692
|
+
return ":";
|
693
|
+
case 51:
|
694
|
+
return 6;
|
695
|
+
case 52:
|
696
|
+
return "INVALID";
|
697
|
+
}
|
698
|
+
}, "anonymous"),
|
699
|
+
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],
|
700
|
+
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 } }
|
701
|
+
};
|
702
|
+
return _;
|
703
|
+
}();
|
704
|
+
b.lexer = x;
|
705
|
+
function m() {
|
706
|
+
this.yy = {};
|
707
|
+
}
|
708
|
+
return c(m, "Parser"), m.prototype = b, b.Parser = m, new m();
|
709
|
+
}();
|
710
|
+
Se.parser = Se;
|
711
|
+
var Wt = Se, Vt = de(At()), Z = de(Ke()), Ot = de(Lt()), Pt = de(Ft()), zt = de(Yt());
|
712
|
+
Z.default.extend(Ot.default);
|
713
|
+
Z.default.extend(Pt.default);
|
714
|
+
Z.default.extend(zt.default);
|
715
|
+
var Ze = { friday: 5, saturday: 6 }, ee = "", Ie = "", Le = void 0, Fe = "", ke = [], me = [], Ye = /* @__PURE__ */ new Map(), We = [], xe = [], ue = "", Ve = "", $e = ["active", "done", "crit", "milestone"], Oe = [], ye = !1, Pe = !1, ze = "sunday", _e = "saturday", Ce = 0, Rt = /* @__PURE__ */ c(function() {
|
716
|
+
We = [], xe = [], ue = "", Oe = [], ve = 0, Me = void 0, Te = void 0, R = [], ee = "", Ie = "", Ve = "", Le = void 0, Fe = "", ke = [], me = [], ye = !1, Pe = !1, Ce = 0, Ye = /* @__PURE__ */ new Map(), Mt(), ze = "sunday", _e = "saturday";
|
717
|
+
}, "clear"), Nt = /* @__PURE__ */ c(function(e) {
|
718
|
+
Ie = e;
|
719
|
+
}, "setAxisFormat"), jt = /* @__PURE__ */ c(function() {
|
720
|
+
return Ie;
|
721
|
+
}, "getAxisFormat"), Bt = /* @__PURE__ */ c(function(e) {
|
722
|
+
Le = e;
|
723
|
+
}, "setTickInterval"), qt = /* @__PURE__ */ c(function() {
|
724
|
+
return Le;
|
725
|
+
}, "getTickInterval"), Gt = /* @__PURE__ */ c(function(e) {
|
726
|
+
Fe = e;
|
727
|
+
}, "setTodayMarker"), Ht = /* @__PURE__ */ c(function() {
|
728
|
+
return Fe;
|
729
|
+
}, "getTodayMarker"), Ut = /* @__PURE__ */ c(function(e) {
|
730
|
+
ee = e;
|
731
|
+
}, "setDateFormat"), Xt = /* @__PURE__ */ c(function() {
|
732
|
+
ye = !0;
|
733
|
+
}, "enableInclusiveEndDates"), Zt = /* @__PURE__ */ c(function() {
|
734
|
+
return ye;
|
735
|
+
}, "endDatesAreInclusive"), Qt = /* @__PURE__ */ c(function() {
|
736
|
+
Pe = !0;
|
737
|
+
}, "enableTopAxis"), Jt = /* @__PURE__ */ c(function() {
|
738
|
+
return Pe;
|
739
|
+
}, "topAxisEnabled"), Kt = /* @__PURE__ */ c(function(e) {
|
740
|
+
Ve = e;
|
741
|
+
}, "setDisplayMode"), $t = /* @__PURE__ */ c(function() {
|
742
|
+
return Ve;
|
743
|
+
}, "getDisplayMode"), es = /* @__PURE__ */ c(function() {
|
744
|
+
return ee;
|
745
|
+
}, "getDateFormat"), ts = /* @__PURE__ */ c(function(e) {
|
746
|
+
ke = e.toLowerCase().split(/[\s,]+/);
|
747
|
+
}, "setIncludes"), ss = /* @__PURE__ */ c(function() {
|
748
|
+
return ke;
|
749
|
+
}, "getIncludes"), as = /* @__PURE__ */ c(function(e) {
|
750
|
+
me = e.toLowerCase().split(/[\s,]+/);
|
751
|
+
}, "setExcludes"), is = /* @__PURE__ */ c(function() {
|
752
|
+
return me;
|
753
|
+
}, "getExcludes"), rs = /* @__PURE__ */ c(function() {
|
754
|
+
return Ye;
|
755
|
+
}, "getLinks"), ns = /* @__PURE__ */ c(function(e) {
|
756
|
+
ue = e, We.push(e);
|
757
|
+
}, "addSection"), os = /* @__PURE__ */ c(function() {
|
758
|
+
return We;
|
759
|
+
}, "getSections"), cs = /* @__PURE__ */ c(function() {
|
760
|
+
let e = Qe();
|
761
|
+
const s = 10;
|
762
|
+
let a = 0;
|
763
|
+
for (; !e && a < s; )
|
764
|
+
e = Qe(), a++;
|
765
|
+
return xe = R, xe;
|
766
|
+
}, "getTasks"), et = /* @__PURE__ */ c(function(e, s, a, i) {
|
767
|
+
return i.includes(e.format(s.trim())) ? !1 : a.includes("weekends") && (e.isoWeekday() === Ze[_e] || e.isoWeekday() === Ze[_e] + 1) || a.includes(e.format("dddd").toLowerCase()) ? !0 : a.includes(e.format(s.trim()));
|
768
|
+
}, "isInvalidDate"), ls = /* @__PURE__ */ c(function(e) {
|
769
|
+
ze = e;
|
770
|
+
}, "setWeekday"), us = /* @__PURE__ */ c(function() {
|
771
|
+
return ze;
|
772
|
+
}, "getWeekday"), ds = /* @__PURE__ */ c(function(e) {
|
773
|
+
_e = e;
|
774
|
+
}, "setWeekend"), tt = /* @__PURE__ */ c(function(e, s, a, i) {
|
775
|
+
if (!a.length || e.manualEndTime)
|
776
|
+
return;
|
777
|
+
let n;
|
778
|
+
e.startTime instanceof Date ? n = (0, Z.default)(e.startTime) : n = (0, Z.default)(e.startTime, s, !0), n = n.add(1, "d");
|
779
|
+
let k;
|
780
|
+
e.endTime instanceof Date ? k = (0, Z.default)(e.endTime) : k = (0, Z.default)(e.endTime, s, !0);
|
781
|
+
const [f, w] = fs(
|
782
|
+
n,
|
783
|
+
k,
|
784
|
+
s,
|
785
|
+
a,
|
786
|
+
i
|
787
|
+
);
|
788
|
+
e.endTime = f.toDate(), e.renderEndTime = w;
|
789
|
+
}, "checkTaskDates"), fs = /* @__PURE__ */ c(function(e, s, a, i, n) {
|
790
|
+
let k = !1, f = null;
|
791
|
+
for (; e <= s; )
|
792
|
+
k || (f = s.toDate()), k = et(e, a, i, n), k && (s = s.add(1, "d")), e = e.add(1, "d");
|
793
|
+
return [s, f];
|
794
|
+
}, "fixTaskDates"), Ee = /* @__PURE__ */ c(function(e, s, a) {
|
795
|
+
a = a.trim();
|
796
|
+
const n = /^after\s+(?<ids>[\d\w- ]+)/.exec(a);
|
797
|
+
if (n !== null) {
|
798
|
+
let f = null;
|
799
|
+
for (const Y of n.groups.ids.split(" ")) {
|
800
|
+
let E = ie(Y);
|
801
|
+
E !== void 0 && (!f || E.endTime > f.endTime) && (f = E);
|
802
|
+
}
|
803
|
+
if (f)
|
804
|
+
return f.endTime;
|
805
|
+
const w = /* @__PURE__ */ new Date();
|
806
|
+
return w.setHours(0, 0, 0, 0), w;
|
807
|
+
}
|
808
|
+
let k = (0, Z.default)(a, s.trim(), !0);
|
809
|
+
if (k.isValid())
|
810
|
+
return k.toDate();
|
811
|
+
{
|
812
|
+
be.debug("Invalid date:" + a), be.debug("With date format:" + s.trim());
|
813
|
+
const f = new Date(a);
|
814
|
+
if (f === void 0 || isNaN(f.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
|
815
|
+
// huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
|
816
|
+
// This can cause virtually infinite loops while rendering, so for the
|
817
|
+
// purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
|
818
|
+
// invalid.
|
819
|
+
f.getFullYear() < -1e4 || f.getFullYear() > 1e4)
|
820
|
+
throw new Error("Invalid date:" + a);
|
821
|
+
return f;
|
822
|
+
}
|
823
|
+
}, "getStartDate"), st = /* @__PURE__ */ c(function(e) {
|
824
|
+
const s = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());
|
825
|
+
return s !== null ? [Number.parseFloat(s[1]), s[2]] : [NaN, "ms"];
|
826
|
+
}, "parseDuration"), at = /* @__PURE__ */ c(function(e, s, a, i = !1) {
|
827
|
+
a = a.trim();
|
828
|
+
const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(a);
|
829
|
+
if (k !== null) {
|
830
|
+
let g = null;
|
831
|
+
for (const O of k.groups.ids.split(" ")) {
|
832
|
+
let P = ie(O);
|
833
|
+
P !== void 0 && (!g || P.startTime < g.startTime) && (g = P);
|
834
|
+
}
|
835
|
+
if (g)
|
836
|
+
return g.startTime;
|
837
|
+
const M = /* @__PURE__ */ new Date();
|
838
|
+
return M.setHours(0, 0, 0, 0), M;
|
839
|
+
}
|
840
|
+
let f = (0, Z.default)(a, s.trim(), !0);
|
841
|
+
if (f.isValid())
|
842
|
+
return i && (f = f.add(1, "d")), f.toDate();
|
843
|
+
let w = (0, Z.default)(e);
|
844
|
+
const [Y, E] = st(a);
|
845
|
+
if (!Number.isNaN(Y)) {
|
846
|
+
const g = w.add(Y, E);
|
847
|
+
g.isValid() && (w = g);
|
848
|
+
}
|
849
|
+
return w.toDate();
|
850
|
+
}, "getEndDate"), ve = 0, le = /* @__PURE__ */ c(function(e) {
|
851
|
+
return e === void 0 ? (ve = ve + 1, "task" + ve) : e;
|
852
|
+
}, "parseId"), hs = /* @__PURE__ */ c(function(e, s) {
|
853
|
+
let a;
|
854
|
+
s.substr(0, 1) === ":" ? a = s.substr(1, s.length) : a = s;
|
855
|
+
const i = a.split(","), n = {};
|
856
|
+
Re(i, n, $e);
|
857
|
+
for (let f = 0; f < i.length; f++)
|
858
|
+
i[f] = i[f].trim();
|
859
|
+
let k = "";
|
860
|
+
switch (i.length) {
|
861
|
+
case 1:
|
862
|
+
n.id = le(), n.startTime = e.endTime, k = i[0];
|
863
|
+
break;
|
864
|
+
case 2:
|
865
|
+
n.id = le(), n.startTime = Ee(void 0, ee, i[0]), k = i[1];
|
866
|
+
break;
|
867
|
+
case 3:
|
868
|
+
n.id = le(i[0]), n.startTime = Ee(void 0, ee, i[1]), k = i[2];
|
869
|
+
break;
|
870
|
+
}
|
871
|
+
return k && (n.endTime = at(n.startTime, ee, k, ye), n.manualEndTime = (0, Z.default)(k, "YYYY-MM-DD", !0).isValid(), tt(n, ee, me, ke)), n;
|
872
|
+
}, "compileData"), ks = /* @__PURE__ */ c(function(e, s) {
|
873
|
+
let a;
|
874
|
+
s.substr(0, 1) === ":" ? a = s.substr(1, s.length) : a = s;
|
875
|
+
const i = a.split(","), n = {};
|
876
|
+
Re(i, n, $e);
|
877
|
+
for (let k = 0; k < i.length; k++)
|
878
|
+
i[k] = i[k].trim();
|
879
|
+
switch (i.length) {
|
880
|
+
case 1:
|
881
|
+
n.id = le(), n.startTime = {
|
882
|
+
type: "prevTaskEnd",
|
883
|
+
id: e
|
884
|
+
}, n.endTime = {
|
885
|
+
data: i[0]
|
886
|
+
};
|
887
|
+
break;
|
888
|
+
case 2:
|
889
|
+
n.id = le(), n.startTime = {
|
890
|
+
type: "getStartDate",
|
891
|
+
startData: i[0]
|
892
|
+
}, n.endTime = {
|
893
|
+
data: i[1]
|
894
|
+
};
|
895
|
+
break;
|
896
|
+
case 3:
|
897
|
+
n.id = le(i[0]), n.startTime = {
|
898
|
+
type: "getStartDate",
|
899
|
+
startData: i[1]
|
900
|
+
}, n.endTime = {
|
901
|
+
data: i[2]
|
902
|
+
};
|
903
|
+
break;
|
904
|
+
}
|
905
|
+
return n;
|
906
|
+
}, "parseData"), Me, Te, R = [], it = {}, ms = /* @__PURE__ */ c(function(e, s) {
|
907
|
+
const a = {
|
908
|
+
section: ue,
|
909
|
+
type: ue,
|
910
|
+
processed: !1,
|
911
|
+
manualEndTime: !1,
|
912
|
+
renderEndTime: null,
|
913
|
+
raw: { data: s },
|
914
|
+
task: e,
|
915
|
+
classes: []
|
916
|
+
}, i = ks(Te, s);
|
917
|
+
a.raw.startTime = i.startTime, a.raw.endTime = i.endTime, a.id = i.id, a.prevTaskId = Te, a.active = i.active, a.done = i.done, a.crit = i.crit, a.milestone = i.milestone, a.order = Ce, Ce++;
|
918
|
+
const n = R.push(a);
|
919
|
+
Te = a.id, it[a.id] = n - 1;
|
920
|
+
}, "addTask"), ie = /* @__PURE__ */ c(function(e) {
|
921
|
+
const s = it[e];
|
922
|
+
return R[s];
|
923
|
+
}, "findTaskById"), ys = /* @__PURE__ */ c(function(e, s) {
|
924
|
+
const a = {
|
925
|
+
section: ue,
|
926
|
+
type: ue,
|
927
|
+
description: e,
|
928
|
+
task: e,
|
929
|
+
classes: []
|
930
|
+
}, i = hs(Me, s);
|
931
|
+
a.startTime = i.startTime, a.endTime = i.endTime, a.id = i.id, a.active = i.active, a.done = i.done, a.crit = i.crit, a.milestone = i.milestone, Me = a, xe.push(a);
|
932
|
+
}, "addTaskOrg"), Qe = /* @__PURE__ */ c(function() {
|
933
|
+
const e = /* @__PURE__ */ c(function(a) {
|
934
|
+
const i = R[a];
|
935
|
+
let n = "";
|
936
|
+
switch (R[a].raw.startTime.type) {
|
937
|
+
case "prevTaskEnd": {
|
938
|
+
const k = ie(i.prevTaskId);
|
939
|
+
i.startTime = k.endTime;
|
940
|
+
break;
|
941
|
+
}
|
942
|
+
case "getStartDate":
|
943
|
+
n = Ee(void 0, ee, R[a].raw.startTime.startData), n && (R[a].startTime = n);
|
944
|
+
break;
|
945
|
+
}
|
946
|
+
return R[a].startTime && (R[a].endTime = at(
|
947
|
+
R[a].startTime,
|
948
|
+
ee,
|
949
|
+
R[a].raw.endTime.data,
|
950
|
+
ye
|
951
|
+
), R[a].endTime && (R[a].processed = !0, R[a].manualEndTime = (0, Z.default)(
|
952
|
+
R[a].raw.endTime.data,
|
953
|
+
"YYYY-MM-DD",
|
954
|
+
!0
|
955
|
+
).isValid(), tt(R[a], ee, me, ke))), R[a].processed;
|
956
|
+
}, "compileTask");
|
957
|
+
let s = !0;
|
958
|
+
for (const [a, i] of R.entries())
|
959
|
+
e(a), s = s && i.processed;
|
960
|
+
return s;
|
961
|
+
}, "compileTasks"), gs = /* @__PURE__ */ c(function(e, s) {
|
962
|
+
let a = s;
|
963
|
+
ce().securityLevel !== "loose" && (a = (0, Vt.sanitizeUrl)(s)), e.split(",").forEach(function(i) {
|
964
|
+
ie(i) !== void 0 && (nt(i, () => {
|
965
|
+
window.open(a, "_self");
|
966
|
+
}), Ye.set(i, a));
|
967
|
+
}), rt(e, "clickable");
|
968
|
+
}, "setLink"), rt = /* @__PURE__ */ c(function(e, s) {
|
969
|
+
e.split(",").forEach(function(a) {
|
970
|
+
let i = ie(a);
|
971
|
+
i !== void 0 && i.classes.push(s);
|
972
|
+
});
|
973
|
+
}, "setClass"), ps = /* @__PURE__ */ c(function(e, s, a) {
|
974
|
+
if (ce().securityLevel !== "loose" || s === void 0)
|
975
|
+
return;
|
976
|
+
let i = [];
|
977
|
+
if (typeof a == "string") {
|
978
|
+
i = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
979
|
+
for (let k = 0; k < i.length; k++) {
|
980
|
+
let f = i[k].trim();
|
981
|
+
f.startsWith('"') && f.endsWith('"') && (f = f.substr(1, f.length - 2)), i[k] = f;
|
982
|
+
}
|
983
|
+
}
|
984
|
+
i.length === 0 && i.push(e), ie(e) !== void 0 && nt(e, () => {
|
985
|
+
It.runFunc(s, ...i);
|
986
|
+
});
|
987
|
+
}, "setClickFun"), nt = /* @__PURE__ */ c(function(e, s) {
|
988
|
+
Oe.push(
|
989
|
+
function() {
|
990
|
+
const a = document.querySelector(`[id="${e}"]`);
|
991
|
+
a !== null && a.addEventListener("click", function() {
|
992
|
+
s();
|
993
|
+
});
|
994
|
+
},
|
995
|
+
function() {
|
996
|
+
const a = document.querySelector(`[id="${e}-text"]`);
|
997
|
+
a !== null && a.addEventListener("click", function() {
|
998
|
+
s();
|
999
|
+
});
|
1000
|
+
}
|
1001
|
+
);
|
1002
|
+
}, "pushFun"), vs = /* @__PURE__ */ c(function(e, s, a) {
|
1003
|
+
e.split(",").forEach(function(i) {
|
1004
|
+
ps(i, s, a);
|
1005
|
+
}), rt(e, "clickable");
|
1006
|
+
}, "setClickEvent"), Ts = /* @__PURE__ */ c(function(e) {
|
1007
|
+
Oe.forEach(function(s) {
|
1008
|
+
s(e);
|
1009
|
+
});
|
1010
|
+
}, "bindFunctions"), bs = {
|
1011
|
+
getConfig: /* @__PURE__ */ c(() => ce().gantt, "getConfig"),
|
1012
|
+
clear: Rt,
|
1013
|
+
setDateFormat: Ut,
|
1014
|
+
getDateFormat: es,
|
1015
|
+
enableInclusiveEndDates: Xt,
|
1016
|
+
endDatesAreInclusive: Zt,
|
1017
|
+
enableTopAxis: Qt,
|
1018
|
+
topAxisEnabled: Jt,
|
1019
|
+
setAxisFormat: Nt,
|
1020
|
+
getAxisFormat: jt,
|
1021
|
+
setTickInterval: Bt,
|
1022
|
+
getTickInterval: qt,
|
1023
|
+
setTodayMarker: Gt,
|
1024
|
+
getTodayMarker: Ht,
|
1025
|
+
setAccTitle: ft,
|
1026
|
+
getAccTitle: dt,
|
1027
|
+
setDiagramTitle: ut,
|
1028
|
+
getDiagramTitle: lt,
|
1029
|
+
setDisplayMode: Kt,
|
1030
|
+
getDisplayMode: $t,
|
1031
|
+
setAccDescription: ct,
|
1032
|
+
getAccDescription: ot,
|
1033
|
+
addSection: ns,
|
1034
|
+
getSections: os,
|
1035
|
+
getTasks: cs,
|
1036
|
+
addTask: ms,
|
1037
|
+
findTaskById: ie,
|
1038
|
+
addTaskOrg: ys,
|
1039
|
+
setIncludes: ts,
|
1040
|
+
getIncludes: ss,
|
1041
|
+
setExcludes: as,
|
1042
|
+
getExcludes: is,
|
1043
|
+
setClickEvent: vs,
|
1044
|
+
setLink: gs,
|
1045
|
+
getLinks: rs,
|
1046
|
+
bindFunctions: Ts,
|
1047
|
+
parseDuration: st,
|
1048
|
+
isInvalidDate: et,
|
1049
|
+
setWeekday: ls,
|
1050
|
+
getWeekday: us,
|
1051
|
+
setWeekend: ds
|
1052
|
+
};
|
1053
|
+
function Re(e, s, a) {
|
1054
|
+
let i = !0;
|
1055
|
+
for (; i; )
|
1056
|
+
i = !1, a.forEach(function(n) {
|
1057
|
+
const k = "^\\s*" + n + "\\s*$", f = new RegExp(k);
|
1058
|
+
e[0].match(f) && (s[n] = !0, e.shift(1), i = !0);
|
1059
|
+
});
|
1060
|
+
}
|
1061
|
+
c(Re, "getTaskTags");
|
1062
|
+
var De = de(Ke()), xs = /* @__PURE__ */ c(function() {
|
1063
|
+
be.debug("Something is calling, setConf, remove the call");
|
1064
|
+
}, "setConf"), Je = {
|
1065
|
+
monday: St,
|
1066
|
+
tuesday: Dt,
|
1067
|
+
wednesday: wt,
|
1068
|
+
thursday: _t,
|
1069
|
+
friday: xt,
|
1070
|
+
saturday: bt,
|
1071
|
+
sunday: Tt
|
1072
|
+
}, _s = /* @__PURE__ */ c((e, s) => {
|
1073
|
+
let a = [...e].map(() => -1 / 0), i = [...e].sort((k, f) => k.startTime - f.startTime || k.order - f.order), n = 0;
|
1074
|
+
for (const k of i)
|
1075
|
+
for (let f = 0; f < a.length; f++)
|
1076
|
+
if (k.startTime >= a[f]) {
|
1077
|
+
a[f] = k.endTime, k.order = f + s, f > n && (n = f);
|
1078
|
+
break;
|
1079
|
+
}
|
1080
|
+
return n;
|
1081
|
+
}, "getMaxIntersections"), te, ws = /* @__PURE__ */ c(function(e, s, a, i) {
|
1082
|
+
const n = ce().gantt, k = ce().securityLevel;
|
1083
|
+
let f;
|
1084
|
+
k === "sandbox" && (f = pe("#i" + s));
|
1085
|
+
const w = k === "sandbox" ? pe(f.nodes()[0].contentDocument.body) : pe("body"), Y = k === "sandbox" ? f.nodes()[0].contentDocument : document, E = Y.getElementById(s);
|
1086
|
+
te = E.parentElement.offsetWidth, te === void 0 && (te = 1200), n.useWidth !== void 0 && (te = n.useWidth);
|
1087
|
+
const g = i.db.getTasks();
|
1088
|
+
let M = [];
|
1089
|
+
for (const y of g)
|
1090
|
+
M.push(y.type);
|
1091
|
+
M = H(M);
|
1092
|
+
const O = {};
|
1093
|
+
let P = 2 * n.topPadding;
|
1094
|
+
if (i.db.getDisplayMode() === "compact" || n.displayMode === "compact") {
|
1095
|
+
const y = {};
|
1096
|
+
for (const b of g)
|
1097
|
+
y[b.section] === void 0 ? y[b.section] = [b] : y[b.section].push(b);
|
1098
|
+
let T = 0;
|
1099
|
+
for (const b of Object.keys(y)) {
|
1100
|
+
const x = _s(y[b], T) + 1;
|
1101
|
+
T += x, P += x * (n.barHeight + n.barGap), O[b] = x;
|
1102
|
+
}
|
1103
|
+
} else {
|
1104
|
+
P += g.length * (n.barHeight + n.barGap);
|
1105
|
+
for (const y of M)
|
1106
|
+
O[y] = g.filter((T) => T.type === y).length;
|
1107
|
+
}
|
1108
|
+
E.setAttribute("viewBox", "0 0 " + te + " " + P);
|
1109
|
+
const j = w.select(`[id="${s}"]`), C = ht().domain([
|
1110
|
+
kt(g, function(y) {
|
1111
|
+
return y.startTime;
|
1112
|
+
}),
|
1113
|
+
mt(g, function(y) {
|
1114
|
+
return y.endTime;
|
1115
|
+
})
|
1116
|
+
]).rangeRound([0, te - n.leftPadding - n.rightPadding]);
|
1117
|
+
function p(y, T) {
|
1118
|
+
const b = y.startTime, x = T.startTime;
|
1119
|
+
let m = 0;
|
1120
|
+
return b > x ? m = 1 : b < x && (m = -1), m;
|
1121
|
+
}
|
1122
|
+
c(p, "taskCompare"), g.sort(p), S(g, te, P), yt(j, P, te, n.useMaxWidth), j.append("text").text(i.db.getDiagramTitle()).attr("x", te / 2).attr("y", n.titleTopMargin).attr("class", "titleText");
|
1123
|
+
function S(y, T, b) {
|
1124
|
+
const x = n.barHeight, m = x + n.barGap, _ = n.topPadding, o = n.leftPadding, l = gt().domain([0, M.length]).range(["#00B9FA", "#F95002"]).interpolate(pt);
|
1125
|
+
F(
|
1126
|
+
m,
|
1127
|
+
_,
|
1128
|
+
o,
|
1129
|
+
T,
|
1130
|
+
b,
|
1131
|
+
y,
|
1132
|
+
i.db.getExcludes(),
|
1133
|
+
i.db.getIncludes()
|
1134
|
+
), q(o, _, T, b), L(y, m, _, o, x, l, T), G(m, _), Q(o, _, T, b);
|
1135
|
+
}
|
1136
|
+
c(S, "makeGantt");
|
1137
|
+
function L(y, T, b, x, m, _, o) {
|
1138
|
+
const h = [...new Set(y.map((u) => u.order))].map((u) => y.find((t) => t.order === u));
|
1139
|
+
j.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(u, t) {
|
1140
|
+
return t = u.order, t * T + b - 2;
|
1141
|
+
}).attr("width", function() {
|
1142
|
+
return o - n.rightPadding / 2;
|
1143
|
+
}).attr("height", T).attr("class", function(u) {
|
1144
|
+
for (const [t, A] of M.entries())
|
1145
|
+
if (u.type === A)
|
1146
|
+
return "section section" + t % n.numberSectionStyles;
|
1147
|
+
return "section section0";
|
1148
|
+
});
|
1149
|
+
const d = j.append("g").selectAll("rect").data(y).enter(), v = i.db.getLinks();
|
1150
|
+
if (d.append("rect").attr("id", function(u) {
|
1151
|
+
return u.id;
|
1152
|
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
|
1153
|
+
return u.milestone ? C(u.startTime) + x + 0.5 * (C(u.endTime) - C(u.startTime)) - 0.5 * m : C(u.startTime) + x;
|
1154
|
+
}).attr("y", function(u, t) {
|
1155
|
+
return t = u.order, t * T + b;
|
1156
|
+
}).attr("width", function(u) {
|
1157
|
+
return u.milestone ? m : C(u.renderEndTime || u.endTime) - C(u.startTime);
|
1158
|
+
}).attr("height", m).attr("transform-origin", function(u, t) {
|
1159
|
+
return t = u.order, (C(u.startTime) + x + 0.5 * (C(u.endTime) - C(u.startTime))).toString() + "px " + (t * T + b + 0.5 * m).toString() + "px";
|
1160
|
+
}).attr("class", function(u) {
|
1161
|
+
const t = "task";
|
1162
|
+
let A = "";
|
1163
|
+
u.classes.length > 0 && (A = u.classes.join(" "));
|
1164
|
+
let D = 0;
|
1165
|
+
for (const [N, W] of M.entries())
|
1166
|
+
u.type === W && (D = N % n.numberSectionStyles);
|
1167
|
+
let I = "";
|
1168
|
+
return u.active ? u.crit ? I += " activeCrit" : I = " active" : u.done ? u.crit ? I = " doneCrit" : I = " done" : u.crit && (I += " crit"), I.length === 0 && (I = " task"), u.milestone && (I = " milestone " + I), I += D, I += " " + A, t + I;
|
1169
|
+
}), d.append("text").attr("id", function(u) {
|
1170
|
+
return u.id + "-text";
|
1171
|
+
}).text(function(u) {
|
1172
|
+
return u.task;
|
1173
|
+
}).attr("font-size", n.fontSize).attr("x", function(u) {
|
1174
|
+
let t = C(u.startTime), A = C(u.renderEndTime || u.endTime);
|
1175
|
+
u.milestone && (t += 0.5 * (C(u.endTime) - C(u.startTime)) - 0.5 * m), u.milestone && (A = t + m);
|
1176
|
+
const D = this.getBBox().width;
|
1177
|
+
return D > A - t ? A + D + 1.5 * n.leftPadding > o ? t + x - 5 : A + x + 5 : (A - t) / 2 + t + x;
|
1178
|
+
}).attr("y", function(u, t) {
|
1179
|
+
return t = u.order, t * T + n.barHeight / 2 + (n.fontSize / 2 - 2) + b;
|
1180
|
+
}).attr("text-height", m).attr("class", function(u) {
|
1181
|
+
const t = C(u.startTime);
|
1182
|
+
let A = C(u.endTime);
|
1183
|
+
u.milestone && (A = t + m);
|
1184
|
+
const D = this.getBBox().width;
|
1185
|
+
let I = "";
|
1186
|
+
u.classes.length > 0 && (I = u.classes.join(" "));
|
1187
|
+
let N = 0;
|
1188
|
+
for (const [V, J] of M.entries())
|
1189
|
+
u.type === J && (N = V % n.numberSectionStyles);
|
1190
|
+
let W = "";
|
1191
|
+
return u.active && (u.crit ? W = "activeCritText" + N : W = "activeText" + N), u.done ? u.crit ? W = W + " doneCritText" + N : W = W + " doneText" + N : u.crit && (W = W + " critText" + N), u.milestone && (W += " milestoneText"), D > A - t ? A + D + 1.5 * n.leftPadding > o ? I + " taskTextOutsideLeft taskTextOutside" + N + " " + W : I + " taskTextOutsideRight taskTextOutside" + N + " " + W + " width-" + D : I + " taskText taskText" + N + " " + W + " width-" + D;
|
1192
|
+
}), ce().securityLevel === "sandbox") {
|
1193
|
+
let u;
|
1194
|
+
u = pe("#i" + s);
|
1195
|
+
const t = u.nodes()[0].contentDocument;
|
1196
|
+
d.filter(function(A) {
|
1197
|
+
return v.has(A.id);
|
1198
|
+
}).each(function(A) {
|
1199
|
+
var D = t.querySelector("#" + A.id), I = t.querySelector("#" + A.id + "-text");
|
1200
|
+
const N = D.parentNode;
|
1201
|
+
var W = t.createElement("a");
|
1202
|
+
W.setAttribute("xlink:href", v.get(A.id)), W.setAttribute("target", "_top"), N.appendChild(W), W.appendChild(D), W.appendChild(I);
|
1203
|
+
});
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
c(L, "drawRects");
|
1207
|
+
function F(y, T, b, x, m, _, o, l) {
|
1208
|
+
if (o.length === 0 && l.length === 0)
|
1209
|
+
return;
|
1210
|
+
let h, d;
|
1211
|
+
for (const { startTime: D, endTime: I } of _)
|
1212
|
+
(h === void 0 || D < h) && (h = D), (d === void 0 || I > d) && (d = I);
|
1213
|
+
if (!h || !d)
|
1214
|
+
return;
|
1215
|
+
if ((0, De.default)(d).diff((0, De.default)(h), "year") > 5) {
|
1216
|
+
be.warn(
|
1217
|
+
"The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
|
1218
|
+
);
|
1219
|
+
return;
|
1220
|
+
}
|
1221
|
+
const v = i.db.getDateFormat(), r = [];
|
1222
|
+
let u = null, t = (0, De.default)(h);
|
1223
|
+
for (; t.valueOf() <= d; )
|
1224
|
+
i.db.isInvalidDate(t, v, o, l) ? u ? u.end = t : u = {
|
1225
|
+
start: t,
|
1226
|
+
end: t
|
1227
|
+
} : u && (r.push(u), u = null), t = t.add(1, "d");
|
1228
|
+
j.append("g").selectAll("rect").data(r).enter().append("rect").attr("id", function(D) {
|
1229
|
+
return "exclude-" + D.start.format("YYYY-MM-DD");
|
1230
|
+
}).attr("x", function(D) {
|
1231
|
+
return C(D.start) + b;
|
1232
|
+
}).attr("y", n.gridLineStartPadding).attr("width", function(D) {
|
1233
|
+
const I = D.end.add(1, "day");
|
1234
|
+
return C(I) - C(D.start);
|
1235
|
+
}).attr("height", m - T - n.gridLineStartPadding).attr("transform-origin", function(D, I) {
|
1236
|
+
return (C(D.start) + b + 0.5 * (C(D.end) - C(D.start))).toString() + "px " + (I * y + 0.5 * m).toString() + "px";
|
1237
|
+
}).attr("class", "exclude-range");
|
1238
|
+
}
|
1239
|
+
c(F, "drawExcludeDays");
|
1240
|
+
function q(y, T, b, x) {
|
1241
|
+
let m = vt(C).tickSize(-x + T + n.gridLineStartPadding).tickFormat(je(i.db.getAxisFormat() || n.axisFormat || "%Y-%m-%d"));
|
1242
|
+
const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
|
1243
|
+
i.db.getTickInterval() || n.tickInterval
|
1244
|
+
);
|
1245
|
+
if (o !== null) {
|
1246
|
+
const l = o[1], h = o[2], d = i.db.getWeekday() || n.weekday;
|
1247
|
+
switch (h) {
|
1248
|
+
case "millisecond":
|
1249
|
+
m.ticks(Xe.every(l));
|
1250
|
+
break;
|
1251
|
+
case "second":
|
1252
|
+
m.ticks(Ue.every(l));
|
1253
|
+
break;
|
1254
|
+
case "minute":
|
1255
|
+
m.ticks(He.every(l));
|
1256
|
+
break;
|
1257
|
+
case "hour":
|
1258
|
+
m.ticks(Ge.every(l));
|
1259
|
+
break;
|
1260
|
+
case "day":
|
1261
|
+
m.ticks(qe.every(l));
|
1262
|
+
break;
|
1263
|
+
case "week":
|
1264
|
+
m.ticks(Je[d].every(l));
|
1265
|
+
break;
|
1266
|
+
case "month":
|
1267
|
+
m.ticks(Be.every(l));
|
1268
|
+
break;
|
1269
|
+
}
|
1270
|
+
}
|
1271
|
+
if (j.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (x - 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() || n.topAxis) {
|
1272
|
+
let l = Ct(C).tickSize(-x + T + n.gridLineStartPadding).tickFormat(je(i.db.getAxisFormat() || n.axisFormat || "%Y-%m-%d"));
|
1273
|
+
if (o !== null) {
|
1274
|
+
const h = o[1], d = o[2], v = i.db.getWeekday() || n.weekday;
|
1275
|
+
switch (d) {
|
1276
|
+
case "millisecond":
|
1277
|
+
l.ticks(Xe.every(h));
|
1278
|
+
break;
|
1279
|
+
case "second":
|
1280
|
+
l.ticks(Ue.every(h));
|
1281
|
+
break;
|
1282
|
+
case "minute":
|
1283
|
+
l.ticks(He.every(h));
|
1284
|
+
break;
|
1285
|
+
case "hour":
|
1286
|
+
l.ticks(Ge.every(h));
|
1287
|
+
break;
|
1288
|
+
case "day":
|
1289
|
+
l.ticks(qe.every(h));
|
1290
|
+
break;
|
1291
|
+
case "week":
|
1292
|
+
l.ticks(Je[v].every(h));
|
1293
|
+
break;
|
1294
|
+
case "month":
|
1295
|
+
l.ticks(Be.every(h));
|
1296
|
+
break;
|
1297
|
+
}
|
1298
|
+
}
|
1299
|
+
j.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + T + ")").call(l).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
1300
|
+
}
|
1301
|
+
}
|
1302
|
+
c(q, "makeGrid");
|
1303
|
+
function G(y, T) {
|
1304
|
+
let b = 0;
|
1305
|
+
const x = Object.keys(O).map((m) => [m, O[m]]);
|
1306
|
+
j.append("g").selectAll("text").data(x).enter().append(function(m) {
|
1307
|
+
const _ = m[0].split(Et.lineBreakRegex), o = -(_.length - 1) / 2, l = Y.createElementNS("http://www.w3.org/2000/svg", "text");
|
1308
|
+
l.setAttribute("dy", o + "em");
|
1309
|
+
for (const [h, d] of _.entries()) {
|
1310
|
+
const v = Y.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
1311
|
+
v.setAttribute("alignment-baseline", "central"), v.setAttribute("x", "10"), h > 0 && v.setAttribute("dy", "1em"), v.textContent = d, l.appendChild(v);
|
1312
|
+
}
|
1313
|
+
return l;
|
1314
|
+
}).attr("x", 10).attr("y", function(m, _) {
|
1315
|
+
if (_ > 0)
|
1316
|
+
for (let o = 0; o < _; o++)
|
1317
|
+
return b += x[_ - 1][1], m[1] * y / 2 + b * y + T;
|
1318
|
+
else
|
1319
|
+
return m[1] * y / 2 + T;
|
1320
|
+
}).attr("font-size", n.sectionFontSize).attr("class", function(m) {
|
1321
|
+
for (const [_, o] of M.entries())
|
1322
|
+
if (m[0] === o)
|
1323
|
+
return "sectionTitle sectionTitle" + _ % n.numberSectionStyles;
|
1324
|
+
return "sectionTitle";
|
1325
|
+
});
|
1326
|
+
}
|
1327
|
+
c(G, "vertLabels");
|
1328
|
+
function Q(y, T, b, x) {
|
1329
|
+
const m = i.db.getTodayMarker();
|
1330
|
+
if (m === "off")
|
1331
|
+
return;
|
1332
|
+
const _ = j.append("g").attr("class", "today"), o = /* @__PURE__ */ new Date(), l = _.append("line");
|
1333
|
+
l.attr("x1", C(o) + y).attr("x2", C(o) + y).attr("y1", n.titleTopMargin).attr("y2", x - n.titleTopMargin).attr("class", "today"), m !== "" && l.attr("style", m.replace(/,/g, ";"));
|
1334
|
+
}
|
1335
|
+
c(Q, "drawToday");
|
1336
|
+
function H(y) {
|
1337
|
+
const T = {}, b = [];
|
1338
|
+
for (let x = 0, m = y.length; x < m; ++x)
|
1339
|
+
Object.prototype.hasOwnProperty.call(T, y[x]) || (T[y[x]] = !0, b.push(y[x]));
|
1340
|
+
return b;
|
1341
|
+
}
|
1342
|
+
c(H, "checkUnique");
|
1343
|
+
}, "draw"), Ds = {
|
1344
|
+
setConf: xs,
|
1345
|
+
draw: ws
|
1346
|
+
}, Ss = /* @__PURE__ */ c((e) => `
|
1347
|
+
.mermaid-main-font {
|
1348
|
+
font-family: ${e.fontFamily};
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
.exclude-range {
|
1352
|
+
fill: ${e.excludeBkgColor};
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
.section {
|
1356
|
+
stroke: none;
|
1357
|
+
opacity: 0.2;
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
.section0 {
|
1361
|
+
fill: ${e.sectionBkgColor};
|
1362
|
+
}
|
1363
|
+
|
1364
|
+
.section2 {
|
1365
|
+
fill: ${e.sectionBkgColor2};
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
.section1,
|
1369
|
+
.section3 {
|
1370
|
+
fill: ${e.altSectionBkgColor};
|
1371
|
+
opacity: 0.2;
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
.sectionTitle0 {
|
1375
|
+
fill: ${e.titleColor};
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
.sectionTitle1 {
|
1379
|
+
fill: ${e.titleColor};
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
.sectionTitle2 {
|
1383
|
+
fill: ${e.titleColor};
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
.sectionTitle3 {
|
1387
|
+
fill: ${e.titleColor};
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
.sectionTitle {
|
1391
|
+
text-anchor: start;
|
1392
|
+
font-family: ${e.fontFamily};
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
|
1396
|
+
/* Grid and axis */
|
1397
|
+
|
1398
|
+
.grid .tick {
|
1399
|
+
stroke: ${e.gridColor};
|
1400
|
+
opacity: 0.8;
|
1401
|
+
shape-rendering: crispEdges;
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
.grid .tick text {
|
1405
|
+
font-family: ${e.fontFamily};
|
1406
|
+
fill: ${e.textColor};
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
.grid path {
|
1410
|
+
stroke-width: 0;
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
|
1414
|
+
/* Today line */
|
1415
|
+
|
1416
|
+
.today {
|
1417
|
+
fill: none;
|
1418
|
+
stroke: ${e.todayLineColor};
|
1419
|
+
stroke-width: 2px;
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
|
1423
|
+
/* Task styling */
|
1424
|
+
|
1425
|
+
/* Default task */
|
1426
|
+
|
1427
|
+
.task {
|
1428
|
+
stroke-width: 2;
|
1429
|
+
}
|
1430
|
+
|
1431
|
+
.taskText {
|
1432
|
+
text-anchor: middle;
|
1433
|
+
font-family: ${e.fontFamily};
|
1434
|
+
}
|
1435
|
+
|
1436
|
+
.taskTextOutsideRight {
|
1437
|
+
fill: ${e.taskTextDarkColor};
|
1438
|
+
text-anchor: start;
|
1439
|
+
font-family: ${e.fontFamily};
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
.taskTextOutsideLeft {
|
1443
|
+
fill: ${e.taskTextDarkColor};
|
1444
|
+
text-anchor: end;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
|
1448
|
+
/* Special case clickable */
|
1449
|
+
|
1450
|
+
.task.clickable {
|
1451
|
+
cursor: pointer;
|
1452
|
+
}
|
1453
|
+
|
1454
|
+
.taskText.clickable {
|
1455
|
+
cursor: pointer;
|
1456
|
+
fill: ${e.taskTextClickableColor} !important;
|
1457
|
+
font-weight: bold;
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
.taskTextOutsideLeft.clickable {
|
1461
|
+
cursor: pointer;
|
1462
|
+
fill: ${e.taskTextClickableColor} !important;
|
1463
|
+
font-weight: bold;
|
1464
|
+
}
|
1465
|
+
|
1466
|
+
.taskTextOutsideRight.clickable {
|
1467
|
+
cursor: pointer;
|
1468
|
+
fill: ${e.taskTextClickableColor} !important;
|
1469
|
+
font-weight: bold;
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
|
1473
|
+
/* Specific task settings for the sections*/
|
1474
|
+
|
1475
|
+
.taskText0,
|
1476
|
+
.taskText1,
|
1477
|
+
.taskText2,
|
1478
|
+
.taskText3 {
|
1479
|
+
fill: ${e.taskTextColor};
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
.task0,
|
1483
|
+
.task1,
|
1484
|
+
.task2,
|
1485
|
+
.task3 {
|
1486
|
+
fill: ${e.taskBkgColor};
|
1487
|
+
stroke: ${e.taskBorderColor};
|
1488
|
+
}
|
1489
|
+
|
1490
|
+
.taskTextOutside0,
|
1491
|
+
.taskTextOutside2
|
1492
|
+
{
|
1493
|
+
fill: ${e.taskTextOutsideColor};
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
.taskTextOutside1,
|
1497
|
+
.taskTextOutside3 {
|
1498
|
+
fill: ${e.taskTextOutsideColor};
|
1499
|
+
}
|
1500
|
+
|
1501
|
+
|
1502
|
+
/* Active task */
|
1503
|
+
|
1504
|
+
.active0,
|
1505
|
+
.active1,
|
1506
|
+
.active2,
|
1507
|
+
.active3 {
|
1508
|
+
fill: ${e.activeTaskBkgColor};
|
1509
|
+
stroke: ${e.activeTaskBorderColor};
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
.activeText0,
|
1513
|
+
.activeText1,
|
1514
|
+
.activeText2,
|
1515
|
+
.activeText3 {
|
1516
|
+
fill: ${e.taskTextDarkColor} !important;
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
|
1520
|
+
/* Completed task */
|
1521
|
+
|
1522
|
+
.done0,
|
1523
|
+
.done1,
|
1524
|
+
.done2,
|
1525
|
+
.done3 {
|
1526
|
+
stroke: ${e.doneTaskBorderColor};
|
1527
|
+
fill: ${e.doneTaskBkgColor};
|
1528
|
+
stroke-width: 2;
|
1529
|
+
}
|
1530
|
+
|
1531
|
+
.doneText0,
|
1532
|
+
.doneText1,
|
1533
|
+
.doneText2,
|
1534
|
+
.doneText3 {
|
1535
|
+
fill: ${e.taskTextDarkColor} !important;
|
1536
|
+
}
|
1537
|
+
|
1538
|
+
|
1539
|
+
/* Tasks on the critical line */
|
1540
|
+
|
1541
|
+
.crit0,
|
1542
|
+
.crit1,
|
1543
|
+
.crit2,
|
1544
|
+
.crit3 {
|
1545
|
+
stroke: ${e.critBorderColor};
|
1546
|
+
fill: ${e.critBkgColor};
|
1547
|
+
stroke-width: 2;
|
1548
|
+
}
|
1549
|
+
|
1550
|
+
.activeCrit0,
|
1551
|
+
.activeCrit1,
|
1552
|
+
.activeCrit2,
|
1553
|
+
.activeCrit3 {
|
1554
|
+
stroke: ${e.critBorderColor};
|
1555
|
+
fill: ${e.activeTaskBkgColor};
|
1556
|
+
stroke-width: 2;
|
1557
|
+
}
|
1558
|
+
|
1559
|
+
.doneCrit0,
|
1560
|
+
.doneCrit1,
|
1561
|
+
.doneCrit2,
|
1562
|
+
.doneCrit3 {
|
1563
|
+
stroke: ${e.critBorderColor};
|
1564
|
+
fill: ${e.doneTaskBkgColor};
|
1565
|
+
stroke-width: 2;
|
1566
|
+
cursor: pointer;
|
1567
|
+
shape-rendering: crispEdges;
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
.milestone {
|
1571
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
.milestoneText {
|
1575
|
+
font-style: italic;
|
1576
|
+
}
|
1577
|
+
.doneCritText0,
|
1578
|
+
.doneCritText1,
|
1579
|
+
.doneCritText2,
|
1580
|
+
.doneCritText3 {
|
1581
|
+
fill: ${e.taskTextDarkColor} !important;
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
.activeCritText0,
|
1585
|
+
.activeCritText1,
|
1586
|
+
.activeCritText2,
|
1587
|
+
.activeCritText3 {
|
1588
|
+
fill: ${e.taskTextDarkColor} !important;
|
1589
|
+
}
|
1590
|
+
|
1591
|
+
.titleText {
|
1592
|
+
text-anchor: middle;
|
1593
|
+
font-size: 18px;
|
1594
|
+
fill: ${e.titleColor || e.textColor};
|
1595
|
+
font-family: ${e.fontFamily};
|
1596
|
+
}
|
1597
|
+
`, "getStyles"), Cs = Ss, Ms = {
|
1598
|
+
parser: Wt,
|
1599
|
+
db: bs,
|
1600
|
+
renderer: Ds,
|
1601
|
+
styles: Cs
|
1602
|
+
};
|
1603
|
+
export {
|
1604
|
+
Ms as diagram
|
1605
|
+
};
|