lowcoder-comps 0.0.21 → 0.0.23

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 (58) hide show
  1. package/060799f2.js +960 -0
  2. package/1012bc4d.js +804 -0
  3. package/{b38c288b.js → 13094807.js} +10 -12
  4. package/{54511d22.js → 17eec513.js} +73 -76
  5. package/3581323b.js +1055 -0
  6. package/{f576ac90.js → 39041099.js} +97 -109
  7. package/43aa9013.js +218 -0
  8. package/4835e2da.js +2501 -0
  9. package/4ac12b61.js +915 -0
  10. package/52f00270.js +932 -0
  11. package/53ac8761.js +1235 -0
  12. package/53c41f32.js +1116 -0
  13. package/6b0ac243.js +64 -0
  14. package/6b615aa6.js +365 -0
  15. package/{9f3281b9.js → 6ddb6f97.js} +48410 -35551
  16. package/6fa8963b.js +2396 -0
  17. package/{ba44e76c.js → 7958ae6b.js} +4257 -4221
  18. package/{7c62ef63.js → 7b5e16e2.js} +1 -1
  19. package/83aee898.js +825 -0
  20. package/{31b1cdd2.js → 877dfc2d.js} +29 -30
  21. package/92e85b65.js +65 -0
  22. package/9f3e59b9.js +796 -0
  23. package/{a6e7fb9e.js → 9fadb810.js} +64 -71
  24. package/a8fa2c8f.js +1284 -0
  25. package/{8219433d.js → af05a28a.js} +7038 -6859
  26. package/{450c6bd6.js → ba9c56f6.js} +44 -44
  27. package/{2768fdea.js → bd004c35.js} +89 -97
  28. package/{fb09e069.js → bfe4f54a.js} +598 -622
  29. package/d0baa7b9.js +86 -0
  30. package/dcf6bbc3.js +768 -0
  31. package/e21892cc.js +2966 -0
  32. package/e52f46f3.js +2192 -0
  33. package/{3bd738e9.js → eaef549d.js} +58 -64
  34. package/fc7a026c.js +502 -0
  35. package/fcffa471.js +1000 -0
  36. package/index.js +2 -2
  37. package/package.json +7 -8
  38. package/04ea1009.js +0 -985
  39. package/0a1968f4.js +0 -832
  40. package/3087113d.js +0 -1032
  41. package/39f71758.js +0 -849
  42. package/4d1cf087.js +0 -2679
  43. package/59cbb8ee.js +0 -2456
  44. package/62c916e0.js +0 -86
  45. package/74645131.js +0 -1246
  46. package/75095038.js +0 -159
  47. package/86a4a706.js +0 -1118
  48. package/88c87bf8.js +0 -943
  49. package/8d8e98a7.js +0 -365
  50. package/9200edf7.js +0 -70
  51. package/acdad8f2.js +0 -7
  52. package/cbee3d44.js +0 -607
  53. package/cc0f1351.js +0 -793
  54. package/e614be0d.js +0 -91
  55. package/f40ee59a.js +0 -940
  56. package/fc5c5300.js +0 -2103
  57. package/fe636892.js +0 -823
  58. package/fea654db.js +0 -2827
