@digipair/skill-web-chatbot 0.3.0

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 (100) hide show
  1. package/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/arc-da8fd8d8.cjs.js +88 -0
  6. package/arc-da8fd8d8.esm.js +86 -0
  7. package/array-2ff2c7a6.cjs.js +7 -0
  8. package/array-2ff2c7a6.esm.js +5 -0
  9. package/c4Diagram-1bdb45a8.cjs.js +4613 -0
  10. package/c4Diagram-1bdb45a8.esm.js +4611 -0
  11. package/classDiagram-185c1a10.cjs.js +96 -0
  12. package/classDiagram-185c1a10.esm.js +94 -0
  13. package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
  14. package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
  15. package/constant-2fe7eae5.cjs.js +58 -0
  16. package/constant-2fe7eae5.esm.js +55 -0
  17. package/createText-94e3ebbf.cjs.js +2775 -0
  18. package/createText-94e3ebbf.esm.js +2773 -0
  19. package/debug.html +18 -0
  20. package/edges-558884ee.cjs.js +1450 -0
  21. package/edges-558884ee.esm.js +1436 -0
  22. package/erDiagram-97139f44.cjs.js +1949 -0
  23. package/erDiagram-97139f44.esm.js +1947 -0
  24. package/flowDb-a4faf166.cjs.js +6918 -0
  25. package/flowDb-a4faf166.esm.js +6914 -0
  26. package/flowDiagram-ccbbb58d.cjs.js +999 -0
  27. package/flowDiagram-ccbbb58d.esm.js +997 -0
  28. package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
  29. package/flowDiagram-v2-79ccd6da.esm.js +27 -0
  30. package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
  31. package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
  32. package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
  33. package/ganttDiagram-3eff0dd8.esm.js +3853 -0
  34. package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
  35. package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
  36. package/index-d0b453e2.cjs.js +609 -0
  37. package/index-d0b453e2.esm.js +607 -0
  38. package/index.cjs.d.ts +1 -0
  39. package/index.cjs.js +17 -0
  40. package/index.cjs2.js +43619 -0
  41. package/index.d.ts +1 -0
  42. package/index.esm.js +1 -0
  43. package/index.esm2.js +43493 -0
  44. package/infoDiagram-9c10eab1.cjs.js +467 -0
  45. package/infoDiagram-9c10eab1.esm.js +465 -0
  46. package/init-f9637058.cjs.js +17 -0
  47. package/init-f9637058.esm.js +15 -0
  48. package/journeyDiagram-b6904cec.cjs.js +1292 -0
  49. package/journeyDiagram-b6904cec.esm.js +1290 -0
  50. package/layout-c5a37d74.cjs.js +2808 -0
  51. package/layout-c5a37d74.esm.js +2795 -0
  52. package/libs/engine/src/index.d.ts +2 -0
  53. package/libs/engine/src/lib/engine.d.ts +27 -0
  54. package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
  55. package/libs/skill-web-chatbot/src/index.d.ts +3 -0
  56. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
  57. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  58. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  59. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  60. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
  61. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  62. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
  63. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
  64. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
  65. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  66. package/line-ce5d1152.cjs.js +34 -0
  67. package/line-ce5d1152.esm.js +32 -0
  68. package/linear-db016d0c.cjs.js +485 -0
  69. package/linear-db016d0c.esm.js +479 -0
  70. package/mindmap-definition-a9d0f378.cjs.js +20225 -0
  71. package/mindmap-definition-a9d0f378.esm.js +20223 -0
  72. package/ordinal-5695958c.cjs.js +331 -0
  73. package/ordinal-5695958c.esm.js +329 -0
  74. package/package.json +8 -0
  75. package/pieDiagram-fd367f1f.cjs.js +1157 -0
  76. package/pieDiagram-fd367f1f.esm.js +1155 -0
  77. package/quadrantDiagram-1763608a.cjs.js +2633 -0
  78. package/quadrantDiagram-1763608a.esm.js +2631 -0
  79. package/requirementDiagram-779d93b3.cjs.js +2451 -0
  80. package/requirementDiagram-779d93b3.esm.js +2449 -0
  81. package/sankeyDiagram-86a66bae.cjs.js +1850 -0
  82. package/sankeyDiagram-86a66bae.esm.js +1848 -0
  83. package/sequenceDiagram-169f11ec.cjs.js +4805 -0
  84. package/sequenceDiagram-169f11ec.esm.js +4803 -0
  85. package/stateDiagram-6f4bb19d.cjs.js +282 -0
  86. package/stateDiagram-6f4bb19d.esm.js +280 -0
  87. package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
  88. package/stateDiagram-v2-d72c79bd.esm.js +375 -0
  89. package/styles-3814544c.cjs.js +534 -0
  90. package/styles-3814544c.esm.js +524 -0
  91. package/styles-3fb7b9cf.cjs.js +2377 -0
  92. package/styles-3fb7b9cf.esm.js +2368 -0
  93. package/styles-659d7242.cjs.js +3919 -0
  94. package/styles-659d7242.esm.js +3915 -0
  95. package/svgDraw-af99a425.cjs.js +144 -0
  96. package/svgDraw-af99a425.esm.js +141 -0
  97. package/svgDrawCommon-ebe6c236.cjs.js +70 -0
  98. package/svgDrawCommon-ebe6c236.esm.js +62 -0
  99. package/timeline-definition-65183566.cjs.js +1394 -0
  100. package/timeline-definition-65183566.esm.js +1392 -0
