@iota-uz/sdk 0.29.0 → 0.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/chat-ui/index.js +2247 -2235
  2. package/dist/client-host/identity.d.ts +4 -4
  3. package/dist/client-host/identity.js +2 -2
  4. package/dist/lens/{CascadePanel-CCOzLuq0.js → CascadePanel-DEs04AOu.js} +1 -1
  5. package/dist/lens/{ChartDataEquivalent-jAEMAHLz.js → ChartDataEquivalent-y0Ja1lfd.js} +1 -1
  6. package/dist/lens/{ChartPanel-BM5BNY_0.js → ChartPanel-CkDA9y5c.js} +321 -320
  7. package/dist/lens/{CoveragePanel-D9dnY-z3.js → CoveragePanel-B_kLd22w.js} +6 -6
  8. package/dist/lens/{GaugePanel-Da_8U-va.js → GaugePanel-BDEEmz0J.js} +1 -1
  9. package/dist/lens/{MapPanel-C_5zKBAZ.js → MapPanel-DQ8ueGdc.js} +3 -3
  10. package/dist/lens/{MetricFlowPanel-CjIbdcGO.js → MetricFlowPanel-nZhDpP27.js} +2 -2
  11. package/dist/lens/{MetricHierarchyPanel-B2P_uTgk.js → MetricHierarchyPanel-CLp-X_7T.js} +10 -10
  12. package/dist/lens/{MetricRelationshipPanel-0d4fAcHP.js → MetricRelationshipPanel-5tAFw7YP.js} +9 -9
  13. package/dist/lens/{PrintReport-awUBISRB.js → PrintReport-BIw1Shm-.js} +5 -5
  14. package/dist/lens/{TablePanel-D46pk8E6.js → TablePanel-DiYUJNpq.js} +1 -1
  15. package/dist/lens/{adapter-BJKTlRCi.js → adapter-BPB6ITHL.js} +5055 -5049
  16. package/dist/lens/breakpoints.d.ts +1 -0
  17. package/dist/lens/breakpoints.d.ts.map +1 -1
  18. package/dist/lens/charts/echarts/adapter.d.ts.map +1 -1
  19. package/dist/lens/charts/echarts/options.d.ts +3 -2
  20. package/dist/lens/charts/echarts/options.d.ts.map +1 -1
  21. package/dist/lens/{dashboardEdit-KuYE7jYk.js → dashboardEdit-Ws5Y-sU5.js} +1 -1
  22. package/dist/lens/{index-C2oaf8ou.js → index-CPIuDkay.js} +537 -533
  23. package/dist/lens/{index-BHhPCIjl.js → index-Mzdz1KAK.js} +1 -1
  24. package/dist/lens/index.js +14 -14
  25. package/dist/lens/{install-ilsK_qly.js → install-BlXfYeDC.js} +1 -1
  26. package/dist/lens/{install-Bu88-uMj.js → install-CAPfK0sF.js} +1 -1
  27. package/dist/lens/{install-Y4ssavWy.js → install-CEH7nY0h.js} +1 -1
  28. package/dist/lens/{install-Ca0kMSB-.js → install-Ctdnkntc.js} +1 -1
  29. package/dist/lens/keys-DboqvsSZ.js +99 -0
  30. package/dist/lens/{metricViews-CY3ENGQy.js → metricViews-D4YyYuq9.js} +8 -8
  31. package/dist/lens/panels/ChartHost.d.ts +1 -0
  32. package/dist/lens/panels/ChartHost.d.ts.map +1 -1
  33. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  34. package/dist/lens/{prefetch-H6lk56fj.js → prefetch-CQn2TcqX.js} +2 -2
  35. package/dist/lens/{prefetchPanels-BM6WTBt-.js → prefetchPanels-CjawjdC_.js} +1 -1
  36. package/dist/lens/{print-DYkxBibF.js → print-DLWwd4pP.js} +1 -1
  37. package/dist/lens/{scales-COnESBiP.js → scales-BKnFdYip.js} +3 -3
  38. package/dist/sdk-identity.cjs +3 -3
  39. package/dist/sdk-identity.js +3 -3
  40. package/dist/sdk-identity.json +2 -2
  41. package/package.json +1 -1
  42. package/dist/lens/keys-B-YImOJ9.js +0 -92
@@ -19,7 +19,7 @@ function xd(e) {
19
19
  function Cd() {
20
20
  return ot(Cs);
21
21
  }
22
- function L_(e, t) {
22
+ function F_(e, t) {
23
23
  const n = t.definition;
24
24
  return n.source.id !== t.source.id || n.source.version !== t.source.version || !t.source.capabilities.views.includes(n.view) ? "incompatible" : n.revision !== e.definition.revision || n.source.id !== e.definition.source.id || n.source.version !== e.definition.source.version || t.source.revision !== e.source.revision || t.source.version !== e.source.version ? "update-available" : "current";
25
25
  }
@@ -4361,7 +4361,7 @@ function qe(e, t) {
4361
4361
  })();
4362
4362
  };
4363
4363
  }
4364
- const Cg = qe(() => [Gh(), Jh(), Qh(), Yh(), Xh(), em(), tm(), nm()], 14), Sg = qe(() => [rm(), am(), im(), om(), sm(), lm(), cm(), dm()], 14), sl = qe(() => [um(), fm(), hm()], 14), ll = qe(() => [mm(), gm()], 14), Qi = qe(() => pm(), 14), Mn = qe(() => [vm(), ym()], 12), xa = qe(() => bm(), 16), Qt = qe(() => wm(), 11), kn = qe(() => $m(), 14), ur = qe(() => [rl(), km(), _m(), xm()], 14), cl = qe(() => [Cm(), Sm()], 13), Ba = qe(() => Tm(), 13), bi = qe(() => [Pm(), Im()], 12), Tg = qe(() => [Em(), Rm()], 12), Pg = qe(() => [Dm(), Am()], 12), Ig = qe(() => al(), 12), la = qe(() => [Lm(), Fm(), Mm()], 20), F_ = qe(() => [il(), zm()], 12), M_ = qe(() => [jm(), Om(), Nm()], 12), z_ = qe(() => [Um(), Bm(), Zm(), Vm()], 12), j_ = qe(() => [qm(), Hm()], 12), O_ = qe(() => [Km(), Wm(), Gm()], 12), dl = qe(() => [Jm(), Qm(), Ym()], 14), N_ = qe(() => [Xm(), eg(), tg(), ng()], 12), U_ = qe(() => [rl(), rg()], 12), B_ = qe(() => [il(), ag()], 12), Eg = qe(() => [ol(), ig(), og()], 14), Z_ = qe(() => [sg(), lg()], 14), V_ = qe(() => [cg(), dg(), ug(), fg()], 14), Rg = qe(() => hg(), 14), Yi = qe(() => [ol(), mg()], 14), ul = qe(() => [gg(), pg(), vg()], 16), q_ = qe(() => [yg(), bg()], 16), Dg = qe(() => [al(), wg()], 16), Ag = qe(() => [$g(), kg(), _g(), xg()], 32), Lg = /^(\d{4})-(\d{2})-(\d{2})$/;
4364
+ const Cg = qe(() => [Gh(), Jh(), Qh(), Yh(), Xh(), em(), tm(), nm()], 14), Sg = qe(() => [rm(), am(), im(), om(), sm(), lm(), cm(), dm()], 14), sl = qe(() => [um(), fm(), hm()], 14), ll = qe(() => [mm(), gm()], 14), Qi = qe(() => pm(), 14), Mn = qe(() => [vm(), ym()], 12), xa = qe(() => bm(), 16), Qt = qe(() => wm(), 11), kn = qe(() => $m(), 14), ur = qe(() => [rl(), km(), _m(), xm()], 14), cl = qe(() => [Cm(), Sm()], 13), Ba = qe(() => Tm(), 13), bi = qe(() => [Pm(), Im()], 12), Tg = qe(() => [Em(), Rm()], 12), Pg = qe(() => [Dm(), Am()], 12), Ig = qe(() => al(), 12), la = qe(() => [Lm(), Fm(), Mm()], 20), M_ = qe(() => [il(), zm()], 12), z_ = qe(() => [jm(), Om(), Nm()], 12), j_ = qe(() => [Um(), Bm(), Zm(), Vm()], 12), O_ = qe(() => [qm(), Hm()], 12), N_ = qe(() => [Km(), Wm(), Gm()], 12), dl = qe(() => [Jm(), Qm(), Ym()], 14), U_ = qe(() => [Xm(), eg(), tg(), ng()], 12), B_ = qe(() => [rl(), rg()], 12), Z_ = qe(() => [il(), ag()], 12), Eg = qe(() => [ol(), ig(), og()], 14), V_ = qe(() => [sg(), lg()], 14), q_ = qe(() => [cg(), dg(), ug(), fg()], 14), Rg = qe(() => hg(), 14), Yi = qe(() => [ol(), mg()], 14), ul = qe(() => [gg(), pg(), vg()], 16), H_ = qe(() => [yg(), bg()], 16), Dg = qe(() => [al(), wg()], 16), Ag = qe(() => [$g(), kg(), _g(), xg()], 32), Lg = /^(\d{4})-(\d{2})-(\d{2})$/;
4365
4365
  function $t(e) {
4366
4366
  const t = Lg.exec(e);
4367
4367
  if (!t) return;
@@ -4720,7 +4720,7 @@ function qn(e) {
4720
4720
  return;
4721
4721
  }
4722
4722
  }
