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