mermaid 10.2.0 → 10.2.1

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