@graphysdk/viz-engine 1.9.0-beta.1790103324329 → 1.9.0-beta.1790193879704

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.
@@ -1,13 +1,13 @@
1
- import { differenceInDays as Et, isBefore as kt, isValid as v, isWithinInterval as Tt, parse as Y } from "date-fns";
2
- import { isEqual as Mt, isInteger as _t } from "lodash-es";
3
- var ce = (e) => e instanceof Date && v(e), Sa = (e) => ce(e) || e === null, wa = (e) => typeof e == "string", St = (e) => typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e), La = (e) => St(e) || e === null, Pe = "\0graphy\0_", h = (e) => `${Pe}${e}`, Ue = { x: h("constantX") }, Da = {
1
+ import { differenceInDays as Tt, isBefore as kt, isValid as A, isWithinInterval as Mt, parse as j } from "date-fns";
2
+ import { isEqual as _t, isInteger as St } from "lodash-es";
3
+ var de = (e) => e instanceof Date && A(e), Na = (e) => de(e) || e === null, Ba = (e) => typeof e == "string", wt = (e) => typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e), Wa = (e) => wt(e) || e === null, Ue = "\0graphy\0_", h = (e) => `${Ue}${e}`, Ye = { x: h("constantX") }, Va = {
4
4
  bar: h("barSeriesLabel"),
5
5
  line: h("lineSeriesLabel")
6
- }, Ye = {
6
+ }, je = {
7
7
  count: h("count"),
8
8
  mean: h("mean"),
9
9
  sum: h("sum")
10
- }, wt = { group: h("group") }, Lt = {
10
+ }, Lt = { group: h("group") }, Dt = {
11
11
  x: h("x"),
12
12
  y: h("y"),
13
13
  xMin: h("xMin"),
@@ -15,61 +15,61 @@ var ce = (e) => e instanceof Date && v(e), Sa = (e) => ce(e) || e === null, wa =
15
15
  yMin: h("yMin"),
16
16
  yMax: h("yMax"),
17
17
  yRaw: h("yRaw")
18
- }, Dt = { role: h("stackRole") }, Ft = {
18
+ }, Ot = { role: h("stackRole") }, xt = {
19
19
  color: h("color"),
20
20
  size: h("size"),
21
21
  alpha: h("alpha"),
22
22
  strokeWidth: h("strokeWidth"),
23
23
  lineType: h("lineType")
24
- }, Ot = {
24
+ }, Ft = {
25
25
  y: h("ruleY"),
26
26
  x: h("ruleX")
27
- }, Fa = {
28
- ...Ue,
27
+ }, Pa = {
29
28
  ...Ye,
30
- ...wt,
29
+ ...je,
31
30
  ...Lt,
32
31
  ...Dt,
33
- ...Ft,
34
- ...Ot
35
- }, Rt = new Set(Object.values(Ye)), Oa = (e) => h(`scaled_${e}`), Ra = (e) => e.startsWith(Pe), xa = (e) => Rt.has(e), Ia = (e) => e.length > 0;
36
- function je(e) {
32
+ ...Ot,
33
+ ...xt,
34
+ ...Ft
35
+ }, Rt = new Set(Object.values(je)), Ua = (e) => h(`scaled_${e}`), Ya = (e) => e.startsWith(Ue), ja = (e) => Rt.has(e), za = (e) => e.length > 0;
36
+ function ze(e) {
37
37
  return e != null;
38
38
  }
