@sme.up/ketchup2 2.0.0-SNAPSHOT-20250905083046 → 2.0.0-SNAPSHOT-20250905085901

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