@graphysdk/react 1.9.0-beta.1792478311419 → 1.9.0-beta.1792506850788

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.
@@ -2350,7 +2350,7 @@ function Rie(e, t) {
2350
2350
  const n = +yn(e), [r, o] = [+yn(t.start), +yn(t.end)].sort((i, s) => i - s);
2351
2351
  return n >= r && n <= o;
2352
2352
  }
2353
- var Hr = (e) => e instanceof Date && no(e), Iie = (e) => Hr(e) || e === null, Zb = (e) => typeof e == "string", Et = (e) => typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e), Oie = (e) => Et(e) || e === null, Gi = Math.PI * 2, Lie = 1e-9, _ie = [
2353
+ var Hr = (e) => e instanceof Date && no(e), Iie = (e) => Hr(e) || e === null, Zb = (e) => typeof e == "string", Rt = (e) => typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e), Oie = (e) => Rt(e) || e === null, Gi = Math.PI * 2, Lie = 1e-9, _ie = [
2354
2354
  0,
2355
2355
  Math.PI / 2,
2356
2356
  Math.PI,
@@ -2409,7 +2409,7 @@ var Hr = (e) => e instanceof Date && no(e), Iie = (e) => Hr(e) || e === null, Zb
2409
2409
  summaryEstimate: Lt("summaryEstimate"),
2410
2410
  summaryLower: Lt("summaryLower"),
2411
2411
  summaryUpper: Lt("summaryUpper")
2412
- }, Ct = { group: Lt("group") }, ie = {
2412
+ }, Mt = { group: Lt("group") }, ie = {
2413
2413
  x: Lt("x"),
2414
2414
  y: Lt("y"),
2415
2415
  xBand: Lt("xBand"),
@@ -2431,16 +2431,16 @@ var Hr = (e) => e instanceof Date && no(e), Iie = (e) => Hr(e) || e === null, Zb
2431
2431
  }, bpt = {
2432
2432
  ...Js,
2433
2433
  ...br,
2434
- ...Ct,
2434
+ ...Mt,
2435
2435
  ...ie,
2436
2436
  ...e1,
2437
2437
  ...Qs,
2438
2438
  ...lf
2439
2439
  }, Die = new Set(Object.values(br)), YB = (e) => Lt(`scaled_${e}`), Gd = (e) => e.startsWith(KB), Nie = (e) => Die.has(e);
