@marimo-team/islands 0.14.8-dev19 → 0.14.8-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.
Files changed (64) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C7ZUNt37.js → ConnectedDataExplorerComponent-CIKVFyEK.js} +2 -2
  2. package/dist/{ImageComparisonComponent-DZDRcHFY.js → ImageComparisonComponent-2_mvNMDj.js} +1 -1
  3. package/dist/VegaLite-4HveKhfS.js +36029 -0
  4. package/dist/{_baseUniq-BzHghS1u.js → _baseUniq-DK93QInS.js} +70 -70
  5. package/dist/{any-language-editor-BCb2v34j.js → any-language-editor-Dqs3hkh-.js} +1 -1
  6. package/dist/arc-BXrety1g.js +83 -0
  7. package/dist/{architectureDiagram-IEHRJDOE-B7iONzmg.js → architectureDiagram-IEHRJDOE-BKlxF7se.js} +5 -5
  8. package/dist/{blockDiagram-JOT3LUYC-CZ7B1WVe.js → blockDiagram-JOT3LUYC-C1Xm0XTZ.js} +5 -5
  9. package/dist/{c4Diagram-VJAJSXHY-Dcnvc4YK.js → c4Diagram-VJAJSXHY-C7rT425g.js} +2 -2
  10. package/dist/{channel-hDZ13A2O.js → channel-xZj6E-mJ.js} +1 -1
  11. package/dist/{chunk-4BMEZGHF-DqVUMgdD.js → chunk-4BMEZGHF-BXotumNq.js} +1 -1
  12. package/dist/{chunk-A2AXSNBT-8e3qBHUm.js → chunk-A2AXSNBT-DHeCLbwY.js} +2 -2
  13. package/dist/{chunk-AEK57VVT-Crc-zWQj.js → chunk-AEK57VVT-BKc7NKa0.js} +2 -2
  14. package/dist/{chunk-D6G4REZN-nd5ZGVJg.js → chunk-D6G4REZN-DdhdhP6J.js} +1 -1
  15. package/dist/{chunk-RZ5BOZE2-WfwR1UIX.js → chunk-RZ5BOZE2-BFvMQe-j.js} +1 -1
  16. package/dist/{chunk-XZIHB7SX-eczcJ1vJ.js → chunk-XZIHB7SX-CJ4xl08D.js} +1 -1
  17. package/dist/{classDiagram-GIVACNV2-NZfO5AVp.js → classDiagram-GIVACNV2-DwYfS79-.js} +2 -2
  18. package/dist/{classDiagram-v2-COTLJTTW-NZfO5AVp.js → classDiagram-v2-COTLJTTW-DwYfS79-.js} +2 -2
  19. package/dist/{clone-D3FLvY4q.js → clone-rjjo36_T.js} +1 -1
  20. package/dist/colors-BD7LS4qt.js +7 -0
  21. package/dist/{dagre-OKDRZEBW-DZLSEN8N.js → dagre-OKDRZEBW-B3ZUT07z.js} +6 -6
  22. package/dist/{data-editor-eH0Vx_Ij.js → data-editor-BV13-AvQ.js} +1 -1
  23. package/dist/{diagram-SSKATNLV-C2wtcOHI.js → diagram-SSKATNLV-BSDYZP_p.js} +3 -3
  24. package/dist/{diagram-VNBRO52H-buF5kva-.js → diagram-VNBRO52H-Fnp_GpYO.js} +3 -3
  25. package/dist/{erDiagram-Q7BY3M3F-BRfCI-Mj.js → erDiagram-Q7BY3M3F-BbpOxb-V.js} +3 -3
  26. package/dist/{flowDiagram-4HSFHLVR-wBdCcAka.js → flowDiagram-4HSFHLVR-BU2iqB5k.js} +3 -3
  27. package/dist/{ganttDiagram-APWFNJXF-B01k-9UE.js → ganttDiagram-APWFNJXF-CRs9upQ5.js} +282 -280
  28. package/dist/{gitGraphDiagram-7IBYFJ6S-Cj25wny2.js → gitGraphDiagram-7IBYFJ6S-DwwA4JtF.js} +4 -4
  29. package/dist/{graph-BFouWpLE.js → graph-CqWR-IH1.js} +3 -3
  30. package/dist/{index-LMqdruQ-.js → index-C3RZrcIM.js} +1 -1
  31. package/dist/{index-D-9U5sYa.js → index-D1HY5xjT.js} +3 -3
  32. package/dist/{index-Bg3QUPmP.js → index-DdVF89d9.js} +1 -1
  33. package/dist/{index-BO3kh0BM.js → index-DdraxiEu.js} +1 -1
  34. package/dist/{infoDiagram-PH2N3AL5-DtEg1dRg.js → infoDiagram-PH2N3AL5-1k7uGX46.js} +2 -2
  35. package/dist/init-DxzjmxYy.js +32 -0
  36. package/dist/{journeyDiagram-U35MCT3I-Ksshlivy.js → journeyDiagram-U35MCT3I-Dpi1JSq2.js} +3 -3
  37. package/dist/{kanban-definition-NDS4AKOZ-BpT4kyEe.js → kanban-definition-NDS4AKOZ-CKvzoLX4.js} +1 -1
  38. package/dist/{layout-CQ3anPtU.js → layout-BldMzBeT.js} +55 -55
  39. package/dist/linear-D8457tpx.js +211 -0
  40. package/dist/{main-BlJnYpay.js → main-AdvRoC03.js} +51942 -74124
  41. package/dist/main.js +1 -1
  42. package/dist/{mermaid-Ddvgb_0_.js → mermaid-dgQIP0_c.js} +339 -338
  43. package/dist/min-ICV4hAE9.js +80 -0
  44. package/dist/{mindmap-definition-ALO5MXBD-CCJPWvq8.js → mindmap-definition-ALO5MXBD-CEOv2JKB.js} +2 -2
  45. package/dist/ordinal-CYN5qNoq.js +77 -0
  46. package/dist/{pieDiagram-IB7DONF6-B_Pa8tIn.js → pieDiagram-IB7DONF6-DPhqJqsw.js} +17 -15
  47. package/dist/{quadrantDiagram-7GDLP6J5-C-Q7o9Yw.js → quadrantDiagram-7GDLP6J5-Cq1lOq3h.js} +2 -2
  48. package/dist/{radar-MK3ICKWK-fBfcDmYz.js → radar-MK3ICKWK-DzKpgYou.js} +5 -5
  49. package/dist/range-DdOGybNB.js +9 -0
  50. package/dist/{react-plotly-nXJ3VUWg.js → react-plotly-96P-Y7f_.js} +1 -1
  51. package/dist/{requirementDiagram-KVF5MWMF-X3AwYzVz.js → requirementDiagram-KVF5MWMF-B1wGIWzW.js} +2 -2
  52. package/dist/{sankeyDiagram-QLVOVGJD-mb0Waj5Y.js → sankeyDiagram-QLVOVGJD-KKLYWNHG.js} +69 -68
  53. package/dist/{sequenceDiagram-X6HHIX6F-Benwk5SQ.js → sequenceDiagram-X6HHIX6F-BsMGq6wR.js} +3 -3
  54. package/dist/{slides-component-C2zZpZew.js → slides-component-CdQpRlk4.js} +1 -1
  55. package/dist/{stateDiagram-DGXRK772-Bj82jp3H.js → stateDiagram-DGXRK772-CH6ODo83.js} +5 -5
  56. package/dist/{stateDiagram-v2-YXO3MK2T-BEVOGugG.js → stateDiagram-v2-YXO3MK2T-B2ncmTl5.js} +2 -2
  57. package/dist/time-LXtJoASL.js +195 -0
  58. package/dist/{timeline-definition-BDJGKUSR-B2bH-gHg.js → timeline-definition-BDJGKUSR-DwRQvUFh.js} +2 -2
  59. package/dist/timer-BYwnU4DF.js +1475 -0
  60. package/dist/{vega-component-Di0LS9eg.js → vega-component-DZHc38nn.js} +75 -75
  61. package/dist/{xychartDiagram-VJFVF3MP-D4X1H71-.js → xychartDiagram-VJFVF3MP-BQnQ1xbv.js} +10 -6
  62. package/package.json +1 -1
  63. package/dist/VegaLite-ChsFHneq.js +0 -16431
  64. package/dist/min-CD1Cy68N.js +0 -80
@@ -1,5 +1,7 @@
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-Ddvgb_0_.js";
2
- import { a0 as Wt, aq as Ce, ar as Ee, as as Me, d as Ae, at as Ie, au as jt, av as Ut, aw as Fe, ax as Le, ay as Ye, az as We, aA as Ve, aB as ze, aC as Pe, aD as Zt, aE as Qt, aF as $t, aG as Kt, aH as Jt } from "./main-BlJnYpay.js";
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-dgQIP0_c.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-AdvRoC03.js";
3
+ import { t as Ye, m as We, a as Ve, i as Pe } from "./time-LXtJoASL.js";
4
+ import { l as ze } from "./linear-D8457tpx.js";
3
5
  function Oe(t) {
4
6
  return t;
5
7
  }
