@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21
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-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
- package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
- package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
- package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
- package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
- package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
- package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
- package/dist/assets/worker-BldghCZh.js +3752 -0
- package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
- package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
- package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
- package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
- package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
- package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
- package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
- package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
- package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
- package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
- package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
- package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
- package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
- package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
- package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
- package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
- package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
- package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
- package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
- package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
- package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
- package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
- package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
- package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
- package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
- package/dist/index-pBmAzQJl.js +235 -0
- package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
- package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
- package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
- package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
- package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
- package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
- package/dist/main.js +1 -1
- package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
- package/dist/min-CYaGuxZ4.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
- package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
- package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
- package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
- package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
- package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
- package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
- package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
- package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
- package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
- package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
- package/package.json +37 -37
- package/dist/assets/worker-Dz6PPEGc.js +0 -4115
- package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
- package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
- package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
- package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
- package/dist/min-CQBZldos.js +0 -80
- package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
|
@@ -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 l, 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, aq as U, l as Dt, k as we, j as _e, z as De, u as Se } from "./mermaid-CRRCnedu.js";
|
|
2
|
+
import { T as Wt, au as jt, am as Ut, al as Ce, aF as Ee, aG as Me, aH as Ae, aI as Ie, aJ as Fe, aK as Le, ak as Zt, aj as $t, ai as Qt, a8 as Kt, ah as Jt } from "./main-D9-48wlP.js";
|
|
3
|
+
import { t as Ye, m as We, a as Ve, i as Pe } from "./time-BytuUgXk.js";
|
|
4
|
+
import { l as ze } from "./linear-sn9_bxtB.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 He(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 qe() {
|
|
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", F = t === vt || t === At ? Re : Ne;
|
|
26
|
+
function S(v) {
|
|
27
|
+
var q = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Oe), x = Math.max(k, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? He : Be)(e.copy(), E), R = v.selection ? v.selection() : v, G = R.selectAll(".domain").data([null]), z = R.selectAll(".tick").data(q, e).order(), y = z.exit(), b = z.enter().append("g").attr("class", "tick"), T = z.select("line"), p = z.select("text");
|
|
28
|
+
G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), z = z.merge(b), T = T.merge(b.append("line").attr("stroke", "currentColor").attr(g + "2", C * k)), p = p.merge(b.append("text").attr("fill", "currentColor").attr(g, C * x).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), v !== R && (G = G.transition(v), z = z.transition(v), T = T.transition(v), p = p.transition(v), y = y.transition(v).attr("opacity", te).attr("transform", function(m) {
|
|
29
|
+
return isFinite(m = N(m)) ? F(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 F((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 F(N(m) + E);
|
|
35
|
+
}), T.attr(g + "2", C * k), p.attr(g, C * x).text(A), R.filter(qe).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(v) {
|
|
40
|
+
return arguments.length ? (e = v, 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(v) {
|
|
44
|
+
return arguments.length ? (n = v == null ? [] : Array.from(v), S) : n.slice();
|
|
45
|
+
}, S.tickValues = function(v) {
|
|
46
|
+
return arguments.length ? (i = v == null ? null : Array.from(v), S) : i && i.slice();
|
|
47
|
+
}, S.tickFormat = function(v) {
|
|
48
|
+
return arguments.length ? (a = v, S) : a;
|
|
49
|
+
}, S.tickSize = function(v) {
|
|
50
|
+
return arguments.length ? (k = d = +v, S) : k;
|
|
51
|
+
}, S.tickSizeInner = function(v) {
|
|
52
|
+
return arguments.length ? (k = +v, S) : k;
|
|
53
|
+
}, S.tickSizeOuter = function(v) {
|
|
54
|
+
return arguments.length ? (d = +v, S) : d;
|
|
55
|
+
}, S.tickPadding = function(v) {
|
|
56
|
+
return arguments.length ? (D = +v, S) : D;
|
|
57
|
+
}, S.offset = function(v) {
|
|
58
|
+
return arguments.length ? (E = +v, 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, F, S, v, q = d(this), A = (g = this.isoWeekYear(), F = this.$u, S = (F ? k.utc : k)().year(g).startOf("year"), v = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (v += 7), S.add(v, n));
|
|
83
|
+
return q.diff(A, "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 F = this.$utils(), S = !!F.u(g) || g;
|
|
90
|
+
return F.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 $e = /* @__PURE__ */ Wt(Ze);
|
|
98
|
+
var Tt = { exports: {} }, Qe = Tt.exports, re;
|
|
99
|
+
function Ke() {
|
|
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
|
+
})(Qe, 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(x) {
|
|
105
|
+
return (x = +x) + (x > 68 ? 1900 : 2e3);
|
|
106
|
+
}, g = function(x) {
|
|
107
107
|
return function(M) {
|
|
108
|
-
this[
|
|
108
|
+
this[x] = +M;
|
|
109
109
|
};
|
|
110
|
-
},
|
|
110
|
+
}, F = [/[+-]\d\d:?(\d\d)?|Z/, function(x) {
|
|
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
|
+
}(x);
|
|
116
|
+
}], S = function(x) {
|
|
117
|
+
var M = E[x];
|
|
118
118
|
return M && (M.indexOf ? M : M.s.concat(M.f));
|
|
119
|
-
},
|
|
119
|
+
}, v = function(x, 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 (x.indexOf(Y(N, 0, M)) > -1) {
|
|
123
123
|
L = N > 12;
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
} else L =
|
|
126
|
+
} else L = x === (M ? "pm" : "PM");
|
|
127
127
|
return L;
|
|
128
|
-
},
|
|
129
|
-
this.afternoon =
|
|
130
|
-
}], a: [D, function(
|
|
131
|
-
this.afternoon =
|
|
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
|
+
}, q = { A: [D, function(x) {
|
|
129
|
+
this.afternoon = v(x, false);
|
|
130
|
+
}], a: [D, function(x) {
|
|
131
|
+
this.afternoon = v(x, true);
|
|
132
|
+
}], Q: [a, function(x) {
|
|
133
|
+
this.month = 3 * (x - 1) + 1;
|
|
134
|
+
}], S: [a, function(x) {
|
|
135
|
+
this.milliseconds = 100 * +x;
|
|
136
|
+
}], SS: [k, function(x) {
|
|
137
|
+
this.milliseconds = 10 * +x;
|
|
138
|
+
}], SSS: [/\d{3}/, function(x) {
|
|
139
|
+
this.milliseconds = +x;
|
|
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(x) {
|
|
141
|
+
var M = E.ordinal, L = x.match(/\d+/);
|
|
142
|
+
if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === x && (this.day = Y);
|
|
143
|
+
}], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(x) {
|
|
144
144
|
var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
|
|
145
145
|
return Y.slice(0, 3);
|
|
146
|
-
})).indexOf(
|
|
146
|
+
})).indexOf(x) + 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(x) {
|
|
150
|
+
var M = S("months").indexOf(x) + 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(x) {
|
|
154
|
+
this.year = C(x);
|
|
155
|
+
}], YYYY: [/\d{4}/, g("year")], Z: F, ZZ: F };
|
|
156
|
+
function A(x) {
|
|
157
157
|
var M, L;
|
|
158
|
-
M =
|
|
159
|
-
for (var Y = (
|
|
158
|
+
M = x, L = E && E.formats;
|
|
159
|
+
for (var Y = (x = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, p, m) {
|
|
160
160
|
var w = m && m.toUpperCase();
|
|
161
|
-
return
|
|
162
|
-
return
|
|
161
|
+
return p || L[m] || n[m] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, u, h) {
|
|
162
|
+
return u || 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 = q[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(T) {
|
|
169
|
+
for (var p = {}, m = 0, w = 0; m < N; m += 1) {
|
|
170
|
+
var c = Y[m];
|
|
171
|
+
if (typeof c == "string") w += c.length;
|
|
172
172
|
else {
|
|
173
|
-
var
|
|
174
|
-
h.call(
|
|
173
|
+
var u = c.regex, h = c.parser, f = T.slice(w), _ = u.exec(f)[0];
|
|
174
|
+
h.call(p, _), T = T.replace(_, "");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
return function(s) {
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
178
|
+
var o = s.afternoon;
|
|
179
|
+
if (o !== void 0) {
|
|
180
180
|
var r = s.hours;
|
|
181
|
-
|
|
181
|
+
o ? r < 12 && (s.hours += 12) : r === 12 && (s.hours = 0), delete s.afternoon;
|
|
182
182
|
}
|
|
183
|
-
}(
|
|
183
|
+
}(p), p;
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
return function(
|
|
187
|
-
L.p.customParseFormat = true,
|
|
186
|
+
return function(x, M, L) {
|
|
187
|
+
L.p.customParseFormat = true, x && x.parseTwoDigitYear && (C = x.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 T = y[2] === true, p = y[3] === true, m = T || p, w = y[2];
|
|
195
|
+
p && (w = y[2]), E = this.$locale(), !T && w && (E = L.Ls[w]), this.$d = function(f, _, s, o) {
|
|
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 = A(_)(f), V = r.year, I = r.month, W = r.day, X = r.hours, P = r.minutes, O = r.seconds, Q = r.milliseconds, at = r.zone, st = r.week, dt = /* @__PURE__ */ new Date(), ft = W || (V || I ? 1 : dt.getDate()), ot = V || dt.getFullYear(), B = 0;
|
|
199
|
+
V && !I || (B = I > 0 ? I - 1 : dt.getMonth());
|
|
200
|
+
var $, j = X || 0, nt = P || 0, K = O || 0, rt = Q || 0;
|
|
201
|
+
return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) : s ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : ($ = new Date(ot, B, ft, j, nt, K, rt), st && ($ = o($).week(st).toDate()), $);
|
|
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 c = b.length, u = 1; u <= c; u += 1) {
|
|
207
|
+
y[1] = b[u - 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
|
+
u === c && (this.$d = /* @__PURE__ */ new Date(""));
|
|
214
214
|
}
|
|
215
215
|
else N.call(this, R);
|
|
216
216
|
};
|
|
@@ -218,8 +218,8 @@ function Je() {
|
|
|
218
218
|
});
|
|
219
219
|
}(Tt)), Tt.exports;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
const tr = /* @__PURE__ */ Wt(
|
|
221
|
+
var Je = Ke();
|
|
222
|
+
const tr = /* @__PURE__ */ Wt(Je);
|
|
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(F) {
|
|
235
|
+
switch (F) {
|
|
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(), F === "w" ? 1 : 2, "0");
|
|
249
249
|
case "W":
|
|
250
250
|
case "WW":
|
|
251
|
-
return C.s(D.isoWeek(),
|
|
251
|
+
return C.s(D.isoWeek(), F === "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), F === "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 F;
|
|
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__ */ l(function(w, c, u, h) {
|
|
277
|
+
for (u = u || {}, h = w.length; h--; u[w[h]] = c) ;
|
|
278
|
+
return u;
|
|
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], F = [1, 9], S = [1, 10], v = [1, 11], q = [1, 12], A = [1, 13], x = [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], T = {
|
|
280
|
+
trace: /* @__PURE__ */ l(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__ */ l(function(c, u, h, f, _, s, o) {
|
|
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: F, 23: S, 24: v, 25: q, 26: A, 27: x, 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: F, 23: S, 24: v, 25: q, 26: A, 27: x, 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__ */ l(function(c, u) {
|
|
411
|
+
if (u.recoverable)
|
|
412
|
+
this.trace(c);
|
|
413
413
|
else {
|
|
414
|
-
var h = new Error(
|
|
415
|
-
throw h.hash =
|
|
414
|
+
var h = new Error(c);
|
|
415
|
+
throw h.hash = u, 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__ */ l(function(c) {
|
|
419
|
+
var u = this, h = [0], f = [], _ = [null], s = [], o = this.table, r = "", V = 0, I = 0, W = 2, X = 1, P = s.slice.call(arguments, 1), O = Object.create(this.lexer), Q = { yy: {} };
|
|
420
|
+
for (var at in this.yy)
|
|
421
|
+
Object.prototype.hasOwnProperty.call(this.yy, at) && (Q.yy[at] = this.yy[at]);
|
|
422
|
+
O.setInput(c, Q.yy), Q.yy.lexer = O, Q.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
|
|
423
|
+
var st = O.yylloc;
|
|
424
|
+
s.push(st);
|
|
425
425
|
var dt = O.options && O.options.ranges;
|
|
426
|
-
typeof
|
|
426
|
+
typeof Q.yy.parseError == "function" ? this.parseError = Q.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
|
+
l(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 = u.symbols_[Z] || Z), Z;
|
|
434
434
|
}
|
|
435
|
-
|
|
436
|
-
for (var B,
|
|
437
|
-
if (
|
|
435
|
+
l(ot, "lex");
|
|
436
|
+
for (var B, $, j, nt, K = {}, rt, J, Xt, yt; ; ) {
|
|
437
|
+
if ($ = h[h.length - 1], this.defaultActions[$] ? j = this.defaultActions[$] : ((B === null || typeof B > "u") && (B = ot()), j = o[$] && o[$][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 o[$])
|
|
441
|
+
this.terminals_[rt] && rt > W && yt.push("'" + this.terminals_[rt] + "'");
|
|
442
|
+
O.showPosition ? Et = "Parse error on line " + (V + 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 " + (V + 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: st,
|
|
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: " + $ + ", 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, I = O.yyleng, r = O.yytext, V = O.yylineno, st = O.yylloc;
|
|
457
457
|
break;
|
|
458
458
|
case 2:
|
|
459
|
-
if (
|
|
460
|
-
first_line: s[s.length - (
|
|
459
|
+
if (J = this.productions_[j[1]][1], K.$ = _[_.length - J], K._$ = {
|
|
460
|
+
first_line: s[s.length - (J || 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 - (J || 1)].first_column,
|
|
463
463
|
last_column: s[s.length - 1].last_column
|
|
464
|
-
}, dt && (
|
|
465
|
-
s[s.length - (
|
|
464
|
+
}, dt && (K._$.range = [
|
|
465
|
+
s[s.length - (J || 1)].range[0],
|
|
466
466
|
s[s.length - 1].range[1]
|
|
467
|
-
]), nt = this.performAction.apply(
|
|
467
|
+
]), nt = this.performAction.apply(K, [
|
|
468
468
|
r,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
I,
|
|
470
|
+
V,
|
|
471
|
+
Q.yy,
|
|
472
472
|
j[1],
|
|
473
473
|
_,
|
|
474
474
|
s
|
|
475
475
|
].concat(P)), typeof nt < "u")
|
|
476
476
|
return nt;
|
|
477
|
-
|
|
477
|
+
J && (h = h.slice(0, -1 * J * 2), _ = _.slice(0, -1 * J), s = s.slice(0, -1 * J)), h.push(this.productions_[j[1]][0]), _.push(K.$), s.push(K._$), Xt = o[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
|
+
}, p = /* @__PURE__ */ function() {
|
|
486
486
|
var w = {
|
|
487
487
|
EOF: 1,
|
|
488
|
-
parseError: /* @__PURE__ */
|
|
488
|
+
parseError: /* @__PURE__ */ l(function(u, h) {
|
|
489
489
|
if (this.yy.parser)
|
|
490
|
-
this.yy.parser.parseError(
|
|
490
|
+
this.yy.parser.parseError(u, h);
|
|
491
491
|
else
|
|
492
|
-
throw new Error(
|
|
492
|
+
throw new Error(u);
|
|
493
493
|
}, "parseError"),
|
|
494
494
|
// resets the lexer, sets new input
|
|
495
|
-
setInput: /* @__PURE__ */
|
|
496
|
-
return this.yy =
|
|
495
|
+
setInput: /* @__PURE__ */ l(function(c, u) {
|
|
496
|
+
return this.yy = u || this.yy || {}, this._input = c, 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__ */ l(function() {
|
|
505
|
+
var c = this._input[0];
|
|
506
|
+
this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
|
|
507
|
+
var u = c.match(/(?:\r\n?|\n).*/g);
|
|
508
|
+
return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
|
|
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__ */ l(function(c) {
|
|
512
|
+
var u = c.length, h = c.split(/(?:\r\n?|\n)/g);
|
|
513
|
+
this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
|
|
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 - u
|
|
522
|
+
}, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - u]), 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__ */ l(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__ */ l(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__ */ l(function(c) {
|
|
543
|
+
this.unput(this.match.slice(c));
|
|
544
544
|
}, "less"),
|
|
545
545
|
// displays already matched input, i.e. for error messages
|
|
546
|
-
pastInput: /* @__PURE__ */
|
|
547
|
-
var
|
|
548
|
-
return (
|
|
546
|
+
pastInput: /* @__PURE__ */ l(function() {
|
|
547
|
+
var c = this.matched.substr(0, this.matched.length - this.match.length);
|
|
548
|
+
return (c.length > 20 ? "..." : "") + c.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__ */ l(function() {
|
|
552
|
+
var c = this.match;
|
|
553
|
+
return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.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__ */ l(function() {
|
|
557
|
+
var c = this.pastInput(), u = new Array(c.length + 1).join("-");
|
|
558
|
+
return c + this.upcomingInput() + `
|
|
559
|
+
` + u + "^";
|
|
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__ */ l(function(c, u) {
|
|
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 = c[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 + c[0].length
|
|
588
|
+
}, 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 = false, this._backtrack = false, this._input = this._input.slice(c[0].length), this.matched += c[0], h = this.performAction.call(this, this.yy, this, u, 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__ */ l(function() {
|
|
599
599
|
if (this.done)
|
|
600
600
|
return this.EOF;
|
|
601
601
|
this._input || (this.done = true);
|
|
602
|
-
var
|
|
602
|
+
var c, u, 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 && (!u || h[0].length > u[0].length)) {
|
|
606
|
+
if (u = h, f = s, this.options.backtrack_lexer) {
|
|
607
|
+
if (c = this.test_match(h, _[s]), c !== false)
|
|
608
|
+
return c;
|
|
609
609
|
if (this._backtrack) {
|
|
610
|
-
|
|
610
|
+
u = 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 u ? (c = this.test_match(u, _[f]), c !== false ? c : 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__ */ l(function() {
|
|
626
|
+
var u = this.next();
|
|
627
|
+
return u || 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__ */ l(function(u) {
|
|
631
|
+
this.conditionStack.push(u);
|
|
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__ */ l(function() {
|
|
635
|
+
var u = this.conditionStack.length - 1;
|
|
636
|
+
return u > 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__ */ l(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__ */ l(function(u) {
|
|
644
|
+
return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
|
|
645
645
|
}, "topState"),
|
|
646
646
|
// alias for begin(condition)
|
|
647
|
-
pushState: /* @__PURE__ */
|
|
648
|
-
this.begin(
|
|
647
|
+
pushState: /* @__PURE__ */ l(function(u) {
|
|
648
|
+
this.begin(u);
|
|
649
649
|
}, "pushState"),
|
|
650
650
|
// return the number of states currently on the stack
|
|
651
|
-
stateStackSize: /* @__PURE__ */
|
|
651
|
+
stateStackSize: /* @__PURE__ */ l(function() {
|
|
652
652
|
return this.conditionStack.length;
|
|
653
653
|
}, "stateStackSize"),
|
|
654
654
|
options: { "case-insensitive": true },
|
|
655
|
-
performAction: /* @__PURE__ */
|
|
655
|
+
performAction: /* @__PURE__ */ l(function(u, 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
|
+
T.lexer = p;
|
|
781
781
|
function m() {
|
|
782
782
|
this.yy = {};
|
|
783
783
|
}
|
|
784
|
-
return
|
|
784
|
+
return l(m, "Parser"), m.prototype = T, T.Parser = m, new m();
|
|
785
785
|
}();
|
|
786
786
|
It.parser = It;
|
|
787
|
-
var
|
|
788
|
-
U.extend(
|
|
787
|
+
var ar = It;
|
|
788
|
+
U.extend($e);
|
|
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"], Bt = [], kt = false,
|
|
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", "vert"], Bt = [], kt = false, Ht = false, qt = "sunday", Ct = "saturday", Ft = 0, sr = /* @__PURE__ */ l(function() {
|
|
792
|
+
Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, H = [], tt = "", Vt = "", Nt = "", Pt = void 0, zt = "", ht = [], mt = [], kt = false, Ht = false, Ft = 0, Ot = /* @__PURE__ */ new Map(), De(), qt = "sunday", Ct = "saturday";
|
|
793
|
+
}, "clear"), or = /* @__PURE__ */ l(function(t) {
|
|
794
794
|
Vt = t;
|
|
795
|
-
}, "setAxisFormat"), cr = /* @__PURE__ */
|
|
795
|
+
}, "setAxisFormat"), cr = /* @__PURE__ */ l(function() {
|
|
796
796
|
return Vt;
|
|
797
|
-
}, "getAxisFormat"), lr = /* @__PURE__ */
|
|
797
|
+
}, "getAxisFormat"), lr = /* @__PURE__ */ l(function(t) {
|
|
798
798
|
Pt = t;
|
|
799
|
-
}, "setTickInterval"), ur = /* @__PURE__ */
|
|
799
|
+
}, "setTickInterval"), ur = /* @__PURE__ */ l(function() {
|
|
800
800
|
return Pt;
|
|
801
|
-
}, "getTickInterval"), dr = /* @__PURE__ */
|
|
801
|
+
}, "getTickInterval"), dr = /* @__PURE__ */ l(function(t) {
|
|
802
802
|
zt = t;
|
|
803
|
-
}, "setTodayMarker"), fr = /* @__PURE__ */
|
|
803
|
+
}, "setTodayMarker"), fr = /* @__PURE__ */ l(function() {
|
|
804
804
|
return zt;
|
|
805
|
-
}, "getTodayMarker"), hr = /* @__PURE__ */
|
|
805
|
+
}, "getTodayMarker"), hr = /* @__PURE__ */ l(function(t) {
|
|
806
806
|
tt = t;
|
|
807
|
-
}, "setDateFormat"), mr = /* @__PURE__ */
|
|
807
|
+
}, "setDateFormat"), mr = /* @__PURE__ */ l(function() {
|
|
808
808
|
kt = true;
|
|
809
|
-
}, "enableInclusiveEndDates"), kr = /* @__PURE__ */
|
|
809
|
+
}, "enableInclusiveEndDates"), kr = /* @__PURE__ */ l(function() {
|
|
810
810
|
return kt;
|
|
811
|
-
}, "endDatesAreInclusive"), yr = /* @__PURE__ */
|
|
812
|
-
|
|
813
|
-
}, "enableTopAxis"), gr = /* @__PURE__ */
|
|
814
|
-
return
|
|
815
|
-
}, "topAxisEnabled"), pr = /* @__PURE__ */
|
|
811
|
+
}, "endDatesAreInclusive"), yr = /* @__PURE__ */ l(function() {
|
|
812
|
+
Ht = true;
|
|
813
|
+
}, "enableTopAxis"), gr = /* @__PURE__ */ l(function() {
|
|
814
|
+
return Ht;
|
|
815
|
+
}, "topAxisEnabled"), pr = /* @__PURE__ */ l(function(t) {
|
|
816
816
|
Nt = t;
|
|
817
|
-
}, "setDisplayMode"), vr = /* @__PURE__ */
|
|
817
|
+
}, "setDisplayMode"), vr = /* @__PURE__ */ l(function() {
|
|
818
818
|
return Nt;
|
|
819
|
-
}, "getDisplayMode"), xr = /* @__PURE__ */
|
|
819
|
+
}, "getDisplayMode"), xr = /* @__PURE__ */ l(function() {
|
|
820
820
|
return tt;
|
|
821
|
-
}, "getDateFormat"), Tr = /* @__PURE__ */
|
|
821
|
+
}, "getDateFormat"), Tr = /* @__PURE__ */ l(function(t) {
|
|
822
822
|
ht = t.toLowerCase().split(/[\s,]+/);
|
|
823
|
-
}, "setIncludes"), br = /* @__PURE__ */
|
|
823
|
+
}, "setIncludes"), br = /* @__PURE__ */ l(function() {
|
|
824
824
|
return ht;
|
|
825
|
-
}, "getIncludes"), wr = /* @__PURE__ */
|
|
825
|
+
}, "getIncludes"), wr = /* @__PURE__ */ l(function(t) {
|
|
826
826
|
mt = t.toLowerCase().split(/[\s,]+/);
|
|
827
|
-
}, "setExcludes"), _r = /* @__PURE__ */
|
|
827
|
+
}, "setExcludes"), _r = /* @__PURE__ */ l(function() {
|
|
828
828
|
return mt;
|
|
829
|
-
}, "getExcludes"), Dr = /* @__PURE__ */
|
|
829
|
+
}, "getExcludes"), Dr = /* @__PURE__ */ l(function() {
|
|
830
830
|
return Ot;
|
|
831
|
-
}, "getLinks"), Sr = /* @__PURE__ */
|
|
831
|
+
}, "getLinks"), Sr = /* @__PURE__ */ l(function(t) {
|
|
832
832
|
ut = t, Rt.push(t);
|
|
833
|
-
}, "addSection"), Cr = /* @__PURE__ */
|
|
833
|
+
}, "addSection"), Cr = /* @__PURE__ */ l(function() {
|
|
834
834
|
return Rt;
|
|
835
|
-
}, "getSections"), Er = /* @__PURE__ */
|
|
836
|
-
let t =
|
|
835
|
+
}, "getSections"), Er = /* @__PURE__ */ l(function() {
|
|
836
|
+
let t = ae();
|
|
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 = ae(), n++;
|
|
841
|
+
return St = H, St;
|
|
842
|
+
}, "getTasks"), le = /* @__PURE__ */ l(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__ */ l(function(t) {
|
|
845
|
+
qt = t;
|
|
846
|
+
}, "setWeekday"), Ar = /* @__PURE__ */ l(function() {
|
|
847
|
+
return qt;
|
|
848
|
+
}, "getWeekday"), Ir = /* @__PURE__ */ l(function(t) {
|
|
849
849
|
Ct = t;
|
|
850
|
-
}, "setWeekend"), ue = /* @__PURE__ */
|
|
850
|
+
}, "setWeekend"), ue = /* @__PURE__ */ l(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__ */ l(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__ */ l(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__ */ l(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__ */ l(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 v = it(S);
|
|
909
|
+
v !== void 0 && (!g || v.startTime < g.startTime) && (g = v);
|
|
910
910
|
}
|
|
911
911
|
if (g)
|
|
912
912
|
return g.startTime;
|
|
913
|
-
const
|
|
914
|
-
return
|
|
913
|
+
const F = /* @__PURE__ */ new Date();
|
|
914
|
+
return F.setHours(0, 0, 0, 0), F;
|
|
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__ */ l(function(t) {
|
|
927
927
|
return t === void 0 ? (wt = wt + 1, "task" + wt) : t;
|
|
928
|
-
}, "parseId"), Lr = /* @__PURE__ */
|
|
928
|
+
}, "parseId"), Lr = /* @__PURE__ */ l(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__ */ l(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, H = [], he = {}, Wr = /* @__PURE__ */ l(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.order = Ft, Ft++;
|
|
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.vert = i.vert, n.order = Ft, Ft++;
|
|
994
|
+
const a = H.push(n);
|
|
995
995
|
_t = n.id, he[n.id] = a - 1;
|
|
996
|
-
}, "addTask"), it = /* @__PURE__ */
|
|
996
|
+
}, "addTask"), it = /* @__PURE__ */ l(function(t) {
|
|
997
997
|
const e = he[t];
|
|
998
|
-
return
|
|
999
|
-
}, "findTaskById"), Vr = /* @__PURE__ */
|
|
998
|
+
return H[e];
|
|
999
|
+
}, "findTaskById"), Vr = /* @__PURE__ */ l(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, Yt = n, St.push(n);
|
|
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, n.vert = i.vert, Yt = n, St.push(n);
|
|
1008
|
+
}, "addTaskOrg"), ae = /* @__PURE__ */ l(function() {
|
|
1009
|
+
const t = /* @__PURE__ */ l(function(n) {
|
|
1010
|
+
const i = H[n];
|
|
1011
1011
|
let a = "";
|
|
1012
|
-
switch (
|
|
1012
|
+
switch (H[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, H[n].raw.startTime.startData), a && (H[n].startTime = a);
|
|
1020
1020
|
break;
|
|
1021
1021
|
}
|
|
1022
|
-
return
|
|
1023
|
-
|
|
1022
|
+
return H[n].startTime && (H[n].endTime = fe(
|
|
1023
|
+
H[n].startTime,
|
|
1024
1024
|
tt,
|
|
1025
|
-
|
|
1025
|
+
H[n].raw.endTime.data,
|
|
1026
1026
|
kt
|
|
1027
|
-
),
|
|
1028
|
-
|
|
1027
|
+
), H[n].endTime && (H[n].processed = true, H[n].manualEndTime = U(
|
|
1028
|
+
H[n].raw.endTime.data,
|
|
1029
1029
|
"YYYY-MM-DD",
|
|
1030
1030
|
true
|
|
1031
|
-
).isValid(), ue(
|
|
1031
|
+
).isValid(), ue(H[n], tt, mt, ht))), H[n].processed;
|
|
1032
1032
|
}, "compileTask");
|
|
1033
1033
|
let e = true;
|
|
1034
|
-
for (const [n, i] of
|
|
1034
|
+
for (const [n, i] of H.entries())
|
|
1035
1035
|
t(n), e = e && i.processed;
|
|
1036
1036
|
return e;
|
|
1037
|
-
}, "compileTasks"), Pr = /* @__PURE__ */
|
|
1037
|
+
}, "compileTasks"), Pr = /* @__PURE__ */ l(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__ */ l(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__ */ l(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__ */ l(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__ */ l(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__ */ l(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__ */ l(() => ct().gantt, "getConfig"),
|
|
1088
|
+
clear: sr,
|
|
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
|
+
l(Gt, "getTaskTags");
|
|
1138
|
+
var Br = /* @__PURE__ */ l(function() {
|
|
1139
1139
|
Dt.debug("Something is calling, setConf, remove the call");
|
|
1140
|
-
}, "setConf"),
|
|
1140
|
+
}, "setConf"), se = {
|
|
1141
1141
|
monday: Le,
|
|
1142
1142
|
tuesday: Fe,
|
|
1143
1143
|
wednesday: Ie,
|
|
@@ -1145,7 +1145,7 @@ var Br = /* @__PURE__ */ c(function() {
|
|
|
1145
1145
|
friday: Me,
|
|
1146
1146
|
saturday: Ee,
|
|
1147
1147
|
sunday: Ce
|
|
1148
|
-
},
|
|
1148
|
+
}, Hr = /* @__PURE__ */ l((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__ */ c(function() {
|
|
|
1154
1154
|
break;
|
|
1155
1155
|
}
|
|
1156
1156
|
return a;
|
|
1157
|
-
}, "getMaxIntersections"), et,
|
|
1157
|
+
}, "getMaxIntersections"), et, qr = /* @__PURE__ */ l(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 F = [];
|
|
1165
1165
|
for (const y of g)
|
|
1166
|
-
|
|
1167
|
-
|
|
1166
|
+
F.push(y.type);
|
|
1167
|
+
F = z(F);
|
|
1168
1168
|
const S = {};
|
|
1169
|
-
let
|
|
1169
|
+
let v = 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 T of g)
|
|
1173
|
+
y[T.section] === void 0 ? y[T.section] = [T] : y[T.section].push(T);
|
|
1174
1174
|
let b = 0;
|
|
1175
|
-
for (const
|
|
1176
|
-
const
|
|
1177
|
-
b +=
|
|
1175
|
+
for (const T of Object.keys(y)) {
|
|
1176
|
+
const p = Hr(y[T], b) + 1;
|
|
1177
|
+
b += p, v += p * (a.barHeight + a.barGap), S[T] = p;
|
|
1178
1178
|
}
|
|
1179
1179
|
} else {
|
|
1180
|
-
|
|
1181
|
-
for (const y of
|
|
1180
|
+
v += g.length * (a.barHeight + a.barGap);
|
|
1181
|
+
for (const y of F)
|
|
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 + " " + v);
|
|
1185
|
+
const q = D.select(`[id="${e}"]`), A = Ye().domain([
|
|
1186
1186
|
We(g, function(y) {
|
|
1187
1187
|
return y.startTime;
|
|
1188
1188
|
}),
|
|
@@ -1190,102 +1190,106 @@ var Br = /* @__PURE__ */ c(function() {
|
|
|
1190
1190
|
return y.endTime;
|
|
1191
1191
|
})
|
|
1192
1192
|
]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
|
|
1193
|
-
function
|
|
1194
|
-
const
|
|
1193
|
+
function x(y, b) {
|
|
1194
|
+
const T = y.startTime, p = b.startTime;
|
|
1195
1195
|
let m = 0;
|
|
1196
|
-
return
|
|
1196
|
+
return T > p ? m = 1 : T < p && (m = -1), m;
|
|
1197
1197
|
}
|
|
1198
|
-
|
|
1199
|
-
function M(y, b,
|
|
1200
|
-
const
|
|
1198
|
+
l(x, "taskCompare"), g.sort(x), M(g, et, v), be(q, v, et, a.useMaxWidth), q.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
|
|
1199
|
+
function M(y, b, T) {
|
|
1200
|
+
const p = a.barHeight, m = p + a.barGap, w = a.topPadding, c = a.leftPadding, u = ze().domain([0, F.length]).range(["#00B9FA", "#F95002"]).interpolate(Pe);
|
|
1201
1201
|
Y(
|
|
1202
1202
|
m,
|
|
1203
1203
|
w,
|
|
1204
|
-
|
|
1204
|
+
c,
|
|
1205
1205
|
b,
|
|
1206
|
-
|
|
1206
|
+
T,
|
|
1207
1207
|
y,
|
|
1208
1208
|
i.db.getExcludes(),
|
|
1209
1209
|
i.db.getIncludes()
|
|
1210
|
-
), N(
|
|
1210
|
+
), N(c, w, b, T), L(y, m, w, c, p, u, b), R(m, w), G(c, w, b, T);
|
|
1211
1211
|
}
|
|
1212
|
-
|
|
1213
|
-
function L(y, b,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1212
|
+
l(M, "makeGantt");
|
|
1213
|
+
function L(y, b, T, p, m, w, c) {
|
|
1214
|
+
y.sort((o, r) => o.vert === r.vert ? 0 : o.vert ? 1 : -1);
|
|
1215
|
+
const h = [...new Set(y.map((o) => o.order))].map((o) => y.find((r) => r.order === o));
|
|
1216
|
+
q.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(o, r) {
|
|
1217
|
+
return r = o.order, r * b + T - 2;
|
|
1217
1218
|
}).attr("width", function() {
|
|
1218
|
-
return
|
|
1219
|
-
}).attr("height", b).attr("class", function(
|
|
1220
|
-
for (const [r,
|
|
1221
|
-
if (
|
|
1219
|
+
return c - a.rightPadding / 2;
|
|
1220
|
+
}).attr("height", b).attr("class", function(o) {
|
|
1221
|
+
for (const [r, V] of F.entries())
|
|
1222
|
+
if (o.type === V)
|
|
1222
1223
|
return "section section" + r % a.numberSectionStyles;
|
|
1223
1224
|
return "section section0";
|
|
1224
|
-
});
|
|
1225
|
-
const f =
|
|
1226
|
-
if (f.append("rect").attr("id", function(
|
|
1227
|
-
return
|
|
1228
|
-
}).attr("rx", 3).attr("ry", 3).attr("x", function(
|
|
1229
|
-
return
|
|
1230
|
-
}).attr("y", function(
|
|
1231
|
-
return r =
|
|
1232
|
-
}).attr("width", function(
|
|
1233
|
-
return
|
|
1234
|
-
}).attr("height",
|
|
1235
|
-
return
|
|
1236
|
-
}).attr("
|
|
1225
|
+
}).enter();
|
|
1226
|
+
const f = q.append("g").selectAll("rect").data(y).enter(), _ = i.db.getLinks();
|
|
1227
|
+
if (f.append("rect").attr("id", function(o) {
|
|
1228
|
+
return o.id;
|
|
1229
|
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(o) {
|
|
1230
|
+
return o.milestone ? A(o.startTime) + p + 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m : A(o.startTime) + p;
|
|
1231
|
+
}).attr("y", function(o, r) {
|
|
1232
|
+
return r = o.order, o.vert ? a.gridLineStartPadding : r * b + T;
|
|
1233
|
+
}).attr("width", function(o) {
|
|
1234
|
+
return o.milestone ? m : o.vert ? 0.08 * m : A(o.renderEndTime || o.endTime) - A(o.startTime);
|
|
1235
|
+
}).attr("height", function(o) {
|
|
1236
|
+
return o.vert ? g.length * (a.barHeight + a.barGap) + a.barHeight * 2 : m;
|
|
1237
|
+
}).attr("transform-origin", function(o, r) {
|
|
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) {
|
|
1237
1240
|
const r = "task";
|
|
1238
|
-
let W = "";
|
|
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
1241
|
let V = "";
|
|
1262
|
-
|
|
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
|
+
let W = "";
|
|
1266
|
+
o.classes.length > 0 && (W = o.classes.join(" "));
|
|
1263
1267
|
let X = 0;
|
|
1264
|
-
for (const [O,
|
|
1265
|
-
|
|
1268
|
+
for (const [O, Q] of F.entries())
|
|
1269
|
+
o.type === Q && (X = O % a.numberSectionStyles);
|
|
1266
1270
|
let P = "";
|
|
1267
|
-
return
|
|
1271
|
+
return o.active && (o.crit ? P = "activeCritText" + X : P = "activeText" + X), o.done ? o.crit ? P = P + " doneCritText" + X : P = P + " doneText" + X : o.crit && (P = P + " critText" + X), o.milestone && (P += " milestoneText"), o.vert && (P += " vertText"), I > V - r ? V + I + 1.5 * a.leftPadding > c ? W + " taskTextOutsideLeft taskTextOutside" + X + " " + P : W + " taskTextOutsideRight taskTextOutside" + X + " " + P + " width-" + I : W + " taskText taskText" + X + " " + P + " width-" + I;
|
|
1268
1272
|
}), ct().securityLevel === "sandbox") {
|
|
1269
|
-
let
|
|
1270
|
-
|
|
1271
|
-
const r =
|
|
1272
|
-
f.filter(function(
|
|
1273
|
-
return _.has(
|
|
1274
|
-
}).each(function(
|
|
1275
|
-
var
|
|
1276
|
-
const X =
|
|
1273
|
+
let o;
|
|
1274
|
+
o = gt("#i" + e);
|
|
1275
|
+
const r = o.nodes()[0].contentDocument;
|
|
1276
|
+
f.filter(function(V) {
|
|
1277
|
+
return _.has(V.id);
|
|
1278
|
+
}).each(function(V) {
|
|
1279
|
+
var I = r.querySelector("#" + V.id), W = r.querySelector("#" + V.id + "-text");
|
|
1280
|
+
const X = I.parentNode;
|
|
1277
1281
|
var P = r.createElement("a");
|
|
1278
|
-
P.setAttribute("xlink:href", _.get(
|
|
1282
|
+
P.setAttribute("xlink:href", _.get(V.id)), P.setAttribute("target", "_top"), X.appendChild(P), P.appendChild(I), P.appendChild(W);
|
|
1279
1283
|
});
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
|
-
|
|
1283
|
-
function Y(y, b,
|
|
1284
|
-
if (
|
|
1286
|
+
l(L, "drawRects");
|
|
1287
|
+
function Y(y, b, T, p, m, w, c, u) {
|
|
1288
|
+
if (c.length === 0 && u.length === 0)
|
|
1285
1289
|
return;
|
|
1286
1290
|
let h, f;
|
|
1287
|
-
for (const { startTime:
|
|
1288
|
-
(h === void 0 ||
|
|
1291
|
+
for (const { startTime: I, endTime: W } of w)
|
|
1292
|
+
(h === void 0 || I < h) && (h = I), (f === void 0 || W > f) && (f = W);
|
|
1289
1293
|
if (!h || !f)
|
|
1290
1294
|
return;
|
|
1291
1295
|
if (U(f).diff(U(h), "year") > 5) {
|
|
@@ -1295,131 +1299,131 @@ var Br = /* @__PURE__ */ c(function() {
|
|
|
1295
1299
|
return;
|
|
1296
1300
|
}
|
|
1297
1301
|
const _ = i.db.getDateFormat(), s = [];
|
|
1298
|
-
let
|
|
1302
|
+
let o = null, r = U(h);
|
|
1299
1303
|
for (; r.valueOf() <= f; )
|
|
1300
|
-
i.db.isInvalidDate(r, _,
|
|
1304
|
+
i.db.isInvalidDate(r, _, c, u) ? o ? o.end = r : o = {
|
|
1301
1305
|
start: r,
|
|
1302
1306
|
end: r
|
|
1303
|
-
} :
|
|
1304
|
-
|
|
1305
|
-
return "exclude-" +
|
|
1306
|
-
}).attr("x", function(
|
|
1307
|
-
return
|
|
1308
|
-
}).attr("y", a.gridLineStartPadding).attr("width", function(
|
|
1309
|
-
const
|
|
1310
|
-
return
|
|
1311
|
-
}).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(
|
|
1312
|
-
return (
|
|
1307
|
+
} : o && (s.push(o), o = null), r = r.add(1, "d");
|
|
1308
|
+
q.append("g").selectAll("rect").data(s).enter().append("rect").attr("id", function(I) {
|
|
1309
|
+
return "exclude-" + I.start.format("YYYY-MM-DD");
|
|
1310
|
+
}).attr("x", function(I) {
|
|
1311
|
+
return A(I.start) + T;
|
|
1312
|
+
}).attr("y", a.gridLineStartPadding).attr("width", function(I) {
|
|
1313
|
+
const W = I.end.add(1, "day");
|
|
1314
|
+
return A(W) - A(I.start);
|
|
1315
|
+
}).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(I, W) {
|
|
1316
|
+
return (A(I.start) + T + 0.5 * (A(I.end) - A(I.start))).toString() + "px " + (W * y + 0.5 * m).toString() + "px";
|
|
1313
1317
|
}).attr("class", "exclude-range");
|
|
1314
1318
|
}
|
|
1315
|
-
|
|
1316
|
-
function N(y, b,
|
|
1317
|
-
let m = Xe(
|
|
1318
|
-
const
|
|
1319
|
+
l(Y, "drawExcludeDays");
|
|
1320
|
+
function N(y, b, T, p) {
|
|
1321
|
+
let m = Xe(A).tickSize(-p + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
1322
|
+
const c = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
|
|
1319
1323
|
i.db.getTickInterval() || a.tickInterval
|
|
1320
1324
|
);
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1325
|
+
if (c !== null) {
|
|
1326
|
+
const u = c[1], h = c[2], f = i.db.getWeekday() || a.weekday;
|
|
1323
1327
|
switch (h) {
|
|
1324
1328
|
case "millisecond":
|
|
1325
|
-
m.ticks(
|
|
1329
|
+
m.ticks(Jt.every(u));
|
|
1326
1330
|
break;
|
|
1327
1331
|
case "second":
|
|
1328
|
-
m.ticks(
|
|
1332
|
+
m.ticks(Kt.every(u));
|
|
1329
1333
|
break;
|
|
1330
1334
|
case "minute":
|
|
1331
|
-
m.ticks(
|
|
1335
|
+
m.ticks(Qt.every(u));
|
|
1332
1336
|
break;
|
|
1333
1337
|
case "hour":
|
|
1334
|
-
m.ticks(
|
|
1338
|
+
m.ticks($t.every(u));
|
|
1335
1339
|
break;
|
|
1336
1340
|
case "day":
|
|
1337
|
-
m.ticks(Zt.every(
|
|
1341
|
+
m.ticks(Zt.every(u));
|
|
1338
1342
|
break;
|
|
1339
1343
|
case "week":
|
|
1340
|
-
m.ticks(
|
|
1344
|
+
m.ticks(se[f].every(u));
|
|
1341
1345
|
break;
|
|
1342
1346
|
case "month":
|
|
1343
|
-
m.ticks(Ut.every(
|
|
1347
|
+
m.ticks(Ut.every(u));
|
|
1344
1348
|
break;
|
|
1345
1349
|
}
|
|
1346
1350
|
}
|
|
1347
|
-
if (
|
|
1348
|
-
let
|
|
1349
|
-
if (
|
|
1350
|
-
const h =
|
|
1351
|
+
if (q.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (p - 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) {
|
|
1352
|
+
let u = Ge(A).tickSize(-p + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
|
|
1353
|
+
if (c !== null) {
|
|
1354
|
+
const h = c[1], f = c[2], _ = i.db.getWeekday() || a.weekday;
|
|
1351
1355
|
switch (f) {
|
|
1352
1356
|
case "millisecond":
|
|
1353
|
-
|
|
1357
|
+
u.ticks(Jt.every(h));
|
|
1354
1358
|
break;
|
|
1355
1359
|
case "second":
|
|
1356
|
-
|
|
1360
|
+
u.ticks(Kt.every(h));
|
|
1357
1361
|
break;
|
|
1358
1362
|
case "minute":
|
|
1359
|
-
|
|
1363
|
+
u.ticks(Qt.every(h));
|
|
1360
1364
|
break;
|
|
1361
1365
|
case "hour":
|
|
1362
|
-
|
|
1366
|
+
u.ticks($t.every(h));
|
|
1363
1367
|
break;
|
|
1364
1368
|
case "day":
|
|
1365
|
-
|
|
1369
|
+
u.ticks(Zt.every(h));
|
|
1366
1370
|
break;
|
|
1367
1371
|
case "week":
|
|
1368
|
-
|
|
1372
|
+
u.ticks(se[_].every(h));
|
|
1369
1373
|
break;
|
|
1370
1374
|
case "month":
|
|
1371
|
-
|
|
1375
|
+
u.ticks(Ut.every(h));
|
|
1372
1376
|
break;
|
|
1373
1377
|
}
|
|
1374
1378
|
}
|
|
1375
|
-
|
|
1379
|
+
q.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + b + ")").call(u).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
|
1376
1380
|
}
|
|
1377
1381
|
}
|
|
1378
|
-
|
|
1382
|
+
l(N, "makeGrid");
|
|
1379
1383
|
function R(y, b) {
|
|
1380
|
-
let
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
const w = m[0].split(we.lineBreakRegex),
|
|
1384
|
-
|
|
1384
|
+
let T = 0;
|
|
1385
|
+
const p = Object.keys(S).map((m) => [m, S[m]]);
|
|
1386
|
+
q.append("g").selectAll("text").data(p).enter().append(function(m) {
|
|
1387
|
+
const w = m[0].split(we.lineBreakRegex), c = -(w.length - 1) / 2, u = E.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1388
|
+
u.setAttribute("dy", c + "em");
|
|
1385
1389
|
for (const [h, f] of w.entries()) {
|
|
1386
1390
|
const _ = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1387
|
-
_.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f,
|
|
1391
|
+
_.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f, u.appendChild(_);
|
|
1388
1392
|
}
|
|
1389
|
-
return
|
|
1393
|
+
return u;
|
|
1390
1394
|
}).attr("x", 10).attr("y", function(m, w) {
|
|
1391
1395
|
if (w > 0)
|
|
1392
|
-
for (let
|
|
1393
|
-
return
|
|
1396
|
+
for (let c = 0; c < w; c++)
|
|
1397
|
+
return T += p[w - 1][1], m[1] * y / 2 + T * y + b;
|
|
1394
1398
|
else
|
|
1395
1399
|
return m[1] * y / 2 + b;
|
|
1396
1400
|
}).attr("font-size", a.sectionFontSize).attr("class", function(m) {
|
|
1397
|
-
for (const [w,
|
|
1398
|
-
if (m[0] ===
|
|
1401
|
+
for (const [w, c] of F.entries())
|
|
1402
|
+
if (m[0] === c)
|
|
1399
1403
|
return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
|
|
1400
1404
|
return "sectionTitle";
|
|
1401
1405
|
});
|
|
1402
1406
|
}
|
|
1403
|
-
|
|
1404
|
-
function G(y, b,
|
|
1407
|
+
l(R, "vertLabels");
|
|
1408
|
+
function G(y, b, T, p) {
|
|
1405
1409
|
const m = i.db.getTodayMarker();
|
|
1406
1410
|
if (m === "off")
|
|
1407
1411
|
return;
|
|
1408
|
-
const w =
|
|
1409
|
-
|
|
1412
|
+
const w = q.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), u = w.append("line");
|
|
1413
|
+
u.attr("x1", A(c) + y).attr("x2", A(c) + y).attr("y1", a.titleTopMargin).attr("y2", p - a.titleTopMargin).attr("class", "today"), m !== "" && u.attr("style", m.replace(/,/g, ";"));
|
|
1410
1414
|
}
|
|
1411
|
-
|
|
1415
|
+
l(G, "drawToday");
|
|
1412
1416
|
function z(y) {
|
|
1413
|
-
const b = {},
|
|
1414
|
-
for (let
|
|
1415
|
-
Object.prototype.hasOwnProperty.call(b, y[
|
|
1416
|
-
return
|
|
1417
|
+
const b = {}, T = [];
|
|
1418
|
+
for (let p = 0, m = y.length; p < m; ++p)
|
|
1419
|
+
Object.prototype.hasOwnProperty.call(b, y[p]) || (b[y[p]] = true, T.push(y[p]));
|
|
1420
|
+
return T;
|
|
1417
1421
|
}
|
|
1418
|
-
|
|
1422
|
+
l(z, "checkUnique");
|
|
1419
1423
|
}, "draw"), Gr = {
|
|
1420
1424
|
setConf: Br,
|
|
1421
|
-
draw:
|
|
1422
|
-
}, Xr = /* @__PURE__ */
|
|
1425
|
+
draw: qr
|
|
1426
|
+
}, Xr = /* @__PURE__ */ l((t) => `
|
|
1423
1427
|
.mermaid-main-font {
|
|
1424
1428
|
font-family: ${t.fontFamily};
|
|
1425
1429
|
}
|
|
@@ -1657,6 +1661,16 @@ var Br = /* @__PURE__ */ c(function() {
|
|
|
1657
1661
|
fill: ${t.taskTextDarkColor} !important;
|
|
1658
1662
|
}
|
|
1659
1663
|
|
|
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
|
+
|
|
1660
1674
|
.activeCritText0,
|
|
1661
1675
|
.activeCritText1,
|
|
1662
1676
|
.activeCritText2,
|
|
@@ -1670,12 +1684,12 @@ var Br = /* @__PURE__ */ c(function() {
|
|
|
1670
1684
|
fill: ${t.titleColor || t.textColor};
|
|
1671
1685
|
font-family: ${t.fontFamily};
|
|
1672
1686
|
}
|
|
1673
|
-
`, "getStyles"), jr = Xr,
|
|
1674
|
-
parser:
|
|
1687
|
+
`, "getStyles"), jr = Xr, Kr = {
|
|
1688
|
+
parser: ar,
|
|
1675
1689
|
db: Nr,
|
|
1676
1690
|
renderer: Gr,
|
|
1677
1691
|
styles: jr
|
|
1678
1692
|
};
|
|
1679
1693
|
export {
|
|
1680
|
-
|
|
1694
|
+
Kr as diagram
|
|
1681
1695
|
};
|