@malloy-publisher/sdk 0.12.6 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  import { jsx as _, jsxs as L, Fragment as Fe } from "react/jsx-runtime";
2
- import { M as lp, h as cp, i as di, P as Oa, j as Wi, G as bt, k as ui, n as wt, o as at, r as lt, p as gn, C as zi, E as Ca, q as Ni, A as $o, S as dp, s as up, t as Da, V as fp, u as hp, v as pp, w as gp, x as mp, y as vp, z as yp, B as bp, F as dd, H as wp, I as xp, J as dn, U as _p, K as On, L as kp, l as ud, N as Ma, O as Sp, Q as $p, W as Nn, X as jl, Y as es, Z as nr, _ as fd, $ as Ep, a0 as Tp, a1 as hd, a2 as Hl, a3 as to, a4 as pd, a5 as Op, a6 as Cp, a7 as gd, a8 as Dp, a9 as Mp, aa as _s, ab as ks, ac as Ip, ad as Ss, ae as Ap, af as md, ag as Pp, ah as Rp, ai as Lp, aj as Wp, ak as zp, al as rn, am as Np, an as $s, ao as Fp, ap as Bp, aq as jp, ar as vd, as as Hp, at as Gp, au as qp, av as Up, aw as Kp, ax as Vp, ay as Yp, az as Xp, aA as Qp, aB as Ia, aC as Zp, aD as Jp, aE as eg, aF as tg, aG as ng, aH as rg, aI as Es, aJ as Gl, aK as og, aL as ig, aM as sg, aN as ag, aO as lg, aP as cg, aQ as dg, aR as yd, aS as bd, aT as wd, aU as ug, aV as xd, aW as fg, aX as hg, aY as pg, aZ as gg, a_ as mg, a$ as vg, b0 as yg, b1 as bg, b2 as wg, b3 as xg, b4 as _g, b5 as kg, b6 as Sg, b7 as $g, b8 as Eg } from "../useCompiledDocument-XJMCZF8O.es.js";
3
- import { b9 as g_, ba as m_, bb as v_, bc as y_, bd as b_, be as w_, bf as x_, bg as __, bh as k_, bi as S_, bj as $_ } from "../useCompiledDocument-XJMCZF8O.es.js";
2
+ import { M as lp, h as cp, i as di, P as Oa, j as Wi, G as bt, k as ui, n as wt, o as at, r as lt, p as gn, C as zi, E as Ca, q as Ni, A as $o, S as dp, s as up, t as Da, V as fp, u as hp, v as pp, w as gp, x as mp, y as vp, z as yp, B as bp, F as dd, H as wp, I as xp, J as dn, U as _p, K as On, L as kp, l as ud, N as Ma, O as Sp, Q as $p, W as Nn, X as jl, Y as es, Z as nr, _ as fd, $ as Ep, a0 as Tp, a1 as hd, a2 as Hl, a3 as to, a4 as pd, a5 as Op, a6 as Cp, a7 as gd, a8 as Dp, a9 as Mp, aa as _s, ab as ks, ac as Ap, ad as Ss, ae as Ip, af as md, ag as Pp, ah as Rp, ai as Lp, aj as Wp, ak as zp, al as rn, am as Np, an as $s, ao as Fp, ap as Bp, aq as jp, ar as vd, as as Hp, at as Gp, au as qp, av as Up, aw as Kp, ax as Vp, ay as Yp, az as Xp, aA as Qp, aB as Aa, aC as Zp, aD as Jp, aE as eg, aF as tg, aG as ng, aH as rg, aI as Es, aJ as Gl, aK as og, aL as ig, aM as sg, aN as ag, aO as lg, aP as cg, aQ as dg, aR as yd, aS as bd, aT as wd, aU as ug, aV as xd, aW as fg, aX as hg, aY as pg, aZ as gg, a_ as mg, a$ as vg, b0 as yg, b1 as bg, b2 as wg, b3 as xg, b4 as _g, b5 as kg, b6 as Sg, b7 as $g, b8 as Eg } from "../useCompiledDocument-CwMwrEXo.es.js";
3
+ import { b9 as g_, ba as m_, bb as v_, bc as y_, bd as b_, be as w_, bf as x_, bg as __, bh as k_, bi as S_, bj as $_ } from "../useCompiledDocument-CwMwrEXo.es.js";
4
4
  import { Tooltip as Lt, ButtonBase as _d, Box as H, Menu as rr, MenuItem as it, Stack as yt, Button as Ne, Divider as lr, IconButton as Dn, Typography as we, TextField as on, ToggleButtonGroup as kd, ToggleButton as Ts, Switch as Tg, Checkbox as Os, ListItemText as Kt, Collapse as Og, Autocomplete as Cg, ListItemIcon as Sd, InputBase as $d, SvgIcon as Dg, useMediaQuery as Ed, Alert as vt } from "@mui/material";
5
- import { useState as j, useRef as q, useEffect as re, useMemo as V, createElement as Mg, useLayoutEffect as fi, useCallback as le, useInsertionEffect as Ig, createContext as Td, memo as Ag, forwardRef as Pg, startTransition as Rg, useImperativeHandle as Lg, useContext as Od, useId as Wg } from "react";
6
- import { br as Xe, bw as Aa, bs as Pa } from "../ServerProvider-Qd3zdOsC.es.js";
7
- import { i as Cs, a as Cd, m as zg, b as Ng, t as Fg, c as Dd, s as Bg, d as jg, e as Md, f as Ra, g as Hg, A as Gg, h as qg, r as Ug, j as Id, k as ql, l as La } from "../text-entry-YKJZbRPo.es.js";
5
+ import { useState as j, useRef as q, useEffect as re, useMemo as V, createElement as Mg, useLayoutEffect as fi, useCallback as le, useInsertionEffect as Ag, createContext as Td, memo as Ig, forwardRef as Pg, startTransition as Rg, useImperativeHandle as Lg, useContext as Od, useId as Wg } from "react";
6
+ import { bv as Xe, bA as Ia, bw as Pa } from "../ServerProvider-8Eul_YOl.es.js";
7
+ import { i as Cs, a as Cd, m as zg, b as Ng, t as Fg, c as Dd, s as Bg, d as jg, e as Md, f as Ra, g as Hg, A as Gg, h as qg, r as Ug, j as Ad, k as ql, l as La } from "../text-entry-YKJZbRPo.es.js";
8
8
  import { flushSync as Kg } from "react-dom";
9
9
  import { useQueries as Vg, useQueryClient as Yg } from "@tanstack/react-query";
10
- const Me = (e) => e.kind === "text", he = (e) => e.kind !== "text", Ar = (e) => he(e) ? e.label ?? e.name : e.name, kt = (e) => e.declaration.kind === "query" ? e.name : `${e.source} -> ${e.name}`, gr = (e) => e.declaration.kind === "inherited" || e.declaration.kind === "query", me = (e) => Me(e) ? `text.${e.name}` : e.declaration.kind === "query" ? (
10
+ const Me = (e) => e.kind === "text", he = (e) => e.kind !== "text", Ir = (e) => he(e) ? e.label ?? e.name : e.name, kt = (e) => e.declaration.kind === "query" ? e.name : `${e.source} -> ${e.name}`, gr = (e) => e.declaration.kind === "inherited" || e.declaration.kind === "query", me = (e) => Me(e) ? `text.${e.name}` : e.declaration.kind === "query" ? (
11
11
  // `query` is a Malloy keyword, so no source can carry this prefix.
12
12
  `query.${e.name}`
13
13
  ) : `${e.source}.${e.name}`, Ul = ".malloy-big-value, .malloy-table", Xg = (e) => e.querySelector(Ul) !== null && ![...e.querySelectorAll(".malloy-chart")].some(
@@ -74,11 +74,11 @@ function Qg(e, t, n, r) {
74
74
  t
75
75
  );
76
76
  }
77
- const pi = (e, t) => (e - bt * (t - 1)) / t, Ad = ui + bt;
77
+ const pi = (e, t) => (e - bt * (t - 1)) / t, Id = ui + bt;
78
78
  function Pd(e, t, n, r, o) {
79
79
  const i = Math.min(n, r), s = Math.round(e / (o + bt)) + 1;
80
80
  return {
81
- row: Math.max(1, Math.round(t / Ad) + 1),
81
+ row: Math.max(1, Math.round(t / Id) + 1),
82
82
  col: Math.min(Math.max(s, 1), r - i + 1)
83
83
  };
84
84
  }
@@ -90,7 +90,7 @@ function Rd(e, t, n, r) {
90
90
  const { break: l, ...u } = i, c = i.colspan ?? Math.max(
91
91
  1,
92
92
  Math.round((a.width + bt) / (r + bt))
93
- ), d = Pd(a.left, a.top, c, n, r), f = (a.top + a.height + bt) / Ad, h = Me(i) ? Math.ceil(f - 0.02) : Math.round(f);
93
+ ), d = Pd(a.left, a.top, c, n, r), f = (a.top + a.height + bt) / Id, h = Me(i) ? Math.ceil(f - 0.02) : Math.round(f);
94
94
  return {
95
95
  ...u,
96
96
  ...d,
@@ -402,7 +402,7 @@ function om(e) {
402
402
  return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
403
403
  }, []);
404
404
  }