2440
- function Pt(e) {
2440
+ function Ct(e) {
2441
2441
  return e[ie.x] ?? null;
2442
2442
  }
2443
- function Rt(e) {
2443
+ function kt(e) {
2444
2444
  return e[ie.y] ?? null;
2445
2445
  }
2446
2446
  function qB(e) {
@@ -2473,8 +2473,8 @@ var Fie = {
2473
2473
  yMin: 0,
2474
2474
  yMax: 1
2475
2475
  }, Mm = (e, t) => {
2476
- const n = xo(e) ?? Pt(e), r = $r(e) ?? Pt(e), o = so(e) ?? Rt(e), i = Hn(e) ?? Rt(e);
2477
- return !Et(n) || !Et(r) || !Et(o) || !Et(i) ? null : t.type !== "polar" ? {
2476
+ const n = xo(e) ?? Ct(e), r = $r(e) ?? Ct(e), o = so(e) ?? kt(e), i = Hn(e) ?? kt(e);
2477
+ return !Rt(n) || !Rt(r) || !Rt(o) || !Rt(i) ? null : t.type !== "polar" ? {
2478
2478
  xMin: n,
2479
2479
  xMax: r,
2480
2480
  yMin: o,
@@ -2634,7 +2634,7 @@ var Lc = (e, t) => {
2634
2634
  }, Ud = (e, t) => Lc(e, t.x), eV = (e, t) => Lc(e, t.y), eM = (e, t) => Lc(e, t.color), tV = (e, t) => {
2635
2635
  switch (t) {
2636
2636
  case "numeric":
2637
- return Et(e) ? e : null;
2637
+ return Rt(e) ? e : null;
2638
2638
  case "categorical":
2639
2639
  return Zb(e) ? e : null;
2640
2640
  case "temporal":
@@ -2654,7 +2654,7 @@ function zie(e) {
2654
2654
  }
2655
2655
  var _c = (e) => {
2656
2656
  const t = pe(e.mapping.x);
2657
- return t !== null && t !== Js.x ? t : rV(e) ?? Ct.group;
2657
+ return t !== null && t !== Js.x ? t : rV(e) ?? Mt.group;
2658
2658
  }, tM = (e) => Wie(e) ? pe(e.mapping.y) : null, nV = (e) => tM(e) === null ? null : Rm(e), nM = (e) => e.spatialKind !== "cells" && _c(e) !== rV(e), rV = (e) => typeof e.identityKey == "object" ? e.identityKey.variable : null, Wie = (e) => e.spatialKind === "points" || e.spatialKind === "cells", Wy = (e, t) => e.yScaleType === t.yScaleType && _T(e.valueFormat) === _T(t.valueFormat), eO = (e) => `${e.yScaleType} y axis, ${_T(e.valueFormat)}`, _T = (e) => e.type === "currency" ? `${e.type}:${e.iso}` : e.type, oV = typeof global == "object" && global && global.Object === Object && global, Gie = typeof self == "object" && self && self.Object === Object && self, fs = oV || Gie || Function("return this")(), Jo = fs.Symbol, iV = Object.prototype, Uie = iV.hasOwnProperty, jie = iV.toString, Hh = Jo ? Jo.toStringTag : void 0;
2659
2659
  function Kie(e) {
2660
2660
  var t = Uie.call(e, Hh), n = e[Hh];
@@ -4245,7 +4245,7 @@ var Jue = Xue(), c1 = "en-GB", xM = class extends Error {
4245
4245
  return (o) => ({
4246
4246
  ...o,
4247
4247
  anchorValue: ec(o.anchorValue, n, t),
4248
- ...o.groupValue !== void 0 && { groupValue: ec(o.groupValue, _f(e.data.getValueFormat(Ct.group)), t) },
4248
+ ...o.groupValue !== void 0 && { groupValue: ec(o.groupValue, _f(e.data.getValueFormat(Mt.group)), t) },
4249
4249
  ...o.crossValue !== void 0 && r !== null && { crossValue: ec(o.crossValue, _f(e.data.getValueFormat(r)), t) }
4250
4250
  });
4251
4251
  };
@@ -4896,8 +4896,8 @@ function GO(e, t) {
4896
4896
  function fa(e) {
4897
4897
  return e.type === "cartesian" ? e.mainAxis : "x";
4898
4898
  }
4899
- var fr = (e) => e[Ct.group], Bm = (e) => {
4900
- const t = _c(e), n = nV(e), r = nM(e) && t !== Ct.group;
4899
+ var fr = (e) => e[Mt.group], Bm = (e) => {
4900
+ const t = _c(e), n = nV(e), r = nM(e) && t !== Mt.group;
4901
4901
  return (o) => {
4902
4902
  const i = o[t] ?? null;
4903
4903
  if (i === null) return null;
@@ -4951,8 +4951,8 @@ var PM = (e, t) => {
4951
4951
  const n = pe(t.x);
4952
4952
  return !n || !["numeric", "temporal"].includes(e.getType(n)) ? e : e.orderBy(n, "asc");
4953
4953
  }, RM = (e, { coordSystem: t }) => {
4954
- const n = Pt(e), r = Rt(e);
4955
- return !Et(n) || !Et(r) ? null : t.type === "polar" ? Vl(n, r) : {
4954
+ const n = Ct(e), r = kt(e);
4955
+ return !Rt(n) || !Rt(r) ? null : t.type === "polar" ? Vl(n, r) : {
4956
4956
  x: n,
4957
4957
  y: r
4958
4958
  };
@@ -5045,7 +5045,7 @@ var Eo = (e, t) => {
5045
5045
  fe(i) && (n.has(i) || e.hasVariable(i) && e.getType(i) === "categorical" && r.add(i));
5046
5046
  }
5047
5047
  return [...r];
5048
- }, qd = (e, t) => e.hasVariable(Ct.group) ? e.getValues(Ct.group, {
5048
+ }, qd = (e, t) => e.hasVariable(Mt.group) ? e.getValues(Mt.group, {
5049
5049
  distinct: !0,
5050
5050
  skipNulls: !0
5051
5051
  }).length > 1 : Eo(e, t).some((n) => e.getValues(n, {
@@ -5256,7 +5256,7 @@ function hu(e, t) {
5256
5256
  const n = e.getTime(), r = t.getTime();
5257
5257
  return n < r ? "less" : n > r ? "greater" : "equal";
5258
5258
  }
5259
- return Et(e) && Et(t) ? e < t ? "less" : e > t ? "greater" : "equal" : "incomparable";
5259
+ return Rt(e) && Rt(t) ? e < t ? "less" : e > t ? "greater" : "equal" : "incomparable";
5260
5260
  }
5261
5261
  var hhe = (e, t) => {
5262
5262
  const n = M8(e, t.predicate);
@@ -5425,14 +5425,14 @@ var hhe = (e, t) => {
5425
5425
  }, t.align ?? "center");
5426
5426
  }, R8 = (e, t, n) => {
5427
5427
  const r = n.read(t);
5428
- return Et(r) ? {
5428
+ return Rt(r) ? {
5429
5429
  geom: e.geom,
5430
5430
  measurementValue: r,
5431
5431
  valueFormat: Kde(n.valueFormat, t),
5432
5432
  yScaleType: e.yScaleType
5433
5433
  } : null;
5434
5434
  }, vhe = ({ layers: e, coordSystem: t, container: n }, r, o) => {
5435
- if (Et(o)) return r.map(o);
5435
+ if (Rt(o)) return r.map(o);
5436
5436
  const i = e.filter((s) => ja(n.geomRegistry.get(s.geom)));
5437
5437
  return i.length === 0 ? r.map(o) : Qde(i, fa(t) === "y", o) ?? NaN;
5438
5438
  }, yhe = (e, t, n) => {
@@ -6694,10 +6694,10 @@ var mfe = class extends Jd {
6694
6694
  }, kfe = class {
6695
6695
  compute({ data: e, mapping: t }) {
6696
6696
  const n = Eo(e, t);
6697
- if (n.length === 0) return { data: e.addConstantVariable(Ct.group, "categorical", null) };
6697
+ if (n.length === 0) return { data: e.addConstantVariable(Mt.group, "categorical", null) };
6698
6698
  const r = e.size(), o = n.map((s) => e.getValues(s)), i = new Array(r);
6699
6699
  for (let s = 0; s < r; s++) i[s] = At(o.map((a) => a[s]));
6700
- return { data: e.addVariable(Ct.group, "categorical", i) };
6700
+ return { data: e.addVariable(Mt.group, "categorical", i) };
6701
6701
  }
6702
6702
  }, Mfe = (e) => {
6703
6703
  if (e === void 0) return {};
@@ -8009,12 +8009,12 @@ function ame(e, t) {
8009
8009
  function lme(e) {
8010
8010
  if (!e) return /* @__PURE__ */ new Map();
8011
8011
  const t = /* @__PURE__ */ new Map();
8012
- return e.data.groupBy(Ct.group).forEach((n) => {
8013
- const r = n.findLast((l) => fe(Hn(l)) || fe(Rt(l)));
8012
+ return e.data.groupBy(Mt.group).forEach((n) => {
8013
+ const r = n.findLast((l) => fe(Hn(l)) || fe(kt(l)));
8014
8014
  if (!r) return;
8015
8015
  const o = fr(r);
8016
8016
  if (!fe(o)) return;
8017
- const i = so(r), s = Hn(r) ?? Rt(r);
8017
+ const i = so(r), s = Hn(r) ?? kt(r);
8018
8018
  if (!fe(s)) return;
8019
8019
  const a = fe(i) ? (i + s) / 2 : s;
8020
8020
  t.set(String(o), a);
@@ -8179,7 +8179,7 @@ var mme = Lt("__ungrouped__");
8179
8179
  function gme(e) {
8180
8180
  const t = e.getVariableNames().filter((o) => e.getType(o) === "temporal" && NV(e.getValueFormat(o)));
8181
8181
  if (t.length === 0) return e;
8182
- const n = e.getValues(Ct.group, { type: "categorical" });
8182
+ const n = e.getValues(Mt.group, { type: "categorical" });
8183
8183
  let r = e;
8184
8184
  for (const o of t) {
8185
8185
  const i = r.getValues(o, { type: "temporal" }), s = /* @__PURE__ */ new Map(), a = i.map((l, c) => {
@@ -9599,7 +9599,8 @@ var Nme = class extends zc {
9599
9599
  }).pipe(({ data: a, mapping: l }) => {
9600
9600
  const c = this.positionAdjusterCompiler.adjust(e.position, {
9601
9601
  data: a,
9602
- mapping: l
9602
+ mapping: l,
9603
+ stackMissingAsZero: "missingValues" in e.params && e.params.missingValues === "zero"
9603
9604
  });
9604
9605
  return {
9605
9606
  data: c.data,
@@ -10126,7 +10127,7 @@ var Xme = (e) => e.observation?.aesthetics ?? Nt.geom.aesthetics, m7 = (e) => e.
10126
10127
  };
10127
10128
  const { offset: n } = e.layer.dataLabels, r = rge(e.layer);
10128
10129
  for (const o of e.layer.data) {
10129
- const i = Pt(o), s = Hn(o) ?? Rt(o);
10130
+ const i = Ct(o), s = Hn(o) ?? kt(o);
10130
10131
  if (i === null || s === null || !gd(i, s)) continue;
10131
10132
  const a = e.formatLabel(o);
10132
10133
  if (a === "") continue;
@@ -10242,7 +10243,10 @@ var Xme = (e) => e.observation?.aesthetics ?? Nt.geom.aesthetics, m7 = (e) => e.
10242
10243
  kind: "visual",
10243
10244
  name: "alpha"
10244
10245
  }
10245
- ], this.summaries = { perGroupHeadline: !0 }, this.dataLabels = {
10246
+ ], this.summaries = {
10247
+ stackTotals: !0,
10248
+ perGroupHeadline: !0
10249
+ }, this.dataLabels = {
10246
10250
  cartesian: { offset: 8 },
10247
10251
  flip: { offset: 8 }
10248
10252
  }, this.dataLabelCoordTypes = ["cartesian", "flip"], this.resolvePercentageValueStrategy = tge, this.isComposite = !0, this.legend = {
@@ -10319,7 +10323,7 @@ var Xme = (e) => e.observation?.aesthetics ?? Nt.geom.aesthetics, m7 = (e) => e.
10319
10323
  xMax: $r(t),
10320
10324
  yMin: so(t),
10321
10325
  yMax: Hn(t),
10322
- y: Rt(t)
10326
+ y: kt(t)
10323
10327
  }), KM = (e, { xMin: t, xMax: n, yMin: r, yMax: o, y: i }) => {
10324
10328
  const s = o ?? i;
10325
10329
  if (t === null || n === null || r === null || s === null) return null;
@@ -10465,7 +10469,7 @@ var Xme = (e) => e.observation?.aesthetics ?? Nt.geom.aesthetics, m7 = (e) => e.
10465
10469
  if (h === "") continue;
10466
10470
  const f = UM(r, "observation", h), p = qM(d, t);
10467
10471
  l && f.inside.width > p.width && (a = !0);
10468
- const g = c === null ? null : u[c], v = Et(g) && g < 0;
10472
+ const g = c === null ? null : u[c], v = Rt(g) && g < 0;
10469
10473
  s.push({
10470
10474
  isNegative: v,
10471
10475
  text: h,
@@ -10542,7 +10546,7 @@ var Xme = (e) => e.observation?.aesthetics ?? Nt.geom.aesthetics, m7 = (e) => e.
10542
10546
  if (f === null) continue;
10543
10547
  const p = e.formatCategory(h);
10544
10548
  if (p === null || p === "") continue;
10545
- const g = UM(e.measureDataLabel, "category", p), v = g[l], y = qM(f, e.panelRect), b = d === null ? null : h[d], w = Et(b) && b < 0, S = zm({
10549
+ const g = UM(e.measureDataLabel, "category", p), v = g[l], y = qM(f, e.panelRect), b = d === null ? null : h[d], w = Rt(b) && b < 0, S = zm({
10546
10550
  box: y,
10547
10551
  panel: u,
10548
10552
  orientation: x7(c, w),
@@ -10920,7 +10924,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
10920
10924
  if (n.mainAxis === "x") {
10921
10925
  const d = xo(t), h = $r(t), f = AL({
10922
10926
  lowerBound: so(t),
10923
- upperBound: Hn(t) ?? Rt(t),
10927
+ upperBound: Hn(t) ?? kt(t),
10924
10928
  options: a
10925
10929
  });
10926
10930
  return d === null || h === null || f === null ? null : {
@@ -10930,7 +10934,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
10930
10934
  }
10931
10935
  const l = so(t), c = Hn(t), u = AL({
10932
10936
  lowerBound: xo(t),
10933
- upperBound: $r(t) ?? Pt(t),
10937
+ upperBound: $r(t) ?? Ct(t),
10934
10938
  options: a
10935
10939
  });
10936
10940
  return l === null || c === null || u === null ? null : {
@@ -10977,7 +10981,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
10977
10981
  return t === null || n === null || r === null || o === null ? null : Vl((t + n) / 2, (r + o) / 2);
10978
10982
  }, Dge = (e) => {
10979
10983
  const t = JB(e);
10980
- return Et(t) && t < 0;
10984
+ return Rt(t) && t < 0;
10981
10985
  }, AL = (e) => {
10982
10986
  const { lowerBound: t, upperBound: n, options: r } = e, o = r.isNegative ? t : n;
10983
10987
  if (o === null) return null;
@@ -10992,7 +10996,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
10992
10996
  };
10993
10997
  const { offset: n } = e.layer.dataLabels, r = Fge(e.layer);
10994
10998
  for (const o of e.layer.data) {
10995
- const i = Pt(o), s = Rt(o);
10999
+ const i = Ct(o), s = kt(o);
10996
11000
  if (i === null || s === null || !gd(i, s)) continue;
10997
11001
  const a = e.formatLabel(o);
10998
11002
  if (a === "") continue;
@@ -11120,7 +11124,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
11120
11124
  };
11121
11125
  const { offset: n } = e.layer.dataLabels, r = Hge(e.layer), o = r.justify === "panel-start" || r.justify === "panel-end", i = e.styleReaders;
11122
11126
  for (const s of e.layer.data) {
11123
- const a = Pt(s), l = Rt(s);
11127
+ const a = Ct(s), l = kt(s);
11124
11128
  if (a === null || l === null || !gd(a, l)) continue;
11125
11129
  const c = e.formatLabel(s);
11126
11130
  if (c === "") continue;
@@ -11276,7 +11280,7 @@ var kge = " · ", Fs = 2, Mge = (e) => {
11276
11280
  valueKind: "value",
11277
11281
  aes: "x"
11278
11282
  }], this.highlightStrategy = null, this.spatialKind = "noop", this.validateMapping = ({ mapping: t, computedVariables: n }) => {
11279
- const r = n.has("x") || Et(Sr(t.x)), o = n.has("y") || Et(Sr(t.y));
11283
+ const r = n.has("x") || Rt(Sr(t.x)), o = n.has("y") || Rt(Sr(t.y));
11280
11284
  return r && o ? [{
11281
11285
  code: "INVALID_RULE_MAPPING",
11282
11286
  message: "rule geom requires exactly one of 'x' or 'y', both were provided"
@@ -11320,14 +11324,14 @@ var kge = " · ", Fs = 2, Mge = (e) => {
11320
11324
  }
11321
11325
  }, CL = (e, t) => {
11322
11326
  const n = Sr(e);
11323
- if (Et(n)) return {
11327
+ if (Rt(n)) return {
11324
11328
  value: n,
11325
11329
  sourceFormat: void 0
11326
11330
  };
11327
11331
  const r = pe(e);
11328
11332
  if (r === null || !Nie(r) || !t.hasVariable(r)) return null;
11329
11333
  const [o] = t.getValues(r);
11330
- return Et(o) ? {
11334
+ return Rt(o) ? {
11331
11335
  value: o,
11332
11336
  sourceFormat: t.getValueFormat(r)
11333
11337
  } : null;
@@ -12023,7 +12027,7 @@ var Gge = (e) => {
12023
12027
  }, rve = ({ xValue: e, xType: t, categoryRank: n, temporalOrigin: r }) => {
12024
12028
  switch (t) {
12025
12029
  case "numeric":
12026
- return !Et(e) || !Number.isFinite(e) ? null : e;
12030
+ return !Rt(e) || !Number.isFinite(e) ? null : e;
12027
12031
  case "temporal": {
12028
12032
  if (!Hr(e)) return null;
12029
12033
  const o = e.getTime();
@@ -12326,7 +12330,7 @@ function Ug(e, t, n) {
12326
12330
  });
12327
12331
  }
12328
12332
  function Sve(e, t) {
12329
- return e.getValues(t).filter((n) => Et(n) && Number.isFinite(n));
12333
+ return e.getValues(t).filter((n) => Rt(n) && Number.isFinite(n));
12330
12334
  }
12331
12335
  function Tve(e, t) {
12332
12336
  return e.length === 0 ? null : t === "mean" ? R7(e) : rA([...e].sort((n, r) => n - r), 0.5);
@@ -14180,7 +14184,7 @@ var k1 = class {
14180
14184
  data: e,
14181
14185
  mapping: {}
14182
14186
  };
14183
- const n = e.getValues(Ct.group, {
14187
+ const n = e.getValues(Mt.group, {
14184
14188
  type: "categorical",
14185
14189
  distinct: !0,
14186
14190
  skipNulls: !0
@@ -14189,7 +14193,7 @@ var k1 = class {
14189
14193
  data: e,
14190
14194
  mapping: {}
14191
14195
  };
14192
- const r = e.size(), o = e.getValues(Ct.group, { type: "categorical" }), i = tbe(e) ?? [-0.7 / 2, 0.7 / 2], s = n.length > 1 ? sge : 0, a = eE().domain(n.map(String)).range(i).paddingInner(s).paddingOuter(0), l = a.bandwidth(), c = new Array(r).fill(null), u = new Array(r).fill(null);
14196
+ const r = e.size(), o = e.getValues(Mt.group, { type: "categorical" }), i = tbe(e) ?? [-0.7 / 2, 0.7 / 2], s = n.length > 1 ? sge : 0, a = eE().domain(n.map(String)).range(i).paddingInner(s).paddingOuter(0), l = a.bandwidth(), c = new Array(r).fill(null), u = new Array(r).fill(null);
14193
14197
  for (let d = 0; d < r; d++) {
14194
14198
  const h = o[d];
14195
14199
  if (!fe(h)) continue;
@@ -14207,11 +14211,11 @@ var k1 = class {
14207
14211
  }, s_ = Lt("__ungrouped__"), u9 = (e, t) => {
14208
14212
  const n = pe(t.x), r = pe(t.y);
14209
14213
  if (!n || !r) return null;
14210
- const o = e.getValues(Ct.group, {
14214
+ const o = e.getValues(Mt.group, {
14211
14215
  type: "categorical",
14212
14216
  distinct: !0,
14213
14217
  skipNulls: !0
14214
- }), i = o.length === 0, s = i ? [s_] : o, a = e.getValues(n), l = e.getValues(r, { type: "numeric" }), c = e.getValues(Ct.group, { type: "categorical" }), u = e.size(), d = /* @__PURE__ */ new Map();
14218
+ }), i = o.length === 0, s = i ? [s_] : o, a = e.getValues(n), l = e.getValues(r, { type: "numeric" }), c = e.getValues(Mt.group, { type: "categorical" }), u = e.size(), d = /* @__PURE__ */ new Map();
14215
14219
  for (let h = 0; h < u; h++) {
14216
14220
  const f = At(a[h] ?? null), p = c[h], g = i ? s_ : p;
14217
14221
  if (!fe(g)) continue;
@@ -14242,47 +14246,48 @@ var k1 = class {
14242
14246
  constructor(...e) {
14243
14247
  super(...e), this.type = "fill";
14244
14248
  }
14245
- adjust({ data: e, mapping: t }) {
14246
- const n = u9(e, t);
14247
- if (n === null) return {
14249
+ adjust({ data: e, mapping: t, stackMissingAsZero: n = !1 }) {
14250
+ const r = u9(e, t);
14251
+ if (r === null) return {
14248
14252
  data: e,
14249
14253
  mapping: {}
14250
14254
  };
14251
- const { yValues: r, observationIndicesByXAndGroup: o, uniqueGroupKeys: i, observationCount: s } = n, a = [...r], l = new Array(s).fill(0);
14252
- for (const [, u] of o) {
14253
- let d = 0, h = 0;
14254
- for (const g of i) {
14255
- const v = u.get(g);
14256
- if (v !== void 0)
14257
- for (const y of v) {
14258
- const b = r[y];
14259
- b != null && (b >= 0 ? d += b : h -= b);
14255
+ const { yValues: o, observationIndicesByXAndGroup: i, uniqueGroupKeys: s, observationCount: a } = r, l = [...o], c = new Array(a).fill(0);
14256
+ for (const [, d] of i) {
14257
+ let h = 0, f = 0;
14258
+ for (const v of s) {
14259
+ const y = d.get(v);
14260
+ if (y !== void 0)
14261
+ for (const b of y) {
14262
+ const w = o[b];
14263
+ w != null && (w >= 0 ? h += w : f -= w);
14260
14264
  }
14261
14265
  }
14262
- let f = 0, p = 0;
14263
- for (const g of i) {
14264
- const v = u.get(g);
14265
- if (v !== void 0)
14266
- for (const y of v) {
14267
- const b = r[y];
14268
- if (b === void 0) continue;
14269
- if (b === null) {
14270
- l[y] = null, a[y] = null;
14266
+ let p = 0, g = 0;
14267
+ for (const v of s) {
14268
+ const y = d.get(v);
14269
+ if (y !== void 0)
14270
+ for (const b of y) {
14271
+ const w = o[b];
14272
+ if (w === void 0) continue;
14273
+ if (w === null) {
14274
+ const T = n ? p : null;
14275
+ c[b] = T, l[b] = T;
14271
14276
  continue;
14272
14277
  }
14273
- const w = b >= 0 ? d : h;
14274
- if (w === 0) {
14275
- l[y] = 0, a[y] = 0;
14278
+ const S = w >= 0 ? h : f;
14279
+ if (S === 0) {
14280
+ c[b] = 0, l[b] = 0;
14276
14281
  continue;
14277
14282
  }
14278
- const S = b / w;
14279
- b >= 0 ? (l[y] = f, a[y] = f += S) : (a[y] = p, l[y] = p += S);
14283
+ const A = w / S;
14284
+ w >= 0 ? (c[b] = p, l[b] = p += A) : (l[b] = g, c[b] = g += A);
14280
14285
  }
14281
14286
  }
14282
14287
  }
14283
- const c = d9(l, a, o, s);
14288
+ const u = d9(c, l, i, a);
14284
14289
  return {
14285
- data: e.addVariable(ie.yMin, "numeric", l).addVariable(ie.yMax, "numeric", a).addVariable(ie.yRaw, "numeric", r).addVariable(e1.role, "categorical", c),
14290
+ data: e.addVariable(ie.yMin, "numeric", c).addVariable(ie.yMax, "numeric", l).addVariable(ie.yRaw, "numeric", o).addVariable(e1.role, "categorical", u),
14286
14291
  mapping: {}
14287
14292
  };
14288
14293
  }
@@ -14300,35 +14305,40 @@ var k1 = class {
14300
14305
  constructor(...e) {
14301
14306
  super(...e), this.type = "stack";
14302
14307
  }
14303
- adjust({ data: e, mapping: t }) {
14304
- const n = u9(e, t);
14305
- if (n === null) return {
14308
+ adjust({ data: e, mapping: t, stackMissingAsZero: n = !1 }) {
14309
+ const r = u9(e, t);
14310
+ if (r === null) return {
14306
14311
  data: e,
14307
14312
  mapping: {}
14308
14313
  };
14309
- const { yValues: r, observationIndicesByXAndGroup: o, uniqueGroupKeys: i, observationCount: s } = n, a = [...r], l = new Array(s).fill(0);
14310
- for (const [, h] of o) {
14311
- let f = 0, p = 0;
14312
- for (const g of i) {
14313
- const v = h.get(g);
14314
- if (v !== void 0)
14315
- for (const y of v) {
14316
- const b = r[y];
14317
- if (b !== void 0) {
14318
- if (b === null) {
14319
- l[y] = null, a[y] = null;
14314
+ const { yValues: o, observationIndicesByXAndGroup: i, uniqueGroupKeys: s, observationCount: a } = r, l = [...o], c = new Array(a).fill(0);
14315
+ for (const [, f] of i) {
14316
+ let p = 0, g = 0;
14317
+ for (const v of s) {
14318
+ const y = f.get(v);
14319
+ if (y !== void 0)
14320
+ for (const b of y) {
14321
+ const w = o[b];
14322
+ if (w !== void 0) {
14323
+ if (w === null) {
14324
+ const S = n ? p : null;
14325
+ c[b] = S, l[b] = S;
14320
14326
  continue;
14321
14327
  }
14322
- b >= 0 ? (l[y] = f, a[y] = f += b) : (a[y] = p, l[y] = p += b);
14328
+ w >= 0 ? (c[b] = p, l[b] = p += w) : (l[b] = g, c[b] = g += w);
14323
14329
  }
14324
14330
  }
14325
14331
  }
14326
14332
  }
14327
- const c = d9(l, a, o, s);
14328
- let u = e.addVariable(ie.yMin, "numeric", l).addVariable(ie.yMax, "numeric", a).addVariable(ie.yRaw, "numeric", r).addVariable(e1.role, "categorical", c);
14329
- const d = pe(t.y);
14330
- return d !== null && (u = u.addVariable(d, "numeric", a)), {
14331
- data: u,
14333
+ const u = d9(c, l, i, a);
14334
+ let d = e.addVariable(ie.yMin, "numeric", c).addVariable(ie.yMax, "numeric", l).addVariable(ie.yRaw, "numeric", o).addVariable(e1.role, "categorical", u);
14335
+ const h = pe(t.y);
14336
+ if (h !== null) {
14337
+ const f = l.map((p, g) => o[g] === null ? null : p);
14338
+ d = d.addVariable(h, "numeric", f);
14339
+ }
14340
+ return {
14341
+ data: d,
14332
14342
  mapping: {}
14333
14343
  };
14334
14344
  }
@@ -15766,7 +15776,7 @@ var x9 = (e, t, n, r) => r.label !== void 0 ? r.label : S8({
15766
15776
  return n.size === 0 ? t : Vc(t, (r) => {
15767
15777
  if (!n.has(r.yScaleType) || !e.has(r.geom) || !e.get(r.geom).positionRoles.some((s) => s.axis === "y" && s.role === "scalar")) return r;
15768
15778
  const o = Sr(r.mapping.y);
15769
- if (!Et(o)) return r;
15779
+ if (!Rt(o)) return r;
15770
15780
  const i = bi(o, 0, 1);
15771
15781
  return i === o ? r : {
15772
15782
  ...r,
@@ -16817,7 +16827,7 @@ var $1e = class extends zc {
16817
16827
  let n = 0, r = 0;
16818
16828
  for (const o of e.data) {
16819
16829
  const i = o[t];
16820
- Et(i) && (n += i, r += Math.abs(i));
16830
+ Rt(i) && (n += i, r += Math.abs(i));
16821
16831
  }
16822
16832
  return {
16823
16833
  grandTotal: n,
@@ -16826,45 +16836,47 @@ var $1e = class extends zc {
16826
16836
  }, vxe = ({ layer: e, mainAxis: t }) => {
16827
16837
  if (e.position !== "stack") return;
16828
16838
  const n = pe(e.mapping.x);
16829
- if (n === null || !e.data.hasVariable(ie.yMin) || !e.data.hasVariable(ie.yMax)) return;
16830
- const r = (a) => t === "y" ? a.xMax : a.yMax, o = (a) => t === "y" ? a.xMin : a.yMin, i = /* @__PURE__ */ new Map();
16831
- for (const a of e.data) {
16832
- const l = a[n], c = so(a), u = Hn(a), d = xo(a), h = $r(a), f = JB(a);
16833
- if (!fe(l) || !fe(c) || !fe(u) || !fe(d) || !fe(h) || !fe(f)) continue;
16834
- const p = f >= 0;
16835
- if (Math.abs(f) === 0) continue;
16836
- const g = VM(a, n), v = {
16837
- xMin: d,
16838
- xMax: h,
16839
- yMin: c,
16840
- yMax: u
16841
- }, y = i.get(g);
16842
- if (y === void 0) {
16843
- i.set(g, {
16844
- total: f,
16845
- topPositive: p ? v : null,
16846
- bottomNegative: p ? null : v
16839
+ if (n === null) return;
16840
+ const [r, o] = t === "y" ? [ie.xMin, ie.xMax] : [ie.yMin, ie.yMax];
16841
+ if (!e.data.hasVariable(r) || !e.data.hasVariable(o)) return;
16842
+ const i = (c) => t === "y" ? c.xMax : c.yMax, s = (c) => t === "y" ? c.xMin : c.yMin, a = /* @__PURE__ */ new Map();
16843
+ for (const c of e.data) {
16844
+ const u = c[n], d = t === "y" ? kt(c) : Ct(c), h = so(c) ?? (t === "y" ? d : null), f = Hn(c) ?? (t === "y" ? d : null), p = xo(c) ?? (t === "x" ? d : null), g = $r(c) ?? (t === "x" ? d : null), v = JB(c);
16845
+ if (!fe(u) || !fe(h) || !fe(f) || !fe(p) || !fe(g) || !fe(v)) continue;
16846
+ const y = v >= 0;
16847
+ if (Math.abs(v) === 0) continue;
16848
+ const b = VM(c, n), w = {
16849
+ xMin: p,
16850
+ xMax: g,
16851
+ yMin: h,
16852
+ yMax: f
16853
+ }, S = a.get(b);
16854
+ if (S === void 0) {
16855
+ a.set(b, {
16856
+ total: v,
16857
+ topPositive: y ? w : null,
16858
+ bottomNegative: y ? null : w
16847
16859
  });
16848
16860
  continue;
16849
16861
  }
16850
- y.total += f, p ? (y.topPositive === null || r(v) > r(y.topPositive)) && (y.topPositive = v) : (y.bottomNegative === null || o(v) < o(y.bottomNegative)) && (y.bottomNegative = v);
16862
+ S.total += v, y ? (S.topPositive === null || i(w) > i(S.topPositive)) && (S.topPositive = w) : (S.bottomNegative === null || s(w) < s(S.bottomNegative)) && (S.bottomNegative = w);
16851
16863
  }
16852
- const s = [];
16853
- for (const [a, l] of i) {
16854
- const c = l.topPositive ?? l.bottomNegative;
16855
- c !== null && s.push({
16856
- xKey: a,
16857
- total: l.total,
16864
+ const l = [];
16865
+ for (const [c, u] of a) {
16866
+ const d = u.topPositive ?? u.bottomNegative;
16867
+ d !== null && l.push({
16868
+ xKey: c,
16869
+ total: u.total,
16858
16870
  anchor: {
16859
- xMin: c.xMin,
16860
- xMax: c.xMax,
16861
- yMin: c.yMin,
16862
- yMax: c.yMax,
16863
- direction: l.topPositive !== null ? "positive" : "negative"
16871
+ xMin: d.xMin,
16872
+ xMax: d.xMax,
16873
+ yMin: d.yMin,
16874
+ yMax: d.yMax,
16875
+ direction: u.topPositive !== null ? "positive" : "negative"
16864
16876
  }
16865
16877
  });
16866
16878
  }
16867
- return s;
16879
+ return l;
16868
16880
  }, yxe = class extends zc {
16869
16881
  constructor(e) {
16870
16882
  super(), this.container = e;
@@ -17584,7 +17596,7 @@ var Cr = { timeZone: "UTC" }, mr = (e) => (t) => {
17584
17596
  } catch {
17585
17597
  return "n/a";
17586
17598
  }
17587
- }, tl = (e) => (t) => Et(t) ? e(t) : "–", yE = (e) => (t) => Zb(t) ? t : "–", Qxe = /* @__PURE__ */ Yr(((e, t) => {
17599
+ }, tl = (e) => (t) => Rt(t) ? e(t) : "–", yE = (e) => (t) => Zb(t) ? t : "–", Qxe = /* @__PURE__ */ Yr(((e, t) => {
17588
17600
  (function() {
17589
17601
  var n = Object.assign || function(x) {
17590
17602
  for (var M, _ = 1; _ < arguments.length; _++) {
@@ -18875,7 +18887,7 @@ var _we = (e, t) => {
18875
18887
  variable: n
18876
18888
  } : {
18877
18889
  read: fr,
18878
- variable: Ct.group
18890
+ variable: Mt.group
18879
18891
  };
18880
18892
  }, rH = ({ layer: e, coordSystem: t, axes: n, numberFormat: r, panelRect: o, measureDataLabel: i, readers: s, formattingLocale: a, percentageValueStrategy: l }) => {
18881
18893
  const c = PE({
@@ -18946,11 +18958,11 @@ var _we = (e, t) => {
18946
18958
  const n = t ? xo : so, r = t ? $r : Hn, o = Rm(e);
18947
18959
  return (i) => {
18948
18960
  const s = n(i), a = r(i);
18949
- if (!Et(s) || !Et(a)) return null;
18961
+ if (!Rt(s) || !Rt(a)) return null;
18950
18962
  const l = Math.abs(a - s);
18951
18963
  if (l === 0) return null;
18952
18964
  const c = o(i);
18953
- return Et(c) ? c / l : null;
18965
+ return Rt(c) ? c / l : null;
18954
18966
  };
18955
18967
  }, Vwe = ({ layer: e, numberFormat: t, axes: n, locale: r, absoluteFormatter: o, percentageValueStrategy: i, isFlipped: s }) => {
18956
18968
  const a = Lc(e.data, e.dataLabels.labelSource), l = Nwe(e, i, s), c = Hwe({
@@ -18967,7 +18979,7 @@ var _we = (e, t) => {
18967
18979
  return (h) => {
18968
18980
  const f = a(h);
18969
18981
  if (f === null) return "";
18970
- if (!d || !Et(f)) return c(f, h);
18982
+ if (!d || !Rt(f)) return c(f, h);
18971
18983
  const p = l(h);
18972
18984
  return p === null || p === 0 ? c(f, h) : u(f / p);
18973
18985
  };
@@ -20830,7 +20842,7 @@ var xTe = ({ layers: e, coordSystem: t, axes: n, numberFormat: r, parsingLocale:
20830
20842
  return s === void 0 ? null : i.length === 1 ? s : { and: i };
20831
20843
  }, bH = (e) => {
20832
20844
  const t = nM(e) ? Eo(e.data, e.mapping) : [], n = tM(e), r = n === null ? t : [...t, n], o = _c(e);
20833
- return o === Ct.group ? [...new Set(r)] : [.../* @__PURE__ */ new Set([o, ...r])];
20845
+ return o === Mt.group ? [...new Set(r)] : [.../* @__PURE__ */ new Set([o, ...r])];
20834
20846
  }, _E = (e) => e !== "data-point", MTe = (e, t) => {
20835
20847
  switch (t) {
20836
20848
  case "series": {
@@ -20876,7 +20888,7 @@ var xTe = ({ layers: e, coordSystem: t, axes: n, numberFormat: r, parsingLocale:
20876
20888
  const o = ITe(RTe(e, t));
20877
20889
  return n.set(t, o), o;
20878
20890
  }, RTe = (e, t) => {
20879
- const n = e.data.size(), r = t === "x-value" ? null : J_(e, Ct.group), o = t === "series" ? null : Vm(e.mapping), i = o === null ? null : J_(e, o), s = new Array(n);
20891
+ const n = e.data.size(), r = t === "x-value" ? null : J_(e, Mt.group), o = t === "series" ? null : Vm(e.mapping), i = o === null ? null : J_(e, o), s = new Array(n);
20880
20892
  for (let a = 0; a < n; a++) {
20881
20893
  const l = r?.[a] ?? null, c = i?.[a] ?? null;
20882
20894
  t === "series" ? s[a] = At([l]) : t === "x-value" ? s[a] = At([c]) : s[a] = At([l, c]);
@@ -21085,9 +21097,9 @@ var xTe = ({ layers: e, coordSystem: t, axes: n, numberFormat: r, parsingLocale:
21085
21097
  }
21086
21098
  return i;
21087
21099
  }, JTe = (e, t) => {
21088
- if (Et(xo(e)) || Et($r(e))) return Mm(e, t);
21089
- const n = Pt(e), r = Hn(e) ?? Rt(e);
21090
- return !Et(n) || !Et(r) ? null : {
21100
+ if (Rt(xo(e)) || Rt($r(e))) return Mm(e, t);
21101
+ const n = Ct(e), r = Hn(e) ?? kt(e);
21102
+ return !Rt(n) || !Rt(r) ? null : {
21091
21103
  ...UB(n, n, r, r),
21092
21104
  space: "disk"
21093
21105
  };
@@ -21787,27 +21799,27 @@ var JAe = (function e(t) {
21787
21799
  })(0.5), WE = (e) => e === "smooth" ? JAe : HE, GE = (e, t) => {
21788
21800
  const n = WE(t.curve), r = $H().curve(n), o = $E().curve(n);
21789
21801
  if (e.mainAxis === "y") {
21790
- const i = (l) => gi(Rt(l) ?? 0), s = (l) => xo(l) ?? 0, a = (l) => $r(l) ?? Pt(l) ?? 0;
21802
+ const i = (l) => gi(kt(l) ?? 0), s = (l) => xo(l) ?? 0, a = (l) => $r(l) ?? Ct(l) ?? 0;
21791
21803
  r.y(i).x0(s).x1(a), o.y(i).x(a);
21792
21804
  } else {
21793
- const i = (l) => Pt(l) ?? 0, s = (l) => gi(so(l) ?? 0), a = (l) => gi(Hn(l) ?? Rt(l) ?? 0);
21805
+ const i = (l) => Ct(l) ?? 0, s = (l) => gi(so(l) ?? 0), a = (l) => gi(Hn(l) ?? kt(l) ?? 0);
21794
21806
  r.x(i).y0(s).y1(a), o.x(i).y(a);
21795
21807
  }
21796
21808
  if (t.missingValues === "gap") {
21797
- const i = (s) => Pt(s) !== null && Rt(s) !== null;
21809
+ const i = (s) => Ct(s) !== null && kt(s) !== null;
21798
21810
  r.defined(i), o.defined(i);
21799
21811
  }
21800
21812
  return {
21801
21813
  lineGenerator: o,
21802
21814
  areaGenerator: r
21803
21815
  };
21804
- }, UE = (e, t) => t !== "connect" ? e : e.filter((n) => Pt(n) !== null && Rt(n) !== null), jE = (e) => {
21805
- const t = $E().x((n) => Pt(n) ?? 0).y((n) => gi(Rt(n) ?? 0)).curve(WE(e.curve));
21816
+ }, UE = (e, t) => t !== "connect" ? e : e.filter((n) => Ct(n) !== null && kt(n) !== null), jE = (e) => {
21817
+ const t = $E().x((n) => Ct(n) ?? 0).y((n) => gi(kt(n) ?? 0)).curve(WE(e.curve));
21806
21818
  return e.missingValues === "gap" && t.defined(KH), t;
21807
21819
  }, QAe = (e) => {
21808
- const t = $H().x((n) => Pt(n) ?? 0).y0(() => 1).y1((n) => gi(Rt(n) ?? 0)).curve(WE(e.curve));
21820
+ const t = $H().x((n) => Ct(n) ?? 0).y0(() => 1).y1((n) => gi(kt(n) ?? 0)).curve(WE(e.curve));
21809
21821
  return e.missingValues === "gap" && t.defined(KH), t;
21810
- }, KE = (e, t) => t !== "connect" ? e : e.filter((n) => Pt(n) !== null && Rt(n) !== null), KH = (e) => Pt(e) !== null && Rt(e) !== null, YE = {
21822
+ }, KE = (e, t) => t !== "connect" ? e : e.filter((n) => Ct(n) !== null && kt(n) !== null), KH = (e) => Ct(e) !== null && kt(e) !== null, YE = {
21811
21823
  circle: zH,
21812
21824
  square: zAe,
21813
21825
  diamond: $Ae,
@@ -22182,7 +22194,7 @@ function ACe(e, t, n, r) {
22182
22194
  for (let c = i; c < s; c += 1) {
22183
22195
  const u = e.byMain[c];
22184
22196
  if (u === void 0) continue;
22185
- const d = At(u.observation[Ct.group] ?? null), h = F1(u.x - r.x, u.y - r.y, a), f = l.get(d);
22197
+ const d = At(u.observation[Mt.group] ?? null), h = F1(u.x - r.x, u.y - r.y, a), f = l.get(d);
22186
22198
  (f === void 0 || h < f.distance) && l.set(d, {
22187
22199
  point: u,
22188
22200
  distance: h
@@ -22502,7 +22514,7 @@ function a$(e, t) {
22502
22514
  function $Ce(e, t, n) {
22503
22515
  const { data: r, spatialKind: o, position: i } = e, s = Uh(r, ie.x), a = Uh(r, ie.y);
22504
22516
  if (!s || !a) return [];
22505
- const l = t === "y", c = o === "spanned-buckets", u = Tr(i), d = l ? a : s, h = Uh(r, l ? ie.yBand : ie.xBand) ?? d, f = l ? s : a, p = Uh(r, l ? ie.xMin : ie.yMin), g = Uh(r, l ? ie.xMax : ie.yMax), v = r.hasVariable(Ct.group) ? r.getValues(Ct.group, { type: "categorical" }) : null, y = c ? null : new WCe(GCe(e)), b = /* @__PURE__ */ new Map(), w = [];
22517
+ const l = t === "y", c = o === "spanned-buckets", u = Tr(i), d = l ? a : s, h = Uh(r, l ? ie.yBand : ie.xBand) ?? d, f = l ? s : a, p = Uh(r, l ? ie.xMin : ie.yMin), g = Uh(r, l ? ie.xMax : ie.yMax), v = r.hasVariable(Mt.group) ? r.getValues(Mt.group, { type: "categorical" }) : null, y = c ? null : new WCe(GCe(e)), b = /* @__PURE__ */ new Map(), w = [];
22506
22518
  let S = -1;
22507
22519
  for (const A of r) {
22508
22520
  S += 1;
@@ -24182,7 +24194,7 @@ function fMe(e) {
24182
24194
  function pMe(e) {
24183
24195
  return e === "buckets" || e === "filled-buckets";
24184
24196
  }
24185
- var V1 = 0.5, mMe = 0.3, gMe = 0.4, vMe = 10, yMe = ({ layer: e, coordSystem: t, scales: n, options: r }) => e.data.size() === 0 ? null : e.spatialKind === "rects" ? t.type === "cartesian" ? xMe(e, t, n, r) : wMe(e, t, r) : pMe(e.spatialKind) && t.type === "cartesian" ? AMe(e, t, r) : e.spatialKind === "cells" || e.spatialKind === "spanned-buckets" || e.spatialKind === "render-hit-test" ? TMe(e, r) : e.spatialKind === "points" ? SMe(e, r) : null, bMe = (e) => fMe(e.spatialKind) ? new Set(e.data.getValues(Ct.group)).size : e.data.size(), xMe = (e, t, n, r) => ({
24197
+ var V1 = 0.5, mMe = 0.3, gMe = 0.4, vMe = 10, yMe = ({ layer: e, coordSystem: t, scales: n, options: r }) => e.data.size() === 0 ? null : e.spatialKind === "rects" ? t.type === "cartesian" ? xMe(e, t, n, r) : wMe(e, t, r) : pMe(e.spatialKind) && t.type === "cartesian" ? AMe(e, t, r) : e.spatialKind === "cells" || e.spatialKind === "spanned-buckets" || e.spatialKind === "render-hit-test" ? TMe(e, r) : e.spatialKind === "points" ? SMe(e, r) : null, bMe = (e) => fMe(e.spatialKind) ? new Set(e.data.getValues(Mt.group)).size : e.data.size(), xMe = (e, t, n, r) => ({
24186
24198
  type: "grow",
24187
24199
  layerId: e.id,
24188
24200
  durationSeconds: V1 * r.durationScale,
@@ -24238,8 +24250,8 @@ var V1 = 0.5, mMe = 0.3, gMe = 0.4, vMe = 10, yMe = ({ layer: e, coordSystem: t,
24238
24250
  }
24239
24251
  return QE(r, t);
24240
24252
  }, MMe = (e, t) => {
24241
- if (t === "main-axis") return Pt(e);
24242
- const n = QM(e) ?? Pt(e);
24253
+ if (t === "main-axis") return Ct(e);
24254
+ const n = QM(e) ?? Ct(e);
24243
24255
  return n === null ? null : t === "value-descending" ? -n : n;
24244
24256
  }, EMe = (e, t, n) => {
24245
24257
  const r = Ro(e.data, e.mapping, e.id), o = /* @__PURE__ */ new Map();
@@ -25145,7 +25157,7 @@ var $1 = (e, t) => ({
25145
25157
  groupValue: e.groupValue,
25146
25158
  crossValue: e.crossValue,
25147
25159
  align: e.align
25148
- }), fvt = (e, t) => e.find((n) => n.scope === t.scope && n.layerId === t.layerId && TM(n.predicate, t.predicate)) ?? null, N$ = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "identity" && (Et(Sr(t.mapping.y)) || Et(Sr(t.mapping.x)))), F$ = (e) => e.find((t) => t.geom === "line" && t.stat.type === "smooth"), B$ = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "mean");
25160
+ }), fvt = (e, t) => e.find((n) => n.scope === t.scope && n.layerId === t.layerId && TM(n.predicate, t.predicate)) ?? null, N$ = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "identity" && (Rt(Sr(t.mapping.y)) || Rt(Sr(t.mapping.x)))), F$ = (e) => e.find((t) => t.geom === "line" && t.stat.type === "smooth"), B$ = (e) => e.find((t) => t.geom === "rule" && t.stat.type === "mean");
25149
25161
  function vEe(e, { themeConfig: t } = {}) {
25150
25162
  return {
25151
25163
  mapping: e.mapping,
@@ -35569,7 +35581,7 @@ function NNe(e) {
35569
35581
  return n !== "root" && (r = e.maximize().region), (uv[r || ""] || uv[n || ""] || uv[`${n}-001`] || uv["001"])[0];
35570
35582
  }
35571
35583
  var FNe = new RegExp(`^${QU.source}*`), BNe = new RegExp(`${QU.source}*$`);
35572
- function kt(e, t) {
35584
+ function Et(e, t) {
35573
35585
  return {
35574
35586
  start: e,
35575
35587
  end: t
@@ -35617,11 +35629,11 @@ var UNe = class {
35617
35629
  const i = this.clonePosition();
35618
35630
  this.bump(), r.push({
35619
35631
  type: mn.pound,
35620
- location: kt(i, this.clonePosition())
35632
+ location: Et(i, this.clonePosition())
35621
35633
  });
35622
35634
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
35623
35635
  if (n) break;
35624
- return this.error(Ot.UNMATCHED_CLOSING_TAG, kt(this.clonePosition(), this.clonePosition()));
35636
+ return this.error(Ot.UNMATCHED_CLOSING_TAG, Et(this.clonePosition(), this.clonePosition()));
35625
35637
  } else if (o === 60 && !this.ignoreTag && cC(this.peek() || 0)) {
35626
35638
  const i = this.parseTag(e, t);
35627
35639
  if (i.err) return i;
@@ -35646,7 +35658,7 @@ var UNe = class {
35646
35658
  val: {
35647
35659
  type: mn.literal,
35648
35660
  value: `<${r}/>`,
35649
- location: kt(n, this.clonePosition())
35661
+ location: Et(n, this.clonePosition())
35650
35662
  },
35651
35663
  err: null
35652
35664
  };
@@ -35655,19 +35667,19 @@ var UNe = class {
35655
35667
  if (o.err) return o;
35656
35668
  const i = o.val, s = this.clonePosition();
35657
35669
  if (this.bumpIf("</")) {
35658
- if (this.isEOF() || !cC(this.char())) return this.error(Ot.INVALID_TAG, kt(s, this.clonePosition()));
35670
+ if (this.isEOF() || !cC(this.char())) return this.error(Ot.INVALID_TAG, Et(s, this.clonePosition()));
35659
35671
  const a = this.clonePosition();
35660
- return r !== this.parseTagName() ? this.error(Ot.UNMATCHED_CLOSING_TAG, kt(a, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
35672
+ return r !== this.parseTagName() ? this.error(Ot.UNMATCHED_CLOSING_TAG, Et(a, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
35661
35673
  val: {
35662
35674
  type: mn.tag,
35663
35675
  value: r,
35664
35676
  children: i,
35665
- location: kt(n, this.clonePosition())
35677
+ location: Et(n, this.clonePosition())
35666
35678
  },
35667
35679
  err: null
35668
- } : this.error(Ot.INVALID_TAG, kt(s, this.clonePosition())));
35669
- } else return this.error(Ot.UNCLOSED_TAG, kt(n, this.clonePosition()));
35670
- } else return this.error(Ot.INVALID_TAG, kt(n, this.clonePosition()));
35680
+ } : this.error(Ot.INVALID_TAG, Et(s, this.clonePosition())));
35681
+ } else return this.error(Ot.UNCLOSED_TAG, Et(n, this.clonePosition()));
35682
+ } else return this.error(Ot.INVALID_TAG, Et(n, this.clonePosition()));
35671
35683
  }
35672
35684
  parseTagName() {
35673
35685
  const e = this.offset();
@@ -35695,7 +35707,7 @@ var UNe = class {
35695
35707
  }
35696
35708
  break;
35697
35709
  }
35698
- const o = kt(n, this.clonePosition());
35710
+ const o = Et(n, this.clonePosition());
35699
35711
  return {
35700
35712
  val: {
35701
35713
  type: mn.literal,
@@ -35746,40 +35758,40 @@ var UNe = class {
35746
35758
  }
35747
35759
  parseArgument(e, t) {
35748
35760
  const n = this.clonePosition();
35749
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, kt(n, this.clonePosition()));
35761
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, Et(n, this.clonePosition()));
35750
35762
  if (this.char() === 125)
35751
- return this.bump(), this.error(Ot.EMPTY_ARGUMENT, kt(n, this.clonePosition()));
35763
+ return this.bump(), this.error(Ot.EMPTY_ARGUMENT, Et(n, this.clonePosition()));
35752
35764
  let r = this.parseIdentifierIfPossible().value;
35753
- if (!r) return this.error(Ot.MALFORMED_ARGUMENT, kt(n, this.clonePosition()));
35754
- if (this.bumpSpace(), this.isEOF()) return this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, kt(n, this.clonePosition()));
35765
+ if (!r) return this.error(Ot.MALFORMED_ARGUMENT, Et(n, this.clonePosition()));
35766
+ if (this.bumpSpace(), this.isEOF()) return this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, Et(n, this.clonePosition()));
35755
35767
  switch (this.char()) {
35756
35768
  case 125:
35757
35769
  return this.bump(), {
35758
35770
  val: {
35759
35771
  type: mn.argument,
35760
35772
  value: r,
35761
- location: kt(n, this.clonePosition())
35773
+ location: Et(n, this.clonePosition())
35762
35774
  },
35763
35775
  err: null
35764
35776
  };
35765
35777
  case 44:
35766
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, kt(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
35778
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, Et(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
35767
35779
  default:
35768
- return this.error(Ot.MALFORMED_ARGUMENT, kt(n, this.clonePosition()));
35780
+ return this.error(Ot.MALFORMED_ARGUMENT, Et(n, this.clonePosition()));
35769
35781
  }
35770
35782
  }
35771
35783
  parseIdentifierIfPossible() {
35772
35784
  const e = this.clonePosition(), t = this.offset(), n = GNe(this.message, t), r = t + n.length;
35773
35785
  return this.bumpTo(r), {
35774
35786
  value: n,
35775
- location: kt(e, this.clonePosition())
35787
+ location: Et(e, this.clonePosition())
35776
35788
  };
35777
35789
  }
35778
35790
  parseArgumentOptions(e, t, n, r) {
35779
35791
  let o = this.clonePosition(), i = this.parseIdentifierIfPossible().value, s = this.clonePosition();
35780
35792
  switch (i) {
35781
35793
  case "":
35782
- return this.error(Ot.EXPECT_ARGUMENT_TYPE, kt(o, s));
35794
+ return this.error(Ot.EXPECT_ARGUMENT_TYPE, Et(o, s));
35783
35795
  case "number":
35784
35796
  case "date":
35785
35797
  case "time": {
@@ -35790,15 +35802,15 @@ var UNe = class {
35790
35802
  const u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
35791
35803
  if (d.err) return d;
35792
35804
  const h = WNe(d.val);
35793
- if (h.length === 0) return this.error(Ot.EXPECT_ARGUMENT_STYLE, kt(this.clonePosition(), this.clonePosition()));
35805
+ if (h.length === 0) return this.error(Ot.EXPECT_ARGUMENT_STYLE, Et(this.clonePosition(), this.clonePosition()));
35794
35806
  a = {
35795
35807
  style: h,
35796
- styleLocation: kt(u, this.clonePosition())
35808
+ styleLocation: Et(u, this.clonePosition())
35797
35809
  };
35798
35810
  }
35799
35811
  const l = this.tryParseArgumentClose(r);
35800
35812
  if (l.err) return l;
35801
- const c = kt(r, this.clonePosition());
35813
+ const c = Et(r, this.clonePosition());
35802
35814
  if (a && a.style.startsWith("::")) {
35803
35815
  let u = zNe(a.style.slice(2));
35804
35816
  if (i === "number") {
@@ -35847,11 +35859,11 @@ var UNe = class {
35847
35859
  case "selectordinal":
35848
35860
  case "select": {
35849
35861
  const a = this.clonePosition();
35850
- if (this.bumpSpace(), !this.bumpIf(",")) return this.error(Ot.EXPECT_SELECT_ARGUMENT_OPTIONS, kt(a, { ...a }));
35862
+ if (this.bumpSpace(), !this.bumpIf(",")) return this.error(Ot.EXPECT_SELECT_ARGUMENT_OPTIONS, Et(a, { ...a }));
35851
35863
  this.bumpSpace();
35852
35864
  let l = this.parseIdentifierIfPossible(), c = 0;
35853
35865
  if (i !== "select" && l.value === "offset") {
35854
- if (!this.bumpIf(":")) return this.error(Ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, kt(this.clonePosition(), this.clonePosition()));
35866
+ if (!this.bumpIf(":")) return this.error(Ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Et(this.clonePosition(), this.clonePosition()));
35855
35867
  this.bumpSpace();
35856
35868
  const f = this.tryParseDecimalInteger(Ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Ot.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
35857
35869
  if (f.err) return f;
@@ -35861,7 +35873,7 @@ var UNe = class {
35861
35873
  if (u.err) return u;
35862
35874
  const d = this.tryParseArgumentClose(r);
35863
35875
  if (d.err) return d;
35864
- const h = kt(r, this.clonePosition());
35876
+ const h = Et(r, this.clonePosition());
35865
35877
  return i === "select" ? {
35866
35878
  val: {
35867
35879
  type: mn.select,
@@ -35883,11 +35895,11 @@ var UNe = class {
35883
35895
  };
35884
35896
  }
35885
35897
  default:
35886
- return this.error(Ot.INVALID_ARGUMENT_TYPE, kt(o, s));
35898
+ return this.error(Ot.INVALID_ARGUMENT_TYPE, Et(o, s));
35887
35899
  }
35888
35900
  }
35889
35901
  tryParseArgumentClose(e) {
35890
- return this.isEOF() || this.char() !== 125 ? this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, kt(e, this.clonePosition())) : (this.bump(), {
35902
+ return this.isEOF() || this.char() !== 125 ? this.error(Ot.EXPECT_ARGUMENT_CLOSING_BRACE, Et(e, this.clonePosition())) : (this.bump(), {
35891
35903
  val: !0,
35892
35904
  err: null
35893
35905
  });
@@ -35899,7 +35911,7 @@ var UNe = class {
35899
35911
  case 39: {
35900
35912
  this.bump();
35901
35913
  let n = this.clonePosition();
35902
- if (!this.bumpUntil("'")) return this.error(Ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, kt(n, this.clonePosition()));
35914
+ if (!this.bumpUntil("'")) return this.error(Ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, Et(n, this.clonePosition()));
35903
35915
  this.bump();
35904
35916
  break;
35905
35917
  }
@@ -35949,23 +35961,23 @@ var UNe = class {
35949
35961
  if (t !== "select" && this.bumpIf("=")) {
35950
35962
  const f = this.tryParseDecimalInteger(Ot.EXPECT_PLURAL_ARGUMENT_SELECTOR, Ot.INVALID_PLURAL_ARGUMENT_SELECTOR);
35951
35963
  if (f.err) return f;
35952
- l = kt(h, this.clonePosition()), a = this.message.slice(h.offset, this.offset());
35964
+ l = Et(h, this.clonePosition()), a = this.message.slice(h.offset, this.offset());
35953
35965
  } else break;
35954
35966
  }
35955
35967
  if (s.has(a)) return this.error(t === "select" ? Ot.DUPLICATE_SELECT_ARGUMENT_SELECTOR : Ot.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
35956
35968
  a === "other" && (o = !0), this.bumpSpace();
35957
35969
  const c = this.clonePosition();
35958
- if (!this.bumpIf("{")) return this.error(t === "select" ? Ot.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : Ot.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, kt(this.clonePosition(), this.clonePosition()));
35970
+ if (!this.bumpIf("{")) return this.error(t === "select" ? Ot.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : Ot.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, Et(this.clonePosition(), this.clonePosition()));
35959
35971
  const u = this.parseMessage(e + 1, t, n);
35960
35972
  if (u.err) return u;
35961
35973
  const d = this.tryParseArgumentClose(c);
35962
35974
  if (d.err) return d;
35963
35975
  i.push([a, {
35964
35976
  value: u.val,
35965
- location: kt(c, this.clonePosition())
35977
+ location: Et(c, this.clonePosition())
35966
35978
  }]), s.add(a), this.bumpSpace(), { value: a, location: l } = this.parseIdentifierIfPossible();
35967
35979
  }
35968
- return i.length === 0 ? this.error(t === "select" ? Ot.EXPECT_SELECT_ARGUMENT_SELECTOR : Ot.EXPECT_PLURAL_ARGUMENT_SELECTOR, kt(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(Ot.MISSING_OTHER_CLAUSE, kt(this.clonePosition(), this.clonePosition())) : {
35980
+ return i.length === 0 ? this.error(t === "select" ? Ot.EXPECT_SELECT_ARGUMENT_SELECTOR : Ot.EXPECT_PLURAL_ARGUMENT_SELECTOR, Et(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(Ot.MISSING_OTHER_CLAUSE, Et(this.clonePosition(), this.clonePosition())) : {
35969
35981
  val: i,
35970
35982
  err: null
35971
35983
  };
@@ -35981,7 +35993,7 @@ var UNe = class {
35981
35993
  o = !0, i = i * 10 + (a - 48), this.bump();
35982
35994
  else break;
35983
35995
  }
35984
- const s = kt(r, this.clonePosition());
35996
+ const s = Et(r, this.clonePosition());
35985
35997
  return o ? (i *= n, Number.isSafeInteger(i) ? {
35986
35998
  val: i,
35987
35999
  err: null
@@ -37758,7 +37770,7 @@ function ms(e) {
37758
37770
  function dP(e) {
37759
37771
  return sx() ? e instanceof Node || e instanceof bn(e).Node : !1;
37760
37772
  }
37761
- function Mt(e) {
37773
+ function Pt(e) {
37762
37774
  return sx() ? e instanceof Element || e instanceof bn(e).Element : !1;
37763
37775
  }
37764
37776
  function on(e) {
@@ -37787,7 +37799,7 @@ function ax(e) {
37787
37799
  }
37788
37800
  var C3e = /transform|translate|scale|rotate|perspective|filter/, k3e = /paint|layout|strict|content/, Rl = (e) => !!e && e !== "none", kS;
37789
37801
  function hP(e) {
37790
- const t = Mt(e) ? Co(e) : e;
37802
+ const t = Pt(e) ? Co(e) : e;
37791
37803
  return Rl(t.transform) || Rl(t.translate) || Rl(t.scale) || Rl(t.rotate) || Rl(t.perspective) || !lx() && (Rl(t.backdropFilter) || Rl(t.filter)) || C3e.test(t.willChange || "") || k3e.test(t.contain || "");
37792
37804
  }
37793
37805
  function M3e(e) {
@@ -37809,7 +37821,7 @@ function Co(e) {
37809
37821
  return bn(e).getComputedStyle(e);
37810
37822
  }
37811
37823
  function cx(e) {
37812
- return Mt(e) ? {
37824
+ return Pt(e) ? {
37813
37825
  scrollLeft: e.scrollLeft,
37814
37826
  scrollTop: e.scrollTop
37815
37827
  } : {
@@ -37849,7 +37861,7 @@ function mj(e) {
37849
37861
  };
37850
37862
  }
37851
37863
  function fP(e) {
37852
- return Mt(e) ? e : e.contextElement;
37864
+ return Pt(e) ? e : e.contextElement;
37853
37865
  }
37854
37866
  function rd(e) {
37855
37867
  const t = fP(e);
@@ -37876,11 +37888,11 @@ function kc(e, t, n, r) {
37876
37888
  t === void 0 && (t = !1), n === void 0 && (n = !1);
37877
37889
  const o = e.getBoundingClientRect(), i = fP(e);
37878
37890
  let s = Qi(1);
37879
- t && (r ? Mt(r) && (s = rd(r)) : s = rd(e));
37891
+ t && (r ? Pt(r) && (s = rd(r)) : s = rd(e));
37880
37892
  const a = P3e(i, n, r) ? gj(i) : Qi(0);
37881
37893
  let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
37882
37894
  if (i) {
37883
- const h = bn(i), f = r && Mt(r) ? bn(r) : r;
37895
+ const h = bn(i), f = r && Pt(r) ? bn(r) : r;
37884
37896
  let p = h, g = pC(p);
37885
37897
  for (; g && r && f !== p; ) {
37886
37898
  const v = rd(g), y = g.getBoundingClientRect(), b = Co(g), w = y.left + (g.clientLeft + parseFloat(b.paddingLeft)) * v.x, S = y.top + (g.clientTop + parseFloat(b.paddingTop)) * v.y;
@@ -37974,7 +37986,7 @@ function $5(e, t, n) {
37974
37986
  let r;
37975
37987
  if (t === "viewport") r = L3e(e, n);
37976
37988
  else if (t === "document") r = O3e(ms(e));
37977
- else if (Mt(t)) r = _3e(t, n);
37989
+ else if (Pt(t)) r = _3e(t, n);
37978
37990
  else {
37979
37991
  const o = gj(e);
37980
37992
  r = {
@@ -37988,15 +38000,15 @@ function $5(e, t, n) {
37988
38000
  }
37989
38001
  function yj(e, t) {
37990
38002
  const n = cs(e);
37991
- return n === t || !Mt(n) || Zi(n) ? !1 : Co(n).position === "fixed" || yj(n, t);
38003
+ return n === t || !Pt(n) || Zi(n) ? !1 : Co(n).position === "fixed" || yj(n, t);
37992
38004
  }
37993
38005
  function D3e(e, t) {
37994
38006
  const n = t.get(e);
37995
38007
  if (n) return n;
37996
- let r = rm(e, [], !1).filter((a) => Mt(a) && ll(a) !== "body"), o = null;
38008
+ let r = rm(e, [], !1).filter((a) => Pt(a) && ll(a) !== "body"), o = null;
37997
38009
  const i = Co(e).position === "fixed";
37998
38010
  let s = i ? cs(e) : e;
37999
- for (; Mt(s) && !Zi(s); ) {
38011
+ for (; Pt(s) && !Zi(s); ) {
38000
38012
  const a = Co(s), l = hP(s);
38001
38013
  !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && o && (o.position === "absolute" || o.position === "fixed") || cl(s) && !l && yj(e, s)) ? r = r.filter((c) => c !== s) : o = a, s = cs(s);
38002
38014
  }
@@ -38063,7 +38075,7 @@ function bj(e, t) {
38063
38075
  if (!on(e)) {
38064
38076
  let o = cs(e);
38065
38077
  for (; o && !Zi(o); ) {
38066
- if (Mt(o) && !MS(o)) return o;
38078
+ if (Pt(o) && !MS(o)) return o;
38067
38079
  o = cs(o);
38068
38080
  }
38069
38081
  return n;
@@ -38096,7 +38108,7 @@ var xj = {
38096
38108
  getClientRects: I3e,
38097
38109
  getDimensions: F3e,
38098
38110
  getScale: rd,
38099
- isElement: Mt,
38111
+ isElement: Pt,
38100
38112
  isRTL: H3e
38101
38113
  };
38102
38114
  function wj(e, t) {
@@ -38661,7 +38673,7 @@ var U5 = 10 ** 2, Wn = (e) => Math.round(e * U5) / U5, u6e = (e, t) => {
38661
38673
  };
38662
38674
  let s = "";
38663
38675
  const a = [];
38664
- e.data.groupBy(Ct.group).forEach((c) => {
38676
+ e.data.groupBy(Mt.group).forEach((c) => {
38665
38677
  const u = UE([...c], e.params.missingValues), [d] = u;
38666
38678
  if (d !== void 0) {
38667
38679
  if (u.length === 1) {
@@ -38684,10 +38696,10 @@ var U5 = 10 ** 2, Wn = (e) => Math.round(e * U5) / U5, u6e = (e, t) => {
38684
38696
  }), l;
38685
38697
  }, p6e = (e, t, n) => {
38686
38698
  if (t.mainAxis === "y") {
38687
- const i = Rt(e), s = $r(e) ?? Pt(e);
38699
+ const i = kt(e), s = $r(e) ?? Ct(e);
38688
38700
  return i === null || s === null ? null : _0(Mc(s, i), n);
38689
38701
  }
38690
- const r = Pt(e), o = Hn(e) ?? Rt(e);
38702
+ const r = Ct(e), o = Hn(e) ?? kt(e);
38691
38703
  return r === null || o === null ? null : _0(Mc(r, o), n);
38692
38704
  }, m6e = 1.5, Ej = (e, t) => Pj(e, t) ? Math.max(t, m6e) : t, dl = (e, t, n) => {
38693
38705
  const r = Ej(e, t);
@@ -39169,7 +39181,7 @@ var am = (e, t, n) => {
39169
39181
  }, B6e = Mo(function({ layer: t, coordSystem: n, shouldAnimateTransitions: r, intro: o }) {
39170
39182
  const i = o?.type === "wipe" ? o : null, { lineGenerator: s, areaGenerator: a } = Z(() => GE(n, t.params), [t.params, n]), l = cn(t), c = Z(() => {
39171
39183
  const u = Ro(t.data, t.mapping, t.id), d = [];
39172
- return t.data.groupBy(Ct.group).forEach((h) => {
39184
+ return t.data.groupBy(Mt.group).forEach((h) => {
39173
39185
  const f = UE([...h], t.params.missingValues), p = a(f), g = s(f);
39174
39186
  if (!p || !g) return;
39175
39187
  const v = f[0];
@@ -39270,7 +39282,7 @@ var am = (e, t, n) => {
39270
39282
  ringWidth: n
39271
39283
  };
39272
39284
  }, K6e = ({ layer: e, coordSystem: t, primary: n, companions: r }) => {
39273
- const o = cn(e), i = fr(n.observation), s = Z(() => UE([...e.data.filter(Ct.group, "eq", i)], e.params.missingValues), [
39285
+ const o = cn(e), i = fr(n.observation), s = Z(() => UE([...e.data.filter(Mt.group, "eq", i)], e.params.missingValues), [
39274
39286
  e.data,
39275
39287
  e.params.missingValues,
39276
39288
  i
@@ -39345,13 +39357,13 @@ var am = (e, t, n) => {
39345
39357
  getEditOutlineShapes: f6e,
39346
39358
  getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
39347
39359
  if (t.mainAxis === "x") {
39348
- const o = Pt(e), i = Hn(e) ?? Rt(e);
39360
+ const o = Ct(e), i = Hn(e) ?? kt(e);
39349
39361
  return o === null || i === null ? null : {
39350
39362
  x: o,
39351
39363
  y: i
39352
39364
  };
39353
39365
  }
39354
- const n = Rt(e), r = $r(e) ?? Pt(e);
39366
+ const n = kt(e), r = $r(e) ?? Ct(e);
39355
39367
  return n === null || r === null ? null : {
39356
39368
  x: r,
39357
39369
  y: n
@@ -40143,7 +40155,7 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40143
40155
  scaleX: t.width,
40144
40156
  scaleY: t.height
40145
40157
  }, s = [], a = [];
40146
- return e.data.groupBy(Ct.group).forEach((l) => {
40158
+ return e.data.groupBy(Mt.group).forEach((l) => {
40147
40159
  const c = KE([...l], e.params.missingValues), [u] = c;
40148
40160
  if (u === void 0) return;
40149
40161
  if (c.length === 1) {
@@ -40165,12 +40177,12 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40165
40177
  size: 8
40166
40178
  }), s;
40167
40179
  }, AFe = (e, t) => {
40168
- const n = Pt(e), r = Rt(e);
40180
+ const n = Ct(e), r = kt(e);
40169
40181
  return n === null || r === null ? null : _0(Mc(n, r), t);
40170
40182
  }, CFe = Mo(function({ layer: t, shouldAnimateTransitions: n, intro: r }) {
40171
40183
  const o = r?.type === "wipe" ? r : null, i = Z(() => jE(t.params), [t.params]), s = Z(() => QAe(t.params), [t.params]), a = cn(t), l = Z(() => {
40172
40184
  const c = Ro(t.data, t.mapping, t.id), u = [];
40173
- return t.data.groupBy(Ct.group).forEach((d) => {
40185
+ return t.data.groupBy(Mt.group).forEach((d) => {
40174
40186
  const h = KE([...d], t.params.missingValues), f = i(h);
40175
40187
  if (!f) return;
40176
40188
  const p = h[0];
@@ -40309,7 +40321,7 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40309
40321
  vectorEffect: "non-scaling-stroke"
40310
40322
  });
40311
40323
  }, PFe = ({ layer: e, primary: t, companions: n }) => {
40312
- const r = cn(e), o = fr(t.observation), i = Z(() => KE([...e.data.filter(Ct.group, "eq", o)], e.params.missingValues), [
40324
+ const r = cn(e), o = fr(t.observation), i = Z(() => KE([...e.data.filter(Mt.group, "eq", o)], e.params.missingValues), [
40313
40325
  e.data,
40314
40326
  e.params.missingValues,
40315
40327
  o
@@ -40366,7 +40378,7 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40366
40378
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ m(Le, { children: e.map((t) => /* @__PURE__ */ m(ul, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
40367
40379
  getEditOutlineShapes: TFe,
40368
40380
  getOverlayAnchor: ({ observation: e }) => {
40369
- const t = Pt(e), n = Rt(e);
40381
+ const t = Ct(e), n = kt(e);
40370
40382
  return t === null || n === null ? null : {
40371
40383
  x: t,
40372
40384
  y: n
@@ -40395,7 +40407,7 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40395
40407
  motion: u
40396
40408
  });
40397
40409
  }, Kj = (e, t) => {
40398
- const n = Pt(e), r = Rt(e);
40410
+ const n = Ct(e), r = kt(e);
40399
40411
  return n === null || r === null ? null : t(n, r);
40400
40412
  }, Yj = ({ layer: e, panelRect: t, styleReaders: n, project: r }) => {
40401
40413
  const o = [];
@@ -40452,7 +40464,7 @@ var PS = 3, xFe = ({ layer: e, coordSystem: t, primary: n, panelRect: r }) => {
40452
40464
  project: Mc
40453
40465
  }),
40454
40466
  getOverlayAnchor: ({ observation: e }) => {
40455
- const t = Pt(e), n = Rt(e);
40467
+ const t = Ct(e), n = kt(e);
40456
40468
  return t === null || n === null ? null : {
40457
40469
  x: t,
40458
40470
  y: n
@@ -41481,7 +41493,7 @@ var N4e = lre((() => {
41481
41493
  s
41482
41494
  ]), P = cn(t), x = t.data.getFirst();
41483
41495
  if (!x) return null;
41484
- const M = P.get("stroke", x), _ = G4e(w, M), k = c4e(t, n), R = k ? Rt(x) : Pt(x);
41496
+ const M = P.get("stroke", x), _ = G4e(w, M), k = c4e(t, n), R = k ? kt(x) : Ct(x);
41485
41497
  return R === null ? null : /* @__PURE__ */ B("g", {
41486
41498
  "data-geom": "rule",
41487
41499
  className: l4e,
@@ -41686,7 +41698,7 @@ var N4e = lre((() => {
41686
41698
  }, Z4e = Mo(function({ layer: t, panelRect: n }) {
41687
41699
  const r = cn(t), o = Z(() => {
41688
41700
  const a = Ro(t.data, t.mapping, t.id), l = [];
41689
- return t.data.groupBy(Ct.group).forEach((c) => {
41701
+ return t.data.groupBy(Mt.group).forEach((c) => {
41690
41702
  const u = [...c], d = gK(u);
41691
41703
  if (!d) return;
41692
41704
  const h = u[0];
@@ -41747,7 +41759,7 @@ var N4e = lre((() => {
41747
41759
  }, vK = (e) => {
41748
41760
  const t = [];
41749
41761
  for (const o of e) {
41750
- const i = Pt(o), { innerRadius: s, outerRadius: a } = b1(o);
41762
+ const i = Ct(o), { innerRadius: s, outerRadius: a } = b1(o);
41751
41763
  i === null || s === null || a === null || t.push({
41752
41764
  angle: i,
41753
41765
  outer: ei(i, a),
@@ -41763,11 +41775,11 @@ var N4e = lre((() => {
41763
41775
  };
41764
41776
  }, eBe = ({ layer: e, panelRect: t }) => {
41765
41777
  const n = pK(t), r = [], o = [];
41766
- return e.data.groupBy(Ct.group).forEach((i) => {
41778
+ return e.data.groupBy(Mt.group).forEach((i) => {
41767
41779
  const s = [...i], [a] = s;
41768
41780
  if (a === void 0) return;
41769
41781
  if (s.length === 1) {
41770
- const u = Pt(a), d = Hn(a) ?? Rt(a);
41782
+ const u = Ct(a), d = Hn(a) ?? kt(a);
41771
41783
  u !== null && d !== null && o.push(mK(u, d, t));
41772
41784
  return;
41773
41785
  }
@@ -41789,7 +41801,7 @@ var N4e = lre((() => {
41789
41801
  const o = cn(e), i = fr(t.observation), s = o.get("fill", t.observation, "hovered"), { fillFor: a, defs: l } = ri({
41790
41802
  paints: [s],
41791
41803
  unitsPerPixel: hg(r)
41792
- }), c = Z(() => gK([...e.data.filter(Ct.group, "eq", i)]), [e.data, i]);
41804
+ }), c = Z(() => gK([...e.data.filter(Mt.group, "eq", i)]), [e.data, i]);
41793
41805
  if (!c) return null;
41794
41806
  const u = o.get("stroke", t.observation, "hovered") ?? Gt(s), d = o.get("alpha", t.observation, "hovered"), h = o.get("fillAlpha", t.observation, "hovered") * d, f = o.get("strokeAlpha", t.observation, "hovered") * d, { strokeWidth: p, strokeDasharray: g, strokeLinecap: v } = dl(o.get("dashArray", t.observation, "hovered"), o.get("strokeWidth", t.observation, "hovered"));
41795
41807
  return /* @__PURE__ */ B(Le, { children: [
@@ -41852,7 +41864,7 @@ var N4e = lre((() => {
41852
41864
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ m(N0, { companions: e }),
41853
41865
  getEditOutlineShapes: eBe,
41854
41866
  getOverlayAnchor: ({ observation: e }) => {
41855
- const t = Pt(e), n = Hn(e) ?? Rt(e);
41867
+ const t = Ct(e), n = Hn(e) ?? kt(e);
41856
41868
  if (t === null || n === null) return null;
41857
41869
  const { x: r, y: o } = wi(t, n);
41858
41870
  return {
@@ -42260,7 +42272,7 @@ var N4e = lre((() => {
42260
42272
  }, mBe = Mo(function({ layer: t }) {
42261
42273
  const n = cn(t), r = Z(() => {
42262
42274
  const o = Ro(t.data, t.mapping, t.id), i = [];
42263
- return t.data.groupBy(Ct.group).forEach((s) => {
42275
+ return t.data.groupBy(Mt.group).forEach((s) => {
42264
42276
  const a = [...s], l = SK(a);
42265
42277
  if (!l) return;
42266
42278
  const c = a[0];
@@ -42307,7 +42319,7 @@ var N4e = lre((() => {
42307
42319
  }, TK = (e) => {
42308
42320
  const t = [];
42309
42321
  for (const n of e) {
42310
- const r = Pt(n), o = Rt(n);
42322
+ const r = Ct(n), o = kt(n);
42311
42323
  r === null || o === null || t.push({
42312
42324
  angle: r,
42313
42325
  point: ei(r, o)
@@ -42316,11 +42328,11 @@ var N4e = lre((() => {
42316
42328
  return t.sort((n, r) => n.angle - r.angle), t.map((n) => n.point);
42317
42329
  }, gBe = ({ layer: e, panelRect: t, styleReaders: n }) => {
42318
42330
  const r = pK(t), o = [], i = [];
42319
- return e.data.groupBy(Ct.group).forEach((s) => {
42331
+ return e.data.groupBy(Mt.group).forEach((s) => {
42320
42332
  const a = [...s], [l] = a;
42321
42333
  if (l === void 0) return;
42322
42334
  if (a.length === 1) {
42323
- const u = Pt(l), d = Rt(l);
42335
+ const u = Ct(l), d = kt(l);
42324
42336
  u !== null && d !== null && i.push(mK(u, d, t));
42325
42337
  return;
42326
42338
  }
@@ -42337,7 +42349,7 @@ var N4e = lre((() => {
42337
42349
  size: 8
42338
42350
  }), o;
42339
42351
  }, vBe = ({ layer: e, primary: t, companions: n }) => {
42340
- const r = cn(e), o = fr(t.observation), i = Z(() => SK([...e.data.filter(Ct.group, "eq", o)]), [e.data, o]);
42352
+ const r = cn(e), o = fr(t.observation), i = Z(() => SK([...e.data.filter(Mt.group, "eq", o)]), [e.data, o]);
42341
42353
  if (!i) return null;
42342
42354
  const s = r.get("stroke", t.observation, "hovered"), a = r.get("alpha", t.observation, "hovered"), l = r.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: c, strokeDasharray: u, strokeLinecap: d } = dl(r.get("dashArray", t.observation, "hovered"), r.get("strokeWidth", t.observation, "hovered"), r.get("lineCap", t.observation, "hovered")), h = r.get("lineJoin", t.observation, "hovered");
42343
42355
  return /* @__PURE__ */ B(Le, { children: [
@@ -42388,7 +42400,7 @@ var N4e = lre((() => {
42388
42400
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ m(N0, { companions: e }),
42389
42401
  getEditOutlineShapes: gBe,
42390
42402
  getOverlayAnchor: ({ observation: e }) => {
42391
- const t = Pt(e), n = Rt(e);
42403
+ const t = Ct(e), n = kt(e);
42392
42404
  if (t === null || n === null) return null;
42393
42405
  const { x: r, y: o } = wi(t, n);
42394
42406
  return {
@@ -42435,7 +42447,7 @@ var N4e = lre((() => {
42435
42447
  project: wi
42436
42448
  }),
42437
42449
  getOverlayAnchor: ({ observation: e }) => {
42438
- const t = Pt(e), n = Rt(e);
42450
+ const t = Ct(e), n = kt(e);
42439
42451
  if (t === null || n === null) return null;
42440
42452
  const { x: r, y: o } = wi(t, n);
42441
42453
  return {
@@ -46296,7 +46308,7 @@ var VHe = 4, HHe = ({ renderer: e, layer: t, matchedLayer: n, overlayCandidates:
46296
46308
  coordType: "cartesian"
46297
46309
  })] });
46298
46310
  }, zHe = (e, t) => {
46299
- const n = e[Ct.group];
46311
+ const n = e[Mt.group];
46300
46312
  return `${String(n ?? "")}\0${t}`;
46301
46313
  }, WHe = ({ layer: e, coordSystem: t, panelRect: n }) => {
46302
46314
  const { primary: r, group: o, related: i } = sc(Pn((f) => ({
@@ -63883,7 +63895,7 @@ function nt(e, t) {
63883
63895
  return !1;
63884
63896
  }
63885
63897
  function Ob(e, t) {
63886
- if (!Mt(e)) return !1;
63898
+ if (!Pt(e)) return !1;
63887
63899
  const n = e;
63888
63900
  if (t.hasElement(n)) return !n.hasAttribute("data-trigger-disabled");
63889
63901
  for (const [, r] of t.entries()) if (nt(r, n)) return !r.hasAttribute("data-trigger-disabled");
@@ -65886,17 +65898,17 @@ function qx(e, t = {}) {
65886
65898
  }
65887
65899
  const ue = Zr(q), ae = `[${wm("inert")}]`;
65888
65900
  let ke = Array.from(vt(n.select("floatingElement")).querySelectorAll(ae));
65889
- const Ge = Mt(ue) ? ue.getRootNode() : null;
65901
+ const Ge = Pt(ue) ? ue.getRootNode() : null;
65890
65902
  nm(Ge) && (ke = ke.concat(Array.from(Ge.querySelectorAll(ae))));
65891
65903
  const We = n.context.triggerElements;
65892
65904
  if (ue && (We.hasElement(ue) || We.hasMatchingElement((tt) => nt(tt, ue)))) return;
65893
- let Ie = Mt(ue) ? ue : null;
65905
+ let Ie = Pt(ue) ? ue : null;
65894
65906
  for (; Ie && !Zi(Ie); ) {
65895
65907
  const tt = cs(Ie);
65896
- if (Zi(tt) || !Mt(tt)) break;
65908
+ if (Zi(tt) || !Pt(tt)) break;
65897
65909
  Ie = tt;
65898
65910
  }
65899
- if (ke.length && Mt(ue) && !LXe(ue) && !nt(ue, n.select("floatingElement")) && ke.every((tt) => !nt(Ie, tt))) return;
65911
+ if (ke.length && Pt(ue) && !LXe(ue) && !nt(ue, n.select("floatingElement")) && ke.every((tt) => !nt(Ie, tt))) return;
65900
65912
  if (on(ue) && !("touches" in q)) {
65901
65913
  const tt = Zi(ue), mt = Co(ue), Me = /auto|scroll/, rt = tt || Me.test(mt.overflowX), $e = tt || Me.test(mt.overflowY), dt = rt && ue.clientWidth > 0 && ue.scrollWidth > ue.clientWidth, wt = $e && ue.clientHeight > 0 && ue.scrollHeight > ue.clientHeight, It = mt.direction === "rtl", Je = wt && (It ? q.offsetX <= ue.offsetWidth - ue.clientWidth : q.offsetX > ue.clientWidth), Tt = dt && q.offsetY > ue.clientHeight;
65902
65914
  if (Je || Tt) return;
@@ -66763,7 +66775,7 @@ function yZ(e) {
66763
66775
  open: t,
66764
66776
  floatingId: o
66765
66777
  };
66766
- r.reference !== void 0 && (a.referenceElement = r.reference, a.domReferenceElement = Mt(r.reference) ? r.reference : null), r.floating !== void 0 && (a.floatingElement = r.floating), s.update(a);
66778
+ r.reference !== void 0 && (a.referenceElement = r.reference, a.domReferenceElement = Pt(r.reference) ? r.reference : null), r.floating !== void 0 && (a.floatingElement = r.floating), s.update(a);
66767
66779
  }, [
66768
66780
  t,
66769
66781
  o,
@@ -66788,16 +66800,16 @@ function vQe(e = {}) {
66788
66800
  ...s && { reference: s }
66789
66801
  }
66790
66802
  }), d = C.useCallback((P) => {
66791
- const x = Mt(P) ? {
66803
+ const x = Pt(P) ? {
66792
66804
  getBoundingClientRect: () => P.getBoundingClientRect(),
66793
66805
  getClientRects: () => P.getClientRects(),
66794
66806
  contextElement: P
66795
66807
  } : P;
66796
66808
  a(x), u.refs.setReference(x);
66797
66809
  }, [u.refs]), [h, f] = C.useState(null), [p, g] = C.useState(null);
66798
- o.useSyncedValue("referenceElement", h), o.useSyncedValue("domReferenceElement", Mt(h) ? h : null), o.useSyncedValue("floatingElement", p);
66810
+ o.useSyncedValue("referenceElement", h), o.useSyncedValue("domReferenceElement", Pt(h) ? h : null), o.useSyncedValue("floatingElement", p);
66799
66811
  const v = C.useCallback((P) => {
66800
- (Mt(P) || P === null) && (l.current = P, f(P)), (Mt(u.refs.reference.current) || u.refs.reference.current === null || P !== null && !Mt(P)) && u.refs.setReference(P);
66812
+ (Pt(P) || P === null) && (l.current = P, f(P)), (Pt(u.refs.reference.current) || u.refs.reference.current === null || P !== null && !Pt(P)) && u.refs.setReference(P);
66801
66813
  }, [u.refs, f]), y = C.useCallback((P) => {
66802
66814
  g(P), u.refs.setFloating(P);
66803
66815
  }, [u.refs]), b = C.useMemo(() => ({
@@ -66870,7 +66882,7 @@ function rI(e) {
66870
66882
  referenceElement: l,
66871
66883
  floatingElement: c
66872
66884
  };
66873
- Mt(l) && (h.domReferenceElement = l), d.state.positionReference === d.state.referenceElement && (h.positionReference = l), d.update(h);
66885
+ Pt(l) && (h.domReferenceElement = l), d.state.positionReference === d.state.referenceElement && (h.positionReference = l), d.update(h);
66874
66886
  }, [
66875
66887
  a,
66876
66888
  i,
@@ -66904,7 +66916,7 @@ function bZ(e, t = {}) {
66904
66916
  function h(f) {
66905
66917
  if (f.reason === "trigger-press" || f.reason === "escape-key") {
66906
66918
  const p = n.select("domReferenceElement");
66907
- Mt(p) && (l.current = p, a.current = !0);
66919
+ Pt(p) && (l.current = p, a.current = !0);
66908
66920
  }
66909
66921
  }
66910
66922
  return r.on("openchange", h), () => {
@@ -66926,7 +66938,7 @@ function bZ(e, t = {}) {
66926
66938
  a.current = !1, l.current = null;
66927
66939
  }
66928
66940
  const p = Zr(h.nativeEvent);
66929
- if (Mt(p)) {
66941
+ if (Pt(p)) {
66930
66942
  if (vT && !h.relatedTarget) {
66931
66943
  if (!u.current && !$x(p)) return;
66932
66944
  } else if (!_Xe(p)) return;
@@ -66942,7 +66954,7 @@ function bZ(e, t = {}) {
66942
66954
  },
66943
66955
  onBlur(h) {
66944
66956
  a.current = !1, l.current = null;
66945
- const f = h.relatedTarget, p = h.nativeEvent, g = Mt(f) && f.hasAttribute(wm("focus-guard")) && f.getAttribute("data-type") === "outside";
66957
+ const f = h.relatedTarget, p = h.nativeEvent, g = Pt(f) && f.hasAttribute(wm("focus-guard")) && f.getAttribute("data-type") === "outside";
66946
66958
  c.start(0, () => {
66947
66959
  const v = n.select("domReferenceElement"), y = Dr(v ? v.ownerDocument : document);
66948
66960
  !f && y === v || nt(o.current.floatingContext?.refs.floating.current, y) || nt(v, y) || g || Ob(f ?? y, n.context.triggerElements) || n.setOpen(!1, Ee(cT, p));
@@ -67015,7 +67027,7 @@ function iI(e, t = {}) {
67015
67027
  c,
67016
67028
  v
67017
67029
  ]), C.useEffect(() => v, [v]), ve(() => {
67018
- if (a && r && c.handleCloseOptions?.blockPointerEvents && f() && Mt(i) && o) {
67030
+ if (a && r && c.handleCloseOptions?.blockPointerEvents && f() && Pt(i) && o) {
67019
67031
  const w = i, S = o, A = vt(o), T = u?.nodesRef.current.find((x) => x.id === d)?.context?.elements.floating;
67020
67032
  T && (T.style.pointerEvents = "");
67021
67033
  const P = c.handleCloseOptions?.getScope?.() ?? c.pointerEventsScopeElement ?? T ?? w.closest("[data-rootownerid]") ?? A.body;
@@ -67089,7 +67101,7 @@ function Zx(e, t = {}) {
67089
67101
  const A = ge(() => ZQ(r.current.openEvent?.type, v.interactedInside)), T = ge((k) => Ob(k, n.context.triggerElements)), P = ge((k, R, E) => {
67090
67102
  const I = n.context.triggerElements;
67091
67103
  if (I.hasElement(R)) return !k || !nt(k, R);
67092
- if (!Mt(E)) return !1;
67104
+ if (!Pt(E)) return !1;
67093
67105
  const N = E;
67094
67106
  return I.hasMatchingElement((O) => nt(O, N)) && (!k || !nt(k, N));
67095
67107
  }), x = C.useCallback((k, R = !0) => {
@@ -67125,7 +67137,7 @@ function Zx(e, t = {}) {
67125
67137
  ]), C.useEffect(() => {
67126
67138
  if (!i) return;
67127
67139
  const k = d.current ?? (f ? n.select("domReferenceElement") : null);
67128
- if (!Mt(k)) return;
67140
+ if (!Pt(k)) return;
67129
67141
  function R(I) {
67130
67142
  if (v.openChangeTimeout.clear(), v.blockMouseMove = !1, l && !Vd(v.pointerType) || EF(w.current) > 0 && !cp(b.current, "open")) return;
67131
67143
  const N = cp(b.current, "open", v.pointerType), O = I.currentTarget ?? null, L = n.select("domReferenceElement"), F = O == null ? !1 : P(L, O, I.target), D = n.select("open"), $ = !D || F;
@@ -67699,7 +67711,7 @@ function tw(e = {}) {
67699
67711
  h = !0;
67700
67712
  return;
67701
67713
  }
67702
- if (M && Mt(w.relatedTarget) && nt(A, w.relatedTarget)) return;
67714
+ if (M && Pt(w.relatedTarget) && nt(A, w.relatedTarget)) return;
67703
67715
  function R() {
67704
67716
  return !!(u && qs(u.nodesRef.current, c).length > 0);
67705
67717
  }
@@ -69728,7 +69740,7 @@ function au(e = {}) {
69728
69740
  let h;
69729
69741
  if (n) {
69730
69742
  const f = r?.current;
69731
- Mt(f) && f.closest("label") != null ? h = t ?? null : h = a ?? s;
69743
+ Pt(f) && f.closest("label") != null ? h = t ?? null : h = a ?? s;
69732
69744
  } else if (t != null)
69733
69745
  u.current = !0, h = t;
69734
69746
  else if (u.current) h = s;
@@ -72481,7 +72493,7 @@ var Utt = /* @__PURE__ */ C.forwardRef(function(t, n) {
72481
72493
  le = -1;
72482
72494
  for (let re = 0; re < R.current.length; re += 1) {
72483
72495
  const ce = R.current[re];
72484
- if (Mt(ce)) {
72496
+ if (Pt(ce)) {
72485
72497
  const oe = Hee(ce), q = Math.abs(H[ne] - oe[ne]);
72486
72498
  (de === void 0 || q <= de) && (le = re, de = q);
72487
72499
  }
@@ -72489,7 +72501,7 @@ var Utt = /* @__PURE__ */ C.forwardRef(function(t, n) {
72489
72501
  }
72490
72502
  if (le > -1 && le !== W && U(le), l) {
72491
72503
  const ne = R.current[le];
72492
- if (Mt(ne)) {
72504
+ if (Pt(ne)) {
72493
72505
  const de = ne.getBoundingClientRect();
72494
72506
  K.current = de[O ? "height" : "width"] / 2;
72495
72507
  }
@@ -72557,7 +72569,7 @@ var Utt = /* @__PURE__ */ C.forwardRef(function(t, n) {
72557
72569
  "data-base-ui-slider-control": A ? "" : void 0,
72558
72570
  onPointerDown(H) {
72559
72571
  const W = L.current;
72560
- if (!W || s || H.defaultPrevented || !Mt(H.target) || H.button !== 0) return;
72572
+ if (!W || s || H.defaultPrevented || !Pt(H.target) || H.button !== 0) return;
72561
72573
  const le = jv(H, $);
72562
72574
  if (le != null) {
72563
72575
  j(le);
@@ -85602,7 +85614,7 @@ var npt = (e) => [...new Set(e)], rpt = (e) => ({
85602
85614
  stickers: e.stickers.length,
85603
85615
  pinnedNumbers: e.pinnedNumbers.length,
85604
85616
  comments: e.comments.length
85605
- }), opt = "", ipt = "1.9.0-beta.1792478311419", spt = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
85617
+ }), opt = "", ipt = "1.9.0-beta.1792506850788", spt = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
85606
85618
  function Jne() {
85607
85619
  return opt;
85608
85620
  }
@@ -85758,7 +85770,7 @@ export {
85758
85770
  Qvt as ElementsPanel,
85759
85771
  Tme as GEOM_EFFECTS_VOCABULARY,
85760
85772
  js as GRAPH_MODES,
85761
- Ct as GROUP_VARIABLES,
85773
+ Mt as GROUP_VARIABLES,
85762
85774
  ps as Geom,
85763
85775
  vyt as GeomCircle,
85764
85776
  yyt as GeomLine,
@@ -85924,11 +85936,11 @@ export {
85924
85936
  v7 as getStackRole,
85925
85937
  Wge as getStrokeWidth,
85926
85938
  Gge as getTileRectBounds,
85927
- Pt as getX,
85939
+ Ct as getX,
85928
85940
  qB as getXBand,
85929
85941
  $r as getXMax,
85930
85942
  xo as getXMin,
85931
- Rt as getY,
85943
+ kt as getY,
85932
85944
  XB as getYBand,
85933
85945
  Hn as getYMax,
85934
85946
  so as getYMin,