@prefecthq/prefab-ui-docs 0.16.3 → 0.17.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 (66) hide show
  1. package/dist/_renderer/_basePickBy-fiErwOTY.mjs +151 -0
  2. package/dist/_renderer/_baseUniq-Iy7gOYgw.mjs +614 -0
  3. package/dist/_renderer/arc-BYm2F1-h.mjs +83 -0
  4. package/dist/_renderer/architectureDiagram-2XIMDMQ5-BKR0-ZSX.mjs +4683 -0
  5. package/dist/_renderer/band-TE_TbDmh.mjs +56 -0
  6. package/dist/_renderer/blockDiagram-WCTKOSBZ-BruGG_9M.mjs +2298 -0
  7. package/dist/_renderer/c4Diagram-IC4MRINW-K4nxeBNU.mjs +1581 -0
  8. package/dist/_renderer/channel-D4_UYSAN.mjs +5 -0
  9. package/dist/_renderer/charts-Bwny4UB2.mjs +19169 -0
  10. package/dist/_renderer/chunk-4BX2VUAB-mqLb5fm9.mjs +9 -0
  11. package/dist/_renderer/chunk-55IACEB6-Bxgi9T70.mjs +8 -0
  12. package/dist/_renderer/chunk-FMBD7UC4-Dsah75wQ.mjs +19 -0
  13. package/dist/_renderer/chunk-JSJVCQXG-Bsg6dsjU.mjs +68 -0
  14. package/dist/_renderer/chunk-KX2RTZJC-DvDXsxvC.mjs +20 -0
  15. package/dist/_renderer/chunk-NQ4KR5QH-CwFlbBfF.mjs +1384 -0
  16. package/dist/_renderer/chunk-QZHKN3VN-CYPyScRI.mjs +15 -0
  17. package/dist/_renderer/chunk-WL4C6EOR-2eYOPJVd.mjs +1430 -0
  18. package/dist/_renderer/classDiagram-VBA2DB6C-Dj8h8-wl.mjs +16 -0
  19. package/dist/_renderer/classDiagram-v2-RAHNMMFH-Dj8h8-wl.mjs +16 -0
  20. package/dist/_renderer/clone-BmajYOc3.mjs +8 -0
  21. package/dist/_renderer/{compound-calendar-Cn18AoRs.mjs → compound-calendar-Bmz7kTAd.mjs} +3 -3
  22. package/dist/_renderer/{content-e43PvxaF.mjs → content-Bd8N98h-.mjs} +6 -6
  23. package/dist/_renderer/cose-bilkent-S5V4N54A-BLhD0lt7.mjs +2609 -0
  24. package/dist/_renderer/cytoscape.esm-CjI2IsL8.mjs +18735 -0
  25. package/dist/_renderer/dagre-KLK3FWXG-DCIde85z.mjs +447 -0
  26. package/dist/_renderer/defaultLocale-BgPVtth8.mjs +171 -0
  27. package/dist/_renderer/diagram-E7M64L7V-BbWs-jbo.mjs +533 -0
  28. package/dist/_renderer/diagram-IFDJBPK2-Sfx8kanl.mjs +221 -0
  29. package/dist/_renderer/diagram-P4PSJMXO-DCqYaW3Z.mjs +143 -0
  30. package/dist/_renderer/{embed-DRE2wKZJ.mjs → embed-BCPaWfQN.mjs} +1119 -1114
  31. package/dist/_renderer/embed.mjs +1 -1
  32. package/dist/_renderer/erDiagram-INFDFZHY-D8cdLSCi.mjs +863 -0
  33. package/dist/_renderer/flowDiagram-PKNHOUZH-B_rW2Xww.mjs +1647 -0
  34. package/dist/_renderer/ganttDiagram-A5KZAMGK-Be_Svnat.mjs +1964 -0
  35. package/dist/_renderer/gitGraphDiagram-K3NZZRJ6--wMgYsSv.mjs +709 -0
  36. package/dist/_renderer/graph-alLjIojU.mjs +604 -0
  37. package/dist/_renderer/{icons-CImNZgDa.mjs → icons-w8tvN_30.mjs} +155 -135
  38. package/dist/_renderer/infoDiagram-LFFYTUFH-QW1PzgNF.mjs +24 -0
  39. package/dist/_renderer/init-DxzjmxYy.mjs +32 -0
  40. package/dist/_renderer/ishikawaDiagram-PHBUUO56-xY8fsGh3.mjs +621 -0
  41. package/dist/_renderer/journeyDiagram-4ABVD52K-7XeHSH9G.mjs +834 -0
  42. package/dist/_renderer/kanban-definition-K7BYSVSG-Cn7INDI0.mjs +723 -0
  43. package/dist/_renderer/katex-AQJr8RMF.mjs +11623 -0
  44. package/dist/_renderer/layout-Bspk8k85.mjs +1335 -0
  45. package/dist/_renderer/linear-CVnzSbdA.mjs +275 -0
  46. package/dist/_renderer/mermaid-DjgBUZ1W.mjs +48 -0
  47. package/dist/_renderer/mermaid.core-BzbdT8_O.mjs +13838 -0
  48. package/dist/_renderer/mindmap-definition-YRQLILUH-CVIMKVZI.mjs +788 -0
  49. package/dist/_renderer/ordinal-Bq0KrZxK.mjs +62 -0
  50. package/dist/_renderer/pieDiagram-SKSYHLDU-CL_luPJM.mjs +162 -0
  51. package/dist/_renderer/{svg-BL0kMZ_p.mjs → purify.es-M2Bspgo5.mjs} +222 -240
  52. package/dist/_renderer/quadrantDiagram-337W2JSQ-BQWFWFNU.mjs +1024 -0
  53. package/dist/_renderer/requirementDiagram-Z7DCOOCP-Di29RxJ6.mjs +862 -0
  54. package/dist/_renderer/sankeyDiagram-WA2Y5GQK-DY4kgDbR.mjs +810 -0
  55. package/dist/_renderer/sequenceDiagram-2WXFIKYE-vjbD37pn.mjs +2823 -0
  56. package/dist/_renderer/stateDiagram-RAJIS63D-BQ9BAuO6.mjs +264 -0
  57. package/dist/_renderer/stateDiagram-v2-FVOUBMTO-Bs26kEor.mjs +16 -0
  58. package/dist/_renderer/string-kGvNrjOo.mjs +934 -0
  59. package/dist/_renderer/svg-qTs_3V9p.mjs +22 -0
  60. package/dist/_renderer/time-sQ_UKgU4.mjs +765 -0
  61. package/dist/_renderer/timeline-definition-YZTLITO2-CJfaRgME.mjs +799 -0
  62. package/dist/_renderer/treemap-KZPCXAKY-DQq6TCTm.mjs +17996 -0
  63. package/dist/_renderer/vennDiagram-LZ73GAT5-BkBksHrj.mjs +1564 -0
  64. package/dist/_renderer/xychartDiagram-JWTSCODW-Boo1R-nF.mjs +1299 -0
  65. package/package.json +1 -1
  66. package/dist/_renderer/charts-Dr57vKmb.mjs +0 -21311