@@ -20,17 +22,17 @@ function He() {
20
22
  return !this.__axis;
21
23
  }
22
24
  function oe(t, e) {
23
- var n = [], i = null, s = null, m = 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;
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;
24
26
  function S(p) {
25
- var H = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), F = s ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Oe), v = Math.max(m, 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]), P = R.selectAll(".tick").data(H, e).order(), y = P.exit(), b = P.enter().append("g").attr("class", "tick"), x = P.select("line"), T = P.select("text");
26
- G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), P = P.merge(b), x = x.merge(b.append("line").attr("stroke", "currentColor").attr(g + "2", C * m)), 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), P = P.transition(p), x = x.transition(p), T = T.transition(p), y = y.transition(p).attr("opacity", te).attr("transform", function(k) {
27
- return isFinite(k = N(k)) ? I(k + E) : this.getAttribute("transform");
28
- }), b.attr("opacity", te).attr("transform", function(k) {
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
+ }), b.attr("opacity", te).attr("transform", function(m) {
29
31
  var w = this.parentNode.__axis;
30
- return I((w && isFinite(w = w(k)) ? w : N(k)) + E);
31
- })), 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), P.attr("opacity", 1).attr("transform", function(k) {
32
- return I(N(k) + E);
33
- }), x.attr(g + "2", C * m), 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() {
32
+ return I((w && isFinite(w = w(m)) ? w : N(m)) + E);
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 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() {
34
36
  this.__axis = N;
35
37
  });
36
38
  }
@@ -43,11 +45,11 @@ function oe(t, e) {
43
45
  }, S.tickValues = function(p) {
44
46
  return arguments.length ? (i = p == null ? null : Array.from(p), S) : i && i.slice();
45
47
  }, S.tickFormat = function(p) {
46
- return arguments.length ? (s = p, S) : s;
48
+ return arguments.length ? (a = p, S) : a;
47
49
  }, S.tickSize = function(p) {
48
- return arguments.length ? (m = d = +p, S) : m;
50
+ return arguments.length ? (k = d = +p, S) : k;
49
51
  }, S.tickSizeInner = function(p) {
50
- return arguments.length ? (m = +p, S) : m;
52
+ return arguments.length ? (k = +p, S) : k;
51
53
  }, S.tickSizeOuter = function(p) {
52
54
  return arguments.length ? (d = +p, S) : d;
53
55
  }, S.tickPadding = function(p) {
@@ -69,15 +71,15 @@ function Ue() {
69
71
  t.exports = i();
70
72
  })(je, function() {
71
73
  var n = "day";
72
- return function(i, s, m) {
74
+ return function(i, a, k) {
73
75
  var d = function(C) {
74
76
  return C.add(4 - C.isoWeekday(), n);
75
- }, D = s.prototype;
77
+ }, D = a.prototype;
76
78
  D.isoWeekYear = function() {
77
79
  return d(this).year();
78
80
  }, D.isoWeek = function(C) {
79
81
  if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), n);
80
- var g, I, S, p, H = d(this), F = (g = this.isoWeekYear(), I = this.$u, S = (I ? m.utc : m)().year(g).startOf("year"), p = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (p += 7), S.add(p, n));
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));
81
83
  return H.diff(F, "week") + 1;
