@graphysdk/viz-engine 1.9.0-beta.1790856043165 → 1.9.0-beta.1790865062136

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.
@@ -109,10 +109,15 @@ var ut = "#FFFFFF", Be = "#1A1A1A", Jr = 4.5, Qr = (e) => {
109
109
  }, Kt = {
110
110
  count: b("count"),
111
111
  mean: b("mean"),
112
- sum: b("sum")
113
- }, Ke = { group: b("group") }, m = {
112
+ sum: b("sum"),
113
+ summaryEstimate: b("summaryEstimate"),
114
+ summaryLower: b("summaryLower"),
115
+ summaryUpper: b("summaryUpper")
116
+ }, Ke = { group: b("group") }, y = {
114
117
  x: b("x"),
115
118
  y: b("y"),
119
+ xBand: b("xBand"),
120
+ yBand: b("yBand"),
116
121
  xMin: b("xMin"),
117
122
  xMax: b("xMax"),
118
123
  yMin: b("yMin"),
@@ -131,33 +136,39 @@ var ut = "#FFFFFF", Be = "#1A1A1A", Jr = 4.5, Qr = (e) => {
131
136
  ...Ht,
132
137
  ...Kt,
133
138
  ...Ke,
134
- ...m,
139
+ ...y,
135
140
  ...Xt,
136
141
  ...fe,
137
142
  ...be
138
143
  }, ca = new Set(Object.values(Kt)), ua = (e) => b(`scaled_${e}`), Fi = (e) => e.startsWith(jt), da = (e) => ca.has(e);
139
144
  function Q(e) {
140
- return e[m.x];
145
+ return e[y.x];
141
146
  }
142
147
  function j(e) {
143
- return e[m.y];
148
+ return e[y.y];
149
+ }
150
+ function Pi(e) {
151
+ return e[y.xBand] ?? e[y.x];
152
+ }
153
+ function Ni(e) {
154
+ return e[y.yBand] ?? e[y.y];
144
155
  }
145
156
  function Z(e) {
146
- return e[m.xMin];
157
+ return e[y.xMin];
147
158
  }
148
159
  function ee(e) {
149
- return e[m.xMax];
160
+ return e[y.xMax];
150
161
  }
151
162
  function H(e) {
152
- return e[m.yMin];
163
+ return e[y.yMin];
153
164
  }
154
165
  function K(e) {
155
- return e[m.yMax];
166
+ return e[y.yMax];
156
167
  }
157
168
  function ha(e) {
158
- return e[m.yRaw];
169
+ return e[y.yRaw];
159
170
  }
160
- function Pi(e, t) {
171
+ function Oi(e, t) {
161
172
  return e[ua(t)];
162
173
  }
163
174
  var fa = {
@@ -225,24 +236,24 @@ var fa = {
225
236
  y: a
226
237
  };
227
238
  }
228
- }, Ni = (e) => qt(fa, e), Xe = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), Oi = (e, t) => e === t ? !0 : He(e) && He(t) ? e.getTime() === t.getTime() : !1, ya = (e) => e === null ? "null" : e instanceof Date ? `date:${e.getTime()}` : `${typeof e}:${e}`, Bi = (e) => e.length > 0;
239
+ }, Bi = (e) => qt(fa, e), Xe = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), Vi = (e, t) => e === t ? !0 : He(e) && He(t) ? e.getTime() === t.getTime() : !1, ya = (e) => e === null ? "null" : e instanceof Date ? `date:${e.getTime()}` : `${typeof e}:${e}`, Wi = (e) => e.length > 0;
229
240
  function Y(e) {
230
241
  return e != null;
231
242
  }
232
- function Vi(e) {
243
+ function Ui(e) {
233
244
  if (e === null || typeof e != "object") return !1;
234
245
  const t = Object.getPrototypeOf(e);
235
246
  return t === Object.prototype || t === null;
236
247
  }
237
- function Wi(e) {
248
+ function Yi(e) {
238
249
  const { numeric: t, categorical: r, temporal: a } = e.groupVariableNamesByType();
239
250
  return a[0] ?? r[0] ?? t[0] ?? "";
240
251
  }
241
- function Ui(e, t) {
252
+ function zi(e, t) {
242
253
  const { categorical: r, temporal: a } = e.groupVariableNamesByType(), n = [...r, ...a];
243
254
  return t === "" || n.includes(t) ? n : [t, ...n];
244
255
  }
245
- function Yi(e) {
256
+ function Gi(e) {
246
257
  const t = D(e.x);
247
258
  return t === null || t === Ht.x ? "" : t;
248
259
  }
@@ -253,7 +264,7 @@ function De(e) {
253
264
  if (!(!Y(e) || typeof e == "string") && "value" in e)
254
265
  return e.value;
255
266
  }
256
- function zi(e, t) {
267
+ function $i(e, t) {
257
268
  return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((r) => dt(e[r]) === dt(t[r]));
258
269
  }
259
270
  function dt(e) {
@@ -302,7 +313,7 @@ var ga = [
302
313
  dashed: [1.5, 3],
303
314
  dotted: [0, 2]
304
315
  }
305
- }, Gi = (e) => ma.includes(e);
316
+ }, ji = (e) => ma.includes(e);
306
317
  function Ae(e) {
307
318
  return e === "stack" || e === "fill";
308
319
  }
@@ -321,13 +332,13 @@ var Ie = "en-GB", Jt = class extends Error {
321
332
  code: e.code ?? "INTERNAL_INVARIANT"
322
333
  }), this.kind = "internal";
323
334
  }
324
- }, Qt = (e) => e.type === "lookup", ba = (e) => e.type === "text", Ee = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "month_year" || e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range" || e.type === "weekly_date_range_with_year" || e.type === "quarter" || e.type === "time", va = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", $i = (e) => e.type === "currency", ji = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", Zt = (e) => {
335
+ }, Qt = (e) => e.type === "lookup", ba = (e) => e.type === "text", Ee = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "month_year" || e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range" || e.type === "weekly_date_range_with_year" || e.type === "quarter" || e.type === "time", va = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", Hi = (e) => e.type === "currency", Ki = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", Zt = (e) => {
325
336
  if (Qt(e)) return Zt(e.fallback);
326
337
  if (Ee(e)) return "temporal";
327
338
  if (va(e)) return "numeric";
328
339
  if (ba(e)) return "categorical";
329
340
  throw new R({ message: `No data type found for value format: ${e.type}` });
330
- }, Hi = (e) => Qt(e) ? e.fallback : e, Aa = class {
341
+ }, Xi = (e) => Qt(e) ? e.fallback : e, Aa = class {
331
342
  constructor() {
332
343
  this.currentYear = (/* @__PURE__ */ new Date()).getUTCFullYear(), this.previousDate = null, this.previousYear = null;
333
344
  }
@@ -765,9 +776,9 @@ var Ie = "en-GB", Jt = class extends Error {
765
776
  const a = pr(e, t, r);
766
777
  return a !== null || !Ee(t) ? a : Na(e);
767
778
  }, ie = process.env.NODE_ENV !== "production";
768
- var Pe = !0, Ki = (e) => {
779
+ var Pe = !0, qi = (e) => {
769
780
  Pe = e;
770
- }, Xi = () => Pe, qi = () => {
781
+ }, Ji = () => Pe, Qi = () => {
771
782
  let e = null;
772
783
  const t = {
773
784
  hits: 0,
@@ -814,7 +825,7 @@ var Pe = !0, Ki = (e) => {
814
825
  out: o
815
826
  }]), o;
816
827
  }, { stats: t });
