@marimo-team/islands 0.14.11-dev39 → 0.14.11-dev4
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/dist/{ConnectedDataExplorerComponent-Sd9Nxepm.js → ConnectedDataExplorerComponent-B3jU38aR.js} +4 -4
- package/dist/{ImageComparisonComponent-5Y_UPK-4.js → ImageComparisonComponent-CUfFulP7.js} +1 -1
- package/dist/{VegaLite-xEnU6x-s.js → VegaLite-CT_m2Gns.js} +7180 -6961
- package/dist/{_baseUniq-hectrKF-.js → _baseUniq-DVXzAxqW.js} +36 -36
- package/dist/{any-language-editor-CFSQwvzE.js → any-language-editor-Bm5ppbnQ.js} +1 -1
- package/dist/{architectureDiagram-NQ2NVSRB-CCXJjFvh.js → architectureDiagram-IEHRJDOE-Buq1PEDd.js} +894 -897
- package/dist/assets/{worker-Bfk1FrzG.js → save-worker-BIDtxCd1.js} +1724 -1604
- package/dist/assets/{save-worker-fI5ofStJ.js → worker-BcyuOSTi.js} +1649 -1076
- package/dist/assets/worker-Dz6PPEGc.js +4115 -0
- package/dist/{blockDiagram-PHRCVELO-BjyOlQ-1.js → blockDiagram-JOT3LUYC-Baj8O4gb.js} +522 -534
- package/dist/{c4Diagram-6F6E4RAY-Dekfu0nv.js → c4Diagram-VJAJSXHY-CBDfWUzS.js} +4 -4
- package/dist/{channel-3ZP1Ahsx.js → channel-Cy0SmgpI.js} +1 -1
- package/dist/{chunk-353BL4L5-DAFgStCL.js → chunk-4BMEZGHF-BnpEqs6S.js} +1 -1
- package/dist/{chunk-QEP2MXWD-B3Qy_0QF.js → chunk-A2AXSNBT-i8l7moUJ.js} +27 -30
- package/dist/chunk-AEK57VVT-BxuW_6WB.js +1416 -0
- package/dist/{chunk-67H74DCK-DZpdsEFc.js → chunk-D6G4REZN-DwIklRV0.js} +1 -1
- package/dist/chunk-RZ5BOZE2-CNoeotZt.js +24 -0
- package/dist/{chunk-AACKK3MU-B95hL8py.js → chunk-XZIHB7SX-Cr4T9caJ.js} +1 -1
- package/dist/{classDiagram-v2-O24JOBDK-CRnOnb_r.js → classDiagram-GIVACNV2-CbFkMOFI.js} +2 -2
- package/dist/{classDiagram-BGRH5UQR-CRnOnb_r.js → classDiagram-v2-COTLJTTW-CbFkMOFI.js} +2 -2
- package/dist/{clone-CFt3Dbsx.js → clone-BeXSGgDB.js} +1 -1
- package/dist/{dagre-FFZHY6LT-BCZYCsTf.js → dagre-OKDRZEBW-Bo2roBvL.js} +8 -8
- package/dist/{data-editor-DJm7TwNK.js → data-editor-Dnm_K2_c.js} +201 -213
- package/dist/{diagram-ZTM2IBQH-CZn2HwdK.js → diagram-SSKATNLV-6e7ZOneB.js} +3 -3
- package/dist/diagram-VNBRO52H-VcG5htt_.js +126 -0
- package/dist/{erDiagram-R3QVA2FD-CgONUTHE.js → erDiagram-Q7BY3M3F-DObb1KYA.js} +5 -6
- package/dist/{flowDiagram-PKI6S5ZS-Dk7_9UWG.js → flowDiagram-4HSFHLVR-BAvIkIMr.js} +278 -283
- package/dist/{ganttDiagram-EK5VF46D-CRpVp1Tv.js → ganttDiagram-APWFNJXF-BUabt1F7.js} +439 -453
- package/dist/{gitGraphDiagram-GW3U2K7C-C62qVSS0.js → gitGraphDiagram-7IBYFJ6S-Bs-H6FAX.js} +35 -35
- package/dist/{graph-Bmg6ThvY.js → graph-B7tbSSJp.js} +3 -3
- package/dist/{index-DjyV3XsQ.js → index-CiG5v3ld.js} +3 -3
- package/dist/{index-CpMCQprO.js → index-DI-1MlWW.js} +1 -1
- package/dist/{index-DOW7j8QD.js → index-DpepA-b-.js} +3 -6
- package/dist/{index-BmXq13zt.js → index-phTQQwAJ.js} +4 -4
- package/dist/{infoDiagram-RLU2ROGC-BxV_L_v4.js → infoDiagram-PH2N3AL5-7fwphtgP.js} +3 -5
- package/dist/journeyDiagram-U35MCT3I-C4s4ilvs.js +809 -0
- package/dist/{kanban-definition-ILFWEQ3N-Czy4NHmp.js → kanban-definition-NDS4AKOZ-DcxIaLdv.js} +39 -41
- package/dist/{layout-oDYqqouw.js → layout-v4OeDCTb.js} +49 -49
- package/dist/{linear-B2w8crqt.js → linear-xHimOevt.js} +22 -22
- package/dist/{main-WBPEOYUW.js → main-C7CuKeJY.js} +47637 -47530
- package/dist/main.js +1 -1
- package/dist/{mermaid-BrDUrAOA.js → mermaid-C9S7GU2b.js} +4855 -4927
- package/dist/min-BT9mkTQN.js +80 -0
- package/dist/{mindmap-definition-CZNETY7S-DwnN0Xtd.js → mindmap-definition-ALO5MXBD-CVFEcHZK.js} +3 -3
- package/dist/{pieDiagram-NIOCPIFQ-C6DftsTF.js → pieDiagram-IB7DONF6-Co1Ma8jK.js} +3 -3
- package/dist/{quadrantDiagram-2OG54O6I-D_F4-y3O.js → quadrantDiagram-7GDLP6J5-DQlP2K2y.js} +2 -2
- package/dist/{treemap-FKARHQ26-BdRtb6Jl.js → radar-MK3ICKWK-BhkTFShi.js} +2330 -2469
- package/dist/{react-plotly-DyGjmGkP.js → react-plotly-Bh6GaXqm.js} +1 -1
- package/dist/{requirementDiagram-SO3GGRV7-B0B6nUaZ.js → requirementDiagram-KVF5MWMF-BygiWyL4.js} +4 -5
- package/dist/{sankeyDiagram-4UZDY2LN-Dc9a_ZCf.js → sankeyDiagram-QLVOVGJD-Ch4TJi_X.js} +11 -11
- package/dist/{sequenceDiagram-ZIKVLSP4-CK0IGm4R.js → sequenceDiagram-X6HHIX6F-DuQdesWk.js} +149 -151
- package/dist/{slides-component-Dnp9jsH4.js → slides-component-BA1GLkbQ.js} +962 -969
- package/dist/stateDiagram-DGXRK772-CG6dTG8s.js +271 -0
- package/dist/{stateDiagram-v2-GD6S3NHB-z7eMLBFB.js → stateDiagram-v2-YXO3MK2T-ChBhvPue.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-CsAbaoLW.js → time-BImtLwbp.js} +2 -2
- package/dist/{timeline-definition-RI47OAVP-BClUsJ6N.js → timeline-definition-BDJGKUSR-DDxqWt73.js} +102 -99
- package/dist/{vega-component-B4kFG0mV.js → vega-component-ClHul7Ph.js} +21 -21
- package/dist/{xychartDiagram-H2YORKM3-DKa9A91j.js → xychartDiagram-VJFVF3MP-DsuROm2x.js} +375 -409
- package/package.json +42 -42
- package/dist/assets/worker-BldghCZh.js +0 -3752
- package/dist/chunk-6OLS64BW-Brmt-SZS.js +0 -1383
- package/dist/chunk-BFAMUDN2-BT75CqeT.js +0 -8
- package/dist/chunk-E2GYISFI-C0R6djsG.js +0 -19
- package/dist/chunk-SKB7J2MH-CW_LVmrE.js +0 -20
- package/dist/diagram-3EMPZRKU-K1apRbx_.js +0 -313
- package/dist/diagram-5UYTHUR4-CDt_HKgG.js +0 -137
- package/dist/index-pBmAzQJl.js +0 -235
- package/dist/journeyDiagram-EWQZEKCU-BmLTz9kg.js +0 -836
- package/dist/min-DrafC17d.js +0 -80
- package/dist/stateDiagram-XX37X6EN-BvfpfSgz.js +0 -264
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
3
|
-
import { t as Ye, m as We, a as Ve, i as Pe } from "./time-
|
|
4
|
-
import { l as ze } from "./linear-
|
|
1
|
+
import { _ as c, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, an as U, l as Dt, k as we, j as _e, z as De, u as Se } from "./mermaid-C9S7GU2b.js";
|
|
2
|
+
import { S as Wt, at as jt, al as Ut, ak as Ce, aE as Ee, aF as Me, aG as Ae, aH as Ie, aI as Fe, aJ as Le, aj as Zt, ai as Qt, ah as $t, a7 as Jt, ag as Kt } from "./main-C7CuKeJY.js";
|
|
3
|
+
import { t as Ye, m as We, a as Ve, i as Pe } from "./time-BImtLwbp.js";
|
|
4
|
+
import { l as ze } from "./linear-xHimOevt.js";
|
|
5
5
|
function Oe(t) {
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
@@ -15,47 +15,47 @@ function Ne(t) {
|
|
|
15
15
|
function Be(t) {
|
|
16
16
|
return (e) => +t(e);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function qe(t, e) {
|
|
19
19
|
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function He() {
|
|
22
22
|
return !this.__axis;
|
|
23
23
|
}
|
|
24
24
|
function oe(t, e) {
|
|
25
|
-
var n = [], i = null, a = null, k = 6, d = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === vt || t === pt ? -1 : 1, g = t === pt || t === Mt ? "x" : "y",
|
|
26
|
-
function S(
|
|
27
|
-
var
|
|
28
|
-
G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), z = z.merge(b),
|
|
29
|
-
return isFinite(m = N(m)) ?
|
|
25
|
+
var n = [], i = null, a = null, k = 6, d = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === vt || t === pt ? -1 : 1, g = t === pt || t === Mt ? "x" : "y", I = t === vt || t === At ? Re : Ne;
|
|
26
|
+
function S(p) {
|
|
27
|
+
var H = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), F = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Oe), v = Math.max(k, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? qe : Be)(e.copy(), E), R = p.selection ? p.selection() : p, G = R.selectAll(".domain").data([null]), z = R.selectAll(".tick").data(H, e).order(), y = z.exit(), b = z.enter().append("g").attr("class", "tick"), x = z.select("line"), T = z.select("text");
|
|
28
|
+
G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), z = z.merge(b), x = x.merge(b.append("line").attr("stroke", "currentColor").attr(g + "2", C * k)), T = T.merge(b.append("text").attr("fill", "currentColor").attr(g, C * v).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), p !== R && (G = G.transition(p), z = z.transition(p), x = x.transition(p), T = T.transition(p), y = y.transition(p).attr("opacity", te).attr("transform", function(m) {
|
|
29
|
+
return isFinite(m = N(m)) ? I(m + E) : this.getAttribute("transform");
|
|
30
30
|
}), b.attr("opacity", te).attr("transform", function(m) {
|
|
31
31
|
var w = this.parentNode.__axis;
|
|
32
|
-
return
|
|
32
|
+
return I((w && isFinite(w = w(m)) ? w : N(m)) + E);
|
|
33
33
|
})), y.remove(), G.attr("d", t === pt || t === Mt ? d ? "M" + C * d + "," + L + "H" + E + "V" + Y + "H" + C * d : "M" + E + "," + L + "V" + Y : d ? "M" + L + "," + C * d + "V" + E + "H" + Y + "V" + C * d : "M" + L + "," + E + "H" + Y), z.attr("opacity", 1).attr("transform", function(m) {
|
|
34
|
-
return
|
|
35
|
-
}),
|
|
34
|
+
return I(N(m) + E);
|
|
35
|
+
}), x.attr(g + "2", C * k), T.attr(g, C * v).text(F), R.filter(He).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Mt ? "start" : t === pt ? "end" : "middle"), R.each(function() {
|
|
36
36
|
this.__axis = N;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
return S.scale = function(
|
|
40
|
-
return arguments.length ? (e =
|
|
39
|
+
return S.scale = function(p) {
|
|
40
|
+
return arguments.length ? (e = p, S) : e;
|
|
41
41
|
}, S.ticks = function() {
|
|
42
42
|
return n = Array.from(arguments), S;
|
|
43
|
-
}, S.tickArguments = function(
|
|
44
|
-
return arguments.length ? (n =
|
|
45
|
-
}, S.tickValues = function(
|
|
46
|
-
return arguments.length ? (i =
|
|
47
|
-
}, S.tickFormat = function(
|
|
48
|
-
return arguments.length ? (a =
|
|
49
|
-
}, S.tickSize = function(
|
|
50
|
-
return arguments.length ? (k = d = +
|
|
51
|
-
}, S.tickSizeInner = function(
|
|
52
|
-
return arguments.length ? (k = +
|
|
53
|
-
}, S.tickSizeOuter = function(
|
|
54
|
-
return arguments.length ? (d = +
|
|
55
|
-
}, S.tickPadding = function(
|
|
56
|
-
return arguments.length ? (D = +
|
|
57
|
-
}, S.offset = function(
|
|
58
|
-
return arguments.length ? (E = +
|
|
43
|
+
}, S.tickArguments = function(p) {
|
|
44
|
+
return arguments.length ? (n = p == null ? [] : Array.from(p), S) : n.slice();
|
|
45
|
+
}, S.tickValues = function(p) {
|
|
46
|
+
return arguments.length ? (i = p == null ? null : Array.from(p), S) : i && i.slice();
|
|
47
|
+
}, S.tickFormat = function(p) {
|
|
48
|
+
return arguments.length ? (a = p, S) : a;
|
|
49
|
+
}, S.tickSize = function(p) {
|
|
50
|
+
return arguments.length ? (k = d = +p, S) : k;
|
|
51
|
+
}, S.tickSizeInner = function(p) {
|
|
52
|
+
return arguments.length ? (k = +p, S) : k;
|
|
53
|
+
}, S.tickSizeOuter = function(p) {
|
|
54
|
+
return arguments.length ? (d = +p, S) : d;
|
|
55
|
+
}, S.tickPadding = function(p) {
|
|
56
|
+
return arguments.length ? (D = +p, S) : D;
|
|
57
|
+
}, S.offset = function(p) {
|
|
58
|
+
return arguments.length ? (E = +p, S) : E;
|
|
59
59
|
}, S;
|
|
60
60
|
}
|
|
61
61
|
function Ge(t) {
|
|
@@ -79,138 +79,138 @@ function Ue() {
|
|
|
79
79
|
return d(this).year();
|
|
80
80
|
}, D.isoWeek = function(C) {
|
|
81
81
|
if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), n);
|
|
82
|
-
var g,
|
|
83
|
-
return
|
|
82
|
+
var g, I, S, p, H = d(this), F = (g = this.isoWeekYear(), I = this.$u, S = (I ? k.utc : k)().year(g).startOf("year"), p = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (p += 7), S.add(p, n));
|
|
83
|
+
return H.diff(F, "week") + 1;
|
|
84
84
|
}, D.isoWeekday = function(C) {
|
|
85
85
|
return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
|
|
86
86
|
};
|
|
87
87
|
var E = D.startOf;
|
|
88
88
|
D.startOf = function(C, g) {
|
|
89
|
-
var
|
|
90
|
-
return
|
|
89
|
+
var I = this.$utils(), S = !!I.u(g) || g;
|
|
90
|
+
return I.p(C) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : E.bind(this)(C, g);
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
});
|
|
94
94
|
}(xt)), xt.exports;
|
|
95
95
|
}
|
|
96
96
|
var Ze = Ue();
|
|
97
|
-
const
|
|
98
|
-
var Tt = { exports: {} },
|
|
99
|
-
function
|
|
97
|
+
const Qe = /* @__PURE__ */ Wt(Ze);
|
|
98
|
+
var Tt = { exports: {} }, $e = Tt.exports, re;
|
|
99
|
+
function Je() {
|
|
100
100
|
return re || (re = 1, function(t, e) {
|
|
101
101
|
(function(n, i) {
|
|
102
102
|
t.exports = i();
|
|
103
|
-
})(
|
|
104
|
-
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" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, k = /\d\d/, d = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(
|
|
105
|
-
return (
|
|
106
|
-
}, g = function(
|
|
103
|
+
})($e, function() {
|
|
104
|
+
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" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, k = /\d\d/, d = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(v) {
|
|
105
|
+
return (v = +v) + (v > 68 ? 1900 : 2e3);
|
|
106
|
+
}, g = function(v) {
|
|
107
107
|
return function(M) {
|
|
108
|
-
this[
|
|
108
|
+
this[v] = +M;
|
|
109
109
|
};
|
|
110
|
-
},
|
|
110
|
+
}, I = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
|
|
111
111
|
(this.zone || (this.zone = {})).offset = function(M) {
|
|
112
112
|
if (!M || M === "Z") return 0;
|
|
113
113
|
var L = M.match(/([+-]|\d\d)/g), Y = 60 * L[1] + (+L[2] || 0);
|
|
114
114
|
return Y === 0 ? 0 : L[0] === "+" ? -Y : Y;
|
|
115
|
-
}(
|
|
116
|
-
}], S = function(
|
|
117
|
-
var M = E[
|
|
115
|
+
}(v);
|
|
116
|
+
}], S = function(v) {
|
|
117
|
+
var M = E[v];
|
|
118
118
|
return M && (M.indexOf ? M : M.s.concat(M.f));
|
|
119
|
-
},
|
|
119
|
+
}, p = function(v, M) {
|
|
120
120
|
var L, Y = E.meridiem;
|
|
121
121
|
if (Y) {
|
|
122
|
-
for (var N = 1; N <= 24; N += 1) if (
|
|
122
|
+
for (var N = 1; N <= 24; N += 1) if (v.indexOf(Y(N, 0, M)) > -1) {
|
|
123
123
|
L = N > 12;
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
} else L =
|
|
126
|
+
} else L = v === (M ? "pm" : "PM");
|
|
127
127
|
return L;
|
|
128
|
-
},
|
|
129
|
-
this.afternoon = v
|
|
130
|
-
}], a: [D, function(
|
|
131
|
-
this.afternoon = v
|
|
132
|
-
}], Q: [a, function(
|
|
133
|
-
this.month = 3 * (
|
|
134
|
-
}], S: [a, function(
|
|
135
|
-
this.milliseconds = 100 * +
|
|
136
|
-
}], SS: [k, function(
|
|
137
|
-
this.milliseconds = 10 * +
|
|
138
|
-
}], SSS: [/\d{3}/, function(
|
|
139
|
-
this.milliseconds = +
|
|
140
|
-
}], s: [d, g("seconds")], ss: [d, g("seconds")], m: [d, g("minutes")], mm: [d, g("minutes")], H: [d, g("hours")], h: [d, g("hours")], HH: [d, g("hours")], hh: [d, g("hours")], D: [d, g("day")], DD: [k, g("day")], Do: [D, function(
|
|
141
|
-
var M = E.ordinal, L =
|
|
142
|
-
if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") ===
|
|
143
|
-
}], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(
|
|
128
|
+
}, H = { A: [D, function(v) {
|
|
129
|
+
this.afternoon = p(v, false);
|
|
130
|
+
}], a: [D, function(v) {
|
|
131
|
+
this.afternoon = p(v, true);
|
|
132
|
+
}], Q: [a, function(v) {
|
|
133
|
+
this.month = 3 * (v - 1) + 1;
|
|
134
|
+
}], S: [a, function(v) {
|
|
135
|
+
this.milliseconds = 100 * +v;
|
|
136
|
+
}], SS: [k, function(v) {
|
|
137
|
+
this.milliseconds = 10 * +v;
|
|
138
|
+
}], SSS: [/\d{3}/, function(v) {
|
|
139
|
+
this.milliseconds = +v;
|
|
140
|
+
}], s: [d, g("seconds")], ss: [d, g("seconds")], m: [d, g("minutes")], mm: [d, g("minutes")], H: [d, g("hours")], h: [d, g("hours")], HH: [d, g("hours")], hh: [d, g("hours")], D: [d, g("day")], DD: [k, g("day")], Do: [D, function(v) {
|
|
141
|
+
var M = E.ordinal, L = v.match(/\d+/);
|
|
142
|
+
if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === v && (this.day = Y);
|
|
143
|
+
}], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(v) {
|
|
144
144
|
var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
|
|
145
145
|
return Y.slice(0, 3);
|
|
146
|
-
})).indexOf(
|
|
146
|
+
})).indexOf(v) + 1;
|
|
147
147
|
if (L < 1) throw new Error();
|
|
148
148
|
this.month = L % 12 || L;
|
|
149
|
-
}], MMMM: [D, function(
|
|
150
|
-
var M = S("months").indexOf(
|
|
149
|
+
}], MMMM: [D, function(v) {
|
|
150
|
+
var M = S("months").indexOf(v) + 1;
|
|
151
151
|
if (M < 1) throw new Error();
|
|
152
152
|
this.month = M % 12 || M;
|
|
153
|
-
}], Y: [/[+-]?\d+/, g("year")], YY: [k, function(
|
|
154
|
-
this.year = C(
|
|
155
|
-
}], YYYY: [/\d{4}/, g("year")], Z:
|
|
156
|
-
function
|
|
153
|
+
}], Y: [/[+-]?\d+/, g("year")], YY: [k, function(v) {
|
|
154
|
+
this.year = C(v);
|
|
155
|
+
}], YYYY: [/\d{4}/, g("year")], Z: I, ZZ: I };
|
|
156
|
+
function F(v) {
|
|
157
157
|
var M, L;
|
|
158
|
-
M =
|
|
159
|
-
for (var Y = (
|
|
158
|
+
M = v, L = E && E.formats;
|
|
159
|
+
for (var Y = (v = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, T, m) {
|
|
160
160
|
var w = m && m.toUpperCase();
|
|
161
|
-
return
|
|
162
|
-
return
|
|
161
|
+
return T || L[m] || n[m] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
|
|
162
|
+
return l || h.slice(1);
|
|
163
163
|
});
|
|
164
164
|
})).match(i), N = Y.length, R = 0; R < N; R += 1) {
|
|
165
|
-
var G = Y[R], z =
|
|
165
|
+
var G = Y[R], z = H[G], y = z && z[0], b = z && z[1];
|
|
166
166
|
Y[R] = b ? { regex: y, parser: b } : G.replace(/^\[|\]$/g, "");
|
|
167
167
|
}
|
|
168
|
-
return function(
|
|
169
|
-
for (var
|
|
170
|
-
var
|
|
171
|
-
if (typeof
|
|
168
|
+
return function(x) {
|
|
169
|
+
for (var T = {}, m = 0, w = 0; m < N; m += 1) {
|
|
170
|
+
var o = Y[m];
|
|
171
|
+
if (typeof o == "string") w += o.length;
|
|
172
172
|
else {
|
|
173
|
-
var
|
|
174
|
-
h.call(
|
|
173
|
+
var l = o.regex, h = o.parser, f = x.slice(w), _ = l.exec(f)[0];
|
|
174
|
+
h.call(T, _), x = x.replace(_, "");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
return function(s) {
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
178
|
+
var u = s.afternoon;
|
|
179
|
+
if (u !== void 0) {
|
|
180
180
|
var r = s.hours;
|
|
181
|
-
|
|
181
|
+
u ? r < 12 && (s.hours += 12) : r === 12 && (s.hours = 0), delete s.afternoon;
|
|
182
182
|
}
|
|
183
|
-
}(
|
|
183
|
+
}(T), T;
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
return function(
|
|
187
|
-
L.p.customParseFormat = true,
|
|
186
|
+
return function(v, M, L) {
|
|
187
|
+
L.p.customParseFormat = true, v && v.parseTwoDigitYear && (C = v.parseTwoDigitYear);
|
|
188
188
|
var Y = M.prototype, N = Y.parse;
|
|
189
189
|
Y.parse = function(R) {
|
|
190
190
|
var G = R.date, z = R.utc, y = R.args;
|
|
191
191
|
this.$u = z;
|
|
192
192
|
var b = y[1];
|
|
193
193
|
if (typeof b == "string") {
|
|
194
|
-
var
|
|
195
|
-
|
|
194
|
+
var x = y[2] === true, T = y[3] === true, m = x || T, w = y[2];
|
|
195
|
+
T && (w = y[2]), E = this.$locale(), !x && w && (E = L.Ls[w]), this.$d = function(f, _, s, u) {
|
|
196
196
|
try {
|
|
197
197
|
if (["x", "X"].indexOf(_) > -1) return new Date((_ === "X" ? 1e3 : 1) * f);
|
|
198
|
-
var r =
|
|
199
|
-
|
|
200
|
-
var
|
|
201
|
-
return
|
|
198
|
+
var r = F(_)(f), W = r.year, A = r.month, V = r.day, X = r.hours, P = r.minutes, O = r.seconds, $ = r.milliseconds, st = r.zone, at = r.week, dt = /* @__PURE__ */ new Date(), ft = V || (W || A ? 1 : dt.getDate()), ot = W || dt.getFullYear(), B = 0;
|
|
199
|
+
W && !A || (B = A > 0 ? A - 1 : dt.getMonth());
|
|
200
|
+
var Q, j = X || 0, nt = P || 0, J = O || 0, rt = $ || 0;
|
|
201
|
+
return st ? new Date(Date.UTC(ot, B, ft, j, nt, J, rt + 60 * st.offset * 1e3)) : s ? new Date(Date.UTC(ot, B, ft, j, nt, J, rt)) : (Q = new Date(ot, B, ft, j, nt, J, rt), at && (Q = u(Q).week(at).toDate()), Q);
|
|
202
202
|
} catch {
|
|
203
203
|
return /* @__PURE__ */ new Date("");
|
|
204
204
|
}
|
|
205
205
|
}(G, b, z, L), this.init(), w && w !== true && (this.$L = this.locale(w).$L), m && G != this.format(b) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
|
|
206
|
-
} else if (b instanceof Array) for (var
|
|
207
|
-
y[1] = b[
|
|
206
|
+
} else if (b instanceof Array) for (var o = b.length, l = 1; l <= o; l += 1) {
|
|
207
|
+
y[1] = b[l - 1];
|
|
208
208
|
var h = L.apply(this, y);
|
|
209
209
|
if (h.isValid()) {
|
|
210
210
|
this.$d = h.$d, this.$L = h.$L, this.init();
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
l === o && (this.$d = /* @__PURE__ */ new Date(""));
|
|
214
214
|
}
|
|
215
215
|
else N.call(this, R);
|
|
216
216
|
};
|
|
@@ -218,8 +218,8 @@ function Ke() {
|
|
|
218
218
|
});
|
|
219
219
|
}(Tt)), Tt.exports;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
const tr = /* @__PURE__ */ Wt(
|
|
221
|
+
var Ke = Je();
|
|
222
|
+
const tr = /* @__PURE__ */ Wt(Ke);
|
|
223
223
|
var bt = { exports: {} }, er = bt.exports, ne;
|
|
224
224
|
function rr() {
|
|
225
225
|
return ne || (ne = 1, function(t, e) {
|
|
@@ -231,8 +231,8 @@ function rr() {
|
|
|
231
231
|
a.format = function(d) {
|
|
232
232
|
var D = this, E = this.$locale();
|
|
233
233
|
if (!this.isValid()) return k.bind(this)(d);
|
|
234
|
-
var C = this.$utils(), g = (d || "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(
|
|
235
|
-
switch (
|
|
234
|
+
var C = this.$utils(), g = (d || "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(I) {
|
|
235
|
+
switch (I) {
|
|
236
236
|
case "Q":
|
|
237
237
|
return Math.ceil((D.$M + 1) / 3);
|
|
238
238
|
case "Do":
|
|
@@ -245,13 +245,13 @@ function rr() {
|
|
|
245
245
|
return E.ordinal(D.week(), "W");
|
|
246
246
|
case "w":
|
|
247
247
|
case "ww":
|
|
248
|
-
return C.s(D.week(),
|
|
248
|
+
return C.s(D.week(), I === "w" ? 1 : 2, "0");
|
|
249
249
|
case "W":
|
|
250
250
|
case "WW":
|
|
251
|
-
return C.s(D.isoWeek(),
|
|
251
|
+
return C.s(D.isoWeek(), I === "W" ? 1 : 2, "0");
|
|
252
252
|
case "k":
|
|
253
253
|
case "kk":
|
|
254
|
-
return C.s(String(D.$H === 0 ? 24 : D.$H),
|
|
254
|
+
return C.s(String(D.$H === 0 ? 24 : D.$H), I === "k" ? 1 : 2, "0");
|
|
255
255
|
case "X":
|
|
256
256
|
return Math.floor(D.$d.getTime() / 1e3);
|
|
257
257
|
case "x":
|
|
@@ -261,7 +261,7 @@ function rr() {
|
|
|
261
261
|
case "zzz":
|
|
262
262
|
return "[" + D.offsetName("long") + "]";
|
|
263
263
|
default:
|
|
264
|
-
return
|
|
264
|
+
return I;
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
return k.bind(this)(g);
|
|
@@ -273,17 +273,17 @@ function rr() {
|
|
|
273
273
|
var nr = rr();
|
|
274
274
|
const ir = /* @__PURE__ */ Wt(nr);
|
|
275
275
|
var It = function() {
|
|
276
|
-
var t = /* @__PURE__ */
|
|
277
|
-
for (
|
|
278
|
-
return
|
|
279
|
-
}, "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], i = [1, 27], a = [1, 28], k = [1, 29], d = [1, 30], D = [1, 31], E = [1, 32], C = [1, 33], g = [1, 34],
|
|
280
|
-
trace: /* @__PURE__ */
|
|
276
|
+
var t = /* @__PURE__ */ c(function(w, o, l, h) {
|
|
277
|
+
for (l = l || {}, h = w.length; h--; l[w[h]] = o) ;
|
|
278
|
+
return l;
|
|
279
|
+
}, "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], i = [1, 27], a = [1, 28], k = [1, 29], d = [1, 30], D = [1, 31], E = [1, 32], C = [1, 33], g = [1, 34], I = [1, 9], S = [1, 10], p = [1, 11], H = [1, 12], F = [1, 13], v = [1, 14], M = [1, 15], L = [1, 16], Y = [1, 19], N = [1, 20], R = [1, 21], G = [1, 22], z = [1, 23], y = [1, 25], b = [1, 35], x = {
|
|
280
|
+
trace: /* @__PURE__ */ c(function() {
|
|
281
281
|
}, "trace"),
|
|
282
282
|
yy: {},
|
|
283
283
|
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 },
|
|
284
284
|
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" },
|
|
285
285
|
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]],
|
|
286
|
-
performAction: /* @__PURE__ */
|
|
286
|
+
performAction: /* @__PURE__ */ c(function(o, l, h, f, _, s, u) {
|
|
287
287
|
var r = s.length - 1;
|
|
288
288
|
switch (_) {
|
|
289
289
|
case 1:
|
|
@@ -405,76 +405,76 @@ var It = function() {
|
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
407
|
}, "anonymous"),
|
|
408
|
-
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: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: C, 21: g, 22:
|
|
408
|
+
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: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: C, 21: g, 22: I, 23: S, 24: p, 25: H, 26: F, 27: v, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: C, 21: g, 22: I, 23: S, 24: p, 25: H, 26: F, 27: v, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, 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])],
|
|
409
409
|
defaultActions: {},
|
|
410
|
-
parseError: /* @__PURE__ */
|
|
411
|
-
if (
|
|
412
|
-
this.trace(
|
|
410
|
+
parseError: /* @__PURE__ */ c(function(o, l) {
|
|
411
|
+
if (l.recoverable)
|
|
412
|
+
this.trace(o);
|
|
413
413
|
else {
|
|
414
|
-
var h = new Error(
|
|
415
|
-
throw h.hash =
|
|
414
|
+
var h = new Error(o);
|
|
415
|
+
throw h.hash = l, h;
|
|
416
416
|
}
|
|
417
417
|
}, "parseError"),
|
|
418
|
-
parse: /* @__PURE__ */
|
|
419
|
-
var
|
|
420
|
-
for (var
|
|
421
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
422
|
-
O.setInput(
|
|
423
|
-
var
|
|
424
|
-
s.push(
|
|
418
|
+
parse: /* @__PURE__ */ c(function(o) {
|
|
419
|
+
var l = this, h = [0], f = [], _ = [null], s = [], u = this.table, r = "", W = 0, A = 0, V = 2, X = 1, P = s.slice.call(arguments, 1), O = Object.create(this.lexer), $ = { yy: {} };
|
|
420
|
+
for (var st in this.yy)
|
|
421
|
+
Object.prototype.hasOwnProperty.call(this.yy, st) && ($.yy[st] = this.yy[st]);
|
|
422
|
+
O.setInput(o, $.yy), $.yy.lexer = O, $.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
|
|
423
|
+
var at = O.yylloc;
|
|
424
|
+
s.push(at);
|
|
425
425
|
var dt = O.options && O.options.ranges;
|
|
426
|
-
typeof
|
|
426
|
+
typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
427
427
|
function ft(Z) {
|
|
428
428
|
h.length = h.length - 2 * Z, _.length = _.length - Z, s.length = s.length - Z;
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
c(ft, "popStack");
|
|
431
431
|
function ot() {
|
|
432
432
|
var Z;
|
|
433
|
-
return Z = f.pop() || O.lex() || X, typeof Z != "number" && (Z instanceof Array && (f = Z, Z = f.pop()), Z =
|
|
433
|
+
return Z = f.pop() || O.lex() || X, typeof Z != "number" && (Z instanceof Array && (f = Z, Z = f.pop()), Z = l.symbols_[Z] || Z), Z;
|
|
434
434
|
}
|
|
435
|
-
|
|
436
|
-
for (var B,
|
|
437
|
-
if (
|
|
435
|
+
c(ot, "lex");
|
|
436
|
+
for (var B, Q, j, nt, J = {}, rt, K, Xt, yt; ; ) {
|
|
437
|
+
if (Q = h[h.length - 1], this.defaultActions[Q] ? j = this.defaultActions[Q] : ((B === null || typeof B > "u") && (B = ot()), j = u[Q] && u[Q][B]), typeof j > "u" || !j.length || !j[0]) {
|
|
438
438
|
var Et = "";
|
|
439
439
|
yt = [];
|
|
440
|
-
for (rt in
|
|
441
|
-
this.terminals_[rt] && rt >
|
|
442
|
-
O.showPosition ? Et = "Parse error on line " + (
|
|
440
|
+
for (rt in u[Q])
|
|
441
|
+
this.terminals_[rt] && rt > V && yt.push("'" + this.terminals_[rt] + "'");
|
|
442
|
+
O.showPosition ? Et = "Parse error on line " + (W + 1) + `:
|
|
443
443
|
` + O.showPosition() + `
|
|
444
|
-
Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (
|
|
444
|
+
Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (W + 1) + ": Unexpected " + (B == X ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Et, {
|
|
445
445
|
text: O.match,
|
|
446
446
|
token: this.terminals_[B] || B,
|
|
447
447
|
line: O.yylineno,
|
|
448
|
-
loc:
|
|
448
|
+
loc: at,
|
|
449
449
|
expected: yt
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
if (j[0] instanceof Array && j.length > 1)
|
|
453
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
453
|
+
throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + B);
|
|
454
454
|
switch (j[0]) {
|
|
455
455
|
case 1:
|
|
456
|
-
h.push(B), _.push(O.yytext), s.push(O.yylloc), h.push(j[1]), B = null,
|
|
456
|
+
h.push(B), _.push(O.yytext), s.push(O.yylloc), h.push(j[1]), B = null, A = O.yyleng, r = O.yytext, W = O.yylineno, at = O.yylloc;
|
|
457
457
|
break;
|
|
458
458
|
case 2:
|
|
459
|
-
if (
|
|
460
|
-
first_line: s[s.length - (
|
|
459
|
+
if (K = this.productions_[j[1]][1], J.$ = _[_.length - K], J._$ = {
|
|
460
|
+
first_line: s[s.length - (K || 1)].first_line,
|
|
461
461
|
last_line: s[s.length - 1].last_line,
|
|
462
|
-
first_column: s[s.length - (
|
|
462
|
+
first_column: s[s.length - (K || 1)].first_column,
|
|
463
463
|
last_column: s[s.length - 1].last_column
|
|
464
|
-
}, dt && (
|
|
465
|
-
s[s.length - (
|
|
464
|
+
}, dt && (J._$.range = [
|
|
465
|
+
s[s.length - (K || 1)].range[0],
|
|
466
466
|
s[s.length - 1].range[1]
|
|
467
|
-
]), nt = this.performAction.apply(
|
|
467
|
+
]), nt = this.performAction.apply(J, [
|
|
468
468
|
r,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
A,
|
|
470
|
+
W,
|
|
471
|
+
$.yy,
|
|
472
472
|
j[1],
|
|
473
473
|
_,
|
|
474
474
|
s
|
|
475
475
|
].concat(P)), typeof nt < "u")
|
|
476
476
|
return nt;
|
|
477
|
-
|
|
477
|
+
K && (h = h.slice(0, -1 * K * 2), _ = _.slice(0, -1 * K), s = s.slice(0, -1 * K)), h.push(this.productions_[j[1]][0]), _.push(J.$), s.push(J._$), Xt = u[h[h.length - 2]][h[h.length - 1]], h.push(Xt);
|
|
478
478
|
break;
|
|
479
479
|
case 3:
|
|
480
480
|
return true;
|
|
@@ -482,18 +482,18 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
482
482
|
}
|
|
483
483
|
return true;
|
|
484
484
|
}, "parse")
|
|
485
|
-
},
|
|
485
|
+
}, T = /* @__PURE__ */ function() {
|
|
486
486
|
var w = {
|
|
487
487
|
EOF: 1,
|
|
488
|
-
parseError: /* @__PURE__ */
|
|
488
|
+
parseError: /* @__PURE__ */ c(function(l, h) {
|
|
489
489
|
if (this.yy.parser)
|
|
490
|
-
this.yy.parser.parseError(
|
|
490
|
+
this.yy.parser.parseError(l, h);
|
|
491
491
|
else
|
|
492
|
-
throw new Error(
|
|
492
|
+
throw new Error(l);
|
|
493
493
|
}, "parseError"),
|
|
494
494
|
// resets the lexer, sets new input
|
|
495
|
-
setInput: /* @__PURE__ */
|
|
496
|
-
return this.yy =
|
|
495
|
+
setInput: /* @__PURE__ */ c(function(o, l) {
|
|
496
|
+
return this.yy = l || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
497
497
|
first_line: 1,
|
|
498
498
|
first_column: 0,
|
|
499
499
|
last_line: 1,
|
|
@@ -501,16 +501,16 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
501
501
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
502
502
|
}, "setInput"),
|
|
503
503
|
// consumes and returns one char from the input
|
|
504
|
-
input: /* @__PURE__ */
|
|
505
|
-
var
|
|
506
|
-
this.yytext +=
|
|
507
|
-
var
|
|
508
|
-
return
|
|
504
|
+
input: /* @__PURE__ */ c(function() {
|
|
505
|
+
var o = this._input[0];
|
|
506
|
+
this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
|
|
507
|
+
var l = o.match(/(?:\r\n?|\n).*/g);
|
|
508
|
+
return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
|
|
509
509
|
}, "input"),
|
|
510
510
|
// unshifts one char (or a string) into the input
|
|
511
|
-
unput: /* @__PURE__ */
|
|
512
|
-
var
|
|
513
|
-
this._input =
|
|
511
|
+
unput: /* @__PURE__ */ c(function(o) {
|
|
512
|
+
var l = o.length, h = o.split(/(?:\r\n?|\n)/g);
|
|
513
|
+
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
514
514
|
var f = this.match.split(/(?:\r\n?|\n)/g);
|
|
515
515
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
|
|
516
516
|
var _ = this.yylloc.range;
|
|
@@ -518,15 +518,15 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
518
518
|
first_line: this.yylloc.first_line,
|
|
519
519
|
last_line: this.yylineno + 1,
|
|
520
520
|
first_column: this.yylloc.first_column,
|
|
521
|
-
last_column: h ? (h.length === f.length ? this.yylloc.first_column : 0) + f[f.length - h.length].length - h[0].length : this.yylloc.first_column -
|
|
522
|
-
}, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng -
|
|
521
|
+
last_column: h ? (h.length === f.length ? this.yylloc.first_column : 0) + f[f.length - h.length].length - h[0].length : this.yylloc.first_column - l
|
|
522
|
+
}, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
523
523
|
}, "unput"),
|
|
524
524
|
// When called from action, caches matched text and appends it on next action
|
|
525
|
-
more: /* @__PURE__ */
|
|
525
|
+
more: /* @__PURE__ */ c(function() {
|
|
526
526
|
return this._more = true, this;
|
|
527
527
|
}, "more"),
|
|
528
528
|
// 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.
|
|
529
|
-
reject: /* @__PURE__ */
|
|
529
|
+
reject: /* @__PURE__ */ c(function() {
|
|
530
530
|
if (this.options.backtrack_lexer)
|
|
531
531
|
this._backtrack = true;
|
|
532
532
|
else
|
|
@@ -539,27 +539,27 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
539
539
|
return this;
|
|
540
540
|
}, "reject"),
|
|
541
541
|
// retain first n characters of the match
|
|
542
|
-
less: /* @__PURE__ */
|
|
543
|
-
this.unput(this.match.slice(
|
|
542
|
+
less: /* @__PURE__ */ c(function(o) {
|
|
543
|
+
this.unput(this.match.slice(o));
|
|
544
544
|
}, "less"),
|
|
545
545
|
// displays already matched input, i.e. for error messages
|
|
546
|
-
pastInput: /* @__PURE__ */
|
|
547
|
-
var
|
|
548
|
-
return (
|
|
546
|
+
pastInput: /* @__PURE__ */ c(function() {
|
|
547
|
+
var o = this.matched.substr(0, this.matched.length - this.match.length);
|
|
548
|
+
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
|
|
549
549
|
}, "pastInput"),
|
|
550
550
|
// displays upcoming input, i.e. for error messages
|
|
551
|
-
upcomingInput: /* @__PURE__ */
|
|
552
|
-
var
|
|
553
|
-
return
|
|
551
|
+
upcomingInput: /* @__PURE__ */ c(function() {
|
|
552
|
+
var o = this.match;
|
|
553
|
+
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
554
554
|
}, "upcomingInput"),
|
|
555
555
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
556
|
-
showPosition: /* @__PURE__ */
|
|
557
|
-
var
|
|
558
|
-
return
|
|
559
|
-
` +
|
|
556
|
+
showPosition: /* @__PURE__ */ c(function() {
|
|
557
|
+
var o = this.pastInput(), l = new Array(o.length + 1).join("-");
|
|
558
|
+
return o + this.upcomingInput() + `
|
|
559
|
+
` + l + "^";
|
|
560
560
|
}, "showPosition"),
|
|
561
561
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
562
|
-
test_match: /* @__PURE__ */
|
|
562
|
+
test_match: /* @__PURE__ */ c(function(o, l) {
|
|
563
563
|
var h, f, _;
|
|
564
564
|
if (this.options.backtrack_lexer && (_ = {
|
|
565
565
|
yylineno: this.yylineno,
|
|
@@ -580,12 +580,12 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
580
580
|
yy: this.yy,
|
|
581
581
|
conditionStack: this.conditionStack.slice(0),
|
|
582
582
|
done: this.done
|
|
583
|
-
}, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f =
|
|
583
|
+
}, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = o[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
|
|
584
584
|
first_line: this.yylloc.last_line,
|
|
585
585
|
last_line: this.yylineno + 1,
|
|
586
586
|
first_column: this.yylloc.last_column,
|
|
587
|
-
last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
588
|
-
}, this.yytext +=
|
|
587
|
+
last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
|
588
|
+
}, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(o[0].length), this.matched += o[0], h = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), h)
|
|
589
589
|
return h;
|
|
590
590
|
if (this._backtrack) {
|
|
591
591
|
for (var s in _)
|
|
@@ -595,26 +595,26 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
595
595
|
return false;
|
|
596
596
|
}, "test_match"),
|
|
597
597
|
// return next match in input
|
|
598
|
-
next: /* @__PURE__ */
|
|
598
|
+
next: /* @__PURE__ */ c(function() {
|
|
599
599
|
if (this.done)
|
|
600
600
|
return this.EOF;
|
|
601
601
|
this._input || (this.done = true);
|
|
602
|
-
var
|
|
602
|
+
var o, l, h, f;
|
|
603
603
|
this._more || (this.yytext = "", this.match = "");
|
|
604
604
|
for (var _ = this._currentRules(), s = 0; s < _.length; s++)
|
|
605
|
-
if (h = this._input.match(this.rules[_[s]]), h && (!
|
|
606
|
-
if (
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
605
|
+
if (h = this._input.match(this.rules[_[s]]), h && (!l || h[0].length > l[0].length)) {
|
|
606
|
+
if (l = h, f = s, this.options.backtrack_lexer) {
|
|
607
|
+
if (o = this.test_match(h, _[s]), o !== false)
|
|
608
|
+
return o;
|
|
609
609
|
if (this._backtrack) {
|
|
610
|
-
|
|
610
|
+
l = false;
|
|
611
611
|
continue;
|
|
612
612
|
} else
|
|
613
613
|
return false;
|
|
614
614
|
} else if (!this.options.flex)
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return l ? (o = this.test_match(l, _[f]), o !== false ? o : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
618
618
|
` + this.showPosition(), {
|
|
619
619
|
text: "",
|
|
620
620
|
token: null,
|
|
@@ -622,37 +622,37 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
622
622
|
});
|
|
623
623
|
}, "next"),
|
|
624
624
|
// return next match that has a token
|
|
625
|
-
lex: /* @__PURE__ */
|
|
626
|
-
var
|
|
627
|
-
return
|
|
625
|
+
lex: /* @__PURE__ */ c(function() {
|
|
626
|
+
var l = this.next();
|
|
627
|
+
return l || this.lex();
|
|
628
628
|
}, "lex"),
|
|
629
629
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
630
|
-
begin: /* @__PURE__ */
|
|
631
|
-
this.conditionStack.push(
|
|
630
|
+
begin: /* @__PURE__ */ c(function(l) {
|
|
631
|
+
this.conditionStack.push(l);
|
|
632
632
|
}, "begin"),
|
|
633
633
|
// pop the previously active lexer condition state off the condition stack
|
|
634
|
-
popState: /* @__PURE__ */
|
|
635
|
-
var
|
|
636
|
-
return
|
|
634
|
+
popState: /* @__PURE__ */ c(function() {
|
|
635
|
+
var l = this.conditionStack.length - 1;
|
|
636
|
+
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
637
637
|
}, "popState"),
|
|
638
638
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
639
|
-
_currentRules: /* @__PURE__ */
|
|
639
|
+
_currentRules: /* @__PURE__ */ c(function() {
|
|
640
640
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
641
641
|
}, "_currentRules"),
|
|
642
642
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
643
|
-
topState: /* @__PURE__ */
|
|
644
|
-
return
|
|
643
|
+
topState: /* @__PURE__ */ c(function(l) {
|
|
644
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
645
645
|
}, "topState"),
|
|
646
646
|
// alias for begin(condition)
|
|
647
|
-
pushState: /* @__PURE__ */
|
|
648
|
-
this.begin(
|
|
647
|
+
pushState: /* @__PURE__ */ c(function(l) {
|
|
648
|
+
this.begin(l);
|
|
649
649
|
}, "pushState"),
|
|
650
650
|
// return the number of states currently on the stack
|
|
651
|
-
stateStackSize: /* @__PURE__ */
|
|
651
|
+
stateStackSize: /* @__PURE__ */ c(function() {
|
|
652
652
|
return this.conditionStack.length;
|
|
653
653
|
}, "stateStackSize"),
|
|
654
654
|
options: { "case-insensitive": true },
|
|
655
|
-
performAction: /* @__PURE__ */
|
|
655
|
+
performAction: /* @__PURE__ */ c(function(l, h, f, _) {
|
|
656
656
|
switch (f) {
|
|
657
657
|
case 0:
|
|
658
658
|
return this.begin("open_directive"), "open_directive";
|
|
@@ -777,77 +777,77 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
777
777
|
};
|
|
778
778
|
return w;
|
|
779
779
|
}();
|
|
780
|
-
|
|
780
|
+
x.lexer = T;
|
|
781
781
|
function m() {
|
|
782
782
|
this.yy = {};
|
|
783
783
|
}
|
|
784
|
-
return
|
|
784
|
+
return c(m, "Parser"), m.prototype = x, x.Parser = m, new m();
|
|
785
785
|
}();
|
|
786
786
|
It.parser = It;
|
|
787
|
-
var
|
|
788
|
-
U.extend(
|
|
787
|
+
var sr = It;
|
|
788
|
+
U.extend(Qe);
|
|
789
789
|
U.extend(tr);
|
|
790
790
|
U.extend(ir);
|
|
791
|
-
var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht = [], mt = [], Ot = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone"
|
|
792
|
-
Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0,
|
|
793
|
-
}, "clear"), or = /* @__PURE__ */
|
|
791
|
+
var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht = [], mt = [], Ot = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone"], Bt = [], kt = false, qt = false, Ht = "sunday", Ct = "saturday", Ft = 0, ar = /* @__PURE__ */ c(function() {
|
|
792
|
+
Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, q = [], tt = "", Vt = "", Nt = "", Pt = void 0, zt = "", ht = [], mt = [], kt = false, qt = false, Ft = 0, Ot = /* @__PURE__ */ new Map(), De(), Ht = "sunday", Ct = "saturday";
|
|
793
|
+
}, "clear"), or = /* @__PURE__ */ c(function(t) {
|
|
794
794
|
Vt = t;
|
|
795
|
-
}, "setAxisFormat"), cr = /* @__PURE__ */
|
|
795
|
+
}, "setAxisFormat"), cr = /* @__PURE__ */ c(function() {
|
|
796
796
|
return Vt;
|
|
797
|
-
}, "getAxisFormat"), lr = /* @__PURE__ */
|
|
797
|
+
}, "getAxisFormat"), lr = /* @__PURE__ */ c(function(t) {
|
|
798
798
|
Pt = t;
|
|
799
|
-
}, "setTickInterval"), ur = /* @__PURE__ */
|
|
799
|
+
}, "setTickInterval"), ur = /* @__PURE__ */ c(function() {
|
|
800
800
|
return Pt;
|
|
801
|
-
}, "getTickInterval"), dr = /* @__PURE__ */
|
|
801
|
+
}, "getTickInterval"), dr = /* @__PURE__ */ c(function(t) {
|
|
802
802
|
zt = t;
|
|
803
|
-
}, "setTodayMarker"), fr = /* @__PURE__ */
|
|
803
|
+
}, "setTodayMarker"), fr = /* @__PURE__ */ c(function() {
|
|
804
804
|
return zt;
|
|
805
|
-
}, "getTodayMarker"), hr = /* @__PURE__ */
|
|
805
|
+
}, "getTodayMarker"), hr = /* @__PURE__ */ c(function(t) {
|
|
806
806
|
tt = t;
|
|
807
|
-
}, "setDateFormat"), mr = /* @__PURE__ */
|
|
807
|
+
}, "setDateFormat"), mr = /* @__PURE__ */ c(function() {
|
|
808
808
|
kt = true;
|
|
809
|
-
}, "enableInclusiveEndDates"), kr = /* @__PURE__ */
|
|
809
|
+
}, "enableInclusiveEndDates"), kr = /* @__PURE__ */ c(function() {
|
|
810
810
|
return kt;
|
|
811
|
-
}, "endDatesAreInclusive"), yr = /* @__PURE__ */
|
|
812
|
-
|
|
813
|
-
}, "enableTopAxis"), gr = /* @__PURE__ */
|
|
814
|
-
return
|
|
815
|
-
}, "topAxisEnabled"), pr = /* @__PURE__ */
|
|
811
|
+
}, "endDatesAreInclusive"), yr = /* @__PURE__ */ c(function() {
|
|
812
|
+
qt = true;
|
|
813
|
+
}, "enableTopAxis"), gr = /* @__PURE__ */ c(function() {
|
|
814
|
+
return qt;
|
|
815
|
+
}, "topAxisEnabled"), pr = /* @__PURE__ */ c(function(t) {
|
|
816
816
|
Nt = t;
|
|
817
|
-
}, "setDisplayMode"), vr = /* @__PURE__ */
|
|
817
|
+
}, "setDisplayMode"), vr = /* @__PURE__ */ c(function() {
|
|
818
818
|
return Nt;
|
|
819
|
-
}, "getDisplayMode"), xr = /* @__PURE__ */
|
|
819
|
+
}, "getDisplayMode"), xr = /* @__PURE__ */ c(function() {
|
|
820
820
|
return tt;
|
|
821
|
-
}, "getDateFormat"), Tr = /* @__PURE__ */
|
|
821
|
+
}, "getDateFormat"), Tr = /* @__PURE__ */ c(function(t) {
|
|
822
822
|
ht = t.toLowerCase().split(/[\s,]+/);
|
|
823
|
-
}, "setIncludes"), br = /* @__PURE__ */
|
|
823
|
+
}, "setIncludes"), br = /* @__PURE__ */ c(function() {
|
|
824
824
|
return ht;
|
|
825
|
-
}, "getIncludes"), wr = /* @__PURE__ */
|
|
825
|
+
}, "getIncludes"), wr = /* @__PURE__ */ c(function(t) {
|
|
826
826
|
mt = t.toLowerCase().split(/[\s,]+/);
|
|
827
|
-
}, "setExcludes"), _r = /* @__PURE__ */
|
|
827
|
+
}, "setExcludes"), _r = /* @__PURE__ */ c(function() {
|
|
828
828
|
return mt;
|
|
829
|
-
}, "getExcludes"), Dr = /* @__PURE__ */
|
|
829
|
+
}, "getExcludes"), Dr = /* @__PURE__ */ c(function() {
|
|
830
830
|
return Ot;
|
|
831
|
-
}, "getLinks"), Sr = /* @__PURE__ */
|
|
831
|
+
}, "getLinks"), Sr = /* @__PURE__ */ c(function(t) {
|
|
832
832
|
ut = t, Rt.push(t);
|
|
833
|
-
}, "addSection"), Cr = /* @__PURE__ */
|
|
833
|
+
}, "addSection"), Cr = /* @__PURE__ */ c(function() {
|
|
834
834
|
return Rt;
|
|
835
|
-
}, "getSections"), Er = /* @__PURE__ */
|
|
836
|
-
let t =
|
|
835
|
+
}, "getSections"), Er = /* @__PURE__ */ c(function() {
|
|
836
|
+
let t = se();
|
|
837
837
|
const e = 10;
|
|
838
838
|
let n = 0;
|
|
839
839
|
for (; !t && n < e; )
|
|
840
|
-
t =
|
|
841
|
-
return St =
|
|
842
|
-
}, "getTasks"), le = /* @__PURE__ */
|
|
840
|
+
t = se(), n++;
|
|
841
|
+
return St = q, St;
|
|
842
|
+
}, "getTasks"), le = /* @__PURE__ */ c(function(t, e, n, i) {
|
|
843
843
|
return i.includes(t.format(e.trim())) ? false : n.includes("weekends") && (t.isoWeekday() === ie[Ct] || t.isoWeekday() === ie[Ct] + 1) || n.includes(t.format("dddd").toLowerCase()) ? true : n.includes(t.format(e.trim()));
|
|
844
|
-
}, "isInvalidDate"), Mr = /* @__PURE__ */
|
|
845
|
-
|
|
846
|
-
}, "setWeekday"), Ar = /* @__PURE__ */
|
|
847
|
-
return
|
|
848
|
-
}, "getWeekday"), Ir = /* @__PURE__ */
|
|
844
|
+
}, "isInvalidDate"), Mr = /* @__PURE__ */ c(function(t) {
|
|
845
|
+
Ht = t;
|
|
846
|
+
}, "setWeekday"), Ar = /* @__PURE__ */ c(function() {
|
|
847
|
+
return Ht;
|
|
848
|
+
}, "getWeekday"), Ir = /* @__PURE__ */ c(function(t) {
|
|
849
849
|
Ct = t;
|
|
850
|
-
}, "setWeekend"), ue = /* @__PURE__ */
|
|
850
|
+
}, "setWeekend"), ue = /* @__PURE__ */ c(function(t, e, n, i) {
|
|
851
851
|
if (!n.length || t.manualEndTime)
|
|
852
852
|
return;
|
|
853
853
|
let a;
|
|
@@ -862,12 +862,12 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
862
862
|
i
|
|
863
863
|
);
|
|
864
864
|
t.endTime = d.toDate(), t.renderEndTime = D;
|
|
865
|
-
}, "checkTaskDates"), Fr = /* @__PURE__ */
|
|
865
|
+
}, "checkTaskDates"), Fr = /* @__PURE__ */ c(function(t, e, n, i, a) {
|
|
866
866
|
let k = false, d = null;
|
|
867
867
|
for (; t <= e; )
|
|
868
868
|
k || (d = e.toDate()), k = le(t, n, i, a), k && (e = e.add(1, "d")), t = t.add(1, "d");
|
|
869
869
|
return [e, d];
|
|
870
|
-
}, "fixTaskDates"), Lt = /* @__PURE__ */
|
|
870
|
+
}, "fixTaskDates"), Lt = /* @__PURE__ */ c(function(t, e, n) {
|
|
871
871
|
n = n.trim();
|
|
872
872
|
const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
|
|
873
873
|
if (a !== null) {
|
|
@@ -896,22 +896,22 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
896
896
|
throw new Error("Invalid date:" + n);
|
|
897
897
|
return d;
|
|
898
898
|
}
|
|
899
|
-
}, "getStartDate"), de = /* @__PURE__ */
|
|
899
|
+
}, "getStartDate"), de = /* @__PURE__ */ c(function(t) {
|
|
900
900
|
const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
|
|
901
901
|
return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
|
|
902
|
-
}, "parseDuration"), fe = /* @__PURE__ */
|
|
902
|
+
}, "parseDuration"), fe = /* @__PURE__ */ c(function(t, e, n, i = false) {
|
|
903
903
|
n = n.trim();
|
|
904
904
|
const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
|
|
905
905
|
if (k !== null) {
|
|
906
906
|
let g = null;
|
|
907
907
|
for (const S of k.groups.ids.split(" ")) {
|
|
908
|
-
let
|
|
909
|
-
|
|
908
|
+
let p = it(S);
|
|
909
|
+
p !== void 0 && (!g || p.startTime < g.startTime) && (g = p);
|
|
910
910
|
}
|
|
911
911
|
if (g)
|
|
912
912
|
return g.startTime;
|
|
913
|
-
const
|
|
914
|
-
return
|
|
913
|
+
const I = /* @__PURE__ */ new Date();
|
|
914
|
+
return I.setHours(0, 0, 0, 0), I;
|
|
915
915
|
}
|
|
916
916
|
let d = U(n, e.trim(), true);
|
|
917
917
|
if (d.isValid())
|
|
@@ -923,9 +923,9 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
923
923
|
g.isValid() && (D = g);
|
|
924
924
|
}
|
|
925
925
|
return D.toDate();
|
|
926
|
-
}, "getEndDate"), wt = 0, lt = /* @__PURE__ */
|
|
926
|
+
}, "getEndDate"), wt = 0, lt = /* @__PURE__ */ c(function(t) {
|
|
927
927
|
return t === void 0 ? (wt = wt + 1, "task" + wt) : t;
|
|
928
|
-
}, "parseId"), Lr = /* @__PURE__ */
|
|
928
|
+
}, "parseId"), Lr = /* @__PURE__ */ c(function(t, e) {
|
|
929
929
|
let n;
|
|
930
930
|
e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
|
|
931
931
|
const i = n.split(","), a = {};
|
|
@@ -945,7 +945,7 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
945
945
|
break;
|
|
946
946
|
}
|
|
947
947
|
return k && (a.endTime = fe(a.startTime, tt, k, kt), a.manualEndTime = U(k, "YYYY-MM-DD", true).isValid(), ue(a, tt, mt, ht)), a;
|
|
948
|
-
}, "compileData"), Yr = /* @__PURE__ */
|
|
948
|
+
}, "compileData"), Yr = /* @__PURE__ */ c(function(t, e) {
|
|
949
949
|
let n;
|
|
950
950
|
e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
|
|
951
951
|
const i = n.split(","), a = {};
|
|
@@ -979,7 +979,7 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
979
979
|
break;
|
|
980
980
|
}
|
|
981
981
|
return a;
|
|
982
|
-
}, "parseData"), Yt, _t,
|
|
982
|
+
}, "parseData"), Yt, _t, q = [], he = {}, Wr = /* @__PURE__ */ c(function(t, e) {
|
|
983
983
|
const n = {
|
|
984
984
|
section: ut,
|
|
985
985
|
type: ut,
|
|
@@ -990,13 +990,13 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
990
990
|
task: t,
|
|
991
991
|
classes: []
|
|
992
992
|
}, i = Yr(_t, e);
|
|
993
|
-
n.raw.startTime = i.startTime, n.raw.endTime = i.endTime, n.id = i.id, n.prevTaskId = _t, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, n.
|
|
994
|
-
const a =
|
|
993
|
+
n.raw.startTime = i.startTime, n.raw.endTime = i.endTime, n.id = i.id, n.prevTaskId = _t, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, n.order = Ft, Ft++;
|
|
994
|
+
const a = q.push(n);
|
|
995
995
|
_t = n.id, he[n.id] = a - 1;
|
|
996
|
-
}, "addTask"), it = /* @__PURE__ */
|
|
996
|
+
}, "addTask"), it = /* @__PURE__ */ c(function(t) {
|
|
997
997
|
const e = he[t];
|
|
998
|
-
return
|
|
999
|
-
}, "findTaskById"), Vr = /* @__PURE__ */
|
|
998
|
+
return q[e];
|
|
999
|
+
}, "findTaskById"), Vr = /* @__PURE__ */ c(function(t, e) {
|
|
1000
1000
|
const n = {
|
|
1001
1001
|
section: ut,
|
|
1002
1002
|
type: ut,
|
|
@@ -1004,49 +1004,49 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1004
1004
|
task: t,
|
|
1005
1005
|
classes: []
|
|
1006
1006
|
}, i = Lr(Yt, e);
|
|
1007
|
-
n.startTime = i.startTime, n.endTime = i.endTime, n.id = i.id, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone,
|
|
1008
|
-
}, "addTaskOrg"),
|
|
1009
|
-
const t = /* @__PURE__ */
|
|
1010
|
-
const i =
|
|
1007
|
+
n.startTime = i.startTime, n.endTime = i.endTime, n.id = i.id, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, Yt = n, St.push(n);
|
|
1008
|
+
}, "addTaskOrg"), se = /* @__PURE__ */ c(function() {
|
|
1009
|
+
const t = /* @__PURE__ */ c(function(n) {
|
|
1010
|
+
const i = q[n];
|
|
1011
1011
|
let a = "";
|
|
1012
|
-
switch (
|
|
1012
|
+
switch (q[n].raw.startTime.type) {
|
|
1013
1013
|
case "prevTaskEnd": {
|
|
1014
1014
|
const k = it(i.prevTaskId);
|
|
1015
1015
|
i.startTime = k.endTime;
|
|
1016
1016
|
break;
|
|
1017
1017
|
}
|
|
1018
1018
|
case "getStartDate":
|
|
1019
|
-
a = Lt(void 0, tt,
|
|
1019
|
+
a = Lt(void 0, tt, q[n].raw.startTime.startData), a && (q[n].startTime = a);
|
|
1020
1020
|
break;
|
|
1021
1021
|
}
|
|
1022
|
-
return
|
|
1023
|
-
|
|
1022
|
+
return q[n].startTime && (q[n].endTime = fe(
|
|
1023
|
+
q[n].startTime,
|
|
1024
1024
|
tt,
|
|
1025
|
-
|
|
1025
|
+
q[n].raw.endTime.data,
|
|
1026
1026
|
kt
|
|
1027
|
-
),
|
|
1028
|
-
|
|
1027
|
+
), q[n].endTime && (q[n].processed = true, q[n].manualEndTime = U(
|
|
1028
|
+
q[n].raw.endTime.data,
|
|
1029
1029
|
"YYYY-MM-DD",
|
|
1030
1030
|
true
|
|
1031
|
-
).isValid(), ue(
|
|
1031
|
+
).isValid(), ue(q[n], tt, mt, ht))), q[n].processed;
|
|
1032
1032
|
}, "compileTask");
|
|
1033
1033
|
let e = true;
|
|
1034
|
-
for (const [n, i] of
|
|
1034
|
+
for (const [n, i] of q.entries())
|
|
1035
1035
|
t(n), e = e && i.processed;
|
|
1036
1036
|
return e;
|
|
1037
|
-
}, "compileTasks"), Pr = /* @__PURE__ */
|
|
1037
|
+
}, "compileTasks"), Pr = /* @__PURE__ */ c(function(t, e) {
|
|
1038
1038
|
let n = e;
|
|
1039
1039
|
ct().securityLevel !== "loose" && (n = _e.sanitizeUrl(e)), t.split(",").forEach(function(i) {
|
|
1040
1040
|
it(i) !== void 0 && (ke(i, () => {
|
|
1041
1041
|
window.open(n, "_self");
|
|
1042
1042
|
}), Ot.set(i, n));
|
|
1043
1043
|
}), me(t, "clickable");
|
|
1044
|
-
}, "setLink"), me = /* @__PURE__ */
|
|
1044
|
+
}, "setLink"), me = /* @__PURE__ */ c(function(t, e) {
|
|
1045
1045
|
t.split(",").forEach(function(n) {
|
|
1046
1046
|
let i = it(n);
|
|
1047
1047
|
i !== void 0 && i.classes.push(e);
|
|
1048
1048
|
});
|
|
1049
|
-
}, "setClass"), zr = /* @__PURE__ */
|
|
1049
|
+
}, "setClass"), zr = /* @__PURE__ */ c(function(t, e, n) {
|
|
1050
1050
|
if (ct().securityLevel !== "loose" || e === void 0)
|
|
1051
1051
|
return;
|
|
1052
1052
|
let i = [];
|
|
@@ -1060,7 +1060,7 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1060
1060
|
i.length === 0 && i.push(t), it(t) !== void 0 && ke(t, () => {
|
|
1061
1061
|
Se.runFunc(e, ...i);
|
|
1062
1062
|
});
|
|
1063
|
-
}, "setClickFun"), ke = /* @__PURE__ */
|
|
1063
|
+
}, "setClickFun"), ke = /* @__PURE__ */ c(function(t, e) {
|
|
1064
1064
|
Bt.push(
|
|
1065
1065
|
function() {
|
|
1066
1066
|
const n = document.querySelector(`[id="${t}"]`);
|
|
@@ -1075,17 +1075,17 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
);
|
|
1078
|
-
}, "pushFun"), Or = /* @__PURE__ */
|
|
1078
|
+
}, "pushFun"), Or = /* @__PURE__ */ c(function(t, e, n) {
|
|
1079
1079
|
t.split(",").forEach(function(i) {
|
|
1080
1080
|
zr(i, e, n);
|
|
1081
1081
|
}), me(t, "clickable");
|
|
1082
|
-
}, "setClickEvent"), Rr = /* @__PURE__ */
|
|
1082
|
+
}, "setClickEvent"), Rr = /* @__PURE__ */ c(function(t) {
|
|
1083
1083
|
Bt.forEach(function(e) {
|
|
1084
1084
|
e(t);
|
|
1085
1085
|
});
|
|
1086
1086
|
}, "bindFunctions"), Nr = {
|
|
1087
|
-
getConfig: /* @__PURE__ */
|
|
1088
|
-
clear:
|
|
1087
|
+
getConfig: /* @__PURE__ */ c(() => ct().gantt, "getConfig"),
|
|
1088
|
+
clear: ar,
|
|
1089
1089
|
setDateFormat: hr,
|
|
1090
1090
|
getDateFormat: xr,
|
|
1091
1091
|
enableInclusiveEndDates: mr,
|
|
@@ -1134,10 +1134,10 @@ function Gt(t, e, n) {
|
|
|
1134
1134
|
t[0].match(d) && (e[a] = true, t.shift(1), i = true);
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
|
|
1138
|
-
var Br = /* @__PURE__ */
|
|
1137
|
+
c(Gt, "getTaskTags");
|
|
1138
|
+
var Br = /* @__PURE__ */ c(function() {
|
|
1139
1139
|
Dt.debug("Something is calling, setConf, remove the call");
|
|
1140
|
-
}, "setConf"),
|
|
1140
|
+
}, "setConf"), ae = {
|
|
1141
1141
|
monday: Le,
|
|
1142
1142
|
tuesday: Fe,
|
|
1143
1143
|
wednesday: Ie,
|
|
@@ -1145,7 +1145,7 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1145
1145
|
friday: Me,
|
|
1146
1146
|
saturday: Ee,
|
|
1147
1147
|
sunday: Ce
|
|
1148
|
-
},
|
|
1148
|
+
}, qr = /* @__PURE__ */ c((t, e) => {
|
|
1149
1149
|
let n = [...t].map(() => -1 / 0), i = [...t].sort((k, d) => k.startTime - d.startTime || k.order - d.order), a = 0;
|
|
1150
1150
|
for (const k of i)
|
|
1151
1151
|
for (let d = 0; d < n.length; d++)
|
|
@@ -1154,35 +1154,35 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1154
1154
|
break;
|
|
1155
1155
|
}
|
|
1156
1156
|
return a;
|
|
1157
|
-
}, "getMaxIntersections"), et,
|
|
1157
|
+
}, "getMaxIntersections"), et, Hr = /* @__PURE__ */ c(function(t, e, n, i) {
|
|
1158
1158
|
const a = ct().gantt, k = ct().securityLevel;
|
|
1159
1159
|
let d;
|
|
1160
1160
|
k === "sandbox" && (d = gt("#i" + e));
|
|
1161
1161
|
const D = k === "sandbox" ? gt(d.nodes()[0].contentDocument.body) : gt("body"), E = k === "sandbox" ? d.nodes()[0].contentDocument : document, C = E.getElementById(e);
|
|
1162
1162
|
et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
|
|
1163
1163
|
const g = i.db.getTasks();
|
|
1164
|
-
let
|
|
1164
|
+
let I = [];
|
|
1165
1165
|
for (const y of g)
|
|
1166
|
-
|
|
1167
|
-
|
|
1166
|
+
I.push(y.type);
|
|
1167
|
+
I = z(I);
|
|
1168
1168
|
const S = {};
|
|
1169
|
-
let
|
|
1169
|
+
let p = 2 * a.topPadding;
|
|
1170
1170
|
if (i.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
|
|
1171
1171
|
const y = {};
|
|
1172
|
-
for (const
|
|
1173
|
-
y[
|
|
1172
|
+
for (const x of g)
|
|
1173
|
+
y[x.section] === void 0 ? y[x.section] = [x] : y[x.section].push(x);
|
|
1174
1174
|
let b = 0;
|
|
1175
|
-
for (const
|
|
1176
|
-
const
|
|
1177
|
-
b +=
|
|
1175
|
+
for (const x of Object.keys(y)) {
|
|
1176
|
+
const T = qr(y[x], b) + 1;
|
|
1177
|
+
b += T, p += T * (a.barHeight + a.barGap), S[x] = T;
|
|
1178
1178
|
}
|
|
1179
1179
|
} else {
|
|
1180
|
-
|
|
1181
|
-
for (const y of
|
|
1180
|
+
p += g.length * (a.barHeight + a.barGap);
|
|
1181
|
+
for (const y of I)
|
|
1182
1182
|
S[y] = g.filter((b) => b.type === y).length;
|
|
1183
1183
|
}
|
|
1184
|
-
C.setAttribute("viewBox", "0 0 " + et + " " +
|
|
1185
|
-
const
|
|
1184
|
+
C.setAttribute("viewBox", "0 0 " + et + " " + p);
|
|
1185
|
+
const H = D.select(`[id="${e}"]`), F = Ye().domain([
|
|
1186
1186
|
We(g, function(y) {
|
|
1187
1187
|
return y.startTime;
|
|
1188
1188
|
}),
|
|
@@ -1190,106 +1190,102 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1190
1190
|
return y.endTime;
|
|
1191
1191
|
})
|
|
1192
1192
|
]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
|
|
1193
|
-
function
|
|
1194
|
-
const
|
|
1193
|
+
function v(y, b) {
|
|
1194
|
+
const x = y.startTime, T = b.startTime;
|
|
1195
1195
|
let m = 0;
|
|
1196
|
-
return
|
|
1196
|
+
return x > T ? m = 1 : x < T && (m = -1), m;
|
|
1197
1197
|
}
|
|
1198
|
-
|
|
1199
|
-
function M(y, b,
|
|
1200
|
-
const
|
|
1198
|
+
c(v, "taskCompare"), g.sort(v), M(g, et, p), be(H, p, et, a.useMaxWidth), H.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
|
|
1199
|
+
function M(y, b, x) {
|
|
1200
|
+
const T = a.barHeight, m = T + a.barGap, w = a.topPadding, o = a.leftPadding, l = ze().domain([0, I.length]).range(["#00B9FA", "#F95002"]).interpolate(Pe);
|
|
1201
1201
|
Y(
|
|
1202
1202
|
m,
|
|
1203
1203
|
w,
|
|
1204
|
-
|
|
1204
|
+
o,
|
|
1205
1205
|
b,
|
|
1206
|
-
|
|
1206
|
+
x,
|
|
1207
1207
|
y,
|
|
1208
1208
|
i.db.getExcludes(),
|
|
1209
1209
|
i.db.getIncludes()
|
|
1210
|
-
), N(
|
|
1210
|
+
), N(o, w, b, x), L(y, m, w, o, T, l, b), R(m, w), G(o, w, b, x);
|
|
1211
1211
|
}
|
|
1212
|
-
|
|
1213
|
-
function L(y, b,
|
|
1214
|
-
y.
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
return r = o.order, r * b + T - 2;
|
|
1212
|
+
c(M, "makeGantt");
|
|
1213
|
+
function L(y, b, x, T, m, w, o) {
|
|
1214
|
+
const h = [...new Set(y.map((u) => u.order))].map((u) => y.find((r) => r.order === u));
|
|
1215
|
+
H.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(u, r) {
|
|
1216
|
+
return r = u.order, r * b + x - 2;
|
|
1218
1217
|
}).attr("width", function() {
|
|
1219
|
-
return
|
|
1220
|
-
}).attr("height", b).attr("class", function(
|
|
1221
|
-
for (const [r,
|
|
1222
|
-
if (
|
|
1218
|
+
return o - a.rightPadding / 2;
|
|
1219
|
+
}).attr("height", b).attr("class", function(u) {
|
|
1220
|
+
for (const [r, W] of I.entries())
|
|
1221
|
+
if (u.type === W)
|
|
1223
1222
|
return "section section" + r % a.numberSectionStyles;
|
|
1224
1223
|
return "section section0";
|
|
1225
|
-
})
|
|
1226
|
-
const f =
|
|
1227
|
-
if (f.append("rect").attr("id", function(
|
|
1228
|
-
return
|
|
1229
|
-
}).attr("rx", 3).attr("ry", 3).attr("x", function(
|
|
1230
|
-
return
|
|
1231
|
-
}).attr("y", function(
|
|
1232
|
-
return r =
|
|
1233
|
-
}).attr("width", function(
|
|
1234
|
-
return
|
|
1235
|
-
}).attr("height", function(
|
|
1236
|
-
return
|
|
1237
|
-
}).attr("
|
|
1238
|
-
return r = o.order, (A(o.startTime) + p + 0.5 * (A(o.endTime) - A(o.startTime))).toString() + "px " + (r * b + T + 0.5 * m).toString() + "px";
|
|
1239
|
-
}).attr("class", function(o) {
|
|
1224
|
+
});
|
|
1225
|
+
const f = H.append("g").selectAll("rect").data(y).enter(), _ = i.db.getLinks();
|
|
1226
|
+
if (f.append("rect").attr("id", function(u) {
|
|
1227
|
+
return u.id;
|
|
1228
|
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
|
|
1229
|
+
return u.milestone ? F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m : F(u.startTime) + T;
|
|
1230
|
+
}).attr("y", function(u, r) {
|
|
1231
|
+
return r = u.order, r * b + x;
|
|
1232
|
+
}).attr("width", function(u) {
|
|
1233
|
+
return u.milestone ? m : F(u.renderEndTime || u.endTime) - F(u.startTime);
|
|
1234
|
+
}).attr("height", m).attr("transform-origin", function(u, r) {
|
|
1235
|
+
return r = u.order, (F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime))).toString() + "px " + (r * b + x + 0.5 * m).toString() + "px";
|
|
1236
|
+
}).attr("class", function(u) {
|
|
1240
1237
|
const r = "task";
|
|
1241
|
-
let V = "";
|
|
1242
|
-
o.classes.length > 0 && (V = o.classes.join(" "));
|
|
1243
|
-
let I = 0;
|
|
1244
|
-
for (const [X, P] of F.entries())
|
|
1245
|
-
o.type === P && (I = X % a.numberSectionStyles);
|
|
1246
|
-
let W = "";
|
|
1247
|
-
return o.active ? o.crit ? W += " activeCrit" : W = " active" : o.done ? o.crit ? W = " doneCrit" : W = " done" : o.crit && (W += " crit"), W.length === 0 && (W = " task"), o.milestone && (W = " milestone " + W), o.vert && (W = " vert " + W), W += I, W += " " + V, r + W;
|
|
1248
|
-
}), f.append("text").attr("id", function(o) {
|
|
1249
|
-
return o.id + "-text";
|
|
1250
|
-
}).text(function(o) {
|
|
1251
|
-
return o.task;
|
|
1252
|
-
}).attr("font-size", a.fontSize).attr("x", function(o) {
|
|
1253
|
-
let r = A(o.startTime), V = A(o.renderEndTime || o.endTime);
|
|
1254
|
-
if (o.milestone && (r += 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m, V = r + m), o.vert)
|
|
1255
|
-
return A(o.startTime) + p;
|
|
1256
|
-
const I = this.getBBox().width;
|
|
1257
|
-
return I > V - r ? V + I + 1.5 * a.leftPadding > c ? r + p - 5 : V + p + 5 : (V - r) / 2 + r + p;
|
|
1258
|
-
}).attr("y", function(o, r) {
|
|
1259
|
-
return o.vert ? a.gridLineStartPadding + g.length * (a.barHeight + a.barGap) + 60 : (r = o.order, r * b + a.barHeight / 2 + (a.fontSize / 2 - 2) + T);
|
|
1260
|
-
}).attr("text-height", m).attr("class", function(o) {
|
|
1261
|
-
const r = A(o.startTime);
|
|
1262
|
-
let V = A(o.endTime);
|
|
1263
|
-
o.milestone && (V = r + m);
|
|
1264
|
-
const I = this.getBBox().width;
|
|
1265
1238
|
let W = "";
|
|
1266
|
-
|
|
1239
|
+
u.classes.length > 0 && (W = u.classes.join(" "));
|
|
1240
|
+
let A = 0;
|
|
1241
|
+
for (const [X, P] of I.entries())
|
|
1242
|
+
u.type === P && (A = X % a.numberSectionStyles);
|
|
1243
|
+
let V = "";
|
|
1244
|
+
return u.active ? u.crit ? V += " activeCrit" : V = " active" : u.done ? u.crit ? V = " doneCrit" : V = " done" : u.crit && (V += " crit"), V.length === 0 && (V = " task"), u.milestone && (V = " milestone " + V), V += A, V += " " + W, r + V;
|
|
1245
|
+
}), f.append("text").attr("id", function(u) {
|
|
1246
|
+
return u.id + "-text";
|
|
1247
|
+
}).text(function(u) {
|
|
1248
|
+
return u.task;
|
|
1249
|
+
}).attr("font-size", a.fontSize).attr("x", function(u) {
|
|
1250
|
+
let r = F(u.startTime), W = F(u.renderEndTime || u.endTime);
|
|
1251
|
+
u.milestone && (r += 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m), u.milestone && (W = r + m);
|
|
1252
|
+
const A = this.getBBox().width;
|
|
1253
|
+
return A > W - r ? W + A + 1.5 * a.leftPadding > o ? r + T - 5 : W + T + 5 : (W - r) / 2 + r + T;
|
|
1254
|
+
}).attr("y", function(u, r) {
|
|
1255
|
+
return r = u.order, r * b + a.barHeight / 2 + (a.fontSize / 2 - 2) + x;
|
|
1256
|
+
}).attr("text-height", m).attr("class", function(u) {
|
|
1257
|
+
const r = F(u.startTime);
|
|
1258
|
+
let W = F(u.endTime);
|
|
1259
|
+
u.milestone && (W = r + m);
|
|
1260
|
+
const A = this.getBBox().width;
|
|
1261
|
+
let V = "";
|
|
1262
|
+
u.classes.length > 0 && (V = u.classes.join(" "));
|
|
1267
1263
|
let X = 0;
|
|
1268
|
-
for (const [O,
|
|
1269
|
-
|
|
1264
|
+
for (const [O, $] of I.entries())
|
|
1265
|
+
u.type === $ && (X = O % a.numberSectionStyles);
|
|
1270
1266
|
let P = "";
|
|
1271
|
-
return
|
|
1267
|
+
return u.active && (u.crit ? P = "activeCritText" + X : P = "activeText" + X), u.done ? u.crit ? P = P + " doneCritText" + X : P = P + " doneText" + X : u.crit && (P = P + " critText" + X), u.milestone && (P += " milestoneText"), A > W - r ? W + A + 1.5 * a.leftPadding > o ? V + " taskTextOutsideLeft taskTextOutside" + X + " " + P : V + " taskTextOutsideRight taskTextOutside" + X + " " + P + " width-" + A : V + " taskText taskText" + X + " " + P + " width-" + A;
|
|
1272
1268
|
}), ct().securityLevel === "sandbox") {
|
|
1273
|
-
let
|
|
1274
|
-
|
|
1275
|
-
const r =
|
|
1276
|
-
f.filter(function(
|
|
1277
|
-
return _.has(
|
|
1278
|
-
}).each(function(
|
|
1279
|
-
var
|
|
1280
|
-
const X =
|
|
1269
|
+
let u;
|
|
1270
|
+
u = gt("#i" + e);
|
|
1271
|
+
const r = u.nodes()[0].contentDocument;
|
|
1272
|
+
f.filter(function(W) {
|
|
1273
|
+
return _.has(W.id);
|
|
1274
|
+
}).each(function(W) {
|
|
1275
|
+
var A = r.querySelector("#" + W.id), V = r.querySelector("#" + W.id + "-text");
|
|
1276
|
+
const X = A.parentNode;
|
|
1281
1277
|
var P = r.createElement("a");
|
|
1282
|
-
P.setAttribute("xlink:href", _.get(
|
|
1278
|
+
P.setAttribute("xlink:href", _.get(W.id)), P.setAttribute("target", "_top"), X.appendChild(P), P.appendChild(A), P.appendChild(V);
|
|
1283
1279
|
});
|
|
1284
1280
|
}
|
|
1285
1281
|
}
|
|
1286
|
-
|
|
1287
|
-
function Y(y, b,
|
|
1288
|
-
if (
|
|
1282
|
+
c(L, "drawRects");
|
|
1283
|
+
function Y(y, b, x, T, m, w, o, l) {
|
|
1284
|
+
if (o.length === 0 && l.length === 0)
|
|
1289
1285
|
return;
|
|
1290
1286
|
let h, f;
|
|
1291
|
-
for (const { startTime:
|
|
1292
|
-
(h === void 0 ||
|
|
1287
|
+
for (const { startTime: A, endTime: V } of w)
|
|
1288
|
+
(h === void 0 || A < h) && (h = A), (f === void 0 || V > f) && (f = V);
|
|
1293
1289
|
if (!h || !f)
|
|
1294
1290
|
return;
|
|
1295
1291
|
if (U(f).diff(U(h), "year") > 5) {
|
|
@@ -1299,131 +1295,131 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1299
1295
|
return;
|
|
1300
1296
|
}
|
|
1301
1297
|
const _ = i.db.getDateFormat(), s = [];
|
|
1302
|
-
let
|
|
1298
|
+
let u = null, r = U(h);
|
|
1303
1299
|
for (; r.valueOf() <= f; )
|
|
1304
|
-
i.db.isInvalidDate(r, _,
|
|
1300
|
+
i.db.isInvalidDate(r, _, o, l) ? u ? u.end = r : u = {
|
|
1305
1301
|
start: r,
|
|
1306
1302
|
end: r
|
|
1307
|
-
} :
|
|
1308
|
-
|
|
1309
|
-
return "exclude-" +
|
|
1310
|
-
}).attr("x", function(
|
|
1311
|
-
return A
|
|
1312
|
-
}).attr("y", a.gridLineStartPadding).attr("width", function(
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1315
|
-
}).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(
|
|
1316
|
-
return (A
|
|
1303
|
+
} : u && (s.push(u), u = null), r = r.add(1, "d");
|
|
1304
|
+
H.append("g").selectAll("rect").data(s).enter().append("rect").attr("id", function(A) {
|
|
1305
|
+
return "exclude-" + A.start.format("YYYY-MM-DD");
|
|
1306
|
+
}).attr("x", function(A) {
|
|
1307
|
+
return F(A.start) + x;
|
|
1308
|
+
}).attr("y", a.gridLineStartPadding).attr("width", function(A) {
|
|
1309
|
+
const V = A.end.add(1, "day");
|
|
1310
|
+
return F(V) - F(A.start);
|
|
1311
|
+
}).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(A, V) {
|
|
1312
|
+
return (F(A.start) + x + 0.5 * (F(A.end) - F(A.start))).toString() + "px " + (V * y + 0.5 * m).toString() + "px";
|
|
1317
1313
|
}).attr("class", "exclude-range");
|
|
1318
1314
|
}
|
|
1319
|
-
|
|
1320
|
-
function N(y, b,
|
|
1321
|
-
let m = Xe(
|
|
1322
|
-
const
|
|
1315
|
+
c(Y, "drawExcludeDays");
|
|
1316
|
+
function N(y, b, x, T) {
|
|
1317
|
+
let m = Xe(F).tickSize(-T + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
1318
|
+
const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
|
|
1323
1319
|
i.db.getTickInterval() || a.tickInterval
|
|
1324
1320
|
);
|
|
1325
|
-
if (
|
|
1326
|
-
const
|
|
1321
|
+
if (o !== null) {
|
|
1322
|
+
const l = o[1], h = o[2], f = i.db.getWeekday() || a.weekday;
|
|
1327
1323
|
switch (h) {
|
|
1328
1324
|
case "millisecond":
|
|
1329
|
-
m.ticks(
|
|
1325
|
+
m.ticks(Kt.every(l));
|
|
1330
1326
|
break;
|
|
1331
1327
|
case "second":
|
|
1332
|
-
m.ticks(
|
|
1328
|
+
m.ticks(Jt.every(l));
|
|
1333
1329
|
break;
|
|
1334
1330
|
case "minute":
|
|
1335
|
-
m.ticks(
|
|
1331
|
+
m.ticks($t.every(l));
|
|
1336
1332
|
break;
|
|
1337
1333
|
case "hour":
|
|
1338
|
-
m.ticks(
|
|
1334
|
+
m.ticks(Qt.every(l));
|
|
1339
1335
|
break;
|
|
1340
1336
|
case "day":
|
|
1341
|
-
m.ticks(Zt.every(
|
|
1337
|
+
m.ticks(Zt.every(l));
|
|
1342
1338
|
break;
|
|
1343
1339
|
case "week":
|
|
1344
|
-
m.ticks(
|
|
1340
|
+
m.ticks(ae[f].every(l));
|
|
1345
1341
|
break;
|
|
1346
1342
|
case "month":
|
|
1347
|
-
m.ticks(Ut.every(
|
|
1343
|
+
m.ticks(Ut.every(l));
|
|
1348
1344
|
break;
|
|
1349
1345
|
}
|
|
1350
1346
|
}
|
|
1351
|
-
if (
|
|
1352
|
-
let
|
|
1353
|
-
if (
|
|
1354
|
-
const h =
|
|
1347
|
+
if (H.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (T - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || a.topAxis) {
|
|
1348
|
+
let l = Ge(F).tickSize(-T + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
1349
|
+
if (o !== null) {
|
|
1350
|
+
const h = o[1], f = o[2], _ = i.db.getWeekday() || a.weekday;
|
|
1355
1351
|
switch (f) {
|
|
1356
1352
|
case "millisecond":
|
|
1357
|
-
|
|
1353
|
+
l.ticks(Kt.every(h));
|
|
1358
1354
|
break;
|
|
1359
1355
|
case "second":
|
|
1360
|
-
|
|
1356
|
+
l.ticks(Jt.every(h));
|
|
1361
1357
|
break;
|
|
1362
1358
|
case "minute":
|
|
1363
|
-
|
|
1359
|
+
l.ticks($t.every(h));
|
|
1364
1360
|
break;
|
|
1365
1361
|
case "hour":
|
|
1366
|
-
|
|
1362
|
+
l.ticks(Qt.every(h));
|
|
1367
1363
|
break;
|
|
1368
1364
|
case "day":
|
|
1369
|
-
|
|
1365
|
+
l.ticks(Zt.every(h));
|
|
1370
1366
|
break;
|
|
1371
1367
|
case "week":
|
|
1372
|
-
|
|
1368
|
+
l.ticks(ae[_].every(h));
|
|
1373
1369
|
break;
|
|
1374
1370
|
case "month":
|
|
1375
|
-
|
|
1371
|
+
l.ticks(Ut.every(h));
|
|
1376
1372
|
break;
|
|
1377
1373
|
}
|
|
1378
1374
|
}
|
|
1379
|
-
|
|
1375
|
+
H.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + b + ")").call(l).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
|
1380
1376
|
}
|
|
1381
1377
|
}
|
|
1382
|
-
|
|
1378
|
+
c(N, "makeGrid");
|
|
1383
1379
|
function R(y, b) {
|
|
1384
|
-
let
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1387
|
-
const w = m[0].split(we.lineBreakRegex),
|
|
1388
|
-
|
|
1380
|
+
let x = 0;
|
|
1381
|
+
const T = Object.keys(S).map((m) => [m, S[m]]);
|
|
1382
|
+
H.append("g").selectAll("text").data(T).enter().append(function(m) {
|
|
1383
|
+
const w = m[0].split(we.lineBreakRegex), o = -(w.length - 1) / 2, l = E.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1384
|
+
l.setAttribute("dy", o + "em");
|
|
1389
1385
|
for (const [h, f] of w.entries()) {
|
|
1390
1386
|
const _ = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1391
|
-
_.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f,
|
|
1387
|
+
_.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f, l.appendChild(_);
|
|
1392
1388
|
}
|
|
1393
|
-
return
|
|
1389
|
+
return l;
|
|
1394
1390
|
}).attr("x", 10).attr("y", function(m, w) {
|
|
1395
1391
|
if (w > 0)
|
|
1396
|
-
for (let
|
|
1397
|
-
return
|
|
1392
|
+
for (let o = 0; o < w; o++)
|
|
1393
|
+
return x += T[w - 1][1], m[1] * y / 2 + x * y + b;
|
|
1398
1394
|
else
|
|
1399
1395
|
return m[1] * y / 2 + b;
|
|
1400
1396
|
}).attr("font-size", a.sectionFontSize).attr("class", function(m) {
|
|
1401
|
-
for (const [w,
|
|
1402
|
-
if (m[0] ===
|
|
1397
|
+
for (const [w, o] of I.entries())
|
|
1398
|
+
if (m[0] === o)
|
|
1403
1399
|
return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
|
|
1404
1400
|
return "sectionTitle";
|
|
1405
1401
|
});
|
|
1406
1402
|
}
|
|
1407
|
-
|
|
1408
|
-
function G(y, b,
|
|
1403
|
+
c(R, "vertLabels");
|
|
1404
|
+
function G(y, b, x, T) {
|
|
1409
1405
|
const m = i.db.getTodayMarker();
|
|
1410
1406
|
if (m === "off")
|
|
1411
1407
|
return;
|
|
1412
|
-
const w =
|
|
1413
|
-
|
|
1408
|
+
const w = H.append("g").attr("class", "today"), o = /* @__PURE__ */ new Date(), l = w.append("line");
|
|
1409
|
+
l.attr("x1", F(o) + y).attr("x2", F(o) + y).attr("y1", a.titleTopMargin).attr("y2", T - a.titleTopMargin).attr("class", "today"), m !== "" && l.attr("style", m.replace(/,/g, ";"));
|
|
1414
1410
|
}
|
|
1415
|
-
|
|
1411
|
+
c(G, "drawToday");
|
|
1416
1412
|
function z(y) {
|
|
1417
|
-
const b = {},
|
|
1418
|
-
for (let
|
|
1419
|
-
Object.prototype.hasOwnProperty.call(b, y[
|
|
1420
|
-
return
|
|
1413
|
+
const b = {}, x = [];
|
|
1414
|
+
for (let T = 0, m = y.length; T < m; ++T)
|
|
1415
|
+
Object.prototype.hasOwnProperty.call(b, y[T]) || (b[y[T]] = true, x.push(y[T]));
|
|
1416
|
+
return x;
|
|
1421
1417
|
}
|
|
1422
|
-
|
|
1418
|
+
c(z, "checkUnique");
|
|
1423
1419
|
}, "draw"), Gr = {
|
|
1424
1420
|
setConf: Br,
|
|
1425
|
-
draw:
|
|
1426
|
-
}, Xr = /* @__PURE__ */
|
|
1421
|
+
draw: Hr
|
|
1422
|
+
}, Xr = /* @__PURE__ */ c((t) => `
|
|
1427
1423
|
.mermaid-main-font {
|
|
1428
1424
|
font-family: ${t.fontFamily};
|
|
1429
1425
|
}
|
|
@@ -1661,16 +1657,6 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1661
1657
|
fill: ${t.taskTextDarkColor} !important;
|
|
1662
1658
|
}
|
|
1663
1659
|
|
|
1664
|
-
.vert {
|
|
1665
|
-
stroke: ${t.vertLineColor};
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
.vertText {
|
|
1669
|
-
font-size: 15px;
|
|
1670
|
-
text-anchor: middle;
|
|
1671
|
-
fill: ${t.vertLineColor} !important;
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
1660
|
.activeCritText0,
|
|
1675
1661
|
.activeCritText1,
|
|
1676
1662
|
.activeCritText2,
|
|
@@ -1684,12 +1670,12 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1684
1670
|
fill: ${t.titleColor || t.textColor};
|
|
1685
1671
|
font-family: ${t.fontFamily};
|
|
1686
1672
|
}
|
|
1687
|
-
`, "getStyles"), jr = Xr,
|
|
1688
|
-
parser:
|
|
1673
|
+
`, "getStyles"), jr = Xr, Jr = {
|
|
1674
|
+
parser: sr,
|
|
1689
1675
|
db: Nr,
|
|
1690
1676
|
renderer: Gr,
|
|
1691
1677
|
styles: jr
|
|
1692
1678
|
};
|
|
1693
1679
|
export {
|
|
1694
|
-
|
|
1680
|
+
Jr as diagram
|
|
1695
1681
|
};
|