4723
- function H_(e, t, n, r) {
4723
+ function K_(e, t, n, r) {
4724
4724
  return Xi(e, {
4725
4725
  fields: Ir(t, n),
4726
4726
  variables: Xn(r),
@@ -4732,7 +4732,7 @@ function vl(e, t, n, r) {
4732
4732
  const a = ((l = e.encoding) == null ? void 0 : l.id) ?? t.encoding.id, i = a ? n.columns.findIndex(({ name: c }) => c === a) : -1, o = i >= 0 ? String(r[i]) : void 0;
4733
4733
  return e.children.find(({ key: c }) => c === o || !!(o && c.endsWith(`/${o}`)));
4734
4734
  }
4735
- function K_(e, t, n, r, a) {
4735
+ function W_(e, t, n, r, a) {
4736
4736
  const i = a ? vl(a, e, t, n) : void 0, o = yl(e, a, i);
4737
4737
  return o ? Xi(o, {
4738
4738
  fields: Ir(t, n),
@@ -4743,7 +4743,7 @@ function K_(e, t, n, r, a) {
4743
4743
  function yl(e, t, n) {
4744
4744
  return (n == null ? void 0 : n.action) ?? (n || !(t != null && t.children.length) ? e.actions.find(({ kind: r }) => r === "navigate_to_leaf" || r === "open_drawer") : void 0);
4745
4745
  }
4746
- function W_(e, t, n, r) {
4746
+ function G_(e, t, n, r) {
4747
4747
  return yl(e, r, r ? vl(r, e, t, n) : void 0);
4748
4748
  }
4749
4749
  const Gt = "_f", Pa = "_groupby";
@@ -5234,7 +5234,7 @@ function Tp(e, t, n) {
5234
5234
  }
5235
5235
  return Ar(e, t, n);
5236
5236
  }
5237
- function G_(e) {
5237
+ function J_(e) {
5238
5238
  return !e || e.kind !== "money" ? "" : e.symbol ?? e.currency ?? "";
5239
5239
  }
5240
5240
  function Pp(e, t, n) {
@@ -5286,7 +5286,7 @@ function Ar(e, t, n) {
5286
5286
  const a = new Intl.NumberFormat(n, Er(t.precision));
5287
5287
  return Zt(a.formatToParts(r), t.decimalSeparator);
5288
5288
  }
5289
- function J_(e, t) {
5289
+ function Q_(e, t) {
5290
5290
  if (!(t != null && t.compact) || t.kind !== "money" && t.kind !== "number") return;
5291
5291
  let n = 0, r = 1 / 0;
5292
5292
  for (const l of e) {
@@ -5687,21 +5687,21 @@ function Fp(e, t) {
5687
5687
  const n = new URL(e, t);
5688
5688
  return n.searchParams.delete(Ea), n.searchParams.delete(Rl), n.searchParams.delete(Dl), n.origin === t.origin ? `${n.pathname}${n.search}${n.hash}` : n.href;
5689
5689
  }
5690
- function Q_(e, t) {
5690
+ function Y_(e, t) {
5691
5691
  var r;
5692
5692
  const n = (r = qa(e).h) == null ? void 0 : r[t];
5693
5693
  return new Set(Array.isArray(n) ? n.filter((a) => typeof a == "string") : []);
5694
5694
  }
5695
- function Y_(e, t, n) {
5695
+ function X_(e, t, n) {
5696
5696
  const r = qa(e), a = { ...r.h };
5697
5697
  return n.size > 0 ? a[t] = [...n].sort() : delete a[t], Al(e, { ...r, h: a });
5698
5698
  }
5699
- function X_(e, t) {
5699
+ function ex(e, t) {
5700
5700
  var r;
5701
5701
  const n = (r = qa(e).t) == null ? void 0 : r[t];
5702
5702
  return Array.isArray(n) && typeof n[0] == "boolean" ? { regression: n[0], ...typeof n[1] == "number" ? { movingAverage: n[1] } : {} } : { regression: !1 };
5703
5703
  }
5704
- function ex(e, t, n) {
5704
+ function tx(e, t, n) {
5705
5705
  const r = qa(e), a = { ...r.t };
5706
5706
  return n.regression || n.movingAverage !== void 0 ? a[t] = [n.regression, n.movingAverage] : delete a[t], Al(e, { ...r, t: a });
5707
5707
  }
@@ -6310,7 +6310,7 @@ ${fe}`;
6310
6310
  dark: !1
6311
6311
  }, z = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), ve = xe(() => {
6312
6312
  let I, j = {};
6313
- const ne = import("./prefetch-H6lk56fj.js").then(({
6313
+ const ne = import("./prefetch-CQn2TcqX.js").then(({
6314
6314
  DocumentCache: re
6315
6315
  }) => (I = new re({
6316
6316
  capacity: 8,
@@ -6986,7 +6986,7 @@ ${fe}`;
6986
6986
  try {
6987
6987
  const {
6988
6988
  buildPrintReport: Te
6989
- } = await import("./print-DYkxBibF.js"), {
6989
+ } = await import("./print-DLWwd4pP.js"), {
6990
6990
  document: je,
6991
6991
  withheld: Ne
6992
6992
  } = Sd(i, (ke) => !Td(n, ke)), Ye = await Te(je, (ke, Ke = je) => {
@@ -7009,7 +7009,7 @@ ${fe}`;
7009
7009
  if (Ye.warnings.unshift(...Ne.map((ke) => {
7010
7010
  const Ke = Ma(n, ke) ?? "report-incompatible";
7011
7011
  return `${ao(Ke, ke.label, ce)}: ${Ll(Ke, ce)}`;
7012
- })), await import("./PrintReport-awUBISRB.js"), N(xt({
7012
+ })), await import("./PrintReport-BIw1Shm-.js"), N(xt({
7013
7013
  active: !0,
7014
7014
  status: "idle",
7015
7015
  report: Ye,
@@ -7478,7 +7478,7 @@ function Ql() {
7478
7478
  if (!e) throw new Error("usePanelFrames must be used inside DashboardRuntimeProvider");
7479
7479
  return (t) => e.get(t) ?? Hl;
7480
7480
  }
7481
- function tx() {
7481
+ function nx() {
7482
7482
  const e = ot(Nl);
7483
7483
  if (!e) throw new Error("usePanelPagination must be used inside DashboardRuntimeProvider");
7484
7484
  return e;
@@ -7526,7 +7526,7 @@ function Ft(e) {
7526
7526
  const t = Wa();
7527
7527
  return (n) => Ar(n, e, t());
7528
7528
  }
7529
- function nx(e, t) {
7529
+ function rx(e, t) {
7530
7530
  const n = Wa(), r = () => typeof t == "function" ? t() : t;
7531
7531
  return (a) => {
7532
7532
  const i = r();
@@ -7537,7 +7537,7 @@ function Yp(e) {
7537
7537
  const t = Wa();
7538
7538
  return (n) => Pp(n, e, t());
7539
7539
  }
7540
- function rx(e) {
7540
+ function ax(e) {
7541
7541
  const t = Wa();
7542
7542
  return (n) => Tp(n, e, t());
7543
7543
  }
@@ -8262,7 +8262,7 @@ function jv() {
8262
8262
  return ot(Ja);
8263
8263
  }
8264
8264
  const nc = lt(void 0);
8265
- function ax() {
8265
+ function ix() {
8266
8266
  return ot(nc);
8267
8267
  }
8268
8268
  const rc = lt(() => !0);
@@ -8793,7 +8793,7 @@ function gy(e) {
8793
8793
  function Zo(e) {
8794
8794
  return e.urlSource ? e.urlSource.kind === "field" : e.params.some((t) => t.source.kind === "field") || Object.values(e.payload).some((t) => t.kind === "field");
8795
8795
  }
8796
- function ix() {
8796
+ function ox() {
8797
8797
  const e = zn();
8798
8798
  return (t, n = {}) => {
8799
8799
  if (!t) return;
@@ -8953,7 +8953,7 @@ function co(e) {
8953
8953
  }), ae(t);
8954
8954
  }
8955
8955
  const $y = "--lens-text-faint", si = Bd;
8956
- function ox(e) {
8956
+ function sx(e) {
8957
8957
  if (typeof globalThis.document > "u" || typeof getComputedStyle != "function")
8958
8958
  return si;
8959
8959
  const t = globalThis.document.querySelector(".lens-root");
@@ -8985,7 +8985,7 @@ function Aa(e, t, { positional: n = !0, labels: r } = {}) {
8985
8985
  const a = Object.values(e.palette).filter((d) => d.trim() !== ""), i = a.length > 0 ? a : ky, o = (d) => d ? e.palette[d] ?? d : void 0, l = r ? _y(r, i.length) : void 0, c = (d) => (l == null ? void 0 : l.get(d)) ?? gc(d, i.length);
8986
8986
  return (d, h) => o(e.series[d]) ?? (n ? o(e.series[`${t.id}:${h}`]) : void 0) ?? i[c(d || String(h))] ?? t.accent;
8987
8987
  }
8988
- function sx(e, t, n, r = !0) {
8988
+ function lx(e, t, n, r = !0) {
8989
8989
  var c;
8990
8990
  const a = Di(n, t), i = Aa(e, t, { positional: r, labels: a }), o = /* @__PURE__ */ new Map(), l = (n == null ? void 0 : n.columns.findIndex((d) => d.name === t.encoding.series)) ?? -1;
8991
8991
  if (l >= 0 && n) {
@@ -9000,7 +9000,7 @@ function sx(e, t, n, r = !0) {
9000
9000
  }
9001
9001
  return (d, h) => o.get(d) ?? i(d, a.indexOf(d) >= 0 ? a.indexOf(d) : h);
9002
9002
  }
9003
- function lx(e, t, { colors: n, positional: r = !0, labels: a } = {}) {
9003
+ function cx(e, t, { colors: n, positional: r = !0, labels: a } = {}) {
9004
9004
  const i = Aa(e, t, { positional: r, labels: a }), o = (l) => {
9005
9005
  const c = l == null ? void 0 : l.trim();
9006
9006
  return c ? e.palette[c] ?? c : void 0;
@@ -9031,7 +9031,7 @@ function Cn(e, t, n = 0) {
9031
9031
  function vc(e, t) {
9032
9032
  return typeof e == "string" && e.trim() ? e : typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? String(e) : t;
9033
9033
  }
9034
- const cx = [
9034
+ const dx = [
9035
9035
  "label",
9036
9036
  "value",
9037
9037
  "previous",
@@ -9087,7 +9087,7 @@ function ir(e, t) {
9087
9087
  const n = pc(e, t);
9088
9088
  return n >= 0 ? n : "missing";
9089
9089
  }
9090
- function dx(e, t, n) {
9090
+ function ux(e, t, n) {
9091
9091
  if (t.rows.length === 0)
9092
9092
  return { kind: "ok", resolve: () => qo };
9093
9093
  const r = on(e, "id"), a = on(e, "value"), i = ir(t, r), o = ir(t, a);
@@ -9398,23 +9398,23 @@ function dn(e) {
9398
9398
  return (t) => $d(xs(e), t);
9399
9399
  }
9400
9400
  const Kt = dn(async () => ({
9401
- default: (await import("./ChartPanel-BM5BNY_0.js")).ChartPanel
9401
+ default: (await import("./ChartPanel-CkDA9y5c.js")).ChartPanel
9402
9402
  })), Zy = dn(async () => ({
9403
- default: (await import("./CascadePanel-CCOzLuq0.js").then((e) => e.C)).CascadePanel
9403
+ default: (await import("./CascadePanel-DEs04AOu.js").then((e) => e.C)).CascadePanel
9404
9404
  })), Vy = dn(async () => ({
9405
- default: (await import("./CoveragePanel-D9dnY-z3.js")).CoveragePanel
9405
+ default: (await import("./CoveragePanel-B_kLd22w.js")).CoveragePanel
9406
9406
  })), qy = dn(async () => ({
9407
- default: (await import("./GaugePanel-Da_8U-va.js")).GaugePanel
9407
+ default: (await import("./GaugePanel-BDEEmz0J.js")).GaugePanel
9408
9408
  })), Hy = dn(async () => ({
9409
- default: (await import("./MetricFlowPanel-CjIbdcGO.js")).MetricFlowPanel
9409
+ default: (await import("./MetricFlowPanel-nZhDpP27.js")).MetricFlowPanel
9410
9410
  })), Ky = dn(async () => ({
9411
- default: (await import("./MetricHierarchyPanel-B2P_uTgk.js")).MetricHierarchyPanel
9411
+ default: (await import("./MetricHierarchyPanel-CLp-X_7T.js")).MetricHierarchyPanel
9412
9412
  })), Wy = dn(async () => ({
9413
- default: (await import("./MetricRelationshipPanel-0d4fAcHP.js")).MetricRelationshipPanel
9413
+ default: (await import("./MetricRelationshipPanel-5tAFw7YP.js")).MetricRelationshipPanel
9414
9414
  })), Gy = dn(async () => ({
9415
- default: (await import("./MapPanel-C_5zKBAZ.js")).MapPanel
9415
+ default: (await import("./MapPanel-DQ8ueGdc.js")).MapPanel
9416
9416
  })), Jy = dn(async () => ({
9417
- default: (await import("./TablePanel-D46pk8E6.js")).TablePanel
9417
+ default: (await import("./TablePanel-DiYUJNpq.js")).TablePanel
9418
9418
  })), Qy = {
9419
9419
  stat: jy,
9420
9420
  pie: Kt,
@@ -10066,7 +10066,7 @@ function Wb(e, t, n) {
10066
10066
  const o = i.at(-1);
10067
10067
  return o && (o.current = !0), i;
10068
10068
  }
10069
- function ux(e, t) {
10069
+ function fx(e, t) {
10070
10070
  return e == null ? void 0 : e.children.find(({ key: n }) => n === t || n.endsWith(`/${t}`));
10071
10071
  }
10072
10072
  function uo(e, t, n) {
@@ -11168,9 +11168,12 @@ function Qo(e) {
11168
11168
  };
11169
11169
  }
11170
11170
  Ge(["click", "keydown"]);
11171
- const V0 = 884, Yo = `(max-width: ${V0}px)`, fx = 500;
11172
- var q0 = /* @__PURE__ */ p("<div class=lens-calendar data-view=days><div class=lens-calendar-panes></div><div aria-live=polite class=lens-visually-hidden role=status>"), H0 = /* @__PURE__ */ p("<div class=lens-calendar><div class=lens-calendar-jump><div class=lens-calendar-header><span class=lens-calendar-nav-group><button class=lens-calendar-nav type=button></button></span><button class=lens-calendar-month type=button></button><span class=lens-calendar-nav-group><button class=lens-calendar-nav type=button></button></span></div><div class=lens-calendar-jump-grid></div></div><div aria-live=polite class=lens-visually-hidden role=status>"), Xo = /* @__PURE__ */ p("<button class=lens-calendar-jump-cell type=button>"), K0 = /* @__PURE__ */ p("<div class=lens-calendar-pane><div class=lens-calendar-header><span class=lens-calendar-nav-group></span><button class=lens-calendar-month type=button></button><span class=lens-calendar-nav-group></span></div><div class=lens-calendar-grid role=grid><div class=lens-calendar-weekdays role=row>"), es = /* @__PURE__ */ p("<button class=lens-calendar-nav type=button>"), W0 = /* @__PURE__ */ p("<span class=lens-calendar-weekday role=columnheader>"), G0 = /* @__PURE__ */ p("<div class=lens-calendar-week role=row>"), J0 = /* @__PURE__ */ p("<span aria-hidden=true class=lens-calendar-day data-outside=true><span class=lens-calendar-day-label>"), Q0 = /* @__PURE__ */ p("<button class=lens-calendar-day role=gridcell type=button><span class=lens-calendar-day-label>");
11173
- const Y0 = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End"];
11171
+ const V0 = 884, Yo = `(max-width: ${V0}px)`, q0 = 500;
11172
+ function hx(e, t, n) {
11173
+ return (e === "pie" || e === "donut") && t !== void 0 && t < q0 && n !== "percent" && n !== "label";
11174
+ }
11175
+ var H0 = /* @__PURE__ */ p("<div class=lens-calendar data-view=days><div class=lens-calendar-panes></div><div aria-live=polite class=lens-visually-hidden role=status>"), K0 = /* @__PURE__ */ p("<div class=lens-calendar><div class=lens-calendar-jump><div class=lens-calendar-header><span class=lens-calendar-nav-group><button class=lens-calendar-nav type=button></button></span><button class=lens-calendar-month type=button></button><span class=lens-calendar-nav-group><button class=lens-calendar-nav type=button></button></span></div><div class=lens-calendar-jump-grid></div></div><div aria-live=polite class=lens-visually-hidden role=status>"), Xo = /* @__PURE__ */ p("<button class=lens-calendar-jump-cell type=button>"), W0 = /* @__PURE__ */ p("<div class=lens-calendar-pane><div class=lens-calendar-header><span class=lens-calendar-nav-group></span><button class=lens-calendar-month type=button></button><span class=lens-calendar-nav-group></span></div><div class=lens-calendar-grid role=grid><div class=lens-calendar-weekdays role=row>"), es = /* @__PURE__ */ p("<button class=lens-calendar-nav type=button>"), G0 = /* @__PURE__ */ p("<span class=lens-calendar-weekday role=columnheader>"), J0 = /* @__PURE__ */ p("<div class=lens-calendar-week role=row>"), Q0 = /* @__PURE__ */ p("<span aria-hidden=true class=lens-calendar-day data-outside=true><span class=lens-calendar-day-label>"), Y0 = /* @__PURE__ */ p("<button class=lens-calendar-day role=gridcell type=button><span class=lens-calendar-day-label>");
11176
+ const X0 = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End"];
11174
11177
  function ts(e) {
11175
11178
  return {
11176
11179
  year: e.year,
@@ -11181,7 +11184,7 @@ function ts(e) {
11181
11184
  function ns(e, t) {
11182
11185
  return e.year === t.year && e.month === t.month;
11183
11186
  }
11184
- function X0() {
11187
+ function ew() {
11185
11188
  const e = /* @__PURE__ */ new Date();
11186
11189
  return {
11187
11190
  year: e.getFullYear(),
@@ -11189,7 +11192,7 @@ function X0() {
11189
11192
  day: e.getDate()
11190
11193
  };
11191
11194
  }
11192
- function ew() {
11195
+ function tw() {
11193
11196
  var n, r;
11194
11197
  const [e, t] = K(((r = (n = globalThis.window) == null ? void 0 : n.matchMedia) == null ? void 0 : r.call(n, Yo).matches) ?? !1);
11195
11198
  return ue(() => {
@@ -11200,8 +11203,8 @@ function ew() {
11200
11203
  a.addEventListener("change", i), Re(() => a.removeEventListener("change", i));
11201
11204
  }), e;
11202
11205
  }
11203
- function tw(e) {
11204
- const t = Kg(e.locale), n = ew(), r = () => n() ? 1 : 2, a = () => e.today ?? X0(), i = Gr(e.draft.start ?? a(), e.min, e.max), [o, l] = K(i), [c, d] = K(ts(i)), [h, m] = K(), [g, b] = K(""), [v, k] = K("days"), [x, L] = K(i.year);
11206
+ function nw(e) {
11207
+ const t = Kg(e.locale), n = tw(), r = () => n() ? 1 : 2, a = () => e.today ?? ew(), i = Gr(e.draft.start ?? a(), e.min, e.max), [o, l] = K(i), [c, d] = K(ts(i)), [h, m] = K(), [g, b] = K(""), [v, k] = K("days"), [x, L] = K(i.year);
11205
11208
  let C, $ = !1;
11206
11209
  const T = () => Array.from({
11207
11210
  length: r()
@@ -11234,7 +11237,7 @@ function tw(e) {
11234
11237
  z.preventDefault(), S(o());
11235
11238
  return;
11236
11239
  }
11237
- Y0.includes(z.key) && (z.preventDefault(), _(Bg(o(), z.key, t)));
11240
+ X0.includes(z.key) && (z.preventDefault(), _(Bg(o(), z.key, t)));
11238
11241
  }, P = () => e.draft.start && e.draft.end && ut(e.draft.start, e.draft.end) < 0 ? {
11239
11242
  start: e.draft.start,
11240
11243
  end: e.draft.end
@@ -11283,7 +11286,7 @@ function tw(e) {
11283
11286
  },
11284
11287
  get fallback() {
11285
11288
  return (() => {
11286
- var z = H0(), W = z.firstChild, ve = W.firstChild, we = ve.firstChild, Fe = we.firstChild, Y = we.nextSibling, pe = Y.nextSibling, _e = pe.firstChild, te = ve.nextSibling, H = W.nextSibling;
11289
+ var z = K0(), W = z.firstChild, ve = W.firstChild, we = ve.firstChild, Fe = we.firstChild, Y = we.nextSibling, pe = Y.nextSibling, _e = pe.firstChild, te = ve.nextSibling, H = W.nextSibling;
11287
11290
  return Fe.$$click = () => L((X) => X - Se()), u(Fe, f(xa, {
11288
11291
  size: 12
11289
11292
  })), Y.$$click = () => k(v() === "months" ? "years" : "months"), u(Y, le), _e.$$click = () => L((X) => X + Se()), u(_e, f(Qt, {
@@ -11338,7 +11341,7 @@ function tw(e) {
11338
11341
  })();
11339
11342
  },
11340
11343
  get children() {
11341
- var z = q0(), W = z.firstChild, ve = W.nextSibling;
11344
+ var z = H0(), W = z.firstChild, ve = W.nextSibling;
11342
11345
  return Ce((we) => {
11343
11346
  C = we;
11344
11347
  }, W), W.addEventListener("mouseleave", () => m(void 0)), W.$$keydown = A, u(W, f(Me, {
@@ -11351,7 +11354,7 @@ function tw(e) {
11351
11354
  return !J() && Fe() === 0 ? (H = Y.flat().find((X) => X.inMonth && !w(X.date))) == null ? void 0 : H.date : void 0;
11352
11355
  };
11353
11356
  return (() => {
11354
- var H = K0(), X = H.firstChild, he = X.firstChild, Ie = he.nextSibling, $e = Ie.nextSibling, Ue = X.nextSibling, rt = Ue.firstChild;
11357
+ var H = W0(), X = H.firstChild, he = X.firstChild, Ie = he.nextSibling, $e = Ie.nextSibling, Ue = X.nextSibling, rt = Ue.firstChild;
11355
11358
  return u(he, (() => {
11356
11359
  var G = ae(() => Fe() === 0);
11357
11360
  return () => G() && (() => {
@@ -11371,24 +11374,24 @@ function tw(e) {
11371
11374
  })()), u(rt, f(Me, {
11372
11375
  each: Q,
11373
11376
  children: (G) => (() => {
11374
- var oe = W0();
11377
+ var oe = G0();
11375
11378
  return u(oe, G), oe;
11376
11379
  })()
11377
11380
  })), u(Ue, f(Me, {
11378
11381
  each: Y,
11379
11382
  children: (G) => (() => {
11380
- var oe = G0();
11383
+ var oe = J0();
11381
11384
  return u(oe, f(Me, {
11382
11385
  each: G,
11383
11386
  children: (ce, se) => {
11384
11387
  if (!ce.inMonth)
11385
11388
  return (() => {
11386
- var Ze = J0(), St = Ze.firstChild;
11389
+ var Ze = Q0(), St = Ze.firstChild;
11387
11390
  return u(St, () => ce.date.day), Ze;
11388
11391
  })();
11389
11392
  const de = () => Vg(ce.date, e.draft, h()), De = () => de() === "inRange" || de() === "preview", et = () => _e() ? jt(ce.date, o()) : jt(ce.date, te()), it = w(ce.date);
11390
11393
  return (() => {
11391
- var Ze = Q0(), St = Ze.firstChild;
11394
+ var Ze = Y0(), St = Ze.firstChild;
11392
11395
  return Ze.addEventListener("mouseenter", () => m(it ? void 0 : ce.date)), Ze.addEventListener("focus", () => l(ce.date)), Ze.$$click = () => S(ce.date), y(Ze, "aria-disabled", it || void 0), Ze.disabled = it, u(St, () => ce.date.day), M((nt) => {
11393
11396
  var en = Qr(e.locale, ce.date), tn = de() === "start" || de() === "end" || de() === "inRange", un = N(ce.date), We = De() ? q(G, se()) : void 0, _t = et() || void 0, Be = de() === "none" ? void 0 : de(), Qe = jt(ce.date, a()) ? !0 : void 0, yt = et() ? 0 : -1;
11394
11397
  return en !== nt.e && y(Ze, "aria-label", nt.e = en), tn !== nt.t && y(Ze, "aria-selected", nt.t = tn), un !== nt.a && y(Ze, "data-band", nt.a = un), We !== nt.o && y(Ze, "data-cap", nt.o = We), _t !== nt.i && y(Ze, "data-focused", nt.i = _t), Be !== nt.n && y(Ze, "data-state", nt.n = Be), Qe !== nt.s && y(Ze, "data-today", nt.s = Qe), yt !== nt.h && y(Ze, "tabindex", nt.h = yt), nt;
@@ -11420,7 +11423,7 @@ function tw(e) {
11420
11423
  });
11421
11424
  }
11422
11425
  Ge(["keydown", "click"]);
11423
- const nw = [
11426
+ const rw = [
11424
11427
  "a[href]",
11425
11428
  "button:not([disabled])",
11426
11429
  "input:not([disabled])",
@@ -11443,7 +11446,7 @@ function Pc(e, t, n, r, a) {
11443
11446
  return;
11444
11447
  }
11445
11448
  if (h.key !== "Tab" || !e()) return;
11446
- const m = [...e().querySelectorAll(nw)].filter((v) => v.offsetParent !== null || v === document.activeElement);
11449
+ const m = [...e().querySelectorAll(rw)].filter((v) => v.offsetParent !== null || v === document.activeElement);
11447
11450
  if (m.length === 0) {
11448
11451
  h.preventDefault(), e().focus();
11449
11452
  return;
@@ -11456,10 +11459,10 @@ function Pc(e, t, n, r, a) {
11456
11459
  });
11457
11460
  });
11458
11461
  }
11459
- var rw = /* @__PURE__ */ p("<span aria-hidden=true class=lens-filter-preset-icon>"), aw = /* @__PURE__ */ p("<div aria-hidden=true class=lens-filter-scrim>"), iw = /* @__PURE__ */ p('<div aria-modal=false role=dialog tabindex=-1><div class=lens-filter-popover-main><div class=lens-filter-range><label class=lens-filter-range-field><span class=lens-filter-range-caption></span><span class=lens-filter-range-input><input class=lens-filter-input inputmode=numeric type=text></span></label><span aria-hidden=true class=lens-filter-range-sep>—</span><label class=lens-filter-range-field><span class=lens-filter-range-caption></span><span class=lens-filter-range-input><input class=lens-filter-input inputmode=numeric type=text></span></label></div><div class=lens-filter-popover-footer><span aria-hidden=true class=lens-filter-summary-badge></span><span class=lens-filter-summary></span><button class="lens-filter-chip lens-filter-cancel"type=button></button><button class="lens-filter-chip lens-filter-apply"type=button>'), ow = /* @__PURE__ */ p("<div class=lens-period-filter role=group><button class=lens-filter-step type=button></button><button aria-haspopup=dialog class=lens-filter-trigger type=button><span class=lens-filter-trigger-label></span></button><button class=lens-filter-step type=button>"), rs = /* @__PURE__ */ p("<span class=lens-filter-preset-heading>"), sw = /* @__PURE__ */ p('<button class="lens-filter-preset lens-filter-preset-clear"type=button><span class=lens-filter-preset-label>'), lw = /* @__PURE__ */ p("<div class=lens-filter-popover-side>"), ci = /* @__PURE__ */ p("<button class=lens-filter-preset type=button><span class=lens-filter-preset-label>");
11460
- const cw = 8, Nn = 12;
11462
+ var aw = /* @__PURE__ */ p("<span aria-hidden=true class=lens-filter-preset-icon>"), iw = /* @__PURE__ */ p("<div aria-hidden=true class=lens-filter-scrim>"), ow = /* @__PURE__ */ p('<div aria-modal=false role=dialog tabindex=-1><div class=lens-filter-popover-main><div class=lens-filter-range><label class=lens-filter-range-field><span class=lens-filter-range-caption></span><span class=lens-filter-range-input><input class=lens-filter-input inputmode=numeric type=text></span></label><span aria-hidden=true class=lens-filter-range-sep>—</span><label class=lens-filter-range-field><span class=lens-filter-range-caption></span><span class=lens-filter-range-input><input class=lens-filter-input inputmode=numeric type=text></span></label></div><div class=lens-filter-popover-footer><span aria-hidden=true class=lens-filter-summary-badge></span><span class=lens-filter-summary></span><button class="lens-filter-chip lens-filter-cancel"type=button></button><button class="lens-filter-chip lens-filter-apply"type=button>'), sw = /* @__PURE__ */ p("<div class=lens-period-filter role=group><button class=lens-filter-step type=button></button><button aria-haspopup=dialog class=lens-filter-trigger type=button><span class=lens-filter-trigger-label></span></button><button class=lens-filter-step type=button>"), rs = /* @__PURE__ */ p("<span class=lens-filter-preset-heading>"), lw = /* @__PURE__ */ p('<button class="lens-filter-preset lens-filter-preset-clear"type=button><span class=lens-filter-preset-label>'), cw = /* @__PURE__ */ p("<div class=lens-filter-popover-side>"), ci = /* @__PURE__ */ p("<button class=lens-filter-preset type=button><span class=lens-filter-preset-label>");
11463
+ const dw = 8, Nn = 12;
11461
11464
  function Ic(e, t, n) {
11462
- const r = n.width - Nn, a = e.left + t.width <= r ? e.left : e.right - t.width, i = Math.min(Math.max(Nn, a), Math.max(Nn, n.width - t.width - Nn)), o = Math.min(e.bottom + cw, Math.max(Nn, n.height - t.height - Nn));
11465
+ const r = n.width - Nn, a = e.left + t.width <= r ? e.left : e.right - t.width, i = Math.min(Math.max(Nn, a), Math.max(Nn, n.width - t.width - Nn)), o = Math.min(e.bottom + dw, Math.max(Nn, n.height - t.height - Nn));
11463
11466
  return {
11464
11467
  left: i,
11465
11468
  top: o
@@ -11468,7 +11471,7 @@ function Ic(e, t, n) {
11468
11471
  function ha(e, t) {
11469
11472
  return e.start === t.start && e.end === t.end;
11470
11473
  }
11471
- function dw() {
11474
+ function uw() {
11472
11475
  const e = /* @__PURE__ */ new Date();
11473
11476
  return {
11474
11477
  year: e.getFullYear(),
@@ -11476,7 +11479,7 @@ function dw() {
11476
11479
  day: e.getDate()
11477
11480
  };
11478
11481
  }
11479
- const uw = {
11482
+ const fw = {
11480
11483
  thisMonth: ur,
11481
11484
  lastMonth: ur,
11482
11485
  last30days: Yi,
@@ -11487,13 +11490,13 @@ const uw = {
11487
11490
  function aa(e) {
11488
11491
  const t = e.glyph;
11489
11492
  return (() => {
11490
- var n = rw();
11493
+ var n = aw();
11491
11494
  return u(n, t ? f(t, {
11492
11495
  size: 15
11493
11496
  }) : null), n;
11494
11497
  })();
11495
11498
  }
11496
- function fw(e, t, n) {
11499
+ function hw(e, t, n) {
11497
11500
  const r = [];
11498
11501
  for (const a of Hg) {
11499
11502
  const i = qg(a.id, t);
@@ -11507,20 +11510,20 @@ function fw(e, t, n) {
11507
11510
  label: n(a.labelKey, a.fallback),
11508
11511
  value: o,
11509
11512
  past: a.past,
11510
- icon: uw[a.id]
11513
+ icon: fw[a.id]
11511
11514
  });
11512
11515
  }
11513
11516
  return r;
11514
11517
  }
11515
- function hw(e) {
11518
+ function mw(e) {
11516
11519
  return !e.presets || e.presets.length === 0 ? [] : e.presets.filter((t) => !(e.allowEmpty && t.value.start === "" && t.value.end === "")).map((t) => ({
11517
11520
  id: t.id,
11518
11521
  label: t.label,
11519
11522
  value: t.value
11520
11523
  }));
11521
11524
  }
11522
- function mw(e, t, n, r) {
11523
- return fw(e, t, n).filter((a) => !r.some((i) => ha(i.value, a.value)));
11525
+ function gw(e, t, n, r) {
11526
+ return hw(e, t, n).filter((a) => !r.some((i) => ha(i.value, a.value)));
11524
11527
  }
11525
11528
  function as(e) {
11526
11529
  const t = $t(e.start), n = $t(e.end);
@@ -11529,9 +11532,9 @@ function as(e) {
11529
11532
  end: n
11530
11533
  } : {};
11531
11534
  }
11532
- const gw = /^(\d{2})\.(\d{2})\.(\d{4})$/;
11535
+ const pw = /^(\d{2})\.(\d{2})\.(\d{4})$/;
11533
11536
  function Ec(e) {
11534
- const t = gw.exec(e.trim());
11537
+ const t = pw.exec(e.trim());
11535
11538
  if (!t) return;
11536
11539
  const n = Number(t[1]), r = Number(t[2]), a = Number(t[3]);
11537
11540
  if (!(r < 1 || r > 12) && !(n < 1 || n > An(a, r)))
@@ -11700,7 +11703,7 @@ function Dc(e) {
11700
11703
  start: Dt(te.start),
11701
11704
  end: Dt(te.end)
11702
11705
  });
11703
- }, Q = () => e.today ?? dw(), J = o ? hw(o) : [], U = () => o ? mw(o, Q(), a, J) : [], F = () => U().filter((te) => !te.past), V = () => U().filter((te) => te.past), ee = xe(() => {
11706
+ }, Q = () => e.today ?? uw(), J = o ? mw(o) : [], U = () => o ? gw(o, Q(), a, J) : [], F = () => U().filter((te) => !te.past), V = () => U().filter((te) => te.past), ee = xe(() => {
11704
11707
  const te = d();
11705
11708
  return !!(te.start && te.end && ut(te.start, te.end) <= 0);
11706
11709
  }), Z = a("filter.period.allTime", "All time"), le = () => $t($().start), Se = () => $t($().end), ge = () => $().start === "" && $().end === "" ? e.inheritLabel || Z : le() && Se() ? Ca(le(), Se()) : a("filter.period.custom", "Custom range"), z = () => o != null && o.min ? $t(o.min) : void 0, W = () => o != null && o.max ? $t(o.max) : void 0, ve = (te) => {
@@ -11710,7 +11713,7 @@ function Dc(e) {
11710
11713
  return H;
11711
11714
  }, we = () => ve(-1), Fe = () => ve(1), Y = (te, H, X) => te ? `${a(H, X)}: ${Ca(te.start, te.end)}` : a(H, X);
11712
11715
  return (() => {
11713
- var te = ow(), H = te.firstChild, X = H.nextSibling, he = X.firstChild, Ie = X.nextSibling;
11716
+ var te = sw(), H = te.firstChild, X = H.nextSibling, he = X.firstChild, Ie = X.nextSibling;
11714
11717
  return H.$$click = () => we() && P({
11715
11718
  start: Dt(we().start),
11716
11719
  end: Dt(we().end)
@@ -11740,10 +11743,10 @@ function Dc(e) {
11740
11743
  },
11741
11744
  get children() {
11742
11745
  return [(() => {
11743
- var $e = aw();
11746
+ var $e = iw();
11744
11747
  return $e.$$mousedown = () => T(!1), $e;
11745
11748
  })(), (() => {
11746
- var $e = iw(), Ue = $e.firstChild, rt = Ue.firstChild, G = rt.firstChild, oe = G.firstChild, ce = oe.nextSibling, se = ce.firstChild, de = G.nextSibling, De = de.nextSibling, et = De.firstChild, it = et.nextSibling, Ze = it.firstChild, St = rt.nextSibling, nt = St.firstChild, en = nt.nextSibling, tn = en.nextSibling, un = tn.nextSibling;
11749
+ var $e = ow(), Ue = $e.firstChild, rt = Ue.firstChild, G = rt.firstChild, oe = G.firstChild, ce = oe.nextSibling, se = ce.firstChild, de = G.nextSibling, De = de.nextSibling, et = De.firstChild, it = et.nextSibling, Ze = it.firstChild, St = rt.nextSibling, nt = St.firstChild, en = nt.nextSibling, tn = en.nextSibling, un = tn.nextSibling;
11747
11750
  return Ce((We) => {
11748
11751
  x = We;
11749
11752
  }, $e), Je($e, `lens-filter-popover${C ? " lens-filter-popover-enter" : ""}`), u($e, (() => {
@@ -11754,7 +11757,7 @@ function Dc(e) {
11754
11757
  // completed group as its last entry: it is the widest finished
11755
11758
  // period this dashboard can be read over, not a group of one.
11756
11759
  (() => {
11757
- var _t = lw();
11760
+ var _t = cw();
11758
11761
  return u(_t, f(Me, {
11759
11762
  each: J,
11760
11763
  children: (Be) => (() => {
@@ -11810,7 +11813,7 @@ function Dc(e) {
11810
11813
  return o == null ? void 0 : o.allowEmpty;
11811
11814
  },
11812
11815
  get children() {
11813
- var Be = sw(), Qe = Be.firstChild;
11816
+ var Be = lw(), Qe = Be.firstChild;
11814
11817
  return Be.$$click = () => P({
11815
11818
  start: "",
11816
11819
  end: ""
@@ -11820,7 +11823,7 @@ function Dc(e) {
11820
11823
  }
11821
11824
  }), null), _t;
11822
11825
  })();
11823
- })(), Ue), u(Ue, f(tw, {
11826
+ })(), Ue), u(Ue, f(nw, {
11824
11827
  get draft() {
11825
11828
  return d();
11826
11829
  },
@@ -11878,8 +11881,8 @@ function Dc(e) {
11878
11881
  })();
11879
11882
  }
11880
11883
  Ge(["click", "mousedown", "keydown"]);
11881
- var pw = /* @__PURE__ */ p("<span class=lens-compare-date><input inputmode=numeric type=text>"), vw = /* @__PURE__ */ p("<div class=lens-compare-custom><button class=lens-compare-apply type=button>"), yw = /* @__PURE__ */ p("<div class=lens-compare-popover><div class=lens-compare-options role=listbox>"), bw = /* @__PURE__ */ p("<div class=lens-compare-filter><button aria-haspopup=listbox class=lens-compare-trigger type=button><span class=lens-compare-trigger-label></span><span class=lens-compare-trigger-value>"), ww = /* @__PURE__ */ p('<div class="lens-facet-option lens-compare-option"role=option><span class=lens-compare-option-mark></span><span class=lens-facet-option-label>');
11882
- const $w = 500;
11884
+ var vw = /* @__PURE__ */ p("<span class=lens-compare-date><input inputmode=numeric type=text>"), yw = /* @__PURE__ */ p("<div class=lens-compare-custom><button class=lens-compare-apply type=button>"), bw = /* @__PURE__ */ p("<div class=lens-compare-popover><div class=lens-compare-options role=listbox>"), ww = /* @__PURE__ */ p("<div class=lens-compare-filter><button aria-haspopup=listbox class=lens-compare-trigger type=button><span class=lens-compare-trigger-label></span><span class=lens-compare-trigger-value>"), $w = /* @__PURE__ */ p('<div class="lens-facet-option lens-compare-option"role=option><span class=lens-compare-option-mark></span><span class=lens-facet-option-label>');
11885
+ const kw = 500;
11883
11886
  function is(e) {
11884
11887
  const t = Ee(), n = $t(e.value), [r, a] = K(n ? Li(n) : ""), [i, o] = K(!1);
11885
11888
  ue(() => {
@@ -11900,7 +11903,7 @@ function is(e) {
11900
11903
  o(!1), e.onChange(Dt(d));
11901
11904
  };
11902
11905
  return (() => {
11903
- var c = pw(), d = c.firstChild;
11906
+ var c = vw(), d = c.firstChild;
11904
11907
  return d.$$keydown = (h) => {
11905
11908
  h.key === "Enter" && (h.preventDefault(), l());
11906
11909
  }, d.addEventListener("change", (h) => {
@@ -11915,7 +11918,7 @@ function is(e) {
11915
11918
  }), M(() => d.value = r()), c;
11916
11919
  })();
11917
11920
  }
11918
- function kw(e) {
11921
+ function _w(e) {
11919
11922
  var J, U;
11920
11923
  const t = () => e.filter.compare, {
11921
11924
  setCompare: n
@@ -12021,7 +12024,7 @@ function kw(e) {
12021
12024
  return F.preventDefault(), O(k());
12022
12025
  }
12023
12026
  if (F.key.length !== 1 || F.altKey || F.ctrlKey || F.metaKey) return;
12024
- const Z = Date.now(), le = (Z - h.at > $w ? "" : h.text) + F.key.toLowerCase();
12027
+ const Z = Date.now(), le = (Z - h.at > kw ? "" : h.text) + F.key.toLowerCase();
12025
12028
  h.text = le, h.at = Z;
12026
12029
  const Se = A.find((ge) => ge.label.toLowerCase().startsWith(le));
12027
12030
  Se && (F.preventDefault(), B(Se.value));
@@ -12029,7 +12032,7 @@ function kw(e) {
12029
12032
  F.key !== "ArrowDown" && F.key !== "ArrowUp" || (F.preventDefault(), g(!0));
12030
12033
  }, Q = () => !L() || !$() || $() < L();
12031
12034
  return (() => {
12032
- var F = bw(), V = F.firstChild, ee = V.firstChild, Z = ee.nextSibling;
12035
+ var F = ww(), V = F.firstChild, ee = V.firstChild, Z = ee.nextSibling;
12033
12036
  return Ce((le) => {
12034
12037
  o = le;
12035
12038
  }, V), V.$$keydown = q, V.$$click = () => g((le) => !le), y(V, "aria-controls", i), u(ee, () => e.filter.label), u(Z, P), u(V, f(kn, {
@@ -12044,13 +12047,13 @@ function kw(e) {
12044
12047
  return _();
12045
12048
  },
12046
12049
  get children() {
12047
- var le = yw(), Se = le.firstChild;
12050
+ var le = bw(), Se = le.firstChild;
12048
12051
  return Ce((ge) => {
12049
12052
  l = ge;
12050
12053
  }, le), y(Se, "id", i), u(Se, f(Me, {
12051
12054
  each: A,
12052
12055
  children: (ge) => (() => {
12053
- var z = ww(), W = z.firstChild, ve = W.nextSibling;
12056
+ var z = $w(), W = z.firstChild, ve = W.nextSibling;
12054
12057
  return Ce((we) => {
12055
12058
  c.set(ge.value, we), ge.value === k() && (d = we);
12056
12059
  }, z), z.$$keydown = N, z.$$click = () => O(ge.value), u(W, (() => {
@@ -12071,7 +12074,7 @@ function kw(e) {
12071
12074
  return b() === "custom";
12072
12075
  },
12073
12076
  get children() {
12074
- var ge = vw(), z = ge.firstChild;
12077
+ var ge = yw(), z = ge.firstChild;
12075
12078
  return u(ge, f(is, {
12076
12079
  get label() {
12077
12080
  return r("filter.compare.start", "Comparison start");
@@ -12111,15 +12114,15 @@ function kw(e) {
12111
12114
  })();
12112
12115
  }
12113
12116
  Ge(["keydown", "click"]);
12114
- const _w = 6;
12117
+ const xw = 6;
12115
12118
  function os(e, t, n) {
12116
12119
  const r = typeof window > "u" ? "http://localhost/" : window.location.href, a = new URL(e, r), i = (t == null ? void 0 : t.trim()) || "q";
12117
12120
  return a.searchParams.delete(i), n.trim() && a.searchParams.set(i, n.trim()), `${a.pathname}${a.search}${a.hash}`;
12118
12121
  }
12119
- function xw(e) {
12122
+ function Cw(e) {
12120
12123
  return `${e.pathname}${e.search}${e.hash}`;
12121
12124
  }
12122
- function Cw(e) {
12125
+ function Sw(e) {
12123
12126
  const { document: t } = vt(), n = (e == null ? void 0 : e.optionsEndpoint) ?? "", r = e == null ? void 0 : e.searchParam, a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), [o, l] = K(""), [c, d] = K([]), [h, m] = K(""), [g, b] = K("idle"), v = (k) => {
12124
12127
  const x = os(n, r, k), L = a.get(x);
12125
12128
  if (L) return Promise.resolve(L);
@@ -12154,9 +12157,9 @@ function Cw(e) {
12154
12157
  });
12155
12158
  }), { applyTarget: h, options: c, search: o, setSearch: l, status: g };
12156
12159
  }
12157
- var Sw = /* @__PURE__ */ p("<input class=lens-facet-search type=search>"), Tw = /* @__PURE__ */ p("<div class=lens-filter-menu-pane><p class=lens-filter-menu-pane-title></p><div class=lens-facet-options>"), Pw = /* @__PURE__ */ p("<div>"), Iw = /* @__PURE__ */ p("<label class=lens-facet-option><input type=checkbox><span class=lens-facet-option-label>"), Ew = /* @__PURE__ */ p("<span aria-hidden=true class=lens-facet-option-bar>"), Rw = /* @__PURE__ */ p("<span class=lens-facet-option-count>"), Dw = /* @__PURE__ */ p("<div class=lens-filter-menu-popover role=dialog><div class=lens-filter-menu-body><div class=lens-filter-menu-pane-host></div></div><div class=lens-facet-actions><span class=lens-facet-staged></span><button class=lens-facet-apply type=button>"), Aw = /* @__PURE__ */ p("<div class=lens-filter-menu><button aria-haspopup=dialog class=lens-facet-trigger type=button><span>"), ss = /* @__PURE__ */ p("<span class=lens-facet-count>"), Lw = /* @__PURE__ */ p("<div class=lens-filter-menu-rail role=tablist>"), Fw = /* @__PURE__ */ p("<button class=lens-filter-menu-rail-item role=tab type=button><span class=lens-filter-menu-rail-label>"), Mw = /* @__PURE__ */ p("<button type=button>");
12158
- const zw = 3;
12159
- function jw(e, t) {
12160
+ var Tw = /* @__PURE__ */ p("<input class=lens-facet-search type=search>"), Pw = /* @__PURE__ */ p("<div class=lens-filter-menu-pane><p class=lens-filter-menu-pane-title></p><div class=lens-facet-options>"), Iw = /* @__PURE__ */ p("<div>"), Ew = /* @__PURE__ */ p("<label class=lens-facet-option><input type=checkbox><span class=lens-facet-option-label>"), Rw = /* @__PURE__ */ p("<span aria-hidden=true class=lens-facet-option-bar>"), Dw = /* @__PURE__ */ p("<span class=lens-facet-option-count>"), Aw = /* @__PURE__ */ p("<div class=lens-filter-menu-popover role=dialog><div class=lens-filter-menu-body><div class=lens-filter-menu-pane-host></div></div><div class=lens-facet-actions><span class=lens-facet-staged></span><button class=lens-facet-apply type=button>"), Lw = /* @__PURE__ */ p("<div class=lens-filter-menu><button aria-haspopup=dialog class=lens-facet-trigger type=button><span>"), ss = /* @__PURE__ */ p("<span class=lens-facet-count>"), Fw = /* @__PURE__ */ p("<div class=lens-filter-menu-rail role=tablist>"), Mw = /* @__PURE__ */ p("<button class=lens-filter-menu-rail-item role=tab type=button><span class=lens-filter-menu-rail-label>"), zw = /* @__PURE__ */ p("<button type=button>");
12161
+ const jw = 3;
12162
+ function Ow(e, t) {
12160
12163
  const n = typeof window > "u" ? "http://localhost/" : window.location.href, r = new URL(e || n, n), a = new URL(r.href);
12161
12164
  a.searchParams.delete(Gt);
12162
12165
  for (const i of r.searchParams.getAll(Gt)) {
@@ -12165,16 +12168,16 @@ function jw(e, t) {
12165
12168
  }
12166
12169
  for (const [i, o] of t)
12167
12170
  for (const l of o) a.searchParams.append(Gt, `${i}:${l}`);
12168
- return xw(a);
12171
+ return Cw(a);
12169
12172
  }
12170
- function Ow(e) {
12173
+ function Nw(e) {
12171
12174
  const t = Ee(), n = e.filter.facet, {
12172
12175
  applyTarget: r,
12173
12176
  options: a,
12174
12177
  search: i,
12175
12178
  setSearch: o,
12176
12179
  status: l
12177
- } = Cw(n), c = (n == null ? void 0 : n.dimension) ?? "";
12180
+ } = Sw(n), c = (n == null ? void 0 : n.dimension) ?? "";
12178
12181
  let d;
12179
12182
  ue(() => {
12180
12183
  const b = r();
@@ -12189,9 +12192,9 @@ function Ow(e) {
12189
12192
  });
12190
12193
  const h = () => e.draft ?? new Set(a().filter((b) => b.selected).map((b) => b.value)), m = () => Math.max(0, ...a().map(({
12191
12194
  count: b
12192
- }) => b ?? 0)), g = () => a().length >= _w || i().trim() !== "";
12195
+ }) => b ?? 0)), g = () => a().length >= xw || i().trim() !== "";
12193
12196
  return (() => {
12194
- var b = Tw(), v = b.firstChild, k = v.nextSibling;
12197
+ var b = Pw(), v = b.firstChild, k = v.nextSibling;
12195
12198
  return Ce((x) => {
12196
12199
  d = x;
12197
12200
  }, b), u(v, () => e.filter.label), u(b, f(R, {
@@ -12199,7 +12202,7 @@ function Ow(e) {
12199
12202
  return g();
12200
12203
  },
12201
12204
  get children() {
12202
- var x = Sw();
12205
+ var x = Tw();
12203
12206
  return x.addEventListener("change", (L) => o(L.target.value)), M((L) => {
12204
12207
  var C = t("filter.facet.search", "Search options"), $ = t("filter.facet.searchIn", "Search {facet}", {
12205
12208
  facet: e.filter.label ?? ""
@@ -12216,7 +12219,7 @@ function Ow(e) {
12216
12219
  },
12217
12220
  get fallback() {
12218
12221
  return (() => {
12219
- var x = Pw();
12222
+ var x = Iw();
12220
12223
  return u(x, (() => {
12221
12224
  var L = ae(() => l() === "loading");
12222
12225
  return () => L() ? t("filter.facet.loading", "Loading options…") : ae(() => l() === "error")() ? t("filter.facet.error", "Options could not be loaded") : t("filter.facet.empty", "No options");
@@ -12229,16 +12232,16 @@ function Ow(e) {
12229
12232
  return a();
12230
12233
  },
12231
12234
  children: (x) => {
12232
- const L = () => h().has(x.value), C = m() > 0 && (x.count ?? 0) > 0 ? Math.max(zw, Math.floor((x.count ?? 0) * 100 / m())) : 0;
12235
+ const L = () => h().has(x.value), C = m() > 0 && (x.count ?? 0) > 0 ? Math.max(jw, Math.floor((x.count ?? 0) * 100 / m())) : 0;
12233
12236
  return (() => {
12234
- var $ = Iw(), T = $.firstChild, E = T.nextSibling;
12237
+ var $ = Ew(), T = $.firstChild, E = T.nextSibling;
12235
12238
  return u($, C > 0 && (() => {
12236
- var w = Ew();
12239
+ var w = Rw();
12237
12240
  return dt(w, "width", `${C}%`), w;
12238
12241
  })(), T), T.addEventListener("change", () => e.onToggle(c, x.value, h())), u(E, () => x.label), u($, (() => {
12239
12242
  var w = ae(() => (x.count ?? 0) > 0);
12240
12243
  return () => w() && (() => {
12241
- var D = Rw();
12244
+ var D = Dw();
12242
12245
  return u(D, () => x.count), D;
12243
12246
  })();
12244
12247
  })(), null), M(() => y(E, "title", x.label)), M(() => T.checked = L()), $;
@@ -12281,7 +12284,7 @@ function Ac(e) {
12281
12284
  ee.has(F) ? ee.delete(F) : ee.add(F), D(U, ee);
12282
12285
  }, S = () => new Map([...v()].filter(([U]) => C().has(U))), A = () => [...S().values()].reduce((U, F) => U + F.size, 0), P = () => [...S().keys()].map((U) => x().get(U)).find(Boolean) ?? "", O = () => {
12283
12286
  if (S().size === 0 || !P()) return;
12284
- const U = S(), F = jw(P(), U);
12287
+ const U = S(), F = Ow(P(), U);
12285
12288
  a(), e.onApplyURL ? e.onApplyURL(F, U) : n(F);
12286
12289
  }, B = () => e.filters.length === 1, N = () => {
12287
12290
  var U;
@@ -12298,7 +12301,7 @@ function Ac(e) {
12298
12301
  return e.filters.length > 0;
12299
12302
  },
12300
12303
  get children() {
12301
- var U = Aw(), F = U.firstChild, V = F.firstChild;
12304
+ var U = Lw(), F = U.firstChild, V = F.firstChild;
12302
12305
  return Ce((ee) => {
12303
12306
  i.current = ee;
12304
12307
  }, U), Ce((ee) => {
@@ -12323,13 +12326,13 @@ function Ac(e) {
12323
12326
  return d();
12324
12327
  },
12325
12328
  get children() {
12326
- var ee = Dw(), Z = ee.firstChild, le = Z.firstChild, Se = Z.nextSibling, ge = Se.firstChild, z = ge.nextSibling;
12329
+ var ee = Aw(), Z = ee.firstChild, le = Z.firstChild, Se = Z.nextSibling, ge = Se.firstChild, z = ge.nextSibling;
12327
12330
  return Ce((W) => {
12328
12331
  o.current = W;
12329
12332
  }, ee), y(ee, "id", r), u(Z, (() => {
12330
12333
  var W = ae(() => !B());
12331
12334
  return () => W() && (() => {
12332
- var ve = Lw();
12335
+ var ve = Fw();
12333
12336
  return u(ve, f(Me, {
12334
12337
  get each() {
12335
12338
  return e.filters;
@@ -12341,7 +12344,7 @@ function Ac(e) {
12341
12344
  return v().has(Fe) && C().has(Fe) ? ((_e = v().get(Fe)) == null ? void 0 : _e.size) ?? 0 : ((H = (te = we.facet) == null ? void 0 : te.selections) == null ? void 0 : H.length) ?? 0;
12342
12345
  };
12343
12346
  return (() => {
12344
- var _e = Fw(), te = _e.firstChild;
12347
+ var _e = Mw(), te = _e.firstChild;
12345
12348
  return _e.$$click = () => b(we.id), u(te, () => we.label), u(_e, (() => {
12346
12349
  var H = ae(() => Y() > 0);
12347
12350
  return () => H() && (() => {
@@ -12361,7 +12364,7 @@ function Ac(e) {
12361
12364
  return E();
12362
12365
  },
12363
12366
  keyed: !0,
12364
- children: (W) => f(Ow, {
12367
+ children: (W) => f(Nw, {
12365
12368
  get draft() {
12366
12369
  var ve;
12367
12370
  return ae(() => {
@@ -12378,7 +12381,7 @@ function Ac(e) {
12378
12381
  })), u(Se, (() => {
12379
12382
  var W = ae(() => !!Q());
12380
12383
  return () => W() && (() => {
12381
- var ve = Mw();
12384
+ var ve = zw();
12382
12385
  return ve.$$click = () => D(q(), /* @__PURE__ */ new Set()), u(ve, () => t("filter.facet.clear", "Clear")), ve;
12383
12386
  })();
12384
12387
  })(), z), z.$$click = O, u(z, () => t("filter.facet.apply", "Apply")), M((W) => {
@@ -12400,8 +12403,8 @@ function Ac(e) {
12400
12403
  });
12401
12404
  }
12402
12405
  Ge(["click"]);
12403
- var Nw = /* @__PURE__ */ p("<span class=lens-segmented-label>"), Uw = /* @__PURE__ */ p('<div class=lens-segmented-filter><div class="lens-filter lens-segmented-track"role=group>'), Bw = /* @__PURE__ */ p("<button class=lens-filter-chip type=button>");
12404
- function Zw(e) {
12406
+ var Uw = /* @__PURE__ */ p("<span class=lens-segmented-label>"), Bw = /* @__PURE__ */ p('<div class=lens-segmented-filter><div class="lens-filter lens-segmented-track"role=group>'), Zw = /* @__PURE__ */ p("<button class=lens-filter-chip type=button>");
12407
+ function Vw(e) {
12405
12408
  const t = e.filter.segmented, {
12406
12409
  values: n,
12407
12410
  setSegmented: r
@@ -12409,13 +12412,13 @@ function Zw(e) {
12409
12412
  return f(R, {
12410
12413
  when: t,
12411
12414
  get children() {
12412
- var i = Uw(), o = i.firstChild;
12415
+ var i = Bw(), o = i.firstChild;
12413
12416
  return u(i, f(R, {
12414
12417
  get when() {
12415
12418
  return e.filter.label;
12416
12419
  },
12417
12420
  get children() {
12418
- var l = Nw();
12421
+ var l = Uw();
12419
12422
  return u(l, () => e.filter.label), l;
12420
12423
  }
12421
12424
  }), o), u(o, f(Me, {
@@ -12423,7 +12426,7 @@ function Zw(e) {
12423
12426
  return t.options;
12424
12427
  },
12425
12428
  children: (l) => (() => {
12426
- var c = Bw();
12429
+ var c = Zw();
12427
12430
  return c.$$click = () => r(e.filter, l.value), u(c, () => l.label), M(() => y(c, "aria-pressed", l.value === ap(t, n))), c;
12428
12431
  })()
12429
12432
  })), M((l) => {
@@ -12439,23 +12442,23 @@ function Zw(e) {
12439
12442
  }
12440
12443
  Ge(["click"]);
12441
12444
  const Lc = lt();
12442
- function Vw() {
12445
+ function qw() {
12443
12446
  return ot(Lc);
12444
12447
  }
12445
- var qw = /* @__PURE__ */ p("<button type=button class=lens-context-action data-testid=context-inherit>"), Hw = /* @__PURE__ */ p("<button type=button class=lens-context-action data-testid=context-reset>"), Kw = /* @__PURE__ */ p("<button type=button class=lens-context-action>"), Ww = /* @__PURE__ */ p("<p class=lens-context-error role=alert>"), Gw = /* @__PURE__ */ p("<div class=lens-scoped-controls>"), Fc = /* @__PURE__ */ p("<span class=lens-active-filter-chip><span>"), Jw = /* @__PURE__ */ p("<p role=status data-testid=context-conflict>"), ls = /* @__PURE__ */ p("<p role=status>"), Qw = /* @__PURE__ */ p("<p role=status data-testid=context-unsupported>: "), Yw = /* @__PURE__ */ p("<div data-testid=effective-context><p> · <!> · "), Xw = /* @__PURE__ */ p("<p>: <!> · "), e$ = /* @__PURE__ */ p("<span class=lens-facet-count>"), t$ = /* @__PURE__ */ p('<button class="lens-facet-trigger lens-context-trigger"type=button><span>'), n$ = /* @__PURE__ */ p("<div class=lens-context-toolbar>"), r$ = /* @__PURE__ */ p("<a class=lens-context-action data-testid=context-back>"), a$ = /* @__PURE__ */ p("<div class=lens-context-panel role=region><div class=lens-context-editor><p class=lens-context-editor-title>"), i$ = /* @__PURE__ */ p("<div class=lens-context-editor><p class=lens-context-editor-title>: ");
12448
+ var Hw = /* @__PURE__ */ p("<button type=button class=lens-context-action data-testid=context-inherit>"), Kw = /* @__PURE__ */ p("<button type=button class=lens-context-action data-testid=context-reset>"), Ww = /* @__PURE__ */ p("<button type=button class=lens-context-action>"), Gw = /* @__PURE__ */ p("<p class=lens-context-error role=alert>"), Jw = /* @__PURE__ */ p("<div class=lens-scoped-controls>"), Fc = /* @__PURE__ */ p("<span class=lens-active-filter-chip><span>"), Qw = /* @__PURE__ */ p("<p role=status data-testid=context-conflict>"), ls = /* @__PURE__ */ p("<p role=status>"), Yw = /* @__PURE__ */ p("<p role=status data-testid=context-unsupported>: "), Xw = /* @__PURE__ */ p("<div data-testid=effective-context><p> · <!> · "), e$ = /* @__PURE__ */ p("<p>: <!> · "), t$ = /* @__PURE__ */ p("<span class=lens-facet-count>"), n$ = /* @__PURE__ */ p('<button class="lens-facet-trigger lens-context-trigger"type=button><span>'), r$ = /* @__PURE__ */ p("<div class=lens-context-toolbar>"), a$ = /* @__PURE__ */ p("<a class=lens-context-action data-testid=context-back>"), i$ = /* @__PURE__ */ p("<div class=lens-context-panel role=region><div class=lens-context-editor><p class=lens-context-editor-title>"), o$ = /* @__PURE__ */ p("<div class=lens-context-editor><p class=lens-context-editor-title>: ");
12446
12449
  function cs(e, t, n) {
12447
12450
  var r, a;
12448
12451
  return t === "dashboard" ? e.dashboard : t === "card" ? ((r = e.cards) == null ? void 0 : r[n]) ?? {} : ((a = e.sections) == null ? void 0 : a[n]) ?? {};
12449
12452
  }
12450
12453
  const Mc = 'button:not(:disabled):not([aria-disabled="true"]), input:not(:disabled), a[href]';
12451
- function o$(e) {
12454
+ function s$(e) {
12452
12455
  const t = e.ownerDocument.activeElement;
12453
12456
  return !t || t === e.ownerDocument.body || !t.isConnected;
12454
12457
  }
12455
- const di = ".lens-filter-trigger", s$ = ".lens-facet-trigger";
12458
+ const di = ".lens-filter-trigger", l$ = ".lens-facet-trigger";
12456
12459
  function ds(e, t) {
12457
12460
  var n;
12458
- !e.isConnected || !o$(e) || (n = e.querySelector(t) ?? e.querySelector(Mc)) == null || n.focus();
12461
+ !e.isConnected || !s$(e) || (n = e.querySelector(t) ?? e.querySelector(Mc)) == null || n.focus();
12459
12462
  }
12460
12463
  function Fi(e) {
12461
12464
  const {
@@ -12469,12 +12472,12 @@ function Fi(e) {
12469
12472
  return n();
12470
12473
  },
12471
12474
  keyed: !0,
12472
- children: (a) => a && f(l$, Oi(e, {
12475
+ children: (a) => a && f(c$, Oi(e, {
12473
12476
  focus: r
12474
12477
  }))
12475
12478
  });
12476
12479
  }
12477
- function l$(e) {
12480
+ function c$(e) {
12478
12481
  let t;
12479
12482
  ln(() => {
12480
12483
  const E = e.focus.pending;
@@ -12545,13 +12548,13 @@ function l$(e) {
12545
12548
  values: A
12546
12549
  }))
12547
12550
  };
12548
- }, s$);
12549
- }, L = xe(() => c.value().constraints ?? []), C = e.scope === "dashboard" ? Vw() : void 0, $ = () => f(R, {
12551
+ }, l$);
12552
+ }, L = xe(() => c.value().constraints ?? []), C = e.scope === "dashboard" ? qw() : void 0, $ = () => f(R, {
12550
12553
  get when() {
12551
12554
  return !d();
12552
12555
  },
12553
12556
  get children() {
12554
- var E = qw();
12557
+ var E = Hw();
12555
12558
  return E.$$click = () => v((w) => ({
12556
12559
  ...w,
12557
12560
  period: e.scope === "dashboard" ? {
@@ -12564,7 +12567,7 @@ function l$(e) {
12564
12567
  return c.restorable();
12565
12568
  },
12566
12569
  get children() {
12567
- var E = Hw();
12570
+ var E = Kw();
12568
12571
  return E.$$click = () => {
12569
12572
  c.reset(), c.dirty() && c.apply(), n(di);
12570
12573
  }, u(E, () => a("filter.context.reset", "Restore saved filters")), E;
@@ -12572,7 +12575,7 @@ function l$(e) {
12572
12575
  }), f(R, {
12573
12576
  when: l,
12574
12577
  get children() {
12575
- var E = Kw();
12578
+ var E = Ww();
12576
12579
  return E.$$click = () => {
12577
12580
  c.saving() || c.saveDefaults().catch(() => {
12578
12581
  });
@@ -12580,7 +12583,7 @@ function l$(e) {
12580
12583
  }
12581
12584
  })];
12582
12585
  return (() => {
12583
- var E = Gw();
12586
+ var E = Jw();
12584
12587
  return Ce((w) => {
12585
12588
  t = w;
12586
12589
  }, E), u(E, f(Dc, {
@@ -12640,7 +12643,7 @@ function l$(e) {
12640
12643
  return c.error();
12641
12644
  },
12642
12645
  get children() {
12643
- var w = Ww();
12646
+ var w = Gw();
12644
12647
  return u(w, () => a("filter.context.saveFailed", "Filter defaults could not be saved")), w;
12645
12648
  }
12646
12649
  }), null), M(() => y(E, "data-testid", `context-controls-${e.scope}-${e.id}`)), E;
@@ -12689,7 +12692,7 @@ function Oc(e, t) {
12689
12692
  };
12690
12693
  }
12691
12694
  const Nc = (e) => !e || e.mode === "reports";
12692
- function c$(e) {
12695
+ function d$(e) {
12693
12696
  return e.period.origin.scope !== "dashboard" || e.restrictions.some((t) => t.origin.scope !== "dashboard") || e.conflicts.length > 0 || e.unsupported.length > 0 || Object.values(e.unsupportedOperations ?? {}).some((t) => t.length > 0);
12694
12697
  }
12695
12698
  function Uc(e, t, n, r) {
@@ -12712,7 +12715,7 @@ function Uc(e, t, n, r) {
12712
12715
  const h = ((b = l === "section" ? e.value.sections : e.value.cards) == null ? void 0 : b[c]) ?? {}, m = l === "section" ? `${r("filter.context.scope.section", "Section")} · ` : "";
12713
12716
  return [...Nc(h.period) ? [] : [{
12714
12717
  key: `${l}:period`,
12715
- label: m + d$(h.period, t, {
12718
+ label: m + u$(h.period, t, {
12716
12719
  scope: l,
12717
12720
  id: c
12718
12721
  }, r),
@@ -12724,7 +12727,7 @@ function Uc(e, t, n, r) {
12724
12727
  }))];
12725
12728
  });
12726
12729
  }
12727
- function d$(e, t, n, r) {
12730
+ function u$(e, t, n, r) {
12728
12731
  const a = t.period.origin.scope === n.scope && t.period.origin.id === n.id ? {
12729
12732
  start: t.period.start,
12730
12733
  end: t.period.end
@@ -12735,7 +12738,7 @@ const Bc = (e) => {
12735
12738
  var t;
12736
12739
  return (t = e.input.layers.find((n) => n.origin.scope === "section")) == null ? void 0 : t.origin.id;
12737
12740
  };
12738
- function u$(e) {
12741
+ function f$(e) {
12739
12742
  const t = Ee(), n = (a) => {
12740
12743
  switch (a) {
12741
12744
  case "report":
@@ -12757,7 +12760,7 @@ function u$(e) {
12757
12760
  return i ? `${n(a.scope)}: ${i}` : n(a.scope);
12758
12761
  };
12759
12762
  return (() => {
12760
- var a = Yw(), i = a.firstChild, o = i.firstChild, l = o.nextSibling;
12763
+ var a = Xw(), i = a.firstChild, o = i.firstChild, l = o.nextSibling;
12761
12764
  return l.nextSibling, u(i, (() => {
12762
12765
  var c = ae(() => !!e.context.period.start);
12763
12766
  return () => c() ? `${e.context.period.start} – ${e.context.period.end}` : t("filter.period.allTime", "All time");
@@ -12766,7 +12769,7 @@ function u$(e) {
12766
12769
  return e.context.restrictions;
12767
12770
  },
12768
12771
  children: (c) => (() => {
12769
- var d = Xw(), h = d.firstChild, m = h.nextSibling;
12772
+ var d = e$(), h = d.firstChild, m = h.nextSibling;
12770
12773
  return m.nextSibling, u(d, () => {
12771
12774
  var g;
12772
12775
  return ((g = e.labels) == null ? void 0 : g[c.dimension]) || c.dimension;
@@ -12780,7 +12783,7 @@ function u$(e) {
12780
12783
  return e.context.conflicts.length;
12781
12784
  },
12782
12785
  get children() {
12783
- var c = Jw();
12786
+ var c = Qw();
12784
12787
  return u(c, () => t("filter.context.conflict", "No data for this combination of filters")), c;
12785
12788
  }
12786
12789
  }), null), u(a, f(R, {
@@ -12806,7 +12809,7 @@ function u$(e) {
12806
12809
  return e.context.unsupported.length;
12807
12810
  },
12808
12811
  get children() {
12809
- var c = Qw(), d = c.firstChild;
12812
+ var c = Yw(), d = c.firstChild;
12810
12813
  return u(c, () => t("filter.context.unsupported", "This report does not support these filters"), d), u(c, () => e.context.unsupported.map((h) => {
12811
12814
  var m;
12812
12815
  return ((m = e.labels) == null ? void 0 : m[h.dimension]) || h.dimension;
@@ -12821,7 +12824,7 @@ function u$(e) {
12821
12824
  }), a;
12822
12825
  })();
12823
12826
  }
12824
- function f$(e, t) {
12827
+ function h$(e, t) {
12825
12828
  return {
12826
12829
  open: e,
12827
12830
  setOpen: t,
@@ -12829,10 +12832,10 @@ function f$(e, t) {
12829
12832
  trigger: {}
12830
12833
  };
12831
12834
  }
12832
- function h$(e, t, n) {
12835
+ function m$(e, t, n) {
12833
12836
  return e ? !e.readOnly || t.input.layers.some((r) => r.origin.scope === "group") || Uc(e, t, n, (r, a) => a).length > 0 : !1;
12834
12837
  }
12835
- function m$(e) {
12838
+ function g$(e) {
12836
12839
  const {
12837
12840
  document: t
12838
12841
  } = vt(), {
@@ -12843,7 +12846,7 @@ function m$(e) {
12843
12846
  return a();
12844
12847
  },
12845
12848
  children: (l) => (() => {
12846
- var c = n$();
12849
+ var c = r$();
12847
12850
  return u(c, f(R, {
12848
12851
  get when() {
12849
12852
  return o();
@@ -12859,7 +12862,7 @@ function m$(e) {
12859
12862
  }, pl(l().url, h);
12860
12863
  };
12861
12864
  return (() => {
12862
- var h = r$();
12865
+ var h = a$();
12863
12866
  return h.$$click = (m) => {
12864
12867
  l().readOnly || m.metaKey || m.ctrlKey || m.shiftKey || m.altKey || (m.preventDefault(), n(d()));
12865
12868
  }, u(h, () => r("filter.context.back", "Back to previous selection")), M(() => y(h, "href", d())), h;
@@ -12879,7 +12882,7 @@ function m$(e) {
12879
12882
  return !l().readOnly;
12880
12883
  },
12881
12884
  get children() {
12882
- var d = t$(), h = d.firstChild;
12885
+ var d = n$(), h = d.firstChild;
12883
12886
  return Ce((m) => {
12884
12887
  e.disclosure.trigger.current = m;
12885
12888
  }, d), d.$$click = () => e.disclosure.setOpen(!e.disclosure.open()), u(d, f(dl, {
@@ -12889,7 +12892,7 @@ function m$(e) {
12889
12892
  return i().length > 0;
12890
12893
  },
12891
12894
  get children() {
12892
- var m = e$();
12895
+ var m = t$();
12893
12896
  return u(m, () => i().length), m;
12894
12897
  }
12895
12898
  }), null), u(d, f(kn, {
@@ -12907,7 +12910,7 @@ function m$(e) {
12907
12910
  })()
12908
12911
  });
12909
12912
  }
12910
- function g$(e) {
12913
+ function p$(e) {
12911
12914
  const {
12912
12915
  document: t
12913
12916
  } = vt(), n = Ee(), r = () => t.contextEditor, a = (c, d) => (t.filters ?? []).filter((h) => {
@@ -12931,10 +12934,10 @@ function g$(e) {
12931
12934
  });
12932
12935
  }), [f(R, {
12933
12936
  get when() {
12934
- return c$(e.context);
12937
+ return d$(e.context);
12935
12938
  },
12936
12939
  get children() {
12937
- return f(u$, {
12940
+ return f(f$, {
12938
12941
  class: "lens-context-info-live",
12939
12942
  get context() {
12940
12943
  return e.context;
@@ -12958,7 +12961,7 @@ function g$(e) {
12958
12961
  return ae(() => !!(e.disclosure.open() && r() && !r().readOnly))() ? r() : void 0;
12959
12962
  },
12960
12963
  children: (c) => (() => {
12961
- var d = a$(), h = d.firstChild, m = h.firstChild;
12964
+ var d = i$(), h = d.firstChild, m = h.firstChild;
12962
12965
  return Ce((g) => {
12963
12966
  l = g;
12964
12967
  }, d), u(d, f(R, {
@@ -12966,7 +12969,7 @@ function g$(e) {
12966
12969
  return i();
12967
12970
  },
12968
12971
  children: (g) => (() => {
12969
- var b = i$(), v = b.firstChild, k = v.firstChild;
12972
+ var b = o$(), v = b.firstChild, k = v.firstChild;
12970
12973
  return u(v, () => n("filter.context.section", "Whole section"), k), u(v, () => {
12971
12974
  var x;
12972
12975
  return ((x = c().originLabels) == null ? void 0 : x[`section:${g()}`]) || g();
@@ -13012,9 +13015,9 @@ function g$(e) {
13012
13015
  })];
13013
13016
  }
13014
13017
  Ge(["click"]);
13015
- var p$ = /* @__PURE__ */ p('<div class=lens-toolbar-overflow><button class="lens-facet-trigger lens-toolbar-overflow-trigger"data-testid=toolbar-overflow type=button></button><div class=lens-toolbar-overflow-panel data-testid=toolbar-overflow-panel role=group>'), v$ = /* @__PURE__ */ p("<div class=lens-filter-bar-chips>"), y$ = /* @__PURE__ */ p("<div class=lens-filter-bar role=group><div class=lens-dashboard-scope>"), b$ = /* @__PURE__ */ p("<p class=lens-dashboard-subtitle>"), w$ = /* @__PURE__ */ p("<a class=lens-facet-active-chip><span>"), $$ = /* @__PURE__ */ p("<button class=lens-facet-clear type=button>");
13018
+ var v$ = /* @__PURE__ */ p('<div class=lens-toolbar-overflow><button class="lens-facet-trigger lens-toolbar-overflow-trigger"data-testid=toolbar-overflow type=button></button><div class=lens-toolbar-overflow-panel data-testid=toolbar-overflow-panel role=group>'), y$ = /* @__PURE__ */ p("<div class=lens-filter-bar-chips>"), b$ = /* @__PURE__ */ p("<div class=lens-filter-bar role=group><div class=lens-dashboard-scope>"), w$ = /* @__PURE__ */ p("<p class=lens-dashboard-subtitle>"), $$ = /* @__PURE__ */ p("<a class=lens-facet-active-chip><span>"), k$ = /* @__PURE__ */ p("<button class=lens-facet-clear type=button>");
13016
13019
  const us = 'button:not(:disabled), a[href], input:not(:disabled), [tabindex]:not([tabindex="-1"])';
13017
- function k$(e) {
13020
+ function _$(e) {
13018
13021
  const t = Ee(), n = Lt(), [r, a] = K(!1), [i, o] = K(!1);
13019
13022
  let l, c, d;
13020
13023
  const h = (m) => {
@@ -13043,7 +13046,7 @@ function k$(e) {
13043
13046
  document.addEventListener("pointerdown", m), Re(() => document.removeEventListener("pointerdown", m));
13044
13047
  }), // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- Escape closes the disclosure from any control inside it.
13045
13048
  (() => {
13046
- var m = p$(), g = m.firstChild, b = g.nextSibling;
13049
+ var m = v$(), g = m.firstChild, b = g.nextSibling;
13047
13050
  return Ce((v) => {
13048
13051
  l = v;
13049
13052
  }, m), m.$$keydown = (v) => {
@@ -13077,9 +13080,9 @@ function ma(e) {
13077
13080
  get today() {
13078
13081
  return e.today;
13079
13082
  }
13080
- }) : n.kind === "compare" && n.compare ? f(kw, {
13083
+ }) : n.kind === "compare" && n.compare ? f(_w, {
13081
13084
  filter: n
13082
- }) : n.kind === "segmented" && n.segmented ? f(Zw, {
13085
+ }) : n.kind === "segmented" && n.segmented ? f(Vw, {
13083
13086
  filter: n
13084
13087
  }) : null
13085
13088
  }), ae(() => ae(() => t().length > 0)() && f(Ac, {
@@ -13088,7 +13091,7 @@ function ma(e) {
13088
13091
  }
13089
13092
  }))];
13090
13093
  }
13091
- function _$(e) {
13094
+ function x$(e) {
13092
13095
  var $, T, E, w, D;
13093
13096
  const {
13094
13097
  filters: t,
@@ -13117,7 +13120,7 @@ function _$(e) {
13117
13120
  removeUrl: _.removeUrl
13118
13121
  }))], m = r.resetFiltersUrl ? Fp(r.resetFiltersUrl, new URL(window.location.href)) : void 0, g = m && (((D = r.activeFilters) == null ? void 0 : D.length) ?? 0) > 0 ? m : r.resetFiltersUrl ? void 0 : c, [b, v] = K(), k = (_) => !!e.compact && _.kind === "compare", x = (_) => _.filter((S) => !k(S)), L = (_) => _.filter(k), C = i.filter((_) => _.kind !== "period" && _.kind !== "facet");
13119
13122
  return (() => {
13120
- var _ = y$(), S = _.firstChild;
13123
+ var _ = b$(), S = _.firstChild;
13121
13124
  return u(S, f(Lc.Provider, {
13122
13125
  get value() {
13123
13126
  return e.compact ? b : void 0;
@@ -13159,7 +13162,7 @@ function _$(e) {
13159
13162
  return e.compact;
13160
13163
  },
13161
13164
  get children() {
13162
- return f(k$, {
13165
+ return f(_$, {
13163
13166
  panel: v,
13164
13167
  get children() {
13165
13168
  return f(ma, {
@@ -13176,7 +13179,7 @@ function _$(e) {
13176
13179
  }), null), u(S, (() => {
13177
13180
  var A = ae(() => !!e.subtitle);
13178
13181
  return () => A() && (() => {
13179
- var P = b$();
13182
+ var P = w$();
13180
13183
  return u(P, () => e.subtitle), P;
13181
13184
  })();
13182
13185
  })(), null), u(_, f(R, {
@@ -13184,11 +13187,11 @@ function _$(e) {
13184
13187
  return h.length > 0 || g;
13185
13188
  },
13186
13189
  get children() {
13187
- var A = v$();
13190
+ var A = y$();
13188
13191
  return u(A, f(Me, {
13189
13192
  each: h,
13190
13193
  children: (P) => (() => {
13191
- var O = w$(), B = O.firstChild;
13194
+ var O = $$(), B = O.firstChild;
13192
13195
  return mt(O, "click", o(P.removeUrl), !0), u(B, () => P.label), u(O, f(Mn, {
13193
13196
  "aria-hidden": "true"
13194
13197
  }), null), M((N) => {
@@ -13200,7 +13203,7 @@ function _$(e) {
13200
13203
  }), O;
13201
13204
  })()
13202
13205
  }), null), u(A, g && (() => {
13203
- var P = $$();
13206
+ var P = k$();
13204
13207
  return mt(P, "click", o(g), !0), u(P, () => a("filter.facet.clearAll", "Clear all")), P;
13205
13208
  })(), null), A;
13206
13209
  }
@@ -13208,8 +13211,8 @@ function _$(e) {
13208
13211
  })();
13209
13212
  }
13210
13213
  Ge(["keydown", "click"]);
13211
- var x$ = /* @__PURE__ */ p("<p class=lens-context-error role=alert>"), C$ = /* @__PURE__ */ p('<div class=lens-report-version data-status=update-available role=status><p></p><div class=lens-report-version-actions><button type=button class="lens-context-action lens-report-version-update"></button><button type=button class=lens-context-action>'), S$ = /* @__PURE__ */ p('<div class="lens-panel-state lens-report-unavailable"role=alert><p>');
13212
- function T$(e) {
13214
+ var C$ = /* @__PURE__ */ p("<p class=lens-context-error role=alert>"), S$ = /* @__PURE__ */ p('<div class=lens-report-version data-status=update-available role=status><p></p><div class=lens-report-version-actions><button type=button class="lens-context-action lens-report-version-update"></button><button type=button class=lens-context-action>'), T$ = /* @__PURE__ */ p('<div class="lens-panel-state lens-report-unavailable"role=alert><p>');
13215
+ function P$(e) {
13213
13216
  const t = Nr(), n = Br(), r = Ee(), [a, i] = K(!1), [o, l] = K(!1), [c, d] = K(!1), h = () => {
13214
13217
  var k;
13215
13218
  return (k = t == null ? void 0 : t.status) == null ? void 0 : k.call(t, e.placementId);
@@ -13244,7 +13247,7 @@ function T$(e) {
13244
13247
  return ae(() => !!(!m() && (h() === "update-available" || o() || c())))() && !a();
13245
13248
  },
13246
13249
  get children() {
13247
- var k = C$(), x = k.firstChild, L = x.nextSibling, C = L.firstChild, $ = C.nextSibling;
13250
+ var k = S$(), x = k.firstChild, L = x.nextSibling, C = L.firstChild, $ = C.nextSibling;
13248
13251
  return Ce((T) => {
13249
13252
  g = T;
13250
13253
  }, k), u(x, () => r("report.version.updateAvailable", "A newer version of this report is available.")), C.$$click = () => void v(), u(C, () => r("report.version.update", "Update report")), $.$$click = () => {
@@ -13255,7 +13258,7 @@ function T$(e) {
13255
13258
  return c();
13256
13259
  },
13257
13260
  get children() {
13258
- var T = x$();
13261
+ var T = C$();
13259
13262
  return u(T, () => r("report.version.updateFailed", "The report could not be updated. The figures shown are still the opened version.")), T;
13260
13263
  }
13261
13264
  }), null), M((T) => {
@@ -13272,7 +13275,7 @@ function T$(e) {
13272
13275
  return m();
13273
13276
  },
13274
13277
  children: (k) => (() => {
13275
- var x = S$(), L = x.firstChild;
13278
+ var x = T$(), L = x.firstChild;
13276
13279
  return u(L, () => Ll(k(), r)), M((C) => {
13277
13280
  var $ = `report-version-${e.placementId}`, T = Fl(k());
13278
13281
  return $ !== C.e && y(x, "data-testid", C.e = $), T !== C.t && y(x, "data-status", C.t = T), C;
@@ -13284,8 +13287,8 @@ function T$(e) {
13284
13287
  })];
13285
13288
  }
13286
13289
  Ge(["click"]);
13287
- var P$ = /* @__PURE__ */ p('<div class="lens-export-menu lens-report-menu-list"role=menu tabindex=-1>'), I$ = /* @__PURE__ */ p('<span class="lens-export-message lens-export-message-error"role=alert>'), E$ = /* @__PURE__ */ p('<div class="lens-export-control lens-report-menu"><button aria-haspopup=menu class="lens-export-button lens-icon-button lens-report-menu-button"type=button>'), R$ = /* @__PURE__ */ p("<button class=lens-export-menu-item role=menuitem type=button>");
13288
- function D$(e, t) {
13290
+ var I$ = /* @__PURE__ */ p('<div class="lens-export-menu lens-report-menu-list"role=menu tabindex=-1>'), E$ = /* @__PURE__ */ p('<span class="lens-export-message lens-export-message-error"role=alert>'), R$ = /* @__PURE__ */ p('<div class="lens-export-control lens-report-menu"><button aria-haspopup=menu class="lens-export-button lens-icon-button lens-report-menu-button"type=button>'), D$ = /* @__PURE__ */ p("<button class=lens-export-menu-item role=menuitem type=button>");
13291
+ function A$(e, t) {
13289
13292
  switch (e) {
13290
13293
  case "open":
13291
13294
  return t("report.action.open", "Open report");
@@ -13299,7 +13302,7 @@ function D$(e, t) {
13299
13302
  return t("report.action.remove", "Remove from dashboard");
13300
13303
  }
13301
13304
  }
13302
- function A$(e) {
13305
+ function L$(e) {
13303
13306
  const t = [...globalThis.document.querySelectorAll("[data-report-placement]")], n = e ? t.indexOf(e) : -1, r = n < 0 ? [] : [...t.slice(n + 1), ...t.slice(0, n).reverse()], a = e == null ? void 0 : e.dataset.reportPlacement;
13304
13307
  return () => {
13305
13308
  const i = globalThis.document.activeElement;
@@ -13308,7 +13311,7 @@ function A$(e) {
13308
13311
  l == null || l.focus();
13309
13312
  };
13310
13313
  }
13311
- function L$(e) {
13314
+ function F$(e) {
13312
13315
  const t = Nr(), n = Ee(), r = () => Ps(t, e.placementId, {
13313
13316
  context: e.context,
13314
13317
  unavailable: e.unavailable
@@ -13329,7 +13332,7 @@ function L$(e) {
13329
13332
  var _, S, A;
13330
13333
  const E = (_ = t == null ? void 0 : t.actions) == null ? void 0 : _[T];
13331
13334
  if (!E || a()) return;
13332
- const w = (S = L.current) == null ? void 0 : S.closest("[data-report-placement]"), D = A$(w);
13335
+ const w = (S = L.current) == null ? void 0 : S.closest("[data-report-placement]"), D = L$(w);
13333
13336
  c(), (A = L.current) == null || A.focus(), l(!1), i(T);
13334
13337
  try {
13335
13338
  await E(e.placementId);
@@ -13344,7 +13347,7 @@ function L$(e) {
13344
13347
  return r().length > 0;
13345
13348
  },
13346
13349
  get children() {
13347
- var T = E$(), E = T.firstChild;
13350
+ var T = R$(), E = T.firstChild;
13348
13351
  return Ce((w) => {
13349
13352
  d.current = w;
13350
13353
  }, T), Ce((w) => {
@@ -13359,7 +13362,7 @@ function L$(e) {
13359
13362
  return k();
13360
13363
  },
13361
13364
  get children() {
13362
- var w = P$();
13365
+ var w = I$();
13363
13366
  return Ce((D) => {
13364
13367
  m.current = D;
13365
13368
  }, w), mt(w, "keydown", b, !0), u(w, f(Me, {
@@ -13367,8 +13370,8 @@ function L$(e) {
13367
13370
  return r();
13368
13371
  },
13369
13372
  children: (D) => (() => {
13370
- var _ = R$();
13371
- return Ce((S) => h(D)(S), _), _.$$click = () => void $(D), y(_, "data-action", D), y(_, "data-danger", D === "remove" || void 0), u(_, () => D$(D, n)), _;
13373
+ var _ = D$();
13374
+ return Ce((S) => h(D)(S), _), _.$$click = () => void $(D), y(_, "data-action", D), y(_, "data-danger", D === "remove" || void 0), u(_, () => A$(D, n)), _;
13372
13375
  })()
13373
13376
  })), M((D) => {
13374
13377
  var _ = C(), S = g().align, A = g().side, P = g().style;
@@ -13387,7 +13390,7 @@ function L$(e) {
13387
13390
  return o();
13388
13391
  },
13389
13392
  get children() {
13390
- var w = I$();
13393
+ var w = E$();
13391
13394
  return u(w, () => n("report.action.failed", "The action could not be completed.")), w;
13392
13395
  }
13393
13396
  }), null), M((w) => {
@@ -13404,7 +13407,7 @@ function L$(e) {
13404
13407
  });
13405
13408
  }
13406
13409
  Ge(["click", "keydown"]);
13407
- var F$ = /* @__PURE__ */ p("<p role=status>"), M$ = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), z$ = /* @__PURE__ */ p("<footer class=lens-report-card-status>"), j$ = /* @__PURE__ */ p("<p aria-live=polite>");
13410
+ var M$ = /* @__PURE__ */ p("<p role=status>"), z$ = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), j$ = /* @__PURE__ */ p("<footer class=lens-report-card-status>"), O$ = /* @__PURE__ */ p("<p aria-live=polite>");
13408
13411
  function Zc(e, t, n) {
13409
13412
  const r = e.filter((o) => o.error);
13410
13413
  if (r.length) return {
@@ -13420,7 +13423,7 @@ function Zc(e, t, n) {
13420
13423
  at: Math.min(...i)
13421
13424
  } : void 0;
13422
13425
  }
13423
- function O$(e, t, n) {
13426
+ function N$(e, t, n) {
13424
13427
  const r = {
13425
13428
  year: "numeric",
13426
13429
  month: "short",
@@ -13441,7 +13444,7 @@ function O$(e, t, n) {
13441
13444
  }).format(e);
13442
13445
  }
13443
13446
  }
13444
- function N$(e) {
13447
+ function U$(e) {
13445
13448
  const {
13446
13449
  document: t
13447
13450
  } = vt(), n = Br(), r = Ee(), a = Ql(), i = xe(() => Zc(e.panelIds.map((o) => a(o)), t.meta.generatedAt, n.isRefreshing));
@@ -13450,28 +13453,28 @@ function N$(e) {
13450
13453
  return i();
13451
13454
  },
13452
13455
  children: (o) => (() => {
13453
- var l = z$();
13456
+ var l = j$();
13454
13457
  return u(l, f(R, {
13455
13458
  get when() {
13456
13459
  return o().state === "failed";
13457
13460
  },
13458
13461
  get fallback() {
13459
13462
  return (() => {
13460
- var c = j$();
13463
+ var c = O$();
13461
13464
  return u(c, (() => {
13462
13465
  var d = ae(() => o().state === "updating");
13463
13466
  return () => d() ? r("panel.updating", "Updating") : r("report.card.calculated", "Calculated {time}", {
13464
- time: O$(o().at, t.meta.locale, e.timeZone)
13467
+ time: N$(o().at, t.meta.locale, e.timeZone)
13465
13468
  });
13466
13469
  })()), c;
13467
13470
  })();
13468
13471
  },
13469
13472
  get children() {
13470
13473
  return [(() => {
13471
- var c = F$();
13474
+ var c = M$();
13472
13475
  return u(c, () => r("report.card.failed", "Not updated: some figures in this card could not be loaded.")), c;
13473
13476
  })(), (() => {
13474
- var c = M$();
13477
+ var c = z$();
13475
13478
  return c.$$click = () => {
13476
13479
  for (const d of o().failed) d.retry();
13477
13480
  }, u(c, () => r("report.card.retry", "Retry this card")), M(() => y(c, "data-testid", `report-retry-${e.placementId}`)), c;
@@ -13498,7 +13501,7 @@ function Mi(e, t) {
13498
13501
  function qr(e, t) {
13499
13502
  return { ...structuredClone(e), rows: t.filter((n) => n.length > 0) };
13500
13503
  }
13501
- function U$(e) {
13504
+ function B$(e) {
13502
13505
  return e.flatMap((t) => {
13503
13506
  const n = [[]];
13504
13507
  for (const r of t) {
@@ -13508,7 +13511,7 @@ function U$(e) {
13508
13511
  return n;
13509
13512
  });
13510
13513
  }
13511
- function B$(e, t, n) {
13514
+ function Z$(e, t, n) {
13512
13515
  const r = Mi(e, t);
13513
13516
  if (!r) return e;
13514
13517
  const a = structuredClone(e.rows), i = a[r.row], [o] = i.splice(r.index, 1), l = (c) => fo(c) + xn(o) <= Vt;
@@ -13540,7 +13543,7 @@ function B$(e, t, n) {
13540
13543
  }
13541
13544
  return qr(e, a);
13542
13545
  }
13543
- function Z$(e, t, n) {
13546
+ function V$(e, t, n) {
13544
13547
  if (t === n) return e;
13545
13548
  const r = Mi(e, t);
13546
13549
  if (!r) return e;
@@ -13555,12 +13558,12 @@ function Vc(e, t, n) {
13555
13558
  const l = { ...o };
13556
13559
  return r === Vt ? delete l.span : l.span = r, l;
13557
13560
  }));
13558
- return qr(e, U$(a));
13561
+ return qr(e, B$(a));
13559
13562
  }
13560
- function V$(e, t) {
13563
+ function q$(e, t) {
13561
13564
  return qr(e, e.rows.map((n) => n.filter((r) => r.id !== t)));
13562
13565
  }
13563
- function q$(e, t, n) {
13566
+ function H$(e, t, n) {
13564
13567
  const r = structuredClone(e.rows).map((a) => a.map((i) => {
13565
13568
  var d;
13566
13569
  if (i.id !== t) return i;
@@ -13571,7 +13574,7 @@ function q$(e, t, n) {
13571
13574
  }));
13572
13575
  return Vc(qr(e, r), t, n.span);
13573
13576
  }
13574
- function H$(e, t) {
13577
+ function K$(e, t) {
13575
13578
  const n = new Map(e.rows.flat().map((c) => [c.id, c])), r = (c) => new Map(c.rows.flatMap((d, h) => d.map((m, g) => [m.id, `${h}:${g}`]))), a = r(e), i = r(t), o = [];
13576
13579
  for (const c of t.rows.flat()) {
13577
13580
  const d = n.get(c.id);
@@ -13582,11 +13585,11 @@ function H$(e, t) {
13582
13585
  l.has(c.id) || o.push({ kind: "remove", placementId: c.id, reportId: c.reportId });
13583
13586
  return o;
13584
13587
  }
13585
- var K$ = /* @__PURE__ */ p("<section class=lens-dashboard-empty data-testid=dashboard-empty><span aria-hidden=true class=lens-dashboard-empty-icon></span><h2 class=lens-dashboard-empty-title></h2><p class=lens-dashboard-empty-hint>"), W$ = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary lens-dashboard-empty-action"data-testid=dashboard-empty-add type=button><span>');
13586
- function G$(e) {
13588
+ var W$ = /* @__PURE__ */ p("<section class=lens-dashboard-empty data-testid=dashboard-empty><span aria-hidden=true class=lens-dashboard-empty-icon></span><h2 class=lens-dashboard-empty-title></h2><p class=lens-dashboard-empty-hint>"), G$ = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary lens-dashboard-empty-action"data-testid=dashboard-empty-add type=button><span>');
13589
+ function J$(e) {
13587
13590
  const t = Ee(), n = Lt();
13588
13591
  return (() => {
13589
- var r = K$(), a = r.firstChild, i = a.nextSibling, o = i.nextSibling;
13592
+ var r = W$(), a = r.firstChild, i = a.nextSibling, o = i.nextSibling;
13590
13593
  return y(r, "aria-labelledby", n), u(a, f(Ag, {})), y(i, "id", n), u(i, () => t("dashboard.empty.title", "This dashboard has no reports yet")), u(o, (() => {
13591
13594
  var l = ae(() => !!e.onAdd);
13592
13595
  return () => l() ? t("dashboard.empty.hintEditable", "Add reports from the library to see their figures here.") : t("dashboard.empty.hint", "Reports placed on this dashboard will appear here.");
@@ -13595,23 +13598,23 @@ function G$(e) {
13595
13598
  return e.onAdd;
13596
13599
  },
13597
13600
  children: (l) => (() => {
13598
- var c = W$(), d = c.firstChild;
13601
+ var c = G$(), d = c.firstChild;
13599
13602
  return c.$$click = (h) => l()(h.currentTarget), u(c, f(Dg, {}), d), u(d, () => t("report.editor.add", "Add report")), c;
13600
13603
  })()
13601
13604
  }), null), r;
13602
13605
  })();
13603
13606
  }
13604
13607
  Ge(["click"]);
13605
- var J$ = /* @__PURE__ */ p("<div class=lens-panel-state role=alert>"), Q$ = /* @__PURE__ */ p("<h3 class=lens-panel-title>"), Y$ = /* @__PURE__ */ p('<header class="lens-panel-header lens-panel-group-header">'), X$ = /* @__PURE__ */ p("<p class=lens-panel-caption>"), ek = /* @__PURE__ */ p("<div class=lens-grid-item><section>"), tk = /* @__PURE__ */ p('<div class="lens-panel lens-panel-unsupported lens-grid-item">'), qc = /* @__PURE__ */ p("<div class=lens-grid-item>"), Hc = /* @__PURE__ */ p("<div class=lens-panel-grid>"), nk = /* @__PURE__ */ p("<div>"), rk = /* @__PURE__ */ p("<div class=lens-metric-cell>"), ak = /* @__PURE__ */ p("<div class=lens-tabstrip role=tablist>"), ik = /* @__PURE__ */ p("<button class=lens-tabstrip-tab role=tab type=button>"), ok = /* @__PURE__ */ p('<div class="lens-panel-grid lens-tab-panel"role=tabpanel tabindex=0>'), sk = /* @__PURE__ */ p("<div class=lens-tab-filter-bar role=group>"), lk = /* @__PURE__ */ p('<button aria-live=polite class="lens-export-button lens-recompute"type=button><span>'), ck = /* @__PURE__ */ p("<span class=lens:sr-only>"), dk = /* @__PURE__ */ p("<p aria-live=polite class=lens-dashboard-updated><span>"), uk = /* @__PURE__ */ p("<div class=lens-document-refetch-error role=alert><span></span><div class=lens-document-refetch-error-actions><button type=button></button><button class=lens-document-refetch-error-dismiss type=button>"), fk = /* @__PURE__ */ p("<div class=lens-dashboard-rows><div data-testid=dashboard-draft-grid>"), hk = /* @__PURE__ */ p("<div class=lens-dashboard-rows>"), mk = /* @__PURE__ */ p("<h2 class=lens-row-heading><span>"), gk = /* @__PURE__ */ p("<section><div>"), pk = /* @__PURE__ */ p("<p aria-live=polite class=lens-visually-hidden data-testid=dashboard-edit-announcement>"), vk = /* @__PURE__ */ p("<header class=lens-dashboard-header><div class=lens-dashboard-headline>"), yk = /* @__PURE__ */ p("<main>"), bk = /* @__PURE__ */ p("<div class=lens-placeholder-state>"), wk = /* @__PURE__ */ p("<h1 class=lens-dashboard-title data-testid=lens-dashboard-title>"), $k = /* @__PURE__ */ p("<span>"), kk = /* @__PURE__ */ p("<div class=lens-dashboard-actions>"), _k = /* @__PURE__ */ p("<div class=lens-document-refetch-error data-testid=dashboard-edit-load-failed role=alert><span></span><div class=lens-document-refetch-error-actions><button type=button>");
13606
- const xk = xs(async () => ({
13607
- default: (await import("./PrintReport-awUBISRB.js")).PrintReport
13608
+ var Q$ = /* @__PURE__ */ p("<div class=lens-panel-state role=alert>"), Y$ = /* @__PURE__ */ p("<h3 class=lens-panel-title>"), X$ = /* @__PURE__ */ p('<header class="lens-panel-header lens-panel-group-header">'), ek = /* @__PURE__ */ p("<p class=lens-panel-caption>"), tk = /* @__PURE__ */ p("<div class=lens-grid-item><section>"), nk = /* @__PURE__ */ p('<div class="lens-panel lens-panel-unsupported lens-grid-item">'), qc = /* @__PURE__ */ p("<div class=lens-grid-item>"), Hc = /* @__PURE__ */ p("<div class=lens-panel-grid>"), rk = /* @__PURE__ */ p("<div>"), ak = /* @__PURE__ */ p("<div class=lens-metric-cell>"), ik = /* @__PURE__ */ p("<div class=lens-tabstrip role=tablist>"), ok = /* @__PURE__ */ p("<button class=lens-tabstrip-tab role=tab type=button>"), sk = /* @__PURE__ */ p('<div class="lens-panel-grid lens-tab-panel"role=tabpanel tabindex=0>'), lk = /* @__PURE__ */ p("<div class=lens-tab-filter-bar role=group>"), ck = /* @__PURE__ */ p('<button aria-live=polite class="lens-export-button lens-recompute"type=button><span>'), dk = /* @__PURE__ */ p("<span class=lens:sr-only>"), uk = /* @__PURE__ */ p("<p aria-live=polite class=lens-dashboard-updated><span>"), fk = /* @__PURE__ */ p("<div class=lens-document-refetch-error role=alert><span></span><div class=lens-document-refetch-error-actions><button type=button></button><button class=lens-document-refetch-error-dismiss type=button>"), hk = /* @__PURE__ */ p("<div class=lens-dashboard-rows><div data-testid=dashboard-draft-grid>"), mk = /* @__PURE__ */ p("<div class=lens-dashboard-rows>"), gk = /* @__PURE__ */ p("<h2 class=lens-row-heading><span>"), pk = /* @__PURE__ */ p("<section><div>"), vk = /* @__PURE__ */ p("<p aria-live=polite class=lens-visually-hidden data-testid=dashboard-edit-announcement>"), yk = /* @__PURE__ */ p("<header class=lens-dashboard-header><div class=lens-dashboard-headline>"), bk = /* @__PURE__ */ p("<main>"), wk = /* @__PURE__ */ p("<div class=lens-placeholder-state>"), $k = /* @__PURE__ */ p("<h1 class=lens-dashboard-title data-testid=lens-dashboard-title>"), kk = /* @__PURE__ */ p("<span>"), _k = /* @__PURE__ */ p("<div class=lens-dashboard-actions>"), xk = /* @__PURE__ */ p("<div class=lens-document-refetch-error data-testid=dashboard-edit-load-failed role=alert><span></span><div class=lens-document-refetch-error-actions><button type=button>");
13609
+ const Ck = xs(async () => ({
13610
+ default: (await import("./PrintReport-BIw1Shm-.js")).PrintReport
13608
13611
  }));
13609
- function Ck(e) {
13612
+ function Sk(e) {
13610
13613
  return Number.isFinite(e) ? Math.min(12, Math.max(1, Math.round(e))) : 12;
13611
13614
  }
13612
13615
  function jr(e) {
13613
13616
  return {
13614
- "--lens-panel-span": Ck(e)
13617
+ "--lens-panel-span": Sk(e)
13615
13618
  };
13616
13619
  }
13617
13620
  function ho(e) {
@@ -13620,7 +13623,7 @@ function ho(e) {
13620
13623
  function La(e, t) {
13621
13624
  return ho(e)[t];
13622
13625
  }
13623
- function Sk(e, t) {
13626
+ function Tk(e, t) {
13624
13627
  var r;
13625
13628
  const n = [];
13626
13629
  for (const a of e) {
@@ -13636,15 +13639,15 @@ function Sk(e, t) {
13636
13639
  }
13637
13640
  return n;
13638
13641
  }
13639
- const Tk = 6;
13640
- function Pk(e) {
13642
+ const Pk = 6;
13643
+ function Ik(e) {
13641
13644
  const t = /* @__PURE__ */ new Map();
13642
13645
  for (const r of e)
13643
13646
  for (const a of r.panels)
13644
13647
  for (const i of ho(a))
13645
13648
  i.kind === "metrics" && t.set(i.id, (t.get(i.id) ?? 0) + 1);
13646
13649
  const n = Math.max(1, ...t.values());
13647
- return Math.min(Tk, n);
13650
+ return Math.min(Pk, n);
13648
13651
  }
13649
13652
  function fs(e, t) {
13650
13653
  const n = Math.max(1, Math.floor(t));
@@ -13687,7 +13690,7 @@ function Jc(e) {
13687
13690
  function Qc(e) {
13688
13691
  const t = Ee();
13689
13692
  return (() => {
13690
- var n = J$();
13693
+ var n = Q$();
13691
13694
  return u(n, () => t("panel.missing", "Panel “{id}” is missing.", {
13692
13695
  id: e.panelId
13693
13696
  })), n;
@@ -13696,7 +13699,7 @@ function Qc(e) {
13696
13699
  function Ya(e) {
13697
13700
  const t = Br(), {
13698
13701
  document: n
13699
- } = vt(), r = Ee(), [a, i] = K(!1), o = f$(a, i), l = () => !!(e.group.filterContext && h$(n.contextEditor, e.group.filterContext, e.group.id)), c = Nr(), d = Ql(), h = () => {
13702
+ } = vt(), r = Ee(), [a, i] = K(!1), o = h$(a, i), l = () => !!(e.group.filterContext && m$(n.contextEditor, e.group.filterContext, e.group.id)), c = Nr(), d = Ql(), h = () => {
13700
13703
  var O, B, N, q;
13701
13704
  return (((q = (N = (B = (O = e.items) == null ? void 0 : O[0]) == null ? void 0 : B.groups) == null ? void 0 : N[0]) == null ? void 0 : q.id) ?? e.group.id) === e.group.id;
13702
13705
  }, m = () => e.group.kind === "grid" && h() && !!(c || e.group.unavailable), g = xe(() => e.group.kind === "grid" ? Ma(c, e.group) : void 0), b = () => !!(e.group.filterContext && (e.group.filterContext.conflicts.length || e.group.filterContext.unsupported.length)), v = xe(() => (e.items ?? []).map((O) => O.panelId)), k = () => {
@@ -13744,7 +13747,7 @@ function Ya(e) {
13744
13747
  "--lens-edit-row": String(_.row + 1)
13745
13748
  } : jr(e.group.span);
13746
13749
  return (() => {
13747
- var O = ek(), B = O.firstChild;
13750
+ var O = tk(), B = O.firstChild;
13748
13751
  return Ce((N) => _ == null ? void 0 : _.cardRef(N), O), mt(O, "drop", _ ? (N) => {
13749
13752
  _.editing && _.dropProps.onDrop(N);
13750
13753
  } : void 0), mt(O, "dragover", _ ? (N) => {
@@ -13754,7 +13757,7 @@ function Ya(e) {
13754
13757
  return !!(k() || e.group.status || l() || D() || S());
13755
13758
  },
13756
13759
  get children() {
13757
- var N = Y$();
13760
+ var N = X$();
13758
13761
  return u(N, f(R, {
13759
13762
  get when() {
13760
13763
  return _ && S();
@@ -13767,7 +13770,7 @@ function Ya(e) {
13767
13770
  return k();
13768
13771
  },
13769
13772
  get children() {
13770
- var q = Q$();
13773
+ var q = Y$();
13771
13774
  return u(q, k), q;
13772
13775
  }
13773
13776
  }), null), u(N, f(R, {
@@ -13785,7 +13788,7 @@ function Ya(e) {
13785
13788
  get when() {
13786
13789
  return ae(() => !!l())() && e.group.filterContext;
13787
13790
  },
13788
- children: (q) => f(m$, {
13791
+ children: (q) => f(g$, {
13789
13792
  get id() {
13790
13793
  return e.group.id;
13791
13794
  },
@@ -13799,7 +13802,7 @@ function Ya(e) {
13799
13802
  return D();
13800
13803
  },
13801
13804
  get children() {
13802
- return f(L$, {
13805
+ return f(F$, {
13803
13806
  get placementId() {
13804
13807
  return e.group.id;
13805
13808
  },
@@ -13821,7 +13824,7 @@ function Ya(e) {
13821
13824
  return ae(() => !!e.group.caption)() && g() !== "report-forbidden";
13822
13825
  },
13823
13826
  get children() {
13824
- var N = X$();
13827
+ var N = ek();
13825
13828
  return u(N, () => e.group.caption), M(() => y(N, "data-stale", t.isRefreshing || void 0)), N;
13826
13829
  }
13827
13830
  }), null), u(B, f(R, {
@@ -13829,7 +13832,7 @@ function Ya(e) {
13829
13832
  return ae(() => !!m())() && A();
13830
13833
  },
13831
13834
  get children() {
13832
- return f(T$, {
13835
+ return f(P$, {
13833
13836
  get placementId() {
13834
13837
  return e.group.id;
13835
13838
  },
@@ -13842,7 +13845,7 @@ function Ya(e) {
13842
13845
  get when() {
13843
13846
  return ae(() => !g())() && e.group.filterContext;
13844
13847
  },
13845
- children: (N) => f(g$, {
13848
+ children: (N) => f(p$, {
13846
13849
  get id() {
13847
13850
  return e.group.id;
13848
13851
  },
@@ -13880,7 +13883,7 @@ function Ya(e) {
13880
13883
  return ae(() => !!(c && m() && !g() && !b()))() && A();
13881
13884
  },
13882
13885
  get children() {
13883
- return f(N$, {
13886
+ return f(U$, {
13884
13887
  get placementId() {
13885
13888
  return e.group.id;
13886
13889
  },
@@ -13916,7 +13919,7 @@ function Ya(e) {
13916
13919
  }), O;
13917
13920
  })();
13918
13921
  }
13919
- function Ik(e) {
13922
+ function Ek(e) {
13920
13923
  const t = e.panels.get(e.item.panelId);
13921
13924
  return t ? (() => {
13922
13925
  var n = qc();
@@ -13927,7 +13930,7 @@ function Ik(e) {
13927
13930
  }
13928
13931
  })), M((r) => ht(n, jr(e.item.span), r)), n;
13929
13932
  })() : (() => {
13930
- var n = tk();
13933
+ var n = nk();
13931
13934
  return u(n, f(Qc, {
13932
13935
  get panelId() {
13933
13936
  return e.item.panelId;
@@ -13938,7 +13941,7 @@ function Ik(e) {
13938
13941
  function Xa(e) {
13939
13942
  return f(Me, {
13940
13943
  get each() {
13941
- return Sk(e.items, e.depth);
13944
+ return Tk(e.items, e.depth);
13942
13945
  },
13943
13946
  children: (t) => {
13944
13947
  if (!t.group)
@@ -13946,7 +13949,7 @@ function Xa(e) {
13946
13949
  get each() {
13947
13950
  return t.items;
13948
13951
  },
13949
- children: (n) => f(Ik, {
13952
+ children: (n) => f(Ek, {
13950
13953
  item: n,
13951
13954
  get panels() {
13952
13955
  return e.panels;
@@ -13995,7 +13998,7 @@ function Xa(e) {
13995
13998
  return u(r, n), M((a) => ht(r, jr(t.group.span), a)), r;
13996
13999
  })();
13997
14000
  }
13998
- return t.group.kind === "metrics" ? f(Ek, {
14001
+ return t.group.kind === "metrics" ? f(Rk, {
13999
14002
  get group() {
14000
14003
  return t.group;
14001
14004
  },
@@ -14008,7 +14011,7 @@ function Xa(e) {
14008
14011
  get registry() {
14009
14012
  return e.registry;
14010
14013
  }
14011
- }) : f(Ak, {
14014
+ }) : f(Lk, {
14012
14015
  get depth() {
14013
14016
  return e.depth;
14014
14017
  },
@@ -14031,7 +14034,7 @@ function Xa(e) {
14031
14034
  }
14032
14035
  });
14033
14036
  }
14034
- function Ek(e) {
14037
+ function Rk(e) {
14035
14038
  const t = ot(Kc), n = fs(e.items.length, t), r = fs(e.items.length, 2);
14036
14039
  return f(Ya, {
14037
14040
  get group() {
@@ -14044,7 +14047,7 @@ function Ek(e) {
14044
14047
  return e.panels;
14045
14048
  },
14046
14049
  get children() {
14047
- var a = nk();
14050
+ var a = rk();
14048
14051
  return u(a, f(Me, {
14049
14052
  get each() {
14050
14053
  return e.items;
@@ -14052,7 +14055,7 @@ function Ek(e) {
14052
14055
  children: (i, o) => {
14053
14056
  const c = Gc(() => e.panels.get(i.panelId))();
14054
14057
  return (() => {
14055
- var d = rk();
14058
+ var d = ak();
14056
14059
  return u(d, () => c ? c.kind === "stat" && !c.drillRoot && !c.renderer ? f(Oy, {
14057
14060
  panel: c
14058
14061
  }) : f(Jc, {
@@ -14074,13 +14077,13 @@ function Ek(e) {
14074
14077
  }
14075
14078
  });
14076
14079
  }
14077
- const Rk = {
14080
+ const Dk = {
14078
14081
  titleIsRedundant: !0
14079
14082
  };
14080
14083
  function Fa(e) {
14081
14084
  return e.trim().replace(/\s+/gu, " ").toLocaleLowerCase();
14082
14085
  }
14083
- function Dk(e, t, n, r) {
14086
+ function Ak(e, t, n, r) {
14084
14087
  var l;
14085
14088
  if (!e.trim()) return !1;
14086
14089
  const a = t.filter((c) => {
@@ -14093,7 +14096,7 @@ function Dk(e, t, n, r) {
14093
14096
  const o = i ? (l = r.get(i.panelId)) == null ? void 0 : l.title : void 0;
14094
14097
  return !!o && Fa(o) === Fa(e);
14095
14098
  }
14096
- function Ak(e) {
14099
+ function Lk(e) {
14097
14100
  const t = Ee(), {
14098
14101
  filters: n
14099
14102
  } = cn(), r = Ka(), a = ot(Wc), i = Lt(), o = [...new Set(e.items.map(($) => {
@@ -14121,11 +14124,11 @@ function Ak(e) {
14121
14124
  },
14122
14125
  get children() {
14123
14126
  return [(() => {
14124
- var $ = ak();
14127
+ var $ = ik();
14125
14128
  return u($, f(Me, {
14126
14129
  each: o,
14127
14130
  children: (T, E) => (() => {
14128
- var w = ik();
14131
+ var w = ok();
14129
14132
  return w.$$keyup = (D) => {
14130
14133
  D.key !== "Enter" && D.key !== " " || (D.preventDefault(), v(T));
14131
14134
  }, Ce((D) => {
@@ -14145,11 +14148,11 @@ function Ak(e) {
14145
14148
  })(), f(Me, {
14146
14149
  each: o,
14147
14150
  children: ($, T) => (() => {
14148
- var E = ok();
14151
+ var E = sk();
14149
14152
  return u(E, (() => {
14150
14153
  var w = ae(() => !!(r.active || $ === d()));
14151
14154
  return () => w() && [ae(() => ae(() => C($).length > 0)() && (() => {
14152
- var D = sk();
14155
+ var D = lk();
14153
14156
  return u(D, f(ma, {
14154
14157
  get filters() {
14155
14158
  return C($);
@@ -14160,7 +14163,7 @@ function Ak(e) {
14160
14163
  })), D;
14161
14164
  })()), f(Ja.Provider, {
14162
14165
  get value() {
14163
- return Dk($, e.items, e.depth, e.panels) ? Rk : void 0;
14166
+ return Ak($, e.items, e.depth, e.panels) ? Dk : void 0;
14164
14167
  },
14165
14168
  get children() {
14166
14169
  return f(Xa, {
@@ -14198,7 +14201,7 @@ function Ak(e) {
14198
14201
  }
14199
14202
  });
14200
14203
  }
14201
- function Lk(e, t) {
14204
+ function Fk(e, t) {
14202
14205
  const n = Math.round((e - Date.now()) / 1e3), r = new Intl.RelativeTimeFormat(t, {
14203
14206
  numeric: "auto",
14204
14207
  style: "short"
@@ -14209,8 +14212,8 @@ function Lk(e, t) {
14209
14212
  const o = Math.round(i / 60);
14210
14213
  return Math.abs(o) < 24 ? r.format(o, "hour") : r.format(Math.round(o / 24), "day");
14211
14214
  }
14212
- const Fk = 60 * 6e4;
14213
- function Mk() {
14215
+ const Mk = 60 * 6e4;
14216
+ function zk() {
14214
14217
  const {
14215
14218
  document: e
14216
14219
  } = vt(), t = Br(), n = zn(), r = Ee(), [a, i] = K(0);
@@ -14223,7 +14226,7 @@ function Mk() {
14223
14226
  const o = Date.parse(e.meta.generatedAt);
14224
14227
  if (!Number.isFinite(o)) return null;
14225
14228
  const l = t.isRefreshing ? r("panel.updating", "Updating") : r("dashboard.updated", "Updated {time}", {
14226
- time: Lk(o, e.meta.locale)
14229
+ time: Fk(o, e.meta.locale)
14227
14230
  }), c = new Intl.DateTimeFormat(e.meta.locale, {
14228
14231
  dateStyle: "medium",
14229
14232
  timeStyle: "short"
@@ -14232,12 +14235,12 @@ function Mk() {
14232
14235
  label: l,
14233
14236
  isRefreshing: t.isRefreshing,
14234
14237
  absolute: c,
14235
- stale: Date.now() - o > Fk
14238
+ stale: Date.now() - o > Mk
14236
14239
  };
14237
14240
  });
14238
14241
  }
14239
- function zk() {
14240
- const e = vt(), t = Ee(), n = Mk(), r = Lt(), a = xe(() => e.isRecomputing ? t("dashboard.recomputing", "Recomputing…") : t("dashboard.recomputeHint", "Refresh every figure, ignoring the cached results"));
14242
+ function jk() {
14243
+ const e = vt(), t = Ee(), n = zk(), r = Lt(), a = xe(() => e.isRecomputing ? t("dashboard.recomputing", "Recomputing…") : t("dashboard.recomputeHint", "Refresh every figure, ignoring the cached results"));
14241
14244
  return f(R, {
14242
14245
  get when() {
14243
14246
  return e.canRecompute;
@@ -14248,7 +14251,7 @@ function zk() {
14248
14251
  return n();
14249
14252
  },
14250
14253
  children: (i) => (() => {
14251
- var o = dk(), l = o.firstChild;
14254
+ var o = uk(), l = o.firstChild;
14252
14255
  return u(o, f(Yi, {}), l), u(l, () => i().label), M((c) => {
14253
14256
  var d = i().isRefreshing || void 0, h = i().stale || void 0, m = i().absolute;
14254
14257
  return d !== c.e && y(o, "data-refreshing", c.e = d), h !== c.t && y(o, "data-stale", c.t = h), m !== c.a && y(o, "title", c.a = m), c;
@@ -14262,7 +14265,7 @@ function zk() {
14262
14265
  },
14263
14266
  get children() {
14264
14267
  return [(() => {
14265
- var i = lk(), o = i.firstChild;
14268
+ var i = ck(), o = i.firstChild;
14266
14269
  return i.$$click = () => e.recompute(), y(i, "aria-describedby", r), u(i, (() => {
14267
14270
  var l = ae(() => !!e.isRecomputing);
14268
14271
  return () => l() ? f(Qi, {
@@ -14282,26 +14285,26 @@ function zk() {
14282
14285
  o: void 0
14283
14286
  }), i;
14284
14287
  })(), (() => {
14285
- var i = ck();
14288
+ var i = dk();
14286
14289
  return y(i, "id", r), u(i, a), i;
14287
14290
  })()];
14288
14291
  }
14289
14292
  });
14290
14293
  }
14291
- function jk() {
14294
+ function Ok() {
14292
14295
  const e = Br(), t = Ee();
14293
14296
  return f(R, {
14294
14297
  get when() {
14295
14298
  return e.error;
14296
14299
  },
14297
14300
  get children() {
14298
- var n = uk(), r = n.firstChild, a = r.nextSibling, i = a.firstChild, o = i.nextSibling;
14301
+ var n = fk(), r = n.firstChild, a = r.nextSibling, i = a.firstChild, o = i.nextSibling;
14299
14302
  return u(r, () => t("document.refetchFailed", "Unable to refresh the dashboard. The previous data is still shown.")), i.$$click = () => void e.refresh().catch(() => {
14300
14303
  }), u(i, () => t("document.retry", "Retry")), o.$$click = () => e.dismissError(), u(o, f(Mn, {})), M(() => y(o, "aria-label", t("runtime.dismissNotice", "Dismiss notice"))), n;
14301
14304
  }
14302
14305
  });
14303
14306
  }
14304
- function Ok() {
14307
+ function Nk() {
14305
14308
  const t = Ka().run, n = typeof window < "u" && new URL(window.location.href).searchParams.get("lens-print-preview") === "1";
14306
14309
  let r = !1;
14307
14310
  ln(() => {
@@ -14310,7 +14313,7 @@ function Ok() {
14310
14313
  }));
14311
14314
  });
14312
14315
  }
14313
- function Nk(e) {
14316
+ function Uk(e) {
14314
14317
  var n;
14315
14318
  const t = /* @__PURE__ */ new Map();
14316
14319
  for (const r of e)
@@ -14325,18 +14328,18 @@ function Nk(e) {
14325
14328
  }
14326
14329
  return t;
14327
14330
  }
14328
- function Uk(e) {
14329
- const t = xe(() => Nk(e.rows));
14331
+ function Bk(e) {
14332
+ const t = xe(() => Uk(e.rows));
14330
14333
  let n;
14331
14334
  return (() => {
14332
- var r = fk(), a = r.firstChild;
14335
+ var r = hk(), a = r.firstChild;
14333
14336
  return Ce((i) => {
14334
14337
  n = i;
14335
14338
  }, a), u(a, f(Me, {
14336
14339
  get each() {
14337
14340
  return e.editor.session.ids();
14338
14341
  },
14339
- children: (i) => f(Bk, {
14342
+ children: (i) => f(Zk, {
14340
14343
  get csrf() {
14341
14344
  return e.csrf;
14342
14345
  },
@@ -14374,7 +14377,7 @@ function Uk(e) {
14374
14377
  }), r;
14375
14378
  })();
14376
14379
  }
14377
- function Bk(e) {
14380
+ function Zk(e) {
14378
14381
  const t = e.editor.session, n = () => t.byId(e.id), r = () => {
14379
14382
  var o;
14380
14383
  return (o = n()) == null ? void 0 : o.placement;
@@ -14457,13 +14460,13 @@ function Bk(e) {
14457
14460
  }
14458
14461
  });
14459
14462
  }
14460
- function Zk(e) {
14463
+ function Vk(e) {
14461
14464
  const {
14462
14465
  document: t
14463
14466
  } = vt(), n = vt(), r = Ee(), a = zn(), i = ec(), o = Ka(), l = xe(() => new Map(t.panels.map((q) => [q.id, q]))), c = !$n() && a.depth === 0, d = /* @__PURE__ */ new Map();
14464
- Ok();
14467
+ Nk();
14465
14468
  const h = () => e.theme ?? "light", m = at(() => e.edit), g = !!m && a.depth === 0, [b, v] = K(), [k, x] = K(!1), L = () => {
14466
- x(!1), import("./dashboardEdit-KuYE7jYk.js").then((q) => v(() => q), (q) => {
14469
+ x(!1), import("./dashboardEdit-Ws5Y-sU5.js").then((q) => v(() => q), (q) => {
14467
14470
  console.error("[lens] the dashboard edit mode failed to load", q), x(!0);
14468
14471
  });
14469
14472
  };
@@ -14481,20 +14484,20 @@ function Zk(e) {
14481
14484
  var q, Q, J;
14482
14485
  if ($().description !== !1)
14483
14486
  return a.depth > 0 && ((Q = (q = i()) == null ? void 0 : q.title) != null && Q.trim()) || (J = t.header) == null ? void 0 : J.subtitle;
14484
- }, S = () => !(t.layout.rows.length > 0 && t.panels.length > 0), A = (q) => q ? q.session.ids().length === 0 : S(), P = xe(() => Pk(t.layout.rows)), O = xe(() => (t.filters ?? []).some((q) => q.kind === "compare" && q.compare !== void 0 && q.compare.value.mode !== "off")), B = () => (() => {
14485
- var q = hk();
14487
+ }, S = () => !(t.layout.rows.length > 0 && t.panels.length > 0), A = (q) => q ? q.session.ids().length === 0 : S(), P = xe(() => Ik(t.layout.rows)), O = xe(() => (t.filters ?? []).some((q) => q.kind === "compare" && q.compare !== void 0 && q.compare.value.mode !== "off")), B = () => (() => {
14488
+ var q = mk();
14486
14489
  return u(q, f(Me, {
14487
14490
  get each() {
14488
14491
  return t.layout.rows;
14489
14492
  },
14490
14493
  children: (Q, J) => (() => {
14491
- var U = gk(), F = U.firstChild;
14494
+ var U = pk(), F = U.firstChild;
14492
14495
  return u(U, f(R, {
14493
14496
  get when() {
14494
14497
  return Q.heading;
14495
14498
  },
14496
14499
  get children() {
14497
- var V = mk(), ee = V.firstChild;
14500
+ var V = gk(), ee = V.firstChild;
14498
14501
  return u(ee, () => Q.heading), V;
14499
14502
  }
14500
14503
  }), F), Je(F, `lens-panel-grid${c ? " lens-entrance" : ""}`), u(F, f(Xa, {
@@ -14531,7 +14534,7 @@ function Zk(e) {
14531
14534
  },
14532
14535
  get fallback() {
14533
14536
  return (() => {
14534
- var J = bk();
14537
+ var J = wk();
14535
14538
  return u(J, () => r("dashboard.empty", "The document contains no panels.")), J;
14536
14539
  })();
14537
14540
  },
@@ -14539,24 +14542,24 @@ function Zk(e) {
14539
14542
  return f(Wc.Provider, {
14540
14543
  value: d,
14541
14544
  get children() {
14542
- var J = yk();
14545
+ var J = bk();
14543
14546
  return u(J, f(R, {
14544
14547
  get when() {
14545
14548
  return w(q);
14546
14549
  },
14547
14550
  get children() {
14548
- var U = vk(), F = U.firstChild;
14551
+ var U = yk(), F = U.firstChild;
14549
14552
  return u(F, (() => {
14550
14553
  var V = ae(() => !!E());
14551
14554
  return () => V() ? (() => {
14552
- var ee = wk();
14555
+ var ee = $k();
14553
14556
  return u(ee, E), ee;
14554
- })() : $k();
14557
+ })() : kk();
14555
14558
  })(), null), u(F, f(R, {
14556
14559
  get fallback() {
14557
14560
  return (() => {
14558
- var V = kk();
14559
- return u(V, f(zk, {}), null), u(V, f(ib, {}), null), u(V, f(Tv, {}), null), u(V, f(R, {
14561
+ var V = _k();
14562
+ return u(V, f(jk, {}), null), u(V, f(ib, {}), null), u(V, f(Tv, {}), null), u(V, f(R, {
14560
14563
  get when() {
14561
14564
  return q && q.edit.toggle !== !1;
14562
14565
  },
@@ -14577,7 +14580,7 @@ function Zk(e) {
14577
14580
  return D();
14578
14581
  },
14579
14582
  get children() {
14580
- return f(_$, {
14583
+ return f(x$, {
14581
14584
  get compact() {
14582
14585
  return $().toolbar === "compact";
14583
14586
  },
@@ -14592,7 +14595,7 @@ function Zk(e) {
14592
14595
  }), null), u(U, f(R, {
14593
14596
  when: q,
14594
14597
  get children() {
14595
- var V = pk();
14598
+ var V = vk();
14596
14599
  return u(V, () => q.modeAnnouncement()), V;
14597
14600
  }
14598
14601
  }), null), U;
@@ -14602,7 +14605,7 @@ function Zk(e) {
14602
14605
  return w(q);
14603
14606
  },
14604
14607
  get children() {
14605
- return f(jk, {});
14608
+ return f(Ok, {});
14606
14609
  }
14607
14610
  }), null), u(J, f(R, {
14608
14611
  get when() {
@@ -14628,7 +14631,7 @@ function Zk(e) {
14628
14631
  return !A(q);
14629
14632
  },
14630
14633
  get fallback() {
14631
- return f(G$, {
14634
+ return f(J$, {
14632
14635
  get onAdd() {
14633
14636
  return q != null && q.session.host.catalog ? (U) => q.addReport(U) : void 0;
14634
14637
  }
@@ -14646,7 +14649,7 @@ function Zk(e) {
14646
14649
  return q.placementHost(C);
14647
14650
  },
14648
14651
  get children() {
14649
- return f(Uk, {
14652
+ return f(Bk, {
14650
14653
  get csrf() {
14651
14654
  return e.csrf;
14652
14655
  },
@@ -14694,7 +14697,7 @@ function Zk(e) {
14694
14697
  return f(_s, {
14695
14698
  fallback: null,
14696
14699
  get children() {
14697
- return f(xk, {});
14700
+ return f(Ck, {});
14698
14701
  }
14699
14702
  });
14700
14703
  }
@@ -14721,7 +14724,7 @@ function Zk(e) {
14721
14724
  return k();
14722
14725
  },
14723
14726
  get children() {
14724
- var q = _k(), Q = q.firstChild, J = Q.nextSibling, U = J.firstChild;
14727
+ var q = xk(), Q = q.firstChild, J = Q.nextSibling, U = J.firstChild;
14725
14728
  return u(Q, () => r("dashboard.edit.loadFailed", "Editing could not be loaded. The dashboard stays read-only.")), U.$$click = L, u(U, () => r("document.retry", "Retry")), q;
14726
14729
  }
14727
14730
  }), ae(N)];
@@ -14740,15 +14743,15 @@ function Zk(e) {
14740
14743
  });
14741
14744
  }
14742
14745
  Ge(["click", "keydown", "keyup"]);
14743
- var Vk = /* @__PURE__ */ p("<div aria-hidden=true>"), qk = /* @__PURE__ */ p("<div class=lens-root><div>");
14744
- const Hk = Ji(Nd);
14746
+ var qk = /* @__PURE__ */ p("<div aria-hidden=true>"), Hk = /* @__PURE__ */ p("<div class=lens-root><div>");
14747
+ const Kk = Ji(Nd);
14745
14748
  function Yc(e) {
14746
- const t = () => e.locale ?? "en", n = () => e.theme ?? "light", r = () => e.initialDocument ?? (e.src ? void 0 : Hk), a = () => e.fallbackHTML ? (() => {
14747
- var i = Vk();
14749
+ const t = () => e.locale ?? "en", n = () => e.theme ?? "light", r = () => e.initialDocument ?? (e.src ? void 0 : Kk), a = () => e.fallbackHTML ? (() => {
14750
+ var i = qk();
14748
14751
  return M(() => i.innerHTML = e.fallbackHTML), i;
14749
14752
  })() : void 0;
14750
14753
  return (() => {
14751
- var i = qk(), o = i.firstChild;
14754
+ var i = Hk(), o = i.firstChild;
14752
14755
  return u(o, f(xd, {
14753
14756
  get host() {
14754
14757
  return e.filterDefaultsHost;
@@ -14791,7 +14794,7 @@ function Yc(e) {
14791
14794
  get fallback() {
14792
14795
  return a();
14793
14796
  },
14794
- children: () => f(Zk, {
14797
+ children: () => f(Vk, {
14795
14798
  get chrome() {
14796
14799
  return e.chrome;
14797
14800
  },
@@ -14898,18 +14901,18 @@ class Xc extends HTMLElement {
14898
14901
  }
14899
14902
  }
14900
14903
  Tt(Xc, "observedAttributes", ["src", "locale", "theme", "csrf", "initial-document"]);
14901
- function hx() {
14904
+ function mx() {
14902
14905
  customElements.get(hs) || customElements.define(hs, Xc);
14903
14906
  }
14904
- const Kk = "1", ms = Kk.split(".", 1)[0];
14905
- function Wk(e) {
14907
+ const Wk = "1", ms = Wk.split(".", 1)[0];
14908
+ function Gk(e) {
14906
14909
  return e.split(".", 1)[0];
14907
14910
  }
14908
14911
  s.string().refine(
14909
- (e) => Wk(e) === ms,
14912
+ (e) => Gk(e) === ms,
14910
14913
  { message: `Expected Lens contract major version ${ms}` }
14911
14914
  );
14912
- const Gk = s.object({
14915
+ const Jk = s.object({
14913
14916
  operationDimensions: s.record(s.string(), s.array(s.string())).optional(),
14914
14917
  dimensions: s.array(s.string()).optional(),
14915
14918
  viewDimensions: s.record(s.string(), s.array(s.string())).optional(),
@@ -14918,58 +14921,58 @@ const Gk = s.object({
14918
14921
  drill: s.boolean(),
14919
14922
  save: s.boolean(),
14920
14923
  export: s.boolean()
14921
- }).strict(), Jk = s.lazy(() => s.object({
14922
- owner: s.lazy(() => Qk).optional(),
14924
+ }).strict(), Qk = s.lazy(() => s.object({
14925
+ owner: s.lazy(() => Yk).optional(),
14923
14926
  id: s.string(),
14924
14927
  revision: s.string(),
14925
14928
  title: s.string(),
14926
14929
  description: s.string().optional(),
14927
14930
  source: s.string().optional(),
14928
- ownership: s.lazy(() => o1),
14931
+ ownership: s.lazy(() => s1),
14929
14932
  restriction: s.string().optional(),
14930
14933
  members: s.number().int().optional(),
14931
14934
  placed: s.number().int().optional()
14932
- }).strict()), Qk = s.object({
14935
+ }).strict()), Yk = s.object({
14933
14936
  id: s.string(),
14934
14937
  name: s.string()
14935
- }).strict(), Yk = s.object({
14936
- entries: s.array(s.lazy(() => Jk)),
14938
+ }).strict(), Xk = s.object({
14939
+ entries: s.array(s.lazy(() => Qk)),
14937
14940
  next: s.string().optional()
14938
14941
  }).strict();
14939
14942
  s.lazy(() => s.object({
14940
14943
  search: s.string().optional(),
14941
- scope: s.lazy(() => Xk).optional(),
14944
+ scope: s.lazy(() => e1).optional(),
14942
14945
  cursor: s.string().optional(),
14943
14946
  target: s.string().optional(),
14944
14947
  limit: s.number().int().optional()
14945
14948
  }).strict());
14946
- const Xk = s.enum(["all", "personal", "shared"]), mo = s.lazy(() => s.object({
14947
- context: s.lazy(() => e1).optional(),
14949
+ const e1 = s.enum(["all", "personal", "shared"]), mo = s.lazy(() => s.object({
14950
+ context: s.lazy(() => t1).optional(),
14948
14951
  id: s.string(),
14949
14952
  revision: s.string(),
14950
14953
  title: s.string(),
14951
14954
  parameters: s.lazy(() => go).optional(),
14952
14955
  rows: s.array(s.array(s.lazy(() => po)))
14953
- }).strict()), e1 = s.lazy(() => s.object({
14954
- calendar: s.lazy(() => t1),
14956
+ }).strict()), t1 = s.lazy(() => s.object({
14957
+ calendar: s.lazy(() => n1),
14955
14958
  dashboard: s.lazy(() => Wn),
14956
14959
  cards: s.record(s.string(), s.lazy(() => Wn)).optional(),
14957
14960
  sections: s.record(s.string(), s.lazy(() => Wn)).optional(),
14958
- groups: s.record(s.string(), s.array(s.lazy(() => r1))).optional()
14959
- }).strict()), t1 = s.lazy(() => s.object({
14961
+ groups: s.record(s.string(), s.array(s.lazy(() => a1))).optional()
14962
+ }).strict()), n1 = s.lazy(() => s.object({
14960
14963
  timezone: s.string(),
14961
14964
  asOf: s.string(),
14962
14965
  defaultPeriod: s.lazy(() => ed)
14963
- }).strict()), n1 = s.object({
14966
+ }).strict()), r1 = s.object({
14964
14967
  dimension: s.string(),
14965
14968
  values: s.array(s.string())
14966
14969
  }).strict(), Wn = s.lazy(() => s.object({
14967
14970
  period: s.lazy(() => ed).optional(),
14968
- constraints: s.array(s.lazy(() => n1)).optional()
14969
- }).strict()), r1 = s.lazy(() => s.object({
14970
- origin: s.lazy(() => a1),
14971
+ constraints: s.array(s.lazy(() => r1)).optional()
14972
+ }).strict()), a1 = s.lazy(() => s.object({
14973
+ origin: s.lazy(() => i1),
14971
14974
  filters: s.lazy(() => Wn)
14972
- }).strict()), a1 = s.object({
14975
+ }).strict()), i1 = s.object({
14973
14976
  scope: s.string(),
14974
14977
  id: s.string()
14975
14978
  }).strict(), ed = s.object({
@@ -14983,14 +14986,14 @@ const Xk = s.enum(["all", "personal", "shared"]), mo = s.lazy(() => s.object({
14983
14986
  id: s.string(),
14984
14987
  revision: s.string(),
14985
14988
  title: s.string(),
14986
- source: s.lazy(() => s1),
14989
+ source: s.lazy(() => l1),
14987
14990
  view: s.string(),
14988
14991
  parameters: s.lazy(() => go).optional()
14989
- }).strict()), i1 = s.object({
14992
+ }).strict()), o1 = s.object({
14990
14993
  id: s.string(),
14991
14994
  title: s.string(),
14992
14995
  placed: s.number().int().optional()
14993
- }).strict(), o1 = s.enum(["personal", "shared", "system"]), go = s.lazy(() => s.record(s.string(), s.unknown())), po = s.object({
14996
+ }).strict(), s1 = s.enum(["personal", "shared", "system"]), go = s.lazy(() => s.record(s.string(), s.unknown())), po = s.object({
14994
14997
  filters: s.lazy(() => Wn).optional(),
14995
14998
  sectionId: s.string().optional(),
14996
14999
  id: s.string(),
@@ -15009,14 +15012,14 @@ s.object({
15009
15012
  id: s.string(),
15010
15013
  version: s.number().int(),
15011
15014
  revision: s.string(),
15012
- capabilities: s.lazy(() => Gk)
15015
+ capabilities: s.lazy(() => Jk)
15013
15016
  }).strict();
15014
- const s1 = s.object({
15017
+ const l1 = s.object({
15015
15018
  id: s.string(),
15016
15019
  version: s.number().int()
15017
15020
  }).strict();
15018
15021
  s.enum(["current", "incompatible", "update-available"]);
15019
- class l1 extends Error {
15022
+ class c1 extends Error {
15020
15023
  constructor(n, r = "The report was saved by someone else") {
15021
15024
  super(r);
15022
15025
  Tt(this, "code", "REPORT_REVISION_CONFLICT");
@@ -15052,15 +15055,15 @@ function nd(e) {
15052
15055
  }
15053
15056
  return t;
15054
15057
  }
15055
- function mx(e, t, n) {
15058
+ function gx(e, t, n) {
15056
15059
  if (t === e.id) throw new Error("A report copy needs a new identity");
15057
15060
  return vo({ ...wt(e), id: t, revision: n });
15058
15061
  }
15059
- function gx(e, t) {
15062
+ function px(e, t) {
15060
15063
  if (!t || t === e.id) throw new Error("A placement copy needs a new identity");
15061
15064
  return { ...wt(e), id: t };
15062
15065
  }
15063
- function px(e, t) {
15066
+ function vx(e, t) {
15064
15067
  const n = (k) => "rows" in e ? nd(k) : vo(k), [r, a] = K(wt(n(e))), [i, o] = K(wt(r())), [l, c] = K(!1), [d, h] = K(), [m, g] = K(0), b = xe(() => ia(r()) !== ia(i())), v = () => g((k) => k + 1);
15065
15068
  return {
15066
15069
  value: () => wt(i()),
@@ -15073,7 +15076,7 @@ function px(e, t) {
15073
15076
  /** The revision conflict of the last save, or undefined. */
15074
15077
  conflict: () => {
15075
15078
  const k = d();
15076
- return k instanceof l1 ? k : void 0;
15079
+ return k instanceof c1 ? k : void 0;
15077
15080
  },
15078
15081
  update(k) {
15079
15082
  o(() => wt(("rows" in e ? mo : td).parse(k(wt(i()))))), h(void 0), v();
@@ -15113,10 +15116,10 @@ function px(e, t) {
15113
15116
  function rd(e) {
15114
15117
  return `${e.saved().revision}:${e.sequence()}`;
15115
15118
  }
15116
- function c1(e, t) {
15119
+ function d1(e, t) {
15117
15120
  return po.parse({ id: e, reportId: t });
15118
15121
  }
15119
- function vx(e, t, n) {
15122
+ function yx(e, t, n) {
15120
15123
  const r = vo(t), a = n.input.source;
15121
15124
  if (!a || a.id !== r.source.id || a.version !== r.source.version || a.view !== r.view || n.conflicts.length || n.unsupported.length) throw new Error("Opened analysis is not placeable");
15122
15125
  return po.parse({ id: e, reportId: r.id, filters: {
@@ -15124,16 +15127,16 @@ function vx(e, t, n) {
15124
15127
  constraints: structuredClone(hr(n.intersection))
15125
15128
  } });
15126
15129
  }
15127
- function yx(e) {
15128
- const t = Yk.parse(e), n = /* @__PURE__ */ new Set();
15130
+ function bx(e) {
15131
+ const t = Xk.parse(e), n = /* @__PURE__ */ new Set();
15129
15132
  for (const r of t.entries) {
15130
15133
  if (!r.id || !r.revision || !r.title.trim() || n.has(r.id)) throw new Error("Invalid report catalog page");
15131
15134
  n.add(r.id);
15132
15135
  }
15133
15136
  return t;
15134
15137
  }
15135
- function bx(e) {
15136
- return i1.array().parse(e);
15138
+ function wx(e) {
15139
+ return o1.array().parse(e);
15137
15140
  }
15138
15141
  let gs = 0;
15139
15142
  function ad() {
@@ -15141,7 +15144,7 @@ function ad() {
15141
15144
  const e = (n = (t = globalThis.crypto) == null ? void 0 : t.randomUUID) == null ? void 0 : n.call(t);
15142
15145
  return gs += 1, e ? `pick-${e}` : `pick-${Date.now().toString(36)}-${gs}`;
15143
15146
  }
15144
- function d1(e) {
15147
+ function u1(e) {
15145
15148
  const [t, n] = K([]);
15146
15149
  let r;
15147
15150
  const a = (l) => JSON.stringify(l.map((c) => [c.entry.id, c.duplicate])), i = (l) => t().findIndex((c) => c.entry.id === l), o = (l) => t().filter((c) => c.entry.id !== l);
@@ -15173,19 +15176,19 @@ function d1(e) {
15173
15176
  }
15174
15177
  };
15175
15178
  }
15176
- function u1(e, t, n = {}) {
15179
+ function f1(e, t, n = {}) {
15177
15180
  const r = structuredClone(e), a = r.rows.flat(), i = new Set(a.map((c) => c.id)), o = new Set(a.map((c) => c.reportId)), l = [];
15178
15181
  return t.picks.forEach((c, d) => {
15179
15182
  const h = `${t.id}-${d + 1}`;
15180
15183
  if (i.has(h) || !c.duplicate && o.has(c.entry.id)) return;
15181
- const m = c1(h, c.entry.id);
15184
+ const m = d1(h, c.entry.id);
15182
15185
  n.span !== void 0 && n.span !== 12 && (m.span = n.span), r.rows.push([m]), i.add(h), o.add(c.entry.id), l.push(structuredClone(m));
15183
15186
  }), { composition: r, added: l };
15184
15187
  }
15185
- function f1() {
15188
+ function h1() {
15186
15189
  return ad();
15187
15190
  }
15188
- var h1 = /* @__PURE__ */ p("<p class=lens-report-dialog-description>"), m1 = /* @__PURE__ */ p("<footer class=lens-report-dialog-footer>"), g1 = /* @__PURE__ */ p('<div class=lens-report-dialog-backdrop><div aria-modal=true class=lens-report-dialog tabindex=-1><header class=lens-report-dialog-header><div class=lens-report-dialog-heading><h2 class=lens-report-dialog-title></h2></div><button class="lens-icon-button lens-report-dialog-close"type=button></button></header><div class=lens-report-dialog-body>');
15191
+ var m1 = /* @__PURE__ */ p("<p class=lens-report-dialog-description>"), g1 = /* @__PURE__ */ p("<footer class=lens-report-dialog-footer>"), p1 = /* @__PURE__ */ p('<div class=lens-report-dialog-backdrop><div aria-modal=true class=lens-report-dialog tabindex=-1><header class=lens-report-dialog-header><div class=lens-report-dialog-heading><h2 class=lens-report-dialog-title></h2></div><button class="lens-icon-button lens-report-dialog-close"type=button></button></header><div class=lens-report-dialog-body>');
15189
15192
  function Hr(e) {
15190
15193
  const t = Ee(), n = Lt(), r = Lt(), a = e.restoreFocus ?? (document.activeElement instanceof HTMLElement ? document.activeElement : void 0), i = {
15191
15194
  x: window.scrollX,
@@ -15212,7 +15215,7 @@ function Hr(e) {
15212
15215
  return o();
15213
15216
  },
15214
15217
  get children() {
15215
- var c = g1(), d = c.firstChild, h = d.firstChild, m = h.firstChild, g = m.firstChild, b = m.nextSibling, v = h.nextSibling;
15218
+ var c = p1(), d = c.firstChild, h = d.firstChild, m = h.firstChild, g = m.firstChild, b = m.nextSibling, v = h.nextSibling;
15216
15219
  return c.$$mousedown = (k) => {
15217
15220
  k.target === k.currentTarget && e.onClose();
15218
15221
  }, Ce((k) => {
@@ -15222,7 +15225,7 @@ function Hr(e) {
15222
15225
  return e.description;
15223
15226
  },
15224
15227
  get children() {
15225
- var k = h1();
15228
+ var k = m1();
15226
15229
  return y(k, "id", r), u(k, () => e.description), k;
15227
15230
  }
15228
15231
  }), null), b.$$click = () => e.onClose(), u(b, f(Mn, {})), u(v, () => e.children), u(d, f(R, {
@@ -15230,7 +15233,7 @@ function Hr(e) {
15230
15233
  return e.footer;
15231
15234
  },
15232
15235
  get children() {
15233
- var k = m1();
15236
+ var k = g1();
15234
15237
  return u(k, () => e.footer), k;
15235
15238
  }
15236
15239
  }), null), M((k) => {
@@ -15250,27 +15253,27 @@ function Hr(e) {
15250
15253
  });
15251
15254
  }
15252
15255
  Ge(["mousedown", "click"]);
15253
- var ps = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), p1 = /* @__PURE__ */ p('<div class=lens-report-picker-footer><div class=lens-report-picker-summary><p aria-live=polite class=lens-report-picker-count></p></div><div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"data-testid=report-picker-confirm type=button>'), yo = /* @__PURE__ */ p("<p class=lens-report-picker-restriction>"), zi = /* @__PURE__ */ p("<p class=lens-report-picker-state role=status>"), id = /* @__PURE__ */ p("<div class=lens-report-picker-state data-state=error role=alert><p></p><button class=lens-context-action type=button>"), v1 = /* @__PURE__ */ p("<ul class=lens-report-picker-list>"), y1 = /* @__PURE__ */ p("<div class=lens-report-picker-more><button class=lens-context-action type=button>"), b1 = /* @__PURE__ */ p("<div class=lens-report-picker><div class=lens-report-picker-filters><input class=lens-report-picker-search type=search><div class=lens-report-picker-scopes role=tablist></div></div><div class=lens-report-picker-results id=lens-report-picker-results role=tabpanel>"), w1 = /* @__PURE__ */ p("<button aria-controls=lens-report-picker-results class=lens-report-picker-scope role=tab type=button>"), $1 = /* @__PURE__ */ p("<p class=lens-report-picker-summary-text>"), k1 = /* @__PURE__ */ p("<span class=lens-report-picker-badge>"), _1 = /* @__PURE__ */ p("<span class=lens-report-picker-badge data-tone=placed>"), vs = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), x1 = /* @__PURE__ */ p("<li class=lens-report-picker-item><input class=lens-report-picker-check type=checkbox><div class=lens-report-picker-text><label class=lens-report-picker-name></label><p class=lens-report-picker-meta><span></span></p></div><div class=lens-report-picker-item-actions>"), C1 = /* @__PURE__ */ p("<section class=lens-report-picker-preview><div class=lens-report-picker-preview-bar><button class=lens-context-action type=button></button><h3 class=lens-report-picker-preview-title></h3><button class=lens-context-action type=button>"), S1 = /* @__PURE__ */ p("<div class=lens-report-picker-preview-body>");
15254
- const Un = ["all", "personal", "shared"], T1 = 200;
15255
- function P1(e) {
15256
+ var ps = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), v1 = /* @__PURE__ */ p('<div class=lens-report-picker-footer><div class=lens-report-picker-summary><p aria-live=polite class=lens-report-picker-count></p></div><div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"data-testid=report-picker-confirm type=button>'), yo = /* @__PURE__ */ p("<p class=lens-report-picker-restriction>"), zi = /* @__PURE__ */ p("<p class=lens-report-picker-state role=status>"), id = /* @__PURE__ */ p("<div class=lens-report-picker-state data-state=error role=alert><p></p><button class=lens-context-action type=button>"), y1 = /* @__PURE__ */ p("<ul class=lens-report-picker-list>"), b1 = /* @__PURE__ */ p("<div class=lens-report-picker-more><button class=lens-context-action type=button>"), w1 = /* @__PURE__ */ p("<div class=lens-report-picker><div class=lens-report-picker-filters><input class=lens-report-picker-search type=search><div class=lens-report-picker-scopes role=tablist></div></div><div class=lens-report-picker-results id=lens-report-picker-results role=tabpanel>"), $1 = /* @__PURE__ */ p("<button aria-controls=lens-report-picker-results class=lens-report-picker-scope role=tab type=button>"), k1 = /* @__PURE__ */ p("<p class=lens-report-picker-summary-text>"), _1 = /* @__PURE__ */ p("<span class=lens-report-picker-badge>"), x1 = /* @__PURE__ */ p("<span class=lens-report-picker-badge data-tone=placed>"), vs = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), C1 = /* @__PURE__ */ p("<li class=lens-report-picker-item><input class=lens-report-picker-check type=checkbox><div class=lens-report-picker-text><label class=lens-report-picker-name></label><p class=lens-report-picker-meta><span></span></p></div><div class=lens-report-picker-item-actions>"), S1 = /* @__PURE__ */ p("<section class=lens-report-picker-preview><div class=lens-report-picker-preview-bar><button class=lens-context-action type=button></button><h3 class=lens-report-picker-preview-title></h3><button class=lens-context-action type=button>"), T1 = /* @__PURE__ */ p("<div class=lens-report-picker-preview-body>");
15257
+ const Un = ["all", "personal", "shared"], P1 = 200;
15258
+ function I1(e) {
15256
15259
  return f(lo, {
15257
15260
  get messages() {
15258
15261
  return e.messages;
15259
15262
  },
15260
15263
  get children() {
15261
- return f(I1, e);
15264
+ return f(E1, e);
15262
15265
  }
15263
15266
  });
15264
15267
  }
15265
- function I1(e) {
15268
+ function E1(e) {
15266
15269
  const t = Ee(), n = (z) => {
15267
15270
  var W;
15268
15271
  return ((W = e.placed) == null ? void 0 : W.call(e, z.id)) ?? z.placed ?? 0;
15269
- }, r = d1(n), [a, i] = K(e.initialSearch ?? ""), [o, l] = K(a().trim()), [c, d] = K(e.initialScope ?? "all"), [h, m] = K([]), [g, b] = K(), [v, k] = K("loading"), [x, L] = K(!1), [C, $] = K(!1), [T, E] = K(0), [w, D] = K(), [_, S] = K(!1), [A, P] = K(!1);
15272
+ }, r = u1(n), [a, i] = K(e.initialSearch ?? ""), [o, l] = K(a().trim()), [c, d] = K(e.initialScope ?? "all"), [h, m] = K([]), [g, b] = K(), [v, k] = K("loading"), [x, L] = K(!1), [C, $] = K(!1), [T, E] = K(0), [w, D] = K(), [_, S] = K(!1), [A, P] = K(!1);
15270
15273
  let O, B;
15271
15274
  const N = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
15272
15275
  ue(() => {
15273
- const z = a(), W = setTimeout(() => l(z.trim()), T1);
15276
+ const z = a(), W = setTimeout(() => l(z.trim()), P1);
15274
15277
  Re(() => clearTimeout(W));
15275
15278
  });
15276
15279
  const Q = (z) => {
@@ -15347,7 +15350,7 @@ function I1(e) {
15347
15350
  }) : t("report.picker.ownership.shared", "Shared");
15348
15351
  }
15349
15352
  }, le = () => r.picks().filter((z) => z.entry.restriction), Se = () => o() === "" && c() === "all", ge = (() => {
15350
- var z = p1(), W = z.firstChild, ve = W.firstChild, we = W.nextSibling, Fe = we.firstChild, Y = Fe.nextSibling;
15353
+ var z = v1(), W = z.firstChild, ve = W.firstChild, we = W.nextSibling, Fe = we.firstChild, Y = Fe.nextSibling;
15351
15354
  return u(ve, (() => {
15352
15355
  var pe = ae(() => r.count() > 0);
15353
15356
  return () => pe() ? t("report.picker.count", "{count} selected", {
@@ -15413,13 +15416,13 @@ function I1(e) {
15413
15416
  },
15414
15417
  get children() {
15415
15418
  return [(() => {
15416
- var z = b1(), W = z.firstChild, ve = W.firstChild, we = ve.nextSibling, Fe = W.nextSibling;
15419
+ var z = w1(), W = z.firstChild, ve = W.firstChild, we = ve.nextSibling, Fe = W.nextSibling;
15417
15420
  return Ce((Y) => {
15418
15421
  O = Y;
15419
15422
  }, ve), ve.$$input = (Y) => i(Y.currentTarget.value), u(we, f(Me, {
15420
15423
  each: Un,
15421
15424
  children: (Y) => (() => {
15422
- var pe = w1();
15425
+ var pe = $1();
15423
15426
  return Ce((_e) => q.set(Y, _e), pe), pe.$$keydown = (_e) => V(_e, Y), pe.$$click = () => d(Y), u(pe, () => ee(Y)), M((_e) => {
15424
15427
  var te = c() === Y, H = c() === Y ? 0 : -1;
15425
15428
  return te !== _e.e && y(pe, "aria-selected", _e.e = te), H !== _e.t && y(pe, "tabindex", _e.t = H), _e;
@@ -15461,12 +15464,12 @@ function I1(e) {
15461
15464
  when: !0,
15462
15465
  get children() {
15463
15466
  return [(() => {
15464
- var Y = v1();
15467
+ var Y = y1();
15465
15468
  return u(Y, f(Me, {
15466
15469
  get each() {
15467
15470
  return h();
15468
15471
  },
15469
- children: (pe) => f(E1, {
15472
+ children: (pe) => f(R1, {
15470
15473
  entry: pe,
15471
15474
  onAddAnother: () => r.addAnother(pe),
15472
15475
  get onPreview() {
@@ -15490,7 +15493,7 @@ function I1(e) {
15490
15493
  return g();
15491
15494
  },
15492
15495
  get children() {
15493
- var Y = y1(), pe = Y.firstChild;
15496
+ var Y = b1(), pe = Y.firstChild;
15494
15497
  return pe.$$click = J, u(pe, () => t("report.picker.loadMore", "Show more reports")), u(Y, f(R, {
15495
15498
  get when() {
15496
15499
  return C();
@@ -15525,7 +15528,7 @@ function I1(e) {
15525
15528
  get when() {
15526
15529
  return w();
15527
15530
  },
15528
- children: (z) => f(R1, {
15531
+ children: (z) => f(D1, {
15529
15532
  get entry() {
15530
15533
  return z();
15531
15534
  },
@@ -15548,16 +15551,16 @@ function I1(e) {
15548
15551
  }
15549
15552
  });
15550
15553
  }
15551
- function E1(e) {
15554
+ function R1(e) {
15552
15555
  const t = Ee(), n = () => `lens-report-pick-${e.entry.id}`, r = () => e.placed > 0, a = () => [e.entry.source, e.ownership].filter(Boolean).join(" · ");
15553
15556
  return (() => {
15554
- var i = x1(), o = i.firstChild, l = o.nextSibling, c = l.firstChild, d = c.nextSibling, h = d.firstChild, m = l.nextSibling;
15557
+ var i = C1(), o = i.firstChild, l = o.nextSibling, c = l.firstChild, d = c.nextSibling, h = d.firstChild, m = l.nextSibling;
15555
15558
  return o.addEventListener("change", () => e.onToggle()), u(c, () => e.entry.title), u(l, f(R, {
15556
15559
  get when() {
15557
15560
  return e.entry.description;
15558
15561
  },
15559
15562
  get children() {
15560
- var g = $1();
15563
+ var g = k1();
15561
15564
  return u(g, () => e.entry.description), g;
15562
15565
  }
15563
15566
  }), d), u(h, a), u(d, f(R, {
@@ -15565,7 +15568,7 @@ function E1(e) {
15565
15568
  return (e.entry.members ?? 0) > 1;
15566
15569
  },
15567
15570
  get children() {
15568
- var g = k1();
15571
+ var g = _1();
15569
15572
  return u(g, () => t("report.picker.compound", "One block · {count} panels", {
15570
15573
  count: e.entry.members ?? 0
15571
15574
  })), g;
@@ -15575,7 +15578,7 @@ function E1(e) {
15575
15578
  return r();
15576
15579
  },
15577
15580
  get children() {
15578
- var g = _1();
15581
+ var g = x1();
15579
15582
  return u(g, () => t("report.picker.placed", "Already on this dashboard")), g;
15580
15583
  }
15581
15584
  }), null), u(l, f(R, {
@@ -15622,7 +15625,7 @@ function E1(e) {
15622
15625
  }), M(() => o.checked = r() || e.selected), i;
15623
15626
  })();
15624
15627
  }
15625
- function R1(e) {
15628
+ function D1(e) {
15626
15629
  const t = Ee(), [n, r] = K(), [a, i] = K(!1), [o, l] = K(0);
15627
15630
  let c;
15628
15631
  return ue(Pt(o, () => {
@@ -15635,7 +15638,7 @@ function R1(e) {
15635
15638
  d.signal.aborted || (console.error("[lens] report preview failed", h), i(!0));
15636
15639
  }), Re(() => d.abort());
15637
15640
  })), requestAnimationFrame(() => c == null ? void 0 : c.focus()), (() => {
15638
- var d = C1(), h = d.firstChild, m = h.firstChild, g = m.nextSibling, b = g.nextSibling;
15641
+ var d = S1(), h = d.firstChild, m = h.firstChild, g = m.nextSibling, b = g.nextSibling;
15639
15642
  return Ce((v) => {
15640
15643
  c = v;
15641
15644
  }, m), m.$$click = () => e.onBack(), u(m, () => t("report.picker.back", "Back to reports")), u(g, () => e.entry.title), b.$$click = () => e.onToggle(), u(b, (() => {
@@ -15664,7 +15667,7 @@ function R1(e) {
15664
15667
  return n();
15665
15668
  },
15666
15669
  children: (v) => (() => {
15667
- var k = S1();
15670
+ var k = T1();
15668
15671
  return u(k, f(Yc, {
15669
15672
  get initialDocument() {
15670
15673
  return v();
@@ -15694,24 +15697,24 @@ function R1(e) {
15694
15697
  })();
15695
15698
  }
15696
15699
  Ge(["click", "input", "keydown"]);
15697
- var D1 = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), A1 = /* @__PURE__ */ p('<div class=lens-report-picker-footer><div class=lens-report-picker-summary></div><div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"data-testid=report-destination-confirm type=button>'), ys = /* @__PURE__ */ p("<p class=lens-report-picker-state role=status>"), L1 = /* @__PURE__ */ p("<div class=lens-report-picker-state data-state=error role=alert><p></p><button class=lens-context-action type=button>"), F1 = /* @__PURE__ */ p("<div class=lens-report-picker><div class=lens-report-picker-filters><input class=lens-report-picker-search type=search></div><fieldset class=lens-report-destination-list><legend class=lens-report-destination-legend></legend><div class=lens-report-picker-item><input class=lens-report-picker-check id=lens-report-destination-new name=lens-report-destination type=radio value><label class=lens-report-picker-name for=lens-report-destination-new>"), M1 = /* @__PURE__ */ p("<p class=lens-report-picker-meta><span class=lens-report-picker-badge data-tone=placed>"), z1 = /* @__PURE__ */ p("<div class=lens-report-picker-item><input class=lens-report-picker-check name=lens-report-destination type=radio><div class=lens-report-picker-text><label class=lens-report-picker-name>");
15698
- const j1 = 200;
15699
- function wx(e) {
15700
+ var A1 = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), L1 = /* @__PURE__ */ p('<div class=lens-report-picker-footer><div class=lens-report-picker-summary></div><div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"data-testid=report-destination-confirm type=button>'), ys = /* @__PURE__ */ p("<p class=lens-report-picker-state role=status>"), F1 = /* @__PURE__ */ p("<div class=lens-report-picker-state data-state=error role=alert><p></p><button class=lens-context-action type=button>"), M1 = /* @__PURE__ */ p("<div class=lens-report-picker><div class=lens-report-picker-filters><input class=lens-report-picker-search type=search></div><fieldset class=lens-report-destination-list><legend class=lens-report-destination-legend></legend><div class=lens-report-picker-item><input class=lens-report-picker-check id=lens-report-destination-new name=lens-report-destination type=radio value><label class=lens-report-picker-name for=lens-report-destination-new>"), z1 = /* @__PURE__ */ p("<p class=lens-report-picker-meta><span class=lens-report-picker-badge data-tone=placed>"), j1 = /* @__PURE__ */ p("<div class=lens-report-picker-item><input class=lens-report-picker-check name=lens-report-destination type=radio><div class=lens-report-picker-text><label class=lens-report-picker-name>");
15701
+ const O1 = 200;
15702
+ function $x(e) {
15700
15703
  return f(lo, {
15701
15704
  get messages() {
15702
15705
  return e.messages;
15703
15706
  },
15704
15707
  get children() {
15705
- return f(O1, e);
15708
+ return f(N1, e);
15706
15709
  }
15707
15710
  });
15708
15711
  }
15709
- function O1(e) {
15712
+ function N1(e) {
15710
15713
  const t = Ee(), [n, r] = K(""), [a, i] = K(""), [o, l] = K([]), [c, d] = K("loading"), [h, m] = K(0), [g, b] = K(), [v, k] = K(!1), [x, L] = K(!1);
15711
15714
  let C, $;
15712
15715
  const T = /* @__PURE__ */ new Map(), E = "lens-report-destination";
15713
15716
  ue(() => {
15714
- const S = n(), A = setTimeout(() => i(S.trim()), j1);
15717
+ const S = n(), A = setTimeout(() => i(S.trim()), O1);
15715
15718
  Re(() => clearTimeout(A));
15716
15719
  }), ue(Pt([a, h], ([S]) => {
15717
15720
  const A = new AbortController();
@@ -15748,7 +15751,7 @@ function O1(e) {
15748
15751
  const A = g();
15749
15752
  ($ == null ? void 0 : $.choice) !== A && ($ = {
15750
15753
  choice: A,
15751
- id: f1()
15754
+ id: h1()
15752
15755
  }), k(!0), L(!1);
15753
15756
  try {
15754
15757
  await e.onConfirm({
@@ -15763,13 +15766,13 @@ function O1(e) {
15763
15766
  k(!1);
15764
15767
  }
15765
15768
  }, _ = (() => {
15766
- var S = A1(), A = S.firstChild, P = A.nextSibling, O = P.firstChild, B = O.nextSibling;
15769
+ var S = L1(), A = S.firstChild, P = A.nextSibling, O = P.firstChild, B = O.nextSibling;
15767
15770
  return u(A, f(R, {
15768
15771
  get when() {
15769
15772
  return x();
15770
15773
  },
15771
15774
  get children() {
15772
- var N = D1();
15775
+ var N = A1();
15773
15776
  return u(N, () => t("report.destination.failed", "The report could not be added. Your choice is kept; try again.")), N;
15774
15777
  }
15775
15778
  })), O.$$click = () => e.onClose(), u(O, () => t("report.picker.cancel", "Cancel")), B.$$click = () => void D(), u(B, () => t("report.destination.confirm", "Add to dashboard")), M((N) => {
@@ -15803,7 +15806,7 @@ function O1(e) {
15803
15806
  });
15804
15807
  },
15805
15808
  get children() {
15806
- var S = F1(), A = S.firstChild, P = A.firstChild, O = A.nextSibling, B = O.firstChild, N = B.nextSibling, q = N.firstChild, Q = q.nextSibling;
15809
+ var S = M1(), A = S.firstChild, P = A.firstChild, O = A.nextSibling, B = O.firstChild, N = B.nextSibling, q = N.firstChild, Q = q.nextSibling;
15807
15810
  return Ce((J) => {
15808
15811
  C = J;
15809
15812
  }, P), P.$$input = (J) => r(J.currentTarget.value), u(B, () => t("report.destination.list", "Dashboards")), q.addEventListener("change", () => b("")), u(Q, () => t("report.destination.new", "New dashboard")), u(O, f(Ni, {
@@ -15821,7 +15824,7 @@ function O1(e) {
15821
15824
  return c() === "error";
15822
15825
  },
15823
15826
  get children() {
15824
- var J = L1(), U = J.firstChild, F = U.nextSibling;
15827
+ var J = F1(), U = J.firstChild, F = U.nextSibling;
15825
15828
  return u(U, () => t("report.destination.loadFailed", "The dashboards could not be loaded.")), F.$$click = () => m((V) => V + 1), u(F, () => t("report.picker.retry", "Try again")), J;
15826
15829
  }
15827
15830
  }), f(Nt, {
@@ -15840,13 +15843,13 @@ function O1(e) {
15840
15843
  return o();
15841
15844
  },
15842
15845
  children: (J) => (() => {
15843
- var U = z1(), F = U.firstChild, V = F.nextSibling, ee = V.firstChild;
15846
+ var U = j1(), F = U.firstChild, V = F.nextSibling, ee = V.firstChild;
15844
15847
  return F.addEventListener("change", () => b(J.id)), u(ee, () => J.title), u(V, f(R, {
15845
15848
  get when() {
15846
15849
  return (J.placed ?? 0) > 0;
15847
15850
  },
15848
15851
  get children() {
15849
- var Z = M1(), le = Z.firstChild;
15852
+ var Z = z1(), le = Z.firstChild;
15850
15853
  return u(le, () => t("report.destination.placed", "Already has this report")), Z;
15851
15854
  }
15852
15855
  }), null), M((Z) => {
@@ -15874,8 +15877,8 @@ function O1(e) {
15874
15877
  });
15875
15878
  }
15876
15879
  Ge(["click", "input"]);
15877
- var N1 = /* @__PURE__ */ p("<p class=lens-report-editor-alert data-tone=error role=alert>"), U1 = /* @__PURE__ */ p("<p class=lens-report-editor-notice data-testid=report-editor-notice role=status>"), B1 = /* @__PURE__ */ p("<p aria-live=polite class=lens-visually-hidden data-testid=report-editor-announcement>"), Z1 = /* @__PURE__ */ p("<p class=lens-visually-hidden>"), Or = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), od = /* @__PURE__ */ p("<p>"), V1 = /* @__PURE__ */ p("<div class=lens-report-editor-alert data-tone=warn data-testid=report-editor-conflict role=alert><p></p><div class=lens-report-editor-alert-actions>"), sd = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"type=button>'), q1 = /* @__PURE__ */ p("<button class=lens-context-action data-testid=report-editor-save-draft type=button>"), H1 = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"data-testid=report-editor-publish type=button>'), K1 = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"data-testid=report-editor-save type=button>'), W1 = /* @__PURE__ */ p('<button class="lens-icon-button lens-report-editor-handle"draggable=true type=button><span aria-hidden=true class=lens-report-editor-grip>'), G1 = /* @__PURE__ */ p("<div aria-orientation=horizontal class=lens-report-editor-resize role=slider tabindex=0>"), bs = /* @__PURE__ */ p("<p class=lens-report-proposal-summary>"), J1 = /* @__PURE__ */ p("<ul class=lens-report-proposal-list>"), ws = /* @__PURE__ */ p("<p class=lens-report-proposal-stale role=alert>"), Q1 = /* @__PURE__ */ p("<section class=lens-report-proposal data-testid=report-proposal><h3 class=lens-report-proposal-title></h3><div class=lens-report-proposal-actions><button class=lens-context-action type=button>"), Y1 = /* @__PURE__ */ p("<li><span class=lens-report-picker-badge></span><span>"), ld = /* @__PURE__ */ p('<div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"type=button>'), X1 = /* @__PURE__ */ p("<div class=lens-report-form-range><label><span></span><input type=date></label><label><span></span><input type=date>"), cd = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), e_ = /* @__PURE__ */ p("<div class=lens-report-form><label class=lens-report-form-field><span></span><input></label><label class=lens-report-form-field><span></span><select></select></label><fieldset class=lens-report-form-field><legend></legend><div class=lens-report-form-choice><input type=radio><label></label></div><div class=lens-report-form-choice><input type=radio><label>"), t_ = /* @__PURE__ */ p("<option>"), n_ = /* @__PURE__ */ p("<div class=lens-report-form><p data-testid=report-impact-usage>"), r_ = /* @__PURE__ */ p('<div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class=lens-context-action data-danger type=button></button><button class="lens-context-action lens-report-primary"type=button>'), a_ = /* @__PURE__ */ p('<p class="lens-report-picker-error lens-report-form"role=alert>');
15878
- function i_(e, t) {
15880
+ var U1 = /* @__PURE__ */ p("<p class=lens-report-editor-alert data-tone=error role=alert>"), B1 = /* @__PURE__ */ p("<p class=lens-report-editor-notice data-testid=report-editor-notice role=status>"), Z1 = /* @__PURE__ */ p("<p aria-live=polite class=lens-visually-hidden data-testid=report-editor-announcement>"), V1 = /* @__PURE__ */ p("<p class=lens-visually-hidden>"), Or = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), od = /* @__PURE__ */ p("<p>"), q1 = /* @__PURE__ */ p("<div class=lens-report-editor-alert data-tone=warn data-testid=report-editor-conflict role=alert><p></p><div class=lens-report-editor-alert-actions>"), sd = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"type=button>'), H1 = /* @__PURE__ */ p("<button class=lens-context-action data-testid=report-editor-save-draft type=button>"), K1 = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"data-testid=report-editor-publish type=button>'), W1 = /* @__PURE__ */ p('<button class="lens-context-action lens-report-primary"data-testid=report-editor-save type=button>'), G1 = /* @__PURE__ */ p('<button class="lens-icon-button lens-report-editor-handle"draggable=true type=button><span aria-hidden=true class=lens-report-editor-grip>'), J1 = /* @__PURE__ */ p("<div aria-orientation=horizontal class=lens-report-editor-resize role=slider tabindex=0>"), bs = /* @__PURE__ */ p("<p class=lens-report-proposal-summary>"), Q1 = /* @__PURE__ */ p("<ul class=lens-report-proposal-list>"), ws = /* @__PURE__ */ p("<p class=lens-report-proposal-stale role=alert>"), Y1 = /* @__PURE__ */ p("<section class=lens-report-proposal data-testid=report-proposal><h3 class=lens-report-proposal-title></h3><div class=lens-report-proposal-actions><button class=lens-context-action type=button>"), X1 = /* @__PURE__ */ p("<li><span class=lens-report-picker-badge></span><span>"), ld = /* @__PURE__ */ p('<div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class="lens-context-action lens-report-primary"type=button>'), e_ = /* @__PURE__ */ p("<div class=lens-report-form-range><label><span></span><input type=date></label><label><span></span><input type=date>"), cd = /* @__PURE__ */ p("<p class=lens-report-picker-error role=alert>"), t_ = /* @__PURE__ */ p("<div class=lens-report-form><label class=lens-report-form-field><span></span><input></label><label class=lens-report-form-field><span></span><select></select></label><fieldset class=lens-report-form-field><legend></legend><div class=lens-report-form-choice><input type=radio><label></label></div><div class=lens-report-form-choice><input type=radio><label>"), n_ = /* @__PURE__ */ p("<option>"), r_ = /* @__PURE__ */ p("<div class=lens-report-form><p data-testid=report-impact-usage>"), a_ = /* @__PURE__ */ p('<div class=lens-report-picker-actions><button class=lens-context-action type=button></button><button class=lens-context-action data-danger type=button></button><button class="lens-context-action lens-report-primary"type=button>'), i_ = /* @__PURE__ */ p('<p class="lens-report-picker-error lens-report-form"role=alert>');
15881
+ function o_(e, t) {
15879
15882
  if (e) {
15880
15883
  if (e.mode === "fixed" && e.start && e.end) {
15881
15884
  const n = $t(e.start), r = $t(e.end);
@@ -15888,7 +15891,7 @@ function i_(e, t) {
15888
15891
  }) : t("report.editor.period.custom", "Card period");
15889
15892
  }
15890
15893
  }
15891
- function o_(e) {
15894
+ function s_(e) {
15892
15895
  const t = Ee(), n = e.draft, [r, a] = K(!1), [i, o] = K(), [l, c] = K(), [d, h] = K(""), [m, g] = K(""), [b, v] = K([]), [k, x] = K(!1), [L, C] = K(), [$, T] = K(!1), [E, w] = K({}), D = (H) => {
15893
15896
  var X, he;
15894
15897
  return H.title ?? ((X = e.reportTitle) == null ? void 0 : X.call(e, H.reportId)) ?? ((he = E()[H.id]) == null ? void 0 : he.title) ?? H.reportId;
@@ -15906,14 +15909,14 @@ function o_(e) {
15906
15909
  return (X = S.get(H)) == null ? void 0 : X.focus();
15907
15910
  }), U = (H, X) => {
15908
15911
  const he = N(H);
15909
- Q(($e) => B$($e, H, X));
15912
+ Q(($e) => Z$($e, H, X));
15910
15913
  const Ie = N(H);
15911
15914
  Ie && he && (Ie.row !== he.row || Ie.index !== he.index) && g(t("report.editor.moved", "Moved {title} to row {row}, position {position}", {
15912
15915
  title: D(Ie.placement),
15913
15916
  row: Ie.row + 1,
15914
15917
  position: Ie.index + 1
15915
15918
  })), J(H);
15916
- }, F = (H, X) => Q((he) => Z$(he, H, X)), V = (H, X) => {
15919
+ }, F = (H, X) => Q((he) => V$(he, H, X)), V = (H, X) => {
15917
15920
  Q((Ie) => Vc(Ie, H, X));
15918
15921
  const he = N(H);
15919
15922
  he && g(t("report.editor.resized", "{title} is {span} of 12 columns wide", {
@@ -15922,7 +15925,7 @@ function o_(e) {
15922
15925
  }));
15923
15926
  }, ee = (H) => {
15924
15927
  const X = B(), he = X.indexOf(H), Ie = N(H);
15925
- Q((Ue) => V$(Ue, H)), Ie && g(t("report.editor.removed", "Removed {title} from the draft", {
15928
+ Q((Ue) => q$(Ue, H)), Ie && g(t("report.editor.removed", "Removed {title} from the draft", {
15926
15929
  title: D(Ie.placement)
15927
15930
  }));
15928
15931
  const $e = X[he + 1] ?? X[he - 1];
@@ -15934,7 +15937,7 @@ function o_(e) {
15934
15937
  const {
15935
15938
  composition: X,
15936
15939
  added: he
15937
- } = u1(n.value(), H, {
15940
+ } = f1(n.value(), H, {
15938
15941
  span: e.addSpan
15939
15942
  }), Ie = {
15940
15943
  ...E()
@@ -15957,7 +15960,7 @@ function o_(e) {
15957
15960
  });
15958
15961
  });
15959
15962
  }, le = (H, X) => {
15960
- Q((he) => q$(he, H, X)), o(void 0);
15963
+ Q((he) => H$(he, H, X)), o(void 0);
15961
15964
  }, Se = async (H) => {
15962
15965
  x(!1), h("");
15963
15966
  try {
@@ -16052,14 +16055,14 @@ function o_(e) {
16052
16055
  }
16053
16056
  };
16054
16057
  }
16055
- function s_(e) {
16058
+ function l_(e) {
16056
16059
  const t = e.session, n = t.translate, r = t.draft;
16057
16060
  return [f(R, {
16058
16061
  get when() {
16059
16062
  return t.saveError();
16060
16063
  },
16061
16064
  get children() {
16062
- var a = N1();
16065
+ var a = U1();
16063
16066
  return u(a, () => n("report.editor.saveFailed", "The changes could not be saved. They are kept here; try again.")), a;
16064
16067
  }
16065
16068
  }), f(R, {
@@ -16067,7 +16070,7 @@ function s_(e) {
16067
16070
  return t.conflict();
16068
16071
  },
16069
16072
  children: (a) => (() => {
16070
- var i = V1(), o = i.firstChild, l = o.nextSibling;
16073
+ var i = q1(), o = i.firstChild, l = o.nextSibling;
16071
16074
  return u(o, () => n("report.editor.conflict", "Someone else saved this dashboard while you were editing. Your changes are kept.")), u(l, f(R, {
16072
16075
  get when() {
16073
16076
  return a().latest;
@@ -16102,24 +16105,24 @@ function s_(e) {
16102
16105
  return t.notice();
16103
16106
  },
16104
16107
  get children() {
16105
- var a = U1();
16108
+ var a = B1();
16106
16109
  return u(a, () => t.notice()), a;
16107
16110
  }
16108
16111
  }), (() => {
16109
- var a = B1();
16112
+ var a = Z1();
16110
16113
  return u(a, () => t.announcement()), a;
16111
16114
  })(), (() => {
16112
- var a = Z1();
16115
+ var a = V1();
16113
16116
  return u(a, () => n("report.editor.moveHint", "Use the arrow keys to move the card. Drag the handle with a pointer.")), M(() => y(a, "id", t.instructionsId)), a;
16114
16117
  })()];
16115
16118
  }
16116
- function l_(e) {
16119
+ function c_(e) {
16117
16120
  const t = e.session, n = t.draft;
16118
16121
  return f(R, {
16119
16122
  get when() {
16120
16123
  return t.proposal();
16121
16124
  },
16122
- children: (r) => f(g_, {
16125
+ children: (r) => f(p_, {
16123
16126
  get base() {
16124
16127
  return n.value();
16125
16128
  },
@@ -16145,14 +16148,14 @@ function l_(e) {
16145
16148
  })
16146
16149
  });
16147
16150
  }
16148
- function c_(e) {
16151
+ function d_(e) {
16149
16152
  const t = e.session, n = t.host, r = t.draft;
16150
16153
  return [f(R, {
16151
16154
  get when() {
16152
16155
  return ae(() => !!t.picking())() && n.catalog;
16153
16156
  },
16154
16157
  get children() {
16155
- return f(P1, {
16158
+ return f(I1, {
16156
16159
  get host() {
16157
16160
  return n.catalog;
16158
16161
  },
@@ -16181,7 +16184,7 @@ function c_(e) {
16181
16184
  get when() {
16182
16185
  return ae(() => !!t.configuring())() ? t.byId(t.configuring()) : void 0;
16183
16186
  },
16184
- children: (a) => f(p_, {
16187
+ children: (a) => f(v_, {
16185
16188
  onApply: (i) => t.configure(a().placement.id, i),
16186
16189
  onClose: () => t.setConfiguring(void 0),
16187
16190
  get placement() {
@@ -16202,7 +16205,7 @@ function c_(e) {
16202
16205
  get when() {
16203
16206
  return t.impact();
16204
16207
  },
16205
- children: (a) => f(v_, {
16208
+ children: (a) => f(y_, {
16206
16209
  onClose: () => t.setImpact(void 0),
16207
16210
  get onCopy() {
16208
16211
  return n.onCopyReport ? () => n.onCopyReport(a().placementId) : void 0;
@@ -16227,7 +16230,7 @@ function c_(e) {
16227
16230
  return e.guard.pending();
16228
16231
  },
16229
16232
  get children() {
16230
- return f(y_, {
16233
+ return f(b_, {
16231
16234
  get guard() {
16232
16235
  return e.guard;
16233
16236
  },
@@ -16241,12 +16244,12 @@ function c_(e) {
16241
16244
  }
16242
16245
  })];
16243
16246
  }
16244
- function d_(e) {
16247
+ function u_(e) {
16245
16248
  const t = e.session, n = t.translate, r = t.draft;
16246
16249
  return f(R, {
16247
16250
  get fallback() {
16248
16251
  return (() => {
16249
- var a = K1();
16252
+ var a = W1();
16250
16253
  return a.$$click = () => e.onSave("draft"), u(a, () => n("report.editor.saveChanges", "Save changes")), M((i) => {
16251
16254
  var o = r.saving() || void 0, l = r.saving() || !r.dirty();
16252
16255
  return o !== i.e && y(a, "aria-busy", i.e = o), l !== i.t && (a.disabled = i.t = l), i;
@@ -16261,7 +16264,7 @@ function d_(e) {
16261
16264
  },
16262
16265
  get children() {
16263
16266
  return [(() => {
16264
- var a = q1();
16267
+ var a = H1();
16265
16268
  return a.$$click = () => e.onSave("draft"), u(a, () => n("report.editor.saveDraft", "Save draft")), M((i) => {
16266
16269
  var o = r.saving() || void 0, l = r.saving();
16267
16270
  return o !== i.e && y(a, "aria-busy", i.e = o), l !== i.t && (a.disabled = i.t = l), i;
@@ -16270,7 +16273,7 @@ function d_(e) {
16270
16273
  t: void 0
16271
16274
  }), a;
16272
16275
  })(), (() => {
16273
- var a = H1();
16276
+ var a = K1();
16274
16277
  return a.$$click = () => e.onSave("publish"), u(a, () => n("report.editor.publish", "Publish")), M((i) => {
16275
16278
  var o = r.saving() || void 0, l = r.saving();
16276
16279
  return o !== i.e && y(a, "aria-busy", i.e = o), l !== i.t && (a.disabled = i.t = l), i;
@@ -16283,11 +16286,11 @@ function d_(e) {
16283
16286
  });
16284
16287
  }
16285
16288
  const ji = [3, 4, 6, 8, 9, 12];
16286
- function u_(e, t) {
16289
+ function f_(e, t) {
16287
16290
  return t > 0 ? ji.find((n) => n > e) ?? Vt : [...ji].reverse().find((n) => n < e) ?? zr;
16288
16291
  }
16289
16292
  const ui = "application/x-lens-placement";
16290
- function f_(e) {
16293
+ function h_(e) {
16291
16294
  const [t, n] = K(), [r, a] = K(!1);
16292
16295
  return {
16293
16296
  span: () => t() ?? e.span(),
@@ -16316,7 +16319,7 @@ function f_(e) {
16316
16319
  },
16317
16320
  onResizeKey: (m) => {
16318
16321
  const g = m.key === "ArrowRight" || m.key === "ArrowUp" ? 1 : m.key === "ArrowLeft" || m.key === "ArrowDown" ? -1 : 0;
16319
- g ? (m.preventDefault(), e.onResize(u_(e.span(), g))) : (m.key === "Home" || m.key === "End") && (m.preventDefault(), e.onResize(m.key === "Home" ? zr : Vt));
16322
+ g ? (m.preventDefault(), e.onResize(f_(e.span(), g))) : (m.key === "Home" || m.key === "End") && (m.preventDefault(), e.onResize(m.key === "Home" ? zr : Vt));
16320
16323
  },
16321
16324
  onResizePointer: (m) => {
16322
16325
  var E;
@@ -16340,10 +16343,10 @@ function f_(e) {
16340
16343
  }
16341
16344
  };
16342
16345
  }
16343
- function h_(e) {
16346
+ function m_(e) {
16344
16347
  const t = Ee();
16345
16348
  return (() => {
16346
- var n = W1(), r = e.handleRef;
16349
+ var n = G1(), r = e.handleRef;
16347
16350
  return typeof r == "function" ? Ce(r, n) : e.handleRef = n, n.$$keydown = (a) => e.controls.onHandleKey(a), n.addEventListener("dragstart", (a) => e.controls.onDragStart(a)), M((a) => {
16348
16351
  var i = e.describedBy, o = t("report.editor.move", "Move {title}", {
16349
16352
  title: e.title
@@ -16359,10 +16362,10 @@ function h_(e) {
16359
16362
  }), n;
16360
16363
  })();
16361
16364
  }
16362
- function m_(e) {
16365
+ function g_(e) {
16363
16366
  const t = Ee();
16364
16367
  return (() => {
16365
- var n = G1();
16368
+ var n = J1();
16366
16369
  return n.$$pointerdown = (r) => e.controls.onResizePointer(r), n.$$keydown = (r) => e.controls.onResizeKey(r), y(n, "aria-valuemax", Vt), y(n, "aria-valuemin", zr), M((r) => {
16367
16370
  var a = t("report.editor.width", "Width of {title}", {
16368
16371
  title: e.title
@@ -16378,8 +16381,8 @@ function m_(e) {
16378
16381
  }), n;
16379
16382
  })();
16380
16383
  }
16381
- function g_(e) {
16382
- const t = Ee(), n = () => e.invalid ? [] : H$(e.base, e.proposal.composition), r = () => e.stale || e.invalid, a = (i) => {
16384
+ function p_(e) {
16385
+ const t = Ee(), n = () => e.invalid ? [] : K$(e.base, e.proposal.composition), r = () => e.stale || e.invalid, a = (i) => {
16383
16386
  switch (i.kind) {
16384
16387
  case "add":
16385
16388
  return t("report.proposal.add", "Add");
@@ -16390,7 +16393,7 @@ function g_(e) {
16390
16393
  }
16391
16394
  };
16392
16395
  return (() => {
16393
- var i = Q1(), o = i.firstChild, l = o.nextSibling, c = l.firstChild;
16396
+ var i = Y1(), o = i.firstChild, l = o.nextSibling, c = l.firstChild;
16394
16397
  return u(o, () => t("report.proposal.title", "Proposed changes")), u(i, f(R, {
16395
16398
  get when() {
16396
16399
  return e.proposal.summary;
@@ -16415,13 +16418,13 @@ function g_(e) {
16415
16418
  return n().length > 0;
16416
16419
  },
16417
16420
  get children() {
16418
- var d = J1();
16421
+ var d = Q1();
16419
16422
  return u(d, f(Me, {
16420
16423
  get each() {
16421
16424
  return n();
16422
16425
  },
16423
16426
  children: (h) => (() => {
16424
- var m = Y1(), g = m.firstChild, b = g.nextSibling;
16427
+ var m = X1(), g = m.firstChild, b = g.nextSibling;
16425
16428
  return u(g, () => a(h)), u(b, () => e.title(h.placementId, h.reportId)), M((v) => {
16426
16429
  var k = h.kind, x = h.kind;
16427
16430
  return k !== v.e && y(m, "data-kind", v.e = k), x !== v.t && y(g, "data-tone", v.t = x), v;
@@ -16495,7 +16498,7 @@ function g_(e) {
16495
16498
  }), i;
16496
16499
  })();
16497
16500
  }
16498
- function p_(e) {
16501
+ function v_(e) {
16499
16502
  var $;
16500
16503
  const t = Ee(), n = Lt(), r = ($ = e.placement.filters) == null ? void 0 : $.period, [a, i] = K(e.placement.title ?? ""), [o, l] = K(xn(e.placement)), [c, d] = K(!!r), [h, m] = K((r == null ? void 0 : r.mode) === "fixed" ? r.start ?? "" : ""), [g, b] = K((r == null ? void 0 : r.mode) === "fixed" ? r.end ?? "" : "");
16501
16504
  let v;
@@ -16536,13 +16539,13 @@ function p_(e) {
16536
16539
  });
16537
16540
  },
16538
16541
  get children() {
16539
- var T = e_(), E = T.firstChild, w = E.firstChild, D = w.nextSibling, _ = E.nextSibling, S = _.firstChild, A = S.nextSibling, P = _.nextSibling, O = P.firstChild, B = O.nextSibling, N = B.firstChild, q = N.nextSibling, Q = B.nextSibling, J = Q.firstChild, U = J.nextSibling;
16542
+ var T = t_(), E = T.firstChild, w = E.firstChild, D = w.nextSibling, _ = E.nextSibling, S = _.firstChild, A = S.nextSibling, P = _.nextSibling, O = P.firstChild, B = O.nextSibling, N = B.firstChild, q = N.nextSibling, Q = B.nextSibling, J = Q.firstChild, U = J.nextSibling;
16540
16543
  return y(E, "for", `${n}-caption`), u(w, () => t("report.editor.caption", "Card caption")), Ce((F) => {
16541
16544
  v = F;
16542
16545
  }, D), D.$$input = (F) => i(F.currentTarget.value), y(D, "id", `${n}-caption`), y(_, "for", `${n}-span`), u(S, () => t("report.editor.widthLabel", "Width")), A.addEventListener("change", (F) => l(Number(F.currentTarget.value))), y(A, "id", `${n}-span`), u(A, f(Me, {
16543
16546
  each: ji,
16544
16547
  children: (F) => (() => {
16545
- var V = t_();
16548
+ var V = n_();
16546
16549
  return u(V, () => t("report.editor.widthValue", "{span} of 12 columns", {
16547
16550
  span: F
16548
16551
  })), M(() => V.value = String(F)), V;
@@ -16553,7 +16556,7 @@ function p_(e) {
16553
16556
  },
16554
16557
  get children() {
16555
16558
  return [(() => {
16556
- var F = X1(), V = F.firstChild, ee = V.firstChild, Z = ee.nextSibling, le = V.nextSibling, Se = le.firstChild, ge = Se.nextSibling;
16559
+ var F = e_(), V = F.firstChild, ee = V.firstChild, Z = ee.nextSibling, le = V.nextSibling, Se = le.firstChild, ge = Se.nextSibling;
16557
16560
  return y(V, "for", `${n}-start`), u(ee, () => t("report.editor.periodStart", "From")), Z.$$input = (z) => m(z.currentTarget.value), y(Z, "id", `${n}-start`), y(le, "for", `${n}-end`), u(Se, () => t("report.editor.periodEnd", "To")), ge.$$input = (z) => b(z.currentTarget.value), y(ge, "id", `${n}-end`), M(() => Z.value = h()), M(() => ge.value = g()), F;
16558
16561
  })(), f(R, {
16559
16562
  get when() {
@@ -16569,7 +16572,7 @@ function p_(e) {
16569
16572
  }
16570
16573
  });
16571
16574
  }
16572
- function v_(e) {
16575
+ function y_(e) {
16573
16576
  const t = Ee(), [n, r] = K(!1), [a, i] = K(!1);
16574
16577
  let o;
16575
16578
  const l = async (d) => {
@@ -16615,7 +16618,7 @@ function v_(e) {
16615
16618
  });
16616
16619
  },
16617
16620
  get children() {
16618
- var d = n_(), h = d.firstChild;
16621
+ var d = r_(), h = d.firstChild;
16619
16622
  return u(h, (() => {
16620
16623
  var m = ae(() => e.usage !== void 0 && e.usage > 1);
16621
16624
  return () => m() ? t("report.editor.impactCount", "This report is used in {count} places. Changes apply to all of them.", {
@@ -16641,11 +16644,11 @@ function v_(e) {
16641
16644
  }
16642
16645
  });
16643
16646
  }
16644
- function y_(e) {
16647
+ function b_(e) {
16645
16648
  const t = Ee();
16646
16649
  let n;
16647
16650
  const r = (() => {
16648
- var a = r_(), i = a.firstChild, o = i.nextSibling, l = o.nextSibling;
16651
+ var a = a_(), i = a.firstChild, o = i.nextSibling, l = o.nextSibling;
16649
16652
  return Ce((c) => {
16650
16653
  n = c;
16651
16654
  }, i), i.$$click = () => void e.guard.choose("stay"), u(i, () => t("report.leave.stay", "Stay")), o.$$click = () => void e.guard.choose("discard"), u(o, () => t("report.leave.discard", "Leave without saving")), l.$$click = () => void e.guard.choose("save"), u(l, (() => {
@@ -16682,7 +16685,7 @@ function y_(e) {
16682
16685
  return e.guard.failed();
16683
16686
  },
16684
16687
  get children() {
16685
- var a = a_();
16688
+ var a = i_();
16686
16689
  return u(a, (() => {
16687
16690
  var i = ae(() => e.guard.failure() === "discard");
16688
16691
  return () => i() ? t("report.leave.discardFailed", "The changes could not be discarded, so you are still here. Try again or stay.") : t("report.leave.saveFailed", "The changes could not be saved, so you are still here. Try again or leave without saving.");
@@ -16702,7 +16705,7 @@ function $s(e) {
16702
16705
  });
16703
16706
  }) : Promise.resolve();
16704
16707
  }
16705
- function b_(e, t = {}) {
16708
+ function w_(e, t = {}) {
16706
16709
  const [n, r] = K(!1), [a, i] = K(!1), [o, l] = K();
16707
16710
  let c, d = 0;
16708
16711
  t.beforeUnload !== !1 && typeof window < "u" && ue(() => {
@@ -16743,25 +16746,25 @@ function b_(e, t = {}) {
16743
16746
  }
16744
16747
  };
16745
16748
  }
16746
- var w_ = /* @__PURE__ */ p('<div class="lens-root lens-root-inline">'), dd = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), $_ = /* @__PURE__ */ p("<div class=lens-report-editor-grid>"), k_ = /* @__PURE__ */ p("<div class=lens-report-editor data-testid=report-editor><header class=lens-report-editor-header><div class=lens-report-editor-identity><label class=lens-report-editor-title-label></label><input class=lens-report-editor-title><p aria-live=polite class=lens-report-editor-status data-testid=report-editor-status></p></div><div class=lens-report-editor-actions><button class=lens-context-action type=button>"), __ = /* @__PURE__ */ p("<div class=lens-report-editor-empty data-testid=report-editor-empty><p>"), x_ = /* @__PURE__ */ p("<span class=lens-report-picker-badge>"), C_ = /* @__PURE__ */ p("<section class=lens-report-editor-card><header class=lens-report-editor-card-header><h3 class=lens-report-editor-card-title></h3><div class=lens-report-editor-card-actions><button class=lens-context-action type=button></button><button class=lens-context-action data-danger type=button></button></div></header><div class=lens-report-editor-card-body>"), S_ = /* @__PURE__ */ p("<p class=lens-report-editor-card-placeholder>");
16747
- function $x(e) {
16749
+ var $_ = /* @__PURE__ */ p('<div class="lens-root lens-root-inline">'), dd = /* @__PURE__ */ p("<button class=lens-context-action type=button>"), k_ = /* @__PURE__ */ p("<div class=lens-report-editor-grid>"), __ = /* @__PURE__ */ p("<div class=lens-report-editor data-testid=report-editor><header class=lens-report-editor-header><div class=lens-report-editor-identity><label class=lens-report-editor-title-label></label><input class=lens-report-editor-title><p aria-live=polite class=lens-report-editor-status data-testid=report-editor-status></p></div><div class=lens-report-editor-actions><button class=lens-context-action type=button>"), x_ = /* @__PURE__ */ p("<div class=lens-report-editor-empty data-testid=report-editor-empty><p>"), C_ = /* @__PURE__ */ p("<span class=lens-report-picker-badge>"), S_ = /* @__PURE__ */ p("<section class=lens-report-editor-card><header class=lens-report-editor-card-header><h3 class=lens-report-editor-card-title></h3><div class=lens-report-editor-card-actions><button class=lens-context-action type=button></button><button class=lens-context-action data-danger type=button></button></div></header><div class=lens-report-editor-card-body>"), T_ = /* @__PURE__ */ p("<p class=lens-report-editor-card-placeholder>");
16750
+ function kx(e) {
16748
16751
  return (() => {
16749
- var t = w_();
16752
+ var t = $_();
16750
16753
  return u(t, f(lo, {
16751
16754
  get messages() {
16752
16755
  return e.messages;
16753
16756
  },
16754
16757
  get children() {
16755
- return f(T_, e);
16758
+ return f(P_, e);
16756
16759
  }
16757
16760
  })), M(() => y(t, "data-theme", e.theme ?? "light")), t;
16758
16761
  })();
16759
16762
  }
16760
- function T_(e) {
16761
- const t = Ee(), n = at(() => e.draft), r = at(() => e.guard) ?? b_(n), a = o_(e);
16763
+ function P_(e) {
16764
+ const t = Ee(), n = at(() => e.draft), r = at(() => e.guard) ?? w_(n), a = s_(e);
16762
16765
  let i;
16763
16766
  return (() => {
16764
- var o = k_(), l = o.firstChild, c = l.firstChild, d = c.firstChild, h = d.nextSibling, m = h.nextSibling, g = c.nextSibling, b = g.firstChild;
16767
+ var o = __(), l = o.firstChild, c = l.firstChild, d = c.firstChild, h = d.nextSibling, m = h.nextSibling, g = c.nextSibling, b = g.firstChild;
16765
16768
  return u(d, () => t("report.editor.name", "Dashboard name")), h.addEventListener("change", (v) => {
16766
16769
  const k = v.currentTarget.value.trim();
16767
16770
  k ? a.edit((x) => ({
@@ -16778,17 +16781,17 @@ function T_(e) {
16778
16781
  a.refs.add = k;
16779
16782
  }, v), v.$$click = () => a.setPicking(!0), u(v, () => t("report.editor.add", "Add report")), v;
16780
16783
  }
16781
- }), b), b.$$click = () => a.cancel(), u(b, () => t("report.editor.cancel", "Cancel")), u(g, f(d_, {
16784
+ }), b), b.$$click = () => a.cancel(), u(b, () => t("report.editor.cancel", "Cancel")), u(g, f(u_, {
16782
16785
  onSave: (v) => void a.save(v),
16783
16786
  session: a
16784
- }), null), u(o, f(s_, {
16785
- session: a
16786
16787
  }), null), u(o, f(l_, {
16787
16788
  session: a
16789
+ }), null), u(o, f(c_, {
16790
+ session: a
16788
16791
  }), null), u(o, f(R, {
16789
16792
  get fallback() {
16790
16793
  return (() => {
16791
- var v = __(), k = v.firstChild;
16794
+ var v = x_(), k = v.firstChild;
16792
16795
  return u(k, () => t("report.editor.empty", "This dashboard has no reports yet.")), v;
16793
16796
  })();
16794
16797
  },
@@ -16796,7 +16799,7 @@ function T_(e) {
16796
16799
  return a.ids().length > 0;
16797
16800
  },
16798
16801
  get children() {
16799
- var v = $_();
16802
+ var v = k_();
16800
16803
  return Ce((k) => {
16801
16804
  i = k;
16802
16805
  }, v), u(v, f(Me, {
@@ -16807,7 +16810,7 @@ function T_(e) {
16807
16810
  get when() {
16808
16811
  return a.byId(k);
16809
16812
  },
16810
- children: (x) => f(P_, {
16813
+ children: (x) => f(I_, {
16811
16814
  get current() {
16812
16815
  return x().placement;
16813
16816
  },
@@ -16824,7 +16827,7 @@ function T_(e) {
16824
16827
  })
16825
16828
  })), v;
16826
16829
  }
16827
- }), null), u(o, f(c_, {
16830
+ }), null), u(o, f(d_, {
16828
16831
  guard: r,
16829
16832
  session: a
16830
16833
  }), null), M((v) => {
@@ -16838,11 +16841,11 @@ function T_(e) {
16838
16841
  }), M(() => h.value = n.value().title), o;
16839
16842
  })();
16840
16843
  }
16841
- function P_(e) {
16844
+ function I_(e) {
16842
16845
  const t = Ee(), n = e.session, r = () => n.title(e.current), a = () => {
16843
16846
  var o;
16844
- return i_((o = e.current.filters) == null ? void 0 : o.period, t);
16845
- }, i = f_({
16847
+ return o_((o = e.current.filters) == null ? void 0 : o.period, t);
16848
+ }, i = h_({
16846
16849
  id: () => e.id,
16847
16850
  span: () => xn(e.current),
16848
16851
  grid: e.grid,
@@ -16851,8 +16854,8 @@ function P_(e) {
16851
16854
  onDropBefore: (o) => n.moveBefore(o, e.id)
16852
16855
  });
16853
16856
  return (() => {
16854
- var o = C_(), l = o.firstChild, c = l.firstChild, d = c.nextSibling, h = d.firstChild, m = h.nextSibling, g = l.nextSibling;
16855
- return Ce((b) => n.cards.set(e.id, b), o), mt(o, "drop", i.dropProps.onDrop), mt(o, "dragover", i.dropProps.onDragOver), mt(o, "dragleave", i.dropProps.onDragLeave), u(l, f(h_, {
16857
+ var o = S_(), l = o.firstChild, c = l.firstChild, d = c.nextSibling, h = d.firstChild, m = h.nextSibling, g = l.nextSibling;
16858
+ return Ce((b) => n.cards.set(e.id, b), o), mt(o, "drop", i.dropProps.onDrop), mt(o, "dragover", i.dropProps.onDragOver), mt(o, "dragleave", i.dropProps.onDragLeave), u(l, f(m_, {
16856
16859
  controls: i,
16857
16860
  get describedBy() {
16858
16861
  return n.instructionsId;
@@ -16869,7 +16872,7 @@ function P_(e) {
16869
16872
  return a();
16870
16873
  },
16871
16874
  get children() {
16872
- var b = x_();
16875
+ var b = C_();
16873
16876
  return u(b, () => t("report.editor.cardPeriod", "Card period: {period}", {
16874
16877
  period: a()
16875
16878
  })), M(() => y(b, "data-testid", `report-editor-period-${e.id}`)), b;
@@ -16885,7 +16888,7 @@ function P_(e) {
16885
16888
  }), m), m.$$click = () => n.remove(e.id), u(m, () => t("report.editor.removeShort", "Remove")), u(g, f(R, {
16886
16889
  get fallback() {
16887
16890
  return (() => {
16888
- var b = S_();
16891
+ var b = T_();
16889
16892
  return u(b, r), b;
16890
16893
  })();
16891
16894
  },
@@ -16893,7 +16896,7 @@ function P_(e) {
16893
16896
  return e.render;
16894
16897
  },
16895
16898
  children: (b) => b()(e.current)
16896
- })), u(o, f(m_, {
16899
+ })), u(o, f(g_, {
16897
16900
  controls: i,
16898
16901
  get id() {
16899
16902
  return e.id;
@@ -16920,147 +16923,148 @@ function P_(e) {
16920
16923
  Ge(["click"]);
16921
16924
  export {
16922
16925
  Ft as $,
16923
- f_ as A,
16926
+ h_ as A,
16924
16927
  xn as B,
16925
- h_ as C,
16928
+ m_ as C,
16926
16929
  Dg as D,
16927
- d_ as E,
16928
- u$ as F,
16929
- q_ as G,
16930
+ u_ as E,
16931
+ f$ as F,
16932
+ H_ as G,
16930
16933
  so as H,
16931
16934
  Qp as I,
16932
- X_ as J,
16933
- Q_ as K,
16935
+ ex as J,
16936
+ Y_ as K,
16934
16937
  Yc as L,
16935
16938
  mc as M,
16936
16939
  cn as N,
16937
16940
  Gt as O,
16938
- m_ as P,
16941
+ g_ as P,
16939
16942
  Ta as Q,
16940
- Y_ as R,
16941
- c_ as S,
16942
- ex as T,
16943
- ux as U,
16944
- G_ as V,
16943
+ X_ as R,
16944
+ d_ as S,
16945
+ tx as T,
16946
+ fx as U,
16947
+ J_ as V,
16945
16948
  Ip as W,
16946
16949
  Rp as X,
16947
- ax as Y,
16950
+ ix as Y,
16948
16951
  dc as Z,
16949
- O_ as _,
16952
+ N_ as _,
16950
16953
  Ir as a,
16951
- H$ as a$,
16952
- rx as a0,
16953
- cx as a1,
16954
- ox as a2,
16955
- z_ as a3,
16956
- V_ as a4,
16957
- Z_ as a5,
16958
- _w as a6,
16959
- bb as a7,
16960
- Ba as a8,
16961
- cl as a9,
16962
- tc as aA,
16963
- nx as aB,
16964
- Do as aC,
16965
- $n as aD,
16966
- fx as aE,
16967
- yv as aF,
16968
- ky as aG,
16969
- Zt as aH,
16970
- Qu as aI,
16971
- Yu as aJ,
16972
- vf as aK,
16973
- Xc as aL,
16974
- lo as aM,
16975
- $x as aN,
16976
- wx as aO,
16977
- P1 as aP,
16978
- Ts as aQ,
16979
- l1 as aR,
16980
- T$ as aS,
16981
- u1 as aT,
16982
- L_ as aU,
16983
- q$ as aV,
16984
- mx as aW,
16985
- Xg as aX,
16986
- px as aY,
16987
- d1 as aZ,
16988
- Yg as a_,
16989
- Iy as aa,
16990
- bi as ab,
16991
- bv as ac,
16992
- Zr as ad,
16993
- on as ae,
16994
- pc as af,
16995
- vc as ag,
16996
- Ho as ah,
16997
- Yp as ai,
16998
- Aa as aj,
16999
- $c as ak,
17000
- ix as al,
17001
- B_ as am,
17002
- U_ as an,
17003
- N_ as ao,
17004
- j_ as ap,
17005
- M_ as aq,
17006
- F_ as ar,
17007
- tx as as,
17008
- J_ as at,
17009
- kn as au,
17010
- W_ as av,
17011
- py as aw,
17012
- K_ as ax,
17013
- Qt as ay,
17014
- H_ as az,
16954
+ Yg as a$,
16955
+ ax as a0,
16956
+ dx as a1,
16957
+ sx as a2,
16958
+ j_ as a3,
16959
+ q_ as a4,
16960
+ V_ as a5,
16961
+ hx as a6,
16962
+ xw as a7,
16963
+ bb as a8,
16964
+ Ba as a9,
16965
+ K_ as aA,
16966
+ tc as aB,
16967
+ rx as aC,
16968
+ Do as aD,
16969
+ $n as aE,
16970
+ q0 as aF,
16971
+ yv as aG,
16972
+ ky as aH,
16973
+ Zt as aI,
16974
+ Qu as aJ,
16975
+ Yu as aK,
16976
+ vf as aL,
16977
+ Xc as aM,
16978
+ lo as aN,
16979
+ kx as aO,
16980
+ $x as aP,
16981
+ I1 as aQ,
16982
+ Ts as aR,
16983
+ c1 as aS,
16984
+ P$ as aT,
16985
+ f1 as aU,
16986
+ F_ as aV,
16987
+ H$ as aW,
16988
+ gx as aX,
16989
+ Xg as aY,
16990
+ vx as aZ,
16991
+ u1 as a_,
16992
+ cl as aa,
16993
+ Iy as ab,
16994
+ bi as ac,
16995
+ bv as ad,
16996
+ Zr as ae,
16997
+ on as af,
16998
+ pc as ag,
16999
+ vc as ah,
17000
+ Ho as ai,
17001
+ Yp as aj,
17002
+ Aa as ak,
17003
+ $c as al,
17004
+ ox as am,
17005
+ Z_ as an,
17006
+ B_ as ao,
17007
+ U_ as ap,
17008
+ O_ as aq,
17009
+ z_ as ar,
17010
+ M_ as as,
17011
+ nx as at,
17012
+ Q_ as au,
17013
+ kn as av,
17014
+ G_ as aw,
17015
+ py as ax,
17016
+ W_ as ay,
17017
+ Qt as az,
17015
17018
  da as b,
17016
- gx as b0,
17017
- Qg as b1,
17018
- pl as b2,
17019
- Sa as b3,
17020
- O$ as b4,
17021
- B$ as b5,
17019
+ K$ as b0,
17020
+ px as b1,
17021
+ Qg as b2,
17022
+ pl as b3,
17023
+ Sa as b4,
17024
+ N$ as b5,
17022
17025
  Z$ as b6,
17023
- yx as b7,
17026
+ V$ as b7,
17024
17027
  bx as b8,
17025
- Ji as b9,
17026
- nd as ba,
17027
- vo as bb,
17028
- c1 as bc,
17029
- vx as bd,
17030
- Zc as be,
17031
- hx as bf,
17032
- V$ as bg,
17033
- rd as bh,
17034
- hi as bi,
17035
- Td as bj,
17036
- Ps as bk,
17037
- Ma as bl,
17038
- Ll as bm,
17039
- Vc as bn,
17040
- Nr as bo,
17041
- Sd as bp,
17028
+ wx as b9,
17029
+ Ji as ba,
17030
+ nd as bb,
17031
+ vo as bc,
17032
+ d1 as bd,
17033
+ yx as be,
17034
+ Zc as bf,
17035
+ mx as bg,
17036
+ q$ as bh,
17037
+ rd as bi,
17038
+ hi as bj,
17039
+ Td as bk,
17040
+ Ps as bl,
17041
+ Ma as bm,
17042
+ Ll as bn,
17043
+ Vc as bo,
17044
+ Nr as bp,
17045
+ Sd as bq,
17042
17046
  yb as c,
17043
17047
  Ar as d,
17044
- dx as e,
17048
+ ux as e,
17045
17049
  sa as f,
17046
17050
  vt as g,
17047
17051
  Ka as h,
17048
17052
  Ia as i,
17049
17053
  Ep as j,
17050
- lx as k,
17054
+ cx as k,
17051
17055
  _n as l,
17052
17056
  Di as m,
17053
- sx as n,
17057
+ lx as n,
17054
17058
  Pp as o,
17055
17059
  kl as p,
17056
17060
  $l as q,
17057
17061
  eo as r,
17058
17062
  Tp as s,
17059
- o_ as t,
17063
+ s_ as t,
17060
17064
  Ee as u,
17061
17065
  Xn as v,
17062
17066
  Po as w,
17063
- b_ as x,
17064
- s_ as y,
17065
- l_ as z
17067
+ w_ as x,
17068
+ l_ as y,
17069
+ c_ as z
17066
17070
  };