82
84
  }, D.isoWeekday = function(C) {
83
85
  return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
@@ -94,12 +96,12 @@ function Ue() {
94
96
  var Ze = Ue();
95
97
  const Qe = /* @__PURE__ */ Wt(Ze);
96
98
  var Tt = { exports: {} }, $e = Tt.exports, re;
97
- function Ke() {
99
+ function Je() {
98
100
  return re || (re = 1, function(t, e) {
99
101
  (function(n, i) {
100
102
  t.exports = i();
101
103
  })($e, function() {
102
- 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, s = /\d/, m = /\d\d/, d = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(v) {
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) {
103
105
  return (v = +v) + (v > 68 ? 1900 : 2e3);
104
106
  }, g = function(v) {
105
107
  return function(M) {
@@ -127,18 +129,18 @@ function Ke() {
127
129
  this.afternoon = p(v, false);
128
130
  }], a: [D, function(v) {
129
131
  this.afternoon = p(v, true);
130
- }], Q: [s, function(v) {
132
+ }], Q: [a, function(v) {
131
133
  this.month = 3 * (v - 1) + 1;
132
- }], S: [s, function(v) {
134
+ }], S: [a, function(v) {
133
135
  this.milliseconds = 100 * +v;
134
- }], SS: [m, function(v) {
136
+ }], SS: [k, function(v) {
135
137
  this.milliseconds = 10 * +v;
136
138
  }], SSS: [/\d{3}/, function(v) {
137
139
  this.milliseconds = +v;
138
- }], 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: [m, g("day")], Do: [D, function(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) {
139
141
  var M = E.ordinal, L = v.match(/\d+/);
140
142
  if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === v && (this.day = Y);
141
- }], w: [d, g("week")], ww: [m, g("week")], M: [d, g("month")], MM: [m, g("month")], MMM: [D, function(v) {
143
+ }], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(v) {
142
144
  var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
143
145
  return Y.slice(0, 3);
144
146
  })).indexOf(v) + 1;
@@ -148,35 +150,35 @@ function Ke() {
148
150
  var M = S("months").indexOf(v) + 1;
149
151
  if (M < 1) throw new Error();
150
152
  this.month = M % 12 || M;
151
- }], Y: [/[+-]?\d+/, g("year")], YY: [m, function(v) {
153
+ }], Y: [/[+-]?\d+/, g("year")], YY: [k, function(v) {
152
154
  this.year = C(v);
153
155
  }], YYYY: [/\d{4}/, g("year")], Z: I, ZZ: I };
154
156
  function F(v) {
155
157
  var M, L;
156
158
  M = v, L = E && E.formats;
157
- for (var Y = (v = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, T, k) {
158
- var w = k && k.toUpperCase();
159
- return T || L[k] || n[k] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
159
+ for (var Y = (v = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, T, m) {
160
+ var w = m && m.toUpperCase();
161
+ return T || L[m] || n[m] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(o, l, h) {
160
162
  return l || h.slice(1);
161
163
  });
162
164
  })).match(i), N = Y.length, R = 0; R < N; R += 1) {
163
- var G = Y[R], P = H[G], y = P && P[0], b = P && P[1];
165
+ var G = Y[R], z = H[G], y = z && z[0], b = z && z[1];
164
166
  Y[R] = b ? { regex: y, parser: b } : G.replace(/^\[|\]$/g, "");
165
167
  }
166
168
  return function(x) {
167
- for (var T = {}, k = 0, w = 0; k < N; k += 1) {
168
- var o = Y[k];
169
+ for (var T = {}, m = 0, w = 0; m < N; m += 1) {
170
+ var o = Y[m];
169
171
  if (typeof o == "string") w += o.length;
170
172
  else {
171
173
  var l = o.regex, h = o.parser, f = x.slice(w), _ = l.exec(f)[0];
172
174
  h.call(T, _), x = x.replace(_, "");
173
175
  }
174
176
  }
175
- return function(a) {
176
- var u = a.afternoon;
177
+ return function(s) {
178
+ var u = s.afternoon;
177
179
  if (u !== void 0) {
178
- var r = a.hours;
179
- u ? r < 12 && (a.hours += 12) : r === 12 && (a.hours = 0), delete a.afternoon;
180
+ var r = s.hours;
181
+ u ? r < 12 && (s.hours += 12) : r === 12 && (s.hours = 0), delete s.afternoon;
180
182
  }
181
183
  }(T), T;
182
184
  };
@@ -185,22 +187,22 @@ function Ke() {
185
187
  L.p.customParseFormat = true, v && v.parseTwoDigitYear && (C = v.parseTwoDigitYear);
186
188
  var Y = M.prototype, N = Y.parse;
187
189
  Y.parse = function(R) {
188
- var G = R.date, P = R.utc, y = R.args;
189
- this.$u = P;
190
+ var G = R.date, z = R.utc, y = R.args;
191
+ this.$u = z;
190
192
  var b = y[1];
191
193
  if (typeof b == "string") {
192
- var x = y[2] === true, T = y[3] === true, k = x || T, w = y[2];
193
- T && (w = y[2]), E = this.$locale(), !x && w && (E = L.Ls[w]), this.$d = function(f, _, a, u) {
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) {
194
196
  try {
195
197
  if (["x", "X"].indexOf(_) > -1) return new Date((_ === "X" ? 1e3 : 1) * f);
196
- var r = F(_)(f), W = r.year, A = r.month, V = r.day, X = r.hours, z = r.minutes, O = r.seconds, $ = r.milliseconds, at = r.zone, st = r.week, dt = /* @__PURE__ */ new Date(), ft = V || (W || A ? 1 : dt.getDate()), ot = W || dt.getFullYear(), B = 0;
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;
197
199
  W && !A || (B = A > 0 ? A - 1 : dt.getMonth());
198
- var Q, j = X || 0, nt = z || 0, K = O || 0, rt = $ || 0;
199
- return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) : a ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : (Q = new Date(ot, B, ft, j, nt, K, rt), st && (Q = u(Q).week(st).toDate()), Q);
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);
200
202
  } catch {
201
203
  return /* @__PURE__ */ new Date("");
202
204
  }
203
- }(G, b, P, L), this.init(), w && w !== true && (this.$L = this.locale(w).$L), k && G != this.format(b) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
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 = {};
204
206
  } else if (b instanceof Array) for (var o = b.length, l = 1; l <= o; l += 1) {
205
207
  y[1] = b[l - 1];
206
208
  var h = L.apply(this, y);
@@ -216,8 +218,8 @@ function Ke() {
216
218
  });
217
219
  }(Tt)), Tt.exports;
218
220
  }
219
- var Je = Ke();
220
- const tr = /* @__PURE__ */ Wt(Je);
221
+ var Ke = Je();
222
+ const tr = /* @__PURE__ */ Wt(Ke);
221
223
  var bt = { exports: {} }, er = bt.exports, ne;
222
224
  function rr() {
223
225
  return ne || (ne = 1, function(t, e) {
@@ -225,10 +227,10 @@ function rr() {
225
227
  t.exports = i();
226
228
  })(er, function() {
227
229
  return function(n, i) {
228
- var s = i.prototype, m = s.format;
229
- s.format = function(d) {
230
+ var a = i.prototype, k = a.format;
231
+ a.format = function(d) {
230
232
  var D = this, E = this.$locale();
231
- if (!this.isValid()) return m.bind(this)(d);
233
+ if (!this.isValid()) return k.bind(this)(d);
232
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) {
233
235
  switch (I) {
234
236
  case "Q":
@@ -262,7 +264,7 @@ function rr() {
262
264
  return I;
263
265
  }
264
266
  });
265
- return m.bind(this)(g);
267
+ return k.bind(this)(g);
266
268
  };
267
269
  };
268
270
  });
@@ -274,27 +276,27 @@ var It = function() {
274
276
  var t = /* @__PURE__ */ c(function(w, o, l, h) {
275
277
  for (l = l || {}, h = w.length; h--; l[w[h]] = o) ;
276
278
  return l;
277
- }, "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], s = [1, 28], m = [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], P = [1, 23], y = [1, 25], b = [1, 35], x = {
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 = {
278
280
  trace: /* @__PURE__ */ c(function() {
279
281
  }, "trace"),
280
282
  yy: {},
281
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 },
282
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" },
283
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]],
284
- performAction: /* @__PURE__ */ c(function(o, l, h, f, _, a, u) {
285
- var r = a.length - 1;
286
+ performAction: /* @__PURE__ */ c(function(o, l, h, f, _, s, u) {
287
+ var r = s.length - 1;
286
288
  switch (_) {
287
289
  case 1:
288
- return a[r - 1];
290
+ return s[r - 1];
289
291
  case 2:
290
292
  this.$ = [];
291
293
  break;
292
294
  case 3:
293
- a[r - 1].push(a[r]), this.$ = a[r - 1];
295
+ s[r - 1].push(s[r]), this.$ = s[r - 1];
294
296
  break;
295
297
  case 4:
296
298
  case 5:
297
- this.$ = a[r];
299
+ this.$ = s[r];
298
300
  break;
299
301
  case 6:
300
302
  case 7:
@@ -328,82 +330,82 @@ var It = function() {
328
330
  f.setWeekend("saturday");
329
331
  break;
330
332
  case 17:
331
- f.setDateFormat(a[r].substr(11)), this.$ = a[r].substr(11);
333
+ f.setDateFormat(s[r].substr(11)), this.$ = s[r].substr(11);
332
334
  break;
333
335
  case 18:
334
- f.enableInclusiveEndDates(), this.$ = a[r].substr(18);
336
+ f.enableInclusiveEndDates(), this.$ = s[r].substr(18);
335
337
  break;
336
338
  case 19:
337
- f.TopAxis(), this.$ = a[r].substr(8);
339
+ f.TopAxis(), this.$ = s[r].substr(8);
338
340
  break;
339
341
  case 20:
340
- f.setAxisFormat(a[r].substr(11)), this.$ = a[r].substr(11);
342
+ f.setAxisFormat(s[r].substr(11)), this.$ = s[r].substr(11);
341
343
  break;
342
344
  case 21:
343
- f.setTickInterval(a[r].substr(13)), this.$ = a[r].substr(13);
345
+ f.setTickInterval(s[r].substr(13)), this.$ = s[r].substr(13);
344
346
  break;
345
347
  case 22:
346
- f.setExcludes(a[r].substr(9)), this.$ = a[r].substr(9);
348
+ f.setExcludes(s[r].substr(9)), this.$ = s[r].substr(9);
347
349
  break;
348
350
  case 23:
349
- f.setIncludes(a[r].substr(9)), this.$ = a[r].substr(9);
351
+ f.setIncludes(s[r].substr(9)), this.$ = s[r].substr(9);
350
352
  break;
351
353
  case 24:
352
- f.setTodayMarker(a[r].substr(12)), this.$ = a[r].substr(12);
354
+ f.setTodayMarker(s[r].substr(12)), this.$ = s[r].substr(12);
353
355
  break;
354
356
  case 27:
355
- f.setDiagramTitle(a[r].substr(6)), this.$ = a[r].substr(6);
357
+ f.setDiagramTitle(s[r].substr(6)), this.$ = s[r].substr(6);
356
358
  break;
357
359
  case 28:
358
- this.$ = a[r].trim(), f.setAccTitle(this.$);
360
+ this.$ = s[r].trim(), f.setAccTitle(this.$);
359
361
  break;
360
362
  case 29:
361
363
  case 30:
362
- this.$ = a[r].trim(), f.setAccDescription(this.$);
364
+ this.$ = s[r].trim(), f.setAccDescription(this.$);
363
365
  break;
364
366
  case 31:
365
- f.addSection(a[r].substr(8)), this.$ = a[r].substr(8);
367
+ f.addSection(s[r].substr(8)), this.$ = s[r].substr(8);
366
368
  break;
367
369
  case 33:
368
- f.addTask(a[r - 1], a[r]), this.$ = "task";
370
+ f.addTask(s[r - 1], s[r]), this.$ = "task";
369
371
  break;
370
372
  case 34:
371
- this.$ = a[r - 1], f.setClickEvent(a[r - 1], a[r], null);
373
+ this.$ = s[r - 1], f.setClickEvent(s[r - 1], s[r], null);
372
374
  break;
373
375
  case 35:
374
- this.$ = a[r - 2], f.setClickEvent(a[r - 2], a[r - 1], a[r]);
376
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], s[r]);
375
377
  break;
376
378
  case 36:
377
- this.$ = a[r - 2], f.setClickEvent(a[r - 2], a[r - 1], null), f.setLink(a[r - 2], a[r]);
379
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], null), f.setLink(s[r - 2], s[r]);
378
380
  break;
379
381
  case 37:
380
- this.$ = a[r - 3], f.setClickEvent(a[r - 3], a[r - 2], a[r - 1]), f.setLink(a[r - 3], a[r]);
382
+ this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 2], s[r - 1]), f.setLink(s[r - 3], s[r]);
381
383
  break;
382
384
  case 38:
383
- this.$ = a[r - 2], f.setClickEvent(a[r - 2], a[r], null), f.setLink(a[r - 2], a[r - 1]);
385
+ this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r], null), f.setLink(s[r - 2], s[r - 1]);
384
386
  break;
385
387
  case 39:
386
- this.$ = a[r - 3], f.setClickEvent(a[r - 3], a[r - 1], a[r]), f.setLink(a[r - 3], a[r - 2]);
388
+ this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 1], s[r]), f.setLink(s[r - 3], s[r - 2]);
387
389
  break;
388
390
  case 40:
389
- this.$ = a[r - 1], f.setLink(a[r - 1], a[r]);
391
+ this.$ = s[r - 1], f.setLink(s[r - 1], s[r]);
390
392
  break;
391
393
  case 41:
392
394
  case 47:
393
- this.$ = a[r - 1] + " " + a[r];
395
+ this.$ = s[r - 1] + " " + s[r];
394
396
  break;
395
397
  case 42:
396
398
  case 43:
397
399
  case 45:
398
- this.$ = a[r - 2] + " " + a[r - 1] + " " + a[r];
400
+ this.$ = s[r - 2] + " " + s[r - 1] + " " + s[r];
399
401
  break;
400
402
  case 44:
401
403
  case 46:
402
- this.$ = a[r - 3] + " " + a[r - 2] + " " + a[r - 1] + " " + a[r];
404
+ this.$ = s[r - 3] + " " + s[r - 2] + " " + s[r - 1] + " " + s[r];
403
405
  break;
404
406
  }
405
407
  }, "anonymous"),
