@altimateai/ui-components 0.0.58-beta.1 → 0.0.59

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