@digipair/skill-web-chatbot 0.8.37 → 0.8.40

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