406
- 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: s, 15: m, 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: P, 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: s, 15: m, 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: P, 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])],
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])],
407
409
  defaultActions: {},
408
410
  parseError: /* @__PURE__ */ c(function(o, l) {
409
411
  if (l.recoverable)
@@ -414,16 +416,16 @@ var It = function() {
414
416
  }
415
417
  }, "parseError"),
416
418
  parse: /* @__PURE__ */ c(function(o) {
417
- var l = this, h = [0], f = [], _ = [null], a = [], u = this.table, r = "", W = 0, A = 0, V = 2, X = 1, z = a.slice.call(arguments, 1), O = Object.create(this.lexer), $ = { yy: {} };
418
- for (var at in this.yy)
419
- Object.prototype.hasOwnProperty.call(this.yy, at) && ($.yy[at] = this.yy[at]);
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]);
420
422
  O.setInput(o, $.yy), $.yy.lexer = O, $.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
421
- var st = O.yylloc;
422
- a.push(st);
423
+ var at = O.yylloc;
424
+ s.push(at);
423
425
  var dt = O.options && O.options.ranges;
424
426
  typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
425
427
  function ft(Z) {
426
- h.length = h.length - 2 * Z, _.length = _.length - Z, a.length = a.length - Z;
428
+ h.length = h.length - 2 * Z, _.length = _.length - Z, s.length = s.length - Z;
427
429
  }
428
430
  c(ft, "popStack");
429
431
  function ot() {
@@ -431,7 +433,7 @@ var It = function() {
431
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;
432
434
  }
433
435
  c(ot, "lex");
434
- for (var B, Q, j, nt, K = {}, rt, J, Xt, yt; ; ) {
436
+ for (var B, Q, j, nt, J = {}, rt, K, Xt, yt; ; ) {
435
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]) {
436
438
  var Et = "";
437
439
  yt = [];
@@ -443,7 +445,7 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
443
445
  text: O.match,
444
446
  token: this.terminals_[B] || B,
445
447
  line: O.yylineno,
446
- loc: st,
448
+ loc: at,
447
449
  expected: yt
448
450
  });
449
451
  }
@@ -451,28 +453,28 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
451
453
  throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + B);
452
454
  switch (j[0]) {
453
455
  case 1:
454
- h.push(B), _.push(O.yytext), a.push(O.yylloc), h.push(j[1]), B = null, A = O.yyleng, r = O.yytext, W = O.yylineno, st = O.yylloc;
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;
455
457
  break;
456
458
  case 2:
457
- if (J = this.productions_[j[1]][1], K.$ = _[_.length - J], K._$ = {
458
- first_line: a[a.length - (J || 1)].first_line,
459
- last_line: a[a.length - 1].last_line,
460
- first_column: a[a.length - (J || 1)].first_column,
461
- last_column: a[a.length - 1].last_column
462
- }, dt && (K._$.range = [
463
- a[a.length - (J || 1)].range[0],
464
- a[a.length - 1].range[1]
465
- ]), nt = this.performAction.apply(K, [
459
+ if (K = this.productions_[j[1]][1], J.$ = _[_.length - K], J._$ = {
460
+ first_line: s[s.length - (K || 1)].first_line,
461
+ last_line: s[s.length - 1].last_line,
462
+ first_column: s[s.length - (K || 1)].first_column,
463
+ last_column: s[s.length - 1].last_column
464
+ }, dt && (J._$.range = [
465
+ s[s.length - (K || 1)].range[0],
466
+ s[s.length - 1].range[1]
467
+ ]), nt = this.performAction.apply(J, [
466
468
  r,
467
469
  A,
468
470
  W,
469
471
  $.yy,
470
472
  j[1],
471
473
  _,
472
- a
473
- ].concat(z)), typeof nt < "u")
474
+ s
475
+ ].concat(P)), typeof nt < "u")
474
476
  return nt;
475
- J && (h = h.slice(0, -1 * J * 2), _ = _.slice(0, -1 * J), a = a.slice(0, -1 * J)), h.push(this.productions_[j[1]][0]), _.push(K.$), a.push(K._$), Xt = u[h[h.length - 2]][h[h.length - 1]], h.push(Xt);
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);
476
478
  break;
477
479
  case 3:
478
480
  return true;
@@ -586,8 +588,8 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
586
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)
587
589
  return h;
588
590
  if (this._backtrack) {
589
- for (var a in _)
590
- this[a] = _[a];
591
+ for (var s in _)
592
+ this[s] = _[s];
591
593
  return false;
592
594
  }
593
595
  return false;
@@ -599,10 +601,10 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
599
601
  this._input || (this.done = true);
600
602
  var o, l, h, f;
601
603
  this._more || (this.yytext = "", this.match = "");