39
- function Na(e) {
39
+ function Ha(e) {
40
40
  if (e === null || typeof e != "object") return !1;
41
41
  const t = Object.getPrototypeOf(e);
42
42
  return t === Object.prototype || t === null;
43
43
  }
44
- function Ca(e) {
44
+ function $a(e) {
45
45
  const { numeric: t, categorical: r, temporal: a } = e.groupVariableNamesByType();
46
46
  return a[0] ?? r[0] ?? t[0] ?? "";
47
47
  }
48
- function Ba(e, t) {
48
+ function Ga(e, t) {
49
49
  const { categorical: r, temporal: a } = e.groupVariableNamesByType(), n = [...r, ...a];
50
50
  return t === "" || n.includes(t) ? n : [t, ...n];
51
51
  }
52
- function Wa(e) {
53
- const t = ze(e.x);
54
- return t === null || t === Ue.x ? "" : t;
52
+ function Xa(e) {
53
+ const t = He(e.x);
54
+ return t === null || t === Ye.x ? "" : t;
55
55
  }
56
- function ze(e) {
57
- return je(e) ? typeof e == "string" ? e : "variable" in e ? e.variable : null : null;
56
+ function He(e) {
57
+ return ze(e) ? typeof e == "string" ? e : "variable" in e ? e.variable : null : null;
58
58
  }
59
- function xt(e) {
60
- if (!(!je(e) || typeof e == "string") && "value" in e)
59
+ function Ct(e) {
60
+ if (!(!ze(e) || typeof e == "string") && "value" in e)
61
61
  return e.value;
62
62
  }
63
- function Va(e, t) {
64
- return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((r) => me(e[r]) === me(t[r]));
63
+ function Ka(e, t) {
64
+ return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((r) => be(e[r]) === be(t[r]));
65
65
  }
66
- function me(e) {
67
- const t = ze(e);
66
+ function be(e) {
67
+ const t = He(e);
68
68
  if (t !== null) return `variable:${t}`;
69
- const r = xt(e);
69
+ const r = Ct(e);
70
70
  return r === void 0 ? "" : r === null ? "value:null" : r instanceof Date ? `value:date:${r.getTime()}` : `value:${typeof r}:${r}`;
71
71
  }
72
- var Pa = [
72
+ var qa = [
73
73
  "stack",
74
74
  "dodge",
75
75
  "identity",
@@ -78,7 +78,7 @@ var Pa = [
78
78
  "solid",
79
79
  "dashed",
80
80
  "dotted"
81
- ], O = {
81
+ ], x = {
82
82
  line: {
83
83
  solid: [],
84
84
  dashed: [4, 2],
@@ -109,32 +109,32 @@ var Pa = [
109
109
  dashed: [1.5, 3],
110
110
  dotted: [0, 2]
111
111
  }
112
- }, Ua = (e) => It.includes(e);
113
- function Ya(e) {
112
+ }, Ja = (e) => It.includes(e);
113
+ function Qa(e) {
114
114
  return e === "stack" || e === "fill";
115
115
  }
116
- var he = "en-GB", $e = class extends Error {
116
+ var pe = "en-GB", $e = class extends Error {
117
117
  constructor(e) {
118
118
  super(e.message, e.cause !== void 0 ? { cause: e.cause } : void 0), this.name = new.target.name, this.code = e.code, this.context = e.context, this.suggestion = e.suggestion;
119
119
  }
120
- }, Q = class extends $e {
120
+ }, Z = class extends $e {
121
121
  constructor(e) {
122
122
  super(e), this.kind = "user-input";
123
123
  }
124
- }, k = class extends $e {
124
+ }, T = class extends $e {
125
125
  constructor(e) {
126
126
  super({
127
127
  ...e,
128
128
  code: e.code ?? "INTERNAL_INVARIANT"
129
129
  }), this.kind = "internal";
130
130
  }
131
- }, Ge = (e) => e.type === "lookup", Nt = (e) => e.type === "text", X = (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", Ct = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", ja = (e) => e.type === "currency", za = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", He = (e) => {
132
- if (Ge(e)) return He(e.fallback);
133
- if (X(e)) return "temporal";
134
- if (Ct(e)) return "numeric";
131
+ }, Ge = (e) => e.type === "lookup", Nt = (e) => e.type === "text", K = (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", Bt = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", Za = (e) => e.type === "currency", en = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", Xe = (e) => {
132
+ if (Ge(e)) return Xe(e.fallback);
133
+ if (K(e)) return "temporal";
134
+ if (Bt(e)) return "numeric";
135
135
  if (Nt(e)) return "categorical";
136
- throw new k({ message: `No data type found for value format: ${e.type}` });
137
- }, $a = (e) => Ge(e) ? e.fallback : e, Bt = class {
136
+ throw new T({ message: `No data type found for value format: ${e.type}` });
137
+ }, tn = (e) => Ge(e) ? e.fallback : e, Wt = class {
138
138
  constructor() {
139
139
  this.currentYear = (/* @__PURE__ */ new Date()).getUTCFullYear(), this.previousDate = null, this.previousYear = null;
140
140
  }
@@ -143,17 +143,17 @@ var he = "en-GB", $e = class extends Error {
143
143
  const t = new Date(e.getTime());
144
144
  return t.setUTCFullYear(this.previousYear), this.previousDate = t, t;
145
145
  }
146
- }, Wt = {
146
+ }, Vt = {
147
147
  k: 1e3,
148
148
  m: 1e6,
149
149
  b: 1e9,
150
150
  t: 1e12
151
- }, pe = [
151
+ }, ye = [
152
152
  "k",
153
153
  "m",
154
154
  "b",
155
155
  "t"
156
- ], Vt = new RegExp(`^-?(\\d{1,3}(,\\d{3})*|\\d+)\\.?\\d*(${pe.join("|")})?$`, "i"), Pt = /^-?\d{1,3}(?:,\d{3})*(?:\.\d+)?%?$/, N = (e) => e === null || e instanceof Date || Array.isArray(e) || typeof e == "boolean" ? !1 : typeof e == "string" ? Vt.test(e) && !Number.isNaN(Number(e.replace(new RegExp(`[,${pe.join("")}]`, "gi"), ""))) : !Number.isNaN(Number(e)), Xe = (e) => N(e) ? !0 : typeof e == "string" ? Pt.test(e) : !1, Ut = /^\d{4}-\d{2}-\d{2}(T|\s)\d{1,2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|\+00:00)?$/, Yt = /^\s*(1[89]\d{2}|2[01]\d{2})\s*$/, jt = [
156
+ ], Pt = new RegExp(`^-?(\\d{1,3}(,\\d{3})*|\\d+)\\.?\\d*(${ye.join("|")})?$`, "i"), Ut = /^-?\d{1,3}(?:,\d{3})*(?:\.\d+)?%?$/, I = (e) => e === null || e instanceof Date || Array.isArray(e) || typeof e == "boolean" ? !1 : typeof e == "string" ? Pt.test(e) && !Number.isNaN(Number(e.replace(new RegExp(`[,${ye.join("")}]`, "gi"), ""))) : !Number.isNaN(Number(e)), Ke = (e) => I(e) ? !0 : typeof e == "string" ? Ut.test(e) : !1, Yt = /^\d{4}-\d{2}-\d{2}(T|\s)\d{1,2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|\+00:00)?$/, jt = /^\s*(1[89]\d{2}|2[01]\d{2})\s*$/, zt = [
157
157
  [/\bJan\b/i, "January"],
158
158
  [/\bFeb\b/i, "February"],
159
159
  [/\bMar\b/i, "March"],
@@ -165,17 +165,17 @@ var he = "en-GB", $e = class extends Error {
165
165
  [/\bOct\b/i, "October"],
166
166
  [/\bNov\b/i, "November"],
167
167
  [/\bDec\b/i, "December"]
168
- ], zt = {
168
+ ], Ht = {
169
169
  "en-US": "MDY",
170
170
  "en-GB": "DMY",
171
171
  "pt-PT": "DMY",
172
172
  ar: "DMY"
173
- }, Ke = [
173
+ }, qe = [
174
174
  "/",
175
175
  "-",
176
176
  ".",
177
177
  " "
178
- ], be = [
178
+ ], ve = [
179
179
  [
180
180
  "d",
181
181
  "M",
@@ -246,7 +246,7 @@ var he = "en-GB", $e = class extends Error {
246
246
  "MMMM",
247
247
  "yyyy"
248
248
  ]
249
- ], ve = [
249
+ ], Ae = [
250
250
  [
251
251
  "M",
252
252
  "d",
@@ -317,7 +317,7 @@ var he = "en-GB", $e = class extends Error {
317
317
  "do",
318
318
  "yyyy"
319
319
  ]
320
- ], Ae = [
320
+ ], Ee = [
321
321
  [
322
322
  "yyyy",
323
323
  "M",
@@ -353,7 +353,7 @@ var he = "en-GB", $e = class extends Error {
353
353
  "MMMM",
354
354
  "do"
355
355
  ]
356
- ], qe = [
356
+ ], Je = [
357
357
  ["d", "MMMM"],
358
358
  ["dd", "MMMM"],
359
359
  ["do", "MMMM"],
@@ -377,72 +377,72 @@ var he = "en-GB", $e = class extends Error {
377
377
  dateFormat: "yyyy-MM",
378
378
  type: "month_year"
379
379
  }
380
- ], Je = 1800, Qe = 2199, Gt = 3, Ht = 6, Xt = 5, Kt = 1, qt = 28, Jt = /\s*[–—]\s*|\s-\s/, Qt = (e) => typeof e == "number" ? Number.isInteger(e) && e >= Je && e <= Qe : typeof e == "string" ? Yt.test(e) : !1, Ze = (e, t) => {
380
+ ], Qe = 1800, Ze = 2199, Gt = 3, Xt = 6, Kt = 5, qt = 1, Jt = 28, Qt = /\s*[–—]\s*|\s-\s/, Zt = (e) => typeof e == "number" ? Number.isInteger(e) && e >= Qe && e <= Ze : typeof e == "string" ? jt.test(e) : !1, et = (e, t) => {
381
381
  const r = G(e);
382
- return !t && N(r) ? rr(r) : typeof r == "string" ? t ? v(Y(r, t, /* @__PURE__ */ new Date())) : !!et(r) || Z(r) && v(new Date(r)) : v(r);
382
+ return !t && I(r) ? ar(r) : typeof r == "string" ? t ? A(j(r, t, /* @__PURE__ */ new Date())) : !!tt(r) || ee(r) && A(new Date(r)) : A(r);
383
383
  }, G = (e) => {
384
384
  if (typeof e != "string") return e;
385
385
  let t = e;
386
- for (const [r, a] of jt) t = t.replace(r, a);
386
+ for (const [r, a] of zt) t = t.replace(r, a);
387
387
  return t;
388
- }, et = (e, t = he) => {
388
+ }, tt = (e, t = pe) => {
389
389
  const r = G(e);
390
- return Z(r) ? { type: "datetime" } : tt(t).find((a) => !X(a) || a.type === "month" && r.length < Gt ? !1 : a.dateFormat && v(Y(r, a.dateFormat, /* @__PURE__ */ new Date())));
391
- }, Z = (e) => Ut.test(e.trim()), Zt = (e) => {
392
- if (e instanceof Date) return v(e) ? e : null;
393
- if (typeof e != "string" || !Z(e)) return null;
390
+ return ee(r) ? { type: "datetime" } : rt(t).find((a) => !K(a) || a.type === "month" && r.length < Gt ? !1 : a.dateFormat && A(j(r, a.dateFormat, /* @__PURE__ */ new Date())));
391
+ }, ee = (e) => Yt.test(e.trim()), er = (e) => {
392
+ if (e instanceof Date) return A(e) ? e : null;
393
+ if (typeof e != "string" || !ee(e)) return null;
394
394
  const t = new Date(e.trim());
395
- return v(t) ? t : null;
396
- }, er = (e, t = he) => {
397
- const [r, a] = e.split(Jt);
395
+ return A(t) ? t : null;
396
+ }, tr = (e, t = pe) => {
397
+ const [r, a] = e.split(Qt);
398
398
  if (!r || !a) return;
399
399
  const n = G(r).trim(), s = G(a).trim();
400
- return tr(t).find((o) => {
401
- if (!X(o) || !o.dateFormat) return !1;
402
- const i = Y(n, o.dateFormat, /* @__PURE__ */ new Date()), l = Y(s, o.dateFormat, /* @__PURE__ */ new Date());
403
- if (!v(i) || !v(l)) return !1;
404
- const d = new Bt(), f = d.incrementYearIfNeeded(i), m = d.incrementYearIfNeeded(l), u = Et(m, f);
405
- return Tt(new Date(f.getFullYear(), Kt, qt), {
400
+ return rr(t).find((o) => {
401
+ if (!K(o) || !o.dateFormat) return !1;
402
+ const i = j(n, o.dateFormat, /* @__PURE__ */ new Date()), l = j(s, o.dateFormat, /* @__PURE__ */ new Date());
403
+ if (!A(i) || !A(l)) return !1;
404
+ const d = new Wt(), f = d.incrementYearIfNeeded(i), b = d.incrementYearIfNeeded(l), u = Tt(b, f);
405
+ return Mt(new Date(f.getFullYear(), qt, Jt), {
406
406
  start: f,
407
- end: m
408
- }) && u === Xt ? !0 : u === Ht;
407
+ end: b
408
+ }) && u === Kt ? !0 : u === Xt;
409
409
  });
410
- }, tt = (e) => {
410
+ }, rt = (e) => {
411
411
  const t = {
412
- date: rt(e),
412
+ date: at(e),
413
413
  year: [["yyyy"]],
414
- day_month: qe,
414
+ day_month: Je,
415
415
  month_year: [["MMMM", "yyyy"], ["yyyy", "MMMM"]],
416
416
  month: [["MMMM"]],
417
417
  quarter: [["QQQ", "yyyy"], ["yyyy", "QQQ"]]
418
418
  };
419
- return [...$t, ...Object.entries(t).flatMap(([r, a]) => a.flatMap((n) => Ke.map((s) => ({
419
+ return [...$t, ...Object.entries(t).flatMap(([r, a]) => a.flatMap((n) => qe.map((s) => ({
420
420
  dateFormat: n.join(s),
421
421
  type: r
422
422
  }))))];
423
- }, rt = (e) => zt[e] === "MDY" ? [
423
+ }, at = (e) => Ht[e] === "MDY" ? [
424
+ ...Ae,
424
425
  ...ve,
425
- ...be,
426
- ...Ae
426
+ ...Ee
427
427
  ] : [
428
- ...be,
429
428
  ...ve,
430
- ...Ae
431
- ], tr = (e) => {
429
+ ...Ae,
430
+ ...Ee
431
+ ], rr = (e) => {
432
432
  const t = {
433
- weekly_date_range: qe,
434
- weekly_date_range_with_year: rt(e)
433
+ weekly_date_range: Je,
434
+ weekly_date_range_with_year: at(e)
435
435
  };
436
- return Object.entries(t).flatMap(([r, a]) => a.flatMap((n) => Ke.map((s) => ({
436
+ return Object.entries(t).flatMap(([r, a]) => a.flatMap((n) => qe.map((s) => ({
437
437
  dateFormat: n.join(s),
438
438
  type: r
439
439
  }))));
440
- }, rr = (e) => {
440
+ }, ar = (e) => {
441
441
  const t = Number(e);
442
- if (!_t(t)) return !1;
443
- const r = new Date(t), a = /* @__PURE__ */ new Date(t * 1e3), n = (s) => v(s) && s.getFullYear() >= Je && s.getFullYear() <= Qe;
442
+ if (!St(t)) return !1;
443
+ const r = new Date(t), a = /* @__PURE__ */ new Date(t * 1e3), n = (s) => A(s) && s.getFullYear() >= Qe && s.getFullYear() <= Ze;
444
444
  return n(r) || n(a);
445
- }, at = {
445
+ }, nt = {
446
446
  $: "usd",
447
447
  "£": "gbp",
448
448
  "€": "eur",
@@ -474,38 +474,38 @@ var he = "en-GB", $e = class extends Error {
474
474
  C$: "cad",
475
475
  NZ$: "nzd",
476
476
  MX$: "mxn"
477
- }, nt = (e) => {
477
+ }, st = (e) => {
478
478
  if (typeof e == "string") {
479
- const t = st(e);
480
- return t.length ? N(t) : !1;
479
+ const t = ot(e);
480
+ return t.length ? I(t) : !1;
481
481
  }
482
- return N(e);
483
- }, ar = (e) => {
484
- const t = ot(e), r = t ? at[t] : void 0;
485
- if (!r) throw new k({ message: "Could not get currency ISO" });
482
+ return I(e);
483
+ }, nr = (e) => {
484
+ const t = it(e), r = t ? nt[t] : void 0;
485
+ if (!r) throw new T({ message: "Could not get currency ISO" });
486
486
  return r;
487
- }, st = (e) => {
488
- const t = ot(e);
487
+ }, ot = (e) => {
488
+ const t = it(e);
489
489
  let r = e;
490
490
  if (t) {
491
491
  const a = e.indexOf(t);
492
492
  a === 0 ? r = e.slice(t.length) : a === e.length - t.length ? r = e.slice(0, e.length - t.length) : e[0] === "-" && a === 1 && (r = `-${e.slice(t.length + 1)}`);
493
493
  }
494
- return N(r) ? r.split(",").join("") : "";
495
- }, ot = (e) => Object.keys(at).sort((t, r) => r.length - t.length).find((t) => e.includes(t)), it = (e) => {
494
+ return I(r) ? r.split(",").join("") : "";
495
+ }, it = (e) => Object.keys(nt).sort((t, r) => r.length - t.length).find((t) => e.includes(t)), lt = (e) => {
496
496
  const t = Object.entries(e);
497
- return !t.length || !t.some(([, r]) => !j(r));
498
- }, j = (e) => typeof e == "string" && e.trim() === "" || e === void 0 || e === null || e === "-", nr = /\s*[–—]\s*|\s-\s/, lt = (e, t, r) => {
499
- if (j(e)) return null;
497
+ return !t.length || !t.some(([, r]) => !z(r));
498
+ }, z = (e) => typeof e == "string" && e.trim() === "" || e === void 0 || e === null || e === "-", sr = /\s*[–—]\s*|\s-\s/, ct = (e, t, r) => {
499
+ if (z(e)) return null;
500
500
  switch (t.type) {
501
501
  case "decimal":
502
502
  case "integer":
503
503
  case "duration":
504
- return dt(e);
504
+ return ut(e);
505
505
  case "percentage":
506
- return sr(e);
507
- case "currency":
508
506
  return or(e);
507
+ case "currency":
508
+ return ir(e);
509
509
  case "datetime":
510
510
  case "date":
511
511
  case "year":
@@ -514,78 +514,78 @@ var he = "en-GB", $e = class extends Error {
514
514
  case "day_month":
515
515
  case "quarter":
516
516
  case "time":
517
- return ct(e, t.dateFormat, r);
517
+ return dt(e, t.dateFormat, r);
518
518
  case "weekly_date_range":
519
519
  case "weekly_date_range_with_year":
520
- return ir(e, t.dateFormat, r);
520
+ return lr(e, t.dateFormat, r);
521
521
  case "text":
522
- return lr(e);
522
+ return cr(e);
523
523
  case "lookup":
524
- throw new k({ message: "Cannot parse: lookup value formats are produced by transforms, not raw input" });
524
+ throw new T({ message: "Cannot parse: lookup value formats are produced by transforms, not raw input" });
525
525
  default:
526
- throw new k({ message: `Unhandled value format: ${t.type}` });
526
+ throw new T({ message: `Unhandled value format: ${t.type}` });
527
527
  }
528
- }, ct = (e, t, r) => {
529
- if (e instanceof Date) return v(e) ? e : null;
528
+ }, dt = (e, t, r) => {
529
+ if (e instanceof Date) return A(e) ? e : null;
530
530
  const a = G(String(e).trim());
531
531
  if (a.length === 0) return null;
532
532
  const n = /* @__PURE__ */ new Date();
533
533
  if (t) {
534
- const o = Y(a, t, n);
535
- return v(o) ? te(o) : null;
534
+ const o = j(a, t, n);
535
+ return A(o) ? re(o) : null;
536
536
  }
537
- for (const o of tt(r)) {
538
- if (!X(o) || !o.dateFormat) continue;
539
- const i = Y(a, o.dateFormat, n);
540
- if (v(i)) return te(i);
537
+ for (const o of rt(r)) {
538
+ if (!K(o) || !o.dateFormat) continue;
539
+ const i = j(a, o.dateFormat, n);
540
+ if (A(i)) return re(i);
541
541
  }
542
542
  const s = new Date(a);
543
- return Ze(s) ? Z(a) ? s : te(s) : null;
544
- }, dt = (e) => {
543
+ return et(s) ? ee(a) ? s : re(s) : null;
544
+ }, ut = (e) => {
545
545
  if (typeof e == "number") return Number.isNaN(e) ? null : e;
546
546
  if (typeof e != "string") return null;
547
547
  let t = e.trim();
548
- if (!N(t)) return null;
548
+ if (!I(t)) return null;
549
549
  let r = 1;
550
- for (const a of pe) if (new RegExp(`${a}$`, "i").test(t)) {
551
- r = Wt[a], t = t.slice(0, -1);
550
+ for (const a of ye) if (new RegExp(`${a}$`, "i").test(t)) {
551
+ r = Vt[a], t = t.slice(0, -1);
552
552
  break;
553
553
  }
554
554
  return Number(t.split(",").join("")) * r;
555
- }, sr = (e) => {
555
+ }, or = (e) => {
556
556
  if (typeof e == "number") return Number.isNaN(e) ? null : e;
557
557
  if (typeof e != "string") return null;
558
558
  const t = e.trim();
559
- if (!Xe(t)) return null;
559
+ if (!Ke(t)) return null;
560
560
  const r = Number(t.replace(/%/g, "").replace(/,/g, "")) / 100;
561
561
  return Number.isNaN(r) ? null : r;
562
- }, or = (e) => {
562
+ }, ir = (e) => {
563
563
  if (typeof e == "number") return Number.isNaN(e) ? null : e;
564
564
  if (typeof e != "string") return null;
565
565
  const t = e.trim();
566
- return nt(t) ? dt(st(t)) : null;
567
- }, ir = (e, t, r) => {
568
- const a = String(e).trim().split(nr), [n, s] = [a[0]?.trim(), a[1]?.trim()];
569
- return !n || !s ? null : ct(n, t, r);
570
- }, lr = (e) => String(e).trim(), te = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())), cr = (e, t, r) => {
566
+ return st(t) ? ut(ot(t)) : null;
567
+ }, lr = (e, t, r) => {
568
+ const a = String(e).trim().split(sr), [n, s] = [a[0]?.trim(), a[1]?.trim()];
569
+ return !n || !s ? null : dt(n, t, r);
570
+ }, cr = (e) => String(e).trim(), re = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())), dr = (e, t, r) => {
571
571
  if (t.type === "text" && typeof e == "string") return e;
572
- const a = lt(e, t, r);
573
- return a !== null || !X(t) ? a : Zt(e);
574
- }, U = process.env.NODE_ENV !== "production";
575
- var ee = !0, Ga = (e) => {
576
- ee = e;
577
- }, Ha = () => ee, Xa = () => {
572
+ const a = ct(e, t, r);
573
+ return a !== null || !K(t) ? a : er(e);
574
+ }, Y = process.env.NODE_ENV !== "production";
575
+ var te = !0, rn = (e) => {
576
+ te = e;
577
+ }, an = () => te, nn = () => {
578
578
  let e = null;
579
579
  const t = {
580
580
  hits: 0,
581
581
  misses: 0
582
582
  };
583
583
  return Object.assign((a, n) => {
584
- if (!ee)
585
- return U && (t.misses += 1), n();
586
- if (e && ut(e.args, a))
587
- return U && (t.hits += 1), e.out;
588
- U && (t.misses += 1);
584
+ if (!te)
585
+ return Y && (t.misses += 1), n();
586
+ if (e && ft(e.args, a))
587
+ return Y && (t.hits += 1), e.out;
588
+ Y && (t.misses += 1);
589
589
  const s = n();
590
590
  return e = {
591
591
  args: a,
@@ -597,21 +597,21 @@ var ee = !0, Ga = (e) => {
597
597
  e = null;
598
598
  }
599
599
  });
600
- }, dr = () => {
600
+ }, ur = () => {
601
601
  const e = /* @__PURE__ */ new WeakMap(), t = {
602
602
  hits: 0,
603
603
  misses: 0
604
604
  };
605
605
  return Object.assign((a, n, s) => {
606
- if (!ee)
607
- return U && (t.misses += 1), s();
606
+ if (!te)
607
+ return Y && (t.misses += 1), s();
608
608
  const o = e.get(a);
609
609
  if (o) for (let l = 0; l < o.length; l += 1) {
610
610
  const d = o[l];
611
- if (d && ut(d.args, n))
612
- return U && (t.hits += 1), l > 0 && (o.splice(l, 1), o.unshift(d)), d.out;
611
+ if (d && ft(d.args, n))
612
+ return Y && (t.hits += 1), l > 0 && (o.splice(l, 1), o.unshift(d)), d.out;
613
613
  }
614
- U && (t.misses += 1);
614
+ Y && (t.misses += 1);
615
615
  const i = s();
616
616
  return o ? (o.unshift({
617
617
  args: n,
@@ -621,19 +621,19 @@ var ee = !0, Ga = (e) => {
621
621
  out: i
622
622
  }]), i;
623
623
  }, { stats: t });
624
- }, Ka = (...e) => e.reduce((t, r) => ({
624
+ }, sn = (...e) => e.reduce((t, r) => ({
625
625
  hits: t.hits + r.hits,
626
626
  misses: t.misses + r.misses
627
627
  }), {
628
628
  hits: 0,
629
629
  misses: 0
630
- }), ut = (e, t) => {
630
+ }), ft = (e, t) => {
631
631
  if (e.length !== t.length) return !1;
632
632
  for (let r = 0; r < e.length; r += 1) if (e[r] !== t[r]) return !1;
633
633
  return !0;
634
- }, ur = class {
634
+ }, fr = class {
635
635
  constructor() {
636
- this.memo = dr(), this.singletonKey = {};
636
+ this.memo = ur(), this.singletonKey = {};
637
637
  }
638
638
  get stats() {
639
639
  return this.memo.stats;
@@ -644,53 +644,53 @@ var ee = !0, Ga = (e) => {
644
644
  key(e) {
645
645
  return this.singletonKey;
646
646
  }
647
- }, de = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), qa = (e, t) => e === t ? !0 : ce(e) && ce(t) ? e.getTime() === t.getTime() : !1, fr = /* @__PURE__ */ new Set([
647
+ }, ue = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), on = (e, t) => e === t ? !0 : de(e) && de(t) ? e.getTime() === t.getTime() : !1, hr = /* @__PURE__ */ new Set([
648
648
  "count",
649
649
  "sum",
650
650
  "mean",
651
651
  "median"
652
652
  ]);
653
- function ft(e, t) {
654
- return fr.has(e) ? "numeric" : t;
653
+ function ht(e, t) {
654
+ return hr.has(e) ? "numeric" : t;
655
655
  }
656
- function ht(e, t, r) {
656
+ function pt(e, t, r) {
657
657
  const a = r?.length ?? t.length;
658
658
  if (e === "count") return a;
659
659
  if (e === "median" || e === "mode") {
660
660
  const o = [];
661
661
  for (let i = 0; i < a; i++) {
662
- const l = re(t, r, i);
663
- ae(l) && o.push(l);
662
+ const l = ae(t, r, i);
663
+ ne(l) && o.push(l);
664
664
  }
665
- return o.length === 0 ? null : e === "median" ? yr(o) : gr(o);
665
+ return o.length === 0 ? null : e === "median" ? gr(o) : mr(o);
666
666
  }
667
667
  if (e === "sum" || e === "mean") {
668
668
  let o = 0, i = 0;
669
669
  for (let l = 0; l < a; l++) {
670
- const d = re(t, r, l);
671
- ae(d) && (o++, i += Number(d));
670
+ const d = ae(t, r, l);
671
+ ne(d) && (o++, i += Number(d));
672
672
  }
673
673
  return o === 0 ? null : e === "sum" ? i : i / o;
674
674
  }
675
675
  const n = e === "min" ? -1 : 1;
676
676
  let s = null;
677
677
  for (let o = 0; o < a; o++) {
678
- const i = re(t, r, o);
679
- ae(i) && (s === null || hr(i, s) === n) && (s = i);
678
+ const i = ae(t, r, o);
679
+ ne(i) && (s === null || pr(i, s) === n) && (s = i);
680
680
  }
681
681
  return s;
682
682
  }
683
- var re = (e, t, r) => e[t?.[r] ?? r] ?? null, ae = (e) => e !== null && !(typeof e == "number" && Number.isNaN(e)), hr = (e, t) => e === null || t === null ? 0 : e < t ? -1 : e > t ? 1 : 0, pr = (e) => e instanceof Date ? e.getTime() : e ?? null;
684
- function yr(e) {
683
+ var ae = (e, t, r) => e[t?.[r] ?? r] ?? null, ne = (e) => e !== null && !(typeof e == "number" && Number.isNaN(e)), pr = (e, t) => e === null || t === null ? 0 : e < t ? -1 : e > t ? 1 : 0, yr = (e) => e instanceof Date ? e.getTime() : e ?? null;
684
+ function gr(e) {
685
685
  const t = e.map(Number).sort((s, o) => s - o);
686
686
  if (t.length === 1) return t[0] ?? 0;
687
687
  const r = (t.length - 1) / 2, a = Math.floor(r), n = t[a] ?? 0;
688
688
  return n + ((t[a + 1] ?? n) - n) * (r - a);
689
689
  }
690
- function gr(e) {
690
+ function mr(e) {
691
691
  const t = /* @__PURE__ */ new Map();
692
692
  for (const n of e) {
693
- const s = pr(n), o = t.get(s);
693
+ const s = yr(n), o = t.get(s);
694
694
  o === void 0 ? t.set(s, {
695
695
  value: n,
696
696
  count: 1
@@ -700,7 +700,7 @@ function gr(e) {
700
700
  for (const { value: n, count: s } of t.values()) s > a && (a = s, r = n);
701
701
  return r;
702
702
  }
703
- var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) => e instanceof Date ? e.getTime() : e ?? null, ue = class x {
703
+ var br = (e) => e == null || typeof e == "number" && Number.isNaN(e), vr = (e) => e instanceof Date ? e.getTime() : e ?? null, fe = class R {
704
704
  constructor(t, r, a, n = null) {
705
705
  this.rowShape = null, this.names = t, this.columns = r, this.rowCount = a, this.source = n;
706
706
  }
@@ -709,7 +709,7 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
709
709
  }
710
710
  static from(t) {
711
711
  const r = Object.entries(t);
712
- return new x(r.map(([a]) => a), new Map(r), r[0]?.[1].length ?? 0);
712
+ return new R(r.map(([a]) => a), new Map(r), r[0]?.[1].length ?? 0);
713
713
  }
714
714
  columnNames() {
715
715
  return [...this.names];
@@ -731,7 +731,7 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
731
731
  const a = this.gathered(), n = new Map(a.columns);
732
732
  n.set(t, r);
733
733
  const s = a.names.includes(t) ? [...a.names] : [...a.names, t];
734
- return new x(s, n, a.names.length === 0 ? r.length : a.rowCount);
734
+ return new R(s, n, a.names.length === 0 ? r.length : a.rowCount);
735
735
  }
736
736
  select(t) {
737
737
  const r = t.filter((n) => this.names.includes(n)), a = /* @__PURE__ */ new Map();
@@ -739,7 +739,7 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
739
739
  const s = this.columns.get(n);
740
740
  s !== void 0 && a.set(n, s);
741
741
  }
742
- return new x(r, a, this.rowCount, this.source);
742
+ return new R(r, a, this.rowCount, this.source);
743
743
  }
744
744
  rename(t, r) {
745
745
  const a = this.gathered(), n = /* @__PURE__ */ new Map();
@@ -747,7 +747,7 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
747
747
  const o = a.columns.get(s);
748
748
  o !== void 0 && n.set(s === t ? r : s, o);
749
749
  }
750
- return new x(a.names.map((s) => s === t ? r : s), n, a.rowCount);
750
+ return new R(a.names.map((s) => s === t ? r : s), n, a.rowCount);
751
751
  }
752
752
  take(t) {
753
753
  const r = this.source === null ? {
@@ -757,13 +757,13 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
757
757
  table: this.source.table,
758
758
  indices: t.map((a) => this.source?.indices[a] ?? 0)
759
759
  };
760
- return new x(this.names, /* @__PURE__ */ new Map(), t.length, r);
760
+ return new R(this.names, /* @__PURE__ */ new Map(), t.length, r);
761
761
  }
762
762
  sortedIndices(t, r) {
763
763
  const a = this.values(t);
764
764
  if (a === void 0) return Array.from({ length: this.rowCount }, (i, l) => l);
765
765
  const n = [], s = [];
766
- for (let i = 0; i < this.rowCount; i++) (mr(a[i]) ? n : s).push(i);
766
+ for (let i = 0; i < this.rowCount; i++) (br(a[i]) ? n : s).push(i);
767
767
  const o = r === "asc" ? 1 : -1;
768
768
  return s.sort((i, l) => {
769
769
  const d = a[i], f = a[l];
@@ -774,16 +774,16 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
774
774
  const r = t.map((s) => this.values(s)).filter((s) => s !== void 0), a = r.length === 1 ? r[0] : void 0, n = /* @__PURE__ */ new Map();
775
775
  if (a !== void 0) {
776
776
  for (let s = 0; s < this.rowCount; s++) {
777
- const o = br(a[s]), i = n.get(o);
777
+ const o = vr(a[s]), i = n.get(o);
778
778
  i === void 0 ? n.set(o, {
779
- key: de(a[s] ?? null),
779
+ key: ue(a[s] ?? null),
780
780
  indices: [s]
781
781
  }) : i.indices.push(s);
782
782
  }
783
783
  return [...n.values()];
784
784
  }
785
785
  for (let s = 0; s < this.rowCount; s++) {
786
- const o = de(r.map((l) => l[s])), i = n.get(o);
786
+ const o = ue(r.map((l) => l[s])), i = n.get(o);
787
787
  i === void 0 ? n.set(o, {
788
788
  key: o,
789
789
  indices: [s]
@@ -799,16 +799,16 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
799
799
  })), i = t.map((u) => this.values(u) ?? []), l = new Array(s), d = new Array(s);
800
800
  let f = 0;
801
801
  for (let u = 0; u < this.rowCount; u++) for (let M = 0; M < t.length; M++, f++) {
802
- for (const C of o) C.repeated[f] = C.source[u] ?? null;
802
+ for (const N of o) N.repeated[f] = N.source[u] ?? null;
803
803
  l[f] = t[M] ?? "", d[f] = i[M]?.[u] ?? null;
804
804
  }
805
- const m = /* @__PURE__ */ new Map();
806
- for (const { name: u, repeated: M } of o) m.set(u, M);
807
- return m.set(r, l), m.set(a, d), new x([
805
+ const b = /* @__PURE__ */ new Map();
806
+ for (const { name: u, repeated: M } of o) b.set(u, M);
807
+ return b.set(r, l), b.set(a, d), new R([
808
808
  ...n,
809
809
  r,
810
810
  a
811
- ], m, s);
811
+ ], b, s);
812
812
  }
813
813
  objectAt(t) {
814
814
  const { names: r, arrays: a, template: n } = this.rowShape ?? this.resolveRowShape(), s = { ...n };
@@ -830,32 +830,32 @@ var mr = (e) => e == null || typeof e == "number" && Number.isNaN(e), br = (e) =
830
830
  gathered() {
831
831
  if (this.source === null) return this;
832
832
  for (const t of this.names) this.values(t);
833
- return new x(this.names, new Map(this.columns), this.rowCount);
833
+ return new R(this.names, new Map(this.columns), this.rowCount);
834
834
  }
835
835
  };
836
- var vr = "value", $ = {
836
+ var Ar = "value", $ = {
837
837
  numeric: { type: "decimal" },
838
838
  categorical: { type: "text" },
839
839
  temporal: { type: "datetime" }
840
- }, Ee = {
840
+ }, Te = {
841
841
  eq: (e, t) => e === t,
842
842
  neq: (e, t) => e !== t,
843
843
  gt: (e, t) => e !== null && t !== null && e > t,
844
844
  gte: (e, t) => e !== null && t !== null && e >= t,
845
845
  lt: (e, t) => e !== null && t !== null && e < t,
846
846
  lte: (e, t) => e !== null && t !== null && e <= t
847
- }, ke = (e) => e === null ? null : e instanceof Date ? e.getTime() : new Date(e).getTime(), pt = (e, t) => e === "count" ? { type: "integer" } : t, yt = (e, t, r) => {
847
+ }, ke = (e) => e === null ? null : e instanceof Date ? e.getTime() : new Date(e).getTime(), yt = (e, t) => e === "count" ? { type: "integer" } : t, gt = (e, t, r) => {
848
848
  const a = e.values(t);
849
849
  if (a !== void 0) return a;
850
850
  if (r === "count") return new Array(e.rowCount);
851
- throw new k({ message: `Variable '${t}' not defined` });
852
- }, fe = class b {
851
+ throw new T({ message: `Variable '${t}' not defined` });
852
+ }, he = class v {
853
853
  constructor(t = {}) {
854
854
  const { table: r, variableMetadata: a } = this.parseVariableMap(t);
855
855
  this.table = r, this.variableMetadata = a;
856
856
  }
857
857
  static fromTrusted(t, r) {
858
- const a = Object.create(b.prototype);
858
+ const a = Object.create(v.prototype);
859
859
  return a.table = t, a.variableMetadata = r, a;
860
860
  }
861
861
  size() {
@@ -868,7 +868,7 @@ var vr = "value", $ = {
868
868
  return this.table.hasColumn(t);
869
869
  }
870
870
  addVariable(t, r, a, n) {
871
- if (this.table.columnCount > 0 && a.length !== this.size()) throw new k({ message: `Variable '${t}' has ${a.length} values, expected ${this.size()}` });
871
+ if (this.table.columnCount > 0 && a.length !== this.size()) throw new T({ message: `Variable '${t}' has ${a.length} values, expected ${this.size()}` });
872
872
  const s = {
873
873
  ...this.variableMetadata,
874
874
  [t]: {
@@ -876,7 +876,7 @@ var vr = "value", $ = {
876
876
  valueFormat: this.resolveAddedVariableFormat(t, r, n)
877
877
  }
878
878
  }, o = this.normalizeRawValues(r, a), i = this.table.assign(t, o);
879
- return b.fromTrusted(i, s);
879
+ return v.fromTrusted(i, s);
880
880
  }
881
881
  addConstantVariable(t, r, a, n) {
882
882
  const s = {
@@ -887,7 +887,7 @@ var vr = "value", $ = {
887
887
  constant: { value: a }
888
888
  }
889
889
  }, [o = null] = this.normalizeRawValues(r, [a]), i = this.table.assign(t, new Array(this.size()).fill(o));
890
- return b.fromTrusted(i, s);
890
+ return v.fromTrusted(i, s);
891
891
  }
892
892
  getConstant(t) {
893
893
  return this.variableMetadata[t]?.constant;
@@ -902,25 +902,25 @@ var vr = "value", $ = {
902
902
  }
903
903
  renameVariable(t, r) {
904
904
  const a = this.variableMetadata[t];
905
- if (!a) throw new k({ message: `Variable ${t} not defined` });
905
+ if (!a) throw new T({ message: `Variable ${t} not defined` });
906
906
  const n = this.table.rename(t, r), { [t]: s, ...o } = this.variableMetadata, i = {
907
907
  ...o,
908
908
  [r]: a
909
909
  };
910
- return b.fromTrusted(n, i);
910
+ return v.fromTrusted(n, i);
911
911
  }
912
912
  selectVariables(...t) {
913
913
  const r = this.table.select(t), a = Object.fromEntries(Object.entries(this.variableMetadata).filter(([n]) => t.includes(n)));
914
- return b.fromTrusted(r, a);
914
+ return v.fromTrusted(r, a);
915
915
  }
916
916
  getType(t) {
917
917
  const r = this.variableMetadata[t];
918
- if (!r) throw new k({ message: `Variable ${t} not defined` });
918
+ if (!r) throw new T({ message: `Variable ${t} not defined` });
919
919
  return r.type;
920
920
  }
921
921
  getValueFormat(t) {
922
922
  const r = this.variableMetadata[t];
923
- if (!r) throw new k({ message: `Variable ${t} not defined` });
923
+ if (!r) throw new T({ message: `Variable ${t} not defined` });
924
924
  return r.valueFormat;
925
925
  }
926
926
  groupVariableNamesByType() {
@@ -933,33 +933,33 @@ var vr = "value", $ = {
933
933
  return t;
934
934
  }
935
935
  getValues(t, r) {
936
- if (!this.hasVariable(t)) throw new k({ message: `Variable '${t}' not defined` });
936
+ if (!this.hasVariable(t)) throw new T({ message: `Variable '${t}' not defined` });
937
937
  const a = this.getType(t);
938
938
  if (r?.type !== void 0 && a !== r.type) {
939
939
  if (this.size() === 0) return [];
940
- throw new k({ message: `Variable '${t}' has type '${a}', expected '${r.type}'` });
940
+ throw new T({ message: `Variable '${t}' has type '${a}', expected '${r.type}'` });
941
941
  }
942
942
  let n = this.table.values(t) ?? [];
943
943
  return r?.distinct && (n = this.getDistinctValues(a, n)), r?.skipNulls && (n = this.skipNulls(n)), n;
944
944
  }
945
945
  filter(t, r, a) {
946
946
  if (this.hasVariable(t) && this.getType(t) === "temporal") return this.filterByTimestamp(t, r, a);
947
- const n = Ee[r], s = this.table.values(t) ?? [], o = [];
947
+ const n = Te[r], s = this.table.values(t) ?? [], o = [];
948
948
  for (let i = 0; i < s.length; i++) n(s[i] ?? null, a) && o.push(i);
949
- return b.fromTrusted(this.table.take(o), this.variableMetadata);
949
+ return v.fromTrusted(this.table.take(o), this.variableMetadata);
950
950
  }
951
951
  filterByMask(t) {
952
- if (t.length !== this.size()) throw new k({ message: `Row mask length ${t.length} does not match dataset size ${this.size()}` });
952
+ if (t.length !== this.size()) throw new T({ message: `Row mask length ${t.length} does not match dataset size ${this.size()}` });
953
953
  const r = [];
954
954
  for (let a = 0; a < t.length; a++) t[a] === 1 && r.push(a);
955
- return b.fromTrusted(this.table.take(r), this.variableMetadata);
955
+ return v.fromTrusted(this.table.take(r), this.variableMetadata);
956
956
  }
957
957
  take(t) {
958
- return b.fromTrusted(this.table.take(t), this.variableMetadata);
958
+ return v.fromTrusted(this.table.take(t), this.variableMetadata);
959
959
  }
960
960
  orderBy(t, r = "asc") {
961
961
  const a = this.table.take(this.table.sortedIndices(t, r));
962
- return b.fromTrusted(a, this.variableMetadata);
962
+ return v.fromTrusted(a, this.variableMetadata);
963
963
  }
964
964
  getAt(t) {
965
965
  return t < 0 || t >= this.size() ? null : this.table.objectAt(t);
@@ -986,33 +986,33 @@ var vr = "value", $ = {
986
986
  return null;
987
987
  }
988
988
  groupBy(...t) {
989
- return new Ar(t, this.table, this.variableMetadata);
989
+ return new Er(t, this.table, this.variableMetadata);
990
990
  }
991
991
  rollup(t) {
992
- const r = ue.from(Object.fromEntries(Object.entries(t).map(([n, { variableName: s, aggregation: o }]) => [n, [ht(o, yt(this.table, s, o))]]))), a = {};
992
+ const r = fe.from(Object.fromEntries(Object.entries(t).map(([n, { variableName: s, aggregation: o }]) => [n, [pt(o, gt(this.table, s, o))]]))), a = {};
993
993
  for (const [n, { variableName: s, aggregation: o }] of Object.entries(t)) {
994
994
  const i = this.variableMetadata[s], l = i?.type ?? "numeric", d = i?.valueFormat ?? $[l];
995
995
  a[n] = {
996
- type: ft(o, l),
997
- valueFormat: pt(o, d)
996
+ type: ht(o, l),
997
+ valueFormat: yt(o, d)
998
998
  };
999
999
  }
1000
- return b.fromTrusted(r, a);
1000
+ return v.fromTrusted(r, a);
1001
1001
  }
1002
- reshapeFromWideToLong({ keep: t, reshape: r, keyName: a = "key", valueName: n = vr } = {}) {
1002
+ reshapeFromWideToLong({ keep: t, reshape: r, keyName: a = "key", valueName: n = Ar } = {}) {
1003
1003
  const { numeric: s, categorical: o, temporal: i } = this.groupVariableNamesByType(), l = t ?? [...o, ...i], d = r ?? s.filter((u) => !l.includes(u));
1004
- if (l.includes(a) || l.includes(n)) throw new Q({
1004
+ if (l.includes(a) || l.includes(n)) throw new Z({
1005
1005
  code: "INVALID_DATA_SHAPE",
1006
1006
  message: `The variables to keep includes the variables '${a}' or '${n}' to create the key and value variables`
1007
1007
  });
1008
1008
  if (d.length === 0) {
1009
1009
  const u = {};
1010
1010
  for (const M of l) {
1011
- const C = this.variableMetadata[M];
1012
- C && (u[M] = {
1013
- type: C.type,
1011
+ const N = this.variableMetadata[M];
1012
+ N && (u[M] = {
1013
+ type: N.type,
1014
1014
  values: [],
1015
- valueFormat: C.valueFormat
1015
+ valueFormat: N.valueFormat
1016
1016
  });
1017
1017
  }
1018
1018
  return u[a] = {
@@ -1023,24 +1023,24 @@ var vr = "value", $ = {
1023
1023
  type: "numeric",
1024
1024
  values: [],
1025
1025
  valueFormat: { type: "decimal" }
1026
- }, new b(u);
1026
+ }, new v(u);
1027
1027
  }
1028
- if (d.filter((u) => this.variableMetadata[u]?.type !== "numeric").length > 0) throw new Q({
1028
+ if (d.filter((u) => this.variableMetadata[u]?.type !== "numeric").length > 0) throw new Z({
1029
1029
  code: "INVALID_DATA_SHAPE",
1030
1030
  message: "Only numeric variables can be reshaped"
1031
1031
  });
1032
- const f = this.table.select([...l, ...d]).fold(d, a, n), m = {};
1032
+ const f = this.table.select([...l, ...d]).fold(d, a, n), b = {};
1033
1033
  for (const u of l) {
1034
1034
  const M = this.variableMetadata[u];
1035
- M && (m[u] = M);
1035
+ M && (b[u] = M);
1036
1036
  }
1037
- return m[a] = {
1037
+ return b[a] = {
1038
1038
  type: "categorical",
1039
1039
  valueFormat: { type: "text" }
1040
- }, m[n] = {
1040
+ }, b[n] = {
1041
1041
  type: "numeric",
1042
- valueFormat: Er(this.variableMetadata, d, a)
1043
- }, b.fromTrusted(f, m);
1042
+ valueFormat: Tr(this.variableMetadata, d, a)
1043
+ }, v.fromTrusted(f, b);
1044
1044
  }
1045
1045
  print() {
1046
1046
  console.table(this.variableMetadata), console.table([...this.table]);
@@ -1049,9 +1049,9 @@ var vr = "value", $ = {
1049
1049
  return this.table[Symbol.iterator]();
1050
1050
  }
1051
1051
  filterByTimestamp(t, r, a) {
1052
- const n = Ee[r], s = cr(a, this.getValueFormat(t), he), o = ke(s ?? a), i = this.getValues(t, { type: "temporal" }), l = [];
1052
+ const n = Te[r], s = dr(a, this.getValueFormat(t), pe), o = ke(s ?? a), i = this.getValues(t, { type: "temporal" }), l = [];
1053
1053
  for (let d = 0; d < i.length; d++) n(ke(i[d] ?? null), o) && l.push(d);
1054
- return b.fromTrusted(this.table.take(l), this.variableMetadata);
1054
+ return v.fromTrusted(this.table.take(l), this.variableMetadata);
1055
1055
  }
1056
1056
  resolveAddedVariableFormat(t, r, a) {
1057
1057
  if (a !== void 0) return a;
@@ -1066,7 +1066,7 @@ var vr = "value", $ = {
1066
1066
  valueFormat: i ?? $[s]
1067
1067
  };
1068
1068
  return {
1069
- table: ue.from(r),
1069
+ table: fe.from(r),
1070
1070
  variableMetadata: a
1071
1071
  };
1072
1072
  }
@@ -1077,9 +1077,9 @@ var vr = "value", $ = {
1077
1077
  case "categorical":
1078
1078
  return r.map((a) => typeof a != "string" ? null : a);
1079
1079
  case "temporal":
1080
- return r.map((a) => !(a instanceof Date) || !v(a) ? null : a);
1080
+ return r.map((a) => !(a instanceof Date) || !A(a) ? null : a);
1081
1081
  default:
1082
- throw new k({ message: `Cannot normalize raw value of unknown type: ${t}` });
1082
+ throw new T({ message: `Cannot normalize raw value of unknown type: ${t}` });
1083
1083
  }
1084
1084
  }
1085
1085
  skipNulls(t) {
@@ -1093,13 +1093,13 @@ var vr = "value", $ = {
1093
1093
  }
1094
1094
  return s;
1095
1095
  }
1096
- }, Ar = class {
1096
+ }, Er = class {
1097
1097
  constructor(e, t, r) {
1098
1098
  this.groupedBy = e, this.table = t, this.variableMetadata = r;
1099
1099
  }
1100
1100
  forEach(e) {
1101
1101
  this.table.partition(this.groupedBy).forEach(({ key: t, indices: r }, a) => {
1102
- e(fe.fromTrusted(this.table.take(r), this.variableMetadata), t, a);
1102
+ e(he.fromTrusted(this.table.take(r), this.variableMetadata), t, a);
1103
1103
  });
1104
1104
  }
1105
1105
  rollup(e) {
@@ -1116,28 +1116,28 @@ var vr = "value", $ = {
1116
1116
  }];
1117
1117
  }));
1118
1118
  for (const [n, { variableName: s, aggregation: o }] of Object.entries(e)) {
1119
- const i = yt(this.table, s, o);
1120
- r[n] = t.map(({ indices: m }) => ht(o, i, m));
1119
+ const i = gt(this.table, s, o);
1120
+ r[n] = t.map(({ indices: b }) => pt(o, i, b));
1121
1121
  const l = this.variableMetadata[s], d = l?.type ?? "numeric", f = l?.valueFormat ?? $[d];
1122
1122
  a[n] = {
1123
- type: ft(o, d),
1124
- valueFormat: pt(o, f)
1123
+ type: ht(o, d),
1124
+ valueFormat: yt(o, f)
1125
1125
  };
1126
1126
  }
1127
- return fe.fromTrusted(ue.from(r), a);
1127
+ return he.fromTrusted(fe.from(r), a);
1128
1128
  }
1129
1129
  };
1130
- function Er(e, t, r) {
1130
+ function Tr(e, t, r) {
1131
1131
  const a = t.map((i) => e[i]?.valueFormat ?? { type: "decimal" }), [n, ...s] = a;
1132
1132
  if (!n) return { type: "decimal" };
1133
- for (const i of a) if (i.type === "lookup") throw new Q({
1133
+ for (const i of a) if (i.type === "lookup") throw new Z({
1134
1134
  code: "INVALID_DATA_SHAPE",
1135
1135
  message: "Cannot reshape: a source column has a lookup format and lookups cannot nest"
1136
1136
  });
1137
- if (s.every((i) => Mt(i, n)) || n.type === "lookup") return n;
1137
+ if (s.every((i) => _t(i, n)) || n.type === "lookup") return n;
1138
1138
  const o = {};
1139
1139
  for (const [i, l] of t.entries()) {
1140
- const d = de([l]), f = a[i];
1140
+ const d = ue([l]), f = a[i];
1141
1141
  f && f.type !== "lookup" && (o[d] = f);
1142
1142
  }
1143
1143
  return {
@@ -1157,7 +1157,7 @@ var kr = class {
1157
1157
  get(e) {
1158
1158
  if (!this.items.has(e)) {
1159
1159
  const t = [...this.items.keys()].map((r) => `'${r}'`).join(", ");
1160
- throw new Q({
1160
+ throw new Z({
1161
1161
  code: "UNKNOWN_REGISTERED_TYPE",
1162
1162
  message: `Unknown ${this.label}: '${e}' (available: ${t})`,
1163
1163
  context: {
@@ -1176,64 +1176,64 @@ var kr = class {
1176
1176
  has(e) {
1177
1177
  return this.items.has(e);
1178
1178
  }
1179
- }, Tr = (e, t) => {
1179
+ }, Mr = (e, t) => {
1180
1180
  const r = typeof e == "string" ? e.trim() : e;
1181
- if (N(r)) return { type: "decimal" };
1182
- const a = typeof r == "string" && et(r, t);
1181
+ if (I(r)) return { type: "decimal" };
1182
+ const a = typeof r == "string" && tt(r, t);
1183
1183
  if (a) return a;
1184
- const n = typeof r == "string" && er(r, t);
1185
- return n || (Ze(e) ? { type: "date" } : Xe(e) ? { type: "percentage" } : nt(e) && typeof e == "string" ? {
1184
+ const n = typeof r == "string" && tr(r, t);
1185
+ return n || (et(e) ? { type: "date" } : Ke(e) ? { type: "percentage" } : st(e) && typeof e == "string" ? {
1186
1186
  type: "currency",
1187
- iso: ar(e)
1187
+ iso: nr(e)
1188
1188
  } : { type: "text" });
1189
- }, Mr = {
1189
+ }, _r = {
1190
1190
  type: "year",
1191
1191
  dateFormat: "yyyy"
1192
- }, _r = { type: "text" }, Sr = (e) => {
1193
- const t = e._metadata?.parsingLocale ?? "en-GB", r = {}, a = Dr(e), n = wr(e), s = a.size > 0;
1192
+ }, Sr = { type: "text" }, wr = (e) => {
1193
+ const t = e._metadata?.parsingLocale ?? "en-GB", r = {}, a = Or(e), n = Lr(e), s = a.size > 0;
1194
1194
  for (const [o, i] of e.columns.entries()) {
1195
1195
  if (i._metadata?.isHidden) continue;
1196
1196
  const l = a.get(i.key);
1197
- if (j(l) && s) continue;
1198
- const d = i.valueFormat ?? (j(l) ? _r : o === n ? Mr : Tr(l, t)), f = He(d);
1199
- r[i.key] = Lr(i.key, e.rows, d, f, t);
1197
+ if (z(l) && s) continue;
1198
+ const d = i.valueFormat ?? (z(l) ? Sr : o === n ? _r : Mr(l, t)), f = Xe(d);
1199
+ r[i.key] = Dr(i.key, e.rows, d, f, t);
1200
1200
  }
1201
- return new fe(r);
1202
- }, Ja = class extends ur {
1201
+ return new he(r);
1202
+ }, ln = class extends fr {
1203
1203
  dependencies(e) {
1204
1204
  return [e];
1205
1205
  }
1206
1206
  run(e) {
1207
- return Sr(e);
1207
+ return wr(e);
1208
1208
  }
1209
- }, wr = (e) => {
1209
+ }, Lr = (e) => {
1210
1210
  if (e.columns.some((r) => r.valueFormat?.type === "year")) return -1;
1211
- const t = Fr(e.rows, 5);
1211
+ const t = xr(e.rows, 5);
1212
1212
  return e.columns.findIndex((r) => {
1213
1213
  if (r.valueFormat) return !1;
1214
- const a = t.map((n) => n[r.key]).filter((n) => !j(n));
1215
- return a.length >= 2 && a.every(Qt);
1214
+ const a = t.map((n) => n[r.key]).filter((n) => !z(n));
1215
+ return a.length >= 2 && a.every(Zt);
1216
1216
  });
1217
- }, Lr = (e, t, r, a, n) => ({
1217
+ }, Dr = (e, t, r, a, n) => ({
1218
1218
  type: a,
1219
- values: t.reduce((s, o) => (it(o) || s.push(lt(o[e], r, n)), s), []),
1219
+ values: t.reduce((s, o) => (lt(o) || s.push(ct(o[e], r, n)), s), []),
1220
1220
  valueFormat: r
1221
- }), Dr = (e) => {
1221
+ }), Or = (e) => {
1222
1222
  const t = /* @__PURE__ */ new Map(), r = new Set(e.columns.map((a) => a.key));
1223
1223
  for (const a of e.rows) {
1224
1224
  for (const n of r) {
1225
1225
  const s = a[n];
1226
- j(s) || (t.set(n, s), r.delete(n));
1226
+ z(s) || (t.set(n, s), r.delete(n));
1227
1227
  }
1228
1228
  if (r.size === 0) break;
1229
1229
  }
1230
1230
  return t;
1231
- }, Fr = (e, t) => {
1231
+ }, xr = (e, t) => {
1232
1232
  const r = [];
1233
1233
  for (const a of e)
1234
- if (it(a) || r.push(a), r.length === t) return r;
1234
+ if (lt(a) || r.push(a), r.length === t) return r;
1235
1235
  return r;
1236
- }, gt = [
1236
+ }, mt = [
1237
1237
  "none",
1238
1238
  "xs",
1239
1239
  "sm",
@@ -1241,15 +1241,15 @@ var kr = class {
1241
1241
  "lg",
1242
1242
  "xl",
1243
1243
  "full"
1244
- ], Qa = {
1244
+ ], cn = {
1245
1245
  point: Rr,
1246
- line: xr,
1246
+ line: Cr,
1247
1247
  area: Ir,
1248
1248
  bar: Nr,
1249
- rule: Cr,
1250
- tile: Br
1251
- }, Or = (e) => typeof e == "string" && gt.includes(e);
1252
- function z(e, t) {
1249
+ rule: Br,
1250
+ tile: Wr
1251
+ }, Fr = (e) => typeof e == "string" && mt.includes(e);
1252
+ function H(e, t) {
1253
1253
  return {
1254
1254
  type: "layer",
1255
1255
  id: t.id,
@@ -1265,37 +1265,76 @@ function z(e, t) {
1265
1265
  };
1266
1266
  }
1267
1267
  function Rr(e = {}) {
1268
- return z("point", e);
1268
+ return H("point", e);
1269
1269
  }
1270
- function xr(e = {}) {
1271
- return z("line", e);
1270
+ function Cr(e = {}) {
1271
+ return H("line", e);
1272
1272
  }
1273
1273
  function Ir(e = {}) {
1274
- return z("area", e);
1274
+ return H("area", e);
1275
1275
  }
1276
1276
  function Nr(e = {}) {
1277
- return z("bar", e);
1278
- }
1279
- function Cr(e = {}) {
1280
- return z("rule", e);
1277
+ return H("bar", e);
1281
1278
  }
1282
1279
  function Br(e = {}) {
1283
- return z("tile", e);
1280
+ return H("rule", e);
1281
+ }
1282
+ function Wr(e = {}) {
1283
+ return H("tile", e);
1284
1284
  }
1285
- var Za = ["dimmed", "hovered"], en = [
1285
+ var dn = ["dimmed", "hovered"], Vr = [
1286
+ "normal",
1287
+ "italic",
1288
+ "oblique"
1289
+ ], Pr = [
1290
+ "none",
1291
+ "uppercase",
1292
+ "lowercase",
1293
+ "capitalize"
1294
+ ], Ur = [
1295
+ "none",
1296
+ "underline",
1297
+ "line-through"
1298
+ ], Yr = [
1299
+ "butt",
1300
+ "round",
1301
+ "square"
1302
+ ], jr = [
1303
+ "miter",
1304
+ "round",
1305
+ "bevel"
1306
+ ], zr = [
1307
+ "normal",
1308
+ "multiply",
1309
+ "screen",
1310
+ "overlay",
1311
+ "darken",
1312
+ "lighten"
1313
+ ], un = [
1286
1314
  "fill",
1287
1315
  "stroke",
1288
1316
  "alpha",
1289
1317
  "saturation",
1318
+ "blur",
1319
+ "brightness",
1320
+ "contrast",
1290
1321
  "cornerRadius",
1291
1322
  "strokeWidth",
1292
1323
  "dashArray",
1324
+ "lineCap",
1325
+ "lineJoin",
1293
1326
  "strokeAlpha",
1294
1327
  "fillAlpha",
1295
1328
  "size",
1296
1329
  "fontFamily",
1297
1330
  "fontSize",
1298
1331
  "fontWeight",
1332
+ "fontStyle",
1333
+ "letterSpacing",
1334
+ "textTransform",
1335
+ "textDecoration",
1336
+ "textOutlineColor",
1337
+ "textOutlineWidth",
1299
1338
  "lineHeight",
1300
1339
  "textScale",
1301
1340
  "textColor",
@@ -1306,42 +1345,49 @@ var Za = ["dimmed", "hovered"], en = [
1306
1345
  "paddingBlock",
1307
1346
  "padding",
1308
1347
  "margin",
1309
- "shadow"
1310
- ], Te = 1, Me = 1e3, _e = "'none' or a shadow object { offsetX, offsetY, blur, color }", Se = "a non-negative number of pixels, or an object of those per edge", Wr = "a non-empty color string, a { light, dark } pair, or a token(...) reference", Vr = [
1348
+ "shadow",
1349
+ "blendMode"
1350
+ ], Me = 1, _e = 1e3, Se = "'none' or a shadow object { offsetX, offsetY, blur, color }", we = "a non-negative number of pixels, or an object of those per edge", Hr = "a non-empty color string, a { light, dark } pair, or a token(...) reference", $r = [
1311
1351
  "top",
1312
1352
  "right",
1313
1353
  "bottom",
1314
1354
  "left"
1315
- ], ye = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", Pr = (e) => typeof e == "object" && e !== null && typeof e.token == "string", Ur = (e) => typeof e == "string" ? e.trim().length > 0 : ye(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
1355
+ ], ge = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", Gr = (e) => typeof e == "object" && e !== null && typeof e.token == "string", Xr = (e) => typeof e == "string" ? e.trim().length > 0 : ge(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
1316
1356
  function c(e) {
1317
1357
  return { token: e };
1318
1358
  }
1319
- var we = (e, t) => {
1359
+ var Le = (e, t) => {
1320
1360
  if (typeof e != "object" || e === null) return e;
1321
- if (ye(e)) return e[t];
1361
+ if (ge(e)) return e[t];
1322
1362
  if (Array.isArray(e)) {
1323
1363
  if (e.every((n) => typeof n == "number")) return e;
1324
- const a = e.map((n) => we(n, t));
1364
+ const a = e.map((n) => Le(n, t));
1325
1365
  return a.every((n, s) => n === e[s]) ? e : a;
1326
1366
  }
1327
- const r = Object.entries(e).map(([a, n]) => [a, we(n, t)]);
1367
+ const r = Object.entries(e).map(([a, n]) => [a, Le(n, t)]);
1328
1368
  return r.every(([a, n]) => n === e[a]) ? e : Object.fromEntries(r);
1329
- }, L = (e) => typeof e == "number" && Number.isFinite(e), E = (e, t) => ({
1369
+ }, S = (e) => typeof e == "number" && Number.isFinite(e), m = (e, t) => ({
1330
1370
  status: "rejected",
1331
1371
  expected: e,
1332
1372
  actual: t
1333
- }), Le = (e, t) => {
1373
+ }), B = (e) => {
1374
+ const t = `one of ${e.map((r) => `'${String(r)}'`).join(", ")}`;
1375
+ return (r) => e.includes(r) ? {
1376
+ status: "accepted",
1377
+ value: r
1378
+ } : m(t, r);
1379
+ }, De = (e, t) => {
1334
1380
  if (typeof e == "string")
1335
1381
  return e.trim().length > 0 ? {
1336
1382
  status: "accepted",
1337
1383
  value: e
1338
- } : E("a non-empty color string", e);
1339
- if (Pr(e)) {
1384
+ } : m("a non-empty color string", e);
1385
+ if (Gr(e)) {
1340
1386
  const r = t[e.token];
1341
1387
  return r === void 0 ? {
1342
1388
  status: "unknownToken",
1343
1389
  token: e.token
1344
- } : Ur(r) ? {
1390
+ } : Xr(r) ? {
1345
1391
  status: "accepted",
1346
1392
  value: typeof r == "string" ? r : {
1347
1393
  light: r.light,
@@ -1349,15 +1395,15 @@ var we = (e, t) => {
1349
1395
  }
1350
1396
  } : { status: "dropped" };
1351
1397
  }
1352
- return ye(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
1398
+ return ge(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
1353
1399
  status: "accepted",
1354
1400
  value: {
1355
1401
  light: e.light,
1356
1402
  dark: e.dark
1357
1403
  }
1358
- } : E(Wr, e);
1359
- }, De = (e) => {
1360
- if (L(e) && e >= 0) return {
1404
+ } : m(Hr, e);
1405
+ }, Oe = (e) => {
1406
+ if (S(e) && e >= 0) return {
1361
1407
  status: "accepted",
1362
1408
  value: {
1363
1409
  top: e,
@@ -1366,12 +1412,12 @@ var we = (e, t) => {
1366
1412
  left: e
1367
1413
  }
1368
1414
  };
1369
- if (typeof e != "object" || e === null) return E(Se, e);
1415
+ if (typeof e != "object" || e === null) return m(we, e);
1370
1416
  const t = e, r = {};
1371
- for (const a of Vr) {
1417
+ for (const a of $r) {
1372
1418
  const n = t[a];
1373
1419
  if (n !== void 0) {
1374
- if (!L(n) || n < 0) return E(Se, e);
1420
+ if (!S(n) || n < 0) return m(we, e);
1375
1421
  r[a] = n;
1376
1422
  }
1377
1423
  }
@@ -1379,45 +1425,45 @@ var we = (e, t) => {
1379
1425
  status: "accepted",
1380
1426
  value: r
1381
1427
  };
1382
- }, tn = {
1383
- color: Le,
1384
- unitInterval: (e) => L(e) && e >= 0 && e <= 1 ? {
1428
+ }, fn = {
1429
+ color: De,
1430
+ unitInterval: (e) => S(e) && e >= 0 && e <= 1 ? {
1385
1431
  status: "accepted",
1386
1432
  value: e
1387
- } : E("a number in [0, 1]", e),
1388
- pixels: (e) => L(e) && e >= 0 ? {
1433
+ } : m("a number in [0, 1]", e),
1434
+ pixels: (e) => S(e) && e >= 0 ? {
1389
1435
  status: "accepted",
1390
1436
  value: e
1391
- } : E("a non-negative number of pixels", e),
1392
- barRadius: (e) => Or(e) ? {
1437
+ } : m("a non-negative number of pixels", e),
1438
+ barRadius: (e) => Fr(e) ? {
1393
1439
  status: "accepted",
1394
1440
  value: e
1395
- } : E(`one of ${gt.map((t) => `'${t}'`).join(", ")}`, e),
1396
- dashArray: (e) => Array.isArray(e) && e.every((t) => L(t) && t >= 0) ? {
1441
+ } : m(`one of ${mt.map((t) => `'${t}'`).join(", ")}`, e),
1442
+ dashArray: (e) => Array.isArray(e) && e.every((t) => S(t) && t >= 0) ? {
1397
1443
  status: "accepted",
1398
1444
  value: [...e]
1399
- } : E("an array of non-negative dash and gap lengths, in stroke widths", e),
1445
+ } : m("an array of non-negative dash and gap lengths, in stroke widths", e),
1400
1446
  fontFamily: (e) => typeof e == "string" && e.trim().length > 0 ? {
1401
1447
  status: "accepted",
1402
1448
  value: e
1403
- } : E("a non-empty CSS font-family list", e),
1404
- fontWeight: (e) => L(e) && e >= Te && e <= Me ? {
1449
+ } : m("a non-empty CSS font-family list", e),
1450
+ fontWeight: (e) => S(e) && e >= Me && e <= _e ? {
1405
1451
  status: "accepted",
1406
1452
  value: e
1407
- } : E(`a number in [${Te}, ${Me}]`, e),
1408
- multiplier: (e) => L(e) && e > 0 ? {
1453
+ } : m(`a number in [${Me}, ${_e}]`, e),
1454
+ multiplier: (e) => S(e) && e >= 0 ? {
1409
1455
  status: "accepted",
1410
1456
  value: e
1411
- } : E("a positive multiple of the font size", e),
1457
+ } : m("a non-negative multiple, 1 being unchanged", e),
1412
1458
  shadow: (e, t) => {
1413
1459
  if (e === "none") return {
1414
1460
  status: "accepted",
1415
1461
  value: e
1416
1462
  };
1417
- if (typeof e != "object" || e === null) return E(_e, e);
1463
+ if (typeof e != "object" || e === null) return m(Se, e);
1418
1464
  const r = e;
1419
- if (!L(r.offsetX) || !L(r.offsetY) || !L(r.blur) || r.blur < 0) return E(_e, e);
1420
- const a = Le(r.color, t);
1465
+ if (!S(r.offsetX) || !S(r.offsetY) || !S(r.blur) || r.blur < 0) return m(Se, e);
1466
+ const a = De(r.color, t);
1421
1467
  return a.status !== "accepted" ? a : {
1422
1468
  status: "accepted",
1423
1469
  value: {
@@ -1428,19 +1474,29 @@ var we = (e, t) => {
1428
1474
  }
1429
1475
  };
1430
1476
  },
1431
- padding: De,
1432
- margin: De
1433
- }, Yr = [
1477
+ padding: Oe,
1478
+ margin: Oe,
1479
+ blendMode: B(zr),
1480
+ signedPixels: (e) => S(e) ? {
1481
+ status: "accepted",
1482
+ value: e
1483
+ } : m("a number of pixels, negative allowed", e),
1484
+ fontStyle: B(Vr),
1485
+ textTransform: B(Pr),
1486
+ textDecoration: B(Ur),
1487
+ lineCap: B(Yr),
1488
+ lineJoin: B(jr)
1489
+ }, Kr = [
1434
1490
  "kind",
1435
1491
  "edge",
1436
1492
  "axis",
1437
1493
  "role",
1438
1494
  "position",
1439
1495
  "part"
1440
- ], rn = "#B84737", jr = 0.4, an = "sm", nn = 2, sn = 8, on = 12, ln = Object.freeze({
1496
+ ], hn = "#B84737", qr = 0.4, pn = "sm", yn = 2, gn = 8, mn = 12, bn = Object.freeze({
1441
1497
  light: "#F5F1E9",
1442
1498
  dark: "#1F1E1C"
1443
- }), cn = "#ffffff", dn = 1, un = 24, fn = {
1499
+ }), vn = "#ffffff", An = 1, En = 24, Tn = {
1444
1500
  top: 24,
1445
1501
  right: 24,
1446
1502
  bottom: 24,
@@ -1453,9 +1509,15 @@ var we = (e, t) => {
1453
1509
  fontFamily: "fontFamily",
1454
1510
  fontSize: "pixels",
1455
1511
  fontWeight: "fontWeight",
1512
+ fontStyle: "fontStyle",
1513
+ letterSpacing: "signedPixels",
1514
+ textTransform: "textTransform",
1515
+ textDecoration: "textDecoration",
1516
+ textOutlineColor: "color",
1517
+ textOutlineWidth: "pixels",
1456
1518
  lineHeight: "multiplier",
1457
1519
  textColor: "color"
1458
- }, F = {
1520
+ }, O = {
1459
1521
  ...p,
1460
1522
  paddingInline: "pixels",
1461
1523
  paddingBlock: "pixels",
@@ -1463,7 +1525,17 @@ var we = (e, t) => {
1463
1525
  stroke: "color",
1464
1526
  strokeWidth: "pixels",
1465
1527
  cornerRadius: "pixels"
1466
- }, Fe = 1, zr = 0.3, $r = 10, Gr = 24, Hr = 8, g = {
1528
+ }, Jr = {
1529
+ offsetX: 0,
1530
+ offsetY: 2,
1531
+ blur: 4,
1532
+ color: "rgba(14, 14, 52, 0.12)"
1533
+ }, Qr = {
1534
+ offsetX: 0,
1535
+ offsetY: 4,
1536
+ blur: 6,
1537
+ color: "rgba(14, 14, 52, 0.16)"
1538
+ }, xe = 1, Zr = 0.3, ea = 10, ta = 1.5, ra = 24, aa = 8, g = {
1467
1539
  label: {
1468
1540
  fontSize: 11.5,
1469
1541
  fontWeight: 500,
@@ -1509,10 +1581,10 @@ var we = (e, t) => {
1509
1581
  fontWeight: 400,
1510
1582
  lineHeight: 1.3
1511
1583
  }
1512
- }, ne = {
1584
+ }, se = {
1513
1585
  stroke: c("gridLine"),
1514
1586
  strokeWidth: 1
1515
- }, Oe = {
1587
+ }, Fe = {
1516
1588
  fill: c("tooltipBackground"),
1517
1589
  stroke: c("tooltipBorder"),
1518
1590
  strokeWidth: 1,
@@ -1536,7 +1608,7 @@ var we = (e, t) => {
1536
1608
  blur: 1.5,
1537
1609
  color: "rgba(14, 14, 52, 0.18)"
1538
1610
  }
1539
- }, xe = {
1611
+ }, Ce = {
1540
1612
  fontSize: 12,
1541
1613
  fontWeight: 500,
1542
1614
  lineHeight: 1.3,
@@ -1553,27 +1625,32 @@ var we = (e, t) => {
1553
1625
  blur: 6,
1554
1626
  color: "rgba(0, 0, 0, 0.12)"
1555
1627
  }
1556
- }, B = {
1628
+ }, W = {
1557
1629
  fill: "color",
1558
1630
  stroke: "color",
1559
1631
  alpha: "unitInterval",
1560
1632
  fillAlpha: "unitInterval",
1561
1633
  strokeAlpha: "unitInterval",
1562
- saturation: "unitInterval"
1563
- }, se = {
1634
+ saturation: "multiplier",
1635
+ blur: "pixels",
1636
+ brightness: "multiplier",
1637
+ contrast: "multiplier",
1638
+ shadow: "shadow",
1639
+ blendMode: "blendMode"
1640
+ }, oe = {
1564
1641
  ...D,
1565
1642
  length: "pixels"
1566
- }, W = {
1643
+ }, V = {
1567
1644
  ...p,
1568
1645
  margin: "margin"
1569
- }, V = {
1646
+ }, P = {
1570
1647
  ...p,
1571
1648
  offset: "pixels",
1572
1649
  margin: "margin"
1573
- }, P = {
1650
+ }, U = {
1574
1651
  gap: "pixels",
1575
1652
  margin: "margin"
1576
- }, oe = {
1653
+ }, ie = {
1577
1654
  stroke: "color",
1578
1655
  strokeWidth: "pixels",
1579
1656
  offset: "pixels",
@@ -1586,12 +1663,12 @@ var we = (e, t) => {
1586
1663
  paddingInline: "pixels",
1587
1664
  paddingBlock: "pixels",
1588
1665
  shadow: "shadow"
1589
- }, I = [
1666
+ }, C = [
1590
1667
  "where",
1591
1668
  "state",
1592
1669
  "layer"
1593
- ], mt = /* @__PURE__ */ new Map();
1594
- var hn = () => {
1670
+ ], bt = /* @__PURE__ */ new Map();
1671
+ var kn = () => {
1595
1672
  const e = [], t = [], r = [], a = (n) => {
1596
1673
  if (n.rest !== void 0 && e.push({
1597
1674
  select: n.select,
@@ -1612,7 +1689,7 @@ var hn = () => {
1612
1689
  ...t,
1613
1690
  ...r
1614
1691
  ];
1615
- }, pn = (e) => mt.get(bt(e)), Ne = (e, t) => ({
1692
+ }, Mn = (e) => bt.get(vt(e)), Ne = (e, t) => ({
1616
1693
  x: {
1617
1694
  select: {
1618
1695
  target: e,
@@ -1627,12 +1704,12 @@ var hn = () => {
1627
1704
  },
1628
1705
  vocabulary: t
1629
1706
  }
1630
- }), Ce = (e) => ({
1707
+ }), Be = (e) => ({
1631
1708
  select: {
1632
1709
  target: "dataLabel",
1633
1710
  role: e
1634
1711
  },
1635
- vocabulary: F,
1712
+ vocabulary: O,
1636
1713
  children: {
1637
1714
  inside: {
1638
1715
  select: {
@@ -1640,7 +1717,7 @@ var hn = () => {
1640
1717
  role: e,
1641
1718
  position: "inside"
1642
1719
  },
1643
- vocabulary: F,
1720
+ vocabulary: O,
1644
1721
  rest: { textColor: "#FFFFFF" }
1645
1722
  },
1646
1723
  outside: {
@@ -1649,15 +1726,15 @@ var hn = () => {
1649
1726
  role: e,
1650
1727
  position: "outside"
1651
1728
  },
1652
- vocabulary: F,
1729
+ vocabulary: O,
1653
1730
  rest: { ...g.dataLabelOutside }
1654
1731
  }
1655
1732
  }
1656
1733
  }), y = {
1657
1734
  geom: {
1658
1735
  select: { target: "geom" },
1659
- vocabulary: B,
1660
- options: I,
1736
+ vocabulary: W,
1737
+ options: C,
1661
1738
  aesthetics: {
1662
1739
  fill: "color",
1663
1740
  stroke: "color",
@@ -1665,9 +1742,12 @@ var hn = () => {
1665
1742
  },
1666
1743
  rest: {
1667
1744
  alpha: 1,
1668
- strokeAlpha: 1
1745
+ strokeAlpha: 1,
1746
+ shadow: "none",
1747
+ blendMode: "normal"
1669
1748
  },
1670
- dimmed: { alpha: jr },
1749
+ dimmed: { alpha: qr },
1750
+ hovered: { shadow: Jr },
1671
1751
  acceptsUnknownKinds: !0,
1672
1752
  children: {
1673
1753
  bar: {
@@ -1676,12 +1756,12 @@ var hn = () => {
1676
1756
  kind: "bar"
1677
1757
  },
1678
1758
  vocabulary: {
1679
- ...B,
1759
+ ...W,
1680
1760
  cornerRadius: "barRadius",
1681
1761
  stroke: "color",
1682
1762
  strokeWidth: "pixels"
1683
1763
  },
1684
- options: I,
1764
+ options: C,
1685
1765
  aesthetics: {
1686
1766
  fill: "color",
1687
1767
  alpha: "alpha",
@@ -1691,10 +1771,13 @@ var hn = () => {
1691
1771
  fill: c("geom"),
1692
1772
  fillAlpha: 1,
1693
1773
  cornerRadius: "sm",
1694
- strokeWidth: Fe,
1774
+ strokeWidth: xe,
1695
1775
  stroke: c("geomBorder")
1696
1776
  },
1697
- hovered: { stroke: c("hoverAffordance") }
1777
+ hovered: {
1778
+ stroke: c("hoverAffordance"),
1779
+ shadow: Qr
1780
+ }
1698
1781
  },
1699
1782
  line: {
1700
1783
  select: {
@@ -1702,11 +1785,13 @@ var hn = () => {
1702
1785
  kind: "line"
1703
1786
  },
1704
1787
  vocabulary: {
1705
- ...B,
1788
+ ...W,
1706
1789
  strokeWidth: "pixels",
1707
- dashArray: "dashArray"
1790
+ dashArray: "dashArray",
1791
+ lineCap: "lineCap",
1792
+ lineJoin: "lineJoin"
1708
1793
  },
1709
- options: I,
1794
+ options: C,
1710
1795
  aesthetics: {
1711
1796
  stroke: "color",
1712
1797
  strokeAlpha: "alpha",
@@ -1716,7 +1801,7 @@ var hn = () => {
1716
1801
  rest: {
1717
1802
  stroke: c("geom"),
1718
1803
  strokeWidth: 2,
1719
- dashArray: O.line.solid
1804
+ dashArray: x.line.solid
1720
1805
  }
1721
1806
  },
1722
1807
  area: {
@@ -1725,11 +1810,13 @@ var hn = () => {
1725
1810
  kind: "area"
1726
1811
  },
1727
1812
  vocabulary: {
1728
- ...B,
1813
+ ...W,
1729
1814
  strokeWidth: "pixels",
1730
- dashArray: "dashArray"
1815
+ dashArray: "dashArray",
1816
+ lineCap: "lineCap",
1817
+ lineJoin: "lineJoin"
1731
1818
  },
1732
- options: I,
1819
+ options: C,
1733
1820
  aesthetics: {
1734
1821
  fill: "color",
1735
1822
  fillAlpha: "alpha",
@@ -1738,9 +1825,9 @@ var hn = () => {
1738
1825
  },
1739
1826
  rest: {
1740
1827
  fill: c("geom"),
1741
- fillAlpha: zr,
1828
+ fillAlpha: Zr,
1742
1829
  strokeWidth: 2,
1743
- dashArray: O.line.solid
1830
+ dashArray: x.line.solid
1744
1831
  }
1745
1832
  },
1746
1833
  point: {
@@ -1749,12 +1836,12 @@ var hn = () => {
1749
1836
  kind: "point"
1750
1837
  },
1751
1838
  vocabulary: {
1752
- ...B,
1839
+ ...W,
1753
1840
  size: "pixels",
1754
1841
  stroke: "color",
1755
1842
  strokeWidth: "pixels"
1756
1843
  },
1757
- options: I,
1844
+ options: C,
1758
1845
  aesthetics: {
1759
1846
  fill: "color",
1760
1847
  alpha: "alpha",
@@ -1766,7 +1853,7 @@ var hn = () => {
1766
1853
  fillAlpha: 1,
1767
1854
  size: 8,
1768
1855
  stroke: c("hoverAffordance"),
1769
- strokeWidth: Fe
1856
+ strokeWidth: xe
1770
1857
  },
1771
1858
  hovered: { stroke: c("hoverAffordance") }
1772
1859
  },
@@ -1779,9 +1866,13 @@ var hn = () => {
1779
1866
  stroke: "color",
1780
1867
  strokeAlpha: "unitInterval",
1781
1868
  strokeWidth: "pixels",
1782
- dashArray: "dashArray"
1869
+ dashArray: "dashArray",
1870
+ lineCap: "lineCap",
1871
+ lineJoin: "lineJoin",
1872
+ shadow: "shadow",
1873
+ blendMode: "blendMode"
1783
1874
  },
1784
- options: I,
1875
+ options: C,
1785
1876
  aesthetics: {
1786
1877
  stroke: "color",
1787
1878
  strokeWidth: "strokeWidth",
@@ -1790,7 +1881,7 @@ var hn = () => {
1790
1881
  rest: {
1791
1882
  stroke: c("ruleLine"),
1792
1883
  strokeWidth: 1,
1793
- dashArray: O.rule.dashed
1884
+ dashArray: x.rule.dashed
1794
1885
  },
1795
1886
  children: { label: {
1796
1887
  select: {
@@ -1809,12 +1900,12 @@ var hn = () => {
1809
1900
  kind: "tile"
1810
1901
  },
1811
1902
  vocabulary: {
1812
- ...B,
1903
+ ...W,
1813
1904
  cornerRadius: "pixels",
1814
1905
  stroke: "color",
1815
1906
  strokeWidth: "pixels"
1816
1907
  },
1817
- options: I,
1908
+ options: C,
1818
1909
  aesthetics: {
1819
1910
  fill: "color",
1820
1911
  alpha: "alpha",
@@ -1840,8 +1931,8 @@ var hn = () => {
1840
1931
  cornerRadius: "pixels"
1841
1932
  },
1842
1933
  rest: {
1843
- ...ne,
1844
- dashArray: O.panelBorder.dashed,
1934
+ ...se,
1935
+ dashArray: x.panelBorder.dashed,
1845
1936
  cornerRadius: 6
1846
1937
  },
1847
1938
  children: {
@@ -1886,8 +1977,8 @@ var hn = () => {
1886
1977
  },
1887
1978
  vocabulary: D,
1888
1979
  rest: {
1889
- ...ne,
1890
- dashArray: O.gridLine.dashed,
1980
+ ...se,
1981
+ dashArray: x.gridLine.dashed,
1891
1982
  strokeWidth: 0
1892
1983
  }
1893
1984
  },
@@ -1898,15 +1989,15 @@ var hn = () => {
1898
1989
  },
1899
1990
  vocabulary: D,
1900
1991
  rest: {
1901
- ...ne,
1902
- dashArray: O.gridLine.dashed
1992
+ ...se,
1993
+ dashArray: x.gridLine.dashed
1903
1994
  }
1904
1995
  }
1905
1996
  }
1906
1997
  },
1907
1998
  tickLine: {
1908
1999
  select: { target: "tickLine" },
1909
- vocabulary: se,
2000
+ vocabulary: oe,
1910
2001
  rest: {
1911
2002
  strokeWidth: 0,
1912
2003
  length: 0
@@ -1917,32 +2008,32 @@ var hn = () => {
1917
2008
  target: "tickLine",
1918
2009
  axis: "x"
1919
2010
  },
1920
- vocabulary: se
2011
+ vocabulary: oe
1921
2012
  },
1922
2013
  y: {
1923
2014
  select: {
1924
2015
  target: "tickLine",
1925
2016
  axis: "y"
1926
2017
  },
1927
- vocabulary: se
2018
+ vocabulary: oe
1928
2019
  }
1929
2020
  }
1930
2021
  },
1931
2022
  axisLabel: {
1932
2023
  select: { target: "axisLabel" },
1933
- vocabulary: W,
2024
+ vocabulary: V,
1934
2025
  rest: {
1935
2026
  ...g.label,
1936
2027
  textColor: c("textPrimary")
1937
2028
  },
1938
2029
  children: {
1939
- ...Ne("axisLabel", W),
2030
+ ...Ne("axisLabel", V),
1940
2031
  top: {
1941
2032
  select: {
1942
2033
  target: "axisLabel",
1943
2034
  edge: "top"
1944
2035
  },
1945
- vocabulary: W,
2036
+ vocabulary: V,
1946
2037
  rest: { margin: { bottom: 8 } }
1947
2038
  },
1948
2039
  bottom: {
@@ -1950,7 +2041,7 @@ var hn = () => {
1950
2041
  target: "axisLabel",
1951
2042
  edge: "bottom"
1952
2043
  },
1953
- vocabulary: W,
2044
+ vocabulary: V,
1954
2045
  rest: { margin: {
1955
2046
  top: 4,
1956
2047
  bottom: 16
@@ -1961,47 +2052,49 @@ var hn = () => {
1961
2052
  target: "axisLabel",
1962
2053
  edge: "left"
1963
2054
  },
1964
- vocabulary: W
2055
+ vocabulary: V
1965
2056
  },
1966
2057
  right: {
1967
2058
  select: {
1968
2059
  target: "axisLabel",
1969
2060
  edge: "right"
1970
2061
  },
1971
- vocabulary: W
2062
+ vocabulary: V
1972
2063
  }
1973
2064
  }
1974
2065
  },
1975
2066
  tickLabel: {
1976
2067
  select: { target: "tickLabel" },
1977
- vocabulary: V,
2068
+ vocabulary: P,
1978
2069
  rest: {
1979
2070
  ...g.label,
1980
2071
  textColor: c("textSecondary"),
1981
- offset: $r
2072
+ offset: ea,
2073
+ textOutlineColor: c("graphBackground"),
2074
+ textOutlineWidth: ta
1982
2075
  },
1983
2076
  children: {
1984
- ...Ne("tickLabel", V),
2077
+ ...Ne("tickLabel", P),
1985
2078
  top: {
1986
2079
  select: {
1987
2080
  target: "tickLabel",
1988
2081
  edge: "top"
1989
2082
  },
1990
- vocabulary: V
2083
+ vocabulary: P
1991
2084
  },
1992
2085
  bottom: {
1993
2086
  select: {
1994
2087
  target: "tickLabel",
1995
2088
  edge: "bottom"
1996
2089
  },
1997
- vocabulary: V
2090
+ vocabulary: P
1998
2091
  },
1999
2092
  left: {
2000
2093
  select: {
2001
2094
  target: "tickLabel",
2002
2095
  edge: "left"
2003
2096
  },
2004
- vocabulary: V,
2097
+ vocabulary: P,
2005
2098
  rest: { offset: 14 }
2006
2099
  },
2007
2100
  right: {
@@ -2009,14 +2102,14 @@ var hn = () => {
2009
2102
  target: "tickLabel",
2010
2103
  edge: "right"
2011
2104
  },
2012
- vocabulary: V,
2105
+ vocabulary: P,
2013
2106
  rest: { offset: 14 }
2014
2107
  }
2015
2108
  }
2016
2109
  },
2017
2110
  dataLabel: {
2018
2111
  select: { target: "dataLabel" },
2019
- vocabulary: F,
2112
+ vocabulary: O,
2020
2113
  rest: {
2021
2114
  ...g.label,
2022
2115
  textColor: c("textPrimary"),
@@ -2030,11 +2123,11 @@ var hn = () => {
2030
2123
  target: "dataLabel",
2031
2124
  role: "aggregate"
2032
2125
  },
2033
- vocabulary: F,
2126
+ vocabulary: O,
2034
2127
  rest: { ...g.dataLabelOutside }
2035
2128
  },
2036
- observation: Ce("observation"),
2037
- category: Ce("category")
2129
+ observation: Be("observation"),
2130
+ category: Be("category")
2038
2131
  }
2039
2132
  },
2040
2133
  graph: {
@@ -2050,7 +2143,8 @@ var hn = () => {
2050
2143
  lineHeight: "multiplier",
2051
2144
  textColor: "color",
2052
2145
  textScale: "multiplier",
2053
- padding: "padding"
2146
+ padding: "padding",
2147
+ blendMode: "blendMode"
2054
2148
  },
2055
2149
  rest: {
2056
2150
  fill: c("graphBackground"),
@@ -2058,7 +2152,8 @@ var hn = () => {
2058
2152
  stroke: c("graphBorder"),
2059
2153
  cornerRadius: 8,
2060
2154
  textScale: 1,
2061
- padding: 24
2155
+ padding: 24,
2156
+ blendMode: "normal"
2062
2157
  }
2063
2158
  },
2064
2159
  heading: {
@@ -2135,7 +2230,7 @@ var hn = () => {
2135
2230
  },
2136
2231
  editOutline: {
2137
2232
  select: { target: "editOutline" },
2138
- vocabulary: oe,
2233
+ vocabulary: ie,
2139
2234
  rest: {
2140
2235
  strokeWidth: 2,
2141
2236
  offset: 2,
@@ -2148,7 +2243,7 @@ var hn = () => {
2148
2243
  target: "editOutline",
2149
2244
  part: "hover"
2150
2245
  },
2151
- vocabulary: oe,
2246
+ vocabulary: ie,
2152
2247
  rest: { stroke: c("editOutlineHover") }
2153
2248
  },
2154
2249
  selected: {
@@ -2156,7 +2251,7 @@ var hn = () => {
2156
2251
  target: "editOutline",
2157
2252
  part: "selected"
2158
2253
  },
2159
- vocabulary: oe,
2254
+ vocabulary: ie,
2160
2255
  rest: { stroke: c("editOutlineSelected") }
2161
2256
  }
2162
2257
  }
@@ -2164,7 +2259,7 @@ var hn = () => {
2164
2259
  tooltip: {
2165
2260
  select: { target: "tooltip" },
2166
2261
  vocabulary: Ie,
2167
- rest: Oe,
2262
+ rest: Fe,
2168
2263
  children: {
2169
2264
  heading: {
2170
2265
  select: {
@@ -2211,9 +2306,9 @@ var hn = () => {
2211
2306
  },
2212
2307
  headline: {
2213
2308
  select: { target: "headline" },
2214
- vocabulary: P,
2309
+ vocabulary: U,
2215
2310
  rest: {
2216
- gap: Gr,
2311
+ gap: ra,
2217
2312
  margin: { bottom: 4 }
2218
2313
  }
2219
2314
  },
@@ -2309,8 +2404,8 @@ var hn = () => {
2309
2404
  },
2310
2405
  legend: {
2311
2406
  select: { target: "legend" },
2312
- vocabulary: P,
2313
- rest: { gap: Hr },
2407
+ vocabulary: U,
2408
+ rest: { gap: aa },
2314
2409
  children: {
2315
2410
  popover: {
2316
2411
  select: {
@@ -2318,14 +2413,14 @@ var hn = () => {
2318
2413
  part: "popover"
2319
2414
  },
2320
2415
  vocabulary: Ie,
2321
- rest: Oe
2416
+ rest: Fe
2322
2417
  },
2323
2418
  top: {
2324
2419
  select: {
2325
2420
  target: "legend",
2326
2421
  edge: "top"
2327
2422
  },
2328
- vocabulary: P,
2423
+ vocabulary: U,
2329
2424
  rest: { margin: { bottom: 8 } }
2330
2425
  },
2331
2426
  bottom: {
@@ -2333,7 +2428,7 @@ var hn = () => {
2333
2428
  target: "legend",
2334
2429
  edge: "bottom"
2335
2430
  },
2336
- vocabulary: P,
2431
+ vocabulary: U,
2337
2432
  rest: { margin: {
2338
2433
  top: 16,
2339
2434
  bottom: 10
@@ -2344,7 +2439,7 @@ var hn = () => {
2344
2439
  target: "legend",
2345
2440
  edge: "left"
2346
2441
  },
2347
- vocabulary: P,
2442
+ vocabulary: U,
2348
2443
  rest: { margin: { right: 10 } }
2349
2444
  },
2350
2445
  right: {
@@ -2352,7 +2447,7 @@ var hn = () => {
2352
2447
  target: "legend",
2353
2448
  edge: "right"
2354
2449
  },
2355
- vocabulary: P,
2450
+ vocabulary: U,
2356
2451
  rest: { margin: { left: 10 } }
2357
2452
  }
2358
2453
  }
@@ -2404,7 +2499,7 @@ var hn = () => {
2404
2499
  lineHeight: 1.3,
2405
2500
  textColor: c("textPrimary"),
2406
2501
  strokeWidth: 1,
2407
- dashArray: O.directLabel.dashed
2502
+ dashArray: x.directLabel.dashed
2408
2503
  }
2409
2504
  },
2410
2505
  annotation: {
@@ -2451,7 +2546,7 @@ var hn = () => {
2451
2546
  rest: {
2452
2547
  stroke: c("annotationArrow"),
2453
2548
  strokeWidth: 4,
2454
- dashArray: O.arrow.solid
2549
+ dashArray: x.arrow.solid
2455
2550
  },
2456
2551
  children: { outline: {
2457
2552
  select: {
@@ -2491,7 +2586,7 @@ var hn = () => {
2491
2586
  kind: "differenceArrow",
2492
2587
  part: "label"
2493
2588
  },
2494
- vocabulary: F,
2589
+ vocabulary: O,
2495
2590
  options: ["annotation"],
2496
2591
  rest: {
2497
2592
  ...g.label,
@@ -2510,7 +2605,7 @@ var hn = () => {
2510
2605
  kind: "text"
2511
2606
  },
2512
2607
  vocabulary: {
2513
- ...F,
2608
+ ...O,
2514
2609
  alpha: "unitInterval",
2515
2610
  fillAlpha: "unitInterval"
2516
2611
  },
@@ -2565,11 +2660,11 @@ var hn = () => {
2565
2660
  part: "label"
2566
2661
  },
2567
2662
  vocabulary: {
2568
- ...F,
2663
+ ...O,
2569
2664
  shadow: "shadow"
2570
2665
  },
2571
2666
  options: ["annotation"],
2572
- rest: xe
2667
+ rest: Ce
2573
2668
  } }
2574
2669
  },
2575
2670
  comment: {
@@ -2593,28 +2688,28 @@ var hn = () => {
2593
2688
  part: "label"
2594
2689
  },
2595
2690
  vocabulary: {
2596
- ...F,
2691
+ ...O,
2597
2692
  shadow: "shadow"
2598
2693
  },
2599
2694
  options: ["annotation"],
2600
- rest: xe
2695
+ rest: Ce
2601
2696
  } }
2602
2697
  }
2603
2698
  }
2604
2699
  }
2605
- }, bt = (e) => {
2700
+ }, vt = (e) => {
2606
2701
  let t = e.target;
2607
- for (const r of Yr) {
2702
+ for (const r of Kr) {
2608
2703
  const a = e[r];
2609
2704
  a !== void 0 && (t += `\0${r}:${a}`);
2610
2705
  }
2611
2706
  return t;
2612
- }, vt = (e) => {
2613
- if (mt.set(bt(e.select), e), e.children !== void 0)
2614
- for (const t of Object.values(e.children)) vt(t);
2707
+ }, At = (e) => {
2708
+ if (bt.set(vt(e.select), e), e.children !== void 0)
2709
+ for (const t of Object.values(e.children)) At(t);
2615
2710
  };
2616
- for (const e of Object.values(y)) vt(e);
2617
- var Xr = class {
2711
+ for (const e of Object.values(y)) At(e);
2712
+ var na = class {
2618
2713
  constructor() {
2619
2714
  this.transformType = "aggregate";
2620
2715
  }
@@ -2626,7 +2721,7 @@ var Xr = class {
2626
2721
  };
2627
2722
  return e.groupBy(...r.groupby).rollup(a);
2628
2723
  }
2629
- }, Kr = class {
2724
+ }, sa = class {
2630
2725
  constructor() {
2631
2726
  this.transformType = "constant";
2632
2727
  }
@@ -2638,7 +2733,7 @@ var Xr = class {
2638
2733
  const { options: t } = e;
2639
2734
  return [t.variableName];
2640
2735
  }
2641
- }, qr = class {
2736
+ }, oa = class {
2642
2737
  constructor() {
2643
2738
  this.transformType = "filter";
2644
2739
  }
@@ -2646,7 +2741,7 @@ var Xr = class {
2646
2741
  const { options: r } = t;
2647
2742
  return e.filter(r.variableName, r.operator, r.value);
2648
2743
  }
2649
- }, Jr = class {
2744
+ }, ia = class {
2650
2745
  constructor() {
2651
2746
  this.transformType = "reshape";
2652
2747
  }
@@ -2663,7 +2758,7 @@ var Xr = class {
2663
2758
  const { options: t } = e;
2664
2759
  return [t.keyName ?? "key"];
2665
2760
  }
2666
- }, Qr = class {
2761
+ }, la = class {
2667
2762
  constructor() {
2668
2763
  this.transformType = "sort";
2669
2764
  }
@@ -2671,18 +2766,18 @@ var Xr = class {
2671
2766
  const { options: r } = t;
2672
2767
  return e.orderBy(r.variableName, r.direction ?? "asc");
2673
2768
  }
2674
- }, Zr = [
2675
- new Xr(),
2676
- new Kr(),
2677
- new qr(),
2678
- new Jr(),
2679
- new Qr()
2680
- ], yn = class extends kr {
2769
+ }, ca = [
2770
+ new na(),
2771
+ new sa(),
2772
+ new oa(),
2773
+ new ia(),
2774
+ new la()
2775
+ ], _n = class extends kr {
2681
2776
  constructor() {
2682
2777
  super("transform");
2683
- for (const e of Zr) this.register(e.transformType, e);
2778
+ for (const e of ca) this.register(e.transformType, e);
2684
2779
  }
2685
- }, gn = [
2780
+ }, Sn = [
2686
2781
  "brick",
2687
2782
  "gray",
2688
2783
  "red",
@@ -2693,7 +2788,7 @@ var Xr = class {
2693
2788
  "blue",
2694
2789
  "purple",
2695
2790
  "pink"
2696
- ], mn = [
2791
+ ], wn = [
2697
2792
  "cyan",
2698
2793
  "pink",
2699
2794
  "purple",
@@ -2702,7 +2797,7 @@ var Xr = class {
2702
2797
  "yellow",
2703
2798
  "green",
2704
2799
  "blue"
2705
- ], ea = [
2800
+ ], da = [
2706
2801
  "#B84737",
2707
2802
  "#BA7420",
2708
2803
  "#0B8666",
@@ -2711,7 +2806,7 @@ var Xr = class {
2711
2806
  "#E2BF6B",
2712
2807
  "#95CBA6",
2713
2808
  "#AABCE5"
2714
- ], ta = "brick", w = {
2809
+ ], ua = "brick", L = {
2715
2810
  red: "#E83562",
2716
2811
  orange: "#F38650",
2717
2812
  yellow: "#FBBC30",
@@ -2722,18 +2817,18 @@ var Xr = class {
2722
2817
  dark_purple: "#6D48D2",
2723
2818
  plum: "#C82184",
2724
2819
  pink: "#FC8497"
2725
- }, ra = [
2726
- w.purple,
2727
- w.pink,
2728
- w.yellow,
2729
- w.blue,
2730
- w.red,
2731
- w.cyan,
2732
- w.orange,
2733
- w.plum,
2734
- w.green,
2735
- w.dark_purple
2736
- ], S = {
2820
+ }, fa = [
2821
+ L.purple,
2822
+ L.pink,
2823
+ L.yellow,
2824
+ L.blue,
2825
+ L.red,
2826
+ L.cyan,
2827
+ L.orange,
2828
+ L.plum,
2829
+ L.green,
2830
+ L.dark_purple
2831
+ ], w = {
2737
2832
  green: "#B2DDC9",
2738
2833
  cyan: "#A2D5E2",
2739
2834
  blue: "#AAC4FF",
@@ -2743,17 +2838,17 @@ var Xr = class {
2743
2838
  red: "#FFADAD",
2744
2839
  orange: "#FFDEB4",
2745
2840
  yellow: "#FDF7C3"
2746
- }, aa = [
2747
- S.green,
2748
- S.purple,
2749
- S.red,
2750
- S.cyan,
2751
- S.pink,
2752
- S.blue,
2753
- S.orange,
2754
- S.plum,
2755
- S.yellow
2756
- ], H = {
2841
+ }, ha = [
2842
+ w.green,
2843
+ w.purple,
2844
+ w.red,
2845
+ w.cyan,
2846
+ w.pink,
2847
+ w.blue,
2848
+ w.orange,
2849
+ w.plum,
2850
+ w.yellow
2851
+ ], X = {
2757
2852
  brick900: "#6E0500",
2758
2853
  brick800: "#881D11",
2759
2854
  brick700: "#A03522",
@@ -2854,12 +2949,12 @@ var Xr = class {
2854
2949
  pink200: "#FED0F3",
2855
2950
  pink100: "#FFE8F9",
2856
2951
  pink50: "#FFF4FC"
2857
- }, bn = [H.brick100, H.brick900], na = [
2858
- H.gray200,
2859
- S.green,
2860
- S.red,
2861
- H.gray200
2862
- ], Be = {
2952
+ }, Ln = [X.brick100, X.brick900], pa = [
2953
+ X.gray200,
2954
+ w.green,
2955
+ w.red,
2956
+ X.gray200
2957
+ ], We = {
2863
2958
  dark: {
2864
2959
  1: [500],
2865
2960
  2: [600, 400],
@@ -2958,7 +3053,7 @@ var Xr = class {
2958
3053
  200
2959
3054
  ]
2960
3055
  }
2961
- }, T = {
3056
+ }, k = {
2962
3057
  cyan: "#22D3EE",
2963
3058
  pink: "#F377EF",
2964
3059
  purple: "#6528F7",
@@ -2967,31 +3062,31 @@ var Xr = class {
2967
3062
  yellow: "#FBFF00",
2968
3063
  green: "#06FF00",
2969
3064
  blue: "#0079FF"
2970
- }, K = [
2971
- T.cyan,
2972
- T.pink,
2973
- T.purple,
2974
- T.red,
2975
- T.orange,
2976
- T.yellow,
2977
- T.green,
2978
- T.blue
2979
- ], sa = [
2980
- T.cyan,
2981
- T.green,
2982
- T.red,
2983
- T.cyan
2984
- ], q = {
3065
+ }, q = [
3066
+ k.cyan,
3067
+ k.pink,
3068
+ k.purple,
3069
+ k.red,
3070
+ k.orange,
3071
+ k.yellow,
3072
+ k.green,
3073
+ k.blue
3074
+ ], ya = [
3075
+ k.cyan,
3076
+ k.green,
3077
+ k.red,
3078
+ k.cyan
3079
+ ], J = {
2985
3080
  start: "#84D1FC",
2986
3081
  positive: "#84FC89",
2987
3082
  negative: "#FC8497",
2988
3083
  total: "#84D1FC"
2989
- }, oa = [
2990
- q.start,
2991
- q.positive,
2992
- q.negative,
2993
- q.total
2994
- ], vn = {
3084
+ }, ga = [
3085
+ J.start,
3086
+ J.positive,
3087
+ J.negative,
3088
+ J.total
3089
+ ], Dn = {
2995
3090
  transform: "linear",
2996
3091
  reverse: !1,
2997
3092
  nice: !0,
@@ -3002,45 +3097,45 @@ var Xr = class {
3002
3097
  interpolate: "lab",
3003
3098
  domainMid: null,
3004
3099
  symmetric: !1
3005
- }, An = {
3100
+ }, On = {
3006
3101
  size: [4, 20],
3007
3102
  alpha: [0.1, 1],
3008
3103
  strokeWidth: [1, 4]
3009
- }, En = {
3104
+ }, xn = {
3010
3105
  domainMin: null,
3011
3106
  domainMax: null,
3012
3107
  nice: !1,
3013
3108
  reverse: !1
3014
- }, kn = {
3109
+ }, Fn = {
3015
3110
  range: null,
3016
3111
  domain: null,
3017
3112
  padding: 0.1,
3018
3113
  reverse: !1
3019
- }, We = { palette: { type: "default" } };
3020
- function Ve(e, t = "light", r) {
3021
- return ((r !== void 0 ? Be[t][r] : void 0) ?? Be[t].default).map((a) => H[`${e}${a}`]);
3114
+ }, Ve = { palette: { type: "default" } };
3115
+ function Pe(e, t = "light", r) {
3116
+ return ((r !== void 0 ? We[t][r] : void 0) ?? We[t].default).map((a) => X[`${e}${a}`]);
3022
3117
  }
3023
- function ia(e) {
3024
- const t = K.indexOf(T[e]);
3025
- return t <= 0 ? K : [...K.slice(t), ...K.slice(0, t)];
3118
+ function ma(e) {
3119
+ const t = q.indexOf(k[e]);
3120
+ return t <= 0 ? q : [...q.slice(t), ...q.slice(0, t)];
3026
3121
  }
3027
- function Tn(e, t = {}) {
3122
+ function Rn(e, t = {}) {
3028
3123
  switch (e.type) {
3029
3124
  case "default":
3030
- return t.hasTouchingGeoms ? Ve(ta, t.colorScheme ?? "light", t.groupCount) : ea;
3125
+ return t.hasTouchingGeoms ? Pe(ua, t.colorScheme ?? "light", t.groupCount) : da;
3031
3126
  case "graphy":
3032
- return e.variant === "waterfall" ? oa : ra;
3127
+ return e.variant === "waterfall" ? ga : fa;
3033
3128
  case "pastel":
3034
- return e.variant === "waterfall" ? na : aa;
3129
+ return e.variant === "waterfall" ? pa : ha;
3035
3130
  case "neon":
3036
- return e.variant === "waterfall" ? sa : ia(e.base);
3131
+ return e.variant === "waterfall" ? ya : ma(e.base);
3037
3132
  case "mono":
3038
- return Ve(e.base, e.variant ?? "light", t.groupCount);
3133
+ return Pe(e.base, e.variant ?? "light", t.groupCount);
3039
3134
  case "custom":
3040
3135
  return e.colors;
3041
3136
  }
3042
3137
  }
3043
- function Mn(e, t) {
3138
+ function Cn(e, t) {
3044
3139
  if (!t) return e;
3045
3140
  const r = [...e];
3046
3141
  for (const [a, n] of Object.entries(t)) {
@@ -3051,7 +3146,7 @@ function Mn(e, t) {
3051
3146
  }
3052
3147
  return r;
3053
3148
  }
3054
- function _n(e, t, r, a) {
3149
+ function In(e, t, r, a) {
3055
3150
  if (!t) return;
3056
3151
  const n = r?.type === "custom" ? a[r.id] : void 0, s = {};
3057
3152
  for (const [o, i] of Object.entries(t)) {
@@ -3077,8 +3172,8 @@ function _n(e, t, r, a) {
3077
3172
  }
3078
3173
  return Object.keys(s).length > 0 ? s : void 0;
3079
3174
  }
3080
- function Sn(e, t, r) {
3081
- if (!t) return We.palette;
3175
+ function Nn(e, t, r) {
3176
+ if (!t) return Ve.palette;
3082
3177
  if (t.type === "custom") {
3083
3178
  const a = r[t.id];
3084
3179
  if (!a)
@@ -3090,7 +3185,7 @@ function Sn(e, t, r) {
3090
3185
  available: Object.keys(r)
3091
3186
  },
3092
3187
  suggestion: "Register the palette in customPalettes, or reference an existing palette id."
3093
- }), We.palette;
3188
+ }), Ve.palette;
3094
3189
  const n = a.map((s) => s.hex);
3095
3190
  return {
3096
3191
  type: "custom",
@@ -3100,7 +3195,7 @@ function Sn(e, t, r) {
3100
3195
  }
3101
3196
  return t;
3102
3197
  }
3103
- function A(e, t = {}) {
3198
+ function E(e, t = {}) {
3104
3199
  const r = t;
3105
3200
  return {
3106
3201
  type: "scale",
@@ -3119,7 +3214,7 @@ function A(e, t = {}) {
3119
3214
  symmetric: r.symmetric
3120
3215
  };
3121
3216
  }
3122
- function ie(e, t = {}) {
3217
+ function le(e, t = {}) {
3123
3218
  return {
3124
3219
  type: "scale",
3125
3220
  scaledAesthetic: e,
@@ -3131,7 +3226,7 @@ function ie(e, t = {}) {
3131
3226
  clamp: t.clamp
3132
3227
  };
3133
3228
  }
3134
- function R(e, t = {}) {
3229
+ function F(e, t = {}) {
3135
3230
  return {
3136
3231
  type: "scale",
3137
3232
  scaledAesthetic: e,
@@ -3142,14 +3237,14 @@ function R(e, t = {}) {
3142
3237
  reverse: t.reverse
3143
3238
  };
3144
3239
  }
3145
- function J(e, t = {}) {
3240
+ function Q(e, t = {}) {
3146
3241
  return {
3147
3242
  type: "scale",
3148
3243
  scaledAesthetic: e,
3149
3244
  scaleType: "identity"
3150
3245
  };
3151
3246
  }
3152
- function le(e, t) {
3247
+ function ce(e, t) {
3153
3248
  return {
3154
3249
  type: "scale",
3155
3250
  scaledAesthetic: e,
@@ -3157,7 +3252,7 @@ function le(e, t) {
3157
3252
  options: t
3158
3253
  };
3159
3254
  }
3160
- function la(e, t = {}) {
3255
+ function ba(e, t = {}) {
3161
3256
  return {
3162
3257
  type: "scale",
3163
3258
  scaledAesthetic: e,
@@ -3166,24 +3261,24 @@ function la(e, t = {}) {
3166
3261
  overrides: t.overrides
3167
3262
  };
3168
3263
  }
3169
- var wn = { labelCrossPosition: 0.5 }, Ln = {
3264
+ var Bn = { labelCrossPosition: 0.5 }, Wn = {
3170
3265
  kind: "rectangle",
3171
3266
  zOrder: "foreground"
3172
- }, Dn = {
3267
+ }, Vn = {
3173
3268
  zOrder: "foreground",
3174
3269
  fit: "contain"
3175
- }, Fn = {
3270
+ }, Pn = {
3176
3271
  x: 8,
3177
3272
  y: 8,
3178
3273
  unit: "px"
3179
- }, On = { align: "center" }, Rn = {
3274
+ }, Un = { align: "center" }, Yn = {
3180
3275
  startArrowheadStyle: "none",
3181
3276
  endArrowheadStyle: "line-arrow"
3182
- }, xn = {
3277
+ }, jn = {
3183
3278
  thin: 2,
3184
3279
  medium: 4,
3185
3280
  thick: 8
3186
- }, In = 0.5, Nn = {
3281
+ }, zn = 0.5, Hn = {
3187
3282
  strokeWidth: 2,
3188
3283
  shadow: {
3189
3284
  offsetX: 0,
@@ -3191,7 +3286,7 @@ var wn = { labelCrossPosition: 0.5 }, Ln = {
3191
3286
  blur: 1.15,
3192
3287
  color: "rgba(0, 0, 0, 0.16)"
3193
3288
  }
3194
- }, Cn = {
3289
+ }, $n = {
3195
3290
  small: {
3196
3291
  arrow: { strokeWidth: 2 },
3197
3292
  label: {
@@ -3223,28 +3318,28 @@ var wn = { labelCrossPosition: 0.5 }, Ln = {
3223
3318
  }
3224
3319
  }
3225
3320
  };
3226
- function Bn(e) {
3321
+ function Gn(e) {
3227
3322
  return {
3228
3323
  type: "styles",
3229
3324
  ...e
3230
3325
  };
3231
3326
  }
3232
- var _ = (e) => Object.keys(e.children ?? {}), Wn = _(y.dataLabel), Vn = _(y.panelBorder), Pn = _(y.tooltip), Un = _(y.source), Yn = _(y.heading), jn = _(y.editOutline), zn = _(y.legendItem), $n = _(y.annotation), Gn = {
3327
+ var _ = (e) => Object.keys(e.children ?? {}), Xn = _(y.dataLabel), Kn = _(y.panelBorder), qn = _(y.tooltip), Jn = _(y.source), Qn = _(y.heading), Zn = _(y.editOutline), es = _(y.legendItem), ts = _(y.annotation), rs = {
3233
3328
  arrow: _(y.annotation.children.arrow),
3234
3329
  differenceArrow: _(y.annotation.children.differenceArrow),
3235
3330
  pinnedNumber: _(y.annotation.children.pinnedNumber),
3236
3331
  comment: _(y.annotation.children.comment)
3237
- }, ge = (e, t) => {
3332
+ }, me = (e, t) => {
3238
3333
  const r = [], a = /* @__PURE__ */ new Set(), n = (s) => {
3239
3334
  const o = s.select[t];
3240
3335
  o !== void 0 && !a.has(o) && (a.add(o), r.push(o));
3241
3336
  for (const i of Object.values(s.children ?? {})) n(i);
3242
3337
  };
3243
3338
  return n(e), r;
3244
- }, Hn = ge(y.dataLabel, "position"), Xn = ge(y.headlineItem, "part"), Kn = ge(y.legend, "part"), ca = (e) => new Set(e.options ?? []), da = (e, t, r) => {
3339
+ }, as = me(y.dataLabel, "position"), ns = me(y.headlineItem, "part"), ss = me(y.legend, "part"), va = (e) => new Set(e.options ?? []), Aa = (e, t, r) => {
3245
3340
  const a = { ...e.select };
3246
3341
  return t.has("layer") && typeof r?.layer == "string" && (a.layer = r.layer), t.has("annotation") && typeof r?.annotation == "string" && (a.annotation = r.annotation), a;
3247
- }, ua = (e, t) => {
3342
+ }, Ea = (e, t) => {
3248
3343
  const r = {
3249
3344
  ...e.has("where") && t?.where !== void 0 ? { where: t.where } : {},
3250
3345
  ...e.has("state") && t?.state !== void 0 ? { state: t.state } : {}
@@ -3253,24 +3348,24 @@ var _ = (e) => Object.keys(e.children ?? {}), Wn = _(y.dataLabel), Vn = _(y.pane
3253
3348
  ...typeof t?.id == "string" ? { id: t.id } : {},
3254
3349
  ...Object.keys(r).length === 0 ? {} : { when: r }
3255
3350
  };
3256
- }, At = (e) => {
3257
- const t = Object.fromEntries(Object.entries(e.children ?? {}).map(([n, s]) => [n, At(s)]));
3351
+ }, Et = (e) => {
3352
+ const t = Object.fromEntries(Object.entries(e.children ?? {}).map(([n, s]) => [n, Et(s)]));
3258
3353
  if (Object.keys(e.vocabulary).length === 0) return t;
3259
- const r = ca(e);
3354
+ const r = va(e);
3260
3355
  return Object.assign((n, s) => ({
3261
- ...ua(r, s),
3262
- select: da(e, r, s),
3356
+ ...Ea(r, s),
3357
+ select: Aa(e, r, s),
3263
3358
  declarations: n
3264
3359
  }), t);
3265
- }, qn = Object.fromEntries(Object.entries(y).map(([e, t]) => [e, At(t)])), fa = [
3360
+ }, os = Object.fromEntries(Object.entries(y).map(([e, t]) => [e, Et(t)])), Ta = [
3266
3361
  "grouped-bars",
3267
3362
  "stacked-bars",
3268
3363
  "lines"
3269
- ], ha = {
3364
+ ], ka = {
3270
3365
  "grouped-bars": "dodge",
3271
3366
  "stacked-bars": "stack",
3272
3367
  lines: null
3273
- }, Jn = (e) => e === "identity" ? "grouped-bars" : fa.find((t) => ha[t] === e) ?? null, Qn = {
3368
+ }, is = (e) => e === "identity" ? "grouped-bars" : Ta.find((t) => ka[t] === e) ?? null, ls = {
3274
3369
  cartesian: (e = {}) => ({
3275
3370
  type: "coord",
3276
3371
  coordType: "cartesian",
@@ -3286,78 +3381,78 @@ var _ = (e) => Object.keys(e.children ?? {}), Wn = _(y.dataLabel), Vn = _(y.pane
3286
3381
  coordType: "polar",
3287
3382
  params: e
3288
3383
  })
3289
- }, Zn = {
3290
- x: Object.assign((e) => le("x", e), {
3291
- continuous: (e) => A("x", e),
3292
- discrete: (e) => R("x", e),
3293
- datetime: (e) => ie("x", e),
3294
- log: (e) => A("x", {
3384
+ }, cs = {
3385
+ x: Object.assign((e) => ce("x", e), {
3386
+ continuous: (e) => E("x", e),
3387
+ discrete: (e) => F("x", e),
3388
+ datetime: (e) => le("x", e),
3389
+ log: (e) => E("x", {
3295
3390
  ...e,
3296
3391
  transform: "log"
3297
3392
  }),
3298
- sqrt: (e) => A("x", {
3393
+ sqrt: (e) => E("x", {
3299
3394
  ...e,
3300
3395
  transform: "sqrt"
3301
3396
  })
3302
3397
  }),
3303
- y: Object.assign((e) => le("y", e), {
3304
- continuous: (e) => A("y", e),
3305
- discrete: (e) => R("y", e),
3306
- datetime: (e) => ie("y", e),
3307
- log: (e) => A("y", {
3398
+ y: Object.assign((e) => ce("y", e), {
3399
+ continuous: (e) => E("y", e),
3400
+ discrete: (e) => F("y", e),
3401
+ datetime: (e) => le("y", e),
3402
+ log: (e) => E("y", {
3308
3403
  ...e,
3309
3404
  transform: "log"
3310
3405
  }),
3311
- sqrt: (e) => A("y", {
3406
+ sqrt: (e) => E("y", {
3312
3407
  ...e,
3313
3408
  transform: "sqrt"
3314
3409
  })
3315
3410
  }),
3316
- ySecondary: Object.assign((e) => le("ySecondary", e), {
3317
- continuous: (e) => A("ySecondary", e),
3318
- discrete: (e) => R("ySecondary", e),
3319
- datetime: (e) => ie("ySecondary", e),
3320
- log: (e) => A("ySecondary", {
3411
+ ySecondary: Object.assign((e) => ce("ySecondary", e), {
3412
+ continuous: (e) => E("ySecondary", e),
3413
+ discrete: (e) => F("ySecondary", e),
3414
+ datetime: (e) => le("ySecondary", e),
3415
+ log: (e) => E("ySecondary", {
3321
3416
  ...e,
3322
3417
  transform: "log"
3323
3418
  }),
3324
- sqrt: (e) => A("ySecondary", {
3419
+ sqrt: (e) => E("ySecondary", {
3325
3420
  ...e,
3326
3421
  transform: "sqrt"
3327
3422
  })
3328
3423
  }),
3329
3424
  color: {
3330
- continuous: (e) => A("color", e),
3331
- discrete: (e) => R("color", e),
3332
- palette: (e) => la("color", e)
3425
+ continuous: (e) => E("color", e),
3426
+ discrete: (e) => F("color", e),
3427
+ palette: (e) => ba("color", e)
3333
3428
  },
3334
3429
  size: {
3335
- continuous: (e) => A("size", e),
3336
- discrete: (e) => R("size", e),
3337
- identity: (e) => J("size", e)
3430
+ continuous: (e) => E("size", e),
3431
+ discrete: (e) => F("size", e),
3432
+ identity: (e) => Q("size", e)
3338
3433
  },
3339
3434
  alpha: {
3340
- continuous: (e) => A("alpha", e),
3341
- discrete: (e) => R("alpha", e),
3342
- identity: (e) => J("alpha", e)
3435
+ continuous: (e) => E("alpha", e),
3436
+ discrete: (e) => F("alpha", e),
3437
+ identity: (e) => Q("alpha", e)
3343
3438
  },
3344
3439
  strokeWidth: {
3345
- continuous: (e) => A("strokeWidth", e),
3346
- discrete: (e) => R("strokeWidth", e),
3347
- identity: (e) => J("strokeWidth", e)
3440
+ continuous: (e) => E("strokeWidth", e),
3441
+ discrete: (e) => F("strokeWidth", e),
3442
+ identity: (e) => Q("strokeWidth", e)
3348
3443
  },
3349
3444
  lineType: {
3350
- discrete: (e) => R("lineType", e),
3351
- identity: (e) => J("lineType", e)
3352
- }
3353
- }, es = {
3354
- identity: ya,
3355
- count: ga,
3356
- smooth: pa,
3357
- mean: ma,
3358
- sum: ba
3445
+ discrete: (e) => F("lineType", e),
3446
+ identity: (e) => Q("lineType", e)
3447
+ }
3448
+ }, ds = {
3449
+ identity: _a,
3450
+ count: Sa,
3451
+ smooth: Ma,
3452
+ mean: wa,
3453
+ sum: La
3359
3454
  };
3360
- function pa(e) {
3455
+ function Ma(e) {
3361
3456
  return {
3362
3457
  type: "smooth",
3363
3458
  method: e.method,
@@ -3365,204 +3460,204 @@ function pa(e) {
3365
3460
  bandwidth: e.bandwidth
3366
3461
  };
3367
3462
  }
3368
- function ya() {
3463
+ function _a() {
3369
3464
  return { type: "identity" };
3370
3465
  }
3371
- function ga() {
3466
+ function Sa() {
3372
3467
  return { type: "count" };
3373
3468
  }
3374
- function ma() {
3469
+ function wa() {
3375
3470
  return { type: "mean" };
3376
3471
  }
3377
- function ba() {
3472
+ function La() {
3378
3473
  return { type: "sum" };
3379
3474
  }
3380
- var ts = {
3381
- reshape: va,
3382
- filter: Aa,
3383
- sort: Ea,
3384
- aggregate: ka,
3385
- constant: Ta
3475
+ var us = {
3476
+ reshape: Da,
3477
+ filter: Oa,
3478
+ sort: xa,
3479
+ aggregate: Fa,
3480
+ constant: Ra
3386
3481
  };
3387
- function va(e = {}) {
3482
+ function Da(e = {}) {
3388
3483
  return {
3389
3484
  type: "transform",
3390
3485
  transformType: "reshape",
3391
3486
  options: e
3392
3487
  };
3393
3488
  }
3394
- function Aa(e) {
3489
+ function Oa(e) {
3395
3490
  return {
3396
3491
  type: "transform",
3397
3492
  transformType: "filter",
3398
3493
  options: e
3399
3494
  };
3400
3495
  }
3401
- function Ea(e) {
3496
+ function xa(e) {
3402
3497
  return {
3403
3498
  type: "transform",
3404
3499
  transformType: "sort",
3405
3500
  options: e
3406
3501
  };
3407
3502
  }
3408
- function ka(e) {
3503
+ function Fa(e) {
3409
3504
  return {
3410
3505
  type: "transform",
3411
3506
  transformType: "aggregate",
3412
3507
  options: e
3413
3508
  };
3414
3509
  }
3415
- function Ta(e) {
3510
+ function Ra(e) {
3416
3511
  return {
3417
3512
  type: "transform",
3418
3513
  transformType: "constant",
3419
3514
  options: e
3420
3515
  };
3421
3516
  }
3422
- function rs(e) {
3517
+ function fs(e) {
3423
3518
  return {
3424
3519
  type: "config",
3425
3520
  config: e
3426
3521
  };
3427
3522
  }
3428
3523
  export {
3429
- an as $,
3524
+ pn as $,
3430
3525
  $e as $t,
3431
- Ln as A,
3432
- ce as An,
3433
- fe as At,
3434
- Sn as B,
3435
- cr as Bt,
3436
- Rn as C,
3437
- Ra as Cn,
3438
- z as Ct,
3439
- Cn as D,
3440
- La as Dn,
3441
- Sr as Dt,
3442
- wn as E,
3443
- Oa as En,
3444
- Ja as Et,
3445
- J as F,
3446
- Xa as Ft,
3447
- kn as G,
3448
- ja as Gt,
3449
- Tn as H,
3450
- Wt as Ht,
3451
- R as I,
3452
- Ha as It,
3453
- ta as J,
3454
- Ct as Jt,
3455
- An as K,
3456
- za as Kt,
3457
- ie as L,
3458
- Ga as Lt,
3459
- In as M,
3460
- de as Mt,
3461
- la as N,
3462
- ur as Nt,
3463
- Dn as O,
3464
- wa as On,
3526
+ Wn as A,
3527
+ de as An,
3528
+ he as At,
3529
+ Nn as B,
3530
+ dr as Bt,
3531
+ Yn as C,
3532
+ Ya as Cn,
3533
+ H as Ct,
3534
+ $n as D,
3535
+ Wa as Dn,
3536
+ wr as Dt,
3537
+ Bn as E,
3538
+ Ua as En,
3539
+ ln as Et,
3540
+ Q as F,
3541
+ nn as Ft,
3542
+ Fn as G,
3543
+ Za as Gt,
3544
+ Rn as H,
3545
+ Vt as Ht,
3546
+ F as I,
3547
+ an as It,
3548
+ ua as J,
3549
+ Bt as Jt,
3550
+ On as K,
3551
+ en as Kt,
3552
+ le as L,
3553
+ rn as Lt,
3554
+ zn as M,
3555
+ ue as Mt,
3556
+ ba as N,
3557
+ fr as Nt,
3558
+ Vn as O,
3559
+ Ba as On,
3465
3560
  kr as Ot,
3466
- le as P,
3467
- dr as Pt,
3468
- yn as Q,
3469
- Q as Qt,
3470
- A as R,
3471
- Ka as Rt,
3472
- Bn as S,
3473
- Ft as Sn,
3474
- gt as St,
3475
- xn as T,
3561
+ ce as P,
3562
+ ur as Pt,
3563
+ _n as Q,
3564
+ Z as Qt,
3565
+ E as R,
3566
+ sn as Rt,
3567
+ Gn as S,
3568
+ xt as Sn,
3569
+ mt as St,
3570
+ jn as T,
3476
3571
  h as Tn,
3477
- Or as Tt,
3478
- vn as U,
3479
- Bt as Ut,
3480
- _n as V,
3481
- Zt as Vt,
3482
- En as W,
3572
+ Fr as Tt,
3573
+ Dn as U,
3574
+ Wt as Ut,
3575
+ In as V,
3576
+ er as Vt,
3577
+ xn as W,
3483
3578
  Nt as Wt,
3484
- gn as X,
3485
- $a as Xt,
3486
- bn as Y,
3487
- X as Yt,
3488
- mn as Z,
3489
- k as Zt,
3490
- Vn as _,
3491
- Da as _n,
3492
- ye as _t,
3493
- Qn as a,
3494
- Ya as an,
3495
- un as at,
3496
- Pn as b,
3497
- Dt as bn,
3498
- we as bt,
3499
- Jn as c,
3500
- xt as cn,
3501
- sn as ct,
3502
- Wn as d,
3503
- ze as dn,
3579
+ Sn as X,
3580
+ tn as Xt,
3581
+ Ln as Y,
3582
+ K as Yt,
3583
+ wn as Z,
3584
+ T as Zt,
3585
+ Kn as _,
3586
+ Va as _n,
3587
+ ge as _t,
3588
+ ls as a,
3589
+ Qa as an,
3590
+ En as at,
3591
+ qn as b,
3592
+ Ot as bn,
3593
+ Le as bt,
3594
+ is as c,
3595
+ Ct as cn,
3596
+ gn as ct,
3597
+ Xn as d,
3598
+ He as dn,
3504
3599
  y as dt,
3505
- he as en,
3506
- jr as et,
3507
- jn as f,
3508
- je as fn,
3509
- pn as ft,
3510
- Kn as g,
3511
- wt as gn,
3512
- Za as gt,
3513
- zn as h,
3514
- Ue as hn,
3515
- en as ht,
3516
- Zn as i,
3517
- Ua as in,
3518
- fn as it,
3519
- On as j,
3520
- Sa as jn,
3521
- qa as jt,
3522
- Fn as k,
3523
- St as kn,
3524
- vr as kt,
3525
- Gn as l,
3526
- Ba as ln,
3527
- nn as lt,
3528
- Xn as m,
3529
- Na as mn,
3530
- tn as mt,
3531
- ts as n,
3600
+ pe as en,
3601
+ qr as et,
3602
+ Zn as f,
3603
+ ze as fn,
3604
+ Mn as ft,
3605
+ ss as g,
3606
+ Lt as gn,
3607
+ dn as gt,
3608
+ es as h,
3609
+ Ye as hn,
3610
+ un as ht,
3611
+ cs as i,
3612
+ Ja as in,
3613
+ Tn as it,
3614
+ Un as j,
3615
+ Na as jn,
3616
+ on as jt,
3617
+ Pn as k,
3618
+ wt as kn,
3619
+ Ar as kt,
3620
+ rs as l,
3621
+ Ga as ln,
3622
+ yn as lt,
3623
+ ns as m,
3624
+ Ha as mn,
3625
+ fn as mt,
3626
+ us as n,
3532
3627
  It as nn,
3533
- ln as nt,
3534
- ha as o,
3535
- Va as on,
3536
- on as ot,
3537
- Yn as p,
3538
- Ia as pn,
3539
- hn as pt,
3540
- ea as q,
3628
+ bn as nt,
3629
+ ka as o,
3630
+ Ka as on,
3631
+ mn as ot,
3632
+ Qn as p,
3633
+ za as pn,
3634
+ kn as pt,
3635
+ da as q,
3541
3636
  Ge as qt,
3542
- es as r,
3543
- Pa as rn,
3544
- dn as rt,
3545
- fa as s,
3546
- Ca as sn,
3547
- cn as st,
3548
- rs as t,
3549
- O as tn,
3550
- rn as tt,
3551
- $n as u,
3552
- Wa as un,
3553
- Yr as ut,
3554
- Hn as v,
3555
- Lt as vn,
3556
- Pr as vt,
3557
- Nn as w,
3558
- xa as wn,
3559
- Qa as wt,
3560
- qn as x,
3561
- Ye as xn,
3637
+ ds as r,
3638
+ qa as rn,
3639
+ An as rt,
3640
+ Ta as s,
3641
+ $a as sn,
3642
+ vn as st,
3643
+ fs as t,
3644
+ x as tn,
3645
+ hn as tt,
3646
+ ts as u,
3647
+ Xa as un,
3648
+ Kr as ut,
3649
+ as as v,
3650
+ Dt as vn,
3651
+ Gr as vt,
3652
+ Hn as w,
3653
+ ja as wn,
3654
+ cn as wt,
3655
+ os as x,
3656
+ je as xn,
3562
3657
  c as xt,
3563
- Un as y,
3564
- Ot as yn,
3565
- Ur as yt,
3566
- Mn as z,
3567
- U as zt
3658
+ Jn as y,
3659
+ Ft as yn,
3660
+ Xr as yt,
3661
+ Cn as z,
3662
+ Y as zt
3568
3663
  };