@@ -0,0 +1,934 @@
1
+ function y(t) {
2
+ return function() {
3
+ return t;
4
+ };
5
+ }
6
+ const Kt = Math.abs, Ut = Math.atan2, Vt = Math.cos, Wt = Math.max, ti = Math.min, ii = Math.sin, ei = Math.sqrt, ni = 1e-12, X = Math.PI, U = X / 2, si = 2 * X;
7
+ function ri(t) {
8
+ return t > 1 ? 0 : t < -1 ? X : Math.acos(t);
9
+ }
10
+ function oi(t) {
11
+ return t >= 1 ? U : t <= -1 ? -U : Math.asin(t);
12
+ }
13
+ const I = Math.PI, L = 2 * I, b = 1e-6, Mt = L - b;
14
+ function ct(t) {
15
+ this._ += t[0];
16
+ for (let i = 1, e = t.length; i < e; ++i)
17
+ this._ += arguments[i] + t[i];
18
+ }
19
+ function kt(t) {
20
+ let i = Math.floor(t);
21
+ if (!(i >= 0)) throw new Error(`invalid digits: ${t}`);
22
+ if (i > 15) return ct;
23
+ const e = 10 ** i;
24
+ return function(n) {
25
+ this._ += n[0];
26
+ for (let s = 1, r = n.length; s < r; ++s)
27
+ this._ += Math.round(arguments[s] * e) / e + n[s];
28
+ };
29
+ }
30
+ class Tt {
31
+ constructor(i) {
32
+ this._x0 = this._y0 = // start of current subpath
33
+ this._x1 = this._y1 = null, this._ = "", this._append = i == null ? ct : kt(i);
34
+ }
35
+ moveTo(i, e) {
36
+ this._append`M${this._x0 = this._x1 = +i},${this._y0 = this._y1 = +e}`;
37
+ }
38
+ closePath() {
39
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
40
+ }
41
+ lineTo(i, e) {
42
+ this._append`L${this._x1 = +i},${this._y1 = +e}`;
43
+ }
44
+ quadraticCurveTo(i, e, n, s) {
45
+ this._append`Q${+i},${+e},${this._x1 = +n},${this._y1 = +s}`;
46
+ }
47
+ bezierCurveTo(i, e, n, s, r, o) {
48
+ this._append`C${+i},${+e},${+n},${+s},${this._x1 = +r},${this._y1 = +o}`;
49
+ }
50
+ arcTo(i, e, n, s, r) {
51
+ if (i = +i, e = +e, n = +n, s = +s, r = +r, r < 0) throw new Error(`negative radius: ${r}`);
52
+ let o = this._x1, h = this._y1, a = n - i, f = s - e, c = o - i, l = h - e, u = c * c + l * l;
53
+ if (this._x1 === null)
54
+ this._append`M${this._x1 = i},${this._y1 = e}`;
55
+ else if (u > b) if (!(Math.abs(l * a - f * c) > b) || !r)
56
+ this._append`L${this._x1 = i},${this._y1 = e}`;
57
+ else {
58
+ let d = n - o, H = s - h, Z = a * a + f * f, Nt = d * d + H * H, D = Math.sqrt(Z), F = Math.sqrt(u), J = r * Math.tan((I - Math.acos((Z + u - Nt) / (2 * D * F))) / 2), q = J / F, K = J / D;
59
+ Math.abs(q - 1) > b && this._append`L${i + q * c},${e + q * l}`, this._append`A${r},${r},0,0,${+(l * d > c * H)},${this._x1 = i + K * a},${this._y1 = e + K * f}`;
60
+ }
61
+ }
62
+ arc(i, e, n, s, r, o) {
63
+ if (i = +i, e = +e, n = +n, o = !!o, n < 0) throw new Error(`negative radius: ${n}`);
64
+ let h = n * Math.cos(s), a = n * Math.sin(s), f = i + h, c = e + a, l = 1 ^ o, u = o ? s - r : r - s;
65
+ this._x1 === null ? this._append`M${f},${c}` : (Math.abs(this._x1 - f) > b || Math.abs(this._y1 - c) > b) && this._append`L${f},${c}`, n && (u < 0 && (u = u % L + L), u > Mt ? this._append`A${n},${n},0,1,${l},${i - h},${e - a}A${n},${n},0,1,${l},${this._x1 = f},${this._y1 = c}` : u > b && this._append`A${n},${n},0,${+(u >= I)},${l},${this._x1 = i + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
66
+ }
67
+ rect(i, e, n, s) {
68
+ this._append`M${this._x0 = this._x1 = +i},${this._y0 = this._y1 = +e}h${n = +n}v${+s}h${-n}Z`;
69
+ }
70
+ toString() {
71
+ return this._;
72
+ }
73
+ }
74
+ function Et(t) {
75
+ let i = 3;
76
+ return t.digits = function(e) {
77
+ if (!arguments.length) return i;
78
+ if (e == null)
79
+ i = null;
80
+ else {
81
+ const n = Math.floor(e);
82
+ if (!(n >= 0)) throw new RangeError(`invalid digits: ${e}`);
83
+ i = n;
84
+ }
85
+ return t;
86
+ }, () => new Tt(i);
87
+ }
88
+ function St(t) {
89
+ return typeof t == "object" && "length" in t ? t : Array.from(t);
90
+ }
91
+ function lt(t) {
92
+ this._context = t;
93
+ }
94
+ lt.prototype = {
95
+ areaStart: function() {
96
+ this._line = 0;
97
+ },
98
+ areaEnd: function() {
99
+ this._line = NaN;
100
+ },
101
+ lineStart: function() {
102
+ this._point = 0;
103
+ },
104
+ lineEnd: function() {
105
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
106
+ },
107
+ point: function(t, i) {
108
+ switch (t = +t, i = +i, this._point) {
109
+ case 0:
110
+ this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
111
+ break;
112
+ case 1:
113
+ this._point = 2;
114
+ // falls through
115
+ default:
116
+ this._context.lineTo(t, i);
117
+ break;
118
+ }
119
+ }
120
+ };
121
+ function Pt(t) {
122
+ return new lt(t);
123
+ }
124
+ function Rt(t) {
125
+ return t[0];
126
+ }
127
+ function Ct(t) {
128
+ return t[1];
129
+ }
130
+ function hi(t, i) {
131
+ var e = y(!0), n = null, s = Pt, r = null, o = Et(h);
132
+ t = typeof t == "function" ? t : t === void 0 ? Rt : y(t), i = typeof i == "function" ? i : i === void 0 ? Ct : y(i);
133
+ function h(a) {
134
+ var f, c = (a = St(a)).length, l, u = !1, d;
135
+ for (n == null && (r = s(d = o())), f = 0; f <= c; ++f)
136
+ !(f < c && e(l = a[f], f, a)) === u && ((u = !u) ? r.lineStart() : r.lineEnd()), u && r.point(+t(l, f, a), +i(l, f, a));
137
+ if (d) return r = null, d + "" || null;
138
+ }
139
+ return h.x = function(a) {
140
+ return arguments.length ? (t = typeof a == "function" ? a : y(+a), h) : t;
141
+ }, h.y = function(a) {
142
+ return arguments.length ? (i = typeof a == "function" ? a : y(+a), h) : i;
143
+ }, h.defined = function(a) {
144
+ return arguments.length ? (e = typeof a == "function" ? a : y(!!a), h) : e;
145
+ }, h.curve = function(a) {
146
+ return arguments.length ? (s = a, n != null && (r = s(n)), h) : s;
147
+ }, h.context = function(a) {
148
+ return arguments.length ? (a == null ? n = r = null : r = s(n = a), h) : n;
149
+ }, h;
150
+ }
151
+ class ut {
152
+ constructor(i, e) {
153
+ this._context = i, this._x = e;
154
+ }
155
+ areaStart() {
156
+ this._line = 0;
157
+ }
158
+ areaEnd() {
159
+ this._line = NaN;
160
+ }
161
+ lineStart() {
162
+ this._point = 0;
163
+ }
164
+ lineEnd() {
165
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
166
+ }
167
+ point(i, e) {
168
+ switch (i = +i, e = +e, this._point) {
169
+ case 0: {
170
+ this._point = 1, this._line ? this._context.lineTo(i, e) : this._context.moveTo(i, e);
171
+ break;
172
+ }
173
+ case 1:
174
+ this._point = 2;
175
+ // falls through
176
+ default: {
177
+ this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + i) / 2, this._y0, this._x0, e, i, e) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + e) / 2, i, this._y0, i, e);
178
+ break;
179
+ }
180
+ }
181
+ this._x0 = i, this._y0 = e;
182
+ }
183
+ }
184
+ function ai(t) {
185
+ return new ut(t, !0);
186
+ }
187
+ function fi(t) {
188
+ return new ut(t, !1);
189
+ }
190
+ function T() {
191
+ }
192
+ function E(t, i, e) {
193
+ t._context.bezierCurveTo(
194
+ (2 * t._x0 + t._x1) / 3,
195
+ (2 * t._y0 + t._y1) / 3,
196
+ (t._x0 + 2 * t._x1) / 3,
197
+ (t._y0 + 2 * t._y1) / 3,
198
+ (t._x0 + 4 * t._x1 + i) / 6,
199
+ (t._y0 + 4 * t._y1 + e) / 6
200
+ );
201
+ }
202
+ function _t(t) {
203
+ this._context = t;
204
+ }
205
+ _t.prototype = {
206
+ areaStart: function() {
207
+ this._line = 0;
208
+ },
209
+ areaEnd: function() {
210
+ this._line = NaN;
211
+ },
212
+ lineStart: function() {
213
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
214
+ },
215
+ lineEnd: function() {
216
+ switch (this._point) {
217
+ case 3:
218
+ E(this, this._x1, this._y1);
219
+ // falls through
220
+ case 2:
221
+ this._context.lineTo(this._x1, this._y1);
222
+ break;
223
+ }
224
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
225
+ },
226
+ point: function(t, i) {
227
+ switch (t = +t, i = +i, this._point) {
228
+ case 0:
229
+ this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
230
+ break;
231
+ case 1:
232
+ this._point = 2;
233
+ break;
234
+ case 2:
235
+ this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
236
+ // falls through
237
+ default:
238
+ E(this, t, i);
239
+ break;
240
+ }
241
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
242
+ }
243
+ };
244
+ function ci(t) {
245
+ return new _t(t);
246
+ }
247
+ function xt(t) {
248
+ this._context = t;
249
+ }
250
+ xt.prototype = {
251
+ areaStart: T,
252
+ areaEnd: T,
253
+ lineStart: function() {
254
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
255
+ },
256
+ lineEnd: function() {
257
+ switch (this._point) {
258
+ case 1: {
259
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
260
+ break;
261
+ }
262
+ case 2: {
263
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
264
+ break;
265
+ }
266
+ case 3: {
267
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
268
+ break;
269
+ }
270
+ }
271
+ },
272
+ point: function(t, i) {
273
+ switch (t = +t, i = +i, this._point) {
274
+ case 0:
275
+ this._point = 1, this._x2 = t, this._y2 = i;
276
+ break;
277
+ case 1:
278
+ this._point = 2, this._x3 = t, this._y3 = i;
279
+ break;
280
+ case 2:
281
+ this._point = 3, this._x4 = t, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + i) / 6);
282
+ break;
283
+ default:
284
+ E(this, t, i);
285
+ break;
286
+ }
287
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
288
+ }
289
+ };
290
+ function li(t) {
291
+ return new xt(t);
292
+ }
293
+ function pt(t) {
294
+ this._context = t;
295
+ }
296
+ pt.prototype = {
297
+ areaStart: function() {
298
+ this._line = 0;
299
+ },
300
+ areaEnd: function() {
301
+ this._line = NaN;
302
+ },
303
+ lineStart: function() {
304
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
305
+ },
306
+ lineEnd: function() {
307
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
308
+ },
309
+ point: function(t, i) {
310
+ switch (t = +t, i = +i, this._point) {
311
+ case 0:
312
+ this._point = 1;
313
+ break;
314
+ case 1:
315
+ this._point = 2;
316
+ break;
317
+ case 2:
318
+ this._point = 3;
319
+ var e = (this._x0 + 4 * this._x1 + t) / 6, n = (this._y0 + 4 * this._y1 + i) / 6;
320
+ this._line ? this._context.lineTo(e, n) : this._context.moveTo(e, n);
321
+ break;
322
+ case 3:
323
+ this._point = 4;
324
+ // falls through
325
+ default:
326
+ E(this, t, i);
327
+ break;
328
+ }
329
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
330
+ }
331
+ };
332
+ function ui(t) {
333
+ return new pt(t);
334
+ }
335
+ function dt(t) {
336
+ this._context = t;
337
+ }
338
+ dt.prototype = {
339
+ areaStart: T,
340
+ areaEnd: T,
341
+ lineStart: function() {
342
+ this._point = 0;
343
+ },
344
+ lineEnd: function() {
345
+ this._point && this._context.closePath();
346
+ },
347
+ point: function(t, i) {
348
+ t = +t, i = +i, this._point ? this._context.lineTo(t, i) : (this._point = 1, this._context.moveTo(t, i));
349
+ }
350
+ };
351
+ function _i(t) {
352
+ return new dt(t);
353
+ }
354
+ function V(t) {
355
+ return t < 0 ? -1 : 1;
356
+ }
357
+ function W(t, i, e) {
358
+ var n = t._x1 - t._x0, s = i - t._x1, r = (t._y1 - t._y0) / (n || s < 0 && -0), o = (e - t._y1) / (s || n < 0 && -0), h = (r * s + o * n) / (n + s);
359
+ return (V(r) + V(o)) * Math.min(Math.abs(r), Math.abs(o), 0.5 * Math.abs(h)) || 0;
360
+ }
361
+ function tt(t, i) {
362
+ var e = t._x1 - t._x0;
363
+ return e ? (3 * (t._y1 - t._y0) / e - i) / 2 : i;
364
+ }
365
+ function z(t, i, e) {
366
+ var n = t._x0, s = t._y0, r = t._x1, o = t._y1, h = (r - n) / 3;
367
+ t._context.bezierCurveTo(n + h, s + h * i, r - h, o - h * e, r, o);
368
+ }
369
+ function S(t) {
370
+ this._context = t;
371
+ }
372
+ S.prototype = {
373
+ areaStart: function() {
374
+ this._line = 0;
375
+ },
376
+ areaEnd: function() {
377
+ this._line = NaN;
378
+ },
379
+ lineStart: function() {
380
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
381
+ },
382
+ lineEnd: function() {
383
+ switch (this._point) {
384
+ case 2:
385
+ this._context.lineTo(this._x1, this._y1);
386
+ break;
387
+ case 3:
388
+ z(this, this._t0, tt(this, this._t0));
389
+ break;
390
+ }
391
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
392
+ },
393
+ point: function(t, i) {
394
+ var e = NaN;
395
+ if (t = +t, i = +i, !(t === this._x1 && i === this._y1)) {
396
+ switch (this._point) {
397
+ case 0:
398
+ this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
399
+ break;
400
+ case 1:
401
+ this._point = 2;
402
+ break;
403
+ case 2:
404
+ this._point = 3, z(this, tt(this, e = W(this, t, i)), e);
405
+ break;
406
+ default:
407
+ z(this, this._t0, e = W(this, t, i));
408
+ break;
409
+ }
410
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i, this._t0 = e;
411
+ }
412
+ }
413
+ };
414
+ function bt(t) {
415
+ this._context = new gt(t);
416
+ }
417
+ (bt.prototype = Object.create(S.prototype)).point = function(t, i) {
418
+ S.prototype.point.call(this, i, t);
419
+ };
420
+ function gt(t) {
421
+ this._context = t;
422
+ }
423
+ gt.prototype = {
424
+ moveTo: function(t, i) {
425
+ this._context.moveTo(i, t);
426
+ },
427
+ closePath: function() {
428
+ this._context.closePath();
429
+ },
430
+ lineTo: function(t, i) {
431
+ this._context.lineTo(i, t);
432
+ },
433
+ bezierCurveTo: function(t, i, e, n, s, r) {
434
+ this._context.bezierCurveTo(i, t, n, e, r, s);
435
+ }
436
+ };
437
+ function xi(t) {
438
+ return new S(t);
439
+ }
440
+ function pi(t) {
441
+ return new bt(t);
442
+ }
443
+ function mt(t) {
444
+ this._context = t;
445
+ }
446
+ mt.prototype = {
447
+ areaStart: function() {
448
+ this._line = 0;
449
+ },
450
+ areaEnd: function() {
451
+ this._line = NaN;
452
+ },
453
+ lineStart: function() {
454
+ this._x = [], this._y = [];
455
+ },
456
+ lineEnd: function() {
457
+ var t = this._x, i = this._y, e = t.length;
458
+ if (e)
459
+ if (this._line ? this._context.lineTo(t[0], i[0]) : this._context.moveTo(t[0], i[0]), e === 2)
460
+ this._context.lineTo(t[1], i[1]);
461
+ else
462
+ for (var n = it(t), s = it(i), r = 0, o = 1; o < e; ++r, ++o)
463
+ this._context.bezierCurveTo(n[0][r], s[0][r], n[1][r], s[1][r], t[o], i[o]);
464
+ (this._line || this._line !== 0 && e === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
465
+ },
466
+ point: function(t, i) {
467
+ this._x.push(+t), this._y.push(+i);
468
+ }
469
+ };
470
+ function it(t) {
471
+ var i, e = t.length - 1, n, s = new Array(e), r = new Array(e), o = new Array(e);
472
+ for (s[0] = 0, r[0] = 2, o[0] = t[0] + 2 * t[1], i = 1; i < e - 1; ++i) s[i] = 1, r[i] = 4, o[i] = 4 * t[i] + 2 * t[i + 1];
473
+ for (s[e - 1] = 2, r[e - 1] = 7, o[e - 1] = 8 * t[e - 1] + t[e], i = 1; i < e; ++i) n = s[i] / r[i - 1], r[i] -= n, o[i] -= n * o[i - 1];
474
+ for (s[e - 1] = o[e - 1] / r[e - 1], i = e - 2; i >= 0; --i) s[i] = (o[i] - s[i + 1]) / r[i];
475
+ for (r[e - 1] = (t[e] + s[e - 1]) / 2, i = 0; i < e - 1; ++i) r[i] = 2 * t[i + 1] - s[i + 1];
476
+ return [s, r];
477
+ }
478
+ function di(t) {
479
+ return new mt(t);
480
+ }
481
+ function C(t, i) {
482
+ this._context = t, this._t = i;
483
+ }
484
+ C.prototype = {
485
+ areaStart: function() {
486
+ this._line = 0;
487
+ },
488
+ areaEnd: function() {
489
+ this._line = NaN;
490
+ },
491
+ lineStart: function() {
492
+ this._x = this._y = NaN, this._point = 0;
493
+ },
494
+ lineEnd: function() {
495
+ 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
496
+ },
497
+ point: function(t, i) {
498
+ switch (t = +t, i = +i, this._point) {
499
+ case 0:
500
+ this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
501
+ break;
502
+ case 1:
503
+ this._point = 2;
504
+ // falls through
505
+ default: {
506
+ if (this._t <= 0)
507
+ this._context.lineTo(this._x, i), this._context.lineTo(t, i);
508
+ else {
509
+ var e = this._x * (1 - this._t) + t * this._t;
510
+ this._context.lineTo(e, this._y), this._context.lineTo(e, i);
511
+ }
512
+ break;
513
+ }
514
+ }
515
+ this._x = t, this._y = i;
516
+ }
517
+ };
518
+ function bi(t) {
519
+ return new C(t, 0.5);
520
+ }
521
+ function gi(t) {
522
+ return new C(t, 0);
523
+ }
524
+ function mi(t) {
525
+ return new C(t, 1);
526
+ }
527
+ function Y(t, i, e) {
528
+ t.prototype = i.prototype = e, e.constructor = t;
529
+ }
530
+ function yt(t, i) {
531
+ var e = Object.create(t.prototype);
532
+ for (var n in i) e[n] = i[n];
533
+ return e;
534
+ }
535
+ function N() {
536
+ }
537
+ var $ = 0.7, P = 1 / $, w = "\\s*([+-]?\\d+)\\s*", v = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", p = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ht = /^#([0-9a-f]{3,8})$/, qt = new RegExp(`^rgb\\(${w},${w},${w}\\)$`), zt = new RegExp(`^rgb\\(${p},${p},${p}\\)$`), At = new RegExp(`^rgba\\(${w},${w},${w},${v}\\)$`), Bt = new RegExp(`^rgba\\(${p},${p},${p},${v}\\)$`), It = new RegExp(`^hsl\\(${v},${p},${p}\\)$`), Lt = new RegExp(`^hsla\\(${v},${p},${p},${v}\\)$`), et = {
538
+ aliceblue: 15792383,
539
+ antiquewhite: 16444375,
540
+ aqua: 65535,
541
+ aquamarine: 8388564,
542
+ azure: 15794175,
543
+ beige: 16119260,
544
+ bisque: 16770244,
545
+ black: 0,
546
+ blanchedalmond: 16772045,
547
+ blue: 255,
548
+ blueviolet: 9055202,
549
+ brown: 10824234,
550
+ burlywood: 14596231,
551
+ cadetblue: 6266528,
552
+ chartreuse: 8388352,
553
+ chocolate: 13789470,
554
+ coral: 16744272,
555
+ cornflowerblue: 6591981,
556
+ cornsilk: 16775388,
557
+ crimson: 14423100,
558
+ cyan: 65535,
559
+ darkblue: 139,
560
+ darkcyan: 35723,
561
+ darkgoldenrod: 12092939,
562
+ darkgray: 11119017,
563
+ darkgreen: 25600,
564
+ darkgrey: 11119017,
565
+ darkkhaki: 12433259,
566
+ darkmagenta: 9109643,
567
+ darkolivegreen: 5597999,
568
+ darkorange: 16747520,
569
+ darkorchid: 10040012,
570
+ darkred: 9109504,
571
+ darksalmon: 15308410,
572
+ darkseagreen: 9419919,
573
+ darkslateblue: 4734347,
574
+ darkslategray: 3100495,
575
+ darkslategrey: 3100495,
576
+ darkturquoise: 52945,
577
+ darkviolet: 9699539,
578
+ deeppink: 16716947,
579
+ deepskyblue: 49151,
580
+ dimgray: 6908265,
581
+ dimgrey: 6908265,
582
+ dodgerblue: 2003199,
583
+ firebrick: 11674146,
584
+ floralwhite: 16775920,
585
+ forestgreen: 2263842,
586
+ fuchsia: 16711935,
587
+ gainsboro: 14474460,
588
+ ghostwhite: 16316671,
589
+ gold: 16766720,
590
+ goldenrod: 14329120,
591
+ gray: 8421504,
592
+ green: 32768,
593
+ greenyellow: 11403055,
594
+ grey: 8421504,
595
+ honeydew: 15794160,
596
+ hotpink: 16738740,
597
+ indianred: 13458524,
598
+ indigo: 4915330,
599
+ ivory: 16777200,
600
+ khaki: 15787660,
601
+ lavender: 15132410,
602
+ lavenderblush: 16773365,
603
+ lawngreen: 8190976,
604
+ lemonchiffon: 16775885,
605
+ lightblue: 11393254,
606
+ lightcoral: 15761536,
607
+ lightcyan: 14745599,
608
+ lightgoldenrodyellow: 16448210,
609
+ lightgray: 13882323,
610
+ lightgreen: 9498256,
611
+ lightgrey: 13882323,
612
+ lightpink: 16758465,
613
+ lightsalmon: 16752762,
614
+ lightseagreen: 2142890,
615
+ lightskyblue: 8900346,
616
+ lightslategray: 7833753,
617
+ lightslategrey: 7833753,
618
+ lightsteelblue: 11584734,
619
+ lightyellow: 16777184,
620
+ lime: 65280,
621
+ limegreen: 3329330,
622
+ linen: 16445670,
623
+ magenta: 16711935,
624
+ maroon: 8388608,
625
+ mediumaquamarine: 6737322,
626
+ mediumblue: 205,
627
+ mediumorchid: 12211667,
628
+ mediumpurple: 9662683,
629
+ mediumseagreen: 3978097,
630
+ mediumslateblue: 8087790,
631
+ mediumspringgreen: 64154,
632
+ mediumturquoise: 4772300,
633
+ mediumvioletred: 13047173,
634
+ midnightblue: 1644912,
635
+ mintcream: 16121850,
636
+ mistyrose: 16770273,
637
+ moccasin: 16770229,
638
+ navajowhite: 16768685,
639
+ navy: 128,
640
+ oldlace: 16643558,
641
+ olive: 8421376,
642
+ olivedrab: 7048739,
643
+ orange: 16753920,
644
+ orangered: 16729344,
645
+ orchid: 14315734,
646
+ palegoldenrod: 15657130,
647
+ palegreen: 10025880,
648
+ paleturquoise: 11529966,
649
+ palevioletred: 14381203,
650
+ papayawhip: 16773077,
651
+ peachpuff: 16767673,
652
+ peru: 13468991,
653
+ pink: 16761035,
654
+ plum: 14524637,
655
+ powderblue: 11591910,
656
+ purple: 8388736,
657
+ rebeccapurple: 6697881,
658
+ red: 16711680,
659
+ rosybrown: 12357519,
660
+ royalblue: 4286945,
661
+ saddlebrown: 9127187,
662
+ salmon: 16416882,
663
+ sandybrown: 16032864,
664
+ seagreen: 3050327,
665
+ seashell: 16774638,
666
+ sienna: 10506797,
667
+ silver: 12632256,
668
+ skyblue: 8900331,
669
+ slateblue: 6970061,
670
+ slategray: 7372944,
671
+ slategrey: 7372944,
672
+ snow: 16775930,
673
+ springgreen: 65407,
674
+ steelblue: 4620980,
675
+ tan: 13808780,
676
+ teal: 32896,
677
+ thistle: 14204888,
678
+ tomato: 16737095,
679
+ turquoise: 4251856,
680
+ violet: 15631086,
681
+ wheat: 16113331,
682
+ white: 16777215,
683
+ whitesmoke: 16119285,
684
+ yellow: 16776960,
685
+ yellowgreen: 10145074
686
+ };
687
+ Y(N, G, {
688
+ copy(t) {
689
+ return Object.assign(new this.constructor(), this, t);
690
+ },
691
+ displayable() {
692
+ return this.rgb().displayable();
693
+ },
694
+ hex: nt,
695
+ // Deprecated! Use color.formatHex.
696
+ formatHex: nt,
697
+ formatHex8: jt,
698
+ formatHsl: Ot,
699
+ formatRgb: st,
700
+ toString: st
701
+ });
702
+ function nt() {
703
+ return this.rgb().formatHex();
704
+ }
705
+ function jt() {
706
+ return this.rgb().formatHex8();
707
+ }
708
+ function Ot() {
709
+ return wt(this).formatHsl();
710
+ }
711
+ function st() {
712
+ return this.rgb().formatRgb();
713
+ }
714
+ function G(t) {
715
+ var i, e;
716
+ return t = (t + "").trim().toLowerCase(), (i = Ht.exec(t)) ? (e = i[1].length, i = parseInt(i[1], 16), e === 6 ? rt(i) : e === 3 ? new _(i >> 8 & 15 | i >> 4 & 240, i >> 4 & 15 | i & 240, (i & 15) << 4 | i & 15, 1) : e === 8 ? M(i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, (i & 255) / 255) : e === 4 ? M(i >> 12 & 15 | i >> 8 & 240, i >> 8 & 15 | i >> 4 & 240, i >> 4 & 15 | i & 240, ((i & 15) << 4 | i & 15) / 255) : null) : (i = qt.exec(t)) ? new _(i[1], i[2], i[3], 1) : (i = zt.exec(t)) ? new _(i[1] * 255 / 100, i[2] * 255 / 100, i[3] * 255 / 100, 1) : (i = At.exec(t)) ? M(i[1], i[2], i[3], i[4]) : (i = Bt.exec(t)) ? M(i[1] * 255 / 100, i[2] * 255 / 100, i[3] * 255 / 100, i[4]) : (i = It.exec(t)) ? at(i[1], i[2] / 100, i[3] / 100, 1) : (i = Lt.exec(t)) ? at(i[1], i[2] / 100, i[3] / 100, i[4]) : et.hasOwnProperty(t) ? rt(et[t]) : t === "transparent" ? new _(NaN, NaN, NaN, 0) : null;
717
+ }
718
+ function rt(t) {
719
+ return new _(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
720
+ }
721
+ function M(t, i, e, n) {
722
+ return n <= 0 && (t = i = e = NaN), new _(t, i, e, n);
723
+ }
724
+ function Xt(t) {
725
+ return t instanceof N || (t = G(t)), t ? (t = t.rgb(), new _(t.r, t.g, t.b, t.opacity)) : new _();
726
+ }
727
+ function j(t, i, e, n) {
728
+ return arguments.length === 1 ? Xt(t) : new _(t, i, e, n ?? 1);
729
+ }
730
+ function _(t, i, e, n) {
731
+ this.r = +t, this.g = +i, this.b = +e, this.opacity = +n;
732
+ }
733
+ Y(_, j, yt(N, {
734
+ brighter(t) {
735
+ return t = t == null ? P : Math.pow(P, t), new _(this.r * t, this.g * t, this.b * t, this.opacity);
736
+ },
737
+ darker(t) {
738
+ return t = t == null ? $ : Math.pow($, t), new _(this.r * t, this.g * t, this.b * t, this.opacity);
739
+ },
740
+ rgb() {
741
+ return this;
742
+ },
743
+ clamp() {
744
+ return new _(m(this.r), m(this.g), m(this.b), R(this.opacity));
745
+ },
746
+ displayable() {
747
+ return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
748
+ },
749
+ hex: ot,
750
+ // Deprecated! Use color.formatHex.
751
+ formatHex: ot,
752
+ formatHex8: Yt,
753
+ formatRgb: ht,
754
+ toString: ht
755
+ }));
756
+ function ot() {
757
+ return `#${g(this.r)}${g(this.g)}${g(this.b)}`;
758
+ }
759
+ function Yt() {
760
+ return `#${g(this.r)}${g(this.g)}${g(this.b)}${g((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
761
+ }
762
+ function ht() {
763
+ const t = R(this.opacity);
764
+ return `${t === 1 ? "rgb(" : "rgba("}${m(this.r)}, ${m(this.g)}, ${m(this.b)}${t === 1 ? ")" : `, ${t})`}`;
765
+ }
766
+ function R(t) {
767
+ return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
768
+ }
769
+ function m(t) {
770
+ return Math.max(0, Math.min(255, Math.round(t) || 0));
771
+ }
772
+ function g(t) {
773
+ return t = m(t), (t < 16 ? "0" : "") + t.toString(16);
774
+ }
775
+ function at(t, i, e, n) {
776
+ return n <= 0 ? t = i = e = NaN : e <= 0 || e >= 1 ? t = i = NaN : i <= 0 && (t = NaN), new x(t, i, e, n);
777
+ }
778
+ function wt(t) {
779
+ if (t instanceof x) return new x(t.h, t.s, t.l, t.opacity);
780
+ if (t instanceof N || (t = G(t)), !t) return new x();
781
+ if (t instanceof x) return t;
782
+ t = t.rgb();
783
+ var i = t.r / 255, e = t.g / 255, n = t.b / 255, s = Math.min(i, e, n), r = Math.max(i, e, n), o = NaN, h = r - s, a = (r + s) / 2;
784
+ return h ? (i === r ? o = (e - n) / h + (e < n) * 6 : e === r ? o = (n - i) / h + 2 : o = (i - e) / h + 4, h /= a < 0.5 ? r + s : 2 - r - s, o *= 60) : h = a > 0 && a < 1 ? 0 : o, new x(o, h, a, t.opacity);
785
+ }
786
+ function Gt(t, i, e, n) {
787
+ return arguments.length === 1 ? wt(t) : new x(t, i, e, n ?? 1);
788
+ }
789
+ function x(t, i, e, n) {
790
+ this.h = +t, this.s = +i, this.l = +e, this.opacity = +n;
791
+ }
792
+ Y(x, Gt, yt(N, {
793
+ brighter(t) {
794
+ return t = t == null ? P : Math.pow(P, t), new x(this.h, this.s, this.l * t, this.opacity);
795
+ },
796
+ darker(t) {
797
+ return t = t == null ? $ : Math.pow($, t), new x(this.h, this.s, this.l * t, this.opacity);
798
+ },
799
+ rgb() {
800
+ var t = this.h % 360 + (this.h < 0) * 360, i = isNaN(t) || isNaN(this.s) ? 0 : this.s, e = this.l, n = e + (e < 0.5 ? e : 1 - e) * i, s = 2 * e - n;
801
+ return new _(
802
+ A(t >= 240 ? t - 240 : t + 120, s, n),
803
+ A(t, s, n),
804
+ A(t < 120 ? t + 240 : t - 120, s, n),
805
+ this.opacity
806
+ );
807
+ },
808
+ clamp() {
809
+ return new x(ft(this.h), k(this.s), k(this.l), R(this.opacity));
810
+ },
811
+ displayable() {
812
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
813
+ },
814
+ formatHsl() {
815
+ const t = R(this.opacity);
816
+ return `${t === 1 ? "hsl(" : "hsla("}${ft(this.h)}, ${k(this.s) * 100}%, ${k(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
817
+ }
818
+ }));
819
+ function ft(t) {
820
+ return t = (t || 0) % 360, t < 0 ? t + 360 : t;
821
+ }
822
+ function k(t) {
823
+ return Math.max(0, Math.min(1, t || 0));
824
+ }
825
+ function A(t, i, e) {
826
+ return (t < 60 ? i + (e - i) * t / 60 : t < 180 ? e : t < 240 ? i + (e - i) * (240 - t) / 60 : i) * 255;
827
+ }
828
+ const Q = (t) => () => t;
829
+ function $t(t, i) {
830
+ return function(e) {
831
+ return t + e * i;
832
+ };
833
+ }
834
+ function Qt(t, i, e) {
835
+ return t = Math.pow(t, e), i = Math.pow(i, e) - t, e = 1 / e, function(n) {
836
+ return Math.pow(t + n * i, e);
837
+ };
838
+ }
839
+ function yi(t, i) {
840
+ var e = i - t;
841
+ return e ? $t(t, e > 180 || e < -180 ? e - 360 * Math.round(e / 360) : e) : Q(isNaN(t) ? i : t);
842
+ }
843
+ function Zt(t) {
844
+ return (t = +t) == 1 ? vt : function(i, e) {
845
+ return e - i ? Qt(i, e, t) : Q(isNaN(i) ? e : i);
846
+ };
847
+ }
848
+ function vt(t, i) {
849
+ var e = i - t;
850
+ return e ? $t(t, e) : Q(isNaN(t) ? i : t);
851
+ }
852
+ const wi = (function t(i) {
853
+ var e = Zt(i);
854
+ function n(s, r) {
855
+ var o = e((s = j(s)).r, (r = j(r)).r), h = e(s.g, r.g), a = e(s.b, r.b), f = vt(s.opacity, r.opacity);
856
+ return function(c) {
857
+ return s.r = o(c), s.g = h(c), s.b = a(c), s.opacity = f(c), s + "";
858
+ };
859
+ }
860
+ return n.gamma = t, n;
861
+ })(1);
862
+ function Dt(t, i) {
863
+ return t = +t, i = +i, function(e) {
864
+ return t * (1 - e) + i * e;
865
+ };
866
+ }
867
+ var O = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, B = new RegExp(O.source, "g");
868
+ function Ft(t) {
869
+ return function() {
870
+ return t;
871
+ };
872
+ }
873
+ function Jt(t) {
874
+ return function(i) {
875
+ return t(i) + "";
876
+ };
877
+ }
878
+ function $i(t, i) {
879
+ var e = O.lastIndex = B.lastIndex = 0, n, s, r, o = -1, h = [], a = [];
880
+ for (t = t + "", i = i + ""; (n = O.exec(t)) && (s = B.exec(i)); )
881
+ (r = s.index) > e && (r = i.slice(e, r), h[o] ? h[o] += r : h[++o] = r), (n = n[0]) === (s = s[0]) ? h[o] ? h[o] += s : h[++o] = s : (h[++o] = null, a.push({ i: o, x: Dt(n, s) })), e = B.lastIndex;
882
+ return e < i.length && (r = i.slice(e), h[o] ? h[o] += r : h[++o] = r), h.length < 2 ? a[0] ? Jt(a[0].x) : Ft(i) : (i = a.length, function(f) {
883
+ for (var c = 0, l; c < i; ++c) h[(l = a[c]).i] = l.x(f);
884
+ return h.join("");
885
+ });
886
+ }
887
+ export {
888
+ wi as A,
889
+ $i as B,
890
+ N as C,
891
+ _t as D,
892
+ T as E,
893
+ gi as F,
894
+ mi as G,
895
+ bi as H,
896
+ di as I,
897
+ pi as J,
898
+ xi as K,
899
+ _i as L,
900
+ Pt as M,
901
+ fi as N,
902
+ ai as O,
903
+ ui as P,
904
+ li as Q,
905
+ _ as R,
906
+ Rt as S,
907
+ Ct as T,
908
+ Vt as a,
909
+ y as b,
910
+ ci as c,
911
+ ei as d,
912
+ ni as e,
913
+ Kt as f,
914
+ Ut as g,
915
+ U as h,
916
+ Wt as i,
917
+ oi as j,
918
+ ri as k,
919
+ hi as l,
920
+ ti as m,
921
+ St as n,
922
+ Y as o,
923
+ X as p,
924
+ yt as q,
925
+ Xt as r,
926
+ ii as s,
927
+ si as t,
928
+ vt as u,
929
+ yi as v,
930
+ Et as w,
931
+ Q as x,
932
+ Dt as y,
933
+ G as z
934
+ };