405
- const no = (e, t, n = Aa) => ({
405
+ const no = (e, t, n = Ia) => ({
406
406
  height: n.size.control,
407
407
  minHeight: n.size.control,
408
408
  px: 1.5,
@@ -417,7 +417,7 @@ const no = (e, t, n = Aa) => ({
417
417
  borderColor: e,
418
418
  "&:hover": { borderColor: t }
419
419
  }
420
- }), po = (e = Aa) => ({
420
+ }), po = (e = Ia) => ({
421
421
  width: e.size.control,
422
422
  height: e.size.control,
423
423
  borderRadius: e.radius.control,
@@ -427,7 +427,7 @@ const no = (e, t, n = Aa) => ({
427
427
  alignSelf: "center",
428
428
  mx: 0.5,
429
429
  my: 0
430
- }, mi = (e, t = Aa) => ({
430
+ }, mi = (e, t = Ia) => ({
431
431
  height: t.size.control,
432
432
  boxSizing: "border-box",
433
433
  borderRadius: t.radius.control,
@@ -450,7 +450,7 @@ const no = (e, t, n = Aa) => ({
450
450
  color: "text.primary"
451
451
  }
452
452
  }
453
- }), Is = {
453
+ }), As = {
454
454
  package: "Saves to the package file",
455
455
  browser: "Saves in this browser",
456
456
  host: "Saves to the app this is embedded in"
@@ -526,7 +526,7 @@ function im({
526
526
  s ? /* @__PURE__ */ _(
527
527
  Lt,
528
528
  {
529
- title: o ? `Save (${Cn}S) · ${l ?? Is[a]}` : l ?? Is[a],
529
+ title: o ? `Save (${Cn}S) · ${l ?? As[a]}` : l ?? As[a],
530
530
  children: /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(
531
531
  Ne,
532
532
  {
@@ -690,9 +690,9 @@ function lm({
690
690
  M && S[0] ? Lo(S[0].name, M.name) : void 0
691
691
  );
692
692
  }, [e]);
693
- const A = $ ? [$.source.name, $.view.name].filter((M) => !Cs(M)).map(
693
+ const I = $ ? [$.source.name, $.view.name].filter((M) => !Cs(M)).map(
694
694
  (M) => `"${M}" is not a plain Malloy name, so a tile cannot be written for it.`
695
- )[0] : void 0, I = $ !== void 0 && A === void 0, P = $ ? Ql($.view) : "", B = p !== "default" && $ ? {
695
+ )[0] : void 0, A = $ !== void 0 && I === void 0, P = $ ? Ql($.view) : "", B = p !== "default" && $ ? {
696
696
  chart: p,
697
697
  chartCarried: $.view.chart ? [$.view.chart] : []
698
698
  } : {}, N = (M = $) => {
@@ -727,7 +727,7 @@ function lm({
727
727
  Ne,
728
728
  {
729
729
  variant: "contained",
730
- disabled: !I,
730
+ disabled: !A,
731
731
  onClick: () => N(),
732
732
  children: "Add tile"
733
733
  }
@@ -936,7 +936,7 @@ function lm({
936
936
  }
937
937
  )
938
938
  ] }),
939
- A && /* @__PURE__ */ _(we, { variant: "body2", color: "error", children: A })
939
+ I && /* @__PURE__ */ _(we, { variant: "body2", color: "error", children: I })
940
940
  ] }) : /* @__PURE__ */ _(
941
941
  we,
942
942
  {
@@ -961,7 +961,7 @@ function cm(e, t, { modelPath: n, textHeld: r, widths: o, insertAt: i }) {
961
961
  n,
962
962
  t.exporters ?? [t.modelPath]
963
963
  ));
964
- const s = jd(e, t.base), a = As(e, s.name, t.view);
964
+ const s = jd(e, t.base), a = Is(e, s.name, t.view);
965
965
  e.tiles.splice(i ?? e.tiles.length, 0, {
966
966
  name: a,
967
967
  source: s.name,
@@ -983,7 +983,7 @@ function jd(e, t, { unscoped: n = !1 } = {}) {
983
983
  const s = { name: i, base: t };
984
984
  return e.sources.push(s), s;
985
985
  }
986
- function As(e, t, n) {
986
+ function Is(e, t, n) {
987
987
  const r = new Set(
988
988
  e.tiles.filter(he).filter((i) => i.source === t).map((i) => i.name)
989
989
  );
@@ -1011,12 +1011,12 @@ function dm(e, t) {
1011
1011
  const { break: i, ...s } = structuredClone(n);
1012
1012
  r = {
1013
1013
  ...s,
1014
- name: As(e, n.source, n.declaration.from)
1014
+ name: Is(e, n.source, n.declaration.from)
1015
1015
  };
1016
1016
  } else {
1017
1017
  const s = e.sources.find((a) => a.name === n.source) ?? jd(e, n.source, { unscoped: !0 });
1018
1018
  r = {
1019
- name: As(e, s.name, n.name),
1019
+ name: Is(e, s.name, n.name),
1020
1020
  source: s.name,
1021
1021
  declaration: { kind: "reference", from: n.name },
1022
1022
  ...n.colspan !== void 0 ? { colspan: n.colspan } : {}
@@ -1549,19 +1549,19 @@ function Cm({
1549
1549
  }))
1550
1550
  ), k(!1);
1551
1551
  }, [e, n, t]);
1552
- const A = V(
1552
+ const I = V(
1553
1553
  () => [
1554
1554
  ...(t.localGivens ?? []).map((D) => D.name),
1555
1555
  ...r.map((D) => D.name),
1556
1556
  ...o
1557
1557
  ],
1558
1558
  [t, r, o]
1559
- ), I = V(
1560
- () => p.trim() ? km(p.trim(), A) : "",
1561
- [p, A]
1562
- ), P = c.kind === "existing" ? n ?? r.find((D) => D.name === c.name) : I ? {
1563
- name: I,
1564
- type: Wr({ name: I, label: f, kind: v, field: p }).type
1559
+ ), A = V(
1560
+ () => p.trim() ? km(p.trim(), I) : "",
1561
+ [p, I]
1562
+ ), P = c.kind === "existing" ? n ?? r.find((D) => D.name === c.name) : A ? {
1563
+ name: A,
1564
+ type: Wr({ name: A, label: f, kind: v, field: p }).type
1565
1565
  } : void 0, B = P?.type !== void 0 && !P.type.startsWith("filter<"), N = x.find((D) => D.include)?.op ?? yi(P?.type), Q = (D, W) => {
1566
1566
  E(!0), b(
1567
1567
  (K) => K.map((Z, Te) => Te === D ? { ...Z, ...W } : Z)
@@ -1640,8 +1640,8 @@ function Cm({
1640
1640
  return W && he(W) ? W : void 0;
1641
1641
  }, Ee = Re.map(
1642
1642
  (D, W) => D.include && R[W] ? Ve(D.field, tt(W)) : void 0
1643
- ), ge = Ee.every((D) => D === void 0), Ie = T ? Ee : Ee.map(() => {
1644
- }), Be = T && !S && G > 0 ? Y.map((D) => Ve(p, D)).find(Boolean) : void 0, de = P !== void 0 && ge && (c.kind === "existing" || p.trim() !== "" && I !== ""), Qe = () => {
1643
+ ), ge = Ee.every((D) => D === void 0), Ae = T ? Ee : Ee.map(() => {
1644
+ }), Be = T && !S && G > 0 ? Y.map((D) => Ve(p, D)).find(Boolean) : void 0, de = P !== void 0 && ge && (c.kind === "existing" || p.trim() !== "" && A !== ""), Qe = () => {
1645
1645
  if (!(!P || !de))
1646
1646
  if (c.kind === "new")
1647
1647
  s(
@@ -1684,7 +1684,7 @@ function Cm({
1684
1684
  setRows: b,
1685
1685
  perTile: S,
1686
1686
  setPerTile: k,
1687
- newName: I,
1687
+ newName: A,
1688
1688
  target: P,
1689
1689
  valueTyped: B,
1690
1690
  commonOp: N,
@@ -1699,7 +1699,7 @@ function Cm({
1699
1699
  setAll: se,
1700
1700
  accepts: xe,
1701
1701
  pickField: ee,
1702
- rowProblems: Ie,
1702
+ rowProblems: Ae,
1703
1703
  commonProblem: Be,
1704
1704
  canApply: de,
1705
1705
  apply: Qe
@@ -1800,8 +1800,8 @@ function Mm({
1800
1800
  perTile: T,
1801
1801
  setPerTile: E,
1802
1802
  newName: $,
1803
- target: A,
1804
- valueTyped: I,
1803
+ target: I,
1804
+ valueTyped: A,
1805
1805
  commonOp: P,
1806
1806
  setRow: B,
1807
1807
  setCommonOp: N,
@@ -1834,7 +1834,7 @@ function Mm({
1834
1834
  }, [tt]), re(() => {
1835
1835
  T && ee(!0);
1836
1836
  }, [T]);
1837
- const ge = R?.find((D) => D.name === b.trim())?.type, Ie = (D) => {
1837
+ const ge = R?.find((D) => D.name === b.trim())?.type, Ae = (D) => {
1838
1838
  if (!ge) return;
1839
1839
  const W = Wr({
1840
1840
  name: "X",
@@ -1900,7 +1900,7 @@ function Mm({
1900
1900
  /* @__PURE__ */ _(
1901
1901
  Lt,
1902
1902
  {
1903
- title: $e || A === void 0 ? "" : "A ticked tile has no field, or names one its source does not have.",
1903
+ title: $e || I === void 0 ? "" : "A ticked tile has no field, or names one its source does not have.",
1904
1904
  children: /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(
1905
1905
  Ne,
1906
1906
  {
@@ -2004,7 +2004,7 @@ function Mm({
2004
2004
  ]
2005
2005
  }
2006
2006
  ),
2007
- I && !T && nt(P, N, "Comparison"),
2007
+ A && !T && nt(P, N, "Comparison"),
2008
2008
  !d && v.kind === "new" && /* @__PURE__ */ L(H, { children: [
2009
2009
  /* @__PURE__ */ _(Jl, { children: "Control" }),
2010
2010
  /* @__PURE__ */ _(
@@ -2021,7 +2021,7 @@ function Mm({
2021
2021
  gap: 1
2022
2022
  },
2023
2023
  children: Sm.map((D) => {
2024
- const W = D.kind === p, K = Ie(D.kind);
2024
+ const W = D.kind === p, K = Ae(D.kind);
2025
2025
  return /* @__PURE__ */ _(
2026
2026
  Lt,
2027
2027
  {
@@ -2053,7 +2053,7 @@ function Mm({
2053
2053
  "&:hover": K || W ? {} : { borderColor: xe }
2054
2054
  }),
2055
2055
  children: [
2056
- /* @__PURE__ */ _(Am, { kind: D.kind }),
2056
+ /* @__PURE__ */ _(Im, { kind: D.kind }),
2057
2057
  /* @__PURE__ */ _(
2058
2058
  H,
2059
2059
  {
@@ -2064,7 +2064,7 @@ function Mm({
2064
2064
  color: W ? u.accent : "text.primary",
2065
2065
  textAlign: "center"
2066
2066
  },
2067
- children: Im[D.kind]
2067
+ children: Am[D.kind]
2068
2068
  }
2069
2069
  )
2070
2070
  ]
@@ -2228,7 +2228,7 @@ function Mm({
2228
2228
  }
2229
2229
  ),
2230
2230
  F[W] ? T && /* @__PURE__ */ L(Fe, { children: [
2231
- I && nt(
2231
+ A && nt(
2232
2232
  K?.op,
2233
2233
  (Se) => B(W, { op: Se }),
2234
2234
  `Comparison for ${Z}`
@@ -2347,14 +2347,14 @@ function Jl({ children: e }) {
2347
2347
  }
2348
2348
  );
2349
2349
  }
2350
- const Im = {
2350
+ const Am = {
2351
2351
  select: "Pick one",
2352
2352
  multiselect: "Pick several",
2353
2353
  text: "Text",
2354
2354
  number: "Range",
2355
2355
  date: "Date"
2356
2356
  };
2357
- function Am({ kind: e }) {
2357
+ function Im({ kind: e }) {
2358
2358
  const t = { fontSize: 22 };
2359
2359
  switch (e) {
2360
2360
  case "select":
@@ -2443,7 +2443,7 @@ function Nm({
2443
2443
  const k = y?.chart ?? "default", T = Bd(a, k, l), E = y ? y.declaration.kind === "query" ? zm : p ? y.chart === "custom" ? Pm(y.chartLines) : void 0 : Wm : void 0, $ = (C) => m((O) => {
2444
2444
  const R = x.current;
2445
2445
  C === (R ?? "default") ? (R === void 0 ? delete O.chart : O.chart = R, delete O.chartCarried) : (O.chart = C, a ? O.chartCarried = a.chart ? [a.chart] : [] : delete O.chartCarried);
2446
- }), A = p ? o ? void 0 : "Its source declares no dimension a click could filter by." : void 0, I = k === "default" ? a?.chart : k, P = I !== void 0 && Rm.has(I) ? Lm : void 0, B = (C) => (O) => w({ kind: C, anchor: O.currentTarget }), N = E ?? (I === void 0 || !Fm.has(I) ? "Only a bar, line, scatter or bar and line chart has a color to set." : void 0), Q = Array.from(
2446
+ }), I = p ? o ? void 0 : "Its source declares no dimension a click could filter by." : void 0, A = k === "default" ? a?.chart : k, P = A !== void 0 && Rm.has(A) ? Lm : void 0, B = (C) => (O) => w({ kind: C, anchor: O.currentTarget }), N = E ?? (A === void 0 || !Fm.has(A) ? "Only a bar, line, scatter or bar and line chart has a color to set." : void 0), Q = Array.from(
2447
2447
  new Set(
2448
2448
  u.series.map(dd).filter((C) => C !== void 0)
2449
2449
  )
@@ -2549,14 +2549,14 @@ function Nm({
2549
2549
  it,
2550
2550
  {
2551
2551
  "aria-haspopup": "dialog",
2552
- disabled: A !== void 0,
2552
+ disabled: I !== void 0,
2553
2553
  onClick: () => {
2554
2554
  v(), o?.();
2555
2555
  },
2556
2556
  children: F(
2557
2557
  "Clickable cells…",
2558
2558
  void 0,
2559
- A ?? P
2559
+ I ?? P
2560
2560
  )
2561
2561
  }
2562
2562
  ),
@@ -3027,11 +3027,11 @@ function Kd(e) {
3027
3027
  }
3028
3028
  e.s = n;
3029
3029
  }
3030
- function An(e, t) {
3030
+ function In(e, t) {
3031
3031
  gt.call(this, void 0, t), this.x = e, this.s = void 0, this.g = xi - 1, this.f = 4;
3032
3032
  }
3033
- An.prototype = new gt();
3034
- An.prototype.h = function() {
3033
+ In.prototype = new gt();
3034
+ In.prototype.h = function() {
3035
3035
  if (this.f &= -3, 1 & this.f) return !1;
3036
3036
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === xi)) return !0;
3037
3037
  if (this.g = xi, this.f |= 1, this.i > 0 && !qd(this))
@@ -3046,33 +3046,33 @@ An.prototype.h = function() {
3046
3046
  }
3047
3047
  return Ce = e, Kd(this), this.f &= -2, !0;
3048
3048
  };
3049
- An.prototype.S = function(e) {
3049
+ In.prototype.S = function(e) {
3050
3050
  if (this.t === void 0) {
3051
3051
  this.f |= 36;
3052
3052
  for (var t = this.s; t !== void 0; t = t.n) t.S.S(t);
3053
3053
  }
3054
3054
  gt.prototype.S.call(this, e);
3055
3055
  };
3056
- An.prototype.U = function(e) {
3056
+ In.prototype.U = function(e) {
3057
3057
  if (this.t !== void 0 && (gt.prototype.U.call(this, e), this.t === void 0)) {
3058
3058
  this.f &= -33;
3059
3059
  for (var t = this.s; t !== void 0; t = t.n) t.S.U(t);
3060
3060
  }
3061
3061
  };
3062
- An.prototype.N = function() {
3062
+ In.prototype.N = function() {
3063
3063
  if (!(2 & this.f)) {
3064
3064
  this.f |= 6;
3065
3065
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
3066
3066
  }
3067
3067
  };
3068
- Object.defineProperty(An.prototype, "value", { get: function() {
3068
+ Object.defineProperty(In.prototype, "value", { get: function() {
3069
3069
  if (1 & this.f) throw new Error("Cycle detected");
3070
3070
  var e = Gd(this);
3071
3071
  if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;
3072
3072
  return this.v;
3073
3073
  } });
3074
3074
  function rc(e, t) {
3075
- return new An(e, t);
3075
+ return new In(e, t);
3076
3076
  }
3077
3077
  function Vd(e) {
3078
3078
  var t = e.m;
@@ -3999,7 +3999,7 @@ pe(ft, 2, "isDropping", Ou, Ht);
3999
3999
  pe(ft, 2, "isDragging", Tu, Ht);
4000
4000
  pe(ft, 2, "isDragSource", Eu, Ht);
4001
4001
  Rn(ft, Ht);
4002
- var Iu, Au, Pu, Ru, Lu, Wu, Qs, Je, tl, nl, rl, ol, il, Gt = class extends (Qs = Gi, Wu = [fe], Lu = [fe], Ru = [fe], Pu = [fe], Au = [fe], Iu = [qe], Qs) {
4002
+ var Au, Iu, Pu, Ru, Lu, Wu, Qs, Je, tl, nl, rl, ol, il, Gt = class extends (Qs = Gi, Wu = [fe], Lu = [fe], Ru = [fe], Pu = [fe], Iu = [fe], Au = [qe], Qs) {
4003
4003
  constructor(t, n) {
4004
4004
  var r = t, { accept: o, collisionDetector: i, collisionPriority: s, type: a } = r, l = vu(r, ["accept", "collisionDetector", "collisionPriority", "type"]);
4005
4005
  super(l, n), ne(Je, 5, this), ye(this, tl, ne(Je, 8, this)), ne(Je, 11, this), ye(this, nl, ne(Je, 12, this)), ne(Je, 15, this), ye(this, rl, ne(Je, 16, this)), ne(Je, 19, this), ye(this, ol, ne(Je, 20, this)), ne(Je, 23, this), ye(this, il, ne(Je, 24, this)), ne(Je, 27, this), this.accept = o, this.collisionDetector = i, this.collisionPriority = s, this.type = a;
@@ -4029,8 +4029,8 @@ pe(Je, 4, "accept", Wu, Gt, tl);
4029
4029
  pe(Je, 4, "type", Lu, Gt, nl);
4030
4030
  pe(Je, 4, "collisionDetector", Ru, Gt, rl);
4031
4031
  pe(Je, 4, "collisionPriority", Pu, Gt, ol);
4032
- pe(Je, 4, "shape", Au, Gt, il);
4033
- pe(Je, 2, "isDropTarget", Iu, Gt);
4032
+ pe(Je, 4, "shape", Iu, Gt, il);
4033
+ pe(Je, 2, "isDropTarget", Au, Gt);
4034
4034
  Rn(Je, Gt);
4035
4035
  var Tv = class {
4036
4036
  constructor() {
@@ -4432,7 +4432,7 @@ var dc = class extends ct {
4432
4432
  apply(e) {
4433
4433
  return e.transform;
4434
4434
  }
4435
- }, Iv = class {
4435
+ }, Av = class {
4436
4436
  /**
4437
4437
  * Creates a new registry instance.
4438
4438
  *
@@ -4582,7 +4582,7 @@ pe(We, 2, "source", Vu, Nt);
4582
4582
  pe(We, 2, "target", Ku, Nt);
4583
4583
  pe(We, 2, "transform", Uu, Nt);
4584
4584
  Rn(We, Nt);
4585
- var Av = {
4585
+ var Iv = {
4586
4586
  get rendering() {
4587
4587
  return Promise.resolve();
4588
4588
  }
@@ -4601,7 +4601,7 @@ var Pv = class {
4601
4601
  this.dragOperation.status.idle || this.actions.stop({ canceled: !0 }), this.dragOperation.modifiers.forEach((f) => f.destroy()), this.registry.destroy(), this.collisionObserver.destroy();
4602
4602
  };
4603
4603
  var n;
4604
- const r = t ?? {}, o = zt(r.plugins, []), i = zt(r.sensors, []), s = zt(r.modifiers, []), a = (n = r.renderer) != null ? n : Av, l = new Ov(this), u = new Iv(this);
4604
+ const r = t ?? {}, o = zt(r.plugins, []), i = zt(r.sensors, []), s = zt(r.modifiers, []), a = (n = r.renderer) != null ? n : Iv, l = new Ov(this), u = new Av(this);
4605
4605
  this.registry = u, this.monitor = l, this.renderer = a, this.actions = new Dv(this), this.dragOperation = new Nt(this), this.collisionObserver = new Ev(this), this.plugins = [Cv, ...o], this.modifiers = s, this.sensors = i;
4606
4606
  const { destroy: c } = this, d = Eo(() => {
4607
4607
  var f, h, v;
@@ -5647,7 +5647,7 @@ var bl = ({
5647
5647
  }, kf = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Kr = (e) => e !== void 0 && typeof e != "function" ? $r("Function expected") : e, Ty = (e, t, n, r, o) => ({ kind: kf[e], name: t, metadata: r, addInitializer: (i) => n._ ? $r("Already initialized") : o.push(Kr(i || null)) }), Ln = (e, t) => oa(t, xf("metadata"), e[3]), et = (e, t, n, r) => {
5648
5648
  for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) t & 1 ? i[o].call(n) : r = i[o].call(n, r);
5649
5649
  return r;
5650
- }, It = (e, t, n, r, o, i) => {
5650
+ }, At = (e, t, n, r, o, i) => {
5651
5651
  var s, a, l, u, c, d = t & 7, f = !!(t & 8), h = !!(t & 16), v = d > 3 ? e.length + 1 : d ? f ? 1 : 2 : 0, g = kf[d + 5], w = d > 3 && (e[v - 1] = []), y = e[v] || (e[v] = []), p = d && (!h && !f && (o = o.prototype), d < 5 && (d > 3 || !h) && $y(d < 4 ? o : { get [n]() {
5652
5652
  return ke(this, i);
5653
5653
  }, set [n](x) {
@@ -5655,14 +5655,14 @@ var bl = ({
5655
5655
  } }, n));
5656
5656
  d ? h && d < 4 && yc(i, (d > 2 ? "set " : d > 1 ? "get " : "") + n) : yc(o, n);
5657
5657
  for (var m = r.length - 1; m >= 0; m--)
5658
- u = Ty(d, n, l = {}, e[3], y), d && (u.static = f, u.private = h, c = u.access = { has: h ? (x) => Oy(o, x) : (x) => n in x }, d ^ 3 && (c.get = h ? (x) => (d ^ 1 ? ke : In)(x, o, d ^ 4 ? i : p.get) : (x) => x[n]), d > 2 && (c.set = h ? (x, b) => ht(x, o, b, d ^ 4 ? i : p.set) : (x, b) => x[n] = b)), a = (0, r[m])(d ? d < 4 ? h ? i : p[g] : d > 4 ? void 0 : { get: p.get, set: p.set } : o, u), l._ = 1, d ^ 4 || a === void 0 ? Kr(a) && (d > 4 ? w.unshift(a) : d ? h ? i = a : p[g] = a : o = a) : typeof a != "object" || a === null ? $r("Object expected") : (Kr(s = a.get) && (p.get = s), Kr(s = a.set) && (p.set = s), Kr(s = a.init) && w.unshift(s));
5658
+ u = Ty(d, n, l = {}, e[3], y), d && (u.static = f, u.private = h, c = u.access = { has: h ? (x) => Oy(o, x) : (x) => n in x }, d ^ 3 && (c.get = h ? (x) => (d ^ 1 ? ke : An)(x, o, d ^ 4 ? i : p.get) : (x) => x[n]), d > 2 && (c.set = h ? (x, b) => ht(x, o, b, d ^ 4 ? i : p.set) : (x, b) => x[n] = b)), a = (0, r[m])(d ? d < 4 ? h ? i : p[g] : d > 4 ? void 0 : { get: p.get, set: p.set } : o, u), l._ = 1, d ^ 4 || a === void 0 ? Kr(a) && (d > 4 ? w.unshift(a) : d ? h ? i = a : p[g] = a : o = a) : typeof a != "object" || a === null ? $r("Object expected") : (Kr(s = a.get) && (p.get = s), Kr(s = a.set) && (p.set = s), Kr(s = a.init) && w.unshift(s));
5659
5659
  return d || Ln(e, o), p && wl(o, n, p), h ? d ^ 4 ? i : p : o;
5660
- }, _l = (e, t, n) => t.has(e) || $r("Cannot " + n), Oy = (e, t) => Object(t) !== t ? $r('Cannot use the "in" operator on this value') : e.has(t), ke = (e, t, n) => (_l(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ke = (e, t, n) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ht = (e, t, n, r) => (_l(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), In = (e, t, n) => (_l(e, t, "access private method"), n), bc = {
5660
+ }, _l = (e, t, n) => t.has(e) || $r("Cannot " + n), Oy = (e, t) => Object(t) !== t ? $r('Cannot use the "in" operator on this value') : e.has(t), ke = (e, t, n) => (_l(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ke = (e, t, n) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ht = (e, t, n, r) => (_l(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), An = (e, t, n) => (_l(e, t, "access private method"), n), bc = {
5661
5661
  role: "button",
5662
5662
  roleDescription: "draggable"
5663
5663
  }, Cy = "dnd-kit-description", Dy = "dnd-kit-announcement", My = {
5664
5664
  draggable: "To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."
5665
- }, Iy = {
5665
+ }, Ay = {
5666
5666
  dragstart({ operation: { source: e } }) {
5667
5667
  if (e)
5668
5668
  return `Picked up draggable item ${e.id}.`;
@@ -5676,7 +5676,7 @@ var bl = ({
5676
5676
  return n ? `Dragging was cancelled. Draggable item ${e.id} was dropped.` : t ? `Draggable item ${e.id} was dropped over droppable target ${t.id}` : `Draggable item ${e.id} was dropped.`;
5677
5677
  }
5678
5678
  };
5679
- function Ay(e) {
5679
+ function Iy(e) {
5680
5680
  const t = e.tagName.toLowerCase();
5681
5681
  return ["input", "select", "textarea", "a", "button"].includes(t);
5682
5682
  }
@@ -5697,7 +5697,7 @@ var Ly = ["dragover", "dragmove"], Wy = class extends ct {
5697
5697
  description: r = Cy,
5698
5698
  announcement: o = Dy
5699
5699
  } = {},
5700
- announcements: i = Iy,
5700
+ announcements: i = Ay,
5701
5701
  screenReaderInstructions: s = My,
5702
5702
  debounce: a = 500
5703
5703
  } = t ?? {}, l = n ? `${r}-${n}` : ra(r), u = n ? `${o}-${n}` : ra(o);
@@ -5734,7 +5734,7 @@ var Ly = ["dragover", "dragmove"], Wy = class extends ct {
5734
5734
  for (const S of this.manager.registry.draggables.value) {
5735
5735
  const k = (b = S.handle) != null ? b : S.element;
5736
5736
  if (k) {
5737
- (!c || !d) && m.add(p), (!Ay(k) || gl()) && !k.hasAttribute("tabindex") && m.add(() => k.setAttribute("tabindex", "0")), !k.hasAttribute("role") && k.tagName.toLowerCase() !== "button" && m.add(
5737
+ (!c || !d) && m.add(p), (!Iy(k) || gl()) && !k.hasAttribute("tabindex") && m.add(() => k.setAttribute("tabindex", "0")), !k.hasAttribute("role") && k.tagName.toLowerCase() !== "button" && m.add(
5738
5738
  () => k.setAttribute("role", bc.role)
5739
5739
  ), k.hasAttribute("aria-roledescription") || m.add(
5740
5740
  () => k.setAttribute(
@@ -5769,7 +5769,7 @@ function zy(e, t) {
5769
5769
  }
5770
5770
  var Ci = /* @__PURE__ */ new Map(), Sf, $f, Ef, Tf, ia, co, Yt, kl, hr, Of, Cf, Df, Mf, hn = class extends (ia = Co, Tf = [fe], Ef = [qe], $f = [qe], Sf = [qe], ia) {
5771
5771
  constructor(t, n) {
5772
- super(t, n), et(Yt, 5, this), Ke(this, hr), Ke(this, co, /* @__PURE__ */ new Set()), Ke(this, kl, et(Yt, 8, this, /* @__PURE__ */ new Set())), et(Yt, 11, this), this.registerEffect(In(this, hr, Of));
5772
+ super(t, n), et(Yt, 5, this), Ke(this, hr), Ke(this, co, /* @__PURE__ */ new Set()), Ke(this, kl, et(Yt, 8, this, /* @__PURE__ */ new Set())), et(Yt, 11, this), this.registerEffect(An(this, hr, Of));
5773
5773
  }
5774
5774
  /**
5775
5775
  * Registers CSS rules to be injected into the active drag operation's
@@ -5827,7 +5827,7 @@ Of = function() {
5827
5827
  const { roots: e } = this, t = [];
5828
5828
  for (const n of e)
5829
5829
  for (const r of ke(this, co))
5830
- t.push(In(this, hr, Cf).call(this, n, r));
5830
+ t.push(An(this, hr, Cf).call(this, n, r));
5831
5831
  return () => {
5832
5832
  for (const n of t)
5833
5833
  n();
@@ -5838,7 +5838,7 @@ Cf = function(e, t) {
5838
5838
  n || (n = /* @__PURE__ */ new Map(), Ci.set(e, n));
5839
5839
  let r = n.get(t);
5840
5840
  if (!r) {
5841
- const i = pl(e) ? In(this, hr, Df).call(this, e, n, t) : In(this, hr, Mf).call(this, e, n, t);
5841
+ const i = pl(e) ? An(this, hr, Df).call(this, e, n, t) : An(this, hr, Mf).call(this, e, n, t);
5842
5842
  if (!i)
5843
5843
  return () => {
5844
5844
  };
@@ -5887,10 +5887,10 @@ Mf = function(e, t, n) {
5887
5887
  }
5888
5888
  };
5889
5889
  };
5890
- It(Yt, 4, "additionalRoots", Tf, hn, kl);
5891
- It(Yt, 2, "sourceRoot", Ef, hn);
5892
- It(Yt, 2, "targetRoot", $f, hn);
5893
- It(Yt, 2, "roots", Sf, hn);
5890
+ At(Yt, 4, "additionalRoots", Tf, hn, kl);
5891
+ At(Yt, 2, "sourceRoot", Ef, hn);
5892
+ At(Yt, 2, "targetRoot", $f, hn);
5893
+ At(Yt, 2, "roots", Sf, hn);
5894
5894
  Ln(Yt, hn);
5895
5895
  hn.configure = Oo(hn);
5896
5896
  var Vi = hn, Ny = class extends ct {
@@ -6010,7 +6010,7 @@ function qy(e, t, n) {
6010
6010
  function Uy(e, t = "hidden") {
6011
6011
  e.setAttribute("inert", "true"), e.setAttribute("tab-index", "-1"), e.setAttribute("aria-hidden", "true"), e.setAttribute(Di, t);
6012
6012
  }
6013
- function If(e, t) {
6013
+ function Af(e, t) {
6014
6014
  return e === t ? !0 : ur(e) === ur(t);
6015
6015
  }
6016
6016
  function wc(e) {
@@ -6138,7 +6138,7 @@ function Zy(e) {
6138
6138
  )) != null ? t : [];
6139
6139
  l?.pause();
6140
6140
  const u = (n = e.placeholder) != null ? n : e.element, c = {
6141
- frameTransform: If(e.feedbackElement, u) ? null : void 0
6141
+ frameTransform: Af(e.feedbackElement, u) ? null : void 0
6142
6142
  }, d = new Bt(e.feedbackElement, c), f = (r = yo(qt(e.feedbackElement).translate)) != null ? r : e.translate, h = new Bt(u, c), v = jt.delta(d, h, e.alignment), g = {
6143
6143
  x: f.x - v.x,
6144
6144
  y: f.y - v.y
@@ -6177,7 +6177,7 @@ function Zy(e) {
6177
6177
  e.feedbackElement.removeAttribute(sa), l?.finish(), e.cleanup(), requestAnimationFrame(e.restoreFocus);
6178
6178
  });
6179
6179
  }
6180
- var Af, la, xo, Sl, oi, Pf, Rf, pr = class extends (la = ct, Af = [fe], la) {
6180
+ var If, la, xo, Sl, oi, Pf, Rf, pr = class extends (la = ct, If = [fe], la) {
6181
6181
  constructor(t, n) {
6182
6182
  super(t, n), Ke(this, oi), Ke(this, Sl, et(xo, 8, this)), et(xo, 11, this), this.state = {
6183
6183
  initial: {},
@@ -6190,7 +6190,7 @@ var Af, la, xo, Sl, oi, Pf, Rf, pr = class extends (la = ct, Af = [fe], la) {
6190
6190
  o(), i();
6191
6191
  };
6192
6192
  }
6193
- this.registerEffect(In(this, oi, Pf).bind(this, r)), this.registerEffect(In(this, oi, Rf));
6193
+ this.registerEffect(An(this, oi, Pf).bind(this, r)), this.registerEffect(An(this, oi, Rf));
6194
6194
  }
6195
6195
  };
6196
6196
  xo = Er(la);
@@ -6214,14 +6214,14 @@ Rf = function() {
6214
6214
  const { element: v } = f, g = f.pluginConfig(pr), w = (t = (e = g?.feedback) != null ? e : u?.feedback) != null ? t : "default", y = typeof w == "function" ? w(f, l) : w;
6215
6215
  if (!v || y === "none" || !h.initialized || h.initializing)
6216
6216
  return;
6217
- const { initial: p } = a, m = (n = this.overlay) != null ? n : v, x = fr(m), b = fr(v), S = !If(v, m), k = new Bt(v, {
6217
+ const { initial: p } = a, m = (n = this.overlay) != null ? n : v, x = fr(m), b = fr(v), S = !Af(v, m), k = new Bt(v, {
6218
6218
  frameTransform: S ? b : null,
6219
6219
  ignoreTransforms: !S
6220
6220
  }), T = {
6221
6221
  x: b.scaleX / x.scaleX,
6222
6222
  y: b.scaleY / x.scaleY
6223
6223
  };
6224
- let { width: E, height: $, top: A, left: I } = k;
6224
+ let { width: E, height: $, top: I, left: A } = k;
6225
6225
  S && (E = E / T.x, $ = $ / T.y);
6226
6226
  const P = new vy(m), B = qt(v), {
6227
6227
  transition: N,
@@ -6247,23 +6247,23 @@ Rf = function() {
6247
6247
  }
6248
6248
  }
6249
6249
  if (!p.transformOrigin) {
6250
- const ie = ue(() => d.current), ce = I + ((r = $e?.x) != null ? r : 0), Ze = A + ((o = $e?.y) != null ? o : 0);
6250
+ const ie = ue(() => d.current), ce = A + ((r = $e?.x) != null ? r : 0), Ze = I + ((o = $e?.y) != null ? o : 0);
6251
6251
  p.transformOrigin = {
6252
6252
  x: (ie.x - ce * x.scaleX - x.x) / (E * x.scaleX),
6253
6253
  y: (ie.y - Ze * x.scaleY - x.y) / ($ * x.scaleY)
6254
6254
  };
6255
6255
  }
6256
- const { transformOrigin: Ee } = p, ge = A * x.scaleY + x.y, Ie = I * x.scaleX + x.x;
6256
+ const { transformOrigin: Ee } = p, ge = I * x.scaleY + x.y, Ae = A * x.scaleX + x.x;
6257
6257
  if (!p.coordinates && (p.coordinates = {
6258
- x: Ie,
6258
+ x: Ae,
6259
6259
  y: ge
6260
6260
  }, T.x !== 1 || T.y !== 1)) {
6261
- const { scaleX: ie, scaleY: ce } = b, { x: Ze, y: At } = Ee;
6262
- p.coordinates.x += (E * ie - E) * Ze, p.coordinates.y += ($ * ce - $) * At;
6261
+ const { scaleX: ie, scaleY: ce } = b, { x: Ze, y: It } = Ee;
6262
+ p.coordinates.x += (E * ie - E) * Ze, p.coordinates.y += ($ * ce - $) * It;
6263
6263
  }
6264
6264
  p.dimensions || (p.dimensions = { width: E, height: $ }), p.frameTransform || (p.frameTransform = x);
6265
6265
  const Be = {
6266
- x: p.coordinates.x - Ie,
6266
+ x: p.coordinates.x - Ae,
6267
6267
  y: p.coordinates.y - ge
6268
6268
  }, de = {
6269
6269
  width: (p.dimensions.width * p.frameTransform.scaleX - E * x.scaleX) * Ee.x,
@@ -6272,8 +6272,8 @@ Rf = function() {
6272
6272
  x: Be.x / x.scaleX + de.width,
6273
6273
  y: Be.y / x.scaleY + de.height
6274
6274
  }, nt = {
6275
- left: I + Qe.x,
6276
- top: A + Qe.y
6275
+ left: A + Qe.x,
6276
+ top: I + Qe.y
6277
6277
  };
6278
6278
  m.setAttribute(Ft, "true");
6279
6279
  const D = ue(() => c.transform), W = (i = p.translate) != null ? i : { x: 0, y: 0 }, K = D.x * x.scaleX + W.x, Z = D.y * x.scaleY + W.y, Te = af();
@@ -6300,8 +6300,8 @@ Rf = function() {
6300
6300
  transformOrigin: Ee,
6301
6301
  width: E,
6302
6302
  height: $,
6303
- top: A,
6304
- left: I,
6303
+ top: I,
6304
+ left: A,
6305
6305
  widthOffset: xe,
6306
6306
  heightOffset: Ve,
6307
6307
  delta: Qe,
@@ -6345,22 +6345,22 @@ Rf = function() {
6345
6345
  zn.style.width = (ce = z[Wn]) != null ? ce : "";
6346
6346
  }
6347
6347
  f.status = "idle";
6348
- const Ze = a.current.translate != null, At = c.status.dragging;
6349
- ee && (!At && Ze || ee.parentElement !== m.parentElement) && m.isConnected && ee.replaceWith(m), ee?.remove();
6348
+ const Ze = a.current.translate != null, It = c.status.dragging;
6349
+ ee && (!It && Ze || ee.parentElement !== m.parentElement) && m.isConnected && ee.replaceWith(m), ee?.remove();
6350
6350
  };
6351
6351
  m === this.overlay ? setTimeout(ie, 0) : ie();
6352
- }, Ae = u?.dropAnimation, Oe = this, mn = Eo(
6352
+ }, Ie = u?.dropAnimation, Oe = this, mn = Eo(
6353
6353
  // Update transform on move
6354
6354
  () => {
6355
6355
  var ie, ce, Ze;
6356
- const { transform: At, status: Dr } = c;
6357
- if (!(!At.x && !At.y && !a.current.translate) && Dr.dragging) {
6356
+ const { transform: It, status: Dr } = c;
6357
+ if (!(!It.x && !It.y && !a.current.translate) && Dr.dragging) {
6358
6358
  const Wn = (ie = p.translate) != null ? ie : { x: 0, y: 0 }, zn = {
6359
- x: At.x / x.scaleX + Wn.x,
6360
- y: At.y / x.scaleY + Wn.y
6359
+ x: It.x / x.scaleX + Wn.x,
6360
+ y: It.y / x.scaleY + Wn.y
6361
6361
  }, Fl = a.current.translate, ap = ue(() => c.modifiers), Ji = ue(() => {
6362
- var Ir;
6363
- return (Ir = c.shape) == null ? void 0 : Ir.current;
6362
+ var Ar;
6363
+ return (Ar = c.shape) == null ? void 0 : Ar.current;
6364
6364
  }), Mr = u?.keyboardTransition, Bl = tt && !ve && Mr !== null ? `${(ce = Mr?.duration) != null ? ce : 250}ms ${(Ze = Mr?.easing) != null ? Ze : "cubic-bezier(0.25, 1, 0.5, 1)"}` : "0ms linear";
6365
6365
  if (P.set(
6366
6366
  {
@@ -6369,12 +6369,12 @@ Rf = function() {
6369
6369
  },
6370
6370
  rt
6371
6371
  ), Se?.takeRecords(), Ji && Ji !== je && Fl && !ap.length) {
6372
- const Ir = Ot.delta(zn, Fl);
6372
+ const Ar = Ot.delta(zn, Fl);
6373
6373
  c.shape = jt.from(
6374
6374
  Ji.boundingRectangle
6375
6375
  ).translate(
6376
- Ir.x * x.scaleX,
6377
- Ir.y * x.scaleY
6376
+ Ar.x * x.scaleX,
6377
+ Ar.y * x.scaleY
6378
6378
  );
6379
6379
  } else
6380
6380
  c.shape = new Bt(m);
@@ -6385,7 +6385,7 @@ Rf = function() {
6385
6385
  function() {
6386
6386
  if (c.status.dropped) {
6387
6387
  this.dispose(), f.status = "dropping";
6388
- const ie = g?.dropAnimation !== void 0 ? g.dropAnimation : Oe.dropAnimation !== void 0 ? Oe.dropAnimation : Ae;
6388
+ const ie = g?.dropAnimation !== void 0 ? g.dropAnimation : Oe.dropAnimation !== void 0 ? Oe.dropAnimation : Ie;
6389
6389
  let ce = a.current.translate;
6390
6390
  const Ze = ce != null;
6391
6391
  if (!ce && v !== m && (ce = { x: 0, y: 0 }), !ce || ie === null) {
@@ -6416,7 +6416,7 @@ Rf = function() {
6416
6416
  ae(), mn();
6417
6417
  };
6418
6418
  };
6419
- It(xo, 4, "overlay", Af, pr, Sl);
6419
+ At(xo, 4, "overlay", If, pr, Sl);
6420
6420
  Ln(xo, pr);
6421
6421
  pr.configure = Oo(pr);
6422
6422
  var $l = pr, Pr = !0, Jy = !1, Lf, Wf, zf, Nf, sn, El, Tl;
@@ -6435,8 +6435,8 @@ var _o = class {
6435
6435
  sn = Er(null);
6436
6436
  El = /* @__PURE__ */ new WeakMap();
6437
6437
  Tl = /* @__PURE__ */ new WeakMap();
6438
- It(sn, 4, Nf, zf, _o, El);
6439
- It(sn, 4, Wf, Lf, _o, Tl);
6438
+ At(sn, 4, Nf, zf, _o, El);
6439
+ At(sn, 4, Wf, Lf, _o, Tl);
6440
6440
  Ln(sn, _o);
6441
6441
  var eb = [Ct.Forward, Ct.Reverse], xc = class {
6442
6442
  constructor() {
@@ -6479,7 +6479,7 @@ var eb = [Ct.Forward, Ct.Reverse], xc = class {
6479
6479
  function _c(e, t) {
6480
6480
  return Math.sign(e - t);
6481
6481
  }
6482
- var Ff, ca, ko, Ol, tn, da, Io = class extends (ca = Co, Ff = [fe], ca) {
6482
+ var Ff, ca, ko, Ol, tn, da, Ao = class extends (ca = Co, Ff = [fe], ca) {
6483
6483
  constructor(e) {
6484
6484
  super(e), Ke(this, Ol, et(ko, 8, this, !1)), et(ko, 11, this), Ke(this, tn), Ke(this, da, () => {
6485
6485
  if (!ke(this, tn))
@@ -6572,8 +6572,8 @@ ko = Er(ca);
6572
6572
  Ol = /* @__PURE__ */ new WeakMap();
6573
6573
  tn = /* @__PURE__ */ new WeakMap();
6574
6574
  da = /* @__PURE__ */ new WeakMap();
6575
- It(ko, 4, "autoScrolling", Ff, Io, Ol);
6576
- Ln(ko, Io);
6575
+ At(ko, 4, "autoScrolling", Ff, Ao, Ol);
6576
+ Ln(ko, Ao);
6577
6577
  function kc(e) {
6578
6578
  return e > 0 ? Ct.Forward : e < 0 ? Ct.Reverse : Ct.Idle;
6579
6579
  }
@@ -6596,7 +6596,7 @@ var nb = class {
6596
6596
  }), ob = 10, ua = class extends ct {
6597
6597
  constructor(t, n) {
6598
6598
  super(t, n);
6599
- const r = t.registry.plugins.get(Io);
6599
+ const r = t.registry.plugins.get(Ao);
6600
6600
  if (!r)
6601
6601
  throw new Error("AutoScroller plugin depends on Scroller plugin");
6602
6602
  this.destroy = Mt(() => {
@@ -6899,7 +6899,7 @@ var fa = Object.freeze({
6899
6899
  const o = Fv(r);
6900
6900
  return o === t.element ? !1 : !!o;
6901
6901
  }
6902
- }), Qn, Ii = class extends cr {
6902
+ }), Qn, Ai = class extends cr {
6903
6903
  constructor(t, n) {
6904
6904
  super(t), this.manager = t, this.options = n, Ke(this, Qn, /* @__PURE__ */ new Set()), this.listeners = new cf(), this.latest = {
6905
6905
  event: void 0,
@@ -7054,9 +7054,9 @@ var fa = Object.freeze({
7054
7054
  }
7055
7055
  };
7056
7056
  Qn = /* @__PURE__ */ new WeakMap();
7057
- Ii.configure = Oo(Ii);
7058
- Ii.defaults = fa;
7059
- var ha = Ii;
7057
+ Ai.configure = Oo(Ai);
7058
+ Ai.defaults = fa;
7059
+ var ha = Ai;
7060
7060
  function db(e) {
7061
7061
  return "sensor" in e;
7062
7062
  }
@@ -7083,7 +7083,7 @@ var ir = {
7083
7083
  ir.modifiers
7084
7084
  );
7085
7085
  super(xl(wo({}, e), {
7086
- plugins: [ib, Io, Vi, ...t],
7086
+ plugins: [ib, Ao, Vi, ...t],
7087
7087
  sensors: n,
7088
7088
  modifiers: r
7089
7089
  }));
@@ -7126,10 +7126,10 @@ var ir = {
7126
7126
  an = Er(pa);
7127
7127
  Cl = /* @__PURE__ */ new WeakMap();
7128
7128
  Dl = /* @__PURE__ */ new WeakMap();
7129
- It(an, 4, "handle", qf, Yi, Cl);
7130
- It(an, 4, "element", Gf, Yi, Dl);
7129
+ At(an, 4, "handle", qf, Yi, Cl);
7130
+ At(an, 4, "element", Gf, Yi, Dl);
7131
7131
  Ln(an, Yi);
7132
- var Uf, Kf, ga, ln, Ml, us, Vf, Yf, uo, Il, Xi = class extends (ga = Gt, Kf = [fe], Uf = [fe], ga) {
7132
+ var Uf, Kf, ga, ln, Ml, us, Vf, Yf, uo, Al, Xi = class extends (ga = Gt, Kf = [fe], Uf = [fe], ga) {
7133
7133
  constructor(e, t) {
7134
7134
  var n = e, { element: r, effects: o = () => [] } = n, i = _f(n, ["element", "effects"]);
7135
7135
  const { collisionDetector: s = yf } = i, a = (u) => {
@@ -7175,7 +7175,7 @@ var Uf, Kf, ga, ln, Ml, us, Vf, Yf, uo, Il, Xi = class extends (ga = Gt, Kf = [f
7175
7175
  ]
7176
7176
  }),
7177
7177
  t
7178
- ), Ke(this, uo), Ke(this, Ml, et(ln, 8, this)), et(ln, 11, this), Ke(this, Il, et(ln, 12, this)), et(ln, 15, this), this.element = r, this.refreshShape = () => a();
7178
+ ), Ke(this, uo), Ke(this, Ml, et(ln, 8, this)), et(ln, 11, this), Ke(this, Al, et(ln, 12, this)), et(ln, 15, this), this.element = r, this.refreshShape = () => a();
7179
7179
  }
7180
7180
  set element(e) {
7181
7181
  ht(this, uo, e, Yf);
@@ -7188,9 +7188,9 @@ var Uf, Kf, ga, ln, Ml, us, Vf, Yf, uo, Il, Xi = class extends (ga = Gt, Kf = [f
7188
7188
  ln = Er(ga);
7189
7189
  Ml = /* @__PURE__ */ new WeakMap();
7190
7190
  uo = /* @__PURE__ */ new WeakSet();
7191
- Il = /* @__PURE__ */ new WeakMap();
7192
- us = It(ln, 20, "#element", Kf, uo, Ml), Vf = us.get, Yf = us.set;
7193
- It(ln, 4, "proxy", Uf, Xi, Il);
7191
+ Al = /* @__PURE__ */ new WeakMap();
7192
+ us = At(ln, 20, "#element", Kf, uo, Ml), Vf = us.get, Yf = us.set;
7193
+ At(ln, 4, "proxy", Uf, Xi, Al);
7194
7194
  Ln(ln, Xi);
7195
7195
  function hb(e) {
7196
7196
  return e != null && typeof e == "object" && "current" in e;
@@ -7256,24 +7256,24 @@ function ii(e, t) {
7256
7256
  r !== n.current && (n.current = r, t(r));
7257
7257
  });
7258
7258
  }
7259
- var vb = Object.defineProperty, yb = Object.defineProperties, bb = Object.getOwnPropertyDescriptors, Ai = Object.getOwnPropertySymbols, Qf = Object.prototype.hasOwnProperty, Zf = Object.prototype.propertyIsEnumerable, Ec = (e, t, n) => t in e ? vb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, wb = (e, t) => {
7259
+ var vb = Object.defineProperty, yb = Object.defineProperties, bb = Object.getOwnPropertyDescriptors, Ii = Object.getOwnPropertySymbols, Qf = Object.prototype.hasOwnProperty, Zf = Object.prototype.propertyIsEnumerable, Ec = (e, t, n) => t in e ? vb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, wb = (e, t) => {
7260
7260
  for (var n in t || (t = {}))
7261
7261
  Qf.call(t, n) && Ec(e, n, t[n]);
7262
- if (Ai)
7263
- for (var n of Ai(t))
7262
+ if (Ii)
7263
+ for (var n of Ii(t))
7264
7264
  Zf.call(t, n) && Ec(e, n, t[n]);
7265
7265
  return e;
7266
7266
  }, xb = (e, t) => yb(e, bb(t)), _b = (e, t) => {
7267
7267
  var n = {};
7268
7268
  for (var r in e)
7269
7269
  Qf.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
7270
- if (e != null && Ai)
7271
- for (var r of Ai(e))
7270
+ if (e != null && Ii)
7271
+ for (var r of Ii(e))
7272
7272
  t.indexOf(r) < 0 && Zf.call(e, r) && (n[r] = e[r]);
7273
7273
  return n;
7274
7274
  }, kb = new Hf(), Jf = Td(
7275
7275
  kb
7276
- ), Sb = Ag(
7276
+ ), Sb = Ig(
7277
7277
  Pg(({ children: e }, t) => {
7278
7278
  const [n, r] = j(0), o = q(null), i = q(null), s = V(
7279
7279
  () => ({
@@ -7332,39 +7332,39 @@ function $b(e) {
7332
7332
  if (!c.current) throw new Error("Renderer not found");
7333
7333
  const { renderer: T, trackRendering: E } = c.current, { monitor: $ } = k;
7334
7334
  k.renderer = T;
7335
- const A = [
7336
- $.addEventListener("beforedragstart", (I) => {
7335
+ const I = [
7336
+ $.addEventListener("beforedragstart", (A) => {
7337
7337
  const P = y.current;
7338
- P && E(() => P(I, k));
7338
+ P && E(() => P(A, k));
7339
7339
  }),
7340
7340
  $.addEventListener(
7341
7341
  "dragstart",
7342
- (I) => {
7342
+ (A) => {
7343
7343
  var P;
7344
- return (P = p.current) == null ? void 0 : P.call(p, I, k);
7344
+ return (P = p.current) == null ? void 0 : P.call(p, A, k);
7345
7345
  }
7346
7346
  ),
7347
- $.addEventListener("dragover", (I) => {
7347
+ $.addEventListener("dragover", (A) => {
7348
7348
  const P = m.current;
7349
- P && E(() => P(I, k));
7349
+ P && E(() => P(A, k));
7350
7350
  }),
7351
- $.addEventListener("dragmove", (I) => {
7351
+ $.addEventListener("dragmove", (A) => {
7352
7352
  const P = x.current;
7353
- P && E(() => P(I, k));
7353
+ P && E(() => P(A, k));
7354
7354
  }),
7355
- $.addEventListener("dragend", (I) => {
7355
+ $.addEventListener("dragend", (A) => {
7356
7356
  const P = b.current;
7357
- P && E(() => P(I, k));
7357
+ P && E(() => P(A, k));
7358
7358
  }),
7359
7359
  $.addEventListener(
7360
7360
  "collision",
7361
- (I) => {
7361
+ (A) => {
7362
7362
  var P;
7363
- return (P = S.current) == null ? void 0 : P.call(S, I, k);
7363
+ return (P = S.current) == null ? void 0 : P.call(S, A, k);
7364
7364
  }
7365
7365
  )
7366
7366
  ];
7367
- return () => A.forEach((I) => I());
7367
+ return () => I.forEach((A) => A());
7368
7368
  }, [k]), Le(
7369
7369
  v,
7370
7370
  () => k && (k.plugins = v),
@@ -7384,7 +7384,7 @@ function $b(e) {
7384
7384
  }
7385
7385
  function Eb(e) {
7386
7386
  const t = q(null);
7387
- return t.current || (t.current = e()), Ig(() => () => {
7387
+ return t.current || (t.current = e()), Ag(() => () => {
7388
7388
  var n;
7389
7389
  return (n = t.current) == null ? void 0 : n.destroy();
7390
7390
  }, []), t.current;
@@ -7402,7 +7402,7 @@ var Tb = Object.create, nh = Object.defineProperty, Ob = Object.getOwnPropertyDe
7402
7402
  }, Cb = (e, t, n) => t in e ? nh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Db = (e) => {
7403
7403
  var t;
7404
7404
  return [, , , Tb((t = e?.[rh("metadata")]) != null ? t : null)];
7405
- }, oh = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ih = (e) => e !== void 0 && typeof e != "function" ? Qi("Function expected") : e, Mb = (e, t, n, r, o) => ({ kind: oh[e], name: t, metadata: r, addInitializer: (i) => n._ ? Qi("Already initialized") : o.push(ih(i || null)) }), Ib = (e, t) => Cb(t, rh("metadata"), e[3]), Ab = (e, t, n, r) => {
7405
+ }, oh = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ih = (e) => e !== void 0 && typeof e != "function" ? Qi("Function expected") : e, Mb = (e, t, n, r, o) => ({ kind: oh[e], name: t, metadata: r, addInitializer: (i) => n._ ? Qi("Already initialized") : o.push(ih(i || null)) }), Ab = (e, t) => Cb(t, rh("metadata"), e[3]), Ib = (e, t, n, r) => {
7406
7406
  for (var o = 0, i = e[t >> 1], s = i && i.length; o < s; o++) i[o].call(n);
7407
7407
  return r;
7408
7408
  }, sh = (e, t, n, r, o, i) => {
@@ -7447,10 +7447,10 @@ var Tb = Object.create, nh = Object.defineProperty, Ob = Object.getOwnPropertyDe
7447
7447
  static from({ x: t, y: n }) {
7448
7448
  return new ma(t, n);
7449
7449
  }
7450
- }, lh, ch, va, si, Ao, Al = class extends (va = Pn, ch = [qe], lh = [qe], va) {
7450
+ }, lh, ch, va, si, Io, Il = class extends (va = Pn, ch = [qe], lh = [qe], va) {
7451
7451
  constructor(e) {
7452
7452
  const t = En.from(e);
7453
- super(t, (n, r) => En.equals(n, r)), Ab(Ao, 5, this), Rb(this, si, 0), this.velocity = { x: 0, y: 0 };
7453
+ super(t, (n, r) => En.equals(n, r)), Ib(Io, 5, this), Rb(this, si, 0), this.velocity = { x: 0, y: 0 };
7454
7454
  }
7455
7455
  get delta() {
7456
7456
  return En.delta(this.current, this.initial);
@@ -7483,11 +7483,11 @@ var Tb = Object.create, nh = Object.defineProperty, Ob = Object.getOwnPropertyDe
7483
7483
  super.reset(En.from(e)), this.velocity = { x: 0, y: 0 };
7484
7484
  }
7485
7485
  };
7486
- Ao = Db(va);
7486
+ Io = Db(va);
7487
7487
  si = /* @__PURE__ */ new WeakMap();
7488
- sh(Ao, 2, "delta", ch, Al);
7489
- sh(Ao, 2, "direction", lh, Al);
7490
- Ib(Ao, Al);
7488
+ sh(Io, 2, "delta", ch, Il);
7489
+ sh(Io, 2, "direction", lh, Il);
7490
+ Ab(Io, Il);
7491
7491
  var dh = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(dh || {});
7492
7492
  Object.values(dh);
7493
7493
  var Wb = ({
@@ -7751,7 +7751,7 @@ var Ho = 10, Jb = class extends ct {
7751
7751
  const t = Mt(() => {
7752
7752
  const { dragOperation: r } = e;
7753
7753
  if (bo(r.activatorEvent) && Tn(r.source) && r.status.initialized) {
7754
- const o = e.registry.plugins.get(Io);
7754
+ const o = e.registry.plugins.get(Ao);
7755
7755
  if (o)
7756
7756
  return o.disable(), () => o.enable();
7757
7757
  }
@@ -7797,10 +7797,10 @@ var Ho = 10, Jb = class extends ct {
7797
7797
  index: T,
7798
7798
  group: E,
7799
7799
  target: $
7800
- } = b.sortable, A = m !== T || x !== E, I = A ? $ : S?.element;
7801
- if (!I) return;
7802
- mf(I);
7803
- const P = new Bt(I);
7800
+ } = b.sortable, I = m !== T || x !== E, A = I ? $ : S?.element;
7801
+ if (!A) return;
7802
+ mf(A);
7803
+ const P = new Bt(A);
7804
7804
  if (!P)
7805
7805
  return;
7806
7806
  const B = jt.delta(
@@ -7810,7 +7810,7 @@ var Ho = 10, Jb = class extends ct {
7810
7810
  );
7811
7811
  s.move({
7812
7812
  by: B
7813
- }), A ? s.setDropTarget(b.id).then(() => a.enable()) : a.enable();
7813
+ }), I ? s.setDropTarget(b.id).then(() => a.enable()) : a.enable();
7814
7814
  });
7815
7815
  });
7816
7816
  }
@@ -8012,12 +8012,12 @@ var Mc = "__default__", c0 = class extends ct {
8012
8012
  }, k = l0(S, r);
8013
8013
  if (S === k) return;
8014
8014
  const T = k[b].indexOf(s.sortable), E = k[b].indexOf(a.sortable);
8015
- o.collisionObserver.disable(), Ic(w, T, y, E), ze(() => {
8016
- for (const [$, A] of k[x].entries())
8017
- A.index = $;
8015
+ o.collisionObserver.disable(), Ac(w, T, y, E), ze(() => {
8016
+ for (const [$, I] of k[x].entries())
8017
+ I.index = $;
8018
8018
  if (!c)
8019
- for (const [$, A] of k[b].entries())
8020
- A.group = a.sortable.group, A.index = $;
8019
+ for (const [$, I] of k[b].entries())
8020
+ I.group = a.sortable.group, I.index = $;
8021
8021
  }), o.actions.setDropTarget(s.id).then(() => o.collisionObserver.enable());
8022
8022
  });
8023
8023
  });
@@ -8038,7 +8038,7 @@ var Mc = "__default__", c0 = class extends ct {
8038
8038
  u,
8039
8039
  u0
8040
8040
  ), h = s.sortable.element, v = f.indexOf(s.sortable), g = d[v], w = g?.element;
8041
- !g || !w || !h || (Ic(h, g.index, w, s.index), ze(() => {
8041
+ !g || !w || !h || (Ac(h, g.index, w, s.index), ze(() => {
8042
8042
  for (const y of a.values()) {
8043
8043
  const p = Array.from(y).values();
8044
8044
  for (const m of p)
@@ -8055,7 +8055,7 @@ var Mc = "__default__", c0 = class extends ct {
8055
8055
  };
8056
8056
  }
8057
8057
  };
8058
- function Ic(e, t, n, r) {
8058
+ function Ac(e, t, n, r) {
8059
8059
  const o = r < t ? "afterend" : "beforebegin";
8060
8060
  n.insertAdjacentElement(o, e);
8061
8061
  }
@@ -8068,7 +8068,7 @@ function u0(e, t) {
8068
8068
  function qo(e, t = d0) {
8069
8069
  return Array.from(e).sort(t);
8070
8070
  }
8071
- var Ac = [
8071
+ var Ic = [
8072
8072
  Jb,
8073
8073
  c0
8074
8074
  ], _h = {
@@ -8122,7 +8122,7 @@ var Zi = class {
8122
8122
  "transition",
8123
8123
  "plugins"
8124
8124
  ]);
8125
- const f = zt(c, Ac), h = Pc(o);
8125
+ const f = zt(c, Ic), h = Pc(o);
8126
8126
  this.droppable = new Ll(
8127
8127
  ps(hs({}, d), { disabled: h.droppable }),
8128
8128
  t,
@@ -8243,7 +8243,7 @@ var Zi = class {
8243
8243
  return e === t ? e : { draggable: e, droppable: t };
8244
8244
  }
8245
8245
  set plugins(e) {
8246
- this.draggable.plugins = zt(e, Ac);
8246
+ this.draggable.plugins = zt(e, Ic);
8247
8247
  }
8248
8248
  set disabled(e) {
8249
8249
  const t = Pc(e);
@@ -8816,7 +8816,7 @@ function M0(e, t) {
8816
8816
  }
8817
8817
  return n;
8818
8818
  }
8819
- function I0(e, t) {
8819
+ function A0(e, t) {
8820
8820
  const n = [];
8821
8821
  for (const r of So(t, Pe.defDimension)) {
8822
8822
  const o = e.span(r), i = Ue(r, "defList");
@@ -8836,7 +8836,7 @@ function I0(e, t) {
8836
8836
  }
8837
8837
  return n;
8838
8838
  }
8839
- function A0(e, t) {
8839
+ function I0(e, t) {
8840
8840
  const n = [];
8841
8841
  for (const r of Ro(t, Pe.sourceDefinition)) {
8842
8842
  const o = e.span(r), i = e.text_(Ue(r, "sourceNameDef")), s = Ue(r, "sqExplore");
@@ -8858,7 +8858,7 @@ function A0(e, t) {
8858
8858
  statement: f,
8859
8859
  ...d ? { properties: d } : {},
8860
8860
  views: c ? M0(e, c) : [],
8861
- dimensions: c ? I0(e, c) : [],
8861
+ dimensions: c ? A0(e, c) : [],
8862
8862
  wheres: h
8863
8863
  });
8864
8864
  }
@@ -8901,7 +8901,7 @@ function R0(e, t) {
8901
8901
  }
8902
8902
  return n;
8903
8903
  }
8904
- async function Ih(e) {
8904
+ async function Ah(e) {
8905
8905
  let t;
8906
8906
  try {
8907
8907
  t = await zl(e, "file://dashboard-builder.malloy");
@@ -8933,7 +8933,7 @@ async function Ih(e) {
8933
8933
  a.proseLines = zg(u, c), a.blocks = Ng(u, c).filter(
8934
8934
  ([f]) => !u[f].trimStart().startsWith("##")
8935
8935
  );
8936
- const d = A0(a, o);
8936
+ const d = I0(a, o);
8937
8937
  return d.length === 0 && /^\s*source:/m.test(e) ? {
8938
8938
  ok: !1,
8939
8939
  reason: `The builder could not locate this file's sources in Malloy's parse tree (malloy ${r?.malloyVersion ?? "unknown"}), so editing is off.`
@@ -9041,7 +9041,7 @@ function z0(e, t) {
9041
9041
  }
9042
9042
  return s;
9043
9043
  }
9044
- function Ah(e, t) {
9044
+ function Ih(e, t) {
9045
9045
  for (let n = t + 1; n < e.length; n++)
9046
9046
  if (e[n] === "\\") n++;
9047
9047
  else if (e[n] === '"') return n;
@@ -9051,7 +9051,7 @@ function Ph(e) {
9051
9051
  let t = 0, n = 0;
9052
9052
  for (let r = 0; r < e.length; r++) {
9053
9053
  const o = e[r];
9054
- if (o === '"') r = Ah(e, r);
9054
+ if (o === '"') r = Ih(e, r);
9055
9055
  else if (o === "{" || o === "[")
9056
9056
  t++ === 0 && n++;
9057
9057
  else if (o === "}" || o === "]") t--;
@@ -9073,7 +9073,7 @@ function N0(e, t) {
9073
9073
  };
9074
9074
  for (let s = t + 1; s < e.length; s++) {
9075
9075
  const a = e[s];
9076
- if (a === '"') s = Ah(e, s);
9076
+ if (a === '"') s = Ih(e, s);
9077
9077
  else if (a === "{" || a === "[") r++;
9078
9078
  else if (a === "}") r--;
9079
9079
  else if (a === "]") {
@@ -9327,7 +9327,7 @@ async function ka(e, t, n = !1) {
9327
9327
  }
9328
9328
  }
9329
9329
  async function J0(e) {
9330
- const { parseAnnotation: t } = await ud(), n = jg(e), r = await Ih(e);
9330
+ const { parseAnnotation: t } = await ud(), n = jg(e), r = await Ah(e);
9331
9331
  if (Oh(r))
9332
9332
  return {
9333
9333
  ok: !1,
@@ -9386,22 +9386,22 @@ async function J0(e) {
9386
9386
  })));
9387
9387
  const E = new Set(
9388
9388
  k.wheres.flatMap(
9389
- ($) => $.clauses.flatMap((A) => A.givens)
9389
+ ($) => $.clauses.flatMap((I) => I.givens)
9390
9390
  )
9391
9391
  );
9392
9392
  E.size > 0 && (T.scopedBy = Array.from(E)), v.push(T);
9393
9393
  for (const $ of k.dimensions) {
9394
- const A = t(
9394
+ const I = t(
9395
9395
  ar(Cr(o, n, $.line).tags)
9396
9396
  ).tag?.tag("drill");
9397
- if (!A) continue;
9398
- const I = A.textArray("to") ?? [A.text("to") ?? ""];
9397
+ if (!I) continue;
9398
+ const A = I.textArray("to") ?? [I.text("to") ?? ""];
9399
9399
  g.push({
9400
9400
  source: k.name,
9401
9401
  name: $.name,
9402
9402
  expression: $.expression,
9403
- to: I.filter(Boolean),
9404
- ...A.text("given") ? { given: A.text("given") } : {}
9403
+ to: A.filter(Boolean),
9404
+ ...I.text("given") ? { given: I.text("given") } : {}
9405
9405
  });
9406
9406
  }
9407
9407
  w.set(
@@ -9446,26 +9446,26 @@ async function J0(e) {
9446
9446
  });
9447
9447
  continue;
9448
9448
  }
9449
- const $ = T?.[1] ?? k, A = vs(
9449
+ const $ = T?.[1] ?? k, I = vs(
9450
9450
  T?.[2] ? t([`# tile ${T[2]}`]).tag?.tag("tile") ?? void 0 : void 0
9451
9451
  );
9452
9452
  if (Q0.test($.trim())) {
9453
- y.push(p($.trim(), A));
9453
+ y.push(p($.trim(), I));
9454
9454
  continue;
9455
9455
  }
9456
- const I = T ? qg($) : void 0;
9457
- if (!I)
9456
+ const A = T ? qg($) : void 0;
9457
+ if (!A)
9458
9458
  return {
9459
9459
  ok: !1,
9460
9460
  reason: `The tile \`${$}\` is neither a \`source -> view\` expression nor the name of a query, which are the forms the builder can lay out.`
9461
9461
  };
9462
- const { source: P, view: B } = I, N = w.get(P)?.get(B);
9462
+ const { source: P, view: B } = A, N = w.get(P)?.get(B);
9463
9463
  if (N === void 0) {
9464
9464
  y.push({
9465
9465
  name: B,
9466
9466
  source: P,
9467
9467
  declaration: { kind: "inherited" },
9468
- ...Lr({}, A)
9468
+ ...Lr({}, I)
9469
9469
  });
9470
9470
  continue;
9471
9471
  }
@@ -9479,7 +9479,7 @@ async function J0(e) {
9479
9479
  why: N.body.kind === "unsupported" ? N.body.why : "unreadable"
9480
9480
  },
9481
9481
  ...jc(Bc(Q)),
9482
- ...Lr(Fc(Q), A),
9482
+ ...Lr(Fc(Q), I),
9483
9483
  ...zc(N.tags),
9484
9484
  ...Nc(N.tags, t)
9485
9485
  });
@@ -9495,7 +9495,7 @@ async function J0(e) {
9495
9495
  ...F ? { filters: F } : {},
9496
9496
  ...Q?.text("label") ? { label: Q.text("label") } : {},
9497
9497
  ...Q?.text("subtitle") ? { subtitle: Q.text("subtitle") } : {},
9498
- ...Lr(Fc(Q), A),
9498
+ ...Lr(Fc(Q), I),
9499
9499
  ...zc(N.tags),
9500
9500
  ...Nc(N.tags, t),
9501
9501
  ...Q?.has("borderless") ? { borderless: !0 } : {}
@@ -9738,7 +9738,7 @@ function lw(e) {
9738
9738
  b.length === 2 ? v.set(`${b[0]}->${b[1]}`, p) : b.length === 1 && v.set(`query.${b[0]}`, p);
9739
9739
  continue;
9740
9740
  }
9741
- if (Id(p)) {
9741
+ if (Ad(p)) {
9742
9742
  v.set(`query.${p}`, p);
9743
9743
  continue;
9744
9744
  }
@@ -9905,8 +9905,8 @@ function fw(e) {
9905
9905
  };
9906
9906
  const { tags: y, prose: p } = Cr(a, t, w.line), x = [
9907
9907
  ...(g === void 0 ? y : y.filter(($) => {
9908
- const A = ai($.text);
9909
- return A !== void 0 && rw.has(A);
9908
+ const I = ai($.text);
9909
+ return I !== void 0 && rw.has(I);
9910
9910
  })).map(($) => $.line),
9911
9911
  ...g === void 0 ? p : []
9912
9912
  ];
@@ -9920,14 +9920,14 @@ function fw(e) {
9920
9920
  text: ""
9921
9921
  });
9922
9922
  for (let N = w.line; N <= b; N++) d.add(N);
9923
- const $ = Math.min(w.line, ...x), A = w.blockHeader ?? $, I = (t[b + 1] ?? "x").trim() === "", P = A === 0 || t[A - 1].trim() === "", B = w.blockHeader === void 0 || ![...c.values()].some(
9923
+ const $ = Math.min(w.line, ...x), I = w.blockHeader ?? $, A = (t[b + 1] ?? "x").trim() === "", P = I === 0 || t[I - 1].trim() === "", B = w.blockHeader === void 0 || ![...c.values()].some(
9924
9924
  (N) => N.blockHeader === w.blockHeader && N.line > w.line && u.has(
9925
9925
  [...c.entries()].find(
9926
9926
  ([, Q]) => Q === N
9927
9927
  )?.[0] ?? ""
9928
9928
  )
9929
9929
  );
9930
- I && P && B && !d.has(b + 1) && (s.push({ ...n(b + 1), text: "" }), d.add(b + 1));
9930
+ A && P && B && !d.has(b + 1) && (s.push({ ...n(b + 1), text: "" }), d.add(b + 1));
9931
9931
  continue;
9932
9932
  }
9933
9933
  const S = r(w.line), k = Gc(g), E = g.type !== v.type || g.default !== v.default ? w.blockHeader === void 0 ? qc(g) : `${g.name} :: ${g.type} is ${g.default}` : t.slice(w.line, b + 1).join(`
@@ -10219,12 +10219,12 @@ function vw(e) {
10219
10219
  reason: `Could not find where \`${c.name}\` is declared inside \`${c.source}\`.`
10220
10220
  };
10221
10221
  const { tags: g } = Cr(l, t, v), w = o(v), y = Nh(c, !1), p = new Map(
10222
- y.map((A) => [ai(A) ?? A, A])
10222
+ y.map((I) => [ai(I) ?? I, I])
10223
10223
  ), m = /* @__PURE__ */ new Set(), x = zh(c.chart), b = Qc(d) !== Qc(c);
10224
10224
  if (b) {
10225
- const A = g.filter((B) => jl(B.text)), I = g.filter((B) => es(B.text)), P = d.chart === "custom" ? g.filter(
10225
+ const I = g.filter((B) => jl(B.text)), A = g.filter((B) => es(B.text)), P = d.chart === "custom" ? g.filter(
10226
10226
  (B) => es(B.text) || jl(B.text)
10227
- ) : A.length > 0 ? A : I.length > 1 ? I : [];
10227
+ ) : I.length > 0 ? I : A.length > 1 ? A : [];
10228
10228
  if (P.length > 0)
10229
10229
  return {
10230
10230
  ok: !1,
@@ -10232,36 +10232,36 @@ function vw(e) {
10232
10232
  };
10233
10233
  }
10234
10234
  let S = !1;
10235
- for (const A of g) {
10236
- if (b && es(A.text)) {
10237
- x === void 0 ? a.push({ ...r(A.line), text: "" }) : A.text !== nr(x, c.chartCarried) && a.push({
10238
- ...r(A.line),
10235
+ for (const I of g) {
10236
+ if (b && es(I.text)) {
10237
+ x === void 0 ? a.push({ ...r(I.line), text: "" }) : I.text !== nr(x, c.chartCarried) && a.push({
10238
+ ...r(I.line),
10239
10239
  text: `${w}${nr(x, c.chartCarried)}
10240
10240
  `
10241
10241
  }), S = !0;
10242
10242
  continue;
10243
10243
  }
10244
- const I = ai(A.text);
10245
- if (I === void 0 || !nw.has(I)) continue;
10246
- if (sw.has(I)) {
10247
- f && a.push({ ...r(A.line), text: "" });
10244
+ const A = ai(I.text);
10245
+ if (A === void 0 || !nw.has(A)) continue;
10246
+ if (sw.has(A)) {
10247
+ f && a.push({ ...r(I.line), text: "" });
10248
10248
  continue;
10249
10249
  }
10250
- const P = p.get(I);
10250
+ const P = p.get(A);
10251
10251
  if (P === void 0) {
10252
- a.push({ ...r(A.line), text: "" });
10252
+ a.push({ ...r(I.line), text: "" });
10253
10253
  continue;
10254
10254
  }
10255
- m.add(I), P !== A.text && a.push({ ...r(A.line), text: `${w}${P}
10255
+ m.add(A), P !== I.text && a.push({ ...r(I.line), text: `${w}${P}
10256
10256
  ` });
10257
10257
  }
10258
- const k = y.filter((A) => !m.has(ai(A) ?? A));
10258
+ const k = y.filter((I) => !m.has(ai(I) ?? I));
10259
10259
  if (b && x !== void 0 && !S && k.push(nr(x, c.chartCarried)), k.length > 0) {
10260
- const A = n[v];
10260
+ const I = n[v];
10261
10261
  a.push({
10262
- start: A,
10263
- end: A,
10264
- text: k.map((I) => `${w}${I}
10262
+ start: I,
10263
+ end: I,
10264
+ text: k.map((A) => `${w}${A}
10265
10265
  `).join("")
10266
10266
  });
10267
10267
  }
@@ -10273,8 +10273,8 @@ function vw(e) {
10273
10273
  reason: `Could not find \`${c.name}\`'s declaration to filter it.`
10274
10274
  };
10275
10275
  if (T.body.kind === "reference") {
10276
- const A = Sw(e, c, T);
10277
- if (A) return A;
10276
+ const I = Sw(e, c, T);
10277
+ if (I) return I;
10278
10278
  continue;
10279
10279
  }
10280
10280
  if (T.body.kind !== "inline")
@@ -10313,7 +10313,7 @@ function li(e) {
10313
10313
  function bw(e, t, n) {
10314
10314
  if (n.has(e.name))
10315
10315
  return `Two text tiles are named \`${e.name}\`, so they could not be told apart.`;
10316
- if (n.add(e.name), t === void 0 && !Id(e.name))
10316
+ if (n.add(e.name), t === void 0 && !Ad(e.name))
10317
10317
  return `The text tile name ${JSON.stringify(e.name)} must be a bare word.`;
10318
10318
  if (t === void 0 || e.markdown !== t.markdown) {
10319
10319
  const r = li(e.markdown);
@@ -10625,7 +10625,7 @@ async function Jc(e, t, n) {
10625
10625
  if ("reason" in s) return s;
10626
10626
  const a = xw(o, i);
10627
10627
  if (a) return { ok: !1, reason: a };
10628
- const l = await Ih(e);
10628
+ const l = await Ah(e);
10629
10629
  if (Oh(l))
10630
10630
  return {
10631
10631
  ok: !1,
@@ -10867,15 +10867,15 @@ function Tw({
10867
10867
  )
10868
10868
  ) : r;
10869
10869
  }
10870
- var Ow = Object.defineProperty, Cw = Object.defineProperties, Dw = Object.getOwnPropertyDescriptors, ed = Object.getOwnPropertySymbols, Mw = Object.prototype.hasOwnProperty, Iw = Object.prototype.propertyIsEnumerable, td = (e, t, n) => t in e ? Ow(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gn = (e, t) => {
10870
+ var Ow = Object.defineProperty, Cw = Object.defineProperties, Dw = Object.getOwnPropertyDescriptors, ed = Object.getOwnPropertySymbols, Mw = Object.prototype.hasOwnProperty, Aw = Object.prototype.propertyIsEnumerable, td = (e, t, n) => t in e ? Ow(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gn = (e, t) => {
10871
10871
  for (var n in t || (t = {}))
10872
10872
  Mw.call(t, n) && td(e, n, t[n]);
10873
10873
  if (ed)
10874
10874
  for (var n of ed(t))
10875
- Iw.call(t, n) && td(e, n, t[n]);
10875
+ Aw.call(t, n) && td(e, n, t[n]);
10876
10876
  return e;
10877
10877
  }, qn = (e, t) => Cw(e, Dw(t));
10878
- function Aw(e, t, n) {
10878
+ function Iw(e, t, n) {
10879
10879
  if (t === n)
10880
10880
  return e;
10881
10881
  const r = e.slice();
@@ -10994,7 +10994,7 @@ function Pw(e, t, n) {
10994
10994
  });
10995
10995
  }
10996
10996
  function Rw(e, t) {
10997
- return Pw(e, t, Aw);
10997
+ return Pw(e, t, Iw);
10998
10998
  }
10999
10999
  function Vh(e) {
11000
11000
  const t = e.getBoundingClientRect(), n = /* @__PURE__ */ new Map();
@@ -11152,10 +11152,10 @@ function Fw({
11152
11152
  if (!p || !m || !x || !e[w]) return;
11153
11153
  g.stopPropagation(), g.preventDefault(), g.currentTarget.setPointerCapture(g.pointerId), Yo(Xh(y)), r(w);
11154
11154
  const b = (y.n || y.w) && (!dn(e) || e[w].row === void 0 || e[w].col === void 0), S = b ? (() => {
11155
- const A = Vh(p);
11155
+ const I = Vh(p);
11156
11156
  return Rd(
11157
11157
  e,
11158
- e.map((I) => A.get(me(I))),
11158
+ e.map((A) => I.get(me(A))),
11159
11159
  t,
11160
11160
  pi(m.width, t)
11161
11161
  );
@@ -11181,10 +11181,10 @@ function Fw({
11181
11181
  if (!w || !y) return;
11182
11182
  const p = w.base[w.index];
11183
11183
  if (!p) return;
11184
- const x = pi(y.width, t) + bt, b = g.clientX - y.left, S = g.clientY - y.top, k = g.currentTarget.parentElement?.getBoundingClientRect(), T = k?.top ?? w.top, E = k?.left ?? w.left, { min: $ } = w, A = w.shape;
11185
- let { row: I, col: P, colspan: B, rowspan: N } = A;
11186
- if (w.placed && P !== void 0 && I !== void 0) {
11187
- const M = w.from, F = M.col ?? P, C = F + M.colspan - 1, O = M.row ?? I, R = M.rowspan ?? fo(p), U = O + R - 1;
11184
+ const x = pi(y.width, t) + bt, b = g.clientX - y.left, S = g.clientY - y.top, k = g.currentTarget.parentElement?.getBoundingClientRect(), T = k?.top ?? w.top, E = k?.left ?? w.left, { min: $ } = w, I = w.shape;
11185
+ let { row: A, col: P, colspan: B, rowspan: N } = I;
11186
+ if (w.placed && P !== void 0 && A !== void 0) {
11187
+ const M = w.from, F = M.col ?? P, C = F + M.colspan - 1, O = M.row ?? A, R = M.rowspan ?? fo(p), U = O + R - 1;
11188
11188
  if (w.edges.e) {
11189
11189
  const G = Math.round((b + bt) / x);
11190
11190
  B = Math.min(Math.max(G, F), t) - F + 1, P = F;
@@ -11195,17 +11195,17 @@ function Fw({
11195
11195
  }
11196
11196
  if (w.edges.s) {
11197
11197
  const G = w.edges.n ? y.top + (O - 1) * nd : T;
11198
- N = Hl(g.clientY - G, $), I = O;
11198
+ N = Hl(g.clientY - G, $), A = O;
11199
11199
  }
11200
11200
  if (w.edges.n) {
11201
11201
  const G = Math.round(S / nd) + 1, Y = Math.min($, R);
11202
- I = Math.max(
11202
+ A = Math.max(
11203
11203
  1,
11204
11204
  Math.min(
11205
11205
  Math.max(G, U - to + 1),
11206
11206
  U - Y + 1
11207
11207
  )
11208
- ), N = U - I + 1;
11208
+ ), N = U - A + 1;
11209
11209
  }
11210
11210
  } else {
11211
11211
  if (w.edges.e) {
@@ -11220,12 +11220,12 @@ function Fw({
11220
11220
  }
11221
11221
  }
11222
11222
  const Q = {
11223
- ...I !== void 0 ? { row: I } : {},
11223
+ ...A !== void 0 ? { row: A } : {},
11224
11224
  ...P !== void 0 ? { col: P } : {},
11225
11225
  colspan: B,
11226
11226
  rowspan: N
11227
11227
  };
11228
- rd(Q, A) || u({ ...w, shape: Q });
11228
+ rd(Q, I) || u({ ...w, shape: Q });
11229
11229
  }, end: (g) => {
11230
11230
  g.currentTarget.hasPointerCapture(g.pointerId) && g.currentTarget.releasePointerCapture(g.pointerId), Yo(void 0);
11231
11231
  const w = a.current;
@@ -11360,7 +11360,7 @@ function jw({
11360
11360
  H,
11361
11361
  {
11362
11362
  ref: m,
11363
- "aria-label": `Move ${Ar(e)}`,
11363
+ "aria-label": `Move ${Ir(e)}`,
11364
11364
  sx: {
11365
11365
  position: "absolute",
11366
11366
  width: "1px",
@@ -11374,7 +11374,7 @@ function jw({
11374
11374
  /* @__PURE__ */ _(
11375
11375
  Cp,
11376
11376
  {
11377
- label: `Remove ${Ar(e)}`,
11377
+ label: `Remove ${Ir(e)}`,
11378
11378
  onRemove: u,
11379
11379
  ...c ? { disabledReason: c } : {},
11380
11380
  inset: i ? gd : 0
@@ -11385,7 +11385,7 @@ function jw({
11385
11385
  {
11386
11386
  className: "builder-affordance",
11387
11387
  size: "small",
11388
- "aria-label": `Settings for ${Ar(e)}`,
11388
+ "aria-label": `Settings for ${Ir(e)}`,
11389
11389
  onClick: (x) => {
11390
11390
  x.stopPropagation(), l(x.currentTarget);
11391
11391
  },
@@ -11423,7 +11423,7 @@ function jw({
11423
11423
  edges: f,
11424
11424
  width: d,
11425
11425
  heightEdge: h,
11426
- label: Ar(e)
11426
+ label: Ir(e)
11427
11427
  }
11428
11428
  ),
11429
11429
  s && /* @__PURE__ */ _(
@@ -11431,7 +11431,7 @@ function jw({
11431
11431
  {
11432
11432
  className: "builder-affordance",
11433
11433
  size: "small",
11434
- "aria-label": `Insert tile after ${Ar(e)}`,
11434
+ "aria-label": `Insert tile after ${Ir(e)}`,
11435
11435
  onClick: (x) => {
11436
11436
  x.stopPropagation(), s();
11437
11437
  },
@@ -11806,14 +11806,14 @@ function Xw({
11806
11806
  editTile: y,
11807
11807
  renderTile: p
11808
11808
  }) {
11809
- const { dragging: m, preview: x, onDragStart: b, onDragMove: S, onDragOver: k, onDragEnd: T } = t, { columns: E } = a, $ = n.drag, A = (C) => C.colspan === void 0 ? { ...C, colspan: s } : C, I = ($ !== void 0 ? (() => {
11809
+ const { dragging: m, preview: x, onDragStart: b, onDragMove: S, onDragOver: k, onDragEnd: T } = t, { columns: E } = a, $ = n.drag, I = (C) => C.colspan === void 0 ? { ...C, colspan: s } : C, A = ($ !== void 0 ? (() => {
11810
11810
  const C = $.placedHere ? $.base : e.document.tiles;
11811
11811
  if (!C[$.index]) return C;
11812
11812
  const R = C.map(
11813
11813
  (U, G) => G === $.index ? Qh(U, $.shape, $.edges, $.placed) : U
11814
11814
  );
11815
11815
  return $.placed ? Xt(R, E, $.index) : R;
11816
- })() : x ?? e.document.tiles).map(A), P = dn(I), B = m || $ !== void 0, N = !B && P && o && u !== void 0, Q = e.document.tiles.length === 0, M = B && !P ? Hb(I, E) : I.map(ph), F = (C) => Qw(C, Fi(C), y);
11816
+ })() : x ?? e.document.tiles).map(I), P = dn(A), B = m || $ !== void 0, N = !B && P && o && u !== void 0, Q = e.document.tiles.length === 0, M = B && !P ? Hb(A, E) : A.map(ph), F = (C) => Qw(C, Fi(C), y);
11817
11817
  return /* @__PURE__ */ L(Fe, { children: [
11818
11818
  /* @__PURE__ */ L(
11819
11819
  $b,
@@ -11832,7 +11832,7 @@ function Xw({
11832
11832
  P && (B || N) && /* @__PURE__ */ _(id, { top: 0, faint: !B })
11833
11833
  ),
11834
11834
  /* @__PURE__ */ _(
11835
- Ip,
11835
+ Ap,
11836
11836
  {
11837
11837
  tiles: M,
11838
11838
  columns: E,
@@ -11985,7 +11985,7 @@ function Jw({
11985
11985
  }) {
11986
11986
  const { theme: i } = Xe();
11987
11987
  return /* @__PURE__ */ _(
11988
- Ap,
11988
+ Ip,
11989
11989
  {
11990
11990
  actions: n,
11991
11991
  title: /* @__PURE__ */ _(
@@ -12462,16 +12462,16 @@ function ax({
12462
12462
  }, [t, d, e]), $ = le(() => {
12463
12463
  if (!(!t || !e.dirty || d))
12464
12464
  return S();
12465
- }, [t, e, d, S]), A = q($);
12466
- A.current = $;
12467
- const I = le(() => {
12468
- const M = () => A.current();
12465
+ }, [t, e, d, S]), I = q($);
12466
+ I.current = $;
12467
+ const A = le(() => {
12468
+ const M = () => I.current();
12469
12469
  return u ? u(M) : M();
12470
12470
  }, [u]), P = sx({
12471
12471
  dirty: p,
12472
12472
  saving: d,
12473
12473
  canSave: !!t,
12474
- save: I,
12474
+ save: A,
12475
12475
  onExit: () => r?.()
12476
12476
  });
12477
12477
  om(
@@ -12481,12 +12481,12 @@ function ax({
12481
12481
  ...c,
12482
12482
  undo: e.undo,
12483
12483
  redo: e.redo,
12484
- ...t ? { save: I } : {},
12484
+ ...t ? { save: A } : {},
12485
12485
  // Paused by the exit dialog, or by the builder itself (an edge
12486
12486
  // dragged, whose release would write over a mid-drag undo).
12487
12487
  paused: P.dialog.open || c.paused === !0
12488
12488
  }),
12489
- [c, e, t, I, P.dialog.open]
12489
+ [c, e, t, A, P.dialog.open]
12490
12490
  )
12491
12491
  );
12492
12492
  const B = !!t && !d && e.canUndoSave, N = e.lastSave, Q = {
@@ -12497,12 +12497,12 @@ function ax({
12497
12497
  dirty: y,
12498
12498
  saving: d,
12499
12499
  saveButton: g,
12500
- ...t ? { onSave: I } : {},
12500
+ ...t ? { onSave: A } : {},
12501
12501
  ...r ? { onExit: P.requestExit } : {}
12502
12502
  };
12503
12503
  return {
12504
12504
  saving: d,
12505
- save: I,
12505
+ save: A,
12506
12506
  exitGuard: P,
12507
12507
  /** Write the edits, then leave; absent unless the host can be left (`onExit`). */
12508
12508
  ...r ? { done: P.saveAndExit } : {},
@@ -12722,11 +12722,11 @@ function hx(e) {
12722
12722
  c(void 0), s(
12723
12723
  (O) => O.index > 0 ? { ...O, index: O.index - 1 } : O
12724
12724
  );
12725
- }, []), A = le(() => {
12725
+ }, []), I = le(() => {
12726
12726
  c(void 0), s(
12727
12727
  (O) => O.index < O.stack.length - 1 ? { ...O, index: O.index + 1 } : O
12728
12728
  );
12729
- }, []), I = le(
12729
+ }, []), A = le(
12730
12730
  async (O, R) => {
12731
12731
  try {
12732
12732
  return await t(O, R);
@@ -12750,7 +12750,7 @@ function hx(e) {
12750
12750
  }, R = o?.(d, y) ?? !1, U = r?.(d, y) ?? !1;
12751
12751
  S(!0);
12752
12752
  try {
12753
- const G = await I(a, y);
12753
+ const G = await A(a, y);
12754
12754
  if (Sa(G))
12755
12755
  return c(G.reason), { ok: !1, reason: G.reason };
12756
12756
  try {
@@ -12780,7 +12780,7 @@ function hx(e) {
12780
12780
  }
12781
12781
  }, [
12782
12782
  y,
12783
- I,
12783
+ A,
12784
12784
  n,
12785
12785
  a,
12786
12786
  d,
@@ -12817,9 +12817,9 @@ function hx(e) {
12817
12817
  () => o?.(d, y) ?? !1,
12818
12818
  [y, d, o]
12819
12819
  ), F = k !== void 0 && k.after === i, C = le(async () => {
12820
- const O = await I(a, y);
12820
+ const O = await A(a, y);
12821
12821
  return Sa(O) ? { ok: !1, reason: O.reason } : { ok: !0, source: O.source };
12822
- }, [y, I, a]);
12822
+ }, [y, A, a]);
12823
12823
  return {
12824
12824
  document: y,
12825
12825
  saved: d,
@@ -12831,7 +12831,7 @@ function hx(e) {
12831
12831
  ...u === void 0 ? {} : { error: u },
12832
12832
  update: E,
12833
12833
  undo: $,
12834
- redo: A,
12834
+ redo: I,
12835
12835
  save: P,
12836
12836
  preview: C,
12837
12837
  structural: Q,
@@ -13041,8 +13041,8 @@ function ip({
13041
13041
  ...n ? { onSave: n } : {},
13042
13042
  ...w !== void 0 ? { replaces: w } : {},
13043
13043
  ...p ? { visibleSources: p } : {}
13044
- }), $ = jp(T, E, e), A = q(null), {
13045
- selected: I,
13044
+ }), $ = jp(T, E, e), I = q(null), {
13045
+ selected: A,
13046
13046
  descriptionSelected: P,
13047
13047
  selectTile: B,
13048
13048
  deselectTile: N,
@@ -13050,7 +13050,7 @@ function ip({
13050
13050
  clearSelection: M,
13051
13051
  flash: F,
13052
13052
  stepEditor: C
13053
- } = ox({ editor: E, gridBox: A }), O = vd(E.document.layout, E.document.columns), { columns: R } = O, U = y?.split("/").at(-1)?.replace(/\.malloy$/, ""), G = Ed("(min-width:900px)", {
13053
+ } = ox({ editor: E, gridBox: I }), O = vd(E.document.layout, E.document.columns), { columns: R } = O, U = y?.split("/").at(-1)?.replace(/\.malloy$/, ""), G = Ed("(min-width:900px)", {
13054
13054
  defaultMatches: !0,
13055
13055
  noSsr: !0
13056
13056
  }), Y = !O.widths || G, oe = Lw({
@@ -13059,17 +13059,17 @@ function ip({
13059
13059
  ae.tiles = X;
13060
13060
  }),
13061
13061
  onLanded: B,
13062
- ...O.widths && G ? { placement: { columns: R, gridBox: A } } : {}
13062
+ ...O.widths && G ? { placement: { columns: R, gridBox: I } } : {}
13063
13063
  }), _e = (X, ae) => {
13064
13064
  if (E.update((Oe) => {
13065
13065
  Oe.tiles = X;
13066
13066
  }), ae === void 0) return;
13067
- const Ae = X.findIndex((Oe) => me(Oe) === ae);
13068
- Ae >= 0 && B(Ae);
13067
+ const Ie = X.findIndex((Oe) => me(Oe) === ae);
13068
+ Ie >= 0 && B(Ie);
13069
13069
  }, $e = O.widths, se = le(
13070
13070
  (X, ae) => $e && dn(X) ? Xt(X, R, ae) : X,
13071
13071
  [$e, R]
13072
- ), { dragging: Re } = oe, be = Hp(A, R), xe = V(
13072
+ ), { dragging: Re } = oe, be = Hp(I, R), xe = V(
13073
13073
  () => E.document.tiles.map(
13074
13074
  (X) => X.colspan === void 0 ? { ...X, colspan: be } : X
13075
13075
  ),
@@ -13077,16 +13077,16 @@ function ip({
13077
13077
  ), Ve = Fw({
13078
13078
  tiles: xe,
13079
13079
  columns: R,
13080
- gridBox: A,
13080
+ gridBox: I,
13081
13081
  onStart: B,
13082
- commit: ({ index: X, edges: ae, shape: Ae, placed: Oe, placedAll: mn }) => {
13082
+ commit: ({ index: X, edges: ae, shape: Ie, placed: Oe, placedAll: mn }) => {
13083
13083
  const ie = mn ?? E.document.tiles, ce = ie[X];
13084
13084
  if (!ce) return;
13085
- let Ze = Qh(ce, Ae, ae, Oe);
13086
- (ae.e || ae.w) && (Ze = Ss(Ze, Ae.colspan, R, be));
13087
- const At = ie.map((Dr, Wn) => Wn === X ? Ze : Dr);
13085
+ let Ze = Qh(ce, Ie, ae, Oe);
13086
+ (ae.e || ae.w) && (Ze = Ss(Ze, Ie.colspan, R, be));
13087
+ const It = ie.map((Dr, Wn) => Wn === X ? Ze : Dr);
13088
13088
  _e(
13089
- Oe ? Jn(Xt(At, R, X)) : At,
13089
+ Oe ? Jn(Xt(It, R, X)) : It,
13090
13090
  me(ce)
13091
13091
  );
13092
13092
  }
@@ -13097,12 +13097,12 @@ function ip({
13097
13097
  textHeld: p !== void 0,
13098
13098
  selectTile: B,
13099
13099
  deselectTile: N
13100
- }), { menu: tt, addingTile: Ee, openAdd: ge } = ee, Ie = fx({
13100
+ }), { menu: tt, addingTile: Ee, openAdd: ge } = ee, Ae = fx({
13101
13101
  editor: E,
13102
13102
  opened: t,
13103
13103
  givens: u,
13104
13104
  catalog: c
13105
- }), { filterDialog: Be, setFilterDialog: de } = Ie, [Qe, nt] = j(
13105
+ }), { filterDialog: Be, setFilterDialog: de } = Ae, [Qe, nt] = j(
13106
13106
  void 0
13107
13107
  ), { draftDirty: D, openDraft: W, prepare: K } = mx({
13108
13108
  editorDirty: E.dirty
@@ -13120,24 +13120,24 @@ function ip({
13120
13120
  // lands on is pushed down. Unlike a drop it never slides under a
13121
13121
  // taller tile, so a key press moves it where the arrow points.
13122
13122
  move: (X, ae) => {
13123
- if (Re || I === void 0 || !O.widths || !Y)
13123
+ if (Re || A === void 0 || !O.widths || !Y)
13124
13124
  return !1;
13125
- const Ae = E.document.tiles[I];
13126
- if (!Ae || Ae.row === void 0 || Ae.col === void 0)
13125
+ const Ie = E.document.tiles[A];
13126
+ if (!Ie || Ie.row === void 0 || Ie.col === void 0)
13127
13127
  return !1;
13128
13128
  const Oe = Vl(
13129
13129
  E.document.tiles,
13130
- I,
13130
+ A,
13131
13131
  X,
13132
13132
  ae,
13133
13133
  R
13134
13134
  );
13135
13135
  if (Oe.every((ce, Ze) => ce === E.document.tiles[Ze]))
13136
13136
  return !0;
13137
- const mn = me(Ae);
13137
+ const mn = me(Ie);
13138
13138
  E.update((ce) => {
13139
13139
  ce.tiles = Jn(
13140
- Vl(ce.tiles, I, X, ae, R)
13140
+ Vl(ce.tiles, A, X, ae, R)
13141
13141
  );
13142
13142
  });
13143
13143
  const ie = Jn(Oe).findIndex(
@@ -13146,22 +13146,22 @@ function ip({
13146
13146
  return ie >= 0 && B(ie), !0;
13147
13147
  },
13148
13148
  nudge: (X) => {
13149
- if (Re || I === void 0 || !O.widths || !Y)
13149
+ if (Re || A === void 0 || !O.widths || !Y)
13150
13150
  return;
13151
- const ae = E.document.tiles[I];
13151
+ const ae = E.document.tiles[A];
13152
13152
  if (!ae) return;
13153
- const Ae = Gp(
13153
+ const Ie = Gp(
13154
13154
  ae.colspan ?? be,
13155
13155
  X,
13156
13156
  Wd(ae, R)
13157
13157
  );
13158
- Ae !== (ae.colspan ?? be) && E.update((Oe) => {
13159
- Oe.tiles[I] = Ss(
13160
- Oe.tiles[I],
13161
- Ae,
13158
+ Ie !== (ae.colspan ?? be) && E.update((Oe) => {
13159
+ Oe.tiles[A] = Ss(
13160
+ Oe.tiles[A],
13161
+ Ie,
13162
13162
  R,
13163
13163
  be
13164
- ), Oe.tiles = se(Oe.tiles, I);
13164
+ ), Oe.tiles = se(Oe.tiles, A);
13165
13165
  });
13166
13166
  }
13167
13167
  }),
@@ -13177,7 +13177,7 @@ function ip({
13177
13177
  Ee,
13178
13178
  Qe,
13179
13179
  M,
13180
- I,
13180
+ A,
13181
13181
  R,
13182
13182
  O,
13183
13183
  Re
@@ -13204,14 +13204,14 @@ function ip({
13204
13204
  })
13205
13205
  }), Et = E.document.tiles.length === 0, { toolbarProps: z } = Se, J = $.restored, je = {
13206
13206
  status: Se.saving ? "saving" : z.dirty ? "unsaved" : "saved",
13207
- saveTarget: g ?? Is[v],
13207
+ saveTarget: g ?? As[v],
13208
13208
  ...$.keptAt !== void 0 ? { draftKeptAt: $.keptAt } : {},
13209
13209
  // An offered draft is discarded without being applied, so Discard is
13210
13210
  // an answer before there is anything unsaved.
13211
13211
  ...(z.dirty || J?.pending) && T !== void 0 ? { discard: $.discard } : {},
13212
13212
  ...J ? { restored: J } : {},
13213
13213
  ...J && !J.pending ? { dismissRestored: $.dismissRestored } : {}
13214
- }, He = E.document.tiles, xt = I !== void 0 && He[I] ? me(He[I]) : void 0, ve = O.widths && Y && dn(He) ? {
13214
+ }, He = E.document.tiles, xt = A !== void 0 && He[A] ? me(He[A]) : void 0, ve = O.widths && Y && dn(He) ? {
13215
13215
  ...Zg(He, R) ? {
13216
13216
  pack: () => _e(
13217
13217
  Jn(Ld(He, R)),
@@ -13287,18 +13287,18 @@ function ip({
13287
13287
  controls: Et ? void 0 : /* @__PURE__ */ _(
13288
13288
  nx,
13289
13289
  {
13290
- controls: Ie.controlList,
13291
- unknownFieldsOf: Ie.unknownFieldsOf,
13290
+ controls: Ae.controlList,
13291
+ unknownFieldsOf: Ae.unknownFieldsOf,
13292
13292
  onEdit: (X) => de({ control: X }),
13293
13293
  onAdd: () => de({}),
13294
13294
  ...m ? { addDisabledReason: m } : {},
13295
- onRemove: Ie.dropControl,
13295
+ onRemove: Ae.dropControl,
13296
13296
  ...x ? { fixedFilters: x } : {},
13297
13297
  ...b ? { onOpenModel: b } : {},
13298
13298
  ...E.document.startingGivens ? { startingValues: E.document.startingGivens } : {},
13299
- onStartingValue: (X, ae) => E.update((Ae) => {
13300
- const Oe = { ...Ae.startingGivens ?? {} };
13301
- ae === void 0 ? delete Oe[X] : Oe[X] = ae, Object.keys(Oe).length > 0 ? Ae.startingGivens = Oe : delete Ae.startingGivens;
13299
+ onStartingValue: (X, ae) => E.update((Ie) => {
13300
+ const Oe = { ...Ie.startingGivens ?? {} };
13301
+ ae === void 0 ? delete Oe[X] : Oe[X] = ae, Object.keys(Oe).length > 0 ? Ie.startingGivens = Oe : delete Ie.startingGivens;
13302
13302
  }),
13303
13303
  children: l
13304
13304
  }
@@ -13370,11 +13370,11 @@ function ip({
13370
13370
  reorder: oe,
13371
13371
  edging: Ve,
13372
13372
  place: se,
13373
- gridBox: A,
13373
+ gridBox: I,
13374
13374
  defaultSpan: be,
13375
13375
  rules: O,
13376
13376
  canAdd: !!c,
13377
- selected: I,
13377
+ selected: A,
13378
13378
  flash: F,
13379
13379
  menuIndex: tt?.index,
13380
13380
  onSelect: B,
@@ -13397,7 +13397,7 @@ function ip({
13397
13397
  catalog: c,
13398
13398
  columns: R,
13399
13399
  dashboards: f,
13400
- bindings: Ie,
13400
+ bindings: Ae,
13401
13401
  tiles: ee,
13402
13402
  drillSource: Qe,
13403
13403
  setDrillSource: nt,
@@ -13793,7 +13793,7 @@ function Dx({
13793
13793
  reports: o,
13794
13794
  reportsSettled: i
13795
13795
  }) {
13796
- const { apiClients: s, server: a } = Pa(), { data: l } = Ia({
13796
+ const { apiClients: s, server: a } = Pa(), { data: l } = Aa({
13797
13797
  queryKey: [
13798
13798
  "report-editor-models",
13799
13799
  e,
@@ -13850,7 +13850,7 @@ function Dx({
13850
13850
  );
13851
13851
  }
13852
13852
  const Mx = {};
13853
- function Ix({
13853
+ function Ax({
13854
13854
  textSource: e,
13855
13855
  environmentName: t,
13856
13856
  packageName: n,
@@ -13880,7 +13880,7 @@ function Ix({
13880
13880
  data: S,
13881
13881
  isSuccess: k,
13882
13882
  isError: T
13883
- } = Ia({
13883
+ } = Aa({
13884
13884
  // The reader's read of the same report, so opening the builder from the
13885
13885
  // reader does not read it again.
13886
13886
  ...Zp(
@@ -13895,7 +13895,7 @@ function Ix({
13895
13895
  ),
13896
13896
  // The server does not serve a dashboard with no tiles, so asking would 404.
13897
13897
  enabled: x && !e
13898
- }), E = e?.modelPath ?? r, $ = Px(s.source, e?.compileSource), A = Jp(
13898
+ }), E = e?.modelPath ?? r, $ = Px(s.source, e?.compileSource), I = Jp(
13899
13899
  {
13900
13900
  environmentName: t,
13901
13901
  packageName: n,
@@ -13904,7 +13904,7 @@ function Ix({
13904
13904
  ...e?.givens ? { givens: e.givens } : {}
13905
13905
  },
13906
13906
  { enabled: e !== void 0 && $.text !== void 0 }
13907
- ), I = A.data?.document, P = e ? A.isSuccess ? I?.manifest ?? Mx : void 0 : S, B = e ? A.isSuccess : k, N = e ? A.isError || $.problem !== void 0 : T, Q = e ? eg(I?.cells) : void 0, M = (A.data?.result.problems ?? []).filter(
13907
+ ), A = I.data?.document, P = e ? I.isSuccess ? A?.manifest ?? Mx : void 0 : S, B = e ? I.isSuccess : k, N = e ? I.isError || $.problem !== void 0 : T, Q = e ? eg(A?.cells) : void 0, M = (I.data?.result.problems ?? []).filter(
13908
13908
  (z) => z.severity === "error"
13909
13909
  ), F = V(
13910
13910
  () => new Set(e?.hiddenGivens ?? []),
@@ -13989,7 +13989,7 @@ function Ix({
13989
13989
  ), ge = V(
13990
13990
  () => kx(se, xe, Ee, ee),
13991
13991
  [se, xe, Ee, ee]
13992
- ), Ie = V(() => {
13992
+ ), Ae = V(() => {
13993
13993
  const z = new Set(
13994
13994
  se.tiles.flatMap(
13995
13995
  (ve) => he(ve) ? (ve.filters ?? []).map((dt) => dt.given) : []
@@ -14034,7 +14034,7 @@ function Ix({
14034
14034
  )
14035
14035
  ),
14036
14036
  [C, Be]
14037
- ), W = !x || B || N, K = e !== void 0 && ($.problem !== void 0 || A.isError || M.length > 0), Z = V(
14037
+ ), W = !x || B || N, K = e !== void 0 && ($.problem !== void 0 || I.isError || M.length > 0), Z = V(
14038
14038
  () => new Map(
14039
14039
  s.document.tiles.map((z) => [me(z), z])
14040
14040
  ),
@@ -14076,7 +14076,7 @@ function Ix({
14076
14076
  ] });
14077
14077
  const ve = ee.get(
14078
14078
  Ut(kt(J))
14079
- ), X = Q === void 0 && ve !== void 0 && Ax(Z.get(me(J)), J) ? {
14079
+ ), X = Q === void 0 && ve !== void 0 && Ix(Z.get(me(J)), J) ? {
14080
14080
  expression: kt(J),
14081
14081
  givenNames: [...ve],
14082
14082
  reads: [...ve]
@@ -14111,11 +14111,11 @@ function Ix({
14111
14111
  declaredTypes: Be,
14112
14112
  givenNames: X.givenNames,
14113
14113
  ...(() => {
14114
- const Ae = ig(
14114
+ const Ie = ig(
14115
14115
  nt,
14116
14116
  X.reads ?? X.givenNames
14117
14117
  );
14118
- return Ae.length > 0 ? { waitingFor: sg(Ae) } : {};
14118
+ return Ie.length > 0 ? { waitingFor: sg(Ie) } : {};
14119
14119
  })(),
14120
14120
  ignoredFilters: og(X.reads, ge),
14121
14121
  height: J.rowspan !== void 0 || dn(se.tiles) ? pd(
@@ -14194,10 +14194,10 @@ function Ix({
14194
14194
  " ",
14195
14195
  $.problem
14196
14196
  ] }),
14197
- e && A.isError && /* @__PURE__ */ L(vt, { severity: "error", children: [
14197
+ e && I.isError && /* @__PURE__ */ L(vt, { severity: "error", children: [
14198
14198
  "The server could not compile this document:",
14199
14199
  " ",
14200
- A.error?.message
14200
+ I.error?.message
14201
14201
  ] }),
14202
14202
  /* @__PURE__ */ _(
14203
14203
  ip,
@@ -14207,7 +14207,7 @@ function Ix({
14207
14207
  } : {},
14208
14208
  source: s.source,
14209
14209
  document: s.document,
14210
- fixedFilters: Ie,
14210
+ fixedFilters: Ae,
14211
14211
  ...e?.takenGivenNames ? { takenGivenNames: e.takenGivenNames } : {},
14212
14212
  renderTile: Se,
14213
14213
  renderViewPreview: Et,
@@ -14241,7 +14241,7 @@ function Ix({
14241
14241
  /* @__PURE__ */ _(H, { sx: { px: 0.5 }, children: /* @__PURE__ */ _(we, { variant: "caption", sx: { opacity: 0.7 }, children: y }) })
14242
14242
  ] });
14243
14243
  }
14244
- function Ax(e, t) {
14244
+ function Ix(e, t) {
14245
14245
  return e !== void 0 && JSON.stringify(cd(e)) === JSON.stringify(cd(t));
14246
14246
  }
14247
14247
  function cd(e) {
@@ -14363,21 +14363,21 @@ function Bx({
14363
14363
  }) {
14364
14364
  const g = q({ path: a, layout: l });
14365
14365
  g.current = { path: a, layout: l };
14366
- const w = q((ge, Ie) => {
14366
+ const w = q((ge, Ae) => {
14367
14367
  try {
14368
14368
  v.current?.(
14369
14369
  ug(ge, {
14370
14370
  ...g.current,
14371
- ...Ie ? { layout: Ie } : {}
14371
+ ...Ae ? { layout: Ae } : {}
14372
14372
  })
14373
14373
  );
14374
14374
  } catch {
14375
14375
  }
14376
14376
  }), y = e?.authoritative === !0, p = y && r !== void 0, [m, x] = j(void 0), b = (y || m === !0) && t !== void 0, [S, k] = j(void 0), [T, E] = j(
14377
14377
  d ? Nx : void 0
14378
- ), $ = q(void 0), A = q(void 0), [I, P] = j(void 0), B = q(i);
14378
+ ), $ = q(void 0), I = q(void 0), [A, P] = j(void 0), B = q(i);
14379
14379
  B.current = i;
14380
- const N = I !== void 0 && I.onFetch === i ? I.text : o, Q = q(N);
14380
+ const N = A !== void 0 && A.onFetch === i ? A.text : o, Q = q(N);
14381
14381
  Q.current = N;
14382
14382
  const M = b ? t : N, [F, C] = j(!1), [O, R] = j(void 0), [U, G] = j(void 0), Y = M !== void 0 && M !== U, oe = S?.source, $e = Y && (F || !y && t !== void 0 && oe === t && t !== N) && oe !== void 0 && M !== O, se = $e ? oe : Y ? M : oe ?? M, Re = $e ? M : void 0, be = q(oe);
14383
14383
  be.current = oe;
@@ -14387,7 +14387,7 @@ function Bx({
14387
14387
  Ve.current = b ? y ? "record" : "draft" : "package", re(() => {
14388
14388
  if (se === void 0 || !n || p || se === be.current) return;
14389
14389
  let ge = !1;
14390
- const Ie = Q.current, Be = xe.current;
14390
+ const Ae = Q.current, Be = xe.current;
14391
14391
  return zx(se).then((de) => {
14392
14392
  if (!ge) {
14393
14393
  if (de.ok === !1) {
@@ -14398,10 +14398,10 @@ function Bx({
14398
14398
  });
14399
14399
  return;
14400
14400
  }
14401
- E(void 0), $.current = void 0, A.current = Ie, P(void 0), R(void 0), G(Be), k((Qe) => ({
14401
+ E(void 0), $.current = void 0, I.current = Ae, P(void 0), R(void 0), G(Be), k((Qe) => ({
14402
14402
  source: se,
14403
14403
  document: de.document,
14404
- ...Ie !== void 0 ? { packageText: Ie } : {},
14404
+ ...Ae !== void 0 ? { packageText: Ae } : {},
14405
14405
  generation: (Qe?.generation ?? 0) + 1
14406
14406
  })), w.current(
14407
14407
  {
@@ -14463,7 +14463,7 @@ function Bx({
14463
14463
  setOpened: k,
14464
14464
  openError: T,
14465
14465
  savedHashRef: $,
14466
- packageBaseRef: A,
14466
+ packageBaseRef: I,
14467
14467
  setWrote: P,
14468
14468
  fetchedAtRef: B,
14469
14469
  setDirty: C,
@@ -14532,7 +14532,7 @@ function jx({
14532
14532
  m,
14533
14533
  g
14534
14534
  ]
14535
- ), [A, I] = j(
14535
+ ), [I, A] = j(
14536
14536
  void 0
14537
14537
  ), P = le(
14538
14538
  async (O) => {
@@ -14561,11 +14561,11 @@ function jx({
14561
14561
  // A refused write usually means the file moved: fetching it offers the reader that version instead of re-saving against a base the server keeps rejecting.
14562
14562
  invalidateOnError: [U],
14563
14563
  afterWrite: async (G) => {
14564
- if (w((Y) => Y && { ...Y, source: O }), x({ text: O, onFetch: k.current }), m(O), b.current = G, I(void 0), e && E)
14564
+ if (w((Y) => Y && { ...Y, source: O }), x({ text: O, onFetch: k.current }), m(O), b.current = G, A(void 0), e && E)
14565
14565
  try {
14566
14566
  await e.deleteDocument(E), y(void 0), p(!1);
14567
14567
  } catch (Y) {
14568
- bd(Y) ? (y(void 0), p(!1)) : I(wd(Y));
14568
+ bd(Y) ? (y(void 0), p(!1)) : A(wd(Y));
14569
14569
  }
14570
14570
  g(!1);
14571
14571
  },
@@ -14622,7 +14622,7 @@ function jx({
14622
14622
  writer: F,
14623
14623
  pinnedPackageSave: M,
14624
14624
  takesWrites: N,
14625
- supersedeFailure: A
14625
+ supersedeFailure: I
14626
14626
  };
14627
14627
  }
14628
14628
  function sp(e) {
@@ -14643,11 +14643,11 @@ function sp(e) {
14643
14643
  packageName: w,
14644
14644
  versionId: y,
14645
14645
  namesBoth: p
14646
- } = yg(e), x = ("resourceUri" in e ? e.dashboard : e.dashboardName) ?? bg(u) ?? "", b = "report", { apiClients: S, mutable: k, isLoadingStatus: T, server: E } = Pa(), $ = Yg(), A = q(rn()), I = q(t);
14647
- I.current = t;
14646
+ } = yg(e), x = ("resourceUri" in e ? e.dashboard : e.dashboardName) ?? bg(u) ?? "", b = "report", { apiClients: S, mutable: k, isLoadingStatus: T, server: E } = Pa(), $ = Yg(), I = q(rn()), A = q(t);
14647
+ A.current = t;
14648
14648
  const P = q(r);
14649
14649
  P.current = r;
14650
- const B = wg()?.documentStorage, N = u ?? Eg(l ?? "dashboard", x), Q = /\.malloynb$/i.test(N) || h && /\.malloynb$/i.test(x), M = Ia({
14650
+ const B = wg()?.documentStorage, N = u ?? Eg(l ?? "dashboard", x), Q = /\.malloynb$/i.test(N) || h && /\.malloynb$/i.test(x), M = Aa({
14651
14651
  queryKey: [
14652
14652
  "dashboard-editor-model",
14653
14653
  g,
@@ -14692,7 +14692,7 @@ function sp(e) {
14692
14692
  savedHashRef: tt,
14693
14693
  packageBaseRef: Ee,
14694
14694
  setWrote: ge,
14695
- fetchedAtRef: Ie,
14695
+ fetchedAtRef: Ae,
14696
14696
  setDirty: Be,
14697
14697
  setSeen: de,
14698
14698
  held: Qe,
@@ -14712,8 +14712,8 @@ function sp(e) {
14712
14712
  noun: b,
14713
14713
  legacyFormat: Q,
14714
14714
  textHeld: v,
14715
- startedAt: A,
14716
- onEventRef: I
14715
+ startedAt: I,
14716
+ onEventRef: A
14717
14717
  }), {
14718
14718
  save: W,
14719
14719
  savesTo: K,
@@ -14745,15 +14745,15 @@ function sp(e) {
14745
14745
  setWrote: ge,
14746
14746
  savedHashRef: tt,
14747
14747
  packageBaseRef: Ee,
14748
- fetchedAtRef: Ie
14748
+ fetchedAtRef: Ae
14749
14749
  }), z = C?.name, J = le(
14750
14750
  (ie) => {
14751
- I.current?.(xg(ie, z));
14751
+ A.current?.(xg(ie, z));
14752
14752
  },
14753
14753
  [z]
14754
14754
  ), je = M.isError && !xe, He = q(!1);
14755
14755
  re(() => {
14756
- !je || He.current || (He.current = !0, md({ path: N, layout: f }, I.current).emit({
14756
+ !je || He.current || (He.current = !0, md({ path: N, layout: f }, A.current).emit({
14757
14757
  type: "report.load_failed",
14758
14758
  surface: "edit",
14759
14759
  category: xd(M.error)
@@ -14854,7 +14854,7 @@ function sp(e) {
14854
14854
  ] }),
14855
14855
  !xe && (n ?? /* @__PURE__ */ _(Es, { text: `Opening the ${b}…` })),
14856
14856
  xe && /* @__PURE__ */ _(
14857
- Ix,
14857
+ Ax,
14858
14858
  {
14859
14859
  environmentName: g,
14860
14860
  packageName: w,