package/59cbb8ee.js DELETED
@@ -1,2456 +0,0 @@
1
- import { I as He, J as ze, R as Ne, K as Ve, L as gn, M as qt, N as yn, O as he, P as de, c as vt, s as kn, g as pn, z as Tn, A as vn, b as xn, a as bn, m as wn, B as Cn, n as Dn, l as se, h as Ot, i as Mn, j as Sn, x as _n } from "./9f3281b9.js";
2
- import { b as Un, t as Ce, c as Yn, a as Fn, l as Ln } from "./450c6bd6.js";
3
- import { i as En } from "./f9637058.js";
4
- function An(t, e) {
5
- let n;
6
- if (e === void 0)
7
- for (const r of t)
8
- r != null && (n < r || n === void 0 && r >= r) && (n = r);
9
- else {
10
- let r = -1;
11
- for (let i of t)
12
- (i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
13
- }
14
- return n;
15
- }
16
- function In(t, e) {
17
- let n;
18
- if (e === void 0)
19
- for (const r of t)
20
- r != null && (n > r || n === void 0 && r >= r) && (n = r);
21
- else {
22
- let r = -1;
23
- for (let i of t)
24
- (i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
25
- }
26
- return n;
27
- }
28
- function Wn(t) {
29
- return t;
30
- }
31
- var zt = 1, Gt = 2, ae = 3, Ht = 4, De = 1e-6;
32
- function On(t) {
33
- return "translate(" + t + ",0)";
34
- }
35
- function Hn(t) {
36
- return "translate(0," + t + ")";
37
- }
38
- function zn(t) {
39
- return (e) => +t(e);
40
- }
41
- function Nn(t, e) {
42
- return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
43
- }
44
- function Vn() {
45
- return !this.__axis;
46
- }
47
- function Pe(t, e) {
48
- var n = [], r = null, i = null, s = 6, o = 6, y = 3, M = typeof window != "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, p = t === zt || t === Ht ? -1 : 1, D = t === Ht || t === Gt ? "x" : "y", _ = t === zt || t === ae ? On : Hn;
49
- function w(b) {
50
- var P = r == null ? e.ticks ? e.ticks.apply(e, n) : e.domain() : r, g = i == null ? e.tickFormat ? e.tickFormat.apply(e, n) : Wn : i, Y = Math.max(s, 0) + y, H = e.range(), O = +H[0] + M, N = +H[H.length - 1] + M, V = (e.bandwidth ? Nn : zn)(e.copy(), M), q = b.selection ? b.selection() : b, x = q.selectAll(".domain").data([null]), E = q.selectAll(".tick").data(P, e).order(), T = E.exit(), l = E.enter().append("g").attr("class", "tick"), f = E.select("line"), d = E.select("text");
51
- x = x.merge(x.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), E = E.merge(l), f = f.merge(l.append("line").attr("stroke", "currentColor").attr(D + "2", p * s)), d = d.merge(l.append("text").attr("fill", "currentColor").attr(D, p * Y).attr("dy", t === zt ? "0em" : t === ae ? "0.71em" : "0.32em")), b !== q && (x = x.transition(b), E = E.transition(b), f = f.transition(b), d = d.transition(b), T = T.transition(b).attr("opacity", De).attr("transform", function(c) {
52
- return isFinite(c = V(c)) ? _(c + M) : this.getAttribute("transform");
53
- }), l.attr("opacity", De).attr("transform", function(c) {
54
- var v = this.parentNode.__axis;
55
- return _((v && isFinite(v = v(c)) ? v : V(c)) + M);
56
- })), T.remove(), x.attr("d", t === Ht || t === Gt ? o ? "M" + p * o + "," + O + "H" + M + "V" + N + "H" + p * o : "M" + M + "," + O + "V" + N : o ? "M" + O + "," + p * o + "V" + M + "H" + N + "V" + p * o : "M" + O + "," + M + "H" + N), E.attr("opacity", 1).attr("transform", function(c) {
57
- return _(V(c) + M);
58
- }), f.attr(D + "2", p * s), d.attr(D, p * Y).text(g), q.filter(Vn).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Gt ? "start" : t === Ht ? "end" : "middle"), q.each(function() {
59
- this.__axis = V;
60
- });
61
- }
62
- return w.scale = function(b) {
63
- return arguments.length ? (e = b, w) : e;
64
- }, w.ticks = function() {
65
- return n = Array.from(arguments), w;
66
- }, w.tickArguments = function(b) {
67
- return arguments.length ? (n = b == null ? [] : Array.from(b), w) : n.slice();
68
- }, w.tickValues = function(b) {
69
- return arguments.length ? (r = b == null ? null : Array.from(b), w) : r && r.slice();
70
- }, w.tickFormat = function(b) {
71
- return arguments.length ? (i = b, w) : i;
72
- }, w.tickSize = function(b) {
73
- return arguments.length ? (s = o = +b, w) : s;
74
- }, w.tickSizeInner = function(b) {
75
- return arguments.length ? (s = +b, w) : s;
76
- }, w.tickSizeOuter = function(b) {
77
- return arguments.length ? (o = +b, w) : o;
78
- }, w.tickPadding = function(b) {
79
- return arguments.length ? (y = +b, w) : y;
80
- }, w.offset = function(b) {
81
- return arguments.length ? (M = +b, w) : M;
82
- }, w;
83
- }
84
- function Pn(t) {
85
- return Pe(zt, t);
86
- }
87
- function Rn(t) {
88
- return Pe(ae, t);
89
- }
90
- const jn = Math.PI / 180, Bn = 180 / Math.PI, Pt = 18, Re = 0.96422, je = 1, Be = 0.82521, Ze = 4 / 29, xt = 6 / 29, Xe = 3 * xt * xt, Zn = xt * xt * xt;
91
- function qe(t) {
92
- if (t instanceof at)
93
- return new at(t.l, t.a, t.b, t.opacity);
94
- if (t instanceof ct)
95
- return Ge(t);
96
- t instanceof Ne || (t = gn(t));
97
- var e = Kt(t.r), n = Kt(t.g), r = Kt(t.b), i = Qt((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / je), s, o;
98
- return e === n && n === r ? s = o = i : (s = Qt((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / Re), o = Qt((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / Be)), new at(116 * i - 16, 500 * (s - i), 200 * (i - o), t.opacity);
99
- }
100
- function Xn(t, e, n, r) {
101
- return arguments.length === 1 ? qe(t) : new at(t, e, n, r == null ? 1 : r);
102
- }
103
- function at(t, e, n, r) {
104
- this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
105
- }
106
- He(at, Xn, ze(Ve, {
107
- brighter(t) {
108
- return new at(this.l + Pt * (t == null ? 1 : t), this.a, this.b, this.opacity);
109
- },
110
- darker(t) {
111
- return new at(this.l - Pt * (t == null ? 1 : t), this.a, this.b, this.opacity);
112
- },
113
- rgb() {
114
- var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
115
- return e = Re * $t(e), t = je * $t(t), n = Be * $t(n), new Ne(
116
- Jt(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
117
- Jt(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
118
- Jt(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
119
- this.opacity
120
- );
121
- }
122
- }));
123
- function Qt(t) {
124
- return t > Zn ? Math.pow(t, 1 / 3) : t / Xe + Ze;
125
- }
126
- function $t(t) {
127
- return t > xt ? t * t * t : Xe * (t - Ze);
128
- }
129
- function Jt(t) {
130
- return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
131
- }
132
- function Kt(t) {
133
- return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
134
- }
135
- function qn(t) {
136
- if (t instanceof ct)
137
- return new ct(t.h, t.c, t.l, t.opacity);
138
- if (t instanceof at || (t = qe(t)), t.a === 0 && t.b === 0)
139
- return new ct(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
140
- var e = Math.atan2(t.b, t.a) * Bn;
141
- return new ct(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
142
- }
143
- function oe(t, e, n, r) {
144
- return arguments.length === 1 ? qn(t) : new ct(t, e, n, r == null ? 1 : r);
145
- }
146
- function ct(t, e, n, r) {
147
- this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
148
- }
149
- function Ge(t) {
150
- if (isNaN(t.h))
151
- return new at(t.l, 0, 0, t.opacity);
152
- var e = t.h * jn;
153
- return new at(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
154
- }
155
- He(ct, oe, ze(Ve, {
156
- brighter(t) {
157
- return new ct(this.h, this.c, this.l + Pt * (t == null ? 1 : t), this.opacity);
158
- },
159
- darker(t) {
160
- return new ct(this.h, this.c, this.l - Pt * (t == null ? 1 : t), this.opacity);
161
- },
162
- rgb() {
163
- return Ge(this).rgb();
164
- }
165
- }));
166
- function Gn(t) {
167
- return function(e, n) {
168
- var r = t((e = oe(e)).h, (n = oe(n)).h), i = qt(e.c, n.c), s = qt(e.l, n.l), o = qt(e.opacity, n.opacity);
169
- return function(y) {
170
- return e.h = r(y), e.c = i(y), e.l = s(y), e.opacity = o(y), e + "";
171
- };
172
- };
173
- }
174
- const Qn = Gn(yn);
175
- function $n(t, e) {
176
- t = t.slice();
177
- var n = 0, r = t.length - 1, i = t[n], s = t[r], o;
178
- return s < i && (o = n, n = r, r = o, o = i, i = s, s = o), t[n] = e.floor(i), t[r] = e.ceil(s), t;
179
- }
180
- const te = /* @__PURE__ */ new Date(), ee = /* @__PURE__ */ new Date();
181
- function tt(t, e, n, r) {
182
- function i(s) {
183
- return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
184
- }
185
- return i.floor = (s) => (t(s = /* @__PURE__ */ new Date(+s)), s), i.ceil = (s) => (t(s = new Date(s - 1)), e(s, 1), t(s), s), i.round = (s) => {
186
- const o = i(s), y = i.ceil(s);
187
- return s - o < y - s ? o : y;
188
- }, i.offset = (s, o) => (e(s = /* @__PURE__ */ new Date(+s), o == null ? 1 : Math.floor(o)), s), i.range = (s, o, y) => {
189
- const M = [];
190
- if (s = i.ceil(s), y = y == null ? 1 : Math.floor(y), !(s < o) || !(y > 0))
191
- return M;
192
- let p;
193
- do
194
- M.push(p = /* @__PURE__ */ new Date(+s)), e(s, y), t(s);
195
- while (p < s && s < o);
196
- return M;
197
- }, i.filter = (s) => tt((o) => {
198
- if (o >= o)
199
- for (; t(o), !s(o); )
200
- o.setTime(o - 1);
201
- }, (o, y) => {
202
- if (o >= o)
203
- if (y < 0)
204
- for (; ++y <= 0; )
205
- for (; e(o, -1), !s(o); )
206
- ;
207
- else
208
- for (; --y >= 0; )
209
- for (; e(o, 1), !s(o); )
210
- ;
211
- }), n && (i.count = (s, o) => (te.setTime(+s), ee.setTime(+o), t(te), t(ee), Math.floor(n(te, ee))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (o) => r(o) % s === 0 : (o) => i.count(0, o) % s === 0) : i)), i;
212
- }
213
- const Rt = tt(() => {
214
- }, (t, e) => {
215
- t.setTime(+t + e);
216
- }, (t, e) => e - t);
217
- Rt.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? tt((e) => {
218
- e.setTime(Math.floor(e / t) * t);
219
- }, (e, n) => {
220
- e.setTime(+e + n * t);
221
- }, (e, n) => (n - e) / t) : Rt);
222
- Rt.range;
223
- const lt = 1e3, rt = lt * 60, ut = rt * 60, ft = ut * 24, me = ft * 7, Me = ft * 30, ne = ft * 365, Tt = tt((t) => {
224
- t.setTime(t - t.getMilliseconds());
225
- }, (t, e) => {
226
- t.setTime(+t + e * lt);
227
- }, (t, e) => (e - t) / lt, (t) => t.getUTCSeconds());
228
- Tt.range;
229
- const Ft = tt((t) => {
230
- t.setTime(t - t.getMilliseconds() - t.getSeconds() * lt);
231
- }, (t, e) => {
232
- t.setTime(+t + e * rt);
233
- }, (t, e) => (e - t) / rt, (t) => t.getMinutes());
234
- Ft.range;
235
- const Jn = tt((t) => {
236
- t.setUTCSeconds(0, 0);
237
- }, (t, e) => {
238
- t.setTime(+t + e * rt);
239
- }, (t, e) => (e - t) / rt, (t) => t.getUTCMinutes());
240
- Jn.range;
241
- const Lt = tt((t) => {
242
- t.setTime(t - t.getMilliseconds() - t.getSeconds() * lt - t.getMinutes() * rt);
243
- }, (t, e) => {
244
- t.setTime(+t + e * ut);
245
- }, (t, e) => (e - t) / ut, (t) => t.getHours());
246
- Lt.range;
247
- const Kn = tt((t) => {
248
- t.setUTCMinutes(0, 0, 0);
249
- }, (t, e) => {
250
- t.setTime(+t + e * ut);
251
- }, (t, e) => (e - t) / ut, (t) => t.getUTCHours());
252
- Kn.range;
253
- const mt = tt(
254
- (t) => t.setHours(0, 0, 0, 0),
255
- (t, e) => t.setDate(t.getDate() + e),
256
- (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * rt) / ft,
257
- (t) => t.getDate() - 1
258
- );
259
- mt.range;
260
- const ge = tt((t) => {
261
- t.setUTCHours(0, 0, 0, 0);
262
- }, (t, e) => {
263
- t.setUTCDate(t.getUTCDate() + e);
264
- }, (t, e) => (e - t) / ft, (t) => t.getUTCDate() - 1);
265
- ge.range;
266
- const tr = tt((t) => {
267
- t.setUTCHours(0, 0, 0, 0);
268
- }, (t, e) => {
269
- t.setUTCDate(t.getUTCDate() + e);
270
- }, (t, e) => (e - t) / ft, (t) => Math.floor(t / ft));
271
- tr.range;
272
- function yt(t) {
273
- return tt((e) => {
274
- e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
275
- }, (e, n) => {
276
- e.setDate(e.getDate() + n * 7);
277
- }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * rt) / me);
278
- }
279
- const wt = yt(0), jt = yt(1), er = yt(2), nr = yt(3), Ct = yt(4), rr = yt(5), ir = yt(6);
280
- wt.range;
281
- jt.range;
282
- er.range;
283
- nr.range;
284
- Ct.range;
285
- rr.range;
286
- ir.range;
287
- function kt(t) {
288
- return tt((e) => {
289
- e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
290
- }, (e, n) => {
291
- e.setUTCDate(e.getUTCDate() + n * 7);
292
- }, (e, n) => (n - e) / me);
293
- }
294
- const Qe = kt(0), Bt = kt(1), sr = kt(2), ar = kt(3), Dt = kt(4), or = kt(5), cr = kt(6);
295
- Qe.range;
296
- Bt.range;
297
- sr.range;
298
- ar.range;
299
- Dt.range;
300
- or.range;
301
- cr.range;
302
- const Et = tt((t) => {
303
- t.setDate(1), t.setHours(0, 0, 0, 0);
304
- }, (t, e) => {
305
- t.setMonth(t.getMonth() + e);
306
- }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
307
- Et.range;
308
- const lr = tt((t) => {
309
- t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
310
- }, (t, e) => {
311
- t.setUTCMonth(t.getUTCMonth() + e);
312
- }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
313
- lr.range;
314
- const ht = tt((t) => {
315
- t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
316
- }, (t, e) => {
317
- t.setFullYear(t.getFullYear() + e);
318
- }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
319
- ht.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : tt((e) => {
320
- e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
321
- }, (e, n) => {
322
- e.setFullYear(e.getFullYear() + n * t);
323
- });
324
- ht.range;
325
- const gt = tt((t) => {
326
- t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
327
- }, (t, e) => {
328
- t.setUTCFullYear(t.getUTCFullYear() + e);
329
- }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
330
- gt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : tt((e) => {
331
- e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
332
- }, (e, n) => {
333
- e.setUTCFullYear(e.getUTCFullYear() + n * t);
334
- });
335
- gt.range;
336
- function ur(t, e, n, r, i, s) {
337
- const o = [
338
- [Tt, 1, lt],
339
- [Tt, 5, 5 * lt],
340
- [Tt, 15, 15 * lt],
341
- [Tt, 30, 30 * lt],
342
- [s, 1, rt],
343
- [s, 5, 5 * rt],
344
- [s, 15, 15 * rt],
345
- [s, 30, 30 * rt],
346
- [i, 1, ut],
347
- [i, 3, 3 * ut],
348
- [i, 6, 6 * ut],
349
- [i, 12, 12 * ut],
350
- [r, 1, ft],
351
- [r, 2, 2 * ft],
352
- [n, 1, me],
353
- [e, 1, Me],
354
- [e, 3, 3 * Me],
355
- [t, 1, ne]
356
- ];
357
- function y(p, D, _) {
358
- const w = D < p;
359
- w && ([p, D] = [D, p]);
360
- const b = _ && typeof _.range == "function" ? _ : M(p, D, _), P = b ? b.range(p, +D + 1) : [];
361
- return w ? P.reverse() : P;
362
- }
363
- function M(p, D, _) {
364
- const w = Math.abs(D - p) / _, b = Un(([, , Y]) => Y).right(o, w);
365
- if (b === o.length)
366
- return t.every(Ce(p / ne, D / ne, _));
367
- if (b === 0)
368
- return Rt.every(Math.max(Ce(p, D, _), 1));
369
- const [P, g] = o[w / o[b - 1][2] < o[b][2] / w ? b - 1 : b];
370
- return P.every(g);
371
- }
372
- return [y, M];
373
- }
374
- const [fr, hr] = ur(ht, Et, wt, mt, Lt, Ft);
375
- function re(t) {
376
- if (0 <= t.y && t.y < 100) {
377
- var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
378
- return e.setFullYear(t.y), e;
379
- }
380
- return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
381
- }
382
- function ie(t) {
383
- if (0 <= t.y && t.y < 100) {
384
- var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
385
- return e.setUTCFullYear(t.y), e;
386
- }
387
- return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
388
- }
389
- function _t(t, e, n) {
390
- return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
391
- }
392
- function dr(t) {
393
- var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, y = t.months, M = t.shortMonths, p = Ut(i), D = Yt(i), _ = Ut(s), w = Yt(s), b = Ut(o), P = Yt(o), g = Ut(y), Y = Yt(y), H = Ut(M), O = Yt(M), N = {
394
- a: j,
395
- A: B,
396
- b: $,
397
- B: m,
398
- c: null,
399
- d: Le,
400
- e: Le,
401
- f: Wr,
402
- g: Zr,
403
- G: qr,
404
- H: Er,
405
- I: Ar,
406
- j: Ir,
407
- L: $e,
408
- m: Or,
409
- M: Hr,
410
- p: S,
411
- q: U,
412
- Q: Ie,
413
- s: We,
414
- S: zr,
415
- u: Nr,
416
- U: Vr,
417
- V: Pr,
418
- w: Rr,
419
- W: jr,
420
- x: null,
421
- X: null,
422
- y: Br,
423
- Y: Xr,
424
- Z: Gr,
425
- "%": Ae
426
- }, V = {
427
- a: F,
428
- A: W,
429
- b: G,
430
- B: R,
431
- c: null,
432
- d: Ee,
433
- e: Ee,
434
- f: Kr,
435
- g: li,
436
- G: fi,
437
- H: Qr,
438
- I: $r,
439
- j: Jr,
440
- L: Ke,
441
- m: ti,
442
- M: ei,
443
- p: dt,
444
- q: X,
445
- Q: Ie,
446
- s: We,
447
- S: ni,
448
- u: ri,
449
- U: ii,
450
- V: si,
451
- w: ai,
452
- W: oi,
453
- x: null,
454
- X: null,
455
- y: ci,
456
- Y: ui,
457
- Z: hi,
458
- "%": Ae
459
- }, q = {
460
- a: f,
461
- A: d,
462
- b: c,
463
- B: v,
464
- c: a,
465
- d: Ye,
466
- e: Ye,
467
- f: Ur,
468
- g: Ue,
469
- G: _e,
470
- H: Fe,
471
- I: Fe,
472
- j: Dr,
473
- L: _r,
474
- m: Cr,
475
- M: Mr,
476
- p: l,
477
- q: wr,
478
- Q: Fr,
479
- s: Lr,
480
- S: Sr,
481
- u: pr,
482
- U: Tr,
483
- V: vr,
484
- w: kr,
485
- W: xr,
486
- x: A,
487
- X: h,
488
- y: Ue,
489
- Y: _e,
490
- Z: br,
491
- "%": Yr
492
- };
493
- N.x = x(n, N), N.X = x(r, N), N.c = x(e, N), V.x = x(n, V), V.X = x(r, V), V.c = x(e, V);
494
- function x(k, C) {
495
- return function(L) {
496
- var u = [], Z = -1, I = 0, Q = k.length, J, it, nt;
497
- for (L instanceof Date || (L = /* @__PURE__ */ new Date(+L)); ++Z < Q; )
498
- k.charCodeAt(Z) === 37 && (u.push(k.slice(I, Z)), (it = Se[J = k.charAt(++Z)]) != null ? J = k.charAt(++Z) : it = J === "e" ? " " : "0", (nt = C[J]) && (J = nt(L, it)), u.push(J), I = Z + 1);
499
- return u.push(k.slice(I, Z)), u.join("");
500
- };
501
- }
502
- function E(k, C) {
503
- return function(L) {
504
- var u = _t(1900, void 0, 1), Z = T(u, k, L += "", 0), I, Q;
505
- if (Z != L.length)
506
- return null;
507
- if ("Q" in u)
508
- return new Date(u.Q);
509
- if ("s" in u)
510
- return new Date(u.s * 1e3 + ("L" in u ? u.L : 0));
511
- if (C && !("Z" in u) && (u.Z = 0), "p" in u && (u.H = u.H % 12 + u.p * 12), u.m === void 0 && (u.m = "q" in u ? u.q : 0), "V" in u) {
512
- if (u.V < 1 || u.V > 53)
513
- return null;
514
- "w" in u || (u.w = 1), "Z" in u ? (I = ie(_t(u.y, 0, 1)), Q = I.getUTCDay(), I = Q > 4 || Q === 0 ? Bt.ceil(I) : Bt(I), I = ge.offset(I, (u.V - 1) * 7), u.y = I.getUTCFullYear(), u.m = I.getUTCMonth(), u.d = I.getUTCDate() + (u.w + 6) % 7) : (I = re(_t(u.y, 0, 1)), Q = I.getDay(), I = Q > 4 || Q === 0 ? jt.ceil(I) : jt(I), I = mt.offset(I, (u.V - 1) * 7), u.y = I.getFullYear(), u.m = I.getMonth(), u.d = I.getDate() + (u.w + 6) % 7);
515
- } else
516
- ("W" in u || "U" in u) && ("w" in u || (u.w = "u" in u ? u.u % 7 : "W" in u ? 1 : 0), Q = "Z" in u ? ie(_t(u.y, 0, 1)).getUTCDay() : re(_t(u.y, 0, 1)).getDay(), u.m = 0, u.d = "W" in u ? (u.w + 6) % 7 + u.W * 7 - (Q + 5) % 7 : u.w + u.U * 7 - (Q + 6) % 7);
517
- return "Z" in u ? (u.H += u.Z / 100 | 0, u.M += u.Z % 100, ie(u)) : re(u);
518
- };
519
- }
520
- function T(k, C, L, u) {
521
- for (var Z = 0, I = C.length, Q = L.length, J, it; Z < I; ) {
522
- if (u >= Q)
523
- return -1;
524
- if (J = C.charCodeAt(Z++), J === 37) {
525
- if (J = C.charAt(Z++), it = q[J in Se ? C.charAt(Z++) : J], !it || (u = it(k, L, u)) < 0)
526
- return -1;
527
- } else if (J != L.charCodeAt(u++))
528
- return -1;
529
- }
530
- return u;
531
- }
532
- function l(k, C, L) {
533
- var u = p.exec(C.slice(L));
534
- return u ? (k.p = D.get(u[0].toLowerCase()), L + u[0].length) : -1;
535
- }
536
- function f(k, C, L) {
537
- var u = b.exec(C.slice(L));
538
- return u ? (k.w = P.get(u[0].toLowerCase()), L + u[0].length) : -1;
539
- }
540
- function d(k, C, L) {
541
- var u = _.exec(C.slice(L));
542
- return u ? (k.w = w.get(u[0].toLowerCase()), L + u[0].length) : -1;
543
- }
544
- function c(k, C, L) {
545
- var u = H.exec(C.slice(L));
546
- return u ? (k.m = O.get(u[0].toLowerCase()), L + u[0].length) : -1;
547
- }
548
- function v(k, C, L) {
549
- var u = g.exec(C.slice(L));
550
- return u ? (k.m = Y.get(u[0].toLowerCase()), L + u[0].length) : -1;
551
- }
552
- function a(k, C, L) {
553
- return T(k, e, C, L);
554
- }
555
- function A(k, C, L) {
556
- return T(k, n, C, L);
557
- }
558
- function h(k, C, L) {
559
- return T(k, r, C, L);
560
- }
561
- function j(k) {
562
- return o[k.getDay()];
563
- }
564
- function B(k) {
565
- return s[k.getDay()];
566
- }
567
- function $(k) {
568
- return M[k.getMonth()];
569
- }
570
- function m(k) {
571
- return y[k.getMonth()];
572
- }
573
- function S(k) {
574
- return i[+(k.getHours() >= 12)];
575
- }
576
- function U(k) {
577
- return 1 + ~~(k.getMonth() / 3);
578
- }
579
- function F(k) {
580
- return o[k.getUTCDay()];
581
- }
582
- function W(k) {
583
- return s[k.getUTCDay()];
584
- }
585
- function G(k) {
586
- return M[k.getUTCMonth()];
587
- }
588
- function R(k) {
589
- return y[k.getUTCMonth()];
590
- }
591
- function dt(k) {
592
- return i[+(k.getUTCHours() >= 12)];
593
- }
594
- function X(k) {
595
- return 1 + ~~(k.getUTCMonth() / 3);
596
- }
597
- return {
598
- format: function(k) {
599
- var C = x(k += "", N);
600
- return C.toString = function() {
601
- return k;
602
- }, C;
603
- },
604
- parse: function(k) {
605
- var C = E(k += "", !1);
606
- return C.toString = function() {
607
- return k;
608
- }, C;
609
- },
610
- utcFormat: function(k) {
611
- var C = x(k += "", V);
612
- return C.toString = function() {
613
- return k;
614
- }, C;
615
- },
616
- utcParse: function(k) {
617
- var C = E(k += "", !0);
618
- return C.toString = function() {
619
- return k;
620
- }, C;
621
- }
622
- };
623
- }
624
- var Se = { "-": "", _: " ", 0: "0" }, et = /^\s*\d+/, mr = /^%/, gr = /[\\^$*+?|[\]().{}]/g;
625
- function z(t, e, n) {
626
- var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", s = i.length;
627
- return r + (s < n ? new Array(n - s + 1).join(e) + i : i);
628
- }
629
- function yr(t) {
630
- return t.replace(gr, "\\$&");
631
- }
632
- function Ut(t) {
633
- return new RegExp("^(?:" + t.map(yr).join("|") + ")", "i");
634
- }
635
- function Yt(t) {
636
- return new Map(t.map((e, n) => [e.toLowerCase(), n]));
637
- }
638
- function kr(t, e, n) {
639
- var r = et.exec(e.slice(n, n + 1));
640
- return r ? (t.w = +r[0], n + r[0].length) : -1;
641
- }
642
- function pr(t, e, n) {
643
- var r = et.exec(e.slice(n, n + 1));
644
- return r ? (t.u = +r[0], n + r[0].length) : -1;
645
- }
646
- function Tr(t, e, n) {
647
- var r = et.exec(e.slice(n, n + 2));
648
- return r ? (t.U = +r[0], n + r[0].length) : -1;
649
- }
650
- function vr(t, e, n) {
651
- var r = et.exec(e.slice(n, n + 2));
652
- return r ? (t.V = +r[0], n + r[0].length) : -1;
653
- }
654
- function xr(t, e, n) {
655
- var r = et.exec(e.slice(n, n + 2));
656
- return r ? (t.W = +r[0], n + r[0].length) : -1;
657
- }
658
- function _e(t, e, n) {
659
- var r = et.exec(e.slice(n, n + 4));
660
- return r ? (t.y = +r[0], n + r[0].length) : -1;
661
- }
662
- function Ue(t, e, n) {
663
- var r = et.exec(e.slice(n, n + 2));
664
- return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
665
- }
666
- function br(t, e, n) {
667
- var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
668
- return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
669
- }
670
- function wr(t, e, n) {
671
- var r = et.exec(e.slice(n, n + 1));
672
- return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
673
- }
674
- function Cr(t, e, n) {
675
- var r = et.exec(e.slice(n, n + 2));
676
- return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
677
- }
678
- function Ye(t, e, n) {
679
- var r = et.exec(e.slice(n, n + 2));
680
- return r ? (t.d = +r[0], n + r[0].length) : -1;
681
- }
682
- function Dr(t, e, n) {
683
- var r = et.exec(e.slice(n, n + 3));
684
- return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
685
- }
686
- function Fe(t, e, n) {
687
- var r = et.exec(e.slice(n, n + 2));
688
- return r ? (t.H = +r[0], n + r[0].length) : -1;
689
- }
690
- function Mr(t, e, n) {
691
- var r = et.exec(e.slice(n, n + 2));
692
- return r ? (t.M = +r[0], n + r[0].length) : -1;
693
- }
694
- function Sr(t, e, n) {
695
- var r = et.exec(e.slice(n, n + 2));
696
- return r ? (t.S = +r[0], n + r[0].length) : -1;
697
- }
698
- function _r(t, e, n) {
699
- var r = et.exec(e.slice(n, n + 3));
700
- return r ? (t.L = +r[0], n + r[0].length) : -1;
701
- }
702
- function Ur(t, e, n) {
703
- var r = et.exec(e.slice(n, n + 6));
704
- return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
705
- }
706
- function Yr(t, e, n) {
707
- var r = mr.exec(e.slice(n, n + 1));
708
- return r ? n + r[0].length : -1;
709
- }
710
- function Fr(t, e, n) {
711
- var r = et.exec(e.slice(n));
712
- return r ? (t.Q = +r[0], n + r[0].length) : -1;
713
- }
714
- function Lr(t, e, n) {
715
- var r = et.exec(e.slice(n));
716
- return r ? (t.s = +r[0], n + r[0].length) : -1;
717
- }
718
- function Le(t, e) {
719
- return z(t.getDate(), e, 2);
720
- }
721
- function Er(t, e) {
722
- return z(t.getHours(), e, 2);
723
- }
724
- function Ar(t, e) {
725
- return z(t.getHours() % 12 || 12, e, 2);
726
- }
727
- function Ir(t, e) {
728
- return z(1 + mt.count(ht(t), t), e, 3);
729
- }
730
- function $e(t, e) {
731
- return z(t.getMilliseconds(), e, 3);
732
- }
733
- function Wr(t, e) {
734
- return $e(t, e) + "000";
735
- }
736
- function Or(t, e) {
737
- return z(t.getMonth() + 1, e, 2);
738
- }
739
- function Hr(t, e) {
740
- return z(t.getMinutes(), e, 2);
741
- }
742
- function zr(t, e) {
743
- return z(t.getSeconds(), e, 2);
744
- }
745
- function Nr(t) {
746
- var e = t.getDay();
747
- return e === 0 ? 7 : e;
748
- }
749
- function Vr(t, e) {
750
- return z(wt.count(ht(t) - 1, t), e, 2);
751
- }
752
- function Je(t) {
753
- var e = t.getDay();
754
- return e >= 4 || e === 0 ? Ct(t) : Ct.ceil(t);
755
- }
756
- function Pr(t, e) {
757
- return t = Je(t), z(Ct.count(ht(t), t) + (ht(t).getDay() === 4), e, 2);
758
- }
759
- function Rr(t) {
760
- return t.getDay();
761
- }
762
- function jr(t, e) {
763
- return z(jt.count(ht(t) - 1, t), e, 2);
764
- }
765
- function Br(t, e) {
766
- return z(t.getFullYear() % 100, e, 2);
767
- }
768
- function Zr(t, e) {
769
- return t = Je(t), z(t.getFullYear() % 100, e, 2);
770
- }
771
- function Xr(t, e) {
772
- return z(t.getFullYear() % 1e4, e, 4);
773
- }
774
- function qr(t, e) {
775
- var n = t.getDay();
776
- return t = n >= 4 || n === 0 ? Ct(t) : Ct.ceil(t), z(t.getFullYear() % 1e4, e, 4);
777
- }
778
- function Gr(t) {
779
- var e = t.getTimezoneOffset();
780
- return (e > 0 ? "-" : (e *= -1, "+")) + z(e / 60 | 0, "0", 2) + z(e % 60, "0", 2);
781
- }
782
- function Ee(t, e) {
783
- return z(t.getUTCDate(), e, 2);
784
- }
785
- function Qr(t, e) {
786
- return z(t.getUTCHours(), e, 2);
787
- }
788
- function $r(t, e) {
789
- return z(t.getUTCHours() % 12 || 12, e, 2);
790
- }
791
- function Jr(t, e) {
792
- return z(1 + ge.count(gt(t), t), e, 3);
793
- }
794
- function Ke(t, e) {
795
- return z(t.getUTCMilliseconds(), e, 3);
796
- }
797
- function Kr(t, e) {
798
- return Ke(t, e) + "000";
799
- }
800
- function ti(t, e) {
801
- return z(t.getUTCMonth() + 1, e, 2);
802
- }
803
- function ei(t, e) {
804
- return z(t.getUTCMinutes(), e, 2);
805
- }
806
- function ni(t, e) {
807
- return z(t.getUTCSeconds(), e, 2);
808
- }
809
- function ri(t) {
810
- var e = t.getUTCDay();
811
- return e === 0 ? 7 : e;
812
- }
813
- function ii(t, e) {
814
- return z(Qe.count(gt(t) - 1, t), e, 2);
815
- }
816
- function tn(t) {
817
- var e = t.getUTCDay();
818
- return e >= 4 || e === 0 ? Dt(t) : Dt.ceil(t);
819
- }
820
- function si(t, e) {
821
- return t = tn(t), z(Dt.count(gt(t), t) + (gt(t).getUTCDay() === 4), e, 2);
822
- }
823
- function ai(t) {
824
- return t.getUTCDay();
825
- }
826
- function oi(t, e) {
827
- return z(Bt.count(gt(t) - 1, t), e, 2);
828
- }
829
- function ci(t, e) {
830
- return z(t.getUTCFullYear() % 100, e, 2);
831
- }
832
- function li(t, e) {
833
- return t = tn(t), z(t.getUTCFullYear() % 100, e, 2);
834
- }
835
- function ui(t, e) {
836
- return z(t.getUTCFullYear() % 1e4, e, 4);
837
- }
838
- function fi(t, e) {
839
- var n = t.getUTCDay();
840
- return t = n >= 4 || n === 0 ? Dt(t) : Dt.ceil(t), z(t.getUTCFullYear() % 1e4, e, 4);
841
- }
842
- function hi() {
843
- return "+0000";
844
- }
845
- function Ae() {
846
- return "%";
847
- }
848
- function Ie(t) {
849
- return +t;
850
- }
851
- function We(t) {
852
- return Math.floor(+t / 1e3);
853
- }
854
- var pt, Zt;
855
- di({
856
- dateTime: "%x, %X",
857
- date: "%-m/%-d/%Y",
858
- time: "%-I:%M:%S %p",
859
- periods: ["AM", "PM"],
860
- days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
861
- shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
862
- months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
863
- shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
864
- });
865
- function di(t) {
866
- return pt = dr(t), Zt = pt.format, pt.parse, pt.utcFormat, pt.utcParse, pt;
867
- }
868
- function mi(t) {
869
- return new Date(t);
870
- }
871
- function gi(t) {
872
- return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
873
- }
874
- function en(t, e, n, r, i, s, o, y, M, p) {
875
- var D = Yn(), _ = D.invert, w = D.domain, b = p(".%L"), P = p(":%S"), g = p("%I:%M"), Y = p("%I %p"), H = p("%a %d"), O = p("%b %d"), N = p("%B"), V = p("%Y");
876
- function q(x) {
877
- return (M(x) < x ? b : y(x) < x ? P : o(x) < x ? g : s(x) < x ? Y : r(x) < x ? i(x) < x ? H : O : n(x) < x ? N : V)(x);
878
- }
879
- return D.invert = function(x) {
880
- return new Date(_(x));
881
- }, D.domain = function(x) {
882
- return arguments.length ? w(Array.from(x, gi)) : w().map(mi);
883
- }, D.ticks = function(x) {
884
- var E = w();
885
- return t(E[0], E[E.length - 1], x == null ? 10 : x);
886
- }, D.tickFormat = function(x, E) {
887
- return E == null ? q : p(E);
888
- }, D.nice = function(x) {
889
- var E = w();
890
- return (!x || typeof x.range != "function") && (x = e(E[0], E[E.length - 1], x == null ? 10 : x)), x ? w($n(E, x)) : D;
891
- }, D.copy = function() {
892
- return Fn(D, en(t, e, n, r, i, s, o, y, M, p));
893
- }, D;
894
- }
895
- function yi() {
896
- return En.apply(en(fr, hr, ht, Et, wt, mt, Lt, Ft, Tt, Zt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
897
- }
898
- var nn = { exports: {} };
899
- (function(t, e) {
900
- (function(n, r) {
901
- t.exports = r();
902
- })(he, function() {
903
- var n = "day";
904
- return function(r, i, s) {
905
- var o = function(p) {
906
- return p.add(4 - p.isoWeekday(), n);
907
- }, y = i.prototype;
908
- y.isoWeekYear = function() {
909
- return o(this).year();
910
- }, y.isoWeek = function(p) {
911
- if (!this.$utils().u(p))
912
- return this.add(7 * (p - this.isoWeek()), n);
913
- var D, _, w, b, P = o(this), g = (D = this.isoWeekYear(), _ = this.$u, w = (_ ? s.utc : s)().year(D).startOf("year"), b = 4 - w.isoWeekday(), w.isoWeekday() > 4 && (b += 7), w.add(b, n));
914
- return P.diff(g, "week") + 1;
915
- }, y.isoWeekday = function(p) {
916
- return this.$utils().u(p) ? this.day() || 7 : this.day(this.day() % 7 ? p : p - 7);
917
- };
918
- var M = y.startOf;
919
- y.startOf = function(p, D) {
920
- var _ = this.$utils(), w = !!_.u(D) || D;
921
- return _.p(p) === "isoweek" ? w ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : M.bind(this)(p, D);
922
- };
923
- };
924
- });
925
- })(nn);
926
- var ki = nn.exports;
927
- const pi = /* @__PURE__ */ de(ki);
928
- var rn = { exports: {} };
929
- (function(t, e) {
930
- (function(n, r) {
931
- t.exports = r();
932
- })(he, function() {
933
- 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d\d/, s = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, y = {}, M = function(g) {
934
- return (g = +g) + (g > 68 ? 1900 : 2e3);
935
- }, p = function(g) {
936
- return function(Y) {
937
- this[g] = +Y;
938
- };
939
- }, D = [/[+-]\d\d:?(\d\d)?|Z/, function(g) {
940
- (this.zone || (this.zone = {})).offset = function(Y) {
941
- if (!Y || Y === "Z")
942
- return 0;
943
- var H = Y.match(/([+-]|\d\d)/g), O = 60 * H[1] + (+H[2] || 0);
944
- return O === 0 ? 0 : H[0] === "+" ? -O : O;
945
- }(g);
946
- }], _ = function(g) {
947
- var Y = y[g];
948
- return Y && (Y.indexOf ? Y : Y.s.concat(Y.f));
949
- }, w = function(g, Y) {
950
- var H, O = y.meridiem;
951
- if (O) {
952
- for (var N = 1; N <= 24; N += 1)
953
- if (g.indexOf(O(N, 0, Y)) > -1) {
954
- H = N > 12;
955
- break;
956
- }
957
- } else
958
- H = g === (Y ? "pm" : "PM");
959
- return H;
960
- }, b = { A: [o, function(g) {
961
- this.afternoon = w(g, !1);
962
- }], a: [o, function(g) {
963
- this.afternoon = w(g, !0);
964
- }], S: [/\d/, function(g) {
965
- this.milliseconds = 100 * +g;
966
- }], SS: [i, function(g) {
967
- this.milliseconds = 10 * +g;
968
- }], SSS: [/\d{3}/, function(g) {
969
- this.milliseconds = +g;
970
- }], s: [s, p("seconds")], ss: [s, p("seconds")], m: [s, p("minutes")], mm: [s, p("minutes")], H: [s, p("hours")], h: [s, p("hours")], HH: [s, p("hours")], hh: [s, p("hours")], D: [s, p("day")], DD: [i, p("day")], Do: [o, function(g) {
971
- var Y = y.ordinal, H = g.match(/\d+/);
972
- if (this.day = H[0], Y)
973
- for (var O = 1; O <= 31; O += 1)
974
- Y(O).replace(/\[|\]/g, "") === g && (this.day = O);
975
- }], M: [s, p("month")], MM: [i, p("month")], MMM: [o, function(g) {
976
- var Y = _("months"), H = (_("monthsShort") || Y.map(function(O) {
977
- return O.slice(0, 3);
978
- })).indexOf(g) + 1;
979
- if (H < 1)
980
- throw new Error();
981
- this.month = H % 12 || H;
982
- }], MMMM: [o, function(g) {
983
- var Y = _("months").indexOf(g) + 1;
984
- if (Y < 1)
985
- throw new Error();
986
- this.month = Y % 12 || Y;
987
- }], Y: [/[+-]?\d+/, p("year")], YY: [i, function(g) {
988
- this.year = M(g);
989
- }], YYYY: [/\d{4}/, p("year")], Z: D, ZZ: D };
990
- function P(g) {
991
- var Y, H;
992
- Y = g, H = y && y.formats;
993
- for (var O = (g = Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(l, f, d) {
994
- var c = d && d.toUpperCase();
995
- return f || H[d] || n[d] || H[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, a, A) {
996
- return a || A.slice(1);
997
- });
998
- })).match(r), N = O.length, V = 0; V < N; V += 1) {
999
- var q = O[V], x = b[q], E = x && x[0], T = x && x[1];
1000
- O[V] = T ? { regex: E, parser: T } : q.replace(/^\[|\]$/g, "");
1001
- }
1002
- return function(l) {
1003
- for (var f = {}, d = 0, c = 0; d < N; d += 1) {
1004
- var v = O[d];
1005
- if (typeof v == "string")
1006
- c += v.length;
1007
- else {
1008
- var a = v.regex, A = v.parser, h = l.slice(c), j = a.exec(h)[0];
1009
- A.call(f, j), l = l.replace(j, "");
1010
- }
1011
- }
1012
- return function(B) {
1013
- var $ = B.afternoon;
1014
- if ($ !== void 0) {
1015
- var m = B.hours;
1016
- $ ? m < 12 && (B.hours += 12) : m === 12 && (B.hours = 0), delete B.afternoon;
1017
- }
1018
- }(f), f;
1019
- };
1020
- }
1021
- return function(g, Y, H) {
1022
- H.p.customParseFormat = !0, g && g.parseTwoDigitYear && (M = g.parseTwoDigitYear);
1023
- var O = Y.prototype, N = O.parse;
1024
- O.parse = function(V) {
1025
- var q = V.date, x = V.utc, E = V.args;
1026
- this.$u = x;
1027
- var T = E[1];
1028
- if (typeof T == "string") {
1029
- var l = E[2] === !0, f = E[3] === !0, d = l || f, c = E[2];
1030
- f && (c = E[2]), y = this.$locale(), !l && c && (y = H.Ls[c]), this.$d = function(h, j, B) {
1031
- try {
1032
- if (["x", "X"].indexOf(j) > -1)
1033
- return new Date((j === "X" ? 1e3 : 1) * h);
1034
- var $ = P(j)(h), m = $.year, S = $.month, U = $.day, F = $.hours, W = $.minutes, G = $.seconds, R = $.milliseconds, dt = $.zone, X = /* @__PURE__ */ new Date(), k = U || (m || S ? 1 : X.getDate()), C = m || X.getFullYear(), L = 0;
1035
- m && !S || (L = S > 0 ? S - 1 : X.getMonth());
1036
- var u = F || 0, Z = W || 0, I = G || 0, Q = R || 0;
1037
- return dt ? new Date(Date.UTC(C, L, k, u, Z, I, Q + 60 * dt.offset * 1e3)) : B ? new Date(Date.UTC(C, L, k, u, Z, I, Q)) : new Date(C, L, k, u, Z, I, Q);
1038
- } catch (J) {
1039
- return /* @__PURE__ */ new Date("");
1040
- }
1041
- }(q, T, x), this.init(), c && c !== !0 && (this.$L = this.locale(c).$L), d && q != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), y = {};
1042
- } else if (T instanceof Array)
1043
- for (var v = T.length, a = 1; a <= v; a += 1) {
1044
- E[1] = T[a - 1];
1045
- var A = H.apply(this, E);
1046
- if (A.isValid()) {
1047
- this.$d = A.$d, this.$L = A.$L, this.init();
1048
- break;
1049
- }
1050
- a === v && (this.$d = /* @__PURE__ */ new Date(""));
1051
- }
1052
- else
1053
- N.call(this, V);
1054
- };
1055
- };
1056
- });
1057
- })(rn);
1058
- var Ti = rn.exports;
1059
- const vi = /* @__PURE__ */ de(Ti);
1060
- var sn = { exports: {} };
1061
- (function(t, e) {
1062
- (function(n, r) {
1063
- t.exports = r();
1064
- })(he, function() {
1065
- return function(n, r) {
1066
- var i = r.prototype, s = i.format;
1067
- i.format = function(o) {
1068
- var y = this, M = this.$locale();
1069
- if (!this.isValid())
1070
- return s.bind(this)(o);
1071
- var p = this.$utils(), D = (o || "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(_) {
1072
- switch (_) {
1073
- case "Q":
1074
- return Math.ceil((y.$M + 1) / 3);
1075
- case "Do":
1076
- return M.ordinal(y.$D);
1077
- case "gggg":
1078
- return y.weekYear();
1079
- case "GGGG":
1080
- return y.isoWeekYear();
1081
- case "wo":
1082
- return M.ordinal(y.week(), "W");
1083
- case "w":
1084
- case "ww":
1085
- return p.s(y.week(), _ === "w" ? 1 : 2, "0");
1086
- case "W":
1087
- case "WW":
1088
- return p.s(y.isoWeek(), _ === "W" ? 1 : 2, "0");
1089
- case "k":
1090
- case "kk":
1091
- return p.s(String(y.$H === 0 ? 24 : y.$H), _ === "k" ? 1 : 2, "0");
1092
- case "X":
1093
- return Math.floor(y.$d.getTime() / 1e3);
1094
- case "x":
1095
- return y.$d.getTime();
1096
- case "z":
1097
- return "[" + y.offsetName() + "]";
1098
- case "zzz":
1099
- return "[" + y.offsetName("long") + "]";
1100
- default:
1101
- return _;
1102
- }
1103
- });
1104
- return s.bind(this)(D);
1105
- };
1106
- };
1107
- });
1108
- })(sn);
1109
- var xi = sn.exports;
1110
- const bi = /* @__PURE__ */ de(xi);
1111
- var ce = function() {
1112
- var t = function(T, l, f, d) {
1113
- for (f = f || {}, d = T.length; d--; f[T[d]] = l)
1114
- ;
1115
- return f;
1116
- }, e = [1, 3], n = [1, 5], r = [7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 28, 35, 40], i = [1, 15], s = [1, 16], o = [1, 17], y = [1, 18], M = [1, 19], p = [1, 20], D = [1, 21], _ = [1, 22], w = [1, 23], b = [1, 24], P = [1, 25], g = [1, 26], Y = [1, 27], H = [1, 29], O = [1, 31], N = [1, 34], V = [5, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 28, 35, 40], q = {
1117
- trace: function() {
1118
- },
1119
- yy: {},
1120
- symbols_: { error: 2, start: 3, directive: 4, gantt: 5, document: 6, EOF: 7, line: 8, SPACE: 9, statement: 10, NL: 11, dateFormat: 12, inclusiveEndDates: 13, topAxis: 14, axisFormat: 15, tickInterval: 16, excludes: 17, includes: 18, todayMarker: 19, title: 20, acc_title: 21, acc_title_value: 22, acc_descr: 23, acc_descr_value: 24, acc_descr_multiline_value: 25, section: 26, clickStatement: 27, taskTxt: 28, taskData: 29, openDirective: 30, typeDirective: 31, closeDirective: 32, ":": 33, argDirective: 34, click: 35, callbackname: 36, callbackargs: 37, href: 38, clickStatementDebug: 39, open_directive: 40, type_directive: 41, arg_directive: 42, close_directive: 43, $accept: 0, $end: 1 },
1121
- terminals_: { 2: "error", 5: "gantt", 7: "EOF", 9: "SPACE", 11: "NL", 12: "dateFormat", 13: "inclusiveEndDates", 14: "topAxis", 15: "axisFormat", 16: "tickInterval", 17: "excludes", 18: "includes", 19: "todayMarker", 20: "title", 21: "acc_title", 22: "acc_title_value", 23: "acc_descr", 24: "acc_descr_value", 25: "acc_descr_multiline_value", 26: "section", 28: "taskTxt", 29: "taskData", 33: ":", 35: "click", 36: "callbackname", 37: "callbackargs", 38: "href", 40: "open_directive", 41: "type_directive", 42: "arg_directive", 43: "close_directive" },
1122
- productions_: [0, [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [8, 1], [8, 1], [8, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [10, 1], [10, 1], [10, 2], [10, 1], [4, 4], [4, 6], [27, 2], [27, 3], [27, 3], [27, 4], [27, 3], [27, 4], [27, 2], [39, 2], [39, 3], [39, 3], [39, 4], [39, 3], [39, 4], [39, 2], [30, 1], [31, 1], [34, 1], [32, 1]],
1123
- performAction: function(l, f, d, c, v, a, A) {
1124
- var h = a.length - 1;
1125
- switch (v) {
1126
- case 2:
1127
- return a[h - 1];
1128
- case 3:
1129
- this.$ = [];
1130
- break;
1131
- case 4:
1132
- a[h - 1].push(a[h]), this.$ = a[h - 1];
1133
- break;
1134
- case 5:
1135
- case 6:
1136
- this.$ = a[h];
1137
- break;
1138
- case 7:
1139
- case 8:
1140
- this.$ = [];
1141
- break;
1142
- case 9:
1143
- c.setDateFormat(a[h].substr(11)), this.$ = a[h].substr(11);
1144
- break;
1145
- case 10:
1146
- c.enableInclusiveEndDates(), this.$ = a[h].substr(18);
1147
- break;
1148
- case 11:
1149
- c.TopAxis(), this.$ = a[h].substr(8);
1150
- break;
1151
- case 12:
1152
- c.setAxisFormat(a[h].substr(11)), this.$ = a[h].substr(11);
1153
- break;
1154
- case 13:
1155
- c.setTickInterval(a[h].substr(13)), this.$ = a[h].substr(13);
1156
- break;
1157
- case 14:
1158
- c.setExcludes(a[h].substr(9)), this.$ = a[h].substr(9);
1159
- break;
1160
- case 15:
1161
- c.setIncludes(a[h].substr(9)), this.$ = a[h].substr(9);
1162
- break;
1163
- case 16:
1164
- c.setTodayMarker(a[h].substr(12)), this.$ = a[h].substr(12);
1165
- break;
1166
- case 17:
1167
- c.setDiagramTitle(a[h].substr(6)), this.$ = a[h].substr(6);
1168
- break;
1169
- case 18:
1170
- this.$ = a[h].trim(), c.setAccTitle(this.$);
1171
- break;
1172
- case 19:
1173
- case 20:
1174
- this.$ = a[h].trim(), c.setAccDescription(this.$);
1175
- break;
1176
- case 21:
1177
- c.addSection(a[h].substr(8)), this.$ = a[h].substr(8);
1178
- break;
1179
- case 23:
1180
- c.addTask(a[h - 1], a[h]), this.$ = "task";
1181
- break;
1182
- case 27:
1183
- this.$ = a[h - 1], c.setClickEvent(a[h - 1], a[h], null);
1184
- break;
1185
- case 28:
1186
- this.$ = a[h - 2], c.setClickEvent(a[h - 2], a[h - 1], a[h]);
1187
- break;
1188
- case 29:
1189
- this.$ = a[h - 2], c.setClickEvent(a[h - 2], a[h - 1], null), c.setLink(a[h - 2], a[h]);
1190
- break;
1191
- case 30:
1192
- this.$ = a[h - 3], c.setClickEvent(a[h - 3], a[h - 2], a[h - 1]), c.setLink(a[h - 3], a[h]);
1193
- break;
1194
- case 31:
1195
- this.$ = a[h - 2], c.setClickEvent(a[h - 2], a[h], null), c.setLink(a[h - 2], a[h - 1]);
1196
- break;
1197
- case 32:
1198
- this.$ = a[h - 3], c.setClickEvent(a[h - 3], a[h - 1], a[h]), c.setLink(a[h - 3], a[h - 2]);
1199
- break;
1200
- case 33:
1201
- this.$ = a[h - 1], c.setLink(a[h - 1], a[h]);
1202
- break;
1203
- case 34:
1204
- case 40:
1205
- this.$ = a[h - 1] + " " + a[h];
1206
- break;
1207
- case 35:
1208
- case 36:
1209
- case 38:
1210
- this.$ = a[h - 2] + " " + a[h - 1] + " " + a[h];
1211
- break;
1212
- case 37:
1213
- case 39:
1214
- this.$ = a[h - 3] + " " + a[h - 2] + " " + a[h - 1] + " " + a[h];
1215
- break;
1216
- case 41:
1217
- c.parseDirective("%%{", "open_directive");
1218
- break;
1219
- case 42:
1220
- c.parseDirective(a[h], "type_directive");
1221
- break;
1222
- case 43:
1223
- a[h] = a[h].trim().replace(/'/g, '"'), c.parseDirective(a[h], "arg_directive");
1224
- break;
1225
- case 44:
1226
- c.parseDirective("}%%", "close_directive", "gantt");
1227
- break;
1228
- }
1229
- },
1230
- table: [{ 3: 1, 4: 2, 5: e, 30: 4, 40: n }, { 1: [3] }, { 3: 6, 4: 2, 5: e, 30: 4, 40: n }, t(r, [2, 3], { 6: 7 }), { 31: 8, 41: [1, 9] }, { 41: [2, 41] }, { 1: [2, 1] }, { 4: 30, 7: [1, 10], 8: 11, 9: [1, 12], 10: 13, 11: [1, 14], 12: i, 13: s, 14: o, 15: y, 16: M, 17: p, 18: D, 19: _, 20: w, 21: b, 23: P, 25: g, 26: Y, 27: 28, 28: H, 30: 4, 35: O, 40: n }, { 32: 32, 33: [1, 33], 43: N }, t([33, 43], [2, 42]), t(r, [2, 8], { 1: [2, 2] }), t(r, [2, 4]), { 4: 30, 10: 35, 12: i, 13: s, 14: o, 15: y, 16: M, 17: p, 18: D, 19: _, 20: w, 21: b, 23: P, 25: g, 26: Y, 27: 28, 28: H, 30: 4, 35: O, 40: n }, t(r, [2, 6]), t(r, [2, 7]), t(r, [2, 9]), t(r, [2, 10]), t(r, [2, 11]), t(r, [2, 12]), t(r, [2, 13]), t(r, [2, 14]), t(r, [2, 15]), t(r, [2, 16]), t(r, [2, 17]), { 22: [1, 36] }, { 24: [1, 37] }, t(r, [2, 20]), t(r, [2, 21]), t(r, [2, 22]), { 29: [1, 38] }, t(r, [2, 24]), { 36: [1, 39], 38: [1, 40] }, { 11: [1, 41] }, { 34: 42, 42: [1, 43] }, { 11: [2, 44] }, t(r, [2, 5]), t(r, [2, 18]), t(r, [2, 19]), t(r, [2, 23]), t(r, [2, 27], { 37: [1, 44], 38: [1, 45] }), t(r, [2, 33], { 36: [1, 46] }), t(V, [2, 25]), { 32: 47, 43: N }, { 43: [2, 43] }, t(r, [2, 28], { 38: [1, 48] }), t(r, [2, 29]), t(r, [2, 31], { 37: [1, 49] }), { 11: [1, 50] }, t(r, [2, 30]), t(r, [2, 32]), t(V, [2, 26])],
1231
- defaultActions: { 5: [2, 41], 6: [2, 1], 34: [2, 44], 43: [2, 43] },
1232
- parseError: function(l, f) {
1233
- if (f.recoverable)
1234
- this.trace(l);
1235
- else {
1236
- var d = new Error(l);
1237
- throw d.hash = f, d;
1238
- }
1239
- },
1240
- parse: function(l) {
1241
- var f = this, d = [0], c = [], v = [null], a = [], A = this.table, h = "", j = 0, B = 0, $ = 2, m = 1, S = a.slice.call(arguments, 1), U = Object.create(this.lexer), F = { yy: {} };
1242
- for (var W in this.yy)
1243
- Object.prototype.hasOwnProperty.call(this.yy, W) && (F.yy[W] = this.yy[W]);
1244
- U.setInput(l, F.yy), F.yy.lexer = U, F.yy.parser = this, typeof U.yylloc == "undefined" && (U.yylloc = {});
1245
- var G = U.yylloc;
1246
- a.push(G);
1247
- var R = U.options && U.options.ranges;
1248
- typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1249
- function dt() {
1250
- var nt;
1251
- return nt = c.pop() || U.lex() || m, typeof nt != "number" && (nt instanceof Array && (c = nt, nt = c.pop()), nt = f.symbols_[nt] || nt), nt;
1252
- }
1253
- for (var X, k, C, L, u = {}, Z, I, Q, J; ; ) {
1254
- if (k = d[d.length - 1], this.defaultActions[k] ? C = this.defaultActions[k] : ((X === null || typeof X == "undefined") && (X = dt()), C = A[k] && A[k][X]), typeof C == "undefined" || !C.length || !C[0]) {
1255
- var it = "";
1256
- J = [];
1257
- for (Z in A[k])
1258
- this.terminals_[Z] && Z > $ && J.push("'" + this.terminals_[Z] + "'");
1259
- U.showPosition ? it = "Parse error on line " + (j + 1) + `:
1260
- ` + U.showPosition() + `
1261
- Expecting ` + J.join(", ") + ", got '" + (this.terminals_[X] || X) + "'" : it = "Parse error on line " + (j + 1) + ": Unexpected " + (X == m ? "end of input" : "'" + (this.terminals_[X] || X) + "'"), this.parseError(it, {
1262
- text: U.match,
1263
- token: this.terminals_[X] || X,
1264
- line: U.yylineno,
1265
- loc: G,
1266
- expected: J
1267
- });
1268
- }
1269
- if (C[0] instanceof Array && C.length > 1)
1270
- throw new Error("Parse Error: multiple actions possible at state: " + k + ", token: " + X);
1271
- switch (C[0]) {
1272
- case 1:
1273
- d.push(X), v.push(U.yytext), a.push(U.yylloc), d.push(C[1]), X = null, B = U.yyleng, h = U.yytext, j = U.yylineno, G = U.yylloc;
1274
- break;
1275
- case 2:
1276
- if (I = this.productions_[C[1]][1], u.$ = v[v.length - I], u._$ = {
1277
- first_line: a[a.length - (I || 1)].first_line,
1278
- last_line: a[a.length - 1].last_line,
1279
- first_column: a[a.length - (I || 1)].first_column,
1280
- last_column: a[a.length - 1].last_column
1281
- }, R && (u._$.range = [
1282
- a[a.length - (I || 1)].range[0],
1283
- a[a.length - 1].range[1]
1284
- ]), L = this.performAction.apply(u, [
1285
- h,
1286
- B,
1287
- j,
1288
- F.yy,
1289
- C[1],
1290
- v,
1291
- a
1292
- ].concat(S)), typeof L != "undefined")
1293
- return L;
1294
- I && (d = d.slice(0, -1 * I * 2), v = v.slice(0, -1 * I), a = a.slice(0, -1 * I)), d.push(this.productions_[C[1]][0]), v.push(u.$), a.push(u._$), Q = A[d[d.length - 2]][d[d.length - 1]], d.push(Q);
1295
- break;
1296
- case 3:
1297
- return !0;
1298
- }
1299
- }
1300
- return !0;
1301
- }
1302
- }, x = function() {
1303
- var T = {
1304
- EOF: 1,
1305
- parseError: function(f, d) {
1306
- if (this.yy.parser)
1307
- this.yy.parser.parseError(f, d);
1308
- else
1309
- throw new Error(f);
1310
- },
1311
- // resets the lexer, sets new input
1312
- setInput: function(l, f) {
1313
- return this.yy = f || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1314
- first_line: 1,
1315
- first_column: 0,
1316
- last_line: 1,
1317
- last_column: 0
1318
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1319
- },
1320
- // consumes and returns one char from the input
1321
- input: function() {
1322
- var l = this._input[0];
1323
- this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
1324
- var f = l.match(/(?:\r\n?|\n).*/g);
1325
- return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
1326
- },
1327
- // unshifts one char (or a string) into the input
1328
- unput: function(l) {
1329
- var f = l.length, d = l.split(/(?:\r\n?|\n)/g);
1330
- this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
1331
- var c = this.match.split(/(?:\r\n?|\n)/g);
1332
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
1333
- var v = this.yylloc.range;
1334
- return this.yylloc = {
1335
- first_line: this.yylloc.first_line,
1336
- last_line: this.yylineno + 1,
1337
- first_column: this.yylloc.first_column,
1338
- last_column: d ? (d.length === c.length ? this.yylloc.first_column : 0) + c[c.length - d.length].length - d[0].length : this.yylloc.first_column - f
1339
- }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
1340
- },
1341
- // When called from action, caches matched text and appends it on next action
1342
- more: function() {
1343
- return this._more = !0, this;
1344
- },
1345
- // 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.
1346
- reject: function() {
1347
- if (this.options.backtrack_lexer)
1348
- this._backtrack = !0;
1349
- else
1350
- 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).
1351
- ` + this.showPosition(), {
1352
- text: "",
1353
- token: null,
1354
- line: this.yylineno
1355
- });
1356
- return this;
1357
- },
1358
- // retain first n characters of the match
1359
- less: function(l) {
1360
- this.unput(this.match.slice(l));
1361
- },
1362
- // displays already matched input, i.e. for error messages
1363
- pastInput: function() {
1364
- var l = this.matched.substr(0, this.matched.length - this.match.length);
1365
- return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
1366
- },
1367
- // displays upcoming input, i.e. for error messages
1368
- upcomingInput: function() {
1369
- var l = this.match;
1370
- return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
1371
- },
1372
- // displays the character position where the lexing error occurred, i.e. for error messages
1373
- showPosition: function() {
1374
- var l = this.pastInput(), f = new Array(l.length + 1).join("-");
1375
- return l + this.upcomingInput() + `
1376
- ` + f + "^";
1377
- },
1378
- // test the lexed token: return FALSE when not a match, otherwise return token
1379
- test_match: function(l, f) {
1380
- var d, c, v;
1381
- if (this.options.backtrack_lexer && (v = {
1382
- yylineno: this.yylineno,
1383
- yylloc: {
1384
- first_line: this.yylloc.first_line,
1385
- last_line: this.last_line,
1386
- first_column: this.yylloc.first_column,
1387
- last_column: this.yylloc.last_column
1388
- },
1389
- yytext: this.yytext,
1390
- match: this.match,
1391
- matches: this.matches,
1392
- matched: this.matched,
1393
- yyleng: this.yyleng,
1394
- offset: this.offset,
1395
- _more: this._more,
1396
- _input: this._input,
1397
- yy: this.yy,
1398
- conditionStack: this.conditionStack.slice(0),
1399
- done: this.done
1400
- }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), c = l[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
1401
- first_line: this.yylloc.last_line,
1402
- last_line: this.yylineno + 1,
1403
- first_column: this.yylloc.last_column,
1404
- last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
1405
- }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], d = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
1406
- return d;
1407
- if (this._backtrack) {
1408
- for (var a in v)
1409
- this[a] = v[a];
1410
- return !1;
1411
- }
1412
- return !1;
1413
- },
1414
- // return next match in input
1415
- next: function() {
1416
- if (this.done)
1417
- return this.EOF;
1418
- this._input || (this.done = !0);
1419
- var l, f, d, c;
1420
- this._more || (this.yytext = "", this.match = "");
1421
- for (var v = this._currentRules(), a = 0; a < v.length; a++)
1422
- if (d = this._input.match(this.rules[v[a]]), d && (!f || d[0].length > f[0].length)) {
1423
- if (f = d, c = a, this.options.backtrack_lexer) {
1424
- if (l = this.test_match(d, v[a]), l !== !1)
1425
- return l;
1426
- if (this._backtrack) {
1427
- f = !1;
1428
- continue;
1429
- } else
1430
- return !1;
1431
- } else if (!this.options.flex)
1432
- break;
1433
- }
1434
- return f ? (l = this.test_match(f, v[c]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1435
- ` + this.showPosition(), {
1436
- text: "",
1437
- token: null,
1438
- line: this.yylineno
1439
- });
1440
- },
1441
- // return next match that has a token
1442
- lex: function() {
1443
- var f = this.next();
1444
- return f || this.lex();
1445
- },
1446
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1447
- begin: function(f) {
1448
- this.conditionStack.push(f);
1449
- },
1450
- // pop the previously active lexer condition state off the condition stack
1451
- popState: function() {
1452
- var f = this.conditionStack.length - 1;
1453
- return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1454
- },
1455
- // produce the lexer rule set which is active for the currently active lexer condition state
1456
- _currentRules: function() {
1457
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1458
- },
1459
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1460
- topState: function(f) {
1461
- return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
1462
- },
1463
- // alias for begin(condition)
1464
- pushState: function(f) {
1465
- this.begin(f);
1466
- },
1467
- // return the number of states currently on the stack
1468
- stateStackSize: function() {
1469
- return this.conditionStack.length;
1470
- },
1471
- options: { "case-insensitive": !0 },
1472
- performAction: function(f, d, c, v) {
1473
- switch (c) {
1474
- case 0:
1475
- return this.begin("open_directive"), 40;
1476
- case 1:
1477
- return this.begin("type_directive"), 41;
1478
- case 2:
1479
- return this.popState(), this.begin("arg_directive"), 33;
1480
- case 3:
1481
- return this.popState(), this.popState(), 43;
1482
- case 4:
1483
- return 42;
1484
- case 5:
1485
- return this.begin("acc_title"), 21;
1486
- case 6:
1487
- return this.popState(), "acc_title_value";
1488
- case 7:
1489
- return this.begin("acc_descr"), 23;
1490
- case 8:
1491
- return this.popState(), "acc_descr_value";
1492
- case 9:
1493
- this.begin("acc_descr_multiline");
1494
- break;
1495
- case 10:
1496
- this.popState();
1497
- break;
1498
- case 11:
1499
- return "acc_descr_multiline_value";
1500
- case 12:
1501
- break;
1502
- case 13:
1503
- break;
1504
- case 14:
1505
- break;
1506
- case 15:
1507
- return 11;
1508
- case 16:
1509
- break;
1510
- case 17:
1511
- break;
1512
- case 18:
1513
- break;
1514
- case 19:
1515
- this.begin("href");
1516
- break;
1517
- case 20:
1518
- this.popState();
1519
- break;
1520
- case 21:
1521
- return 38;
1522
- case 22:
1523
- this.begin("callbackname");
1524
- break;
1525
- case 23:
1526
- this.popState();
1527
- break;
1528
- case 24:
1529
- this.popState(), this.begin("callbackargs");
1530
- break;
1531
- case 25:
1532
- return 36;
1533
- case 26:
1534
- this.popState();
1535
- break;
1536
- case 27:
1537
- return 37;
1538
- case 28:
1539
- this.begin("click");
1540
- break;
1541
- case 29:
1542
- this.popState();
1543
- break;
1544
- case 30:
1545
- return 35;
1546
- case 31:
1547
- return 5;
1548
- case 32:
1549
- return 12;
1550
- case 33:
1551
- return 13;
1552
- case 34:
1553
- return 14;
1554
- case 35:
1555
- return 15;
1556
- case 36:
1557
- return 16;
1558
- case 37:
1559
- return 18;
1560
- case 38:
1561
- return 17;
1562
- case 39:
1563
- return 19;
1564
- case 40:
1565
- return "date";
1566
- case 41:
1567
- return 20;
1568
- case 42:
1569
- return "accDescription";
1570
- case 43:
1571
- return 26;
1572
- case 44:
1573
- return 28;
1574
- case 45:
1575
- return 29;
1576
- case 46:
1577
- return 33;
1578
- case 47:
1579
- return 7;
1580
- case 48:
1581
- return "INVALID";
1582
- }
1583
- },
1584
- rules: [/^(?:%%\{)/i, /^(?:((?:(?!\}%%)[^:.])*))/i, /^(?::)/i, /^(?:\}%%)/i, /^(?:((?:(?!\}%%).|\n)*))/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, /^(?:%[^\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, /^(?:\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],
1585
- conditions: { acc_descr_multiline: { rules: [10, 11], inclusive: !1 }, acc_descr: { rules: [8], inclusive: !1 }, acc_title: { rules: [6], inclusive: !1 }, close_directive: { rules: [], inclusive: !1 }, arg_directive: { rules: [3, 4], inclusive: !1 }, type_directive: { rules: [2, 3], inclusive: !1 }, open_directive: { rules: [1], inclusive: !1 }, callbackargs: { rules: [26, 27], inclusive: !1 }, callbackname: { rules: [23, 24, 25], inclusive: !1 }, href: { rules: [20, 21], inclusive: !1 }, click: { rules: [29, 30], inclusive: !1 }, INITIAL: { rules: [0, 5, 7, 9, 12, 13, 14, 15, 16, 17, 18, 19, 22, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], inclusive: !0 } }
1586
- };
1587
- return T;
1588
- }();
1589
- q.lexer = x;
1590
- function E() {
1591
- this.yy = {};
1592
- }
1593
- return E.prototype = q, q.Parser = E, new E();
1594
- }();
1595
- ce.parser = ce;
1596
- const wi = ce;
1597
- $dayjs.extend(pi);
1598
- $dayjs.extend(vi);
1599
- $dayjs.extend(bi);
1600
- let st = "", ye = "", ke, pe = "", At = [], It = [], Te = {}, ve = [], Xt = [], Mt = "", xe = "";
1601
- const an = ["active", "done", "crit", "milestone"];
1602
- let be = [], Wt = !1, we = !1, le = 0;
1603
- const Ci = function(t, e, n) {
1604
- wn.parseDirective(this, t, e, n);
1605
- }, Di = function() {
1606
- ve = [], Xt = [], Mt = "", be = [], Nt = 0, fe = void 0, Vt = void 0, K = [], st = "", ye = "", xe = "", ke = void 0, pe = "", At = [], It = [], Wt = !1, we = !1, le = 0, Te = {}, Cn();
1607
- }, Mi = function(t) {
1608
- ye = t;
1609
- }, Si = function() {
1610
- return ye;
1611
- }, _i = function(t) {
1612
- ke = t;
1613
- }, Ui = function() {
1614
- return ke;
1615
- }, Yi = function(t) {
1616
- pe = t;
1617
- }, Fi = function() {
1618
- return pe;
1619
- }, Li = function(t) {
1620
- st = t;
1621
- }, Ei = function() {
1622
- Wt = !0;
1623
- }, Ai = function() {
1624
- return Wt;
1625
- }, Ii = function() {
1626
- we = !0;
1627
- }, Wi = function() {
1628
- return we;
1629
- }, Oi = function(t) {
1630
- xe = t;
1631
- }, Hi = function() {
1632
- return xe;
1633
- }, zi = function() {
1634
- return st;
1635
- }, Ni = function(t) {
1636
- At = t.toLowerCase().split(/[\s,]+/);
1637
- }, Vi = function() {
1638
- return At;
1639
- }, Pi = function(t) {
1640
- It = t.toLowerCase().split(/[\s,]+/);
1641
- }, Ri = function() {
1642
- return It;
1643
- }, ji = function() {
1644
- return Te;
1645
- }, Bi = function(t) {
1646
- Mt = t, ve.push(t);
1647
- }, Zi = function() {
1648
- return ve;
1649
- }, Xi = function() {
1650
- let t = Oe();
1651
- const e = 10;
1652
- let n = 0;
1653
- for (; !t && n < e; )
1654
- t = Oe(), n++;
1655
- return Xt = K, Xt;
1656
- }, on = function(t, e, n, r) {
1657
- return r.includes(t.format(e.trim())) ? !1 : t.isoWeekday() >= 6 && n.includes("weekends") || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(t.format(e.trim()));
1658
- }, cn = function(t, e, n, r) {
1659
- if (!n.length || t.manualEndTime)
1660
- return;
1661
- let i;
1662
- t.startTime instanceof Date ? i = $dayjs(t.startTime) : i = $dayjs(t.startTime, e, !0), i = i.add(1, "d");
1663
- let s;
1664
- t.endTime instanceof Date ? s = $dayjs(t.endTime) : s = $dayjs(t.endTime, e, !0);
1665
- const [o, y] = qi(
1666
- i,
1667
- s,
1668
- e,
1669
- n,
1670
- r
1671
- );
1672
- t.endTime = o.toDate(), t.renderEndTime = y;
1673
- }, qi = function(t, e, n, r, i) {
1674
- let s = !1, o = null;
1675
- for (; t <= e; )
1676
- s || (o = e.toDate()), s = on(t, n, r, i), s && (e = e.add(1, "d")), t = t.add(1, "d");
1677
- return [e, o];
1678
- }, ue = function(t, e, n) {
1679
- n = n.trim();
1680
- const i = /^after\s+([\d\w- ]+)/.exec(n.trim());
1681
- if (i !== null) {
1682
- let o = null;
1683
- if (i[1].split(" ").forEach(function(y) {
1684
- let M = St(y);
1685
- M !== void 0 && (o ? M.endTime > o.endTime && (o = M) : o = M);
1686
- }), o)
1687
- return o.endTime;
1688
- {
1689
- const y = /* @__PURE__ */ new Date();
1690
- return y.setHours(0, 0, 0, 0), y;
1691
- }
1692
- }
1693
- let s = $dayjs(n, e.trim(), !0);
1694
- if (s.isValid())
1695
- return s.toDate();
1696
- {
1697
- se.debug("Invalid date:" + n), se.debug("With date format:" + e.trim());
1698
- const o = new Date(n);
1699
- if (o === void 0 || isNaN(o.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1700
- // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1701
- // This can cause virtually infinite loops while rendering, so for the
1702
- // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1703
- // invalid.
1704
- o.getFullYear() < -1e4 || o.getFullYear() > 1e4)
1705
- throw new Error("Invalid date:" + n);
1706
- return o;
1707
- }
1708
- }, ln = function(t) {
1709
- const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1710
- return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1711
- }, un = function(t, e, n, r = !1) {
1712
- n = n.trim();
1713
- let i = $dayjs(n, e.trim(), !0);
1714
- if (i.isValid())
1715
- return r && (i = i.add(1, "d")), i.toDate();
1716
- let s = $dayjs(t);
1717
- const [o, y] = ln(n);
1718
- if (!Number.isNaN(o)) {
1719
- const M = s.add(o, y);
1720
- M.isValid() && (s = M);
1721
- }
1722
- return s.toDate();
1723
- };
1724
- let Nt = 0;
1725
- const bt = function(t) {
1726
- return t === void 0 ? (Nt = Nt + 1, "task" + Nt) : t;
1727
- }, Gi = function(t, e) {
1728
- let n;
1729
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1730
- const r = n.split(","), i = {};
1731
- mn(r, i, an);
1732
- for (let o = 0; o < r.length; o++)
1733
- r[o] = r[o].trim();
1734
- let s = "";
1735
- switch (r.length) {
1736
- case 1:
1737
- i.id = bt(), i.startTime = t.endTime, s = r[0];
1738
- break;
1739
- case 2:
1740
- i.id = bt(), i.startTime = ue(void 0, st, r[0]), s = r[1];
1741
- break;
1742
- case 3:
1743
- i.id = bt(r[0]), i.startTime = ue(void 0, st, r[1]), s = r[2];
1744
- break;
1745
- }
1746
- return s && (i.endTime = un(i.startTime, st, s, Wt), i.manualEndTime = $dayjs(s, "YYYY-MM-DD", !0).isValid(), cn(i, st, It, At)), i;
1747
- }, Qi = function(t, e) {
1748
- let n;
1749
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1750
- const r = n.split(","), i = {};
1751
- mn(r, i, an);
1752
- for (let s = 0; s < r.length; s++)
1753
- r[s] = r[s].trim();
1754
- switch (r.length) {
1755
- case 1:
1756
- i.id = bt(), i.startTime = {
1757
- type: "prevTaskEnd",
1758
- id: t
1759
- }, i.endTime = {
1760
- data: r[0]
1761
- };
1762
- break;
1763
- case 2:
1764
- i.id = bt(), i.startTime = {
1765
- type: "getStartDate",
1766
- startData: r[0]
1767
- }, i.endTime = {
1768
- data: r[1]
1769
- };
1770
- break;
1771
- case 3:
1772
- i.id = bt(r[0]), i.startTime = {
1773
- type: "getStartDate",
1774
- startData: r[1]
1775
- }, i.endTime = {
1776
- data: r[2]
1777
- };
1778
- break;
1779
- }
1780
- return i;
1781
- };
1782
- let fe, Vt, K = [];
1783
- const fn = {}, $i = function(t, e) {
1784
- const n = {
1785
- section: Mt,
1786
- type: Mt,
1787
- processed: !1,
1788
- manualEndTime: !1,
1789
- renderEndTime: null,
1790
- raw: { data: e },
1791
- task: t,
1792
- classes: []
1793
- }, r = Qi(Vt, e);
1794
- n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = Vt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.order = le, le++;
1795
- const i = K.push(n);
1796
- Vt = n.id, fn[n.id] = i - 1;
1797
- }, St = function(t) {
1798
- const e = fn[t];
1799
- return K[e];
1800
- }, Ji = function(t, e) {
1801
- const n = {
1802
- section: Mt,
1803
- type: Mt,
1804
- description: t,
1805
- task: t,
1806
- classes: []
1807
- }, r = Gi(fe, e);
1808
- n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, fe = n, Xt.push(n);
1809
- }, Oe = function() {
1810
- const t = function(n) {
1811
- const r = K[n];
1812
- let i = "";
1813
- switch (K[n].raw.startTime.type) {
1814
- case "prevTaskEnd": {
1815
- const s = St(r.prevTaskId);
1816
- r.startTime = s.endTime;
1817
- break;
1818
- }
1819
- case "getStartDate":
1820
- i = ue(void 0, st, K[n].raw.startTime.startData), i && (K[n].startTime = i);
1821
- break;
1822
- }
1823
- return K[n].startTime && (K[n].endTime = un(
1824
- K[n].startTime,
1825
- st,
1826
- K[n].raw.endTime.data,
1827
- Wt
1828
- ), K[n].endTime && (K[n].processed = !0, K[n].manualEndTime = $dayjs(
1829
- K[n].raw.endTime.data,
1830
- "YYYY-MM-DD",
1831
- !0
1832
- ).isValid(), cn(K[n], st, It, At))), K[n].processed;
1833
- };
1834
- let e = !0;
1835
- for (const [n, r] of K.entries())
1836
- t(n), e = e && r.processed;
1837
- return e;
1838
- }, Ki = function(t, e) {
1839
- let n = e;
1840
- vt().securityLevel !== "loose" && (n = Dn(e)), t.split(",").forEach(function(r) {
1841
- St(r) !== void 0 && (dn(r, () => {
1842
- window.open(n, "_self");
1843
- }), Te[r] = n);
1844
- }), hn(t, "clickable");
1845
- }, hn = function(t, e) {
1846
- t.split(",").forEach(function(n) {
1847
- let r = St(n);
1848
- r !== void 0 && r.classes.push(e);
1849
- });
1850
- }, ts = function(t, e, n) {
1851
- if (vt().securityLevel !== "loose" || e === void 0)
1852
- return;
1853
- let r = [];
1854
- if (typeof n == "string") {
1855
- r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1856
- for (let s = 0; s < r.length; s++) {
1857
- let o = r[s].trim();
1858
- o.charAt(0) === '"' && o.charAt(o.length - 1) === '"' && (o = o.substr(1, o.length - 2)), r[s] = o;
1859
- }
1860
- }
1861
- r.length === 0 && r.push(t), St(t) !== void 0 && dn(t, () => {
1862
- _n.runFunc(e, ...r);
1863
- });
1864
- }, dn = function(t, e) {
1865
- be.push(
1866
- function() {
1867
- const n = document.querySelector(`[id="${t}"]`);
1868
- n !== null && n.addEventListener("click", function() {
1869
- e();
1870
- });
1871
- },
1872
- function() {
1873
- const n = document.querySelector(`[id="${t}-text"]`);
1874
- n !== null && n.addEventListener("click", function() {
1875
- e();
1876
- });
1877
- }
1878
- );
1879
- }, es = function(t, e, n) {
1880
- t.split(",").forEach(function(r) {
1881
- ts(r, e, n);
1882
- }), hn(t, "clickable");
1883
- }, ns = function(t) {
1884
- be.forEach(function(e) {
1885
- e(t);
1886
- });
1887
- }, rs = {
1888
- parseDirective: Ci,
1889
- getConfig: () => vt().gantt,
1890
- clear: Di,
1891
- setDateFormat: Li,
1892
- getDateFormat: zi,
1893
- enableInclusiveEndDates: Ei,
1894
- endDatesAreInclusive: Ai,
1895
- enableTopAxis: Ii,
1896
- topAxisEnabled: Wi,
1897
- setAxisFormat: Mi,
1898
- getAxisFormat: Si,
1899
- setTickInterval: _i,
1900
- getTickInterval: Ui,
1901
- setTodayMarker: Yi,
1902
- getTodayMarker: Fi,
1903
- setAccTitle: kn,
1904
- getAccTitle: pn,
1905
- setDiagramTitle: Tn,
1906
- getDiagramTitle: vn,
1907
- setDisplayMode: Oi,
1908
- getDisplayMode: Hi,
1909
- setAccDescription: xn,
1910
- getAccDescription: bn,
1911
- addSection: Bi,
1912
- getSections: Zi,
1913
- getTasks: Xi,
1914
- addTask: $i,
1915
- findTaskById: St,
1916
- addTaskOrg: Ji,
1917
- setIncludes: Ni,
1918
- getIncludes: Vi,
1919
- setExcludes: Pi,
1920
- getExcludes: Ri,
1921
- setClickEvent: es,
1922
- setLink: Ki,
1923
- getLinks: ji,
1924
- bindFunctions: ns,
1925
- parseDuration: ln,
1926
- isInvalidDate: on
1927
- };
1928
- function mn(t, e, n) {
1929
- let r = !0;
1930
- for (; r; )
1931
- r = !1, n.forEach(function(i) {
1932
- const s = "^\\s*" + i + "\\s*$", o = new RegExp(s);
1933
- t[0].match(o) && (e[i] = !0, t.shift(1), r = !0);
1934
- });
1935
- }
1936
- const is = function() {
1937
- se.debug("Something is calling, setConf, remove the call");
1938
- }, ss = (t, e) => {
1939
- let n = [...t].map(() => -1 / 0), r = [...t].sort((s, o) => s.startTime - o.startTime || s.order - o.order), i = 0;
1940
- for (const s of r)
1941
- for (let o = 0; o < n.length; o++)
1942
- if (s.startTime >= n[o]) {
1943
- n[o] = s.endTime, s.order = o + e, o > i && (i = o);
1944
- break;
1945
- }
1946
- return i;
1947
- };
1948
- let ot;
1949
- const as = function(t, e, n, r) {
1950
- const i = vt().gantt, s = vt().securityLevel;
1951
- let o;
1952
- s === "sandbox" && (o = Ot("#i" + e));
1953
- const y = s === "sandbox" ? Ot(o.nodes()[0].contentDocument.body) : Ot("body"), M = s === "sandbox" ? o.nodes()[0].contentDocument : document, p = M.getElementById(e);
1954
- ot = p.parentElement.offsetWidth, ot === void 0 && (ot = 1200), i.useWidth !== void 0 && (ot = i.useWidth);
1955
- const D = r.db.getTasks();
1956
- let _ = [];
1957
- for (const T of D)
1958
- _.push(T.type);
1959
- _ = E(_);
1960
- const w = {};
1961
- let b = 2 * i.topPadding;
1962
- if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
1963
- const T = {};
1964
- for (const f of D)
1965
- T[f.section] === void 0 ? T[f.section] = [f] : T[f.section].push(f);
1966
- let l = 0;
1967
- for (const f of Object.keys(T)) {
1968
- const d = ss(T[f], l) + 1;
1969
- l += d, b += d * (i.barHeight + i.barGap), w[f] = d;
1970
- }
1971
- } else {
1972
- b += D.length * (i.barHeight + i.barGap);
1973
- for (const T of _)
1974
- w[T] = D.filter((l) => l.type === T).length;
1975
- }
1976
- p.setAttribute("viewBox", "0 0 " + ot + " " + b);
1977
- const P = y.select(`[id="${e}"]`), g = yi().domain([
1978
- In(D, function(T) {
1979
- return T.startTime;
1980
- }),
1981
- An(D, function(T) {
1982
- return T.endTime;
1983
- })
1984
- ]).rangeRound([0, ot - i.leftPadding - i.rightPadding]);
1985
- function Y(T, l) {
1986
- const f = T.startTime, d = l.startTime;
1987
- let c = 0;
1988
- return f > d ? c = 1 : f < d && (c = -1), c;
1989
- }
1990
- D.sort(Y), H(D, ot, b), Mn(P, b, ot, i.useMaxWidth), P.append("text").text(r.db.getDiagramTitle()).attr("x", ot / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
1991
- function H(T, l, f) {
1992
- const d = i.barHeight, c = d + i.barGap, v = i.topPadding, a = i.leftPadding, A = Ln().domain([0, _.length]).range(["#00B9FA", "#F95002"]).interpolate(Qn);
1993
- N(
1994
- c,
1995
- v,
1996
- a,
1997
- l,
1998
- f,
1999
- T,
2000
- r.db.getExcludes(),
2001
- r.db.getIncludes()
2002
- ), V(a, v, l, f), O(T, c, v, a, d, A, l), q(c, v), x(a, v, l, f);
2003
- }
2004
- function O(T, l, f, d, c, v, a) {
2005
- const h = [...new Set(T.map((m) => m.order))].map((m) => T.find((S) => S.order === m));
2006
- P.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(m, S) {
2007
- return S = m.order, S * l + f - 2;
2008
- }).attr("width", function() {
2009
- return a - i.rightPadding / 2;
2010
- }).attr("height", l).attr("class", function(m) {
2011
- for (const [S, U] of _.entries())
2012
- if (m.type === U)
2013
- return "section section" + S % i.numberSectionStyles;
2014
- return "section section0";
2015
- });
2016
- const j = P.append("g").selectAll("rect").data(T).enter(), B = r.db.getLinks();
2017
- if (j.append("rect").attr("id", function(m) {
2018
- return m.id;
2019
- }).attr("rx", 3).attr("ry", 3).attr("x", function(m) {
2020
- return m.milestone ? g(m.startTime) + d + 0.5 * (g(m.endTime) - g(m.startTime)) - 0.5 * c : g(m.startTime) + d;
2021
- }).attr("y", function(m, S) {
2022
- return S = m.order, S * l + f;
2023
- }).attr("width", function(m) {
2024
- return m.milestone ? c : g(m.renderEndTime || m.endTime) - g(m.startTime);
2025
- }).attr("height", c).attr("transform-origin", function(m, S) {
2026
- return S = m.order, (g(m.startTime) + d + 0.5 * (g(m.endTime) - g(m.startTime))).toString() + "px " + (S * l + f + 0.5 * c).toString() + "px";
2027
- }).attr("class", function(m) {
2028
- const S = "task";
2029
- let U = "";
2030
- m.classes.length > 0 && (U = m.classes.join(" "));
2031
- let F = 0;
2032
- for (const [G, R] of _.entries())
2033
- m.type === R && (F = G % i.numberSectionStyles);
2034
- let W = "";
2035
- return m.active ? m.crit ? W += " activeCrit" : W = " active" : m.done ? m.crit ? W = " doneCrit" : W = " done" : m.crit && (W += " crit"), W.length === 0 && (W = " task"), m.milestone && (W = " milestone " + W), W += F, W += " " + U, S + W;
2036
- }), j.append("text").attr("id", function(m) {
2037
- return m.id + "-text";
2038
- }).text(function(m) {
2039
- return m.task;
2040
- }).attr("font-size", i.fontSize).attr("x", function(m) {
2041
- let S = g(m.startTime), U = g(m.renderEndTime || m.endTime);
2042
- m.milestone && (S += 0.5 * (g(m.endTime) - g(m.startTime)) - 0.5 * c), m.milestone && (U = S + c);
2043
- const F = this.getBBox().width;
2044
- return F > U - S ? U + F + 1.5 * i.leftPadding > a ? S + d - 5 : U + d + 5 : (U - S) / 2 + S + d;
2045
- }).attr("y", function(m, S) {
2046
- return S = m.order, S * l + i.barHeight / 2 + (i.fontSize / 2 - 2) + f;
2047
- }).attr("text-height", c).attr("class", function(m) {
2048
- const S = g(m.startTime);
2049
- let U = g(m.endTime);
2050
- m.milestone && (U = S + c);
2051
- const F = this.getBBox().width;
2052
- let W = "";
2053
- m.classes.length > 0 && (W = m.classes.join(" "));
2054
- let G = 0;
2055
- for (const [dt, X] of _.entries())
2056
- m.type === X && (G = dt % i.numberSectionStyles);
2057
- let R = "";
2058
- return m.active && (m.crit ? R = "activeCritText" + G : R = "activeText" + G), m.done ? m.crit ? R = R + " doneCritText" + G : R = R + " doneText" + G : m.crit && (R = R + " critText" + G), m.milestone && (R += " milestoneText"), F > U - S ? U + F + 1.5 * i.leftPadding > a ? W + " taskTextOutsideLeft taskTextOutside" + G + " " + R : W + " taskTextOutsideRight taskTextOutside" + G + " " + R + " width-" + F : W + " taskText taskText" + G + " " + R + " width-" + F;
2059
- }), vt().securityLevel === "sandbox") {
2060
- let m;
2061
- m = Ot("#i" + e);
2062
- const S = m.nodes()[0].contentDocument;
2063
- j.filter(function(U) {
2064
- return B[U.id] !== void 0;
2065
- }).each(function(U) {
2066
- var F = S.querySelector("#" + U.id), W = S.querySelector("#" + U.id + "-text");
2067
- const G = F.parentNode;
2068
- var R = S.createElement("a");
2069
- R.setAttribute("xlink:href", B[U.id]), R.setAttribute("target", "_top"), G.appendChild(R), R.appendChild(F), R.appendChild(W);
2070
- });
2071
- }
2072
- }
2073
- function N(T, l, f, d, c, v, a, A) {
2074
- const h = v.reduce(
2075
- (F, { startTime: W }) => F ? Math.min(F, W) : W,
2076
- 0
2077
- ), j = v.reduce((F, { endTime: W }) => F ? Math.max(F, W) : W, 0), B = r.db.getDateFormat();
2078
- if (!h || !j)
2079
- return;
2080
- const $ = [];
2081
- let m = null, S = $dayjs(h);
2082
- for (; S.valueOf() <= j; )
2083
- r.db.isInvalidDate(S, B, a, A) ? m ? m.end = S : m = {
2084
- start: S,
2085
- end: S
2086
- } : m && ($.push(m), m = null), S = S.add(1, "d");
2087
- P.append("g").selectAll("rect").data($).enter().append("rect").attr("id", function(F) {
2088
- return "exclude-" + F.start.format("YYYY-MM-DD");
2089
- }).attr("x", function(F) {
2090
- return g(F.start) + f;
2091
- }).attr("y", i.gridLineStartPadding).attr("width", function(F) {
2092
- const W = F.end.add(1, "day");
2093
- return g(W) - g(F.start);
2094
- }).attr("height", c - l - i.gridLineStartPadding).attr("transform-origin", function(F, W) {
2095
- return (g(F.start) + f + 0.5 * (g(F.end) - g(F.start))).toString() + "px " + (W * T + 0.5 * c).toString() + "px";
2096
- }).attr("class", "exclude-range");
2097
- }
2098
- function V(T, l, f, d) {
2099
- let c = Rn(g).tickSize(-d + l + i.gridLineStartPadding).tickFormat(Zt(r.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d"));
2100
- const a = /^([1-9]\d*)(minute|hour|day|week|month)$/.exec(
2101
- r.db.getTickInterval() || i.tickInterval
2102
- );
2103
- if (a !== null) {
2104
- const A = a[1];
2105
- switch (a[2]) {
2106
- case "minute":
2107
- c.ticks(Ft.every(A));
2108
- break;
2109
- case "hour":
2110
- c.ticks(Lt.every(A));
2111
- break;
2112
- case "day":
2113
- c.ticks(mt.every(A));
2114
- break;
2115
- case "week":
2116
- c.ticks(wt.every(A));
2117
- break;
2118
- case "month":
2119
- c.ticks(Et.every(A));
2120
- break;
2121
- }
2122
- }
2123
- if (P.append("g").attr("class", "grid").attr("transform", "translate(" + T + ", " + (d - 50) + ")").call(c).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
2124
- let A = Pn(g).tickSize(-d + l + i.gridLineStartPadding).tickFormat(Zt(r.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d"));
2125
- if (a !== null) {
2126
- const h = a[1];
2127
- switch (a[2]) {
2128
- case "minute":
2129
- A.ticks(Ft.every(h));
2130
- break;
2131
- case "hour":
2132
- A.ticks(Lt.every(h));
2133
- break;
2134
- case "day":
2135
- A.ticks(mt.every(h));
2136
- break;
2137
- case "week":
2138
- A.ticks(wt.every(h));
2139
- break;
2140
- case "month":
2141
- A.ticks(Et.every(h));
2142
- break;
2143
- }
2144
- }
2145
- P.append("g").attr("class", "grid").attr("transform", "translate(" + T + ", " + l + ")").call(A).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2146
- }
2147
- }
2148
- function q(T, l) {
2149
- let f = 0;
2150
- const d = Object.keys(w).map((c) => [c, w[c]]);
2151
- P.append("g").selectAll("text").data(d).enter().append(function(c) {
2152
- const v = c[0].split(Sn.lineBreakRegex), a = -(v.length - 1) / 2, A = M.createElementNS("http://www.w3.org/2000/svg", "text");
2153
- A.setAttribute("dy", a + "em");
2154
- for (const [h, j] of v.entries()) {
2155
- const B = M.createElementNS("http://www.w3.org/2000/svg", "tspan");
2156
- B.setAttribute("alignment-baseline", "central"), B.setAttribute("x", "10"), h > 0 && B.setAttribute("dy", "1em"), B.textContent = j, A.appendChild(B);
2157
- }
2158
- return A;
2159
- }).attr("x", 10).attr("y", function(c, v) {
2160
- if (v > 0)
2161
- for (let a = 0; a < v; a++)
2162
- return f += d[v - 1][1], c[1] * T / 2 + f * T + l;
2163
- else
2164
- return c[1] * T / 2 + l;
2165
- }).attr("font-size", i.sectionFontSize).attr("class", function(c) {
2166
- for (const [v, a] of _.entries())
2167
- if (c[0] === a)
2168
- return "sectionTitle sectionTitle" + v % i.numberSectionStyles;
2169
- return "sectionTitle";
2170
- });
2171
- }
2172
- function x(T, l, f, d) {
2173
- const c = r.db.getTodayMarker();
2174
- if (c === "off")
2175
- return;
2176
- const v = P.append("g").attr("class", "today"), a = /* @__PURE__ */ new Date(), A = v.append("line");
2177
- A.attr("x1", g(a) + T).attr("x2", g(a) + T).attr("y1", i.titleTopMargin).attr("y2", d - i.titleTopMargin).attr("class", "today"), c !== "" && A.attr("style", c.replace(/,/g, ";"));
2178
- }
2179
- function E(T) {
2180
- const l = {}, f = [];
2181
- for (let d = 0, c = T.length; d < c; ++d)
2182
- Object.prototype.hasOwnProperty.call(l, T[d]) || (l[T[d]] = !0, f.push(T[d]));
2183
- return f;
2184
- }
2185
- }, os = {
2186
- setConf: is,
2187
- draw: as
2188
- }, cs = (t) => `
2189
- .mermaid-main-font {
2190
- font-family: "trebuchet ms", verdana, arial, sans-serif;
2191
- font-family: var(--mermaid-font-family);
2192
- }
2193
- .exclude-range {
2194
- fill: ${t.excludeBkgColor};
2195
- }
2196
-
2197
- .section {
2198
- stroke: none;
2199
- opacity: 0.2;
2200
- }
2201
-
2202
- .section0 {
2203
- fill: ${t.sectionBkgColor};
2204
- }
2205
-
2206
- .section2 {
2207
- fill: ${t.sectionBkgColor2};
2208
- }
2209
-
2210
- .section1,
2211
- .section3 {
2212
- fill: ${t.altSectionBkgColor};
2213
- opacity: 0.2;
2214
- }
2215
-
2216
- .sectionTitle0 {
2217
- fill: ${t.titleColor};
2218
- }
2219
-
2220
- .sectionTitle1 {
2221
- fill: ${t.titleColor};
2222
- }
2223
-
2224
- .sectionTitle2 {
2225
- fill: ${t.titleColor};
2226
- }
2227
-
2228
- .sectionTitle3 {
2229
- fill: ${t.titleColor};
2230
- }
2231
-
2232
- .sectionTitle {
2233
- text-anchor: start;
2234
- // font-size: ${t.ganttFontSize};
2235
- // text-height: 14px;
2236
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
2237
- font-family: var(--mermaid-font-family);
2238
-
2239
- }
2240
-
2241
-
2242
- /* Grid and axis */
2243
-
2244
- .grid .tick {
2245
- stroke: ${t.gridColor};
2246
- opacity: 0.8;
2247
- shape-rendering: crispEdges;
2248
- text {
2249
- font-family: ${t.fontFamily};
2250
- fill: ${t.textColor};
2251
- }
2252
- }
2253
-
2254
- .grid path {
2255
- stroke-width: 0;
2256
- }
2257
-
2258
-
2259
- /* Today line */
2260
-
2261
- .today {
2262
- fill: none;
2263
- stroke: ${t.todayLineColor};
2264
- stroke-width: 2px;
2265
- }
2266
-
2267
-
2268
- /* Task styling */
2269
-
2270
- /* Default task */
2271
-
2272
- .task {
2273
- stroke-width: 2;
2274
- }
2275
-
2276
- .taskText {
2277
- text-anchor: middle;
2278
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
2279
- font-family: var(--mermaid-font-family);
2280
- }
2281
-
2282
- // .taskText:not([font-size]) {
2283
- // font-size: ${t.ganttFontSize};
2284
- // }
2285
-
2286
- .taskTextOutsideRight {
2287
- fill: ${t.taskTextDarkColor};
2288
- text-anchor: start;
2289
- // font-size: ${t.ganttFontSize};
2290
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
2291
- font-family: var(--mermaid-font-family);
2292
-
2293
- }
2294
-
2295
- .taskTextOutsideLeft {
2296
- fill: ${t.taskTextDarkColor};
2297
- text-anchor: end;
2298
- // font-size: ${t.ganttFontSize};
2299
- }
2300
-
2301
- /* Special case clickable */
2302
- .task.clickable {
2303
- cursor: pointer;
2304
- }
2305
- .taskText.clickable {
2306
- cursor: pointer;
2307
- fill: ${t.taskTextClickableColor} !important;
2308
- font-weight: bold;
2309
- }
2310
-
2311
- .taskTextOutsideLeft.clickable {
2312
- cursor: pointer;
2313
- fill: ${t.taskTextClickableColor} !important;
2314
- font-weight: bold;
2315
- }
2316
-
2317
- .taskTextOutsideRight.clickable {
2318
- cursor: pointer;
2319
- fill: ${t.taskTextClickableColor} !important;
2320
- font-weight: bold;
2321
- }
2322
-
2323
- /* Specific task settings for the sections*/
2324
-
2325
- .taskText0,
2326
- .taskText1,
2327
- .taskText2,
2328
- .taskText3 {
2329
- fill: ${t.taskTextColor};
2330
- }
2331
-
2332
- .task0,
2333
- .task1,
2334
- .task2,
2335
- .task3 {
2336
- fill: ${t.taskBkgColor};
2337
- stroke: ${t.taskBorderColor};
2338
- }
2339
-
2340
- .taskTextOutside0,
2341
- .taskTextOutside2
2342
- {
2343
- fill: ${t.taskTextOutsideColor};
2344
- }
2345
-
2346
- .taskTextOutside1,
2347
- .taskTextOutside3 {
2348
- fill: ${t.taskTextOutsideColor};
2349
- }
2350
-
2351
-
2352
- /* Active task */
2353
-
2354
- .active0,
2355
- .active1,
2356
- .active2,
2357
- .active3 {
2358
- fill: ${t.activeTaskBkgColor};
2359
- stroke: ${t.activeTaskBorderColor};
2360
- }
2361
-
2362
- .activeText0,
2363
- .activeText1,
2364
- .activeText2,
2365
- .activeText3 {
2366
- fill: ${t.taskTextDarkColor} !important;
2367
- }
2368
-
2369
-
2370
- /* Completed task */
2371
-
2372
- .done0,
2373
- .done1,
2374
- .done2,
2375
- .done3 {
2376
- stroke: ${t.doneTaskBorderColor};
2377
- fill: ${t.doneTaskBkgColor};
2378
- stroke-width: 2;
2379
- }
2380
-
2381
- .doneText0,
2382
- .doneText1,
2383
- .doneText2,
2384
- .doneText3 {
2385
- fill: ${t.taskTextDarkColor} !important;
2386
- }
2387
-
2388
-
2389
- /* Tasks on the critical line */
2390
-
2391
- .crit0,
2392
- .crit1,
2393
- .crit2,
2394
- .crit3 {
2395
- stroke: ${t.critBorderColor};
2396
- fill: ${t.critBkgColor};
2397
- stroke-width: 2;
2398
- }
2399
-
2400
- .activeCrit0,
2401
- .activeCrit1,
2402
- .activeCrit2,
2403
- .activeCrit3 {
2404
- stroke: ${t.critBorderColor};
2405
- fill: ${t.activeTaskBkgColor};
2406
- stroke-width: 2;
2407
- }
2408
-
2409
- .doneCrit0,
2410
- .doneCrit1,
2411
- .doneCrit2,
2412
- .doneCrit3 {
2413
- stroke: ${t.critBorderColor};
2414
- fill: ${t.doneTaskBkgColor};
2415
- stroke-width: 2;
2416
- cursor: pointer;
2417
- shape-rendering: crispEdges;
2418
- }
2419
-
2420
- .milestone {
2421
- transform: rotate(45deg) scale(0.8,0.8);
2422
- }
2423
-
2424
- .milestoneText {
2425
- font-style: italic;
2426
- }
2427
- .doneCritText0,
2428
- .doneCritText1,
2429
- .doneCritText2,
2430
- .doneCritText3 {
2431
- fill: ${t.taskTextDarkColor} !important;
2432
- }
2433
-
2434
- .activeCritText0,
2435
- .activeCritText1,
2436
- .activeCritText2,
2437
- .activeCritText3 {
2438
- fill: ${t.taskTextDarkColor} !important;
2439
- }
2440
-
2441
- .titleText {
2442
- text-anchor: middle;
2443
- font-size: 18px;
2444
- fill: ${t.textColor} ;
2445
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
2446
- font-family: var(--mermaid-font-family);
2447
- }
2448
- `, ls = cs, ds = {
2449
- parser: wi,
2450
- db: rs,
2451
- renderer: os,
2452
- styles: ls
2453
- };
2454
- export {
2455
- ds as diagram
2456
- };