@@ -0,0 +1,3853 @@
1
+ import { ac as _n$1, ad as vs, ae as ft$1, af as oi$1, ag as zl, ah as jl, ai as Wl, U as Ut$1, L as La, A as Aa, c as Oa, I as Ia, E as Ea, M as Ma$1, aj as jc, d as de$1, F as Fa$1, u as us, S, a as At$1, Y as Yg, B as Bn, f as Oi$1, ak as Fs, al as wx } from './index.esm2.js';
2
+ import { Y as Yn$1, n as nn$1, w as wn$1, X as Xn, O as On } from './linear-db016d0c.esm.js';
3
+ import { t } from './init-f9637058.esm.js';
4
+
5
+ function _array_like_to_array(arr, len) {
6
+ if (len == null || len > arr.length) len = arr.length;
7
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8
+ return arr2;
9
+ }
10
+ function _array_with_holes(arr) {
11
+ if (Array.isArray(arr)) return arr;
12
+ }
13
+ function _array_without_holes(arr) {
14
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
15
+ }
16
+ function _instanceof(left, right) {
17
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
18
+ return !!right[Symbol.hasInstance](left);
19
+ } else {
20
+ return left instanceof right;
21
+ }
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _iterable_to_array_limit(arr, i) {
27
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
28
+ if (_i == null) return;
29
+ var _arr = [];
30
+ var _n = true;
31
+ var _d = false;
32
+ var _s, _e;
33
+ try {
34
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
35
+ _arr.push(_s.value);
36
+ if (i && _arr.length === i) break;
37
+ }
38
+ } catch (err) {
39
+ _d = true;
40
+ _e = err;
41
+ } finally{
42
+ try {
43
+ if (!_n && _i["return"] != null) _i["return"]();
44
+ } finally{
45
+ if (_d) throw _e;
46
+ }
47
+ }
48
+ return _arr;
49
+ }
50
+ function _non_iterable_rest() {
51
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
+ }
53
+ function _non_iterable_spread() {
54
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55
+ }
56
+ function _sliced_to_array(arr, i) {
57
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
58
+ }
59
+ function _to_consumable_array(arr) {
60
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
61
+ }
62
+ function _type_of(obj) {
63
+ "@swc/helpers - typeof";
64
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
65
+ }
66
+ function _unsupported_iterable_to_array(o, minLen) {
67
+ if (!o) return;
68
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
69
+ var n = Object.prototype.toString.call(o).slice(8, -1);
70
+ if (n === "Object" && o.constructor) n = o.constructor.name;
71
+ if (n === "Map" || n === "Set") return Array.from(n);
72
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
73
+ }
74
+ function nr(t, e) {
75
+ var n;
76
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
77
+ if (e === void 0) try {
78
+ for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
79
+ var r = _step.value;
80
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
81
+ }
82
+ } catch (err) {
83
+ _didIteratorError = true;
84
+ _iteratorError = err;
85
+ } finally{
86
+ try {
87
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
88
+ _iterator.return();
89
+ }
90
+ } finally{
91
+ if (_didIteratorError) {
92
+ throw _iteratorError;
93
+ }
94
+ }
95
+ }
96
+ else {
97
+ var r1 = -1;
98
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
99
+ try {
100
+ for(var _iterator1 = t[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
101
+ var i = _step1.value;
102
+ (i = e(i, ++r1, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
103
+ }
104
+ } catch (err) {
105
+ _didIteratorError1 = true;
106
+ _iteratorError1 = err;
107
+ } finally{
108
+ try {
109
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
110
+ _iterator1.return();
111
+ }
112
+ } finally{
113
+ if (_didIteratorError1) {
114
+ throw _iteratorError1;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ return n;
120
+ }
121
+ function rr(t, e) {
122
+ var n;
123
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
124
+ if (e === void 0) try {
125
+ for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
126
+ var r = _step.value;
127
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
128
+ }
129
+ } catch (err) {
130
+ _didIteratorError = true;
131
+ _iteratorError = err;
132
+ } finally{
133
+ try {
134
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
135
+ _iterator.return();
136
+ }
137
+ } finally{
138
+ if (_didIteratorError) {
139
+ throw _iteratorError;
140
+ }
141
+ }
142
+ }
143
+ else {
144
+ var r1 = -1;
145
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
146
+ try {
147
+ for(var _iterator1 = t[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
148
+ var i = _step1.value;
149
+ (i = e(i, ++r1, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
150
+ }
151
+ } catch (err) {
152
+ _didIteratorError1 = true;
153
+ _iteratorError1 = err;
154
+ } finally{
155
+ try {
156
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
157
+ _iterator1.return();
158
+ }
159
+ } finally{
160
+ if (_didIteratorError1) {
161
+ throw _iteratorError1;
162
+ }
163
+ }
164
+ }
165
+ }
166
+ return n;
167
+ }
168
+ function ir(t) {
169
+ return t;
170
+ }
171
+ var Rt = 1, ne = 2, de = 3, Pt = 4, Ie = 1e-6;
172
+ function ar(t) {
173
+ return "translate(" + t + ",0)";
174
+ }
175
+ function sr(t) {
176
+ return "translate(0," + t + ")";
177
+ }
178
+ function or(t) {
179
+ return function(e) {
180
+ return +t(e);
181
+ };
182
+ }
183
+ function cr(t, e) {
184
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), function(n) {
185
+ return +t(n) + e;
186
+ };
187
+ }
188
+ function ur() {
189
+ return !this.__axis;
190
+ }
191
+ function Ke(t, e) {
192
+ var n = [], r = null, i = null, s = 6, o = 6, g = 3, _ = (typeof window === "undefined" ? "undefined" : _type_of(window)) < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, y = t === Rt || t === Pt ? -1 : 1, C = t === Pt || t === ne ? "x" : "y", F = t === Rt || t === de ? ar : sr;
193
+ function w(x) {
194
+ var q = r !== null && r !== void 0 ? r : e.ticks ? e.ticks.apply(e, n) : e.domain(), d = i !== null && i !== void 0 ? i : e.tickFormat ? e.tickFormat.apply(e, n) : ir, L = Math.max(s, 0) + g, N = e.range(), z = +N[0] + _, B = +N[N.length - 1] + _, Z = (e.bandwidth ? cr : or)(e.copy(), _), j = x.selection ? x.selection() : x, b = j.selectAll(".domain").data([
195
+ null
196
+ ]), I = j.selectAll(".tick").data(q, e).order(), T = I.exit(), S = I.enter().append("g").attr("class", "tick"), M = I.select("line"), D = I.select("text");
197
+ b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(S), M = M.merge(S.append("line").attr("stroke", "currentColor").attr(C + "2", y * s)), D = D.merge(S.append("text").attr("fill", "currentColor").attr(C, y * L).attr("dy", t === Rt ? "0em" : t === de ? "0.71em" : "0.32em")), x !== j && (b = b.transition(x), I = I.transition(x), M = M.transition(x), D = D.transition(x), T = T.transition(x).attr("opacity", Ie).attr("transform", function(p) {
198
+ return isFinite(p = Z(p)) ? F(p + _) : this.getAttribute("transform");
199
+ }), S.attr("opacity", Ie).attr("transform", function(p) {
200
+ var W = this.parentNode.__axis;
201
+ return F((W && isFinite(W = W(p)) ? W : Z(p)) + _);
202
+ })), T.remove(), b.attr("d", t === Pt || t === ne ? o ? "M" + y * o + "," + z + "H" + _ + "V" + B + "H" + y * o : "M" + _ + "," + z + "V" + B : o ? "M" + z + "," + y * o + "V" + _ + "H" + B + "V" + y * o : "M" + z + "," + _ + "H" + B), I.attr("opacity", 1).attr("transform", function(p) {
203
+ return F(Z(p) + _);
204
+ }), M.attr(C + "2", y * s), D.attr(C, y * L).text(d), j.filter(ur).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === ne ? "start" : t === Pt ? "end" : "middle"), j.each(function() {
205
+ this.__axis = Z;
206
+ });
207
+ }
208
+ return w.scale = function(x) {
209
+ return arguments.length ? (e = x, w) : e;
210
+ }, w.ticks = function() {
211
+ return n = Array.from(arguments), w;
212
+ }, w.tickArguments = function(x) {
213
+ return arguments.length ? (n = x == null ? [] : Array.from(x), w) : n.slice();
214
+ }, w.tickValues = function(x) {
215
+ return arguments.length ? (r = x == null ? null : Array.from(x), w) : r && r.slice();
216
+ }, w.tickFormat = function(x) {
217
+ return arguments.length ? (i = x, w) : i;
218
+ }, w.tickSize = function(x) {
219
+ return arguments.length ? (s = o = +x, w) : s;
220
+ }, w.tickSizeInner = function(x) {
221
+ return arguments.length ? (s = +x, w) : s;
222
+ }, w.tickSizeOuter = function(x) {
223
+ return arguments.length ? (o = +x, w) : o;
224
+ }, w.tickPadding = function(x) {
225
+ return arguments.length ? (g = +x, w) : g;
226
+ }, w.offset = function(x) {
227
+ return arguments.length ? (_ = +x, w) : _;
228
+ }, w;
229
+ }
230
+ function lr(t) {
231
+ return Ke(Rt, t);
232
+ }
233
+ function fr(t) {
234
+ return Ke(de, t);
235
+ }
236
+ var hr = Math.PI / 180, dr = 180 / Math.PI, qt = 18, tn = 0.96422, en = 1, nn = 0.82521, rn = 4 / 29, wt = 6 / 29, an = 3 * wt * wt, mr = wt * wt * wt;
237
+ function sn(t) {
238
+ if (_instanceof(t, at)) return new at(t.l, t.a, t.b, t.opacity);
239
+ if (_instanceof(t, ft)) return on(t);
240
+ _instanceof(t, ft$1) || (t = jc(t));
241
+ var e = se(t.r), n = se(t.g), r = se(t.b), i = re((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / en), s, o;
242
+ return e === n && n === r ? s = o = i : (s = re((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / tn), o = re((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / nn)), new at(116 * i - 16, 500 * (s - i), 200 * (i - o), t.opacity);
243
+ }
244
+ function gr(t, e, n, r) {
245
+ return arguments.length === 1 ? sn(t) : new at(t, e, n, r !== null && r !== void 0 ? r : 1);
246
+ }
247
+ function at(t, e, n, r) {
248
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
249
+ }
250
+ _n$1(at, gr, vs(oi$1, {
251
+ brighter: function brighter(t) {
252
+ return new at(this.l + qt * (t !== null && t !== void 0 ? t : 1), this.a, this.b, this.opacity);
253
+ },
254
+ darker: function darker(t) {
255
+ return new at(this.l - qt * (t !== null && t !== void 0 ? t : 1), this.a, this.b, this.opacity);
256
+ },
257
+ rgb: function rgb() {
258
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
259
+ return e = tn * ie(e), t = en * ie(t), n = nn * ie(n), new ft$1(ae(3.1338561 * e - 1.6168667 * t - 0.4906146 * n), ae(-0.9787684 * e + 1.9161415 * t + 0.033454 * n), ae(0.0719453 * e - 0.2289914 * t + 1.4052427 * n), this.opacity);
260
+ }
261
+ }));
262
+ function re(t) {
263
+ return t > mr ? Math.pow(t, 1 / 3) : t / an + rn;
264
+ }
265
+ function ie(t) {
266
+ return t > wt ? t * t * t : an * (t - rn);
267
+ }
268
+ function ae(t) {
269
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
270
+ }
271
+ function se(t) {
272
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
273
+ }
274
+ function yr(t) {
275
+ if (_instanceof(t, ft)) return new ft(t.h, t.c, t.l, t.opacity);
276
+ if (_instanceof(t, at) || (t = sn(t)), t.a === 0 && t.b === 0) return new ft(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
277
+ var e = Math.atan2(t.b, t.a) * dr;
278
+ return new ft(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
279
+ }
280
+ function me(t, e, n, r) {
281
+ return arguments.length === 1 ? yr(t) : new ft(t, e, n, r !== null && r !== void 0 ? r : 1);
282
+ }
283
+ function ft(t, e, n, r) {
284
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
285
+ }
286
+ function on(t) {
287
+ if (isNaN(t.h)) return new at(t.l, 0, 0, t.opacity);
288
+ var e = t.h * hr;
289
+ return new at(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
290
+ }
291
+ _n$1(ft, me, vs(oi$1, {
292
+ brighter: function brighter(t) {
293
+ return new ft(this.h, this.c, this.l + qt * (t !== null && t !== void 0 ? t : 1), this.opacity);
294
+ },
295
+ darker: function darker(t) {
296
+ return new ft(this.h, this.c, this.l - qt * (t !== null && t !== void 0 ? t : 1), this.opacity);
297
+ },
298
+ rgb: function rgb() {
299
+ return on(this).rgb();
300
+ }
301
+ }));
302
+ function kr(t) {
303
+ return function(e, n) {
304
+ var r = t((e = me(e)).h, (n = me(n)).h), i = Fs(e.c, n.c), s = Fs(e.l, n.l), o = Fs(e.opacity, n.opacity);
305
+ return function(g) {
306
+ return e.h = r(g), e.c = i(g), e.l = s(g), e.opacity = o(g), e + "";
307
+ };
308
+ };
309
+ }
310
+ var pr = kr(wx);
311
+ function vr(t, e) {
312
+ t = t.slice();
313
+ var n = 0, r = t.length - 1, i = t[n], s = t[r], o;
314
+ 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;
315
+ }
316
+ var oe = /* @__PURE__ */ new Date(), ce = /* @__PURE__ */ new Date();
317
+ function et(t, e, n, r) {
318
+ function i(s) {
319
+ return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
320
+ }
321
+ return i.floor = function(s) {
322
+ return t(s = /* @__PURE__ */ new Date(+s)), s;
323
+ }, i.ceil = function(s) {
324
+ return t(s = new Date(s - 1)), e(s, 1), t(s), s;
325
+ }, i.round = function(s) {
326
+ var o = i(s), g = i.ceil(s);
327
+ return s - o < g - s ? o : g;
328
+ }, i.offset = function(s, o) {
329
+ return e(s = /* @__PURE__ */ new Date(+s), o == null ? 1 : Math.floor(o)), s;
330
+ }, i.range = function(s, o, g) {
331
+ var _ = [], y;
332
+ if (s = i.ceil(s), g = g == null ? 1 : Math.floor(g), !(s < o) || !(g > 0)) return _;
333
+ do _.push(y = new Date(+s)), e(s, g), t(s);
334
+ while (y < s && s < o);
335
+ return _;
336
+ }, i.filter = function(s) {
337
+ return et(function(o) {
338
+ if (o >= o) for(; t(o), !s(o);)o.setTime(o - 1);
339
+ }, function(o, g) {
340
+ if (o >= o) if (g < 0) for(; ++g <= 0;)for(; e(o, -1), !s(o););
341
+ else for(; --g >= 0;)for(; e(o, 1), !s(o););
342
+ });
343
+ }, n && (i.count = function(s, o) {
344
+ return oe.setTime(+s), ce.setTime(+o), t(oe), t(ce), Math.floor(n(oe, ce));
345
+ }, i.every = function(s) {
346
+ return s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? function(o) {
347
+ return r(o) % s === 0;
348
+ } : function(o) {
349
+ return i.count(0, o) % s === 0;
350
+ }) : i;
351
+ }), i;
352
+ }
353
+ var Xt = et(function() {}, function(t, e) {
354
+ t.setTime(+t + e);
355
+ }, function(t, e) {
356
+ return e - t;
357
+ });
358
+ Xt.every = function(t) {
359
+ return t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et(function(e) {
360
+ e.setTime(Math.floor(e / t) * t);
361
+ }, function(e, n) {
362
+ e.setTime(+e + n * t);
363
+ }, function(e, n) {
364
+ return (n - e) / t;
365
+ }) : Xt;
366
+ };
367
+ var Tr = Xt;
368
+ Xt.range;
369
+ var ht = 1e3, rt = ht * 60, dt = rt * 60, mt = dt * 24, be = mt * 7, We = mt * 30, ue = mt * 365;
370
+ var cn = et(function(t) {
371
+ t.setTime(t - t.getMilliseconds());
372
+ }, function(t, e) {
373
+ t.setTime(+t + e * ht);
374
+ }, function(t, e) {
375
+ return (e - t) / ht;
376
+ }, function(t) {
377
+ return t.getUTCSeconds();
378
+ });
379
+ var Lt = cn;
380
+ cn.range;
381
+ var un = et(function(t) {
382
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht);
383
+ }, function(t, e) {
384
+ t.setTime(+t + e * rt);
385
+ }, function(t, e) {
386
+ return (e - t) / rt;
387
+ }, function(t) {
388
+ return t.getMinutes();
389
+ });
390
+ var Gt = un;
391
+ un.range;
392
+ var ln = et(function(t) {
393
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht - t.getMinutes() * rt);
394
+ }, function(t, e) {
395
+ t.setTime(+t + e * dt);
396
+ }, function(t, e) {
397
+ return (e - t) / dt;
398
+ }, function(t) {
399
+ return t.getHours();
400
+ });
401
+ var jt = ln;
402
+ ln.range;
403
+ var fn = et(function(t) {
404
+ return t.setHours(0, 0, 0, 0);
405
+ }, function(t, e) {
406
+ return t.setDate(t.getDate() + e);
407
+ }, function(t, e) {
408
+ return (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * rt) / mt;
409
+ }, function(t) {
410
+ return t.getDate() - 1;
411
+ });
412
+ var Ct = fn;
413
+ fn.range;
414
+ function kt(t) {
415
+ return et(function(e) {
416
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
417
+ }, function(e, n) {
418
+ e.setDate(e.getDate() + n * 7);
419
+ }, function(e, n) {
420
+ return (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * rt) / be;
421
+ });
422
+ }
423
+ var It = kt(0), Et = kt(1), hn = kt(2), dn = kt(3), gt = kt(4), mn = kt(5), gn = kt(6);
424
+ It.range;
425
+ Et.range;
426
+ hn.range;
427
+ dn.range;
428
+ gt.range;
429
+ mn.range;
430
+ gn.range;
431
+ var yn = et(function(t) {
432
+ t.setDate(1), t.setHours(0, 0, 0, 0);
433
+ }, function(t, e) {
434
+ t.setMonth(t.getMonth() + e);
435
+ }, function(t, e) {
436
+ return e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12;
437
+ }, function(t) {
438
+ return t.getMonth();
439
+ });
440
+ var Qt = yn;
441
+ yn.range;
442
+ var xe = et(function(t) {
443
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
444
+ }, function(t, e) {
445
+ t.setFullYear(t.getFullYear() + e);
446
+ }, function(t, e) {
447
+ return e.getFullYear() - t.getFullYear();
448
+ }, function(t) {
449
+ return t.getFullYear();
450
+ });
451
+ xe.every = function(t) {
452
+ return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et(function(e) {
453
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
454
+ }, function(e, n) {
455
+ e.setFullYear(e.getFullYear() + n * t);
456
+ });
457
+ };
458
+ var yt = xe;
459
+ xe.range;
460
+ var kn = et(function(t) {
461
+ t.setUTCHours(0, 0, 0, 0);
462
+ }, function(t, e) {
463
+ t.setUTCDate(t.getUTCDate() + e);
464
+ }, function(t, e) {
465
+ return (e - t) / mt;
466
+ }, function(t) {
467
+ return t.getUTCDate() - 1;
468
+ });
469
+ var pn = kn;
470
+ kn.range;
471
+ function pt(t) {
472
+ return et(function(e) {
473
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
474
+ }, function(e, n) {
475
+ e.setUTCDate(e.getUTCDate() + n * 7);
476
+ }, function(e, n) {
477
+ return (n - e) / be;
478
+ });
479
+ }
480
+ var vn = pt(0), Jt = pt(1), br = pt(2), xr = pt(3), Mt = pt(4), wr = pt(5), Dr = pt(6);
481
+ vn.range;
482
+ Jt.range;
483
+ br.range;
484
+ xr.range;
485
+ Mt.range;
486
+ wr.range;
487
+ Dr.range;
488
+ var we = et(function(t) {
489
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
490
+ }, function(t, e) {
491
+ t.setUTCFullYear(t.getUTCFullYear() + e);
492
+ }, function(t, e) {
493
+ return e.getUTCFullYear() - t.getUTCFullYear();
494
+ }, function(t) {
495
+ return t.getUTCFullYear();
496
+ });
497
+ we.every = function(t) {
498
+ return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et(function(e) {
499
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
500
+ }, function(e, n) {
501
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
502
+ });
503
+ };
504
+ var At = we;
505
+ we.range;
506
+ function Cr(t, e, n, r, i, s) {
507
+ var o = [
508
+ [
509
+ Lt,
510
+ 1,
511
+ ht
512
+ ],
513
+ [
514
+ Lt,
515
+ 5,
516
+ 5 * ht
517
+ ],
518
+ [
519
+ Lt,
520
+ 15,
521
+ 15 * ht
522
+ ],
523
+ [
524
+ Lt,
525
+ 30,
526
+ 30 * ht
527
+ ],
528
+ [
529
+ s,
530
+ 1,
531
+ rt
532
+ ],
533
+ [
534
+ s,
535
+ 5,
536
+ 5 * rt
537
+ ],
538
+ [
539
+ s,
540
+ 15,
541
+ 15 * rt
542
+ ],
543
+ [
544
+ s,
545
+ 30,
546
+ 30 * rt
547
+ ],
548
+ [
549
+ i,
550
+ 1,
551
+ dt
552
+ ],
553
+ [
554
+ i,
555
+ 3,
556
+ 3 * dt
557
+ ],
558
+ [
559
+ i,
560
+ 6,
561
+ 6 * dt
562
+ ],
563
+ [
564
+ i,
565
+ 12,
566
+ 12 * dt
567
+ ],
568
+ [
569
+ r,
570
+ 1,
571
+ mt
572
+ ],
573
+ [
574
+ r,
575
+ 2,
576
+ 2 * mt
577
+ ],
578
+ [
579
+ n,
580
+ 1,
581
+ be
582
+ ],
583
+ [
584
+ e,
585
+ 1,
586
+ We
587
+ ],
588
+ [
589
+ e,
590
+ 3,
591
+ 3 * We
592
+ ],
593
+ [
594
+ t,
595
+ 1,
596
+ ue
597
+ ]
598
+ ];
599
+ function g(y, C, F) {
600
+ var w = C < y;
601
+ var ref;
602
+ w && (ref = [
603
+ C,
604
+ y
605
+ ], y = ref[0], C = ref[1], ref);
606
+ var x = F && typeof F.range == "function" ? F : _(y, C, F), q = x ? x.range(y, +C + 1) : [];
607
+ return w ? q.reverse() : q;
608
+ }
609
+ function _(y, C, F) {
610
+ var w = Math.abs(C - y) / F, x = nn$1(function(param) {
611
+ var _param = _sliced_to_array(param, 3), L = _param[2];
612
+ return L;
613
+ }).right(o, w);
614
+ if (x === o.length) return t.every(wn$1(y / ue, C / ue, F));
615
+ if (x === 0) return Tr.every(Math.max(wn$1(y, C, F), 1));
616
+ var _o_ = _sliced_to_array(o[w / o[x - 1][2] < o[x][2] / w ? x - 1 : x], 2), q = _o_[0], d = _o_[1];
617
+ return q.every(d);
618
+ }
619
+ return [
620
+ g,
621
+ _
622
+ ];
623
+ }
624
+ var _Cr = _sliced_to_array(Cr(yt, Qt, It, Ct, jt, Gt), 2), Mr = _Cr[0], _r = _Cr[1];
625
+ function le(t) {
626
+ if (0 <= t.y && t.y < 100) {
627
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
628
+ return e.setFullYear(t.y), e;
629
+ }
630
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
631
+ }
632
+ function fe(t) {
633
+ if (0 <= t.y && t.y < 100) {
634
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
635
+ return e.setUTCFullYear(t.y), e;
636
+ }
637
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
638
+ }
639
+ function Yt(t, e, n) {
640
+ return {
641
+ y: t,
642
+ m: e,
643
+ d: n,
644
+ H: 0,
645
+ M: 0,
646
+ S: 0,
647
+ L: 0
648
+ };
649
+ }
650
+ function Sr(t) {
651
+ var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, g = t.months, _ = t.shortMonths, y = Ft(i), C = Ut(i), F = Ft(s), w = Ut(s), x = Ft(o), q = Ut(o), d = Ft(g), L = Ut(g), N = Ft(_), z = Ut(_), B = {
652
+ a: k,
653
+ A: v,
654
+ b: m,
655
+ B: u,
656
+ c: null,
657
+ d: Pe,
658
+ e: Pe,
659
+ f: Jr,
660
+ g: oi,
661
+ G: ui,
662
+ H: Gr,
663
+ I: jr,
664
+ j: Qr,
665
+ L: Tn,
666
+ m: $r,
667
+ M: Kr,
668
+ p: a,
669
+ q: R,
670
+ Q: Ze,
671
+ s: qe,
672
+ S: ti,
673
+ u: ei,
674
+ U: ni,
675
+ V: ri,
676
+ w: ii,
677
+ W: ai,
678
+ x: null,
679
+ X: null,
680
+ y: si,
681
+ Y: ci,
682
+ Z: li,
683
+ "%": Be
684
+ }, Z = {
685
+ a: c,
686
+ A: O,
687
+ b: Q,
688
+ B: X,
689
+ c: null,
690
+ d: Re,
691
+ e: Re,
692
+ f: mi,
693
+ g: Di,
694
+ G: Mi,
695
+ H: fi,
696
+ I: hi,
697
+ j: di,
698
+ L: xn,
699
+ m: gi,
700
+ M: yi,
701
+ p: st,
702
+ q: ot,
703
+ Q: Ze,
704
+ s: qe,
705
+ S: ki,
706
+ u: pi,
707
+ U: vi,
708
+ V: Ti,
709
+ w: bi,
710
+ W: xi,
711
+ x: null,
712
+ X: null,
713
+ y: wi,
714
+ Y: Ci,
715
+ Z: _i,
716
+ "%": Be
717
+ }, j = {
718
+ a: M,
719
+ A: D,
720
+ b: p,
721
+ B: W,
722
+ c: E,
723
+ d: Ve,
724
+ e: Ve,
725
+ f: Br,
726
+ g: Ne,
727
+ G: ze,
728
+ H: He,
729
+ I: He,
730
+ j: Vr,
731
+ L: Rr,
732
+ m: Nr,
733
+ M: Hr,
734
+ p: S,
735
+ q: zr,
736
+ Q: qr,
737
+ s: Xr,
738
+ S: Pr,
739
+ u: Er,
740
+ U: Ar,
741
+ V: Ir,
742
+ w: Lr,
743
+ W: Wr,
744
+ x: U,
745
+ X: h,
746
+ y: Ne,
747
+ Y: ze,
748
+ Z: Or,
749
+ "%": Zr
750
+ };
751
+ B.x = b(n, B), B.X = b(r, B), B.c = b(e, B), Z.x = b(n, Z), Z.X = b(r, Z), Z.c = b(e, Z);
752
+ function b(f, Y) {
753
+ return function(A) {
754
+ var l = [], J = -1, V = 0, H = f.length, G, $, vt;
755
+ for(_instanceof(A, Date) || (A = /* @__PURE__ */ new Date(+A)); ++J < H;)f.charCodeAt(J) === 37 && (l.push(f.slice(V, J)), ($ = Oe[G = f.charAt(++J)]) != null ? G = f.charAt(++J) : $ = G === "e" ? " " : "0", (vt = Y[G]) && (G = vt(A, $)), l.push(G), V = J + 1);
756
+ return l.push(f.slice(V, J)), l.join("");
757
+ };
758
+ }
759
+ function I(f, Y) {
760
+ return function(A) {
761
+ var l = Yt(1900, void 0, 1), J = T(l, f, A += "", 0), V, H;
762
+ if (J != A.length) return null;
763
+ if ("Q" in l) return new Date(l.Q);
764
+ if ("s" in l) return new Date(l.s * 1e3 + ("L" in l ? l.L : 0));
765
+ if (Y && !("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) {
766
+ if (l.V < 1 || l.V > 53) return null;
767
+ "w" in l || (l.w = 1), "Z" in l ? (V = fe(Yt(l.y, 0, 1)), H = V.getUTCDay(), V = H > 4 || H === 0 ? Jt.ceil(V) : Jt(V), V = pn.offset(V, (l.V - 1) * 7), l.y = V.getUTCFullYear(), l.m = V.getUTCMonth(), l.d = V.getUTCDate() + (l.w + 6) % 7) : (V = le(Yt(l.y, 0, 1)), H = V.getDay(), V = H > 4 || H === 0 ? Et.ceil(V) : Et(V), V = Ct.offset(V, (l.V - 1) * 7), l.y = V.getFullYear(), l.m = V.getMonth(), l.d = V.getDate() + (l.w + 6) % 7);
768
+ } else ("W" in l || "U" in l) && ("w" in l || (l.w = "u" in l ? l.u % 7 : "W" in l ? 1 : 0), H = "Z" in l ? fe(Yt(l.y, 0, 1)).getUTCDay() : le(Yt(l.y, 0, 1)).getDay(), l.m = 0, l.d = "W" in l ? (l.w + 6) % 7 + l.W * 7 - (H + 5) % 7 : l.w + l.U * 7 - (H + 6) % 7);
769
+ return "Z" in l ? (l.H += l.Z / 100 | 0, l.M += l.Z % 100, fe(l)) : le(l);
770
+ };
771
+ }
772
+ function T(f, Y, A, l) {
773
+ for(var J = 0, V = Y.length, H = A.length, G, $; J < V;){
774
+ if (l >= H) return -1;
775
+ if (G = Y.charCodeAt(J++), G === 37) {
776
+ if (G = Y.charAt(J++), $ = j[G in Oe ? Y.charAt(J++) : G], !$ || (l = $(f, A, l)) < 0) return -1;
777
+ } else if (G != A.charCodeAt(l++)) return -1;
778
+ }
779
+ return l;
780
+ }
781
+ function S(f, Y, A) {
782
+ var l = y.exec(Y.slice(A));
783
+ return l ? (f.p = C.get(l[0].toLowerCase()), A + l[0].length) : -1;
784
+ }
785
+ function M(f, Y, A) {
786
+ var l = x.exec(Y.slice(A));
787
+ return l ? (f.w = q.get(l[0].toLowerCase()), A + l[0].length) : -1;
788
+ }
789
+ function D(f, Y, A) {
790
+ var l = F.exec(Y.slice(A));
791
+ return l ? (f.w = w.get(l[0].toLowerCase()), A + l[0].length) : -1;
792
+ }
793
+ function p(f, Y, A) {
794
+ var l = N.exec(Y.slice(A));
795
+ return l ? (f.m = z.get(l[0].toLowerCase()), A + l[0].length) : -1;
796
+ }
797
+ function W(f, Y, A) {
798
+ var l = d.exec(Y.slice(A));
799
+ return l ? (f.m = L.get(l[0].toLowerCase()), A + l[0].length) : -1;
800
+ }
801
+ function E(f, Y, A) {
802
+ return T(f, e, Y, A);
803
+ }
804
+ function U(f, Y, A) {
805
+ return T(f, n, Y, A);
806
+ }
807
+ function h(f, Y, A) {
808
+ return T(f, r, Y, A);
809
+ }
810
+ function k(f) {
811
+ return o[f.getDay()];
812
+ }
813
+ function v(f) {
814
+ return s[f.getDay()];
815
+ }
816
+ function m(f) {
817
+ return _[f.getMonth()];
818
+ }
819
+ function u(f) {
820
+ return g[f.getMonth()];
821
+ }
822
+ function a(f) {
823
+ return i[+(f.getHours() >= 12)];
824
+ }
825
+ function R(f) {
826
+ return 1 + ~~(f.getMonth() / 3);
827
+ }
828
+ function c(f) {
829
+ return o[f.getUTCDay()];
830
+ }
831
+ function O(f) {
832
+ return s[f.getUTCDay()];
833
+ }
834
+ function Q(f) {
835
+ return _[f.getUTCMonth()];
836
+ }
837
+ function X(f) {
838
+ return g[f.getUTCMonth()];
839
+ }
840
+ function st(f) {
841
+ return i[+(f.getUTCHours() >= 12)];
842
+ }
843
+ function ot(f) {
844
+ return 1 + ~~(f.getUTCMonth() / 3);
845
+ }
846
+ return {
847
+ format: function format(f) {
848
+ var Y = b(f += "", B);
849
+ return Y.toString = function() {
850
+ return f;
851
+ }, Y;
852
+ },
853
+ parse: function parse(f) {
854
+ var Y = I(f += "", !1);
855
+ return Y.toString = function() {
856
+ return f;
857
+ }, Y;
858
+ },
859
+ utcFormat: function utcFormat(f) {
860
+ var Y = b(f += "", Z);
861
+ return Y.toString = function() {
862
+ return f;
863
+ }, Y;
864
+ },
865
+ utcParse: function utcParse(f) {
866
+ var Y = I(f += "", !0);
867
+ return Y.toString = function() {
868
+ return f;
869
+ }, Y;
870
+ }
871
+ };
872
+ }
873
+ var Oe = {
874
+ "-": "",
875
+ _: " ",
876
+ 0: "0"
877
+ }, tt = /^\s*\d+/, Yr = /^%/, Fr = /[\\^$*+?|[\]().{}]/g;
878
+ function P(t, e, n) {
879
+ var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", s = i.length;
880
+ return r + (s < n ? new Array(n - s + 1).join(e) + i : i);
881
+ }
882
+ function Ur(t) {
883
+ return t.replace(Fr, "\\$&");
884
+ }
885
+ function Ft(t) {
886
+ return new RegExp("^(?:" + t.map(Ur).join("|") + ")", "i");
887
+ }
888
+ function Ut(t) {
889
+ return new Map(t.map(function(e, n) {
890
+ return [
891
+ e.toLowerCase(),
892
+ n
893
+ ];
894
+ }));
895
+ }
896
+ function Lr(t, e, n) {
897
+ var r = tt.exec(e.slice(n, n + 1));
898
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
899
+ }
900
+ function Er(t, e, n) {
901
+ var r = tt.exec(e.slice(n, n + 1));
902
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
903
+ }
904
+ function Ar(t, e, n) {
905
+ var r = tt.exec(e.slice(n, n + 2));
906
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
907
+ }
908
+ function Ir(t, e, n) {
909
+ var r = tt.exec(e.slice(n, n + 2));
910
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
911
+ }
912
+ function Wr(t, e, n) {
913
+ var r = tt.exec(e.slice(n, n + 2));
914
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
915
+ }
916
+ function ze(t, e, n) {
917
+ var r = tt.exec(e.slice(n, n + 4));
918
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
919
+ }
920
+ function Ne(t, e, n) {
921
+ var r = tt.exec(e.slice(n, n + 2));
922
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
923
+ }
924
+ function Or(t, e, n) {
925
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
926
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
927
+ }
928
+ function zr(t, e, n) {
929
+ var r = tt.exec(e.slice(n, n + 1));
930
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
931
+ }
932
+ function Nr(t, e, n) {
933
+ var r = tt.exec(e.slice(n, n + 2));
934
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
935
+ }
936
+ function Ve(t, e, n) {
937
+ var r = tt.exec(e.slice(n, n + 2));
938
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
939
+ }
940
+ function Vr(t, e, n) {
941
+ var r = tt.exec(e.slice(n, n + 3));
942
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
943
+ }
944
+ function He(t, e, n) {
945
+ var r = tt.exec(e.slice(n, n + 2));
946
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
947
+ }
948
+ function Hr(t, e, n) {
949
+ var r = tt.exec(e.slice(n, n + 2));
950
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
951
+ }
952
+ function Pr(t, e, n) {
953
+ var r = tt.exec(e.slice(n, n + 2));
954
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
955
+ }
956
+ function Rr(t, e, n) {
957
+ var r = tt.exec(e.slice(n, n + 3));
958
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
959
+ }
960
+ function Br(t, e, n) {
961
+ var r = tt.exec(e.slice(n, n + 6));
962
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
963
+ }
964
+ function Zr(t, e, n) {
965
+ var r = Yr.exec(e.slice(n, n + 1));
966
+ return r ? n + r[0].length : -1;
967
+ }
968
+ function qr(t, e, n) {
969
+ var r = tt.exec(e.slice(n));
970
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
971
+ }
972
+ function Xr(t, e, n) {
973
+ var r = tt.exec(e.slice(n));
974
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
975
+ }
976
+ function Pe(t, e) {
977
+ return P(t.getDate(), e, 2);
978
+ }
979
+ function Gr(t, e) {
980
+ return P(t.getHours(), e, 2);
981
+ }
982
+ function jr(t, e) {
983
+ return P(t.getHours() % 12 || 12, e, 2);
984
+ }
985
+ function Qr(t, e) {
986
+ return P(1 + Ct.count(yt(t), t), e, 3);
987
+ }
988
+ function Tn(t, e) {
989
+ return P(t.getMilliseconds(), e, 3);
990
+ }
991
+ function Jr(t, e) {
992
+ return Tn(t, e) + "000";
993
+ }
994
+ function $r(t, e) {
995
+ return P(t.getMonth() + 1, e, 2);
996
+ }
997
+ function Kr(t, e) {
998
+ return P(t.getMinutes(), e, 2);
999
+ }
1000
+ function ti(t, e) {
1001
+ return P(t.getSeconds(), e, 2);
1002
+ }
1003
+ function ei(t) {
1004
+ var e = t.getDay();
1005
+ return e === 0 ? 7 : e;
1006
+ }
1007
+ function ni(t, e) {
1008
+ return P(It.count(yt(t) - 1, t), e, 2);
1009
+ }
1010
+ function bn(t) {
1011
+ var e = t.getDay();
1012
+ return e >= 4 || e === 0 ? gt(t) : gt.ceil(t);
1013
+ }
1014
+ function ri(t, e) {
1015
+ return t = bn(t), P(gt.count(yt(t), t) + (yt(t).getDay() === 4), e, 2);
1016
+ }
1017
+ function ii(t) {
1018
+ return t.getDay();
1019
+ }
1020
+ function ai(t, e) {
1021
+ return P(Et.count(yt(t) - 1, t), e, 2);
1022
+ }
1023
+ function si(t, e) {
1024
+ return P(t.getFullYear() % 100, e, 2);
1025
+ }
1026
+ function oi(t, e) {
1027
+ return t = bn(t), P(t.getFullYear() % 100, e, 2);
1028
+ }
1029
+ function ci(t, e) {
1030
+ return P(t.getFullYear() % 1e4, e, 4);
1031
+ }
1032
+ function ui(t, e) {
1033
+ var n = t.getDay();
1034
+ return t = n >= 4 || n === 0 ? gt(t) : gt.ceil(t), P(t.getFullYear() % 1e4, e, 4);
1035
+ }
1036
+ function li(t) {
1037
+ var e = t.getTimezoneOffset();
1038
+ return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
1039
+ }
1040
+ function Re(t, e) {
1041
+ return P(t.getUTCDate(), e, 2);
1042
+ }
1043
+ function fi(t, e) {
1044
+ return P(t.getUTCHours(), e, 2);
1045
+ }
1046
+ function hi(t, e) {
1047
+ return P(t.getUTCHours() % 12 || 12, e, 2);
1048
+ }
1049
+ function di(t, e) {
1050
+ return P(1 + pn.count(At(t), t), e, 3);
1051
+ }
1052
+ function xn(t, e) {
1053
+ return P(t.getUTCMilliseconds(), e, 3);
1054
+ }
1055
+ function mi(t, e) {
1056
+ return xn(t, e) + "000";
1057
+ }
1058
+ function gi(t, e) {
1059
+ return P(t.getUTCMonth() + 1, e, 2);
1060
+ }
1061
+ function yi(t, e) {
1062
+ return P(t.getUTCMinutes(), e, 2);
1063
+ }
1064
+ function ki(t, e) {
1065
+ return P(t.getUTCSeconds(), e, 2);
1066
+ }
1067
+ function pi(t) {
1068
+ var e = t.getUTCDay();
1069
+ return e === 0 ? 7 : e;
1070
+ }
1071
+ function vi(t, e) {
1072
+ return P(vn.count(At(t) - 1, t), e, 2);
1073
+ }
1074
+ function wn(t) {
1075
+ var e = t.getUTCDay();
1076
+ return e >= 4 || e === 0 ? Mt(t) : Mt.ceil(t);
1077
+ }
1078
+ function Ti(t, e) {
1079
+ return t = wn(t), P(Mt.count(At(t), t) + (At(t).getUTCDay() === 4), e, 2);
1080
+ }
1081
+ function bi(t) {
1082
+ return t.getUTCDay();
1083
+ }
1084
+ function xi(t, e) {
1085
+ return P(Jt.count(At(t) - 1, t), e, 2);
1086
+ }
1087
+ function wi(t, e) {
1088
+ return P(t.getUTCFullYear() % 100, e, 2);
1089
+ }
1090
+ function Di(t, e) {
1091
+ return t = wn(t), P(t.getUTCFullYear() % 100, e, 2);
1092
+ }
1093
+ function Ci(t, e) {
1094
+ return P(t.getUTCFullYear() % 1e4, e, 4);
1095
+ }
1096
+ function Mi(t, e) {
1097
+ var n = t.getUTCDay();
1098
+ return t = n >= 4 || n === 0 ? Mt(t) : Mt.ceil(t), P(t.getUTCFullYear() % 1e4, e, 4);
1099
+ }
1100
+ function _i() {
1101
+ return "+0000";
1102
+ }
1103
+ function Be() {
1104
+ return "%";
1105
+ }
1106
+ function Ze(t) {
1107
+ return +t;
1108
+ }
1109
+ function qe(t) {
1110
+ return Math.floor(+t / 1e3);
1111
+ }
1112
+ var bt, $t;
1113
+ Si({
1114
+ dateTime: "%x, %X",
1115
+ date: "%-m/%-d/%Y",
1116
+ time: "%-I:%M:%S %p",
1117
+ periods: [
1118
+ "AM",
1119
+ "PM"
1120
+ ],
1121
+ days: [
1122
+ "Sunday",
1123
+ "Monday",
1124
+ "Tuesday",
1125
+ "Wednesday",
1126
+ "Thursday",
1127
+ "Friday",
1128
+ "Saturday"
1129
+ ],
1130
+ shortDays: [
1131
+ "Sun",
1132
+ "Mon",
1133
+ "Tue",
1134
+ "Wed",
1135
+ "Thu",
1136
+ "Fri",
1137
+ "Sat"
1138
+ ],
1139
+ months: [
1140
+ "January",
1141
+ "February",
1142
+ "March",
1143
+ "April",
1144
+ "May",
1145
+ "June",
1146
+ "July",
1147
+ "August",
1148
+ "September",
1149
+ "October",
1150
+ "November",
1151
+ "December"
1152
+ ],
1153
+ shortMonths: [
1154
+ "Jan",
1155
+ "Feb",
1156
+ "Mar",
1157
+ "Apr",
1158
+ "May",
1159
+ "Jun",
1160
+ "Jul",
1161
+ "Aug",
1162
+ "Sep",
1163
+ "Oct",
1164
+ "Nov",
1165
+ "Dec"
1166
+ ]
1167
+ });
1168
+ function Si(t) {
1169
+ return bt = Sr(t), $t = bt.format, bt.parse, bt.utcFormat, bt.utcParse, bt;
1170
+ }
1171
+ function Yi(t) {
1172
+ return new Date(t);
1173
+ }
1174
+ function Fi(t) {
1175
+ return _instanceof(t, Date) ? +t : +/* @__PURE__ */ new Date(+t);
1176
+ }
1177
+ function Dn(t, e, n, r, i, s, o, g, _, y) {
1178
+ var C = Xn(), F = C.invert, w = C.domain, x = y(".%L"), q = y(":%S"), d = y("%I:%M"), L = y("%I %p"), N = y("%a %d"), z = y("%b %d"), B = y("%B"), Z = y("%Y");
1179
+ function j(b) {
1180
+ return (_(b) < b ? x : g(b) < b ? q : o(b) < b ? d : s(b) < b ? L : r(b) < b ? i(b) < b ? N : z : n(b) < b ? B : Z)(b);
1181
+ }
1182
+ return C.invert = function(b) {
1183
+ return new Date(F(b));
1184
+ }, C.domain = function(b) {
1185
+ return arguments.length ? w(Array.from(b, Fi)) : w().map(Yi);
1186
+ }, C.ticks = function(b) {
1187
+ var I = w();
1188
+ return t(I[0], I[I.length - 1], b !== null && b !== void 0 ? b : 10);
1189
+ }, C.tickFormat = function(b, I) {
1190
+ return I == null ? j : y(I);
1191
+ }, C.nice = function(b) {
1192
+ var I = w();
1193
+ return (!b || typeof b.range != "function") && (b = e(I[0], I[I.length - 1], b !== null && b !== void 0 ? b : 10)), b ? w(vr(I, b)) : C;
1194
+ }, C.copy = function() {
1195
+ return On(C, Dn(t, e, n, r, i, s, o, g, _, y));
1196
+ }, C;
1197
+ }
1198
+ function Ui() {
1199
+ return t.apply(Dn(Mr, _r, yt, Qt, It, Ct, jt, Gt, Lt, $t).domain([
1200
+ new Date(2e3, 0, 1),
1201
+ new Date(2e3, 0, 2)
1202
+ ]), arguments);
1203
+ }
1204
+ var ge = function() {
1205
+ var t = function t(U, h, k, v) {
1206
+ for(k = k || {}, v = U.length; v--; k[U[v]] = h);
1207
+ return k;
1208
+ }, e = [
1209
+ 1,
1210
+ 3
1211
+ ], n = [
1212
+ 1,
1213
+ 5
1214
+ ], r = [
1215
+ 7,
1216
+ 9,
1217
+ 11,
1218
+ 13,
1219
+ 14,
1220
+ 15,
1221
+ 16,
1222
+ 17,
1223
+ 18,
1224
+ 19,
1225
+ 20,
1226
+ 21,
1227
+ 22,
1228
+ 23,
1229
+ 24,
1230
+ 25,
1231
+ 26,
1232
+ 27,
1233
+ 28,
1234
+ 29,
1235
+ 31,
1236
+ 33,
1237
+ 34,
1238
+ 36,
1239
+ 43,
1240
+ 48
1241
+ ], i = [
1242
+ 1,
1243
+ 32
1244
+ ], s = [
1245
+ 1,
1246
+ 33
1247
+ ], o = [
1248
+ 1,
1249
+ 34
1250
+ ], g = [
1251
+ 1,
1252
+ 35
1253
+ ], _ = [
1254
+ 1,
1255
+ 36
1256
+ ], y = [
1257
+ 1,
1258
+ 37
1259
+ ], C = [
1260
+ 1,
1261
+ 38
1262
+ ], F = [
1263
+ 1,
1264
+ 15
1265
+ ], w = [
1266
+ 1,
1267
+ 16
1268
+ ], x = [
1269
+ 1,
1270
+ 17
1271
+ ], q = [
1272
+ 1,
1273
+ 18
1274
+ ], d = [
1275
+ 1,
1276
+ 19
1277
+ ], L = [
1278
+ 1,
1279
+ 20
1280
+ ], N = [
1281
+ 1,
1282
+ 21
1283
+ ], z = [
1284
+ 1,
1285
+ 22
1286
+ ], B = [
1287
+ 1,
1288
+ 24
1289
+ ], Z = [
1290
+ 1,
1291
+ 25
1292
+ ], j = [
1293
+ 1,
1294
+ 26
1295
+ ], b = [
1296
+ 1,
1297
+ 27
1298
+ ], I = [
1299
+ 1,
1300
+ 28
1301
+ ], T = [
1302
+ 1,
1303
+ 30
1304
+ ], S = [
1305
+ 1,
1306
+ 39
1307
+ ], M = [
1308
+ 1,
1309
+ 42
1310
+ ], D = [
1311
+ 5,
1312
+ 7,
1313
+ 9,
1314
+ 11,
1315
+ 13,
1316
+ 14,
1317
+ 15,
1318
+ 16,
1319
+ 17,
1320
+ 18,
1321
+ 19,
1322
+ 20,
1323
+ 21,
1324
+ 22,
1325
+ 23,
1326
+ 24,
1327
+ 25,
1328
+ 26,
1329
+ 27,
1330
+ 28,
1331
+ 29,
1332
+ 31,
1333
+ 33,
1334
+ 34,
1335
+ 36,
1336
+ 43,
1337
+ 48
1338
+ ], p = {
1339
+ trace: function trace() {},
1340
+ yy: {},
1341
+ symbols_: {
1342
+ error: 2,
1343
+ start: 3,
1344
+ directive: 4,
1345
+ gantt: 5,
1346
+ document: 6,
1347
+ EOF: 7,
1348
+ line: 8,
1349
+ SPACE: 9,
1350
+ statement: 10,
1351
+ NL: 11,
1352
+ weekday: 12,
1353
+ weekday_monday: 13,
1354
+ weekday_tuesday: 14,
1355
+ weekday_wednesday: 15,
1356
+ weekday_thursday: 16,
1357
+ weekday_friday: 17,
1358
+ weekday_saturday: 18,
1359
+ weekday_sunday: 19,
1360
+ dateFormat: 20,
1361
+ inclusiveEndDates: 21,
1362
+ topAxis: 22,
1363
+ axisFormat: 23,
1364
+ tickInterval: 24,
1365
+ excludes: 25,
1366
+ includes: 26,
1367
+ todayMarker: 27,
1368
+ title: 28,
1369
+ acc_title: 29,
1370
+ acc_title_value: 30,
1371
+ acc_descr: 31,
1372
+ acc_descr_value: 32,
1373
+ acc_descr_multiline_value: 33,
1374
+ section: 34,
1375
+ clickStatement: 35,
1376
+ taskTxt: 36,
1377
+ taskData: 37,
1378
+ openDirective: 38,
1379
+ typeDirective: 39,
1380
+ closeDirective: 40,
1381
+ ":": 41,
1382
+ argDirective: 42,
1383
+ click: 43,
1384
+ callbackname: 44,
1385
+ callbackargs: 45,
1386
+ href: 46,
1387
+ clickStatementDebug: 47,
1388
+ open_directive: 48,
1389
+ type_directive: 49,
1390
+ arg_directive: 50,
1391
+ close_directive: 51,
1392
+ $accept: 0,
1393
+ $end: 1
1394
+ },
1395
+ terminals_: {
1396
+ 2: "error",
1397
+ 5: "gantt",
1398
+ 7: "EOF",
1399
+ 9: "SPACE",
1400
+ 11: "NL",
1401
+ 13: "weekday_monday",
1402
+ 14: "weekday_tuesday",
1403
+ 15: "weekday_wednesday",
1404
+ 16: "weekday_thursday",
1405
+ 17: "weekday_friday",
1406
+ 18: "weekday_saturday",
1407
+ 19: "weekday_sunday",
1408
+ 20: "dateFormat",
1409
+ 21: "inclusiveEndDates",
1410
+ 22: "topAxis",
1411
+ 23: "axisFormat",
1412
+ 24: "tickInterval",
1413
+ 25: "excludes",
1414
+ 26: "includes",
1415
+ 27: "todayMarker",
1416
+ 28: "title",
1417
+ 29: "acc_title",
1418
+ 30: "acc_title_value",
1419
+ 31: "acc_descr",
1420
+ 32: "acc_descr_value",
1421
+ 33: "acc_descr_multiline_value",
1422
+ 34: "section",
1423
+ 36: "taskTxt",
1424
+ 37: "taskData",
1425
+ 41: ":",
1426
+ 43: "click",
1427
+ 44: "callbackname",
1428
+ 45: "callbackargs",
1429
+ 46: "href",
1430
+ 48: "open_directive",
1431
+ 49: "type_directive",
1432
+ 50: "arg_directive",
1433
+ 51: "close_directive"
1434
+ },
1435
+ productions_: [
1436
+ 0,
1437
+ [
1438
+ 3,
1439
+ 2
1440
+ ],
1441
+ [
1442
+ 3,
1443
+ 3
1444
+ ],
1445
+ [
1446
+ 6,
1447
+ 0
1448
+ ],
1449
+ [
1450
+ 6,
1451
+ 2
1452
+ ],
1453
+ [
1454
+ 8,
1455
+ 2
1456
+ ],
1457
+ [
1458
+ 8,
1459
+ 1
1460
+ ],
1461
+ [
1462
+ 8,
1463
+ 1
1464
+ ],
1465
+ [
1466
+ 8,
1467
+ 1
1468
+ ],
1469
+ [
1470
+ 12,
1471
+ 1
1472
+ ],
1473
+ [
1474
+ 12,
1475
+ 1
1476
+ ],
1477
+ [
1478
+ 12,
1479
+ 1
1480
+ ],
1481
+ [
1482
+ 12,
1483
+ 1
1484
+ ],
1485
+ [
1486
+ 12,
1487
+ 1
1488
+ ],
1489
+ [
1490
+ 12,
1491
+ 1
1492
+ ],
1493
+ [
1494
+ 12,
1495
+ 1
1496
+ ],
1497
+ [
1498
+ 10,
1499
+ 1
1500
+ ],
1501
+ [
1502
+ 10,
1503
+ 1
1504
+ ],
1505
+ [
1506
+ 10,
1507
+ 1
1508
+ ],
1509
+ [
1510
+ 10,
1511
+ 1
1512
+ ],
1513
+ [
1514
+ 10,
1515
+ 1
1516
+ ],
1517
+ [
1518
+ 10,
1519
+ 1
1520
+ ],
1521
+ [
1522
+ 10,
1523
+ 1
1524
+ ],
1525
+ [
1526
+ 10,
1527
+ 1
1528
+ ],
1529
+ [
1530
+ 10,
1531
+ 1
1532
+ ],
1533
+ [
1534
+ 10,
1535
+ 1
1536
+ ],
1537
+ [
1538
+ 10,
1539
+ 2
1540
+ ],
1541
+ [
1542
+ 10,
1543
+ 2
1544
+ ],
1545
+ [
1546
+ 10,
1547
+ 1
1548
+ ],
1549
+ [
1550
+ 10,
1551
+ 1
1552
+ ],
1553
+ [
1554
+ 10,
1555
+ 1
1556
+ ],
1557
+ [
1558
+ 10,
1559
+ 2
1560
+ ],
1561
+ [
1562
+ 10,
1563
+ 1
1564
+ ],
1565
+ [
1566
+ 4,
1567
+ 4
1568
+ ],
1569
+ [
1570
+ 4,
1571
+ 6
1572
+ ],
1573
+ [
1574
+ 35,
1575
+ 2
1576
+ ],
1577
+ [
1578
+ 35,
1579
+ 3
1580
+ ],
1581
+ [
1582
+ 35,
1583
+ 3
1584
+ ],
1585
+ [
1586
+ 35,
1587
+ 4
1588
+ ],
1589
+ [
1590
+ 35,
1591
+ 3
1592
+ ],
1593
+ [
1594
+ 35,
1595
+ 4
1596
+ ],
1597
+ [
1598
+ 35,
1599
+ 2
1600
+ ],
1601
+ [
1602
+ 47,
1603
+ 2
1604
+ ],
1605
+ [
1606
+ 47,
1607
+ 3
1608
+ ],
1609
+ [
1610
+ 47,
1611
+ 3
1612
+ ],
1613
+ [
1614
+ 47,
1615
+ 4
1616
+ ],
1617
+ [
1618
+ 47,
1619
+ 3
1620
+ ],
1621
+ [
1622
+ 47,
1623
+ 4
1624
+ ],
1625
+ [
1626
+ 47,
1627
+ 2
1628
+ ],
1629
+ [
1630
+ 38,
1631
+ 1
1632
+ ],
1633
+ [
1634
+ 39,
1635
+ 1
1636
+ ],
1637
+ [
1638
+ 42,
1639
+ 1
1640
+ ],
1641
+ [
1642
+ 40,
1643
+ 1
1644
+ ]
1645
+ ],
1646
+ performAction: function performAction(h, k, v, m, u, a, R) {
1647
+ var c = a.length - 1;
1648
+ switch(u){
1649
+ case 2:
1650
+ return a[c - 1];
1651
+ case 3:
1652
+ this.$ = [];
1653
+ break;
1654
+ case 4:
1655
+ a[c - 1].push(a[c]), this.$ = a[c - 1];
1656
+ break;
1657
+ case 5:
1658
+ case 6:
1659
+ this.$ = a[c];
1660
+ break;
1661
+ case 7:
1662
+ case 8:
1663
+ this.$ = [];
1664
+ break;
1665
+ case 9:
1666
+ m.setWeekday("monday");
1667
+ break;
1668
+ case 10:
1669
+ m.setWeekday("tuesday");
1670
+ break;
1671
+ case 11:
1672
+ m.setWeekday("wednesday");
1673
+ break;
1674
+ case 12:
1675
+ m.setWeekday("thursday");
1676
+ break;
1677
+ case 13:
1678
+ m.setWeekday("friday");
1679
+ break;
1680
+ case 14:
1681
+ m.setWeekday("saturday");
1682
+ break;
1683
+ case 15:
1684
+ m.setWeekday("sunday");
1685
+ break;
1686
+ case 16:
1687
+ m.setDateFormat(a[c].substr(11)), this.$ = a[c].substr(11);
1688
+ break;
1689
+ case 17:
1690
+ m.enableInclusiveEndDates(), this.$ = a[c].substr(18);
1691
+ break;
1692
+ case 18:
1693
+ m.TopAxis(), this.$ = a[c].substr(8);
1694
+ break;
1695
+ case 19:
1696
+ m.setAxisFormat(a[c].substr(11)), this.$ = a[c].substr(11);
1697
+ break;
1698
+ case 20:
1699
+ m.setTickInterval(a[c].substr(13)), this.$ = a[c].substr(13);
1700
+ break;
1701
+ case 21:
1702
+ m.setExcludes(a[c].substr(9)), this.$ = a[c].substr(9);
1703
+ break;
1704
+ case 22:
1705
+ m.setIncludes(a[c].substr(9)), this.$ = a[c].substr(9);
1706
+ break;
1707
+ case 23:
1708
+ m.setTodayMarker(a[c].substr(12)), this.$ = a[c].substr(12);
1709
+ break;
1710
+ case 25:
1711
+ m.setDiagramTitle(a[c].substr(6)), this.$ = a[c].substr(6);
1712
+ break;
1713
+ case 26:
1714
+ this.$ = a[c].trim(), m.setAccTitle(this.$);
1715
+ break;
1716
+ case 27:
1717
+ case 28:
1718
+ this.$ = a[c].trim(), m.setAccDescription(this.$);
1719
+ break;
1720
+ case 29:
1721
+ m.addSection(a[c].substr(8)), this.$ = a[c].substr(8);
1722
+ break;
1723
+ case 31:
1724
+ m.addTask(a[c - 1], a[c]), this.$ = "task";
1725
+ break;
1726
+ case 35:
1727
+ this.$ = a[c - 1], m.setClickEvent(a[c - 1], a[c], null);
1728
+ break;
1729
+ case 36:
1730
+ this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c - 1], a[c]);
1731
+ break;
1732
+ case 37:
1733
+ this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c - 1], null), m.setLink(a[c - 2], a[c]);
1734
+ break;
1735
+ case 38:
1736
+ this.$ = a[c - 3], m.setClickEvent(a[c - 3], a[c - 2], a[c - 1]), m.setLink(a[c - 3], a[c]);
1737
+ break;
1738
+ case 39:
1739
+ this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c], null), m.setLink(a[c - 2], a[c - 1]);
1740
+ break;
1741
+ case 40:
1742
+ this.$ = a[c - 3], m.setClickEvent(a[c - 3], a[c - 1], a[c]), m.setLink(a[c - 3], a[c - 2]);
1743
+ break;
1744
+ case 41:
1745
+ this.$ = a[c - 1], m.setLink(a[c - 1], a[c]);
1746
+ break;
1747
+ case 42:
1748
+ case 48:
1749
+ this.$ = a[c - 1] + " " + a[c];
1750
+ break;
1751
+ case 43:
1752
+ case 44:
1753
+ case 46:
1754
+ this.$ = a[c - 2] + " " + a[c - 1] + " " + a[c];
1755
+ break;
1756
+ case 45:
1757
+ case 47:
1758
+ this.$ = a[c - 3] + " " + a[c - 2] + " " + a[c - 1] + " " + a[c];
1759
+ break;
1760
+ case 49:
1761
+ m.parseDirective("%%{", "open_directive");
1762
+ break;
1763
+ case 50:
1764
+ m.parseDirective(a[c], "type_directive");
1765
+ break;
1766
+ case 51:
1767
+ a[c] = a[c].trim().replace(/'/g, '"'), m.parseDirective(a[c], "arg_directive");
1768
+ break;
1769
+ case 52:
1770
+ m.parseDirective("}%%", "close_directive", "gantt");
1771
+ break;
1772
+ }
1773
+ },
1774
+ table: [
1775
+ {
1776
+ 3: 1,
1777
+ 4: 2,
1778
+ 5: e,
1779
+ 38: 4,
1780
+ 48: n
1781
+ },
1782
+ {
1783
+ 1: [
1784
+ 3
1785
+ ]
1786
+ },
1787
+ {
1788
+ 3: 6,
1789
+ 4: 2,
1790
+ 5: e,
1791
+ 38: 4,
1792
+ 48: n
1793
+ },
1794
+ t(r, [
1795
+ 2,
1796
+ 3
1797
+ ], {
1798
+ 6: 7
1799
+ }),
1800
+ {
1801
+ 39: 8,
1802
+ 49: [
1803
+ 1,
1804
+ 9
1805
+ ]
1806
+ },
1807
+ {
1808
+ 49: [
1809
+ 2,
1810
+ 49
1811
+ ]
1812
+ },
1813
+ {
1814
+ 1: [
1815
+ 2,
1816
+ 1
1817
+ ]
1818
+ },
1819
+ {
1820
+ 4: 31,
1821
+ 7: [
1822
+ 1,
1823
+ 10
1824
+ ],
1825
+ 8: 11,
1826
+ 9: [
1827
+ 1,
1828
+ 12
1829
+ ],
1830
+ 10: 13,
1831
+ 11: [
1832
+ 1,
1833
+ 14
1834
+ ],
1835
+ 12: 23,
1836
+ 13: i,
1837
+ 14: s,
1838
+ 15: o,
1839
+ 16: g,
1840
+ 17: _,
1841
+ 18: y,
1842
+ 19: C,
1843
+ 20: F,
1844
+ 21: w,
1845
+ 22: x,
1846
+ 23: q,
1847
+ 24: d,
1848
+ 25: L,
1849
+ 26: N,
1850
+ 27: z,
1851
+ 28: B,
1852
+ 29: Z,
1853
+ 31: j,
1854
+ 33: b,
1855
+ 34: I,
1856
+ 35: 29,
1857
+ 36: T,
1858
+ 38: 4,
1859
+ 43: S,
1860
+ 48: n
1861
+ },
1862
+ {
1863
+ 40: 40,
1864
+ 41: [
1865
+ 1,
1866
+ 41
1867
+ ],
1868
+ 51: M
1869
+ },
1870
+ t([
1871
+ 41,
1872
+ 51
1873
+ ], [
1874
+ 2,
1875
+ 50
1876
+ ]),
1877
+ t(r, [
1878
+ 2,
1879
+ 8
1880
+ ], {
1881
+ 1: [
1882
+ 2,
1883
+ 2
1884
+ ]
1885
+ }),
1886
+ t(r, [
1887
+ 2,
1888
+ 4
1889
+ ]),
1890
+ {
1891
+ 4: 31,
1892
+ 10: 43,
1893
+ 12: 23,
1894
+ 13: i,
1895
+ 14: s,
1896
+ 15: o,
1897
+ 16: g,
1898
+ 17: _,
1899
+ 18: y,
1900
+ 19: C,
1901
+ 20: F,
1902
+ 21: w,
1903
+ 22: x,
1904
+ 23: q,
1905
+ 24: d,
1906
+ 25: L,
1907
+ 26: N,
1908
+ 27: z,
1909
+ 28: B,
1910
+ 29: Z,
1911
+ 31: j,
1912
+ 33: b,
1913
+ 34: I,
1914
+ 35: 29,
1915
+ 36: T,
1916
+ 38: 4,
1917
+ 43: S,
1918
+ 48: n
1919
+ },
1920
+ t(r, [
1921
+ 2,
1922
+ 6
1923
+ ]),
1924
+ t(r, [
1925
+ 2,
1926
+ 7
1927
+ ]),
1928
+ t(r, [
1929
+ 2,
1930
+ 16
1931
+ ]),
1932
+ t(r, [
1933
+ 2,
1934
+ 17
1935
+ ]),
1936
+ t(r, [
1937
+ 2,
1938
+ 18
1939
+ ]),
1940
+ t(r, [
1941
+ 2,
1942
+ 19
1943
+ ]),
1944
+ t(r, [
1945
+ 2,
1946
+ 20
1947
+ ]),
1948
+ t(r, [
1949
+ 2,
1950
+ 21
1951
+ ]),
1952
+ t(r, [
1953
+ 2,
1954
+ 22
1955
+ ]),
1956
+ t(r, [
1957
+ 2,
1958
+ 23
1959
+ ]),
1960
+ t(r, [
1961
+ 2,
1962
+ 24
1963
+ ]),
1964
+ t(r, [
1965
+ 2,
1966
+ 25
1967
+ ]),
1968
+ {
1969
+ 30: [
1970
+ 1,
1971
+ 44
1972
+ ]
1973
+ },
1974
+ {
1975
+ 32: [
1976
+ 1,
1977
+ 45
1978
+ ]
1979
+ },
1980
+ t(r, [
1981
+ 2,
1982
+ 28
1983
+ ]),
1984
+ t(r, [
1985
+ 2,
1986
+ 29
1987
+ ]),
1988
+ t(r, [
1989
+ 2,
1990
+ 30
1991
+ ]),
1992
+ {
1993
+ 37: [
1994
+ 1,
1995
+ 46
1996
+ ]
1997
+ },
1998
+ t(r, [
1999
+ 2,
2000
+ 32
2001
+ ]),
2002
+ t(r, [
2003
+ 2,
2004
+ 9
2005
+ ]),
2006
+ t(r, [
2007
+ 2,
2008
+ 10
2009
+ ]),
2010
+ t(r, [
2011
+ 2,
2012
+ 11
2013
+ ]),
2014
+ t(r, [
2015
+ 2,
2016
+ 12
2017
+ ]),
2018
+ t(r, [
2019
+ 2,
2020
+ 13
2021
+ ]),
2022
+ t(r, [
2023
+ 2,
2024
+ 14
2025
+ ]),
2026
+ t(r, [
2027
+ 2,
2028
+ 15
2029
+ ]),
2030
+ {
2031
+ 44: [
2032
+ 1,
2033
+ 47
2034
+ ],
2035
+ 46: [
2036
+ 1,
2037
+ 48
2038
+ ]
2039
+ },
2040
+ {
2041
+ 11: [
2042
+ 1,
2043
+ 49
2044
+ ]
2045
+ },
2046
+ {
2047
+ 42: 50,
2048
+ 50: [
2049
+ 1,
2050
+ 51
2051
+ ]
2052
+ },
2053
+ {
2054
+ 11: [
2055
+ 2,
2056
+ 52
2057
+ ]
2058
+ },
2059
+ t(r, [
2060
+ 2,
2061
+ 5
2062
+ ]),
2063
+ t(r, [
2064
+ 2,
2065
+ 26
2066
+ ]),
2067
+ t(r, [
2068
+ 2,
2069
+ 27
2070
+ ]),
2071
+ t(r, [
2072
+ 2,
2073
+ 31
2074
+ ]),
2075
+ t(r, [
2076
+ 2,
2077
+ 35
2078
+ ], {
2079
+ 45: [
2080
+ 1,
2081
+ 52
2082
+ ],
2083
+ 46: [
2084
+ 1,
2085
+ 53
2086
+ ]
2087
+ }),
2088
+ t(r, [
2089
+ 2,
2090
+ 41
2091
+ ], {
2092
+ 44: [
2093
+ 1,
2094
+ 54
2095
+ ]
2096
+ }),
2097
+ t(D, [
2098
+ 2,
2099
+ 33
2100
+ ]),
2101
+ {
2102
+ 40: 55,
2103
+ 51: M
2104
+ },
2105
+ {
2106
+ 51: [
2107
+ 2,
2108
+ 51
2109
+ ]
2110
+ },
2111
+ t(r, [
2112
+ 2,
2113
+ 36
2114
+ ], {
2115
+ 46: [
2116
+ 1,
2117
+ 56
2118
+ ]
2119
+ }),
2120
+ t(r, [
2121
+ 2,
2122
+ 37
2123
+ ]),
2124
+ t(r, [
2125
+ 2,
2126
+ 39
2127
+ ], {
2128
+ 45: [
2129
+ 1,
2130
+ 57
2131
+ ]
2132
+ }),
2133
+ {
2134
+ 11: [
2135
+ 1,
2136
+ 58
2137
+ ]
2138
+ },
2139
+ t(r, [
2140
+ 2,
2141
+ 38
2142
+ ]),
2143
+ t(r, [
2144
+ 2,
2145
+ 40
2146
+ ]),
2147
+ t(D, [
2148
+ 2,
2149
+ 34
2150
+ ])
2151
+ ],
2152
+ defaultActions: {
2153
+ 5: [
2154
+ 2,
2155
+ 49
2156
+ ],
2157
+ 6: [
2158
+ 2,
2159
+ 1
2160
+ ],
2161
+ 42: [
2162
+ 2,
2163
+ 52
2164
+ ],
2165
+ 51: [
2166
+ 2,
2167
+ 51
2168
+ ]
2169
+ },
2170
+ parseError: function parseError(h, k) {
2171
+ if (k.recoverable) this.trace(h);
2172
+ else {
2173
+ var v = new Error(h);
2174
+ throw v.hash = k, v;
2175
+ }
2176
+ },
2177
+ parse: function parse(h) {
2178
+ var k = this, v = [
2179
+ 0
2180
+ ], m = [], u = [
2181
+ null
2182
+ ], a = [], R = this.table, c = "", O = 0, Q = 0, X = 2, st = 1, ot = a.slice.call(arguments, 1), f = Object.create(this.lexer), Y = {
2183
+ yy: {}
2184
+ };
2185
+ for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy, A) && (Y.yy[A] = this.yy[A]);
2186
+ f.setInput(h, Y.yy), Y.yy.lexer = f, Y.yy.parser = this, _type_of(f.yylloc) > "u" && (f.yylloc = {});
2187
+ var l = f.yylloc;
2188
+ a.push(l);
2189
+ var J = f.options && f.options.ranges;
2190
+ typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
2191
+ function V() {
2192
+ var ut;
2193
+ return ut = m.pop() || f.lex() || st, typeof ut != "number" && (_instanceof(ut, Array) && (m = ut, ut = m.pop()), ut = k.symbols_[ut] || ut), ut;
2194
+ }
2195
+ for(var H, G, $, vt, Tt = {}, Nt, ct, Ee, Vt;;){
2196
+ if (G = v[v.length - 1], this.defaultActions[G] ? $ = this.defaultActions[G] : ((H === null || (typeof H === "undefined" ? "undefined" : _type_of(H)) > "u") && (H = V()), $ = R[G] && R[G][H]), (typeof $ === "undefined" ? "undefined" : _type_of($)) > "u" || !$.length || !$[0]) {
2197
+ var te = "";
2198
+ Vt = [];
2199
+ for(Nt in R[G])this.terminals_[Nt] && Nt > X && Vt.push("'" + this.terminals_[Nt] + "'");
2200
+ f.showPosition ? te = "Parse error on line " + (O + 1) + ":\n" + f.showPosition() + "\nExpecting " + Vt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : te = "Parse error on line " + (O + 1) + ": Unexpected " + (H == st ? "end of input" : "'" + (this.terminals_[H] || H) + "'"), this.parseError(te, {
2201
+ text: f.match,
2202
+ token: this.terminals_[H] || H,
2203
+ line: f.yylineno,
2204
+ loc: l,
2205
+ expected: Vt
2206
+ });
2207
+ }
2208
+ if (_instanceof($[0], Array) && $.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + H);
2209
+ switch($[0]){
2210
+ case 1:
2211
+ v.push(H), u.push(f.yytext), a.push(f.yylloc), v.push($[1]), H = null, Q = f.yyleng, c = f.yytext, O = f.yylineno, l = f.yylloc;
2212
+ break;
2213
+ case 2:
2214
+ if (ct = this.productions_[$[1]][1], Tt.$ = u[u.length - ct], Tt._$ = {
2215
+ first_line: a[a.length - (ct || 1)].first_line,
2216
+ last_line: a[a.length - 1].last_line,
2217
+ first_column: a[a.length - (ct || 1)].first_column,
2218
+ last_column: a[a.length - 1].last_column
2219
+ }, J && (Tt._$.range = [
2220
+ a[a.length - (ct || 1)].range[0],
2221
+ a[a.length - 1].range[1]
2222
+ ]), vt = this.performAction.apply(Tt, [
2223
+ c,
2224
+ Q,
2225
+ O,
2226
+ Y.yy,
2227
+ $[1],
2228
+ u,
2229
+ a
2230
+ ].concat(ot)), (typeof vt === "undefined" ? "undefined" : _type_of(vt)) < "u") return vt;
2231
+ ct && (v = v.slice(0, -1 * ct * 2), u = u.slice(0, -1 * ct), a = a.slice(0, -1 * ct)), v.push(this.productions_[$[1]][0]), u.push(Tt.$), a.push(Tt._$), Ee = R[v[v.length - 2]][v[v.length - 1]], v.push(Ee);
2232
+ break;
2233
+ case 3:
2234
+ return !0;
2235
+ }
2236
+ }
2237
+ return !0;
2238
+ }
2239
+ }, W = function() {
2240
+ var U = {
2241
+ EOF: 1,
2242
+ parseError: function parseError(k, v) {
2243
+ if (this.yy.parser) this.yy.parser.parseError(k, v);
2244
+ else throw new Error(k);
2245
+ },
2246
+ // resets the lexer, sets new input
2247
+ setInput: function setInput(h, k) {
2248
+ return this.yy = k || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
2249
+ "INITIAL"
2250
+ ], this.yylloc = {
2251
+ first_line: 1,
2252
+ first_column: 0,
2253
+ last_line: 1,
2254
+ last_column: 0
2255
+ }, this.options.ranges && (this.yylloc.range = [
2256
+ 0,
2257
+ 0
2258
+ ]), this.offset = 0, this;
2259
+ },
2260
+ // consumes and returns one char from the input
2261
+ input: function input() {
2262
+ var h = this._input[0];
2263
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
2264
+ var k = h.match(/(?:\r\n?|\n).*/g);
2265
+ return k ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
2266
+ },
2267
+ // unshifts one char (or a string) into the input
2268
+ unput: function unput(h) {
2269
+ var k = h.length, v = h.split(/(?:\r\n?|\n)/g);
2270
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - k), this.offset -= k;
2271
+ var m = this.match.split(/(?:\r\n?|\n)/g);
2272
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), v.length - 1 && (this.yylineno -= v.length - 1);
2273
+ var u = this.yylloc.range;
2274
+ return this.yylloc = {
2275
+ first_line: this.yylloc.first_line,
2276
+ last_line: this.yylineno + 1,
2277
+ first_column: this.yylloc.first_column,
2278
+ last_column: v ? (v.length === m.length ? this.yylloc.first_column : 0) + m[m.length - v.length].length - v[0].length : this.yylloc.first_column - k
2279
+ }, this.options.ranges && (this.yylloc.range = [
2280
+ u[0],
2281
+ u[0] + this.yyleng - k
2282
+ ]), this.yyleng = this.yytext.length, this;
2283
+ },
2284
+ // When called from action, caches matched text and appends it on next action
2285
+ more: function more() {
2286
+ return this._more = !0, this;
2287
+ },
2288
+ // 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.
2289
+ reject: function reject() {
2290
+ if (this.options.backtrack_lexer) this._backtrack = !0;
2291
+ else 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).\n" + this.showPosition(), {
2292
+ text: "",
2293
+ token: null,
2294
+ line: this.yylineno
2295
+ });
2296
+ return this;
2297
+ },
2298
+ // retain first n characters of the match
2299
+ less: function less(h) {
2300
+ this.unput(this.match.slice(h));
2301
+ },
2302
+ // displays already matched input, i.e. for error messages
2303
+ pastInput: function pastInput() {
2304
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
2305
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
2306
+ },
2307
+ // displays upcoming input, i.e. for error messages
2308
+ upcomingInput: function upcomingInput() {
2309
+ var h = this.match;
2310
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
2311
+ },
2312
+ // displays the character position where the lexing error occurred, i.e. for error messages
2313
+ showPosition: function showPosition() {
2314
+ var h = this.pastInput(), k = new Array(h.length + 1).join("-");
2315
+ return h + this.upcomingInput() + "\n" + k + "^";
2316
+ },
2317
+ // test the lexed token: return FALSE when not a match, otherwise return token
2318
+ test_match: function test_match(h, k) {
2319
+ var v, m, u;
2320
+ if (this.options.backtrack_lexer && (u = {
2321
+ yylineno: this.yylineno,
2322
+ yylloc: {
2323
+ first_line: this.yylloc.first_line,
2324
+ last_line: this.last_line,
2325
+ first_column: this.yylloc.first_column,
2326
+ last_column: this.yylloc.last_column
2327
+ },
2328
+ yytext: this.yytext,
2329
+ match: this.match,
2330
+ matches: this.matches,
2331
+ matched: this.matched,
2332
+ yyleng: this.yyleng,
2333
+ offset: this.offset,
2334
+ _more: this._more,
2335
+ _input: this._input,
2336
+ yy: this.yy,
2337
+ conditionStack: this.conditionStack.slice(0),
2338
+ done: this.done
2339
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), m = h[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
2340
+ first_line: this.yylloc.last_line,
2341
+ last_line: this.yylineno + 1,
2342
+ first_column: this.yylloc.last_column,
2343
+ last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
2344
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
2345
+ this.offset,
2346
+ this.offset += this.yyleng
2347
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(h[0].length), this.matched += h[0], v = this.performAction.call(this, this.yy, this, k, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), v) return v;
2348
+ if (this._backtrack) {
2349
+ for(var a in u)this[a] = u[a];
2350
+ return !1;
2351
+ }
2352
+ return !1;
2353
+ },
2354
+ // return next match in input
2355
+ next: function next() {
2356
+ if (this.done) return this.EOF;
2357
+ this._input || (this.done = !0);
2358
+ var h, k, v, m;
2359
+ this._more || (this.yytext = "", this.match = "");
2360
+ for(var u = this._currentRules(), a = 0; a < u.length; a++)if (v = this._input.match(this.rules[u[a]]), v && (!k || v[0].length > k[0].length)) {
2361
+ if (k = v, m = a, this.options.backtrack_lexer) {
2362
+ if (h = this.test_match(v, u[a]), h !== !1) return h;
2363
+ if (this._backtrack) {
2364
+ k = !1;
2365
+ continue;
2366
+ } else return !1;
2367
+ } else if (!this.options.flex) break;
2368
+ }
2369
+ return k ? (h = this.test_match(k, u[m]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2370
+ text: "",
2371
+ token: null,
2372
+ line: this.yylineno
2373
+ });
2374
+ },
2375
+ // return next match that has a token
2376
+ lex: function lex() {
2377
+ var k = this.next();
2378
+ return k || this.lex();
2379
+ },
2380
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
2381
+ begin: function begin(k) {
2382
+ this.conditionStack.push(k);
2383
+ },
2384
+ // pop the previously active lexer condition state off the condition stack
2385
+ popState: function popState() {
2386
+ var k = this.conditionStack.length - 1;
2387
+ return k > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2388
+ },
2389
+ // produce the lexer rule set which is active for the currently active lexer condition state
2390
+ _currentRules: function _currentRules() {
2391
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2392
+ },
2393
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
2394
+ topState: function topState(k) {
2395
+ return k = this.conditionStack.length - 1 - Math.abs(k || 0), k >= 0 ? this.conditionStack[k] : "INITIAL";
2396
+ },
2397
+ // alias for begin(condition)
2398
+ pushState: function pushState(k) {
2399
+ this.begin(k);
2400
+ },
2401
+ // return the number of states currently on the stack
2402
+ stateStackSize: function stateStackSize() {
2403
+ return this.conditionStack.length;
2404
+ },
2405
+ options: {
2406
+ "case-insensitive": !0
2407
+ },
2408
+ performAction: function performAction(k, v, m, u) {
2409
+ switch(m){
2410
+ case 0:
2411
+ return this.begin("open_directive"), 48;
2412
+ case 1:
2413
+ return this.begin("type_directive"), 49;
2414
+ case 2:
2415
+ return this.popState(), this.begin("arg_directive"), 41;
2416
+ case 3:
2417
+ return this.popState(), this.popState(), 51;
2418
+ case 4:
2419
+ return 50;
2420
+ case 5:
2421
+ return this.begin("acc_title"), 29;
2422
+ case 6:
2423
+ return this.popState(), "acc_title_value";
2424
+ case 7:
2425
+ return this.begin("acc_descr"), 31;
2426
+ case 8:
2427
+ return this.popState(), "acc_descr_value";
2428
+ case 9:
2429
+ this.begin("acc_descr_multiline");
2430
+ break;
2431
+ case 10:
2432
+ this.popState();
2433
+ break;
2434
+ case 11:
2435
+ return "acc_descr_multiline_value";
2436
+ case 12:
2437
+ break;
2438
+ case 13:
2439
+ break;
2440
+ case 14:
2441
+ break;
2442
+ case 15:
2443
+ return 11;
2444
+ case 16:
2445
+ break;
2446
+ case 17:
2447
+ break;
2448
+ case 18:
2449
+ break;
2450
+ case 19:
2451
+ this.begin("href");
2452
+ break;
2453
+ case 20:
2454
+ this.popState();
2455
+ break;
2456
+ case 21:
2457
+ return 46;
2458
+ case 22:
2459
+ this.begin("callbackname");
2460
+ break;
2461
+ case 23:
2462
+ this.popState();
2463
+ break;
2464
+ case 24:
2465
+ this.popState(), this.begin("callbackargs");
2466
+ break;
2467
+ case 25:
2468
+ return 44;
2469
+ case 26:
2470
+ this.popState();
2471
+ break;
2472
+ case 27:
2473
+ return 45;
2474
+ case 28:
2475
+ this.begin("click");
2476
+ break;
2477
+ case 29:
2478
+ this.popState();
2479
+ break;
2480
+ case 30:
2481
+ return 43;
2482
+ case 31:
2483
+ return 5;
2484
+ case 32:
2485
+ return 20;
2486
+ case 33:
2487
+ return 21;
2488
+ case 34:
2489
+ return 22;
2490
+ case 35:
2491
+ return 23;
2492
+ case 36:
2493
+ return 24;
2494
+ case 37:
2495
+ return 26;
2496
+ case 38:
2497
+ return 25;
2498
+ case 39:
2499
+ return 27;
2500
+ case 40:
2501
+ return 13;
2502
+ case 41:
2503
+ return 14;
2504
+ case 42:
2505
+ return 15;
2506
+ case 43:
2507
+ return 16;
2508
+ case 44:
2509
+ return 17;
2510
+ case 45:
2511
+ return 18;
2512
+ case 46:
2513
+ return 19;
2514
+ case 47:
2515
+ return "date";
2516
+ case 48:
2517
+ return 28;
2518
+ case 49:
2519
+ return "accDescription";
2520
+ case 50:
2521
+ return 34;
2522
+ case 51:
2523
+ return 36;
2524
+ case 52:
2525
+ return 37;
2526
+ case 53:
2527
+ return 41;
2528
+ case 54:
2529
+ return 7;
2530
+ case 55:
2531
+ return "INVALID";
2532
+ }
2533
+ },
2534
+ rules: [
2535
+ /^(?:%%\{)/i,
2536
+ /^(?:((?:(?!\}%%)[^:.])*))/i,
2537
+ /^(?::)/i,
2538
+ /^(?:\}%%)/i,
2539
+ /^(?:((?:(?!\}%%).|\n)*))/i,
2540
+ /^(?:accTitle\s*:\s*)/i,
2541
+ /^(?:(?!\n||)*[^\n]*)/i,
2542
+ /^(?:accDescr\s*:\s*)/i,
2543
+ /^(?:(?!\n||)*[^\n]*)/i,
2544
+ /^(?:accDescr\s*\{\s*)/i,
2545
+ /^(?:[\}])/i,
2546
+ /^(?:[^\}]*)/i,
2547
+ /^(?:%%(?!\{)*[^\n]*)/i,
2548
+ /^(?:[^\}]%%*[^\n]*)/i,
2549
+ /^(?:%%*[^\n]*[\n]*)/i,
2550
+ /^(?:[\n]+)/i,
2551
+ /^(?:\s+)/i,
2552
+ /^(?:#[^\n]*)/i,
2553
+ /^(?:%[^\n]*)/i,
2554
+ /^(?:href[\s]+["])/i,
2555
+ /^(?:["])/i,
2556
+ /^(?:[^"]*)/i,
2557
+ /^(?:call[\s]+)/i,
2558
+ /^(?:\([\s]*\))/i,
2559
+ /^(?:\()/i,
2560
+ /^(?:[^(]*)/i,
2561
+ /^(?:\))/i,
2562
+ /^(?:[^)]*)/i,
2563
+ /^(?:click[\s]+)/i,
2564
+ /^(?:[\s\n])/i,
2565
+ /^(?:[^\s\n]*)/i,
2566
+ /^(?:gantt\b)/i,
2567
+ /^(?:dateFormat\s[^#\n;]+)/i,
2568
+ /^(?:inclusiveEndDates\b)/i,
2569
+ /^(?:topAxis\b)/i,
2570
+ /^(?:axisFormat\s[^#\n;]+)/i,
2571
+ /^(?:tickInterval\s[^#\n;]+)/i,
2572
+ /^(?:includes\s[^#\n;]+)/i,
2573
+ /^(?:excludes\s[^#\n;]+)/i,
2574
+ /^(?:todayMarker\s[^\n;]+)/i,
2575
+ /^(?:weekday\s+monday\b)/i,
2576
+ /^(?:weekday\s+tuesday\b)/i,
2577
+ /^(?:weekday\s+wednesday\b)/i,
2578
+ /^(?:weekday\s+thursday\b)/i,
2579
+ /^(?:weekday\s+friday\b)/i,
2580
+ /^(?:weekday\s+saturday\b)/i,
2581
+ /^(?:weekday\s+sunday\b)/i,
2582
+ /^(?:\d\d\d\d-\d\d-\d\d\b)/i,
2583
+ /^(?:title\s[^#\n;]+)/i,
2584
+ /^(?:accDescription\s[^#\n;]+)/i,
2585
+ /^(?:section\s[^#:\n;]+)/i,
2586
+ /^(?:[^#:\n;]+)/i,
2587
+ /^(?::[^#\n;]+)/i,
2588
+ /^(?::)/i,
2589
+ /^(?:$)/i,
2590
+ /^(?:.)/i
2591
+ ],
2592
+ conditions: {
2593
+ acc_descr_multiline: {
2594
+ rules: [
2595
+ 10,
2596
+ 11
2597
+ ],
2598
+ inclusive: !1
2599
+ },
2600
+ acc_descr: {
2601
+ rules: [
2602
+ 8
2603
+ ],
2604
+ inclusive: !1
2605
+ },
2606
+ acc_title: {
2607
+ rules: [
2608
+ 6
2609
+ ],
2610
+ inclusive: !1
2611
+ },
2612
+ close_directive: {
2613
+ rules: [],
2614
+ inclusive: !1
2615
+ },
2616
+ arg_directive: {
2617
+ rules: [
2618
+ 3,
2619
+ 4
2620
+ ],
2621
+ inclusive: !1
2622
+ },
2623
+ type_directive: {
2624
+ rules: [
2625
+ 2,
2626
+ 3
2627
+ ],
2628
+ inclusive: !1
2629
+ },
2630
+ open_directive: {
2631
+ rules: [
2632
+ 1
2633
+ ],
2634
+ inclusive: !1
2635
+ },
2636
+ callbackargs: {
2637
+ rules: [
2638
+ 26,
2639
+ 27
2640
+ ],
2641
+ inclusive: !1
2642
+ },
2643
+ callbackname: {
2644
+ rules: [
2645
+ 23,
2646
+ 24,
2647
+ 25
2648
+ ],
2649
+ inclusive: !1
2650
+ },
2651
+ href: {
2652
+ rules: [
2653
+ 20,
2654
+ 21
2655
+ ],
2656
+ inclusive: !1
2657
+ },
2658
+ click: {
2659
+ rules: [
2660
+ 29,
2661
+ 30
2662
+ ],
2663
+ inclusive: !1
2664
+ },
2665
+ INITIAL: {
2666
+ rules: [
2667
+ 0,
2668
+ 5,
2669
+ 7,
2670
+ 9,
2671
+ 12,
2672
+ 13,
2673
+ 14,
2674
+ 15,
2675
+ 16,
2676
+ 17,
2677
+ 18,
2678
+ 19,
2679
+ 22,
2680
+ 28,
2681
+ 31,
2682
+ 32,
2683
+ 33,
2684
+ 34,
2685
+ 35,
2686
+ 36,
2687
+ 37,
2688
+ 38,
2689
+ 39,
2690
+ 40,
2691
+ 41,
2692
+ 42,
2693
+ 43,
2694
+ 44,
2695
+ 45,
2696
+ 46,
2697
+ 47,
2698
+ 48,
2699
+ 49,
2700
+ 50,
2701
+ 51,
2702
+ 52,
2703
+ 53,
2704
+ 54,
2705
+ 55
2706
+ ],
2707
+ inclusive: !0
2708
+ }
2709
+ }
2710
+ };
2711
+ return U;
2712
+ }();
2713
+ p.lexer = W;
2714
+ function E() {
2715
+ this.yy = {};
2716
+ }
2717
+ return E.prototype = p, p.Parser = E, new E();
2718
+ }();
2719
+ ge.parser = ge;
2720
+ var Li = ge;
2721
+ var Cn = {
2722
+ exports: {}
2723
+ };
2724
+ (function(t, e) {
2725
+ (function(n, r) {
2726
+ t.exports = r();
2727
+ })(zl, function() {
2728
+ var n = "day";
2729
+ return function(r, i, s) {
2730
+ var o = function o(y) {
2731
+ return y.add(4 - y.isoWeekday(), n);
2732
+ }, g = i.prototype;
2733
+ g.isoWeekYear = function() {
2734
+ return o(this).year();
2735
+ }, g.isoWeek = function(y) {
2736
+ if (!this.$utils().u(y)) return this.add(7 * (y - this.isoWeek()), n);
2737
+ var C, F, w, x, q = o(this), d = (C = this.isoWeekYear(), F = this.$u, w = (F ? s.utc : s)().year(C).startOf("year"), x = 4 - w.isoWeekday(), w.isoWeekday() > 4 && (x += 7), w.add(x, n));
2738
+ return q.diff(d, "week") + 1;
2739
+ }, g.isoWeekday = function(y) {
2740
+ return this.$utils().u(y) ? this.day() || 7 : this.day(this.day() % 7 ? y : y - 7);
2741
+ };
2742
+ var _ = g.startOf;
2743
+ g.startOf = function(y, C) {
2744
+ var F = this.$utils(), w = !!F.u(C) || C;
2745
+ return F.p(y) === "isoweek" ? w ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : _.bind(this)(y, C);
2746
+ };
2747
+ };
2748
+ });
2749
+ })(Cn);
2750
+ var Ei = Cn.exports;
2751
+ var Ai = /* @__PURE__ */ Wl(Ei);
2752
+ var Mn = {
2753
+ exports: {}
2754
+ };
2755
+ (function(t, e) {
2756
+ (function(n, r) {
2757
+ t.exports = r();
2758
+ })(zl, function() {
2759
+ var n = {
2760
+ LTS: "h:mm:ss A",
2761
+ LT: "h:mm A",
2762
+ L: "MM/DD/YYYY",
2763
+ LL: "MMMM D, YYYY",
2764
+ LLL: "MMMM D, YYYY h:mm A",
2765
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
2766
+ }, 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]+/, g = {}, _ = function _(d) {
2767
+ return (d = +d) + (d > 68 ? 1900 : 2e3);
2768
+ }, y = function y(d) {
2769
+ return function(L) {
2770
+ this[d] = +L;
2771
+ };
2772
+ }, C = [
2773
+ /[+-]\d\d:?(\d\d)?|Z/,
2774
+ function(d) {
2775
+ (this.zone || (this.zone = {})).offset = function(L) {
2776
+ if (!L || L === "Z") return 0;
2777
+ var N = L.match(/([+-]|\d\d)/g), z = 60 * N[1] + (+N[2] || 0);
2778
+ return z === 0 ? 0 : N[0] === "+" ? -z : z;
2779
+ }(d);
2780
+ }
2781
+ ], F = function F(d) {
2782
+ var L = g[d];
2783
+ return L && (L.indexOf ? L : L.s.concat(L.f));
2784
+ }, w = function w(d, L) {
2785
+ var N, z = g.meridiem;
2786
+ if (z) {
2787
+ for(var B = 1; B <= 24; B += 1)if (d.indexOf(z(B, 0, L)) > -1) {
2788
+ N = B > 12;
2789
+ break;
2790
+ }
2791
+ } else N = d === (L ? "pm" : "PM");
2792
+ return N;
2793
+ }, x = {
2794
+ A: [
2795
+ o,
2796
+ function(d) {
2797
+ this.afternoon = w(d, !1);
2798
+ }
2799
+ ],
2800
+ a: [
2801
+ o,
2802
+ function(d) {
2803
+ this.afternoon = w(d, !0);
2804
+ }
2805
+ ],
2806
+ S: [
2807
+ /\d/,
2808
+ function(d) {
2809
+ this.milliseconds = 100 * +d;
2810
+ }
2811
+ ],
2812
+ SS: [
2813
+ i,
2814
+ function(d) {
2815
+ this.milliseconds = 10 * +d;
2816
+ }
2817
+ ],
2818
+ SSS: [
2819
+ /\d{3}/,
2820
+ function(d) {
2821
+ this.milliseconds = +d;
2822
+ }
2823
+ ],
2824
+ s: [
2825
+ s,
2826
+ y("seconds")
2827
+ ],
2828
+ ss: [
2829
+ s,
2830
+ y("seconds")
2831
+ ],
2832
+ m: [
2833
+ s,
2834
+ y("minutes")
2835
+ ],
2836
+ mm: [
2837
+ s,
2838
+ y("minutes")
2839
+ ],
2840
+ H: [
2841
+ s,
2842
+ y("hours")
2843
+ ],
2844
+ h: [
2845
+ s,
2846
+ y("hours")
2847
+ ],
2848
+ HH: [
2849
+ s,
2850
+ y("hours")
2851
+ ],
2852
+ hh: [
2853
+ s,
2854
+ y("hours")
2855
+ ],
2856
+ D: [
2857
+ s,
2858
+ y("day")
2859
+ ],
2860
+ DD: [
2861
+ i,
2862
+ y("day")
2863
+ ],
2864
+ Do: [
2865
+ o,
2866
+ function(d) {
2867
+ var L = g.ordinal, N = d.match(/\d+/);
2868
+ if (this.day = N[0], L) for(var z = 1; z <= 31; z += 1)L(z).replace(/\[|\]/g, "") === d && (this.day = z);
2869
+ }
2870
+ ],
2871
+ M: [
2872
+ s,
2873
+ y("month")
2874
+ ],
2875
+ MM: [
2876
+ i,
2877
+ y("month")
2878
+ ],
2879
+ MMM: [
2880
+ o,
2881
+ function(d) {
2882
+ var L = F("months"), N = (F("monthsShort") || L.map(function(z) {
2883
+ return z.slice(0, 3);
2884
+ })).indexOf(d) + 1;
2885
+ if (N < 1) throw new Error();
2886
+ this.month = N % 12 || N;
2887
+ }
2888
+ ],
2889
+ MMMM: [
2890
+ o,
2891
+ function(d) {
2892
+ var L = F("months").indexOf(d) + 1;
2893
+ if (L < 1) throw new Error();
2894
+ this.month = L % 12 || L;
2895
+ }
2896
+ ],
2897
+ Y: [
2898
+ /[+-]?\d+/,
2899
+ y("year")
2900
+ ],
2901
+ YY: [
2902
+ i,
2903
+ function(d) {
2904
+ this.year = _(d);
2905
+ }
2906
+ ],
2907
+ YYYY: [
2908
+ /\d{4}/,
2909
+ y("year")
2910
+ ],
2911
+ Z: C,
2912
+ ZZ: C
2913
+ };
2914
+ function q(d) {
2915
+ var L, N;
2916
+ L = d, N = g && g.formats;
2917
+ for(var z = (d = L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(S, M, D) {
2918
+ var p = D && D.toUpperCase();
2919
+ return M || N[D] || n[D] || N[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(W, E, U) {
2920
+ return E || U.slice(1);
2921
+ });
2922
+ })).match(r), B = z.length, Z = 0; Z < B; Z += 1){
2923
+ var j = z[Z], b = x[j], I = b && b[0], T = b && b[1];
2924
+ z[Z] = T ? {
2925
+ regex: I,
2926
+ parser: T
2927
+ } : j.replace(/^\[|\]$/g, "");
2928
+ }
2929
+ return function(S) {
2930
+ for(var M = {}, D = 0, p = 0; D < B; D += 1){
2931
+ var W = z[D];
2932
+ if (typeof W == "string") p += W.length;
2933
+ else {
2934
+ var E = W.regex, U = W.parser, h = S.slice(p), k = E.exec(h)[0];
2935
+ U.call(M, k), S = S.replace(k, "");
2936
+ }
2937
+ }
2938
+ return function(v) {
2939
+ var m = v.afternoon;
2940
+ if (m !== void 0) {
2941
+ var u = v.hours;
2942
+ m ? u < 12 && (v.hours += 12) : u === 12 && (v.hours = 0), delete v.afternoon;
2943
+ }
2944
+ }(M), M;
2945
+ };
2946
+ }
2947
+ return function(d, L, N) {
2948
+ N.p.customParseFormat = !0, d && d.parseTwoDigitYear && (_ = d.parseTwoDigitYear);
2949
+ var z = L.prototype, B = z.parse;
2950
+ z.parse = function(Z) {
2951
+ var j = Z.date, b = Z.utc, I = Z.args;
2952
+ this.$u = b;
2953
+ var T = I[1];
2954
+ if (typeof T == "string") {
2955
+ var S = I[2] === !0, M = I[3] === !0, D = S || M, p = I[2];
2956
+ M && (p = I[2]), g = this.$locale(), !S && p && (g = N.Ls[p]), this.$d = function(h, k, v) {
2957
+ try {
2958
+ if ([
2959
+ "x",
2960
+ "X"
2961
+ ].indexOf(k) > -1) return new Date((k === "X" ? 1e3 : 1) * h);
2962
+ var m = q(k)(h), u = m.year, a = m.month, R = m.day, c = m.hours, O = m.minutes, Q = m.seconds, X = m.milliseconds, st = m.zone, ot = /* @__PURE__ */ new Date(), f = R || (u || a ? 1 : ot.getDate()), Y = u || ot.getFullYear(), A = 0;
2963
+ u && !a || (A = a > 0 ? a - 1 : ot.getMonth());
2964
+ var l = c || 0, J = O || 0, V = Q || 0, H = X || 0;
2965
+ return st ? new Date(Date.UTC(Y, A, f, l, J, V, H + 60 * st.offset * 1e3)) : v ? new Date(Date.UTC(Y, A, f, l, J, V, H)) : new Date(Y, A, f, l, J, V, H);
2966
+ } catch (e) {
2967
+ return /* @__PURE__ */ new Date("");
2968
+ }
2969
+ }(j, T, b), this.init(), p && p !== !0 && (this.$L = this.locale(p).$L), D && j != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), g = {};
2970
+ } else if (_instanceof(T, Array)) for(var W = T.length, E = 1; E <= W; E += 1){
2971
+ I[1] = T[E - 1];
2972
+ var U = N.apply(this, I);
2973
+ if (U.isValid()) {
2974
+ this.$d = U.$d, this.$L = U.$L, this.init();
2975
+ break;
2976
+ }
2977
+ E === W && (this.$d = /* @__PURE__ */ new Date(""));
2978
+ }
2979
+ else B.call(this, Z);
2980
+ };
2981
+ };
2982
+ });
2983
+ })(Mn);
2984
+ var Ii = Mn.exports;
2985
+ var Wi = /* @__PURE__ */ Wl(Ii);
2986
+ var _n = {
2987
+ exports: {}
2988
+ };
2989
+ (function(t, e) {
2990
+ (function(n, r) {
2991
+ t.exports = r();
2992
+ })(zl, function() {
2993
+ return function(n, r) {
2994
+ var i = r.prototype, s = i.format;
2995
+ i.format = function(o) {
2996
+ var g = this, _ = this.$locale();
2997
+ if (!this.isValid()) return s.bind(this)(o);
2998
+ var y = 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(F) {
2999
+ switch(F){
3000
+ case "Q":
3001
+ return Math.ceil((g.$M + 1) / 3);
3002
+ case "Do":
3003
+ return _.ordinal(g.$D);
3004
+ case "gggg":
3005
+ return g.weekYear();
3006
+ case "GGGG":
3007
+ return g.isoWeekYear();
3008
+ case "wo":
3009
+ return _.ordinal(g.week(), "W");
3010
+ case "w":
3011
+ case "ww":
3012
+ return y.s(g.week(), F === "w" ? 1 : 2, "0");
3013
+ case "W":
3014
+ case "WW":
3015
+ return y.s(g.isoWeek(), F === "W" ? 1 : 2, "0");
3016
+ case "k":
3017
+ case "kk":
3018
+ return y.s(String(g.$H === 0 ? 24 : g.$H), F === "k" ? 1 : 2, "0");
3019
+ case "X":
3020
+ return Math.floor(g.$d.getTime() / 1e3);
3021
+ case "x":
3022
+ return g.$d.getTime();
3023
+ case "z":
3024
+ return "[" + g.offsetName() + "]";
3025
+ case "zzz":
3026
+ return "[" + g.offsetName("long") + "]";
3027
+ default:
3028
+ return F;
3029
+ }
3030
+ });
3031
+ return s.bind(this)(C);
3032
+ };
3033
+ };
3034
+ });
3035
+ })(_n);
3036
+ var Oi = _n.exports;
3037
+ var zi = /* @__PURE__ */ Wl(Oi);
3038
+ jl.extend(Ai);
3039
+ jl.extend(Wi);
3040
+ jl.extend(zi);
3041
+ var it = "", De = "", Ce, Me = "", Wt = [], Ot = [], _e = {}, Se = [], Kt = [], _t = "", Ye = "";
3042
+ var Sn = [
3043
+ "active",
3044
+ "done",
3045
+ "crit",
3046
+ "milestone"
3047
+ ];
3048
+ var Fe = [], zt = !1, Ue = !1, Le = "sunday", ye = 0;
3049
+ var Ni = function Ni(t, e, n) {
3050
+ de$1.parseDirective(this, t, e, n);
3051
+ }, Vi = function Vi() {
3052
+ Se = [], Kt = [], _t = "", Fe = [], Bt = 0, pe = void 0, Zt = void 0, K = [], it = "", De = "", Ye = "", Ce = void 0, Me = "", Wt = [], Ot = [], zt = !1, Ue = !1, ye = 0, _e = {}, Fa$1(), Le = "sunday";
3053
+ }, Hi = function Hi(t) {
3054
+ De = t;
3055
+ }, Pi = function Pi() {
3056
+ return De;
3057
+ }, Ri = function Ri(t) {
3058
+ Ce = t;
3059
+ }, Bi = function Bi() {
3060
+ return Ce;
3061
+ }, Zi = function Zi(t) {
3062
+ Me = t;
3063
+ }, qi = function qi() {
3064
+ return Me;
3065
+ }, Xi = function Xi(t) {
3066
+ it = t;
3067
+ }, Gi = function Gi() {
3068
+ zt = !0;
3069
+ }, ji = function ji() {
3070
+ return zt;
3071
+ }, Qi = function Qi() {
3072
+ Ue = !0;
3073
+ }, Ji = function Ji() {
3074
+ return Ue;
3075
+ }, $i = function $i(t) {
3076
+ Ye = t;
3077
+ }, Ki = function Ki() {
3078
+ return Ye;
3079
+ }, ta = function ta() {
3080
+ return it;
3081
+ }, ea = function ea(t) {
3082
+ Wt = t.toLowerCase().split(/[\s,]+/);
3083
+ }, na = function na() {
3084
+ return Wt;
3085
+ }, ra = function ra(t) {
3086
+ Ot = t.toLowerCase().split(/[\s,]+/);
3087
+ }, ia = function ia() {
3088
+ return Ot;
3089
+ }, aa = function aa() {
3090
+ return _e;
3091
+ }, sa = function sa(t) {
3092
+ _t = t, Se.push(t);
3093
+ }, oa = function oa() {
3094
+ return Se;
3095
+ }, ca = function ca() {
3096
+ var t = Xe();
3097
+ var e = 10;
3098
+ var n = 0;
3099
+ for(; !t && n < e;)t = Xe(), n++;
3100
+ return Kt = K, Kt;
3101
+ }, Yn = function Yn(t, e, n, r) {
3102
+ 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()));
3103
+ }, ua = function ua(t) {
3104
+ Le = t;
3105
+ }, la = function la() {
3106
+ return Le;
3107
+ }, Fn = function Fn(t, e, n, r) {
3108
+ if (!n.length || t.manualEndTime) return;
3109
+ var i;
3110
+ _instanceof(t.startTime, Date) ? i = jl(t.startTime) : i = jl(t.startTime, e, !0), i = i.add(1, "d");
3111
+ var s;
3112
+ _instanceof(t.endTime, Date) ? s = jl(t.endTime) : s = jl(t.endTime, e, !0);
3113
+ var _fa = _sliced_to_array(fa(i, s, e, n, r), 2), o = _fa[0], g = _fa[1];
3114
+ t.endTime = o.toDate(), t.renderEndTime = g;
3115
+ }, fa = function fa(t, e, n, r, i) {
3116
+ var s = !1, o = null;
3117
+ for(; t <= e;)s || (o = e.toDate()), s = Yn(t, n, r, i), s && (e = e.add(1, "d")), t = t.add(1, "d");
3118
+ return [
3119
+ e,
3120
+ o
3121
+ ];
3122
+ }, ke = function ke(t, e, n) {
3123
+ n = n.trim();
3124
+ var i = /^after\s+([\d\w- ]+)/.exec(n.trim());
3125
+ if (i !== null) {
3126
+ var o = null;
3127
+ if (i[1].split(" ").forEach(function(g) {
3128
+ var _ = St(g);
3129
+ _ !== void 0 && (o ? _.endTime > o.endTime && (o = _) : o = _);
3130
+ }), o) return o.endTime;
3131
+ {
3132
+ var g = /* @__PURE__ */ new Date();
3133
+ return g.setHours(0, 0, 0, 0), g;
3134
+ }
3135
+ }
3136
+ var s = jl(n, e.trim(), !0);
3137
+ if (s.isValid()) return s.toDate();
3138
+ {
3139
+ S.debug("Invalid date:" + n), S.debug("With date format:" + e.trim());
3140
+ var o1 = new Date(n);
3141
+ if (o1 === void 0 || isNaN(o1.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
3142
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
3143
+ // This can cause virtually infinite loops while rendering, so for the
3144
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
3145
+ // invalid.
3146
+ o1.getFullYear() < -1e4 || o1.getFullYear() > 1e4) throw new Error("Invalid date:" + n);
3147
+ return o1;
3148
+ }
3149
+ }, Un = function Un(t) {
3150
+ var e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
3151
+ return e !== null ? [
3152
+ Number.parseFloat(e[1]),
3153
+ e[2]
3154
+ ] : [
3155
+ NaN,
3156
+ "ms"
3157
+ ];
3158
+ }, Ln = function Ln(t, e, n) {
3159
+ var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
3160
+ n = n.trim();
3161
+ var i = jl(n, e.trim(), !0);
3162
+ if (i.isValid()) return r && (i = i.add(1, "d")), i.toDate();
3163
+ var s = jl(t);
3164
+ var _Un = _sliced_to_array(Un(n), 2), o = _Un[0], g = _Un[1];
3165
+ if (!Number.isNaN(o)) {
3166
+ var _ = s.add(o, g);
3167
+ _.isValid() && (s = _);
3168
+ }
3169
+ return s.toDate();
3170
+ };
3171
+ var Bt = 0;
3172
+ var Dt = function Dt(t) {
3173
+ return t === void 0 ? (Bt = Bt + 1, "task" + Bt) : t;
3174
+ }, ha = function ha(t, e) {
3175
+ var n;
3176
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
3177
+ var r = n.split(","), i = {};
3178
+ Wn(r, i, Sn);
3179
+ for(var o = 0; o < r.length; o++)r[o] = r[o].trim();
3180
+ var s = "";
3181
+ switch(r.length){
3182
+ case 1:
3183
+ i.id = Dt(), i.startTime = t.endTime, s = r[0];
3184
+ break;
3185
+ case 2:
3186
+ i.id = Dt(), i.startTime = ke(void 0, it, r[0]), s = r[1];
3187
+ break;
3188
+ case 3:
3189
+ i.id = Dt(r[0]), i.startTime = ke(void 0, it, r[1]), s = r[2];
3190
+ break;
3191
+ }
3192
+ return s && (i.endTime = Ln(i.startTime, it, s, zt), i.manualEndTime = jl(s, "YYYY-MM-DD", !0).isValid(), Fn(i, it, Ot, Wt)), i;
3193
+ }, da = function da(t, e) {
3194
+ var n;
3195
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
3196
+ var r = n.split(","), i = {};
3197
+ Wn(r, i, Sn);
3198
+ for(var s = 0; s < r.length; s++)r[s] = r[s].trim();
3199
+ switch(r.length){
3200
+ case 1:
3201
+ i.id = Dt(), i.startTime = {
3202
+ type: "prevTaskEnd",
3203
+ id: t
3204
+ }, i.endTime = {
3205
+ data: r[0]
3206
+ };
3207
+ break;
3208
+ case 2:
3209
+ i.id = Dt(), i.startTime = {
3210
+ type: "getStartDate",
3211
+ startData: r[0]
3212
+ }, i.endTime = {
3213
+ data: r[1]
3214
+ };
3215
+ break;
3216
+ case 3:
3217
+ i.id = Dt(r[0]), i.startTime = {
3218
+ type: "getStartDate",
3219
+ startData: r[1]
3220
+ }, i.endTime = {
3221
+ data: r[2]
3222
+ };
3223
+ break;
3224
+ }
3225
+ return i;
3226
+ };
3227
+ var pe, Zt, K = [];
3228
+ var En = {}, ma = function ma(t, e) {
3229
+ var n = {
3230
+ section: _t,
3231
+ type: _t,
3232
+ processed: !1,
3233
+ manualEndTime: !1,
3234
+ renderEndTime: null,
3235
+ raw: {
3236
+ data: e
3237
+ },
3238
+ task: t,
3239
+ classes: []
3240
+ }, r = da(Zt, e);
3241
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = Zt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.order = ye, ye++;
3242
+ var i = K.push(n);
3243
+ Zt = n.id, En[n.id] = i - 1;
3244
+ }, St = function St(t) {
3245
+ var e = En[t];
3246
+ return K[e];
3247
+ }, ga = function ga(t, e) {
3248
+ var n = {
3249
+ section: _t,
3250
+ type: _t,
3251
+ description: t,
3252
+ task: t,
3253
+ classes: []
3254
+ }, r = ha(pe, e);
3255
+ 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, pe = n, Kt.push(n);
3256
+ }, Xe = function Xe() {
3257
+ var t = function t(n) {
3258
+ var r = K[n];
3259
+ var i = "";
3260
+ switch(K[n].raw.startTime.type){
3261
+ case "prevTaskEnd":
3262
+ {
3263
+ var s = St(r.prevTaskId);
3264
+ r.startTime = s.endTime;
3265
+ break;
3266
+ }
3267
+ case "getStartDate":
3268
+ i = ke(void 0, it, K[n].raw.startTime.startData), i && (K[n].startTime = i);
3269
+ break;
3270
+ }
3271
+ return K[n].startTime && (K[n].endTime = Ln(K[n].startTime, it, K[n].raw.endTime.data, zt), K[n].endTime && (K[n].processed = !0, K[n].manualEndTime = jl(K[n].raw.endTime.data, "YYYY-MM-DD", !0).isValid(), Fn(K[n], it, Ot, Wt))), K[n].processed;
3272
+ };
3273
+ var e = !0;
3274
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3275
+ try {
3276
+ for(var _iterator = K.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3277
+ var _step_value = _sliced_to_array(_step.value, 2), n = _step_value[0], r = _step_value[1];
3278
+ t(n), e = e && r.processed;
3279
+ }
3280
+ } catch (err) {
3281
+ _didIteratorError = true;
3282
+ _iteratorError = err;
3283
+ } finally{
3284
+ try {
3285
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3286
+ _iterator.return();
3287
+ }
3288
+ } finally{
3289
+ if (_didIteratorError) {
3290
+ throw _iteratorError;
3291
+ }
3292
+ }
3293
+ }
3294
+ return e;
3295
+ }, ya = function ya(t, e) {
3296
+ var n = e;
3297
+ Ut$1().securityLevel !== "loose" && (n = us(e)), t.split(",").forEach(function(r) {
3298
+ St(r) !== void 0 && (In(r, function() {
3299
+ window.open(n, "_self");
3300
+ }), _e[r] = n);
3301
+ }), An(t, "clickable");
3302
+ }, An = function An(t, e) {
3303
+ t.split(",").forEach(function(n) {
3304
+ var r = St(n);
3305
+ r !== void 0 && r.classes.push(e);
3306
+ });
3307
+ }, ka = function ka(t, e, n) {
3308
+ if (Ut$1().securityLevel !== "loose" || e === void 0) return;
3309
+ var r = [];
3310
+ if (typeof n == "string") {
3311
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
3312
+ for(var s = 0; s < r.length; s++){
3313
+ var o = r[s].trim();
3314
+ o.charAt(0) === '"' && o.charAt(o.length - 1) === '"' && (o = o.substr(1, o.length - 2)), r[s] = o;
3315
+ }
3316
+ }
3317
+ r.length === 0 && r.push(t), St(t) !== void 0 && In(t, function() {
3318
+ var _Gn;
3319
+ (_Gn = Oi$1).runFunc.apply(_Gn, [
3320
+ e
3321
+ ].concat(_to_consumable_array(r)));
3322
+ });
3323
+ }, In = function In(t, e) {
3324
+ Fe.push(function() {
3325
+ var n = document.querySelector('[id="'.concat(t, '"]'));
3326
+ n !== null && n.addEventListener("click", function() {
3327
+ e();
3328
+ });
3329
+ }, function() {
3330
+ var n = document.querySelector('[id="'.concat(t, '-text"]'));
3331
+ n !== null && n.addEventListener("click", function() {
3332
+ e();
3333
+ });
3334
+ });
3335
+ }, pa = function pa(t, e, n) {
3336
+ t.split(",").forEach(function(r) {
3337
+ ka(r, e, n);
3338
+ }), An(t, "clickable");
3339
+ }, va = function va(t) {
3340
+ Fe.forEach(function(e) {
3341
+ e(t);
3342
+ });
3343
+ }, Ta = {
3344
+ parseDirective: Ni,
3345
+ getConfig: function() {
3346
+ return Ut$1().gantt;
3347
+ },
3348
+ clear: Vi,
3349
+ setDateFormat: Xi,
3350
+ getDateFormat: ta,
3351
+ enableInclusiveEndDates: Gi,
3352
+ endDatesAreInclusive: ji,
3353
+ enableTopAxis: Qi,
3354
+ topAxisEnabled: Ji,
3355
+ setAxisFormat: Hi,
3356
+ getAxisFormat: Pi,
3357
+ setTickInterval: Ri,
3358
+ getTickInterval: Bi,
3359
+ setTodayMarker: Zi,
3360
+ getTodayMarker: qi,
3361
+ setAccTitle: La,
3362
+ getAccTitle: Aa,
3363
+ setDiagramTitle: Oa,
3364
+ getDiagramTitle: Ia,
3365
+ setDisplayMode: $i,
3366
+ getDisplayMode: Ki,
3367
+ setAccDescription: Ea,
3368
+ getAccDescription: Ma$1,
3369
+ addSection: sa,
3370
+ getSections: oa,
3371
+ getTasks: ca,
3372
+ addTask: ma,
3373
+ findTaskById: St,
3374
+ addTaskOrg: ga,
3375
+ setIncludes: ea,
3376
+ getIncludes: na,
3377
+ setExcludes: ra,
3378
+ getExcludes: ia,
3379
+ setClickEvent: pa,
3380
+ setLink: ya,
3381
+ getLinks: aa,
3382
+ bindFunctions: va,
3383
+ parseDuration: Un,
3384
+ isInvalidDate: Yn,
3385
+ setWeekday: ua,
3386
+ getWeekday: la
3387
+ };
3388
+ function Wn(t, e, n) {
3389
+ var r = !0;
3390
+ for(; r;)r = !1, n.forEach(function(i) {
3391
+ var s = "^\\s*" + i + "\\s*$", o = new RegExp(s);
3392
+ t[0].match(o) && (e[i] = !0, t.shift(1), r = !0);
3393
+ });
3394
+ }
3395
+ var ba = function ba() {
3396
+ S.debug("Something is calling, setConf, remove the call");
3397
+ }, Ge = {
3398
+ monday: Et,
3399
+ tuesday: hn,
3400
+ wednesday: dn,
3401
+ thursday: gt,
3402
+ friday: mn,
3403
+ saturday: gn,
3404
+ sunday: It
3405
+ }, xa = function(t, e) {
3406
+ var n = _to_consumable_array(t).map(function() {
3407
+ return -1 / 0;
3408
+ }), r = _to_consumable_array(t).sort(function(s, o) {
3409
+ return s.startTime - o.startTime || s.order - o.order;
3410
+ }), i = 0;
3411
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3412
+ try {
3413
+ for(var _iterator = r[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3414
+ var s = _step.value;
3415
+ for(var o = 0; o < n.length; o++)if (s.startTime >= n[o]) {
3416
+ n[o] = s.endTime, s.order = o + e, o > i && (i = o);
3417
+ break;
3418
+ }
3419
+ }
3420
+ } catch (err) {
3421
+ _didIteratorError = true;
3422
+ _iteratorError = err;
3423
+ } finally{
3424
+ try {
3425
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3426
+ _iterator.return();
3427
+ }
3428
+ } finally{
3429
+ if (_didIteratorError) {
3430
+ throw _iteratorError;
3431
+ }
3432
+ }
3433
+ }
3434
+ return i;
3435
+ };
3436
+ var lt;
3437
+ var wa = function wa(t, e, n, r) {
3438
+ var i = Ut$1().gantt, s = Ut$1().securityLevel;
3439
+ var o;
3440
+ s === "sandbox" && (o = At$1("#i" + e));
3441
+ var g = s === "sandbox" ? At$1(o.nodes()[0].contentDocument.body) : At$1("body"), _ = s === "sandbox" ? o.nodes()[0].contentDocument : document, y = _.getElementById(e);
3442
+ lt = y.parentElement.offsetWidth, lt === void 0 && (lt = 1200), i.useWidth !== void 0 && (lt = i.useWidth);
3443
+ var C = r.db.getTasks();
3444
+ var F = [];
3445
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3446
+ try {
3447
+ for(var _iterator = C[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3448
+ var T = _step.value;
3449
+ F.push(T.type);
3450
+ }
3451
+ } catch (err) {
3452
+ _didIteratorError = true;
3453
+ _iteratorError = err;
3454
+ } finally{
3455
+ try {
3456
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3457
+ _iterator.return();
3458
+ }
3459
+ } finally{
3460
+ if (_didIteratorError) {
3461
+ throw _iteratorError;
3462
+ }
3463
+ }
3464
+ }
3465
+ F = I(F);
3466
+ var w = {};
3467
+ var x = 2 * i.topPadding;
3468
+ if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
3469
+ var T1 = {};
3470
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
3471
+ try {
3472
+ for(var _iterator1 = C[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
3473
+ var M = _step1.value;
3474
+ T1[M.section] === void 0 ? T1[M.section] = [
3475
+ M
3476
+ ] : T1[M.section].push(M);
3477
+ }
3478
+ } catch (err) {
3479
+ _didIteratorError1 = true;
3480
+ _iteratorError1 = err;
3481
+ } finally{
3482
+ try {
3483
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
3484
+ _iterator1.return();
3485
+ }
3486
+ } finally{
3487
+ if (_didIteratorError1) {
3488
+ throw _iteratorError1;
3489
+ }
3490
+ }
3491
+ }
3492
+ var S = 0;
3493
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
3494
+ try {
3495
+ for(var _iterator2 = Object.keys(T1)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
3496
+ var M1 = _step2.value;
3497
+ var D = xa(T1[M1], S) + 1;
3498
+ S += D, x += D * (i.barHeight + i.barGap), w[M1] = D;
3499
+ }
3500
+ } catch (err) {
3501
+ _didIteratorError2 = true;
3502
+ _iteratorError2 = err;
3503
+ } finally{
3504
+ try {
3505
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
3506
+ _iterator2.return();
3507
+ }
3508
+ } finally{
3509
+ if (_didIteratorError2) {
3510
+ throw _iteratorError2;
3511
+ }
3512
+ }
3513
+ }
3514
+ } else {
3515
+ x += C.length * (i.barHeight + i.barGap);
3516
+ var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
3517
+ try {
3518
+ var _loop = function() {
3519
+ var T = _step3.value;
3520
+ w[T] = C.filter(function(S) {
3521
+ return S.type === T;
3522
+ }).length;
3523
+ };
3524
+ for(var _iterator3 = F[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true)_loop();
3525
+ } catch (err) {
3526
+ _didIteratorError3 = true;
3527
+ _iteratorError3 = err;
3528
+ } finally{
3529
+ try {
3530
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
3531
+ _iterator3.return();
3532
+ }
3533
+ } finally{
3534
+ if (_didIteratorError3) {
3535
+ throw _iteratorError3;
3536
+ }
3537
+ }
3538
+ }
3539
+ }
3540
+ y.setAttribute("viewBox", "0 0 " + lt + " " + x);
3541
+ var q = g.select('[id="'.concat(e, '"]')), d = Ui().domain([
3542
+ rr(C, function(T) {
3543
+ return T.startTime;
3544
+ }),
3545
+ nr(C, function(T) {
3546
+ return T.endTime;
3547
+ })
3548
+ ]).rangeRound([
3549
+ 0,
3550
+ lt - i.leftPadding - i.rightPadding
3551
+ ]);
3552
+ function L(T, S) {
3553
+ var M = T.startTime, D = S.startTime;
3554
+ var p = 0;
3555
+ return M > D ? p = 1 : M < D && (p = -1), p;
3556
+ }
3557
+ C.sort(L), N(C, lt, x), Yg(q, x, lt, i.useMaxWidth), q.append("text").text(r.db.getDiagramTitle()).attr("x", lt / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
3558
+ function N(T, S, M) {
3559
+ var D = i.barHeight, p = D + i.barGap, W = i.topPadding, E = i.leftPadding, U = Yn$1().domain([
3560
+ 0,
3561
+ F.length
3562
+ ]).range([
3563
+ "#00B9FA",
3564
+ "#F95002"
3565
+ ]).interpolate(pr);
3566
+ B(p, W, E, S, M, T, r.db.getExcludes(), r.db.getIncludes()), Z(E, W, S, M), z(T, p, W, E, D, U, S), j(p, W), b(E, W, S, M);
3567
+ }
3568
+ function z(T, S, M, D, p, W, E) {
3569
+ var h = _to_consumable_array(new Set(T.map(function(u) {
3570
+ return u.order;
3571
+ }))).map(function(u) {
3572
+ return T.find(function(a) {
3573
+ return a.order === u;
3574
+ });
3575
+ });
3576
+ q.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(u, a) {
3577
+ return a = u.order, a * S + M - 2;
3578
+ }).attr("width", function() {
3579
+ return E - i.rightPadding / 2;
3580
+ }).attr("height", S).attr("class", function(u) {
3581
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3582
+ try {
3583
+ for(var _iterator = F.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3584
+ var _step_value = _sliced_to_array(_step.value, 2), a = _step_value[0], R = _step_value[1];
3585
+ if (u.type === R) return "section section" + a % i.numberSectionStyles;
3586
+ }
3587
+ } catch (err) {
3588
+ _didIteratorError = true;
3589
+ _iteratorError = err;
3590
+ } finally{
3591
+ try {
3592
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3593
+ _iterator.return();
3594
+ }
3595
+ } finally{
3596
+ if (_didIteratorError) {
3597
+ throw _iteratorError;
3598
+ }
3599
+ }
3600
+ }
3601
+ return "section section0";
3602
+ });
3603
+ var k = q.append("g").selectAll("rect").data(T).enter(), v = r.db.getLinks();
3604
+ if (k.append("rect").attr("id", function(u) {
3605
+ return u.id;
3606
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
3607
+ return u.milestone ? d(u.startTime) + D + 0.5 * (d(u.endTime) - d(u.startTime)) - 0.5 * p : d(u.startTime) + D;
3608
+ }).attr("y", function(u, a) {
3609
+ return a = u.order, a * S + M;
3610
+ }).attr("width", function(u) {
3611
+ return u.milestone ? p : d(u.renderEndTime || u.endTime) - d(u.startTime);
3612
+ }).attr("height", p).attr("transform-origin", function(u, a) {
3613
+ return a = u.order, (d(u.startTime) + D + 0.5 * (d(u.endTime) - d(u.startTime))).toString() + "px " + (a * S + M + 0.5 * p).toString() + "px";
3614
+ }).attr("class", function(u) {
3615
+ var a = "task";
3616
+ var R = "";
3617
+ u.classes.length > 0 && (R = u.classes.join(" "));
3618
+ var c = 0;
3619
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3620
+ try {
3621
+ for(var _iterator = F.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3622
+ var _step_value = _sliced_to_array(_step.value, 2), Q = _step_value[0], X = _step_value[1];
3623
+ u.type === X && (c = Q % i.numberSectionStyles);
3624
+ }
3625
+ } catch (err) {
3626
+ _didIteratorError = true;
3627
+ _iteratorError = err;
3628
+ } finally{
3629
+ try {
3630
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3631
+ _iterator.return();
3632
+ }
3633
+ } finally{
3634
+ if (_didIteratorError) {
3635
+ throw _iteratorError;
3636
+ }
3637
+ }
3638
+ }
3639
+ var O = "";
3640
+ return u.active ? u.crit ? O += " activeCrit" : O = " active" : u.done ? u.crit ? O = " doneCrit" : O = " done" : u.crit && (O += " crit"), O.length === 0 && (O = " task"), u.milestone && (O = " milestone " + O), O += c, O += " " + R, a + O;
3641
+ }), k.append("text").attr("id", function(u) {
3642
+ return u.id + "-text";
3643
+ }).text(function(u) {
3644
+ return u.task;
3645
+ }).attr("font-size", i.fontSize).attr("x", function(u) {
3646
+ var a = d(u.startTime), R = d(u.renderEndTime || u.endTime);
3647
+ u.milestone && (a += 0.5 * (d(u.endTime) - d(u.startTime)) - 0.5 * p), u.milestone && (R = a + p);
3648
+ var c = this.getBBox().width;
3649
+ return c > R - a ? R + c + 1.5 * i.leftPadding > E ? a + D - 5 : R + D + 5 : (R - a) / 2 + a + D;
3650
+ }).attr("y", function(u, a) {
3651
+ return a = u.order, a * S + i.barHeight / 2 + (i.fontSize / 2 - 2) + M;
3652
+ }).attr("text-height", p).attr("class", function(u) {
3653
+ var a = d(u.startTime);
3654
+ var R = d(u.endTime);
3655
+ u.milestone && (R = a + p);
3656
+ var c = this.getBBox().width;
3657
+ var O = "";
3658
+ u.classes.length > 0 && (O = u.classes.join(" "));
3659
+ var Q = 0;
3660
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3661
+ try {
3662
+ for(var _iterator = F.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3663
+ var _step_value = _sliced_to_array(_step.value, 2), st = _step_value[0], ot = _step_value[1];
3664
+ u.type === ot && (Q = st % i.numberSectionStyles);
3665
+ }
3666
+ } catch (err) {
3667
+ _didIteratorError = true;
3668
+ _iteratorError = err;
3669
+ } finally{
3670
+ try {
3671
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3672
+ _iterator.return();
3673
+ }
3674
+ } finally{
3675
+ if (_didIteratorError) {
3676
+ throw _iteratorError;
3677
+ }
3678
+ }
3679
+ }
3680
+ var X = "";
3681
+ return u.active && (u.crit ? X = "activeCritText" + Q : X = "activeText" + Q), u.done ? u.crit ? X = X + " doneCritText" + Q : X = X + " doneText" + Q : u.crit && (X = X + " critText" + Q), u.milestone && (X += " milestoneText"), c > R - a ? R + c + 1.5 * i.leftPadding > E ? O + " taskTextOutsideLeft taskTextOutside" + Q + " " + X : O + " taskTextOutsideRight taskTextOutside" + Q + " " + X + " width-" + c : O + " taskText taskText" + Q + " " + X + " width-" + c;
3682
+ }), Ut$1().securityLevel === "sandbox") {
3683
+ var u;
3684
+ u = At$1("#i" + e);
3685
+ var a = u.nodes()[0].contentDocument;
3686
+ k.filter(function(R) {
3687
+ return v[R.id] !== void 0;
3688
+ }).each(function(R) {
3689
+ var c = a.querySelector("#" + R.id), O = a.querySelector("#" + R.id + "-text");
3690
+ var Q = c.parentNode;
3691
+ var X = a.createElement("a");
3692
+ X.setAttribute("xlink:href", v[R.id]), X.setAttribute("target", "_top"), Q.appendChild(X), X.appendChild(c), X.appendChild(O);
3693
+ });
3694
+ }
3695
+ }
3696
+ function B(T, S, M, D, p, W, E, U) {
3697
+ var h = W.reduce(function(c, param) {
3698
+ var O = param.startTime;
3699
+ return c ? Math.min(c, O) : O;
3700
+ }, 0), k = W.reduce(function(c, param) {
3701
+ var O = param.endTime;
3702
+ return c ? Math.max(c, O) : O;
3703
+ }, 0), v = r.db.getDateFormat();
3704
+ if (!h || !k) return;
3705
+ var m = [];
3706
+ var u = null, a = jl(h);
3707
+ for(; a.valueOf() <= k;)r.db.isInvalidDate(a, v, E, U) ? u ? u.end = a : u = {
3708
+ start: a,
3709
+ end: a
3710
+ } : u && (m.push(u), u = null), a = a.add(1, "d");
3711
+ q.append("g").selectAll("rect").data(m).enter().append("rect").attr("id", function(c) {
3712
+ return "exclude-" + c.start.format("YYYY-MM-DD");
3713
+ }).attr("x", function(c) {
3714
+ return d(c.start) + M;
3715
+ }).attr("y", i.gridLineStartPadding).attr("width", function(c) {
3716
+ var O = c.end.add(1, "day");
3717
+ return d(O) - d(c.start);
3718
+ }).attr("height", p - S - i.gridLineStartPadding).attr("transform-origin", function(c, O) {
3719
+ return (d(c.start) + M + 0.5 * (d(c.end) - d(c.start))).toString() + "px " + (O * T + 0.5 * p).toString() + "px";
3720
+ }).attr("class", "exclude-range");
3721
+ }
3722
+ function Z(T, S, M, D) {
3723
+ var p = fr(d).tickSize(-D + S + i.gridLineStartPadding).tickFormat($t(r.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d"));
3724
+ var E = /^([1-9]\d*)(minute|hour|day|week|month)$/.exec(r.db.getTickInterval() || i.tickInterval);
3725
+ if (E !== null) {
3726
+ var U = E[1], h = E[2], k = r.db.getWeekday() || i.weekday;
3727
+ switch(h){
3728
+ case "minute":
3729
+ p.ticks(Gt.every(U));
3730
+ break;
3731
+ case "hour":
3732
+ p.ticks(jt.every(U));
3733
+ break;
3734
+ case "day":
3735
+ p.ticks(Ct.every(U));
3736
+ break;
3737
+ case "week":
3738
+ p.ticks(Ge[k].every(U));
3739
+ break;
3740
+ case "month":
3741
+ p.ticks(Qt.every(U));
3742
+ break;
3743
+ }
3744
+ }
3745
+ if (q.append("g").attr("class", "grid").attr("transform", "translate(" + T + ", " + (D - 50) + ")").call(p).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
3746
+ var U1 = lr(d).tickSize(-D + S + i.gridLineStartPadding).tickFormat($t(r.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d"));
3747
+ if (E !== null) {
3748
+ var h1 = E[1], k1 = E[2], v = r.db.getWeekday() || i.weekday;
3749
+ switch(k1){
3750
+ case "minute":
3751
+ U1.ticks(Gt.every(h1));
3752
+ break;
3753
+ case "hour":
3754
+ U1.ticks(jt.every(h1));
3755
+ break;
3756
+ case "day":
3757
+ U1.ticks(Ct.every(h1));
3758
+ break;
3759
+ case "week":
3760
+ U1.ticks(Ge[v].every(h1));
3761
+ break;
3762
+ case "month":
3763
+ U1.ticks(Qt.every(h1));
3764
+ break;
3765
+ }
3766
+ }
3767
+ q.append("g").attr("class", "grid").attr("transform", "translate(" + T + ", " + S + ")").call(U1).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
3768
+ }
3769
+ }
3770
+ function j(T, S) {
3771
+ var M = 0;
3772
+ var D = Object.keys(w).map(function(p) {
3773
+ return [
3774
+ p,
3775
+ w[p]
3776
+ ];
3777
+ });
3778
+ q.append("g").selectAll("text").data(D).enter().append(function(p) {
3779
+ var W = p[0].split(Bn.lineBreakRegex), E = -(W.length - 1) / 2, U = _.createElementNS("http://www.w3.org/2000/svg", "text");
3780
+ U.setAttribute("dy", E + "em");
3781
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3782
+ try {
3783
+ for(var _iterator = W.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3784
+ var _step_value = _sliced_to_array(_step.value, 2), h = _step_value[0], k = _step_value[1];
3785
+ var v = _.createElementNS("http://www.w3.org/2000/svg", "tspan");
3786
+ v.setAttribute("alignment-baseline", "central"), v.setAttribute("x", "10"), h > 0 && v.setAttribute("dy", "1em"), v.textContent = k, U.appendChild(v);
3787
+ }
3788
+ } catch (err) {
3789
+ _didIteratorError = true;
3790
+ _iteratorError = err;
3791
+ } finally{
3792
+ try {
3793
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3794
+ _iterator.return();
3795
+ }
3796
+ } finally{
3797
+ if (_didIteratorError) {
3798
+ throw _iteratorError;
3799
+ }
3800
+ }
3801
+ }
3802
+ return U;
3803
+ }).attr("x", 10).attr("y", function(p, W) {
3804
+ if (W > 0) for(var E = 0; E < W; E++)return M += D[W - 1][1], p[1] * T / 2 + M * T + S;
3805
+ else return p[1] * T / 2 + S;
3806
+ }).attr("font-size", i.sectionFontSize).attr("class", function(p) {
3807
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3808
+ try {
3809
+ for(var _iterator = F.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3810
+ var _step_value = _sliced_to_array(_step.value, 2), W = _step_value[0], E = _step_value[1];
3811
+ if (p[0] === E) return "sectionTitle sectionTitle" + W % i.numberSectionStyles;
3812
+ }
3813
+ } catch (err) {
3814
+ _didIteratorError = true;
3815
+ _iteratorError = err;
3816
+ } finally{
3817
+ try {
3818
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3819
+ _iterator.return();
3820
+ }
3821
+ } finally{
3822
+ if (_didIteratorError) {
3823
+ throw _iteratorError;
3824
+ }
3825
+ }
3826
+ }
3827
+ return "sectionTitle";
3828
+ });
3829
+ }
3830
+ function b(T, S, M, D) {
3831
+ var p = r.db.getTodayMarker();
3832
+ if (p === "off") return;
3833
+ var W = q.append("g").attr("class", "today"), E = /* @__PURE__ */ new Date(), U = W.append("line");
3834
+ U.attr("x1", d(E) + T).attr("x2", d(E) + T).attr("y1", i.titleTopMargin).attr("y2", D - i.titleTopMargin).attr("class", "today"), p !== "" && U.attr("style", p.replace(/,/g, ";"));
3835
+ }
3836
+ function I(T) {
3837
+ var S = {}, M = [];
3838
+ for(var D = 0, p = T.length; D < p; ++D)Object.prototype.hasOwnProperty.call(S, T[D]) || (S[T[D]] = !0, M.push(T[D]));
3839
+ return M;
3840
+ }
3841
+ }, Da = {
3842
+ setConf: ba,
3843
+ draw: wa
3844
+ }, Ca = function(t) {
3845
+ return '\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: '.concat(t.excludeBkgColor, ";\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ").concat(t.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize, ";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily, ";\n fill: ").concat(t.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ").concat(t.ganttFontSize, ";\n // }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor, ";\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize, ";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor, ";\n text-anchor: end;\n // font-size: ").concat(t.ganttFontSize, ";\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor, ";\n stroke: ").concat(t.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor, ";\n stroke: ").concat(t.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor, ";\n fill: ").concat(t.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor, ";\n fill: ").concat(t.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor, ";\n fill: ").concat(t.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor, ";\n fill: ").concat(t.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor, " ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n");
3846
+ }, Ma = Ca, Fa = {
3847
+ parser: Li,
3848
+ db: Ta,
3849
+ renderer: Da,
3850
+ styles: Ma
3851
+ };
3852
+
3853
+ export { Fa as diagram };