602
- for (var _ = this._currentRules(), a = 0; a < _.length; a++)
603
- if (h = this._input.match(this.rules[_[a]]), h && (!l || h[0].length > l[0].length)) {
604
- if (l = h, f = a, this.options.backtrack_lexer) {
605
- if (o = this.test_match(h, _[a]), o !== false)
604
+ for (var _ = this._currentRules(), s = 0; s < _.length; s++)
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)
606
608
  return o;
607
609
  if (this._backtrack) {
608
610
  l = false;
@@ -776,36 +778,36 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
776
778
  return w;
777
779
  }();
778
780
  x.lexer = T;
779
- function k() {
781
+ function m() {
780
782
  this.yy = {};
781
783
  }
782
- return c(k, "Parser"), k.prototype = x, x.Parser = k, new k();
784
+ return c(m, "Parser"), m.prototype = x, x.Parser = m, new m();
783
785
  }();
784
786
  It.parser = It;
785
- var ar = It;
787
+ var sr = It;
786
788
  U.extend(Qe);
787
789
  U.extend(tr);
788
790
  U.extend(ir);
789
- var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht = [], kt = [], Ot = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone"], Bt = [], mt = false, qt = false, Ht = "sunday", Ct = "saturday", Ft = 0, sr = /* @__PURE__ */ c(function() {
790
- Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, q = [], tt = "", Vt = "", Nt = "", zt = void 0, Pt = "", ht = [], kt = [], mt = false, qt = false, Ft = 0, Ot = /* @__PURE__ */ new Map(), De(), Ht = "sunday", Ct = "saturday";
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";
791
793
  }, "clear"), or = /* @__PURE__ */ c(function(t) {
792
794
  Vt = t;
793
795
  }, "setAxisFormat"), cr = /* @__PURE__ */ c(function() {
794
796
  return Vt;
795
797
  }, "getAxisFormat"), lr = /* @__PURE__ */ c(function(t) {
796
- zt = t;
798
+ Pt = t;
797
799
  }, "setTickInterval"), ur = /* @__PURE__ */ c(function() {
798
- return zt;
800
+ return Pt;
799
801
  }, "getTickInterval"), dr = /* @__PURE__ */ c(function(t) {
800
- Pt = t;
802
+ zt = t;
801
803
  }, "setTodayMarker"), fr = /* @__PURE__ */ c(function() {
802
- return Pt;
804
+ return zt;
803
805
  }, "getTodayMarker"), hr = /* @__PURE__ */ c(function(t) {
804
806
  tt = t;
805
- }, "setDateFormat"), kr = /* @__PURE__ */ c(function() {
806
- mt = true;
807
- }, "enableInclusiveEndDates"), mr = /* @__PURE__ */ c(function() {
808
- return mt;
807
+ }, "setDateFormat"), mr = /* @__PURE__ */ c(function() {
808
+ kt = true;
809
+ }, "enableInclusiveEndDates"), kr = /* @__PURE__ */ c(function() {
810
+ return kt;
809
811
  }, "endDatesAreInclusive"), yr = /* @__PURE__ */ c(function() {
810
812
  qt = true;
811
813
  }, "enableTopAxis"), gr = /* @__PURE__ */ c(function() {
@@ -821,9 +823,9 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
821
823
  }, "setIncludes"), br = /* @__PURE__ */ c(function() {
822
824
  return ht;
823
825
  }, "getIncludes"), wr = /* @__PURE__ */ c(function(t) {
824
- kt = t.toLowerCase().split(/[\s,]+/);
826
+ mt = t.toLowerCase().split(/[\s,]+/);
825
827
  }, "setExcludes"), _r = /* @__PURE__ */ c(function() {
826
- return kt;
828
+ return mt;
827
829
  }, "getExcludes"), Dr = /* @__PURE__ */ c(function() {
828
830
  return Ot;
829
831
  }, "getLinks"), Sr = /* @__PURE__ */ c(function(t) {
@@ -831,11 +833,11 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
831
833
  }, "addSection"), Cr = /* @__PURE__ */ c(function() {
832
834
  return Rt;
833
835
  }, "getSections"), Er = /* @__PURE__ */ c(function() {
834
- let t = ae();
836
+ let t = se();
835
837
  const e = 10;
836
838
  let n = 0;
837
839
  for (; !t && n < e; )
838
- t = ae(), n++;
840
+ t = se(), n++;
839
841
  return St = q, St;
840
842
  }, "getTasks"), le = /* @__PURE__ */ c(function(t, e, n, i) {
841
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()));
@@ -848,29 +850,29 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
848
850
  }, "setWeekend"), ue = /* @__PURE__ */ c(function(t, e, n, i) {
849
851
  if (!n.length || t.manualEndTime)
850
852
  return;
851
- let s;
852
- t.startTime instanceof Date ? s = U(t.startTime) : s = U(t.startTime, e, true), s = s.add(1, "d");
853
- let m;
854
- t.endTime instanceof Date ? m = U(t.endTime) : m = U(t.endTime, e, true);
853
+ let a;
854
+ t.startTime instanceof Date ? a = U(t.startTime) : a = U(t.startTime, e, true), a = a.add(1, "d");
855
+ let k;
856
+ t.endTime instanceof Date ? k = U(t.endTime) : k = U(t.endTime, e, true);
855
857
  const [d, D] = Fr(
856
- s,
857
- m,
858
+ a,
859
+ k,
858
860
  e,
859
861
  n,
860
862
  i
861
863
  );
862
864
  t.endTime = d.toDate(), t.renderEndTime = D;
863
- }, "checkTaskDates"), Fr = /* @__PURE__ */ c(function(t, e, n, i, s) {
864
- let m = false, d = null;
865
+ }, "checkTaskDates"), Fr = /* @__PURE__ */ c(function(t, e, n, i, a) {
866
+ let k = false, d = null;
865
867
  for (; t <= e; )
866
- m || (d = e.toDate()), m = le(t, n, i, s), m && (e = e.add(1, "d")), t = t.add(1, "d");
868
+ k || (d = e.toDate()), k = le(t, n, i, a), k && (e = e.add(1, "d")), t = t.add(1, "d");
867
869
  return [e, d];
868
870
  }, "fixTaskDates"), Lt = /* @__PURE__ */ c(function(t, e, n) {
869
871
  n = n.trim();
870
- const s = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
871
- if (s !== null) {
872
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
873
+ if (a !== null) {
872
874
  let d = null;
873
- for (const E of s.groups.ids.split(" ")) {
875
+ for (const E of a.groups.ids.split(" ")) {
874
876
  let C = it(E);
875
877
  C !== void 0 && (!d || C.endTime > d.endTime) && (d = C);
876
878
  }
@@ -879,9 +881,9 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
879
881
  const D = /* @__PURE__ */ new Date();
880
882
  return D.setHours(0, 0, 0, 0), D;
881
883
  }
882
- let m = U(n, e.trim(), true);
883
- if (m.isValid())
884
- return m.toDate();
884
+ let k = U(n, e.trim(), true);
885
+ if (k.isValid())
886
+ return k.toDate();
885
887
  {
886
888
  Dt.debug("Invalid date:" + n), Dt.debug("With date format:" + e.trim());
887
889
  const d = new Date(n);
@@ -899,10 +901,10 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
899
901
  return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
900
902
  }, "parseDuration"), fe = /* @__PURE__ */ c(function(t, e, n, i = false) {
901
903
  n = n.trim();
902
- const m = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
903
- if (m !== null) {
904
+ const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
905
+ if (k !== null) {
904
906
  let g = null;
905
- for (const S of m.groups.ids.split(" ")) {
907
+ for (const S of k.groups.ids.split(" ")) {
906
908
  let p = it(S);
907
909
  p !== void 0 && (!g || p.startTime < g.startTime) && (g = p);
908
910
  }
@@ -926,57 +928,57 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
926
928
  }, "parseId"), Lr = /* @__PURE__ */ c(function(t, e) {
927
929
  let n;
928
930
  e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
929
- const i = n.split(","), s = {};
930
- Gt(i, s, ce);
931
+ const i = n.split(","), a = {};
932
+ Gt(i, a, ce);
931
933
  for (let d = 0; d < i.length; d++)
932
934
  i[d] = i[d].trim();
933
- let m = "";
935
+ let k = "";
934
936
  switch (i.length) {
935
937
  case 1:
936
- s.id = lt(), s.startTime = t.endTime, m = i[0];
938
+ a.id = lt(), a.startTime = t.endTime, k = i[0];
937
939
  break;
938
940
  case 2:
939
- s.id = lt(), s.startTime = Lt(void 0, tt, i[0]), m = i[1];
941
+ a.id = lt(), a.startTime = Lt(void 0, tt, i[0]), k = i[1];
940
942
  break;
941
943
  case 3:
942
- s.id = lt(i[0]), s.startTime = Lt(void 0, tt, i[1]), m = i[2];
944
+ a.id = lt(i[0]), a.startTime = Lt(void 0, tt, i[1]), k = i[2];
943
945
  break;
944
946
  }
945
- return m && (s.endTime = fe(s.startTime, tt, m, mt), s.manualEndTime = U(m, "YYYY-MM-DD", true).isValid(), ue(s, tt, kt, ht)), s;
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;
946
948
  }, "compileData"), Yr = /* @__PURE__ */ c(function(t, e) {
947
949
  let n;
948
950
  e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
949
- const i = n.split(","), s = {};
950
- Gt(i, s, ce);
951
- for (let m = 0; m < i.length; m++)
952
- i[m] = i[m].trim();
951
+ const i = n.split(","), a = {};
952
+ Gt(i, a, ce);
953
+ for (let k = 0; k < i.length; k++)
954
+ i[k] = i[k].trim();
953
955
  switch (i.length) {
954
956
  case 1:
955
- s.id = lt(), s.startTime = {
957
+ a.id = lt(), a.startTime = {
956
958
  type: "prevTaskEnd",
957
959
  id: t
958
- }, s.endTime = {
960
+ }, a.endTime = {
959
961
  data: i[0]
960
962
  };
961
963
  break;
962
964
  case 2:
963
- s.id = lt(), s.startTime = {
965
+ a.id = lt(), a.startTime = {
964
966
  type: "getStartDate",
965
967
  startData: i[0]
966
- }, s.endTime = {
968
+ }, a.endTime = {
967
969
  data: i[1]
968
970
  };
969
971
  break;
970
972
  case 3:
971
- s.id = lt(i[0]), s.startTime = {
973
+ a.id = lt(i[0]), a.startTime = {
972
974
  type: "getStartDate",
973
975
  startData: i[1]
974
- }, s.endTime = {
976
+ }, a.endTime = {
975
977
  data: i[2]
976
978
  };
977
979
  break;
978
980
  }
979
- return s;
981
+ return a;
980
982
  }, "parseData"), Yt, _t, q = [], he = {}, Wr = /* @__PURE__ */ c(function(t, e) {
981
983
  const n = {
982
984
  section: ut,
@@ -989,8 +991,8 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
989
991
  classes: []
990
992
  }, i = Yr(_t, e);
991
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++;
992
- const s = q.push(n);
993
- _t = n.id, he[n.id] = s - 1;
994
+ const a = q.push(n);
995
+ _t = n.id, he[n.id] = a - 1;
994
996
  }, "addTask"), it = /* @__PURE__ */ c(function(t) {
995
997
  const e = he[t];
996
998
  return q[e];
@@ -1003,62 +1005,62 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
1003
1005
  classes: []
1004
1006
  }, i = Lr(Yt, e);
1005
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);
1006
- }, "addTaskOrg"), ae = /* @__PURE__ */ c(function() {
1008
+ }, "addTaskOrg"), se = /* @__PURE__ */ c(function() {
1007
1009
  const t = /* @__PURE__ */ c(function(n) {
1008
1010
  const i = q[n];
1009
- let s = "";
1011
+ let a = "";
1010
1012
  switch (q[n].raw.startTime.type) {
1011
1013
  case "prevTaskEnd": {
1012
- const m = it(i.prevTaskId);
1013
- i.startTime = m.endTime;
1014
+ const k = it(i.prevTaskId);
1015
+ i.startTime = k.endTime;
1014
1016
  break;
1015
1017
  }
1016
1018
  case "getStartDate":
1017
- s = Lt(void 0, tt, q[n].raw.startTime.startData), s && (q[n].startTime = s);
1019
+ a = Lt(void 0, tt, q[n].raw.startTime.startData), a && (q[n].startTime = a);
1018
1020
  break;
1019
1021
  }
1020
1022
  return q[n].startTime && (q[n].endTime = fe(
1021
1023
  q[n].startTime,
1022
1024
  tt,
1023
1025
  q[n].raw.endTime.data,
1024
- mt
1026
+ kt
1025
1027
  ), q[n].endTime && (q[n].processed = true, q[n].manualEndTime = U(
1026
1028
  q[n].raw.endTime.data,
1027
1029
  "YYYY-MM-DD",
1028
1030
  true
1029
- ).isValid(), ue(q[n], tt, kt, ht))), q[n].processed;
1031
+ ).isValid(), ue(q[n], tt, mt, ht))), q[n].processed;
1030
1032
  }, "compileTask");
1031
1033
  let e = true;
1032
1034
  for (const [n, i] of q.entries())
1033
1035
  t(n), e = e && i.processed;
1034
1036
  return e;
1035
- }, "compileTasks"), zr = /* @__PURE__ */ c(function(t, e) {
1037
+ }, "compileTasks"), Pr = /* @__PURE__ */ c(function(t, e) {
1036
1038
  let n = e;
1037
1039
  ct().securityLevel !== "loose" && (n = _e.sanitizeUrl(e)), t.split(",").forEach(function(i) {
1038
- it(i) !== void 0 && (me(i, () => {
1040
+ it(i) !== void 0 && (ke(i, () => {
1039
1041
  window.open(n, "_self");
1040
1042
  }), Ot.set(i, n));
1041
- }), ke(t, "clickable");
1042
- }, "setLink"), ke = /* @__PURE__ */ c(function(t, e) {
1043
+ }), me(t, "clickable");
1044
+ }, "setLink"), me = /* @__PURE__ */ c(function(t, e) {
1043
1045
  t.split(",").forEach(function(n) {
1044
1046
  let i = it(n);
1045
1047
  i !== void 0 && i.classes.push(e);
1046
1048
  });
1047
- }, "setClass"), Pr = /* @__PURE__ */ c(function(t, e, n) {
1049
+ }, "setClass"), zr = /* @__PURE__ */ c(function(t, e, n) {
1048
1050
  if (ct().securityLevel !== "loose" || e === void 0)
1049
1051
  return;
1050
1052
  let i = [];
1051
1053
  if (typeof n == "string") {
1052
1054
  i = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1053
- for (let m = 0; m < i.length; m++) {
1054
- let d = i[m].trim();
1055
- d.startsWith('"') && d.endsWith('"') && (d = d.substr(1, d.length - 2)), i[m] = d;
1055
+ for (let k = 0; k < i.length; k++) {
1056
+ let d = i[k].trim();
1057
+ d.startsWith('"') && d.endsWith('"') && (d = d.substr(1, d.length - 2)), i[k] = d;
1056
1058
  }
1057
1059
  }
1058
- i.length === 0 && i.push(t), it(t) !== void 0 && me(t, () => {
1060
+ i.length === 0 && i.push(t), it(t) !== void 0 && ke(t, () => {
1059
1061
  Se.runFunc(e, ...i);
1060
1062
  });
1061
- }, "setClickFun"), me = /* @__PURE__ */ c(function(t, e) {
1063
+ }, "setClickFun"), ke = /* @__PURE__ */ c(function(t, e) {
1062
1064
  Bt.push(
1063
1065
  function() {
1064
1066
  const n = document.querySelector(`[id="${t}"]`);
@@ -1075,19 +1077,19 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
1075
1077
  );
1076
1078
  }, "pushFun"), Or = /* @__PURE__ */ c(function(t, e, n) {
1077
1079
  t.split(",").forEach(function(i) {
1078
- Pr(i, e, n);
1079
- }), ke(t, "clickable");
1080
+ zr(i, e, n);
1081
+ }), me(t, "clickable");
1080
1082
  }, "setClickEvent"), Rr = /* @__PURE__ */ c(function(t) {
1081
1083
  Bt.forEach(function(e) {
1082
1084
  e(t);
1083
1085
  });
1084
1086
  }, "bindFunctions"), Nr = {
1085
1087
  getConfig: /* @__PURE__ */ c(() => ct().gantt, "getConfig"),
1086
- clear: sr,
1088
+ clear: ar,
1087
1089
  setDateFormat: hr,
1088
1090
  getDateFormat: xr,
1089
- enableInclusiveEndDates: kr,
1090
- endDatesAreInclusive: mr,
1091
+ enableInclusiveEndDates: mr,
1092
+ endDatesAreInclusive: kr,
1091
1093
  enableTopAxis: yr,
1092
1094
  topAxisEnabled: gr,
1093
1095
  setAxisFormat: or,
@@ -1115,7 +1117,7 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
1115
1117
  setExcludes: wr,
1116
1118
  getExcludes: _r,
1117
1119
  setClickEvent: Or,
1118
- setLink: zr,
1120
+ setLink: Pr,
1119
1121
  getLinks: Dr,
1120
1122
  bindFunctions: Rr,
1121
1123
  parseDuration: de,
@@ -1127,77 +1129,77 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", zt = void 0, Pt = "", ht
1127
1129
  function Gt(t, e, n) {
1128
1130
  let i = true;
1129
1131
  for (; i; )
1130
- i = false, n.forEach(function(s) {
1131
- const m = "^\\s*" + s + "\\s*$", d = new RegExp(m);
1132
- t[0].match(d) && (e[s] = true, t.shift(1), i = true);
1132
+ i = false, n.forEach(function(a) {
1133
+ const k = "^\\s*" + a + "\\s*$", d = new RegExp(k);
1134
+ t[0].match(d) && (e[a] = true, t.shift(1), i = true);
1133
1135
  });
1134
1136
  }
1135
1137
  c(Gt, "getTaskTags");
1136
1138
  var Br = /* @__PURE__ */ c(function() {
1137
1139
  Dt.debug("Something is calling, setConf, remove the call");
1138
- }, "setConf"), se = {
1139
- monday: Pe,
1140
- tuesday: ze,
1141
- wednesday: Ve,
1142
- thursday: We,
1143
- friday: Ye,
1144
- saturday: Le,
1145
- sunday: Fe
1140
+ }, "setConf"), ae = {
1141
+ monday: Le,
1142
+ tuesday: Fe,
1143
+ wednesday: Ie,
1144
+ thursday: Ae,
1145
+ friday: Me,
1146
+ saturday: Ee,
1147
+ sunday: Ce
1146
1148
  }, qr = /* @__PURE__ */ c((t, e) => {
1147
- let n = [...t].map(() => -1 / 0), i = [...t].sort((m, d) => m.startTime - d.startTime || m.order - d.order), s = 0;
1148
- for (const m of i)
1149
+ let n = [...t].map(() => -1 / 0), i = [...t].sort((k, d) => k.startTime - d.startTime || k.order - d.order), a = 0;
1150
+ for (const k of i)
1149
1151
  for (let d = 0; d < n.length; d++)
1150
- if (m.startTime >= n[d]) {
1151
- n[d] = m.endTime, m.order = d + e, d > s && (s = d);
1152
+ if (k.startTime >= n[d]) {
1153
+ n[d] = k.endTime, k.order = d + e, d > a && (a = d);
1152
1154
  break;
1153
1155
  }
1154
- return s;
1156
+ return a;
1155
1157
  }, "getMaxIntersections"), et, Hr = /* @__PURE__ */ c(function(t, e, n, i) {
1156
- const s = ct().gantt, m = ct().securityLevel;
1158
+ const a = ct().gantt, k = ct().securityLevel;
1157
1159
  let d;
1158
- m === "sandbox" && (d = gt("#i" + e));
1159
- const D = m === "sandbox" ? gt(d.nodes()[0].contentDocument.body) : gt("body"), E = m === "sandbox" ? d.nodes()[0].contentDocument : document, C = E.getElementById(e);
1160
- et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), s.useWidth !== void 0 && (et = s.useWidth);
1160
+ k === "sandbox" && (d = gt("#i" + e));
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
+ et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
1161
1163
  const g = i.db.getTasks();
1162
1164
  let I = [];
1163
1165
  for (const y of g)
1164
1166
  I.push(y.type);
1165
- I = P(I);
1167
+ I = z(I);
1166
1168
  const S = {};
1167
- let p = 2 * s.topPadding;
1168
- if (i.db.getDisplayMode() === "compact" || s.displayMode === "compact") {
1169
+ let p = 2 * a.topPadding;
1170
+ if (i.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1169
1171
  const y = {};
1170
1172
  for (const x of g)
1171
1173
  y[x.section] === void 0 ? y[x.section] = [x] : y[x.section].push(x);
1172
1174
  let b = 0;
1173
1175
  for (const x of Object.keys(y)) {
1174
1176
  const T = qr(y[x], b) + 1;
1175
- b += T, p += T * (s.barHeight + s.barGap), S[x] = T;
1177
+ b += T, p += T * (a.barHeight + a.barGap), S[x] = T;
1176
1178
  }
1177
1179
  } else {
1178
- p += g.length * (s.barHeight + s.barGap);
1180
+ p += g.length * (a.barHeight + a.barGap);
1179
1181
  for (const y of I)
1180
1182
  S[y] = g.filter((b) => b.type === y).length;
1181
1183
  }
1182
1184
  C.setAttribute("viewBox", "0 0 " + et + " " + p);
1183
- const H = D.select(`[id="${e}"]`), F = Ce().domain([
1184
- Ee(g, function(y) {
1185
+ const H = D.select(`[id="${e}"]`), F = Ye().domain([
1186
+ We(g, function(y) {
1185
1187
  return y.startTime;
1186
1188
  }),
1187
- Me(g, function(y) {
1189
+ Ve(g, function(y) {
1188
1190
  return y.endTime;
1189
1191
  })
1190
- ]).rangeRound([0, et - s.leftPadding - s.rightPadding]);
1192
+ ]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
1191
1193
  function v(y, b) {
1192
1194
  const x = y.startTime, T = b.startTime;
1193
- let k = 0;
1194
- return x > T ? k = 1 : x < T && (k = -1), k;
1195
+ let m = 0;
1196
+ return x > T ? m = 1 : x < T && (m = -1), m;
1195
1197
  }
1196
- c(v, "taskCompare"), g.sort(v), M(g, et, p), be(H, p, et, s.useMaxWidth), H.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", s.titleTopMargin).attr("class", "titleText");
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");
1197
1199
  function M(y, b, x) {
1198
- const T = s.barHeight, k = T + s.barGap, w = s.topPadding, o = s.leftPadding, l = Ae().domain([0, I.length]).range(["#00B9FA", "#F95002"]).interpolate(Ie);
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);
1199
1201
  Y(
1200
- k,
1202
+ m,
1201
1203
  w,
1202
1204
  o,
1203
1205
  b,
@@ -1205,64 +1207,64 @@ var Br = /* @__PURE__ */ c(function() {
1205
1207
  y,
1206
1208
  i.db.getExcludes(),
1207
1209
  i.db.getIncludes()
1208
- ), N(o, w, b, x), L(y, k, w, o, T, l, b), R(k, w), G(o, w, b, x);
1210
+ ), N(o, w, b, x), L(y, m, w, o, T, l, b), R(m, w), G(o, w, b, x);
1209
1211
  }
1210
1212
  c(M, "makeGantt");
1211
- function L(y, b, x, T, k, w, o) {
1213
+ function L(y, b, x, T, m, w, o) {
1212
1214
  const h = [...new Set(y.map((u) => u.order))].map((u) => y.find((r) => r.order === u));
1213
1215
  H.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(u, r) {
1214
1216
  return r = u.order, r * b + x - 2;
1215
1217
  }).attr("width", function() {
1216
- return o - s.rightPadding / 2;
1218
+ return o - a.rightPadding / 2;
1217
1219
  }).attr("height", b).attr("class", function(u) {
1218
1220
  for (const [r, W] of I.entries())
1219
1221
  if (u.type === W)
1220
- return "section section" + r % s.numberSectionStyles;
1222
+ return "section section" + r % a.numberSectionStyles;
1221
1223
  return "section section0";
1222
1224
  });
1223
1225
  const f = H.append("g").selectAll("rect").data(y).enter(), _ = i.db.getLinks();
1224
1226
  if (f.append("rect").attr("id", function(u) {
1225
1227
  return u.id;
1226
1228
  }).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
1227
- return u.milestone ? F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * k : F(u.startTime) + T;
1229
+ return u.milestone ? F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m : F(u.startTime) + T;
1228
1230
  }).attr("y", function(u, r) {
1229
1231
  return r = u.order, r * b + x;
1230
1232
  }).attr("width", function(u) {
1231
- return u.milestone ? k : F(u.renderEndTime || u.endTime) - F(u.startTime);
1232
- }).attr("height", k).attr("transform-origin", function(u, r) {
1233
- return r = u.order, (F(u.startTime) + T + 0.5 * (F(u.endTime) - F(u.startTime))).toString() + "px " + (r * b + x + 0.5 * k).toString() + "px";
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";
1234
1236
  }).attr("class", function(u) {
1235
1237
  const r = "task";
1236
1238
  let W = "";
1237
1239
  u.classes.length > 0 && (W = u.classes.join(" "));
1238
1240
  let A = 0;
1239
- for (const [X, z] of I.entries())
1240
- u.type === z && (A = X % s.numberSectionStyles);
1241
+ for (const [X, P] of I.entries())
1242
+ u.type === P && (A = X % a.numberSectionStyles);
1241
1243
  let V = "";
1242
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;
1243
1245
  }), f.append("text").attr("id", function(u) {
1244
1246
  return u.id + "-text";
1245
1247
  }).text(function(u) {
1246
1248
  return u.task;
1247
- }).attr("font-size", s.fontSize).attr("x", function(u) {
1249
+ }).attr("font-size", a.fontSize).attr("x", function(u) {
1248
1250
  let r = F(u.startTime), W = F(u.renderEndTime || u.endTime);
1249
- u.milestone && (r += 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * k), u.milestone && (W = r + k);
1251
+ u.milestone && (r += 0.5 * (F(u.endTime) - F(u.startTime)) - 0.5 * m), u.milestone && (W = r + m);
1250
1252
  const A = this.getBBox().width;
1251
- return A > W - r ? W + A + 1.5 * s.leftPadding > o ? r + T - 5 : W + T + 5 : (W - r) / 2 + r + T;
1253
+ return A > W - r ? W + A + 1.5 * a.leftPadding > o ? r + T - 5 : W + T + 5 : (W - r) / 2 + r + T;
1252
1254
  }).attr("y", function(u, r) {
1253
- return r = u.order, r * b + s.barHeight / 2 + (s.fontSize / 2 - 2) + x;
1254
- }).attr("text-height", k).attr("class", function(u) {
1255
+ return r = u.order, r * b + a.barHeight / 2 + (a.fontSize / 2 - 2) + x;
1256
+ }).attr("text-height", m).attr("class", function(u) {
1255
1257
  const r = F(u.startTime);
1256
1258
  let W = F(u.endTime);
1257
- u.milestone && (W = r + k);
1259
+ u.milestone && (W = r + m);
1258
1260
  const A = this.getBBox().width;
1259
1261
  let V = "";
1260
1262
  u.classes.length > 0 && (V = u.classes.join(" "));
1261
1263
  let X = 0;
1262
1264
  for (const [O, $] of I.entries())
1263
- u.type === $ && (X = O % s.numberSectionStyles);
1264
- let z = "";
1265
- return u.active && (u.crit ? z = "activeCritText" + X : z = "activeText" + X), u.done ? u.crit ? z = z + " doneCritText" + X : z = z + " doneText" + X : u.crit && (z = z + " critText" + X), u.milestone && (z += " milestoneText"), A > W - r ? W + A + 1.5 * s.leftPadding > o ? V + " taskTextOutsideLeft taskTextOutside" + X + " " + z : V + " taskTextOutsideRight taskTextOutside" + X + " " + z + " width-" + A : V + " taskText taskText" + X + " " + z + " width-" + A;
1265
+ u.type === $ && (X = O % a.numberSectionStyles);
1266
+ let P = "";
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;
1266
1268
  }), ct().securityLevel === "sandbox") {
1267
1269
  let u;
1268
1270
  u = gt("#i" + e);
@@ -1272,13 +1274,13 @@ var Br = /* @__PURE__ */ c(function() {
1272
1274
  }).each(function(W) {
1273
1275
  var A = r.querySelector("#" + W.id), V = r.querySelector("#" + W.id + "-text");
1274
1276
  const X = A.parentNode;
1275
- var z = r.createElement("a");
1276
- z.setAttribute("xlink:href", _.get(W.id)), z.setAttribute("target", "_top"), X.appendChild(z), z.appendChild(A), z.appendChild(V);
1277
+ var P = r.createElement("a");
1278
+ P.setAttribute("xlink:href", _.get(W.id)), P.setAttribute("target", "_top"), X.appendChild(P), P.appendChild(A), P.appendChild(V);
1277
1279
  });
1278
1280
  }
1279
1281
  }
1280
1282
  c(L, "drawRects");
1281
- function Y(y, b, x, T, k, w, o, l) {
1283
+ function Y(y, b, x, T, m, w, o, l) {
1282
1284
  if (o.length === 0 && l.length === 0)
1283
1285
  return;
1284
1286
  let h, f;
@@ -1292,66 +1294,66 @@ var Br = /* @__PURE__ */ c(function() {
1292
1294
  );
1293
1295
  return;
1294
1296
  }
1295
- const _ = i.db.getDateFormat(), a = [];
1297
+ const _ = i.db.getDateFormat(), s = [];
1296
1298
  let u = null, r = U(h);
1297
1299
  for (; r.valueOf() <= f; )
1298
1300
  i.db.isInvalidDate(r, _, o, l) ? u ? u.end = r : u = {
1299
1301
  start: r,
1300
1302
  end: r
1301
- } : u && (a.push(u), u = null), r = r.add(1, "d");
1302
- H.append("g").selectAll("rect").data(a).enter().append("rect").attr("id", function(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) {
1303
1305
  return "exclude-" + A.start.format("YYYY-MM-DD");
1304
1306
  }).attr("x", function(A) {
1305
1307
  return F(A.start) + x;
1306
- }).attr("y", s.gridLineStartPadding).attr("width", function(A) {
1308
+ }).attr("y", a.gridLineStartPadding).attr("width", function(A) {
1307
1309
  const V = A.end.add(1, "day");
1308
1310
  return F(V) - F(A.start);
1309
- }).attr("height", k - b - s.gridLineStartPadding).attr("transform-origin", function(A, V) {
1310
- return (F(A.start) + x + 0.5 * (F(A.end) - F(A.start))).toString() + "px " + (V * y + 0.5 * k).toString() + "px";
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";
1311
1313
  }).attr("class", "exclude-range");
1312
1314
  }
1313
1315
  c(Y, "drawExcludeDays");
1314
1316
  function N(y, b, x, T) {
1315
- let k = Xe(F).tickSize(-T + b + s.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || s.axisFormat || "%Y-%m-%d"));
1317
+ let m = Xe(F).tickSize(-T + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
1316
1318
  const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1317
- i.db.getTickInterval() || s.tickInterval
1319
+ i.db.getTickInterval() || a.tickInterval
1318
1320
  );
1319
1321
  if (o !== null) {
1320
- const l = o[1], h = o[2], f = i.db.getWeekday() || s.weekday;
1322
+ const l = o[1], h = o[2], f = i.db.getWeekday() || a.weekday;
1321
1323
  switch (h) {
1322
1324
  case "millisecond":
1323
- k.ticks(Jt.every(l));
1325
+ m.ticks(Kt.every(l));
1324
1326
  break;
1325
1327
  case "second":
1326
- k.ticks(Kt.every(l));
1328
+ m.ticks(Jt.every(l));
1327
1329
  break;
1328
1330
  case "minute":
1329
- k.ticks($t.every(l));
1331
+ m.ticks($t.every(l));
1330
1332
  break;
1331
1333
  case "hour":
1332
- k.ticks(Qt.every(l));
1334
+ m.ticks(Qt.every(l));
1333
1335
  break;
1334
1336
  case "day":
1335
- k.ticks(Zt.every(l));
1337
+ m.ticks(Zt.every(l));
1336
1338
  break;
1337
1339
  case "week":
1338
- k.ticks(se[f].every(l));
1340
+ m.ticks(ae[f].every(l));
1339
1341
  break;
1340
1342
  case "month":
1341
- k.ticks(Ut.every(l));
1343
+ m.ticks(Ut.every(l));
1342
1344
  break;
1343
1345
  }
1344
1346
  }
1345
- if (H.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (T - 50) + ")").call(k).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || s.topAxis) {
1346
- let l = Ge(F).tickSize(-T + b + s.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || s.axisFormat || "%Y-%m-%d"));
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"));
1347
1349
  if (o !== null) {
1348
- const h = o[1], f = o[2], _ = i.db.getWeekday() || s.weekday;
1350
+ const h = o[1], f = o[2], _ = i.db.getWeekday() || a.weekday;
1349
1351
  switch (f) {
1350
1352
  case "millisecond":
1351
- l.ticks(Jt.every(h));
1353
+ l.ticks(Kt.every(h));
1352
1354
  break;
1353
1355
  case "second":
1354
- l.ticks(Kt.every(h));
1356
+ l.ticks(Jt.every(h));
1355
1357
  break;
1356
1358
  case "minute":
1357
1359
  l.ticks($t.every(h));
@@ -1363,7 +1365,7 @@ var Br = /* @__PURE__ */ c(function() {
1363
1365
  l.ticks(Zt.every(h));
1364
1366
  break;
1365
1367
  case "week":
1366
- l.ticks(se[_].every(h));
1368
+ l.ticks(ae[_].every(h));
1367
1369
  break;
1368
1370
  case "month":
1369
1371
  l.ticks(Ut.every(h));
@@ -1376,44 +1378,44 @@ var Br = /* @__PURE__ */ c(function() {
1376
1378
  c(N, "makeGrid");
1377
1379
  function R(y, b) {
1378
1380
  let x = 0;
1379
- const T = Object.keys(S).map((k) => [k, S[k]]);
1380
- H.append("g").selectAll("text").data(T).enter().append(function(k) {
1381
- const w = k[0].split(we.lineBreakRegex), o = -(w.length - 1) / 2, l = E.createElementNS("http://www.w3.org/2000/svg", "text");
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");
1382
1384
  l.setAttribute("dy", o + "em");
1383
1385
  for (const [h, f] of w.entries()) {
1384
1386
  const _ = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
1385
1387
  _.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f, l.appendChild(_);
1386
1388
  }
1387
1389
  return l;
1388
- }).attr("x", 10).attr("y", function(k, w) {
1390
+ }).attr("x", 10).attr("y", function(m, w) {
1389
1391
  if (w > 0)
1390
1392
  for (let o = 0; o < w; o++)
1391
- return x += T[w - 1][1], k[1] * y / 2 + x * y + b;
1393
+ return x += T[w - 1][1], m[1] * y / 2 + x * y + b;
1392
1394
  else
1393
- return k[1] * y / 2 + b;
1394
- }).attr("font-size", s.sectionFontSize).attr("class", function(k) {
1395
+ return m[1] * y / 2 + b;
1396
+ }).attr("font-size", a.sectionFontSize).attr("class", function(m) {
1395
1397
  for (const [w, o] of I.entries())
1396
- if (k[0] === o)
1397
- return "sectionTitle sectionTitle" + w % s.numberSectionStyles;
1398
+ if (m[0] === o)
1399
+ return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
1398
1400
  return "sectionTitle";
1399
1401
  });
1400
1402
  }
1401
1403
  c(R, "vertLabels");
1402
1404
  function G(y, b, x, T) {
1403
- const k = i.db.getTodayMarker();
1404
- if (k === "off")
1405
+ const m = i.db.getTodayMarker();
1406
+ if (m === "off")
1405
1407
  return;
1406
1408
  const w = H.append("g").attr("class", "today"), o = /* @__PURE__ */ new Date(), l = w.append("line");
1407
- l.attr("x1", F(o) + y).attr("x2", F(o) + y).attr("y1", s.titleTopMargin).attr("y2", T - s.titleTopMargin).attr("class", "today"), k !== "" && l.attr("style", k.replace(/,/g, ";"));
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, ";"));
1408
1410
  }
1409
1411
  c(G, "drawToday");
1410
- function P(y) {
1412
+ function z(y) {
1411
1413
  const b = {}, x = [];
1412
- for (let T = 0, k = y.length; T < k; ++T)
1414
+ for (let T = 0, m = y.length; T < m; ++T)
1413
1415
  Object.prototype.hasOwnProperty.call(b, y[T]) || (b[y[T]] = true, x.push(y[T]));
1414
1416
  return x;
1415
1417
  }
1416
- c(P, "checkUnique");
1418
+ c(z, "checkUnique");
1417
1419
  }, "draw"), Gr = {
1418
1420
  setConf: Br,
1419
1421
  draw: Hr
@@ -1668,12 +1670,12 @@ var Br = /* @__PURE__ */ c(function() {
1668
1670
  fill: ${t.titleColor || t.textColor};
1669
1671
  font-family: ${t.fontFamily};
1670
1672
  }
1671
- `, "getStyles"), jr = Xr, Qr = {
1672
- parser: ar,
1673
+ `, "getStyles"), jr = Xr, Jr = {
1674
+ parser: sr,
1673
1675
  db: Nr,
1674
1676
  renderer: Gr,
1675
1677
  styles: jr
1676
1678
  };
1677
1679
  export {
1678
- Qr as diagram
1680
+ Jr as diagram
1679
1681
  };