@draftably/editor 0.1.0 → 0.3.0

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