817
- }, Ji = (...e) => e.reduce((t, r) => ({
828
+ }, Zi = (...e) => e.reduce((t, r) => ({
818
829
  hits: t.hits + r.hits,
819
830
  misses: t.misses + r.misses
820
831
  }), {
@@ -837,7 +848,7 @@ var Pe = !0, Ki = (e) => {
837
848
  key(e) {
838
849
  return this.singletonKey;
839
850
  }
840
- }, tt = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1, Qi = ["x", "y"], Ka = /* @__PURE__ */ new Set([
851
+ }, tt = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1, eo = ["x", "y"], Ka = /* @__PURE__ */ new Set([
841
852
  "x",
842
853
  "y",
843
854
  "ySecondary"
@@ -847,14 +858,14 @@ var Pe = !0, Ki = (e) => {
847
858
  "alpha",
848
859
  "strokeWidth",
849
860
  "lineType"
850
- ]), Xa = (e) => Ka.has(e), qa = (e) => vr.has(e), Zi = (e) => Xa(e) || qa(e);
861
+ ]), Xa = (e) => Ka.has(e), qa = (e) => vr.has(e), to = (e) => Xa(e) || qa(e);
851
862
  function Ja(e) {
852
863
  return e === "secondary" ? "ySecondary" : "y";
853
864
  }
854
- function eo(e, t) {
865
+ function ro(e, t) {
855
866
  return e === "y" ? Ja(t) : "x";
856
867
  }
857
- function to(e) {
868
+ function ao(e) {
858
869
  return e === "ySecondary" ? "y" : e;
859
870
  }
860
871
  var Qa = /* @__PURE__ */ new Set([
@@ -1020,7 +1031,7 @@ var an = (e) => e == null || typeof e == "number" && Number.isNaN(e), nn = (e) =
1020
1031
  })), o = t.map((d) => this.values(d) ?? []), l = new Array(s), c = new Array(s);
1021
1032
  let u = 0;
1022
1033
  for (let d = 0; d < this.rowCount; d++) for (let p = 0; p < t.length; p++, u++) {
1023
- for (const y of i) y.repeated[u] = y.source[d] ?? null;
1034
+ for (const g of i) g.repeated[u] = g.source[d] ?? null;
1024
1035
  l[u] = t[p] ?? "", c[u] = o[p]?.[d] ?? null;
1025
1036
  }
1026
1037
  const h = /* @__PURE__ */ new Map();
@@ -1232,11 +1243,11 @@ var sn = "value", ve = {
1232
1243
  if (c.length === 0) {
1233
1244
  const d = {};
1234
1245
  for (const p of l) {
1235
- const y = this.variableMetadata[p];
1236
- y && (d[p] = {
1237
- type: y.type,
1246
+ const g = this.variableMetadata[p];
1247
+ g && (d[p] = {
1248
+ type: g.type,
1238
1249
  values: [],
1239
- valueFormat: y.valueFormat
1250
+ valueFormat: g.valueFormat
1240
1251
  });
1241
1252
  }
1242
1253
  return d[a] = {
@@ -1322,12 +1333,12 @@ var sn = "value", ve = {
1322
1333
  this.groupedBy = e, this.table = t, this.variableMetadata = r;
1323
1334
  }
1324
1335
  forEach(e) {
1325
- this.table.partition(this.groupedBy).forEach(({ key: t, indices: r }, a) => {
1336
+ this.readPartitions().forEach(({ key: t, indices: r }, a) => {
1326
1337
  e(oe.fromTrusted(this.table.take(r), this.variableMetadata), t, a);
1327
1338
  });
1328
1339
  }
1329
1340
  rollup(e) {
1330
- const t = this.table.partition(this.groupedBy), r = {};
1341
+ const t = this.readPartitions(), r = {};
1331
1342
  for (const n of this.groupedBy) {
1332
1343
  const s = this.table.values(n) ?? [];
1333
1344
  r[n] = t.map(({ indices: i }) => s[i[0] ?? 0] ?? null);
@@ -1353,6 +1364,9 @@ var sn = "value", ve = {
1353
1364
  }
1354
1365
  return oe.fromTrusted(qe.from(r), a);
1355
1366
  }
1367
+ readPartitions() {
1368
+ return this.partitions ??= this.table.partition(this.groupedBy), this.partitions;
1369
+ }
1356
1370
  };
1357
1371
  function ln(e, t, r) {
1358
1372
  const a = t.map((o) => e[o]?.valueFormat ?? { type: "decimal" }), [n, ...s] = a;
@@ -1426,7 +1440,7 @@ var Tr = class {
1426
1440
  r[o.key] = pn(o.key, e.rows, c, u, t);
1427
1441
  }
1428
1442
  return new oe(r);
1429
- }, ro = class extends Ha {
1443
+ }, no = class extends Ha {
1430
1444
  dependencies(e) {
1431
1445
  return [e];
1432
1446
  }
@@ -1460,18 +1474,18 @@ var Tr = class {
1460
1474
  for (const a of e)
1461
1475
  if (fr(a) || r.push(a), r.length === t) return r;
1462
1476
  return r;
1463
- }, ao = /* @__PURE__ */ new Set([
1477
+ }, so = /* @__PURE__ */ new Set([
1464
1478
  "min",
1465
1479
  "max",
1466
1480
  "scalar"
1467
1481
  ]), mn = {
1468
1482
  x: {
1469
- min: m.xMin,
1470
- max: m.xMax
1483
+ min: y.xMin,
1484
+ max: y.xMax
1471
1485
  },
1472
1486
  y: {
1473
- min: m.yMin,
1474
- max: m.yMax
1487
+ min: y.yMin,
1488
+ max: y.yMax
1475
1489
  }
1476
1490
  };
1477
1491
  function bn(e) {
@@ -1479,13 +1493,13 @@ function bn(e) {
1479
1493
  for (const r of e) r.role === "point" ? t.add(r.axis) : (r.role === "min" || r.role === "max") && Y(r.aes) && t.add(r.aes);
1480
1494
  return [...t];
1481
1495
  }
1482
- function no(e) {
1496
+ function io(e) {
1483
1497
  const t = /* @__PURE__ */ new Set();
1484
1498
  for (const r of e)
1485
1499
  r.role === "point" && t.add(r.axis), Y(r.aes) && t.add(r.aes);
1486
1500
  return [...t];
1487
1501
  }
1488
- function so(e, t, r) {
1502
+ function oo(e, t, r) {
1489
1503
  let a = e;
1490
1504
  for (const n of t) {
1491
1505
  if (n.role !== "min" && n.role !== "max" || !Y(n.aes)) continue;
@@ -1521,7 +1535,7 @@ var vn = (e, t) => {
1521
1535
  "lg",
1522
1536
  "xl",
1523
1537
  "full"
1524
- ], io = {
1538
+ ], lo = {
1525
1539
  point: xn,
1526
1540
  line: Mn,
1527
1541
  area: En,
@@ -1566,12 +1580,12 @@ var kn = [
1566
1580
  "diagonal",
1567
1581
  "dots",
1568
1582
  "crosshatch"
1569
- ], _n = ["tile", "stretch"], kr = (e) => typeof e == "object" && e !== null && "gradient" in e, _r = (e) => typeof e == "object" && e !== null && "pattern" in e, Ln = (e) => typeof e == "object" && e !== null && "image" in e, Rn = (e) => typeof e != "object" ? e : kr(e) ? e.stops[0]?.color ?? "transparent" : _r(e) ? e.color : e.fallback, oo = (e) => typeof e == "string" ? e : JSON.stringify(e), Cn = [
1583
+ ], _n = ["tile", "stretch"], kr = (e) => typeof e == "object" && e !== null && "gradient" in e, _r = (e) => typeof e == "object" && e !== null && "pattern" in e, Ln = (e) => typeof e == "object" && e !== null && "image" in e, Rn = (e) => typeof e != "object" ? e : kr(e) ? e.stops[0]?.color ?? "transparent" : _r(e) ? e.color : e.fallback, co = (e) => typeof e == "string" ? e : JSON.stringify(e), Cn = [
1570
1584
  "topLeft",
1571
1585
  "topRight",
1572
1586
  "bottomRight",
1573
1587
  "bottomLeft"
1574
- ], lo = ["dimmed", "hovered"], Dn = [
1588
+ ], uo = ["dimmed", "hovered"], Dn = [
1575
1589
  "normal",
1576
1590
  "italic",
1577
1591
  "oblique"
@@ -1607,7 +1621,7 @@ var kn = [
1607
1621
  "cross",
1608
1622
  "star",
1609
1623
  "wye"
1610
- ], co = [
1624
+ ], ho = [
1611
1625
  "fill",
1612
1626
  "stroke",
1613
1627
  "alpha",
@@ -1665,7 +1679,7 @@ var Mt = (e, t) => {
1665
1679
  }
1666
1680
  const r = Object.entries(e).map(([a, n]) => [a, Mt(n, t)]);
1667
1681
  return r.every(([a, n]) => n === e[a]) ? e : Object.fromEntries(r);
1668
- }, x = (e) => typeof e == "number" && Number.isFinite(e), g = (e, t) => ({
1682
+ }, x = (e) => typeof e == "number" && Number.isFinite(e), m = (e, t) => ({
1669
1683
  status: "rejected",
1670
1684
  expected: e,
1671
1685
  actual: t
@@ -1674,13 +1688,13 @@ var Mt = (e, t) => {
1674
1688
  return (r) => e.includes(r) ? {
1675
1689
  status: "accepted",
1676
1690
  value: r
1677
- } : g(t, r);
1691
+ } : m(t, r);
1678
1692
  }, J = (e, t) => {
1679
1693
  if (typeof e == "string")
1680
1694
  return e.trim().length > 0 ? {
1681
1695
  status: "accepted",
1682
1696
  value: e
1683
- } : g("a non-empty color string", e);
1697
+ } : m("a non-empty color string", e);
1684
1698
  if (Lr(e)) {
1685
1699
  const r = t[e.token];
1686
1700
  return r === void 0 ? {
@@ -1700,17 +1714,17 @@ var Mt = (e, t) => {
1700
1714
  light: e.light,
1701
1715
  dark: e.dark
1702
1716
  }
1703
- } : g(Vn, e);
1717
+ } : m(Vn, e);
1704
1718
  }, Yn = (e, t) => {
1705
1719
  if (typeof e != "object" || e === null || Ne(e) || Lr(e)) return J(e, t);
1706
1720
  const r = e;
1707
1721
  if (kr(r)) {
1708
1722
  const a = r.gradient;
1709
- if (a !== "linear" && a !== "radial") return g(ke, e);
1710
- if (!Array.isArray(r.stops) || r.stops.length < 2) return g("a gradient with at least two stops", e);
1723
+ if (a !== "linear" && a !== "radial") return m(ke, e);
1724
+ if (!Array.isArray(r.stops) || r.stops.length < 2) return m("a gradient with at least two stops", e);
1711
1725
  const n = [];
1712
1726
  for (const s of r.stops) {
1713
- if (!x(s.offset) || s.offset < 0 || s.offset > 1) return g("a gradient stop offset in [0, 1]", e);
1727
+ if (!x(s.offset) || s.offset < 0 || s.offset > 1) return m("a gradient stop offset in [0, 1]", e);
1714
1728
  const i = J(s.color, t);
1715
1729
  if (i.status !== "accepted") return i;
1716
1730
  n.push({
@@ -1724,7 +1738,7 @@ var Mt = (e, t) => {
1724
1738
  gradient: "radial",
1725
1739
  stops: n
1726
1740
  }
1727
- } : r.angle !== void 0 && !x(r.angle) ? g("a gradient angle in degrees", e) : {
1741
+ } : r.angle !== void 0 && !x(r.angle) ? m("a gradient angle in degrees", e) : {
1728
1742
  status: "accepted",
1729
1743
  value: {
1730
1744
  gradient: "linear",
@@ -1734,7 +1748,7 @@ var Mt = (e, t) => {
1734
1748
  };
1735
1749
  }
1736
1750
  if (_r(r)) {
1737
- if (!kn.includes(r.pattern)) return g(ke, e);
1751
+ if (!kn.includes(r.pattern)) return m(ke, e);
1738
1752
  const a = J(r.color, t);
1739
1753
  if (a.status !== "accepted") return a;
1740
1754
  const n = {
@@ -1747,7 +1761,7 @@ var Mt = (e, t) => {
1747
1761
  n.background = s.value;
1748
1762
  }
1749
1763
  if (r.size !== void 0) {
1750
- if (!x(r.size) || r.size <= 0) return g("a pattern size in pixels", e);
1764
+ if (!x(r.size) || r.size <= 0) return m("a pattern size in pixels", e);
1751
1765
  n.size = r.size;
1752
1766
  }
1753
1767
  return {
@@ -1756,10 +1770,10 @@ var Mt = (e, t) => {
1756
1770
  };
1757
1771
  }
1758
1772
  if (Ln(r)) {
1759
- if (typeof r.image != "string" || !r.image.startsWith("data:image/")) return g("an image as a data:image URI", e);
1760
- if (r.fit !== void 0 && !_n.includes(r.fit)) return g(ke, e);
1761
- if (r.alpha !== void 0 && (!x(r.alpha) || r.alpha < 0 || r.alpha > 1)) return g("an image alpha in [0, 1]", e);
1762
- if (r.size !== void 0 && (!x(r.size) || r.size <= 0)) return g("an image size in pixels", e);
1773
+ if (typeof r.image != "string" || !r.image.startsWith("data:image/")) return m("an image as a data:image URI", e);
1774
+ if (r.fit !== void 0 && !_n.includes(r.fit)) return m(ke, e);
1775
+ if (r.alpha !== void 0 && (!x(r.alpha) || r.alpha < 0 || r.alpha > 1)) return m("an image alpha in [0, 1]", e);
1776
+ if (r.size !== void 0 && (!x(r.size) || r.size <= 0)) return m("an image size in pixels", e);
1763
1777
  const a = J(r.fallback, t);
1764
1778
  return a.status !== "accepted" ? a : {
1765
1779
  status: "accepted",
@@ -1772,7 +1786,7 @@ var Mt = (e, t) => {
1772
1786
  }
1773
1787
  };
1774
1788
  }
1775
- return g(ke, e);
1789
+ return m(ke, e);
1776
1790
  }, Et = (e) => {
1777
1791
  if (x(e) && e >= 0) return {
1778
1792
  status: "accepted",
@@ -1783,12 +1797,12 @@ var Mt = (e, t) => {
1783
1797
  left: e
1784
1798
  }
1785
1799
  };
1786
- if (typeof e != "object" || e === null) return g(At, e);
1800
+ if (typeof e != "object" || e === null) return m(At, e);
1787
1801
  const t = e, r = {};
1788
1802
  for (const a of Wn) {
1789
1803
  const n = t[a];
1790
1804
  if (n !== void 0) {
1791
- if (!x(n) || n < 0) return g(At, e);
1805
+ if (!x(n) || n < 0) return m(At, e);
1792
1806
  r[a] = n;
1793
1807
  }
1794
1808
  }
@@ -1801,56 +1815,56 @@ var Mt = (e, t) => {
1801
1815
  status: "accepted",
1802
1816
  value: e
1803
1817
  };
1804
- if (typeof e != "object" || e === null) return g(xt, e);
1818
+ if (typeof e != "object" || e === null) return m(xt, e);
1805
1819
  const t = e, r = {};
1806
1820
  for (const a of Cn) {
1807
1821
  const n = t[a];
1808
- if (!x(n) || n < 0) return g(xt, e);
1822
+ if (!x(n) || n < 0) return m(xt, e);
1809
1823
  r[a] = n;
1810
1824
  }
1811
1825
  return {
1812
1826
  status: "accepted",
1813
1827
  value: r
1814
1828
  };
1815
- }, uo = {
1829
+ }, fo = {
1816
1830
  color: J,
1817
1831
  paint: Yn,
1818
1832
  unitInterval: (e) => x(e) && e >= 0 && e <= 1 ? {
1819
1833
  status: "accepted",
1820
1834
  value: e
1821
- } : g("a number in [0, 1]", e),
1835
+ } : m("a number in [0, 1]", e),
1822
1836
  pixels: (e) => x(e) && e >= 0 ? {
1823
1837
  status: "accepted",
1824
1838
  value: e
1825
- } : g("a non-negative number of pixels", e),
1839
+ } : m("a non-negative number of pixels", e),
1826
1840
  barRadius: (e) => An(e) || x(e) && e >= 0 ? {
1827
1841
  status: "accepted",
1828
1842
  value: e
1829
- } : g(`a number of pixels or one of ${Sr.map((t) => `'${t}'`).join(", ")}`, e),
1843
+ } : m(`a number of pixels or one of ${Sr.map((t) => `'${t}'`).join(", ")}`, e),
1830
1844
  dashArray: (e) => Array.isArray(e) && e.every((t) => x(t) && t >= 0) ? {
1831
1845
  status: "accepted",
1832
1846
  value: [...e]
1833
- } : g("an array of non-negative dash and gap lengths, in stroke widths", e),
1847
+ } : m("an array of non-negative dash and gap lengths, in stroke widths", e),
1834
1848
  fontFamily: (e) => typeof e == "string" && e.trim().length > 0 ? {
1835
1849
  status: "accepted",
1836
1850
  value: e
1837
- } : g("a non-empty CSS font-family list", e),
1851
+ } : m("a non-empty CSS font-family list", e),
1838
1852
  fontWeight: (e) => x(e) && e >= mt && e <= bt ? {
1839
1853
  status: "accepted",
1840
1854
  value: e
1841
- } : g(`a number in [${mt}, ${bt}]`, e),
1855
+ } : m(`a number in [${mt}, ${bt}]`, e),
1842
1856
  multiplier: (e) => x(e) && e >= 0 ? {
1843
1857
  status: "accepted",
1844
1858
  value: e
1845
- } : g("a non-negative multiple, 1 being unchanged", e),
1859
+ } : m("a non-negative multiple, 1 being unchanged", e),
1846
1860
  shadow: (e, t) => {
1847
1861
  if (e === "none") return {
1848
1862
  status: "accepted",
1849
1863
  value: e
1850
1864
  };
1851
- if (typeof e != "object" || e === null) return g(vt, e);
1865
+ if (typeof e != "object" || e === null) return m(vt, e);
1852
1866
  const r = e;
1853
- if (!x(r.offsetX) || !x(r.offsetY) || !x(r.blur) || r.blur < 0) return g(vt, e);
1867
+ if (!x(r.offsetX) || !x(r.offsetY) || !x(r.blur) || r.blur < 0) return m(vt, e);
1854
1868
  const a = J(r.color, t);
1855
1869
  return a.status !== "accepted" ? a : {
1856
1870
  status: "accepted",
@@ -1868,7 +1882,7 @@ var Mt = (e, t) => {
1868
1882
  signedPixels: (e) => x(e) ? {
1869
1883
  status: "accepted",
1870
1884
  value: e
1871
- } : g("a number of pixels, negative allowed", e),
1885
+ } : m("a number of pixels, negative allowed", e),
1872
1886
  fontStyle: X(Dn),
1873
1887
  textTransform: X(In),
1874
1888
  textDecoration: X(Fn),
@@ -1883,10 +1897,10 @@ var Mt = (e, t) => {
1883
1897
  "role",
1884
1898
  "position",
1885
1899
  "part"
1886
- ], ho = "#B84737", $n = 0.4, fo = "sm", po = 2, yo = 8, go = 12, mo = Object.freeze({
1900
+ ], po = "#B84737", $n = 0.4, yo = "sm", go = 2, mo = 8, bo = 12, vo = Object.freeze({
1887
1901
  light: "#F5F1E9",
1888
1902
  dark: "#1F1E1C"
1889
- }), bo = "#ffffff", vo = 1, Ao = 24, xo = {
1903
+ }), Ao = "#ffffff", xo = 1, Mo = 24, Eo = {
1890
1904
  top: 24,
1891
1905
  right: 24,
1892
1906
  bottom: 24,
@@ -2062,7 +2076,7 @@ var Mt = (e, t) => {
2062
2076
  shadow: "shadow",
2063
2077
  alpha: "unitInterval"
2064
2078
  }, Cr = /* @__PURE__ */ new Map();
2065
- var Mo = (e = Object.values(rt)) => {
2079
+ var To = (e = Object.values(rt)) => {
2066
2080
  const t = [], r = [], a = [], n = (s) => {
2067
2081
  if (s.rest !== void 0 && t.push({
2068
2082
  select: s.select,
@@ -2083,14 +2097,14 @@ var Mo = (e = Object.values(rt)) => {
2083
2097
  ...r,
2084
2098
  ...a
2085
2099
  ];
2086
- }, Eo = (e) => {
2100
+ }, wo = (e) => {
2087
2101
  for (const t of e) {
2088
2102
  Object.freeze(t.select);
2089
2103
  for (const r of Object.values(t.declarations)) typeof r == "object" && Object.freeze(r);
2090
2104
  Object.freeze(t.declarations), t.when !== void 0 && Object.freeze(t.when), Object.freeze(t);
2091
2105
  }
2092
2106
  return e;
2093
- }, To = (e) => Cr.get(Dr(e)), _t = (e, t) => ({
2107
+ }, So = (e) => Cr.get(Dr(e)), _t = (e, t) => ({
2094
2108
  x: {
2095
2109
  select: {
2096
2110
  target: e,
@@ -2946,14 +2960,14 @@ var at = (e, t) => {
2946
2960
  x: r,
2947
2961
  y: a
2948
2962
  };
2949
- }, wo = ({ positionRoles: e, aesthetics: t }) => [...bn(e), ...t.filter((r) => r.required).map((r) => r.name)];
2950
- function So(e) {
2963
+ }, ko = ({ positionRoles: e, aesthetics: t }) => [...bn(e), ...t.filter((r) => r.required).map((r) => r.name)];
2964
+ function _o(e) {
2951
2965
  return e;
2952
2966
  }
2953
2967
  var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.observation?.sharedPaint === !1 ? { ...e.observation.vocabulary } : {
2954
2968
  ...Rr,
2955
2969
  ...e.observation?.vocabulary
2956
- }, ko = (e, t) => ({
2970
+ }, Lo = (e, t) => ({
2957
2971
  select: {
2958
2972
  target: "geom",
2959
2973
  kind: e
@@ -2998,7 +3012,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
2998
3012
  anchor: as(s),
2999
3013
  placement: h ? a : "inside",
3000
3014
  offset: h ? o ?? i : 0
3001
- }, y = u ? t : e, v = r.valueAxis === "x" ? y : e, _ = r.valueAxis === "y" ? y : e, F = r.valueAxis === "x" ? d : p, O = r.valueAxis === "x" ? p : d, M = It(F, {
3015
+ }, g = u ? t : e, v = r.valueAxis === "x" ? g : e, _ = r.valueAxis === "y" ? g : e, F = r.valueAxis === "x" ? d : p, O = r.valueAxis === "x" ? p : d, M = It(F, {
3002
3016
  min: v.x,
3003
3017
  max: v.x + v.width,
3004
3018
  halfExtent: l / 2
@@ -3167,12 +3181,12 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3167
3181
  } : t;
3168
3182
  }
3169
3183
  compile({ data: e, mapping: t }) {
3170
- return e = at(e, t), e.hasVariable(m.yMin) || (e = e.addConstantVariable(m.yMin, "numeric", 0)), {
3184
+ return e = at(e, t), e.hasVariable(y.yMin) || (e = e.addConstantVariable(y.yMin, "numeric", 0)), {
3171
3185
  data: e,
3172
3186
  mapping: {}
3173
3187
  };
3174
3188
  }
3175
- }, cs = 0.7, _o = 0.1, us = 0.03, ds = 0.05, hs = (e) => {
3189
+ }, cs = 0.7, Ro = 0.1, us = 0.03, ds = 0.05, hs = (e) => {
3176
3190
  const t = e[Xt.role];
3177
3191
  return t ?? "solo";
3178
3192
  }, it = (e, t, r) => {
@@ -3266,14 +3280,14 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3266
3280
  if (h === null) continue;
3267
3281
  const d = n(u);
3268
3282
  if (d === "") continue;
3269
- const p = it(a, "observation", d), y = lt(h, r);
3270
- l && p.inside.width > y.width && (o = !0);
3283
+ const p = it(a, "observation", d), g = lt(h, r);
3284
+ l && p.inside.width > g.width && (o = !0);
3271
3285
  const v = c === null ? null : u[c], _ = S(v) && v < 0;
3272
3286
  i.push({
3273
3287
  isNegative: _,
3274
3288
  text: d,
3275
3289
  boxes: p,
3276
- bounds: y,
3290
+ bounds: g,
3277
3291
  observation: u
3278
3292
  });
3279
3293
  }
@@ -3368,7 +3382,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3368
3382
  if (d === null) continue;
3369
3383
  const p = e.formatCategory(h);
3370
3384
  if (p === null || p === "") continue;
3371
- const y = it(e.measureDataLabel, "category", p), v = y[o], _ = lt(d, e.panelRect), F = u === null ? null : h[u], O = S(F) && F < 0, M = we({
3385
+ const g = it(e.measureDataLabel, "category", p), v = g[o], _ = lt(d, e.panelRect), F = u === null ? null : h[u], O = S(F) && F < 0, M = we({
3372
3386
  box: _,
3373
3387
  panel: c,
3374
3388
  orientation: Nr(l, O),
@@ -3378,7 +3392,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3378
3392
  offset: i,
3379
3393
  labelWidth: v.width,
3380
3394
  labelHeight: v.height
3381
- }), L = y[M.position];
3395
+ }), L = g[M.position];
3382
3396
  r.push({
3383
3397
  layerId: e.layer.id,
3384
3398
  x: M.x,
@@ -3428,7 +3442,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3428
3442
  };
3429
3443
  }
3430
3444
  }, ws = ({ edge: e, bounds: t, boxes: r, isRotated: a, panelWidth: n, panelHeight: s, offset: i }) => {
3431
- const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: d, outwardSign: p, panelExtent: y } = Ts(e, t, n, s), v = Qe(r.inside.width, r.inside.height, a), _ = o ? v.height : v.width, F = o ? v.width : v.height, O = _ + i < u, M = F <= h;
3445
+ const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: d, outwardSign: p, panelExtent: g } = Ts(e, t, n, s), v = Qe(r.inside.width, r.inside.height, a), _ = o ? v.height : v.width, F = o ? v.width : v.height, O = _ + i < u, M = F <= h;
3432
3446
  if (o ? O : O && M) {
3433
3447
  if (o && !M) return null;
3434
3448
  if (a) return {
@@ -3451,7 +3465,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3451
3465
  };
3452
3466
  }
3453
3467
  const L = Qe(r.outside.width, r.outside.height, a), T = (o ? L.height : L.width) / 2, P = d + p * (T + i);
3454
- return P - T < 0 || P + T > y ? null : {
3468
+ return P - T < 0 || P + T > g ? null : {
3455
3469
  ...o ? {
3456
3470
  x: l,
3457
3471
  y: P
@@ -3468,10 +3482,10 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3468
3482
  const o = t === "y";
3469
3483
  for (const l of i) {
3470
3484
  const c = lt(ms(t, l), r), u = n(l.total), { width: h, height: d } = a("aggregate", "outside", u), p = l.anchor.direction === "positive";
3471
- let y, v;
3472
- o ? (y = p ? c.x + c.width + _e + h / 2 : c.x - _e - h / 2, v = c.y + c.height / 2) : (y = c.x + c.width / 2, v = p ? c.y - _e - d / 2 : c.y + c.height + _e + d / 2), s.push({
3485
+ let g, v;
3486
+ o ? (g = p ? c.x + c.width + _e + h / 2 : c.x - _e - h / 2, v = c.y + c.height / 2) : (g = c.x + c.width / 2, v = p ? c.y - _e - d / 2 : c.y + c.height + _e + d / 2), s.push({
3473
3487
  layerId: e.id,
3474
- x: y,
3488
+ x: g,
3475
3489
  y: v,
3476
3490
  text: u,
3477
3491
  width: h,
@@ -3485,14 +3499,14 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
3485
3499
  };
3486
3500
  function ks(e) {
3487
3501
  return {
3488
- startAngle: e[m.xMin],
3489
- endAngle: e[m.xMax]
3502
+ startAngle: e[y.xMin],
3503
+ endAngle: e[y.xMax]
3490
3504
  };
3491
3505
  }
3492
3506
  function _s(e) {
3493
3507
  return {
3494
- innerRadius: e[m.yMin],
3495
- outerRadius: e[m.yMax] ?? e[m.y]
3508
+ innerRadius: e[y.yMin],
3509
+ outerRadius: e[y.yMax] ?? e[y.y]
3496
3510
  };
3497
3511
  }
3498
3512
  var Ls = " · ", U = 2, Rs = (e) => {
@@ -3503,14 +3517,14 @@ var Ls = " · ", U = 2, Rs = (e) => {
3503
3517
  };
3504
3518
  const { position: r, justify: a, align: n, offset: s, showCategoryLabels: i } = e.layer.dataLabels, o = e.coordSystem.bandAxis === "y", l = e.panelRect.width / 2, c = e.panelRect.height / 2, u = Math.min(e.panelRect.width, e.panelRect.height) / 2, h = e.styleReaders;
3505
3519
  for (const d of e.layer.data) {
3506
- const { startAngle: p, endAngle: y } = ks(d), { innerRadius: v, outerRadius: _ } = _s(d);
3507
- if (p === null || y === null || _ === null) continue;
3520
+ const { startAngle: p, endAngle: g } = ks(d), { innerRadius: v, outerRadius: _ } = _s(d);
3521
+ if (p === null || g === null || _ === null) continue;
3508
3522
  const F = e.formatLabel(d);
3509
3523
  if (F === "") continue;
3510
3524
  const O = i ? e.formatCategory(d) : null, M = O === null ? F : `${O}${Ls}${F}`, L = {
3511
3525
  startAngle: p,
3512
- endAngle: y,
3513
- midAngle: (p + y) / 2,
3526
+ endAngle: g,
3527
+ midAngle: (p + g) / 2,
3514
3528
  innerRadiusPx: (v ?? 0) * u,
3515
3529
  outerRadiusPx: _ * u
3516
3530
  };
@@ -3600,8 +3614,8 @@ var Ls = " · ", U = 2, Rs = (e) => {
3600
3614
  if (c < e.innerRadiusPx - U || u > e.outerRadiusPx + U) return !1;
3601
3615
  const h = Math.abs(e.endAngle - e.startAngle) / 2;
3602
3616
  return h >= Math.PI ? !0 : l.every(([d, p]) => {
3603
- const y = Math.hypot(d, p);
3604
- return y <= U ? !0 : $t(Math.atan2(d, -p), e.midAngle) <= h + U / y;
3617
+ const g = Math.hypot(d, p);
3618
+ return g <= U ? !0 : $t(Math.atan2(d, -p), e.midAngle) <= h + U / g;
3605
3619
  }) ? h <= Math.PI / 2 ? !0 : c <= U ? !1 : !Pt(e.startAngle, o) && !Pt(e.endAngle, o) : !1;
3606
3620
  }, Is = (e, t, r) => {
3607
3621
  if (t <= 0 || t < e.innerRadiusPx - U || t > e.outerRadiusPx + U) return !1;
@@ -3769,9 +3783,9 @@ var Ls = " · ", U = 2, Rs = (e) => {
3769
3783
  }
3770
3784
  compile({ data: e, mapping: t, params: r, coordType: a }) {
3771
3785
  const n = Ot(r, a);
3772
- e = at(e, t), e.hasVariable(m.yMin) || (e = e.addConstantVariable(m.yMin, "numeric", 0));
3786
+ e = at(e, t), e.hasVariable(y.yMin) || (e = e.addConstantVariable(y.yMin, "numeric", 0));
3773
3787
  const s = n / 2;
3774
- return e = e.addConstantVariable(m.xMin, "numeric", -s).addConstantVariable(m.xMax, "numeric", s), {
3788
+ return e = e.addConstantVariable(y.xMin, "numeric", -s).addConstantVariable(y.xMax, "numeric", s), {
3775
3789
  data: e,
3776
3790
  mapping: {}
3777
3791
  };
@@ -4156,16 +4170,16 @@ var Ls = " · ", U = 2, Rs = (e) => {
4156
4170
  function js(e) {
4157
4171
  return e[fe.color];
4158
4172
  }
4159
- function Lo(e) {
4173
+ function Co(e) {
4160
4174
  return e[fe.alpha];
4161
4175
  }
4162
- function Ro(e) {
4176
+ function Do(e) {
4163
4177
  return e[fe.size];
4164
4178
  }
4165
- function Co(e) {
4179
+ function Io(e) {
4166
4180
  return e[fe.strokeWidth];
4167
4181
  }
4168
- function Do(e) {
4182
+ function Fo(e) {
4169
4183
  return e[fe.lineType];
4170
4184
  }
4171
4185
  var Hs = (e) => {
@@ -4296,7 +4310,7 @@ var Hs = (e) => {
4296
4310
  }
4297
4311
  compile({ data: e }) {
4298
4312
  return {
4299
- data: e.addConstantVariable(m.xMin, "numeric", -0.5).addConstantVariable(m.xMax, "numeric", 0.5).addConstantVariable(m.yMin, "numeric", -0.5).addConstantVariable(m.yMax, "numeric", 0.5),
4313
+ data: e.addConstantVariable(y.xMin, "numeric", -0.5).addConstantVariable(y.xMax, "numeric", 0.5).addConstantVariable(y.yMin, "numeric", -0.5).addConstantVariable(y.yMax, "numeric", 0.5),
4300
4314
  mapping: {}
4301
4315
  };
4302
4316
  }
@@ -4307,12 +4321,15 @@ var Hs = (e) => {
4307
4321
  new ls(),
4308
4322
  new $s(),
4309
4323
  new Zs()
4310
- ], Io = class extends Tr {
4324
+ ], Po = class extends Tr {
4311
4325
  constructor() {
4312
4326
  super("geom");
4313
4327
  for (const e of ei) this.register(e.type, e);
4314
4328
  }
4315
4329
  }, ti = class {
4330
+ resolveComputedVariables(e, t) {
4331
+ return this.computedVariables;
4332
+ }
4316
4333
  compute(e) {
4317
4334
  return this.computeStat(e);
4318
4335
  }
@@ -4391,7 +4408,7 @@ var Hs = (e) => {
4391
4408
  new si(),
4392
4409
  new ii(),
4393
4410
  new oi()
4394
- ], Fo = class extends Tr {
4411
+ ], No = class extends Tr {
4395
4412
  constructor() {
4396
4413
  super("transform");
4397
4414
  for (const e of li) this.register(e.transformType, e);
@@ -4401,7 +4418,7 @@ function ci(e) {
4401
4418
  if ("definition" in e) return e.definition;
4402
4419
  if (Or(e) || Br(e) || Vr(e)) return e;
4403
4420
  }
4404
- function Po(e) {
4421
+ function Oo(e) {
4405
4422
  const t = [], r = [], a = [];
4406
4423
  for (const n of e) {
4407
4424
  const s = ci(n);
@@ -4467,7 +4484,7 @@ function $e(e, t, r) {
4467
4484
  });
4468
4485
  return n;
4469
4486
  }
4470
- var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "transformType" in e && typeof e.apply == "function", No = [
4487
+ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "transformType" in e && typeof e.apply == "function", Bo = [
4471
4488
  "brick",
4472
4489
  "gray",
4473
4490
  "red",
@@ -4478,7 +4495,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
4478
4495
  "blue",
4479
4496
  "purple",
4480
4497
  "pink"
4481
- ], Oo = [
4498
+ ], Vo = [
4482
4499
  "cyan",
4483
4500
  "pink",
4484
4501
  "purple",
@@ -4639,7 +4656,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
4639
4656
  pink200: "#FED0F3",
4640
4657
  pink100: "#FFE8F9",
4641
4658
  pink50: "#FFF4FC"
4642
- }, Bo = [Me.brick100, Me.brick900], gi = [
4659
+ }, Wo = [Me.brick100, Me.brick900], gi = [
4643
4660
  Me.gray200,
4644
4661
  I.green,
4645
4662
  I.red,
@@ -4776,7 +4793,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
4776
4793
  Re.positive,
4777
4794
  Re.negative,
4778
4795
  Re.total
4779
- ], Vo = {
4796
+ ], Uo = {
4780
4797
  transform: "linear",
4781
4798
  reverse: !1,
4782
4799
  nice: !0,
@@ -4787,16 +4804,16 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
4787
4804
  interpolate: "lab",
4788
4805
  domainMid: null,
4789
4806
  symmetric: !1
4790
- }, Wo = {
4807
+ }, Yo = {
4791
4808
  size: [4, 20],
4792
4809
  alpha: [0.1, 1],
4793
4810
  strokeWidth: [1, 4]
4794
- }, Uo = {
4811
+ }, zo = {
4795
4812
  domainMin: null,
4796
4813
  domainMax: null,
4797
4814
  nice: !1,
4798
4815
  reverse: !1
4799
- }, Yo = {
4816
+ }, Go = {
4800
4817
  range: null,
4801
4818
  domain: null,
4802
4819
  padding: 0.1,
@@ -4809,7 +4826,7 @@ function vi(e) {
4809
4826
  const t = Le.indexOf(C[e]);
4810
4827
  return t <= 0 ? Le : [...Le.slice(t), ...Le.slice(0, t)];
4811
4828
  }
4812
- function zo(e, t = {}) {
4829
+ function $o(e, t = {}) {
4813
4830
  switch (e.type) {
4814
4831
  case "default":
4815
4832
  return t.hasTouchingGeoms ? zt(fi, t.colorScheme ?? "light", t.groupCount) : hi;
@@ -4825,7 +4842,7 @@ function zo(e, t = {}) {
4825
4842
  return e.colors;
4826
4843
  }
4827
4844
  }
4828
- function Go(e, t) {
4845
+ function jo(e, t) {
4829
4846
  if (!t) return e;
4830
4847
  const r = [...e];
4831
4848
  for (const [a, n] of Object.entries(t)) {
@@ -4836,7 +4853,7 @@ function Go(e, t) {
4836
4853
  }
4837
4854
  return r;
4838
4855
  }
4839
- function $o(e, t, r, a) {
4856
+ function Ho(e, t, r, a) {
4840
4857
  if (!t) return;
4841
4858
  const n = r?.type === "custom" ? a[r.id] : void 0, s = {};
4842
4859
  for (const [i, o] of Object.entries(t)) {
@@ -4862,7 +4879,7 @@ function $o(e, t, r, a) {
4862
4879
  }
4863
4880
  return Object.keys(s).length > 0 ? s : void 0;
4864
4881
  }
4865
- function jo(e, t, r) {
4882
+ function Ko(e, t, r) {
4866
4883
  if (!t) return Yt.palette;
4867
4884
  if (t.type === "custom") {
4868
4885
  const a = r[t.id];
@@ -4885,7 +4902,7 @@ function jo(e, t, r) {
4885
4902
  }
4886
4903
  return t;
4887
4904
  }
4888
- function Ho(e, t = {}) {
4905
+ function Xo(e, t = {}) {
4889
4906
  const r = t;
4890
4907
  return {
4891
4908
  type: "scale",
@@ -4904,7 +4921,7 @@ function Ho(e, t = {}) {
4904
4921
  symmetric: r.symmetric
4905
4922
  };
4906
4923
  }
4907
- function Ko(e, t = {}) {
4924
+ function qo(e, t = {}) {
4908
4925
  return {
4909
4926
  type: "scale",
4910
4927
  scaledAesthetic: e,
@@ -4916,7 +4933,7 @@ function Ko(e, t = {}) {
4916
4933
  clamp: t.clamp
4917
4934
  };
4918
4935
  }
4919
- function Xo(e, t = {}) {
4936
+ function Jo(e, t = {}) {
4920
4937
  return {
4921
4938
  type: "scale",
4922
4939
  scaledAesthetic: e,
@@ -4927,14 +4944,14 @@ function Xo(e, t = {}) {
4927
4944
  reverse: t.reverse
4928
4945
  };
4929
4946
  }
4930
- function qo(e, t = {}) {
4947
+ function Qo(e, t = {}) {
4931
4948
  return {
4932
4949
  type: "scale",
4933
4950
  scaledAesthetic: e,
4934
4951
  scaleType: "identity"
4935
4952
  };
4936
4953
  }
4937
- function Jo(e, t) {
4954
+ function Zo(e, t) {
4938
4955
  return {
4939
4956
  type: "scale",
4940
4957
  scaledAesthetic: e,
@@ -4942,7 +4959,7 @@ function Jo(e, t) {
4942
4959
  options: t
4943
4960
  };
4944
4961
  }
4945
- function Qo(e, t = {}) {
4962
+ function el(e, t = {}) {
4946
4963
  return {
4947
4964
  type: "scale",
4948
4965
  scaledAesthetic: e,
@@ -4951,24 +4968,24 @@ function Qo(e, t = {}) {
4951
4968
  overrides: t.overrides
4952
4969
  };
4953
4970
  }
4954
- var Zo = { labelCrossPosition: 0.5 }, el = {
4971
+ var tl = { labelCrossPosition: 0.5 }, rl = {
4955
4972
  kind: "rectangle",
4956
4973
  zOrder: "foreground"
4957
- }, tl = {
4974
+ }, al = {
4958
4975
  zOrder: "foreground",
4959
4976
  fit: "contain"
4960
- }, rl = {
4977
+ }, nl = {
4961
4978
  x: 8,
4962
4979
  y: 8,
4963
4980
  unit: "px"
4964
- }, al = { align: "center" }, nl = {
4981
+ }, sl = { align: "center" }, il = {
4965
4982
  startArrowheadStyle: "none",
4966
4983
  endArrowheadStyle: "line-arrow"
4967
- }, sl = {
4984
+ }, ol = {
4968
4985
  thin: 2,
4969
4986
  medium: 4,
4970
4987
  thick: 8
4971
- }, il = 0.5, ol = {
4988
+ }, ll = 0.5, cl = {
4972
4989
  strokeWidth: 2,
4973
4990
  shadow: {
4974
4991
  offsetX: 0,
@@ -4976,7 +4993,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
4976
4993
  blur: 1.15,
4977
4994
  color: "rgba(0, 0, 0, 0.16)"
4978
4995
  }
4979
- }, ll = {
4996
+ }, ul = {
4980
4997
  small: {
4981
4998
  arrow: { strokeWidth: 2 },
4982
4999
  label: {
@@ -5007,7 +5024,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
5007
5024
  strokeWidth: 2
5008
5025
  }
5009
5026
  }
5010
- }, cl = {
5027
+ }, dl = {
5011
5028
  differenceArrow: "differenceArrows",
5012
5029
  shape: "shapes",
5013
5030
  arrow: "arrows",
@@ -5016,7 +5033,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
5016
5033
  sticker: "stickers",
5017
5034
  pinnedNumber: "pinnedNumbers",
5018
5035
  comment: "comments"
5019
- }, ul = {
5036
+ }, hl = {
5020
5037
  differenceArrow(e) {
5021
5038
  return {
5022
5039
  type: "annotation",
@@ -5077,206 +5094,208 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
5077
5094
  export {
5078
5095
  Te as $,
5079
5096
  qt as $n,
5080
- ro as $t,
5081
- No as A,
5097
+ no as $t,
5098
+ Bo as A,
5082
5099
  Ee as An,
5083
- Ri as Ar,
5100
+ ia as Ar,
5084
5101
  Fn as At,
5085
5102
  Hs as B,
5086
5103
  Ae as Bn,
5087
- Qr as Br,
5104
+ Zr as Br,
5088
5105
  Ln as Bt,
5089
- Vo as C,
5106
+ Uo as C,
5090
5107
  xa as Cn,
5091
- Ci as Cr,
5092
- uo as Ct,
5108
+ $ as Cr,
5109
+ fo as Ct,
5093
5110
  hi as D,
5094
- ji as Dn,
5095
- ue as Dr,
5111
+ Ki as Dn,
5112
+ aa as Dr,
5096
5113
  Bn as Dt,
5097
- Wo as E,
5098
- $i as En,
5099
- Li as Er,
5114
+ Yo as E,
5115
+ Hi as En,
5116
+ na as Er,
5100
5117
  Nn as Et,
5101
5118
  ti as F,
5102
5119
  Ie as Fn,
5103
- S as Fr,
5120
+ ki as Fr,
5104
5121
  Mt as Ft,
5105
- Ro as G,
5106
- Yi as Gn,
5122
+ Do as G,
5123
+ Gi as Gn,
5107
5124
  pe as Gt,
5108
- Lo as H,
5109
- Wi as Hn,
5110
- ea as Hr,
5111
- oo as Ht,
5125
+ Co as H,
5126
+ Yi as Hn,
5127
+ Qr as Hr,
5128
+ co as Ht,
5112
5129
  ei as I,
5113
5130
  W as In,
5114
- He as Ir,
5131
+ Si as Ir,
5115
5132
  f as It,
5116
5133
  ks as J,
5117
- Bi as Jn,
5134
+ Wi as Jn,
5118
5135
  vn as Jt,
5119
- Co as K,
5136
+ Io as K,
5120
5137
  D as Kn,
5121
- io as Kt,
5122
- Io as L,
5138
+ lo as Kt,
5139
+ Po as L,
5123
5140
  ma as Ln,
5124
- wi as Lr,
5141
+ S as Lr,
5125
5142
  _n as Lt,
5126
- Po as M,
5143
+ Oo as M,
5127
5144
  R as Mn,
5128
- $t as Mr,
5145
+ Ri as Mr,
5129
5146
  Ne as Mt,
5130
5147
  ci as N,
5131
5148
  de as Nn,
5132
- ki as Nr,
5149
+ oa as Nr,
5133
5150
  Lr as Nt,
5134
5151
  fi as O,
5135
5152
  Qt as On,
5136
- ia as Or,
5137
- co as Ot,
5138
- Fo as P,
5153
+ Li as Or,
5154
+ ho as Ot,
5155
+ No as P,
5139
5156
  Jt as Pn,
5140
- Si as Pr,
5157
+ $t as Pr,
5141
5158
  Un as Pt,
5142
5159
  cs as Q,
5143
5160
  ya as Qn,
5144
- so as Qt,
5161
+ oo as Qt,
5145
5162
  Ks as R,
5146
5163
  ga as Rn,
5147
- Zr as Rr,
5164
+ He as Rr,
5148
5165
  kn as Rt,
5149
- zo as S,
5166
+ $o as S,
5150
5167
  Na as Sn,
5151
- la as Sr,
5168
+ _i as Sr,
5152
5169
  On as St,
5153
- Yo as T,
5170
+ Go as T,
5154
5171
  ba as Tn,
5155
- aa as Tr,
5172
+ Ci as Tr,
5156
5173
  Pn as Tt,
5157
5174
  js as U,
5158
5175
  De as Un,
5176
+ Ti as Ur,
5159
5177
  Rn as Ut,
5160
5178
  Xs as V,
5161
- zi as Vn,
5162
- Ti as Vr,
5179
+ $i as Vn,
5180
+ Ei as Vr,
5163
5181
  _r as Vt,
5164
- Do as W,
5165
- Ui as Wn,
5182
+ Fo as W,
5183
+ zi as Wn,
5184
+ ea as Wr,
5166
5185
  Sr as Wt,
5167
5186
  hs as X,
5168
- Oi as Xn,
5169
- ao as Xt,
5187
+ Vi as Xn,
5188
+ so as Xt,
5170
5189
  _s as Y,
5171
- Vi as Yn,
5190
+ Ui as Yn,
5172
5191
  wr as Yt,
5173
- _o as Z,
5192
+ Ro as Z,
5174
5193
  Xe as Zn,
5175
- no as Zt,
5176
- Ko as _,
5177
- Xi as _n,
5178
- Fi as _r,
5194
+ io as Zt,
5195
+ qo as _,
5196
+ Ji as _n,
5197
+ Kt as _r,
5179
5198
  Gn as _t,
5180
- sl as a,
5199
+ ol as a,
5181
5200
  Ka as an,
5182
- Z as ar,
5183
- wo as at,
5184
- jo as b,
5201
+ ee as ar,
5202
+ ko as at,
5203
+ Ko as b,
5185
5204
  ie as bn,
5186
- _i as br,
5187
- Eo as bt,
5188
- tl as c,
5205
+ b as br,
5206
+ wo as bt,
5207
+ al as c,
5189
5208
  Xa as cn,
5190
- H as cr,
5191
- ho as ct,
5192
- al as d,
5193
- eo as dn,
5194
- Ke as dr,
5195
- xo as dt,
5209
+ Ni as cr,
5210
+ po as ct,
5211
+ sl as d,
5212
+ ro as dn,
5213
+ ha as dr,
5214
+ Eo as dt,
5196
5215
  hn as en,
5197
- Ni as er,
5216
+ Bi as er,
5198
5217
  we as et,
5199
- il as f,
5218
+ ll as f,
5200
5219
  Ja as fn,
5201
- Di as fr,
5202
- Ao as ft,
5203
- Xo as g,
5204
- qi as gn,
5205
- fe as gr,
5206
- po as gt,
5207
- qo as h,
5220
+ Ht as fr,
5221
+ Mo as ft,
5222
+ Jo as g,
5223
+ Qi as gn,
5224
+ Xt as gr,
5225
+ go as gt,
5226
+ Qo as h,
5208
5227
  ja as hn,
5209
- Kt as hr,
5210
- yo as ht,
5211
- ol as i,
5212
- Qi as in,
5213
- ee as ir,
5228
+ y as hr,
5229
+ mo as ht,
5230
+ cl as i,
5231
+ eo as in,
5232
+ Pi as ir,
5214
5233
  es as it,
5215
- Oo as j,
5216
- Hi as jn,
5217
- oa as jr,
5234
+ Vo as j,
5235
+ Xi as jn,
5236
+ sa as jr,
5218
5237
  In as jt,
5219
- Bo as k,
5238
+ Wo as k,
5220
5239
  va as kn,
5221
- sa as kr,
5222
- lo as kt,
5223
- rl as l,
5224
- Zi as ln,
5225
- ha as lr,
5226
- mo as lt,
5227
- Jo as m,
5240
+ ue as kr,
5241
+ uo as kt,
5242
+ nl as l,
5243
+ to as ln,
5244
+ K as lr,
5245
+ vo as lt,
5246
+ Zo as m,
5228
5247
  Ha as mn,
5229
- Xt as mr,
5230
- bo as mt,
5231
- ul as n,
5248
+ Di as mr,
5249
+ Ao as mt,
5250
+ hl as n,
5232
5251
  sn as nn,
5233
- Pi as nr,
5234
- ko as nt,
5235
- Zo as o,
5252
+ Oi as nr,
5253
+ Lo as nt,
5254
+ tl as o,
5236
5255
  vr as on,
5237
- j as or,
5238
- fo as ot,
5239
- Qo as p,
5256
+ Z as or,
5257
+ yo as ot,
5258
+ el as p,
5240
5259
  tt as pn,
5241
- m as pr,
5242
- go as pt,
5260
+ Ke as pr,
5261
+ bo as pt,
5243
5262
  Ot as q,
5244
5263
  Y as qn,
5245
5264
  An as qt,
5246
- nl as r,
5265
+ il as r,
5247
5266
  oe as rn,
5248
5267
  Q as rr,
5249
- So as rt,
5250
- ll as s,
5251
- to as sn,
5252
- K as sr,
5268
+ _o as rt,
5269
+ ul as s,
5270
+ ao as sn,
5271
+ j as sr,
5253
5272
  $n as st,
5254
- cl as t,
5273
+ dl as t,
5255
5274
  Tr as tn,
5256
5275
  pa as tr,
5257
5276
  re as tt,
5258
- el as u,
5277
+ rl as u,
5259
5278
  qa as un,
5260
- Ht as ur,
5261
- vo as ut,
5262
- Ho as v,
5263
- Ki as vn,
5264
- b as vr,
5279
+ H as ur,
5280
+ xo as ut,
5281
+ Xo as v,
5282
+ qi as vn,
5283
+ fe as vr,
5265
5284
  rt as vt,
5266
- Uo as w,
5285
+ zo as w,
5267
5286
  Aa as wn,
5268
- na as wr,
5287
+ la as wr,
5269
5288
  Dn as wt,
5270
- $o as x,
5289
+ Ho as x,
5271
5290
  mr as xn,
5272
- $ as xr,
5273
- Mo as xt,
5274
- Go as y,
5275
- Ji as yn,
5276
- ua as yr,
5277
- To as yt,
5291
+ ua as xr,
5292
+ To as xt,
5293
+ jo as y,
5294
+ Zi as yn,
5295
+ Fi as yr,
5296
+ So as yt,
5278
5297
  qs as z,
5279
- Gi as zn,
5280
- Ei as zr,
5298
+ ji as zn,
5299
+ wi as zr,
5281
5300
  kr as zt
5282
5301
  };