@belonguniverseai/react-sdk 0.6.2 → 0.6.3

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