react-semaphor 0.1.421 → 0.1.423

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +2 -2
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +2 -2
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +913 -712
  7. package/dist/chunks/{analyze-result-contract-sWcmvBOA.js → analyze-result-contract-D7pjjYPy.js} +45 -46
  8. package/dist/chunks/{analyze-result-contract-B5Eeu7vD.js → analyze-result-contract-DpDcImgk.js} +1 -1
  9. package/dist/chunks/{calendar-preferences-dialog-CscmhyuZ.js → calendar-preferences-dialog-CTmeASaM.js} +1 -1
  10. package/dist/chunks/{calendar-preferences-dialog-cN3_2C-u.js → calendar-preferences-dialog-t5ET6MON.js} +3 -3
  11. package/dist/chunks/card-config-utils-15sRtebL.js +1 -0
  12. package/dist/chunks/card-config-utils-BYZ5MJOh.js +16 -0
  13. package/dist/chunks/dashboard-briefing-launcher-Cavd0QJb.js +3401 -0
  14. package/dist/chunks/dashboard-briefing-launcher-S2akO-ub.js +26 -0
  15. package/dist/chunks/dashboard-controls-BJLrErjW.js +2322 -0
  16. package/dist/chunks/dashboard-controls-DzbP8AXA.js +52 -0
  17. package/dist/chunks/dashboard-json-5tWb5KD6.js +1 -0
  18. package/dist/chunks/{dashboard-json-Cxhw2TZc.js → dashboard-json-Do2-pdPZ.js} +12 -11
  19. package/dist/chunks/{edit-dashboard-visual-BigSJ3-x.js → edit-dashboard-visual-Cw6bq4_w.js} +7058 -6989
  20. package/dist/chunks/edit-dashboard-visual-Yh5YFgMF.js +178 -0
  21. package/dist/chunks/index-BPM3gDRw.js +1406 -0
  22. package/dist/chunks/{index-CH2ZzQo4.js → index-yHe0SeLO.js} +81534 -75430
  23. package/dist/chunks/{switch-TbCsyhv9.js → switch-2bh3Hka1.js} +620 -633
  24. package/dist/chunks/{switch-CiOjVyVI.js → switch-DMT7qf_R.js} +24 -24
  25. package/dist/chunks/{update-policy-2MZ-Vf7v.js → update-policy-BCJc0oI5.js} +1 -1
  26. package/dist/chunks/{update-policy-qpyAkOyO.js → update-policy-C1pmhLz9.js} +1 -1
  27. package/dist/chunks/{use-create-flow-overlay-state-BzcJWNzh.js → use-create-flow-overlay-state-5MDbZcs1.js} +515 -544
  28. package/dist/chunks/use-create-flow-overlay-state-BNczg9Gj.js +11 -0
  29. package/dist/chunks/{validators-Dj1Y-46V.js → validators-DMlVbd1p.js} +1 -1
  30. package/dist/chunks/{validators-D0pfj3jJ.js → validators-PXkij33j.js} +1 -1
  31. package/dist/dashboard/index.cjs +1 -1
  32. package/dist/dashboard/index.js +1 -1
  33. package/dist/dashboard-authoring/index.cjs +1 -1
  34. package/dist/dashboard-authoring/index.js +2 -2
  35. package/dist/data-app-builder/index.cjs +1 -1
  36. package/dist/data-app-builder/index.js +108 -108
  37. package/dist/data-app-codegen/index.cjs +1 -1
  38. package/dist/data-app-codegen/index.js +2 -2
  39. package/dist/data-app-codegen-node/index.cjs +165 -340
  40. package/dist/data-app-codegen-node/index.js +761 -952
  41. package/dist/data-app-sdk/index.cjs +2 -2
  42. package/dist/data-app-sdk/index.js +91 -95
  43. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  44. package/dist/data-app-sdk-adapters/index.js +1 -1
  45. package/dist/data-app-sdk-validation/index.cjs +1 -1
  46. package/dist/data-app-sdk-validation/index.js +2 -2
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.js +168 -164
  49. package/dist/style.css +1 -1
  50. package/dist/surfboard/index.cjs +1 -1
  51. package/dist/surfboard/index.js +2 -2
  52. package/dist/types/analytics-protocol.d.ts +0 -4
  53. package/dist/types/briefings.d.ts +2388 -7
  54. package/dist/types/dashboard-assistant.d.ts +0 -1
  55. package/dist/types/data-app-sdk-validation.d.ts +0 -1
  56. package/dist/types/data-app-sdk.d.ts +0 -2
  57. package/dist/types/main.d.ts +70 -10
  58. package/dist/types/types.d.ts +4 -8
  59. package/package.json +1 -1
  60. package/dist/chunks/dashboard-briefing-launcher-BYTBNetR.js +0 -9077
  61. package/dist/chunks/dashboard-briefing-launcher-DmZkzIC3.js +0 -80
  62. package/dist/chunks/dashboard-controls-9DFeKIP4.js +0 -52
  63. package/dist/chunks/dashboard-controls-PhzuaTBj.js +0 -2280
  64. package/dist/chunks/dashboard-json-DyRHI3mL.js +0 -1
  65. package/dist/chunks/edit-dashboard-visual-3_jiBXsu.js +0 -178
  66. package/dist/chunks/index-BKDQw0aK.js +0 -1346
  67. package/dist/chunks/use-create-flow-overlay-state-DUQmgb9H.js +0 -21
@@ -1,17 +1,18 @@
1
- import { j as di, c as Be, C as Bs } from "./x-CXDkqdur.js";
1
+ import { j as di, c as Be, C as Vs } from "./x-CXDkqdur.js";
2
2
  import { jsx as x, jsxs as be, Fragment as Dr } from "react/jsx-runtime";
3
3
  import * as f from "react";
4
4
  import Ce, { createContext as Qu, useContext as Ju, useLayoutEffect as ef, useState as tf, useMemo as rf, useId as nf } from "react";
5
- import "./analyze-result-contract-sWcmvBOA.js";
5
+ import "./analyze-result-contract-D7pjjYPy.js";
6
6
  import * as An from "react-dom";
7
7
  import of from "react-dom";
8
- import { S as af, b as ua, c as $s, d as sf, e as lf, r as cf } from "./index-CJdxSyQq.js";
8
+ import { S as af, b as da, c as Bs, d as sf, e as lf, r as cf } from "./index-CJdxSyQq.js";
9
9
  import "react-dom/client";
10
10
  import { b as ui } from "./catalog-field-grounding-CJKAqtiC.js";
11
11
  import { createFrameLayouts as df } from "../layouts/index.js";
12
- import { t as fi, c as fn, i as uf, j as ff, f as Us, h as Cr, k as pf } from "./index-CjzRe2su.js";
13
- import { a as fa, C as js } from "./common-types-4bjoIgvm.js";
14
- const pa = (e) => {
12
+ import { t as fi, c as fn, i as uf, j as ff, f as $s, h as Cr, k as pf } from "./index-CjzRe2su.js";
13
+ import { h as Us } from "./card-config-utils-BYZ5MJOh.js";
14
+ import { a as ua, C as js } from "./common-types-4bjoIgvm.js";
15
+ const fa = (e) => {
15
16
  let r;
16
17
  const t = /* @__PURE__ */ new Set(), n = (c, d) => {
17
18
  const u = typeof c == "function" ? c(r) : c;
@@ -21,7 +22,7 @@ const pa = (e) => {
21
22
  }
22
23
  }, o = () => r, s = { setState: n, getState: o, getInitialState: () => l, subscribe: (c) => (t.add(c), () => t.delete(c)) }, l = r = e(n, o, s);
23
24
  return s;
24
- }, mf = (e) => e ? pa(e) : pa, hf = (e) => e;
25
+ }, mf = (e) => e ? fa(e) : fa, hf = (e) => e;
25
26
  function gf(e, r = hf) {
26
27
  const t = Ce.useSyncExternalStore(
27
28
  e.subscribe,
@@ -30,11 +31,11 @@ function gf(e, r = hf) {
30
31
  );
31
32
  return Ce.useDebugValue(t), t;
32
33
  }
33
- const ma = (e) => {
34
+ const pa = (e) => {
34
35
  const r = mf(e), t = (n) => gf(r, n);
35
36
  return Object.assign(t, r), t;
36
- }, Yt = (e) => e ? ma(e) : ma;
37
- var zs = Symbol.for("immer-nothing"), ha = Symbol.for("immer-draftable"), Q = Symbol.for("immer-state"), yf = process.env.NODE_ENV !== "production" ? [
37
+ }, Yt = (e) => e ? pa(e) : pa;
38
+ var zs = Symbol.for("immer-nothing"), ma = Symbol.for("immer-draftable"), Q = Symbol.for("immer-state"), yf = process.env.NODE_ENV !== "production" ? [
38
39
  // All error codes, starting by 0:
39
40
  function(e) {
40
41
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -80,9 +81,9 @@ function jt(e) {
80
81
  }
81
82
  function We(e) {
82
83
  var r;
83
- return e ? Hs(e) || Array.isArray(e) || !!e[ha] || !!((r = e.constructor) != null && r[ha]) || Pr(e) || Rn(e) : !1;
84
+ return e ? Hs(e) || Array.isArray(e) || !!e[ma] || !!((r = e.constructor) != null && r[ma]) || Pr(e) || Rn(e) : !1;
84
85
  }
85
- var bf = Object.prototype.constructor.toString(), ga = /* @__PURE__ */ new WeakMap();
86
+ var bf = Object.prototype.constructor.toString(), ha = /* @__PURE__ */ new WeakMap();
86
87
  function Hs(e) {
87
88
  if (!e || typeof e != "object")
88
89
  return !1;
@@ -94,8 +95,8 @@ function Hs(e) {
94
95
  return !0;
95
96
  if (typeof t != "function")
96
97
  return !1;
97
- let n = ga.get(t);
98
- return n === void 0 && (n = Function.toString.call(t), ga.set(t, n)), n === bf;
98
+ let n = ha.get(t);
99
+ return n === void 0 && (n = Function.toString.call(t), ha.set(t, n)), n === bf;
99
100
  }
100
101
  function wr(e, r, t = !0) {
101
102
  Fn(e) === 0 ? (t ? Reflect.ownKeys(e) : Object.keys(e)).forEach((o) => {
@@ -196,7 +197,7 @@ function wf(e, r) {
196
197
  unfinalizedDrafts_: 0
197
198
  };
198
199
  }
199
- function ya(e, r) {
200
+ function ga(e, r) {
200
201
  r && (vt("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = r);
201
202
  }
202
203
  function Lo(e) {
@@ -205,14 +206,14 @@ function Lo(e) {
205
206
  function Vo(e) {
206
207
  e === xr && (xr = e.parent_);
207
208
  }
208
- function ba(e) {
209
+ function ya(e) {
209
210
  return xr = wf(xr, e);
210
211
  }
211
212
  function xf(e) {
212
213
  const r = e[Q];
213
214
  r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
214
215
  }
215
- function va(e, r) {
216
+ function ba(e, r) {
216
217
  r.unfinalizedDrafts_ = r.drafts_.length;
217
218
  const t = r.drafts_[0];
218
219
  return e !== void 0 && e !== t ? (t[Q].modified_ && (Lo(r), he(4)), We(e) && (e = mn(r, e), r.parent_ || hn(r, e)), r.patches_ && vt("Patches").generateReplacementPatches_(
@@ -229,7 +230,7 @@ function mn(e, r, t) {
229
230
  if (!o)
230
231
  return wr(
231
232
  r,
232
- (i, a) => Ca(e, o, r, i, a, t),
233
+ (i, a) => va(e, o, r, i, a, t),
233
234
  n
234
235
  ), r;
235
236
  if (o.scope_ !== e)
@@ -242,7 +243,7 @@ function mn(e, r, t) {
242
243
  let a = i, s = !1;
243
244
  o.type_ === 3 && (a = new Set(i), i.clear(), s = !0), wr(
244
245
  a,
245
- (l, c) => Ca(
246
+ (l, c) => va(
246
247
  e,
247
248
  o,
248
249
  i,
@@ -261,7 +262,7 @@ function mn(e, r, t) {
261
262
  }
262
263
  return o.copy_;
263
264
  }
264
- function Ca(e, r, t, n, o, i, a) {
265
+ function va(e, r, t, n, o, i, a) {
265
266
  if (o == null || typeof o != "object" && !a)
266
267
  return;
267
268
  const s = Dn(o);
@@ -427,14 +428,14 @@ var Tf = class {
427
428
  typeof t != "function" && he(6), n !== void 0 && typeof n != "function" && he(7);
428
429
  let o;
429
430
  if (We(r)) {
430
- const i = ba(this), a = Er(r, void 0);
431
+ const i = ya(this), a = Er(r, void 0);
431
432
  let s = !0;
432
433
  try {
433
434
  o = t(a), s = !1;
434
435
  } finally {
435
436
  s ? Lo(i) : Vo(i);
436
437
  }
437
- return ya(i, n), va(o, i);
438
+ return ga(i, n), ba(o, i);
438
439
  } else if (!r || typeof r != "object") {
439
440
  if (o = t(r), o === void 0 && (o = r), o === zs && (o = void 0), this.autoFreeze_ && pi(o, !0), n) {
440
441
  const i = [], a = [];
@@ -454,14 +455,14 @@ var Tf = class {
454
455
  }
455
456
  createDraft(e) {
456
457
  We(e) || he(8), jt(e) && (e = Af(e));
457
- const r = ba(this), t = Er(e, void 0);
458
+ const r = ya(this), t = Er(e, void 0);
458
459
  return t[Q].isManual_ = !0, Vo(r), t;
459
460
  }
460
461
  finishDraft(e, r) {
461
462
  const t = e && e[Q];
462
463
  (!t || !t.isManual_) && he(9);
463
464
  const { scope_: n } = t;
464
- return ya(n, r), va(void 0, n);
465
+ return ga(n, r), ba(void 0, n);
465
466
  }
466
467
  /**
467
468
  * Pass true to automatically freeze all copies created by Immer.
@@ -534,7 +535,7 @@ function Gs(e) {
534
535
  n
535
536
  ), r && (r.finalized_ = !1), t;
536
537
  }
537
- function nw() {
538
+ function ow() {
538
539
  class e extends Map {
539
540
  constructor(l, c) {
540
541
  super(), this[Q] = {
@@ -717,7 +718,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
717
718
  function gi(e) {
718
719
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
719
720
  }
720
- function ow(e) {
721
+ function iw(e) {
721
722
  if (e.__esModule) return e;
722
723
  var r = e.default;
723
724
  if (typeof r == "function") {
@@ -762,7 +763,7 @@ var Pf = function e(r, t) {
762
763
  }
763
764
  return r !== r && t !== t;
764
765
  };
765
- const Sa = /* @__PURE__ */ gi(Pf), gt = /* @__PURE__ */ new Map();
766
+ const Ca = /* @__PURE__ */ gi(Pf), gt = /* @__PURE__ */ new Map();
766
767
  function _f(e, r) {
767
768
  return gt.has(e) || gt.set(e, /* @__PURE__ */ new Set()), gt.get(e).add(r), () => {
768
769
  var t;
@@ -786,7 +787,7 @@ const at = {
786
787
  subscribe: _f,
787
788
  emit: yi,
788
789
  clear: Of
789
- }, iw = () => yi("dashboard:load"), aw = () => yi("dashboard:unload"), wa = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Tr = /* @__PURE__ */ new Map(), Ur = (e) => {
790
+ }, aw = () => yi("dashboard:load"), sw = () => yi("dashboard:unload"), Sa = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Tr = /* @__PURE__ */ new Map(), Ur = (e) => {
790
791
  const r = Tr.get(e);
791
792
  return r ? Object.fromEntries(
792
793
  Object.entries(r.stores).map(([t, n]) => [t, n.getState()])
@@ -823,7 +824,7 @@ const at = {
823
824
  const { enabled: i, anonymousActionType: a, store: s, ...l } = r;
824
825
  let c;
825
826
  try {
826
- c = (i ?? (wa ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
827
+ c = (i ?? (Sa ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
827
828
  } catch {
828
829
  }
829
830
  if (!c)
@@ -866,7 +867,7 @@ const at = {
866
867
  let m = !1;
867
868
  const b = o.dispatch;
868
869
  o.dispatch = (...S) => {
869
- (wa ? "production" : void 0) !== "production" && S[0].type === "__setState" && !m && (console.warn(
870
+ (Sa ? "production" : void 0) !== "production" && S[0].type === "__setState" && !m && (console.warn(
870
871
  '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
871
872
  ), m = !0), b(...S);
872
873
  };
@@ -1094,10 +1095,10 @@ const Bo = (e) => (r) => {
1094
1095
  l.delete(m);
1095
1096
  })
1096
1097
  }, i.skipHydration || v(), h || p;
1097
- }, sw = Bf, xa = (e) => Symbol.iterator in e, Ia = (e) => (
1098
+ }, lw = Bf, wa = (e) => Symbol.iterator in e, xa = (e) => (
1098
1099
  // HACK: avoid checking entries type
1099
1100
  "entries" in e
1100
- ), Ea = (e, r) => {
1101
+ ), Ia = (e, r) => {
1101
1102
  const t = e instanceof Map ? e : new Map(e.entries()), n = r instanceof Map ? r : new Map(r.entries());
1102
1103
  if (t.size !== n.size)
1103
1104
  return !1;
@@ -1116,7 +1117,7 @@ const Bo = (e) => (r) => {
1116
1117
  return !!o.done && !!i.done;
1117
1118
  };
1118
1119
  function Uf(e, r) {
1119
- return Object.is(e, r) ? !0 : typeof e != "object" || e === null || typeof r != "object" || r === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(r) ? !1 : xa(e) && xa(r) ? Ia(e) && Ia(r) ? Ea(e, r) : $f(e, r) : Ea(
1120
+ return Object.is(e, r) ? !0 : typeof e != "object" || e === null || typeof r != "object" || r === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(r) ? !1 : wa(e) && wa(r) ? xa(e) && xa(r) ? Ia(e, r) : $f(e, r) : Ia(
1120
1121
  { entries: () => Object.entries(e) },
1121
1122
  { entries: () => Object.entries(r) }
1122
1123
  );
@@ -1141,12 +1142,12 @@ for (let e = 0; e < 256; ++e)
1141
1142
  function Hf(e, r = 0) {
1142
1143
  return fe[e[r + 0]] + fe[e[r + 1]] + fe[e[r + 2]] + fe[e[r + 3]] + "-" + fe[e[r + 4]] + fe[e[r + 5]] + "-" + fe[e[r + 6]] + fe[e[r + 7]] + "-" + fe[e[r + 8]] + fe[e[r + 9]] + "-" + fe[e[r + 10]] + fe[e[r + 11]] + fe[e[r + 12]] + fe[e[r + 13]] + fe[e[r + 14]] + fe[e[r + 15]];
1143
1144
  }
1144
- const qf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ta = {
1145
+ const qf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ea = {
1145
1146
  randomUUID: qf
1146
1147
  };
1147
1148
  function rt(e, r, t) {
1148
- if (Ta.randomUUID && !e)
1149
- return Ta.randomUUID();
1149
+ if (Ea.randomUUID && !e)
1150
+ return Ea.randomUUID();
1150
1151
  e = e || {};
1151
1152
  const n = e.random || (e.rng || zf)();
1152
1153
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Hf(n);
@@ -1352,7 +1353,7 @@ const Xs = [
1352
1353
  "minute",
1353
1354
  "second"
1354
1355
  ];
1355
- function lw(e) {
1356
+ function cw(e) {
1356
1357
  const t = (tp(e) ? Xf : Xs).map(
1357
1358
  (n) => ({
1358
1359
  field: {
@@ -1361,12 +1362,12 @@ function lw(e) {
1361
1362
  granularity: n,
1362
1363
  // Show only granularity level, not the full field name
1363
1364
  // The hierarchy title already shows the field name
1364
- label: Aa(n),
1365
+ label: Ta(n),
1365
1366
  // Use appropriate date format for each granularity
1366
1367
  dateFormat: Jf(n)
1367
1368
  },
1368
1369
  mode: "drillDown",
1369
- label: `Drill to ${Aa(n)}`,
1370
+ label: `Drill to ${Ta(n)}`,
1370
1371
  retainFilters: !0
1371
1372
  })
1372
1373
  );
@@ -1381,7 +1382,7 @@ function lw(e) {
1381
1382
  // Store reference to original field for matching
1382
1383
  };
1383
1384
  }
1384
- function cw(e, r = []) {
1385
+ function dw(e, r = []) {
1385
1386
  return Qf(e) ? !Zf(
1386
1387
  e.id,
1387
1388
  r
@@ -1435,7 +1436,7 @@ function Qs(e, r, t) {
1435
1436
  const o = (a = (i = r.config) == null ? void 0 : i.groupByColumns) == null ? void 0 : a.find((s) => s.id === n.id ? !0 : s.qualifiedFieldName && n.qualifiedFieldName ? s.qualifiedFieldName === n.qualifiedFieldName : s.name && n.name ? s.name === n.name : !1);
1436
1437
  return o == null ? void 0 : o.granularity;
1437
1438
  }
1438
- function Aa(e) {
1439
+ function Ta(e) {
1439
1440
  return e && e.charAt(0).toUpperCase() + e.slice(1);
1440
1441
  }
1441
1442
  function ep(e) {
@@ -1474,7 +1475,7 @@ function rp(e, r) {
1474
1475
  }
1475
1476
  return console.warn(`Cannot resolve parameter: ${e.id}`), "";
1476
1477
  }
1477
- function dw(e) {
1478
+ function uw(e) {
1478
1479
  const r = [];
1479
1480
  if (!e || e.trim() === "")
1480
1481
  return r.push("URL template cannot be empty"), { valid: !1, errors: r };
@@ -1518,7 +1519,7 @@ function vi(e) {
1518
1519
  return !1;
1519
1520
  }
1520
1521
  }
1521
- function uw(e) {
1522
+ function fw(e) {
1522
1523
  return e.filter(
1523
1524
  (r) => vi(r)
1524
1525
  );
@@ -1689,7 +1690,7 @@ function op(e, r, t, n, o, i, a) {
1689
1690
  appliedClickFilters: [p]
1690
1691
  }), !0;
1691
1692
  }
1692
- function fw(e, r, t, n) {
1693
+ function pw(e, r, t, n) {
1693
1694
  const o = Ee(), i = Ks();
1694
1695
  return {
1695
1696
  handlePointerInteraction: ({
@@ -1905,7 +1906,7 @@ const ip = [
1905
1906
  "matrixTable",
1906
1907
  "detailTable"
1907
1908
  ], ap = new Set(ip);
1908
- function pw(e) {
1909
+ function mw(e) {
1909
1910
  return typeof e == "string" && ap.has(e);
1910
1911
  }
1911
1912
  const sp = [
@@ -1916,7 +1917,7 @@ const sp = [
1916
1917
  ], lp = new Set(
1917
1918
  sp
1918
1919
  );
1919
- function mw(e) {
1920
+ function hw(e) {
1920
1921
  return typeof e == "string" && lp.has(e);
1921
1922
  }
1922
1923
  const cp = [
@@ -2199,7 +2200,7 @@ function tl(e, r) {
2199
2200
  return n.sourceCardId === e && !n.filterSourceCard ? !1 : (o = n.applyToCardIds) != null && o.length ? n.applyToCardIds.includes(e) : (i = n.excludeCardIds) != null && i.length ? !n.excludeCardIds.includes(e) : !0;
2200
2201
  });
2201
2202
  }
2202
- const hw = (e) => Ee(
2203
+ const gw = (e) => Ee(
2203
2204
  bi(
2204
2205
  (r) => tl(e, r.interactionStates)
2205
2206
  )
@@ -2253,7 +2254,7 @@ function fp(e, r, t) {
2253
2254
  };
2254
2255
  return dp(l, e.type);
2255
2256
  }
2256
- function gw(e) {
2257
+ function yw(e) {
2257
2258
  const r = Ee((o) => o.interactionStates), t = Ke((o) => {
2258
2259
  var i;
2259
2260
  return (i = o.dashboard) == null ? void 0 : i.id;
@@ -2272,7 +2273,7 @@ function pp(e, r, t) {
2272
2273
  const n = t ?? Pn(e, r);
2273
2274
  return Yf(n);
2274
2275
  }
2275
- function yw(e) {
2276
+ function bw(e) {
2276
2277
  const r = Ee((i) => i.interactionStates), t = Ke((i) => {
2277
2278
  var a;
2278
2279
  return (a = i.dashboard) == null ? void 0 : a.id;
@@ -2712,11 +2713,11 @@ function bp(e) {
2712
2713
  const r = e.dataset.semaphorTheme;
2713
2714
  return r === "dark" || r === "light" ? r : e.classList.contains("dark") ? "dark" : "light";
2714
2715
  }
2715
- const bw = !1, vp = [
2716
+ const vw = !1, vp = [
2716
2717
  "table",
2717
2718
  "view",
2718
2719
  "materialized view"
2719
- ], vw = ["_forecast"], gn = "dm", Cw = "semaphor_calculated_fields", Sw = "calculated_fields", ww = [
2720
+ ], Cw = ["_forecast"], gn = "dm", Sw = "semaphor_calculated_fields", ww = "calculated_fields", xw = [
2720
2721
  { locale: "en-US", currency: "USD", currencyName: "US Dollar" },
2721
2722
  // United States
2722
2723
  { locale: "en-GB", currency: "GBP", currencyName: "British Pound" },
@@ -2787,7 +2788,7 @@ const bw = !1, vp = [
2787
2788
  // Egypt
2788
2789
  { locale: "nz-NZ", currency: "NZD", currencyName: "New Zealand Dollar" }
2789
2790
  // New Zealand
2790
- ], Si = ["lg", "md", "sm", "xs", "xxs"], Fa = {
2791
+ ], Si = ["lg", "md", "sm", "xs", "xxs"], Aa = {
2791
2792
  // dashboardHeader: ' font-mono border-b-2 border-red-700',
2792
2793
  default: {
2793
2794
  dashboardPanel: "",
@@ -2848,7 +2849,7 @@ const bw = !1, vp = [
2848
2849
  plugins: {
2849
2850
  datalabels: {
2850
2851
  display: !1,
2851
- color: Ra
2852
+ color: Fa
2852
2853
  },
2853
2854
  title: {
2854
2855
  display: !0
@@ -2940,7 +2941,7 @@ const bw = !1, vp = [
2940
2941
  // colors.green[500],
2941
2942
  // ],
2942
2943
  datalables: {
2943
- color: Ra
2944
+ color: Fa
2944
2945
  },
2945
2946
  backgroundColor: [
2946
2947
  // colors.teal[900],
@@ -3022,7 +3023,7 @@ const bw = !1, vp = [
3022
3023
  }
3023
3024
  }
3024
3025
  };
3025
- function Ra(e) {
3026
+ function Fa(e) {
3026
3027
  var n, o, i, a, s, l, c, d, u;
3027
3028
  const r = (s = (a = (i = (o = (n = e == null ? void 0 : e.chart) == null ? void 0 : n.config) == null ? void 0 : o._config) == null ? void 0 : i.options) == null ? void 0 : a.plugins) == null ? void 0 : s.datalabels;
3028
3029
  let t = (l = e == null ? void 0 : e.dataset) == null ? void 0 : l.backgroundColor;
@@ -3047,9 +3048,9 @@ function ao(e) {
3047
3048
  }
3048
3049
  function Cp(e, r = {}) {
3049
3050
  let t = 0, n = 0, o = 0, i = 0;
3050
- const a = r.baseColor ? ua(r.baseColor) : null, s = (p) => {
3051
+ const a = r.baseColor ? da(r.baseColor) : null, s = (p) => {
3051
3052
  if (!p) return oe.gray[500];
3052
- const h = ua(p);
3053
+ const h = da(p);
3053
3054
  if (!h) return oe.gray[500];
3054
3055
  const v = il(h, a);
3055
3056
  t += v.r, n += v.g, o += v.b, i++;
@@ -3101,7 +3102,7 @@ function sl(e) {
3101
3102
  function ll(e) {
3102
3103
  return Ve(e) === "boolean";
3103
3104
  }
3104
- function xw(e, r, t, n, o, i, a) {
3105
+ function Iw(e, r, t, n, o, i, a) {
3105
3106
  const { measures: s, dimensions: l } = e, c = s == null ? void 0 : s.map(
3106
3107
  (v) => `${v.calc}(${v.name}) as ${v.calc}_${v.name.replace(/"/g, "")}`
3107
3108
  ).join(", "), d = (l == null ? void 0 : l.join(", ")) || "";
@@ -3119,7 +3120,7 @@ function xw(e, r, t, n, o, i, a) {
3119
3120
  if (c && !d)
3120
3121
  return u = `SELECT ${c} FROM ${h} LIMIT 100`, u;
3121
3122
  }
3122
- function Iw(e, r, t = "AVG") {
3123
+ function Ew(e, r, t = "AVG") {
3123
3124
  var i, a, s, l;
3124
3125
  let n = {};
3125
3126
  const o = al(e.column_name);
@@ -3149,15 +3150,15 @@ function Iw(e, r, t = "AVG") {
3149
3150
  ]
3150
3151
  }), n;
3151
3152
  }
3152
- function Ew(e) {
3153
+ function Tw(e) {
3153
3154
  return wi(e.dataType) ? "string" : xi(e.dataType) ? "number" : sl(e.dataType) ? "date" : ll(e.dataType) ? "boolean" : "string";
3154
3155
  }
3155
- function Tw(e) {
3156
+ function Aw(e) {
3156
3157
  let r;
3157
3158
  const t = e.data_type.toLowerCase();
3158
3159
  return wi(t) ? r = "T" : xi(t) ? r = "#" : sl(t) ? r = "D" : ll(t) ? r = "B" : r = "?", r;
3159
3160
  }
3160
- function Aw(e, r) {
3161
+ function Fw(e, r) {
3161
3162
  const { dimensions: t, measures: n } = r, o = t == null ? void 0 : t.includes(e.column_name), i = n == null ? void 0 : n.some((a) => a.name === e.column_name);
3162
3163
  return o || i;
3163
3164
  }
@@ -3172,7 +3173,7 @@ function Ip({
3172
3173
  }) {
3173
3174
  return n === "S3" || n === "API" ? r : n === "S3Tables" ? `${t}.${e}.${r}` : e ? `${e}.${r}` : r;
3174
3175
  }
3175
- function Fw({
3176
+ function Rw({
3176
3177
  schemaName: e,
3177
3178
  tableName: r,
3178
3179
  modelName: t,
@@ -3331,7 +3332,7 @@ function Np(e, r) {
3331
3332
  function kp(e, r) {
3332
3333
  return e.x < r.x + r.w && e.x + e.w > r.x && e.y < r.y + r.h && e.y + e.h > r.y;
3333
3334
  }
3334
- function Da(e, r) {
3335
+ function Ra(e, r) {
3335
3336
  return !r.some(
3336
3337
  (t) => kp(e, t)
3337
3338
  );
@@ -3340,7 +3341,7 @@ function Lp(e, r, t) {
3340
3341
  const n = e.x + e.w;
3341
3342
  if (n + e.w <= t) {
3342
3343
  const l = { ...e, x: n, y: e.y };
3343
- if (Da(l, r))
3344
+ if (Ra(l, r))
3344
3345
  return { x: n, y: e.y };
3345
3346
  }
3346
3347
  const o = Math.max(t - e.w, 0), i = e.y + e.h, a = r.map((l) => l.y + l.h).filter((l) => l > i).sort((l, c) => l - c), s = [i, ...a];
@@ -3351,7 +3352,7 @@ function Lp(e, r, t) {
3351
3352
  x: c,
3352
3353
  y: l
3353
3354
  };
3354
- if (Da(d, r))
3355
+ if (Ra(d, r))
3355
3356
  return {
3356
3357
  x: c,
3357
3358
  y: l
@@ -3385,7 +3386,7 @@ function Vp(e, r, t) {
3385
3386
  }
3386
3387
  }
3387
3388
  }
3388
- function Pa({
3389
+ function Da({
3389
3390
  id: e,
3390
3391
  layouts: r,
3391
3392
  initialHeight: t,
@@ -3406,7 +3407,7 @@ function Pa({
3406
3407
  minH: a ?? l.minH
3407
3408
  });
3408
3409
  }
3409
- function _a(e, r) {
3410
+ function Pa(e, r) {
3410
3411
  if (!r)
3411
3412
  return;
3412
3413
  const t = { ...r };
@@ -3456,7 +3457,7 @@ function Bp({
3456
3457
  }), o[i] = s;
3457
3458
  }), o;
3458
3459
  }
3459
- function Rw(e) {
3460
+ function Dw(e) {
3460
3461
  const r = Ke.getState().dashboard.globalCacheConfig, { card: t, filter: n } = e;
3461
3462
  return r;
3462
3463
  }
@@ -3475,7 +3476,7 @@ function ul(e) {
3475
3476
  function fl(e) {
3476
3477
  return ul(e).map((r) => r.card);
3477
3478
  }
3478
- function Oa(e, r, t) {
3479
+ function _a(e, r, t) {
3479
3480
  if (t && r === t)
3480
3481
  return !0;
3481
3482
  const n = e.sheets || [];
@@ -3506,7 +3507,7 @@ function Up(e) {
3506
3507
  error: "Card ID can only contain letters, numbers, hyphens, and underscores"
3507
3508
  };
3508
3509
  }
3509
- function Dw(e, r) {
3510
+ function Pw(e, r) {
3510
3511
  var t;
3511
3512
  return (t = jp(e, r)) == null ? void 0 : t.card;
3512
3513
  }
@@ -3515,7 +3516,7 @@ function jp(e, r) {
3515
3516
  if (t.card.id === r)
3516
3517
  return t;
3517
3518
  }
3518
- function Pw(e, r) {
3519
+ function _w(e, r) {
3519
3520
  for (const t of e.sheets || [])
3520
3521
  for (const n of t.frames || [])
3521
3522
  for (const o of n.cards || [])
@@ -3583,7 +3584,7 @@ function em(e, r) {
3583
3584
  return Gp(e, -r);
3584
3585
  }
3585
3586
  const ut = (e, r) => e.toString().padStart(r, "0"), Tt = (e, r) => {
3586
- const t = Us(e, r, "yyyy-MM-dd"), [n, o, i] = t.split("-").map((a) => Number(a));
3587
+ const t = $s(e, r, "yyyy-MM-dd"), [n, o, i] = t.split("-").map((a) => Number(a));
3587
3588
  return {
3588
3589
  year: n,
3589
3590
  month: o,
@@ -3650,7 +3651,7 @@ const ut = (e, r) => e.toString().padStart(r, "0"), Tt = (e, r) => {
3650
3651
  const n = Tt(e, r), o = At(t(n), r);
3651
3652
  return mt(o, r);
3652
3653
  }, gr = (e, r, t = 1) => {
3653
- const n = typeof t == "object" ? t.weekStart : t, i = (Number(Us(e, r, "i")) - n + 7) % 7, a = Tt(e, r), s = i === 0 ? a : On(a, -i);
3654
+ const n = typeof t == "object" ? t.weekStart : t, i = (Number($s(e, r, "i")) - n + 7) % 7, a = Tt(e, r), s = i === 0 ? a : On(a, -i);
3654
3655
  return At(s, r);
3655
3656
  }, Hr = (e, r, t = 1) => {
3656
3657
  const n = typeof t == "object" ? t.weekStart : t, o = gr(e, r, n), i = Tt(o, r), a = On(i, 6), s = At(a, r);
@@ -3705,7 +3706,7 @@ const ut = (e, r) => e.toString().padStart(r, "0"), Tt = (e, r) => {
3705
3706
  break;
3706
3707
  }
3707
3708
  return At(i, r);
3708
- }, sr = (e, r, t) => _r(e, r, "day", t), lr = (e, r, t) => _r(e, r, "week", t), cr = (e, r, t) => _r(e, r, "month", t), dr = (e, r, t) => _r(e, r, "quarter", t), ur = (e, r, t) => _r(e, r, "year", t), _w = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, om = /* @__PURE__ */ new Set(["last", "this", "previous", "between"]), Ma = (e) => `${e}`.padStart(2, "0"), Ai = (e) => {
3709
+ }, sr = (e, r, t) => _r(e, r, "day", t), lr = (e, r, t) => _r(e, r, "week", t), cr = (e, r, t) => _r(e, r, "month", t), dr = (e, r, t) => _r(e, r, "quarter", t), ur = (e, r, t) => _r(e, r, "year", t), Ow = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, om = /* @__PURE__ */ new Set(["last", "this", "previous", "between"]), Oa = (e) => `${e}`.padStart(2, "0"), Ai = (e) => {
3709
3710
  if (!e || typeof e != "object") return !1;
3710
3711
  const r = e.mode;
3711
3712
  return typeof r == "string" && om.has(r);
@@ -3719,7 +3720,7 @@ function yl(e, r, t = 1) {
3719
3720
  return am(e, r, t);
3720
3721
  if (!im(e))
3721
3722
  return;
3722
- const n = `${e.year}-${Ma(e.month + 1)}-01T00:00:00`, o = e.month === 11 ? e.year + 1 : e.year, i = (e.month + 1) % 12, a = `${o}-${Ma(i + 1)}-01T00:00:00`, s = Cr(n, r), l = Cr(a, r), c = new Date(l.getTime() - 1);
3723
+ const n = `${e.year}-${Oa(e.month + 1)}-01T00:00:00`, o = e.month === 11 ? e.year + 1 : e.year, i = (e.month + 1) % 12, a = `${o}-${Oa(i + 1)}-01T00:00:00`, s = Cr(n, r), l = Cr(a, r), c = new Date(l.getTime() - 1);
3723
3724
  return [s, c];
3724
3725
  }
3725
3726
  function am(e, r, t = 1) {
@@ -3947,7 +3948,7 @@ function am(e, r, t = 1) {
3947
3948
  }
3948
3949
  return [Mt(n, r), mt(n, r)];
3949
3950
  }
3950
- function Ow(e) {
3951
+ function Mw(e) {
3951
3952
  if (!e) return null;
3952
3953
  for (const [o, i] of Object.entries(lm))
3953
3954
  if (sm(i, e))
@@ -4138,7 +4139,7 @@ function Fi(e, r) {
4138
4139
  semanticContext: e.semanticContext
4139
4140
  };
4140
4141
  }
4141
- function Mw(e, r) {
4142
+ function Nw(e, r) {
4142
4143
  return e != null && e.length ? e.map((t) => Fi(t, r)).filter((t) => !!t) : [];
4143
4144
  }
4144
4145
  function vl(e, r) {
@@ -4185,7 +4186,7 @@ function vm(e) {
4185
4186
  );
4186
4187
  return [...a, ...s];
4187
4188
  }
4188
- function Nw(e) {
4189
+ function kw(e) {
4189
4190
  const {
4190
4191
  previousFilters: r,
4191
4192
  nextFilters: t,
@@ -4303,7 +4304,7 @@ function so(e, r, t) {
4303
4304
  cardControlValuesMap: i
4304
4305
  };
4305
4306
  }
4306
- function kw(e) {
4307
+ function Lw(e) {
4307
4308
  var t, n;
4308
4309
  const r = {};
4309
4310
  for (const o of e.relevantControlIds) {
@@ -4473,7 +4474,7 @@ function km(e) {
4473
4474
  }
4474
4475
  return e.name;
4475
4476
  }
4476
- function Lw(e) {
4477
+ function Vw(e) {
4477
4478
  return Array.isArray(e) ? e.reduce((r, t) => t.role !== "assistant" ? (r.push(t), r) : t.parts.some(
4478
4479
  (o) => {
4479
4480
  var i;
@@ -4491,7 +4492,7 @@ function Tl(e) {
4491
4492
  selectedEntities: t
4492
4493
  };
4493
4494
  }
4494
- const Na = {
4495
+ const Ma = {
4495
4496
  selectedEntities: []
4496
4497
  };
4497
4498
  function Lm(e) {
@@ -4503,7 +4504,7 @@ function Lm(e) {
4503
4504
  }
4504
4505
  const we = Yt()(
4505
4506
  hi((e, r) => ({
4506
- currentAIContext: Na,
4507
+ currentAIContext: Ma,
4507
4508
  hasEditorEntitySelectionOverride: !1,
4508
4509
  activeAssistantType: null,
4509
4510
  dashboardEntitySelectionOverrides: {},
@@ -4589,7 +4590,7 @@ const we = Yt()(
4589
4590
  },
4590
4591
  clearAIContext: () => {
4591
4592
  e((t) => {
4592
- t.currentAIContext = Na, t.hasEditorEntitySelectionOverride = !1, t.dashboardEntitySelectionOverrides = {}, t.pendingDashboardDraftMigration = null, t.assistantMessageContexts = {};
4593
+ t.currentAIContext = Ma, t.hasEditorEntitySelectionOverride = !1, t.dashboardEntitySelectionOverrides = {}, t.pendingDashboardDraftMigration = null, t.assistantMessageContexts = {};
4593
4594
  });
4594
4595
  },
4595
4596
  mergeAIContext: (t) => {
@@ -4666,16 +4667,16 @@ const we = Yt()(
4666
4667
  getFileAttachments: (t) => r().fileAttachments[t]
4667
4668
  }
4668
4669
  }))
4669
- ), Vw = () => we((e) => e.currentAIContext), Bw = () => we((e) => e.activeAssistantType), $w = (e) => we(
4670
+ ), Bw = () => we((e) => e.currentAIContext), $w = () => we((e) => e.activeAssistantType), Uw = (e) => we(
4670
4671
  (r) => e ? r.assistantMessageContexts[e] : void 0
4671
- ), Uw = () => we((e) => e.actions), jw = (e) => we((r) => r.messageQueues[e]), zw = () => we(
4672
+ ), jw = () => we((e) => e.actions), zw = (e) => we((r) => r.messageQueues[e]), Hw = () => we(
4672
4673
  bi((e) => ({
4673
4674
  queueMessage: e.actions.queueMessage,
4674
4675
  dequeueMessage: e.actions.dequeueMessage,
4675
4676
  removeFromQueue: e.actions.removeFromQueue,
4676
4677
  clearQueue: e.actions.clearQueue
4677
4678
  }))
4678
- ), Hw = (e) => we((r) => r.fileAttachments[e]), qw = () => we(
4679
+ ), qw = (e) => we((r) => r.fileAttachments[e]), Ww = () => we(
4679
4680
  bi((e) => ({
4680
4681
  addFileAttachment: e.actions.addFileAttachment,
4681
4682
  removeFileAttachment: e.actions.removeFileAttachment,
@@ -4683,7 +4684,7 @@ const we = Yt()(
4683
4684
  updateUploadProgress: e.actions.updateUploadProgress,
4684
4685
  getFileAttachments: e.actions.getFileAttachments
4685
4686
  }))
4686
- ), ka = {}, Vm = (e) => ({
4687
+ ), Na = {}, Vm = (e) => ({
4687
4688
  // Update page size
4688
4689
  updatePageSize: (r) => e((t) => {
4689
4690
  var n, o, i;
@@ -4784,7 +4785,7 @@ const we = Yt()(
4784
4785
  // Show all columns
4785
4786
  showAllColumns: () => e((r) => {
4786
4787
  var i, a, s, l, c, d;
4787
- const t = ((s = (a = (i = r.card) == null ? void 0 : i.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : s.columnVisibility) || ka, n = Object.keys(t);
4788
+ const t = ((s = (a = (i = r.card) == null ? void 0 : i.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : s.columnVisibility) || Na, n = Object.keys(t);
4788
4789
  if (n.length === 0)
4789
4790
  return r;
4790
4791
  const o = {};
@@ -4806,7 +4807,7 @@ const we = Yt()(
4806
4807
  // Hide all columns
4807
4808
  hideAllColumns: () => e((r) => {
4808
4809
  var i, a, s, l, c, d;
4809
- const t = ((s = (a = (i = r.card) == null ? void 0 : i.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : s.columnVisibility) || ka, n = Object.keys(t);
4810
+ const t = ((s = (a = (i = r.card) == null ? void 0 : i.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : s.columnVisibility) || Na, n = Object.keys(t);
4810
4811
  if (n.length === 0)
4811
4812
  return r;
4812
4813
  const o = {};
@@ -4878,18 +4879,6 @@ const we = Yt()(
4878
4879
  };
4879
4880
  })
4880
4881
  });
4881
- function Pi(e) {
4882
- if (!e) return !1;
4883
- const r = e.groupByColumns && e.groupByColumns.length > 0, t = e.metricColumns && e.metricColumns.length > 0, n = e.pivotByColumns && e.pivotByColumns.length > 0, o = e.detailColumns && e.detailColumns.length > 0;
4884
- return !!(r || t || n || o);
4885
- }
4886
- function Ww(e, r) {
4887
- var i, a, s;
4888
- if (r != null && r.skipSetupCheck || e.type === "text" || (i = e.customCardPreferences) != null && i.url)
4889
- return !1;
4890
- const t = !!(e.connectionId || (a = e.dataSource) != null && a.connectionId), n = !!((s = e.sql) != null && s.trim()), o = Pi(e.config);
4891
- return !t || !o && !n;
4892
- }
4893
4882
  function Bm(e) {
4894
4883
  var t, n;
4895
4884
  const r = (n = (t = e == null ? void 0 : e.preferences) == null ? void 0 : t.textVisualOptions) == null ? void 0 : n.content;
@@ -4901,7 +4890,7 @@ function Al(e) {
4901
4890
  }
4902
4891
  function Fl(e) {
4903
4892
  var r, t;
4904
- return !e || e.type !== "text" ? !1 : !!((r = e.sql) != null && r.trim() || (t = e.python) != null && t.trim() || Pi(e.config));
4893
+ return !e || e.type !== "text" ? !1 : !!((r = e.sql) != null && r.trim() || (t = e.python) != null && t.trim() || Us(e.config));
4905
4894
  }
4906
4895
  function Gw(e) {
4907
4896
  var r, t;
@@ -5231,7 +5220,7 @@ function nh(e) {
5231
5220
  function Dt(e) {
5232
5221
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5233
5222
  }
5234
- function La(e, r) {
5223
+ function ka(e, r) {
5235
5224
  const t = {
5236
5225
  getterOrSetter: new RegExp(
5237
5226
  String.raw`^(?:async\s+)?(?:get|set)\s+['"]?${Dt(r)}['"]?\b`,
@@ -5289,13 +5278,13 @@ function oh(e) {
5289
5278
  valid: !1,
5290
5279
  error: "Visual code must define mount() and destroy() lifecycle methods."
5291
5280
  };
5292
- const o = La(n, "mount");
5281
+ const o = ka(n, "mount");
5293
5282
  if (o)
5294
5283
  return {
5295
5284
  valid: !1,
5296
5285
  error: o
5297
5286
  };
5298
- const i = La(n, "destroy");
5287
+ const i = ka(n, "destroy");
5299
5288
  return i ? {
5300
5289
  valid: !1,
5301
5290
  error: i
@@ -5436,18 +5425,18 @@ function ch(e) {
5436
5425
  ) : !1 : !1;
5437
5426
  }
5438
5427
  function an(e) {
5439
- return Or(e) ? e.type === "text" ? typeof e.value == "string" && Va(e.format) : e.type === "variable" ? uh(e.ref) && Va(e.format) : e.type === "link" ? typeof e.url == "string" && Array.isArray(e.children) && e.children.every(dh) : !1 : !1;
5428
+ return Or(e) ? e.type === "text" ? typeof e.value == "string" && La(e.format) : e.type === "variable" ? uh(e.ref) && La(e.format) : e.type === "link" ? typeof e.url == "string" && Array.isArray(e.children) && e.children.every(dh) : !1 : !1;
5440
5429
  }
5441
5430
  function dh(e) {
5442
5431
  return an(e) && (e.type === "text" || e.type === "variable");
5443
5432
  }
5444
- function Va(e) {
5433
+ function La(e) {
5445
5434
  return e === void 0 ? !0 : Or(e) ? (e.bold === void 0 || typeof e.bold == "boolean") && (e.italic === void 0 || typeof e.italic == "boolean") : !1;
5446
5435
  }
5447
5436
  function uh(e) {
5448
- return Or(e) ? e.source === "dashboardInput" ? typeof e.inputId == "string" && Ba(e.export) : e.source === "dashboardInputAlias" ? typeof e.variableName == "string" && (e.export === void 0 || Ba(e.export)) : e.source === "documentMeta" ? e.key === "generatedAt" || e.key === "pageNumber" || e.key === "pageCount" : !1 : !1;
5437
+ return Or(e) ? e.source === "dashboardInput" ? typeof e.inputId == "string" && Va(e.export) : e.source === "dashboardInputAlias" ? typeof e.variableName == "string" && (e.export === void 0 || Va(e.export)) : e.source === "documentMeta" ? e.key === "generatedAt" || e.key === "pageNumber" || e.key === "pageCount" : !1 : !1;
5449
5438
  }
5450
- function Ba(e) {
5439
+ function Va(e) {
5451
5440
  return e === "label" || e === "value" || e === "start" || e === "end" || e === "range";
5452
5441
  }
5453
5442
  function Or(e) {
@@ -6076,21 +6065,21 @@ function zo(e) {
6076
6065
  negativeStyle: e.negativeStyle || "minus"
6077
6066
  };
6078
6067
  }
6079
- function $a(e) {
6068
+ function Ba(e) {
6080
6069
  return {
6081
6070
  type: "string",
6082
6071
  prefix: e.prefix,
6083
6072
  suffix: e.suffix
6084
6073
  };
6085
6074
  }
6086
- function _i(e) {
6075
+ function Pi(e) {
6087
6076
  if (!e)
6088
6077
  return;
6089
6078
  if (typeof e == "string") {
6090
6079
  const t = e.trim().toLowerCase();
6091
6080
  return t === "currency" ? Oe("currency", {}) : t === "percentage" || t === "percent" ? Oe("percent", {
6092
6081
  percentValueMode: "fraction"
6093
- }) : t === "scientific" ? Oe("scientific", {}) : t === "date" ? jo({}) : t === "duration" ? zo({}) : t === "string" ? $a({}) : t === "number" ? Oe("number", {}) : void 0;
6082
+ }) : t === "scientific" ? Oe("scientific", {}) : t === "date" ? jo({}) : t === "duration" ? zo({}) : t === "string" ? Ba({}) : t === "number" ? Oe("number", {}) : void 0;
6094
6083
  }
6095
6084
  const r = e;
6096
6085
  if (r.type === "percentage")
@@ -6105,7 +6094,7 @@ function _i(e) {
6105
6094
  if (r.type === "duration")
6106
6095
  return zo(r);
6107
6096
  if (r.type === "string")
6108
- return $a(r);
6097
+ return Ba(r);
6109
6098
  }
6110
6099
  function Ih(e) {
6111
6100
  if (!(e != null && e.type) || e.type === "auto")
@@ -6195,7 +6184,7 @@ function nx(e) {
6195
6184
  });
6196
6185
  }
6197
6186
  function ox(e) {
6198
- const r = _i(e);
6187
+ const r = Pi(e);
6199
6188
  if (r) {
6200
6189
  if (r.type === "date")
6201
6190
  return {
@@ -6242,7 +6231,7 @@ function ox(e) {
6242
6231
  }
6243
6232
  }
6244
6233
  function ix(e) {
6245
- const r = _i(e);
6234
+ const r = Pi(e);
6246
6235
  return !r || r.type === "date" || r.type === "duration" || r.type === "string" ? void 0 : {
6247
6236
  style: r.type === "currency" ? "currency" : r.type === "percent" ? "percent" : r.type === "scientific" ? "scientific" : "decimal",
6248
6237
  currency: r.type === "currency" && r.currency || "USD",
@@ -6258,7 +6247,7 @@ function ix(e) {
6258
6247
  };
6259
6248
  }
6260
6249
  function ax(e) {
6261
- const r = _i(e);
6250
+ const r = Pi(e);
6262
6251
  if (!(!r || r.type === "date" || r.type === "duration" || r.type === "string"))
6263
6252
  return {
6264
6253
  decimalPlaces: Vl(
@@ -6326,7 +6315,7 @@ const sx = () => ({
6326
6315
  trendlineGranularity: "day",
6327
6316
  targetValue: 0
6328
6317
  });
6329
- function Ua(e) {
6318
+ function $a(e) {
6330
6319
  var t;
6331
6320
  if (e.type !== "text") return;
6332
6321
  const r = (t = e.preferences) == null ? void 0 : t.textVisualOptions;
@@ -6609,7 +6598,7 @@ const Mn = Yt()(
6609
6598
  initializeModeDrafts: (t) => {
6610
6599
  e((n) => {
6611
6600
  var c, d;
6612
- const o = !!((c = t.sql) != null && c.trim()), i = !!((d = t.python) != null && d.trim()), a = o || i, s = Pi(t.config);
6601
+ const o = !!((c = t.sql) != null && c.trim()), i = !!((d = t.python) != null && d.trim()), a = o || i, s = Us(t.config);
6613
6602
  let l;
6614
6603
  a && s ? l = "both" : a ? l = "dev" : s ? l = "standard" : l = "none", n.modeDrafts = {
6615
6604
  sqlDraft: null,
@@ -7075,14 +7064,14 @@ const Mn = Yt()(
7075
7064
  },
7076
7065
  switchCardType: (t) => {
7077
7066
  e((n) => {
7078
- n.card.type = t, n.card.visualizationMode = "builtin", n.card.sql = "", n.card.python = "", n.card.customCfg = {}, n.card.preferences = {}, Ua(n.card);
7067
+ n.card.type = t, n.card.visualizationMode = "builtin", n.card.sql = "", n.card.python = "", n.card.customCfg = {}, n.card.preferences = {}, $a(n.card);
7079
7068
  });
7080
7069
  },
7081
7070
  setCardType: (t) => {
7082
7071
  e((n) => {
7083
7072
  var i;
7084
7073
  const o = n.card.type;
7085
- if (n.card.type = t, n.card.visualizationMode = "builtin", t === "text" && o !== "text" && Ua(n.card), t === "range" && (n.card.preferences = {
7074
+ if (n.card.type = t, n.card.visualizationMode = "builtin", t === "text" && o !== "text" && $a(n.card), t === "range" && (n.card.preferences = {
7086
7075
  ...n.card.preferences,
7087
7076
  chartOptions: {
7088
7077
  ...(i = n.card.preferences) == null ? void 0 : i.chartOptions,
@@ -7263,7 +7252,7 @@ at.subscribe("dashboard:unload", () => {
7263
7252
  Mn.getState().actions.resetEditorStore();
7264
7253
  });
7265
7254
  function Bl(e) {
7266
- return !e.entityName || e.entityName === fa || e.entityName === "calculated_fields" || e.qualifiedEntityName === fa || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
7255
+ return !e.entityName || e.entityName === ua || e.entityName === "calculated_fields" || e.qualifiedEntityName === ua || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
7267
7256
  }
7268
7257
  function Ho(e) {
7269
7258
  return e != null && e.startsWith("card-source-") ? e.replace("card-source-", "") : e;
@@ -7294,7 +7283,7 @@ function Rh(e) {
7294
7283
  const r = Ho(e.id);
7295
7284
  return r ? `id:${r}` : `fallback:${Vt(e)}`;
7296
7285
  }
7297
- function Oi(e, r, t) {
7286
+ function _i(e, r, t) {
7298
7287
  if (e.fieldScope === "domain" && r.fieldScope === "domain")
7299
7288
  return qo(e) === qo(r);
7300
7289
  const n = Ho(e.id), o = Ho(r.id);
@@ -7302,7 +7291,7 @@ function Oi(e, r, t) {
7302
7291
  }
7303
7292
  function Dh(e, r, t) {
7304
7293
  return e.findIndex(
7305
- (n) => Oi(n, r, t)
7294
+ (n) => _i(n, r, t)
7306
7295
  );
7307
7296
  }
7308
7297
  function Ph(e) {
@@ -7325,7 +7314,7 @@ function cx(e, r, t, n) {
7325
7314
  }
7326
7315
  function dx(e, r, t) {
7327
7316
  return e.filter(
7328
- (n) => !Oi(n, r, t)
7317
+ (n) => !_i(n, r, t)
7329
7318
  );
7330
7319
  }
7331
7320
  function ux(e) {
@@ -7343,7 +7332,7 @@ function Kt(e, r) {
7343
7332
  fieldScope: r
7344
7333
  };
7345
7334
  }
7346
- function Mi(e) {
7335
+ function Oi(e) {
7347
7336
  return ((e == null ? void 0 : e.calculatedFields) || []).filter((r) => r.fieldScope === "sheet").map((r) => Kt(r, "sheet"));
7348
7337
  }
7349
7338
  function $l(e) {
@@ -7363,14 +7352,14 @@ function Ul(e) {
7363
7352
  e.map((r) => Kt(r, "dashboard"))
7364
7353
  );
7365
7354
  }
7366
- function ja(e) {
7355
+ function Ua(e) {
7367
7356
  var n;
7368
7357
  const r = [], t = (e.sheets || []).map((o) => {
7369
7358
  var i;
7370
7359
  return r.push(...Oh(o)), {
7371
7360
  ...o,
7372
7361
  calculatedFields: Ct(
7373
- Mi(o),
7362
+ Oi(o),
7374
7363
  $l(o)
7375
7364
  ),
7376
7365
  frames: (i = o.frames) == null ? void 0 : i.map(
@@ -7391,7 +7380,7 @@ function ja(e) {
7391
7380
  sheets: t
7392
7381
  };
7393
7382
  }
7394
- function za(e, r) {
7383
+ function ja(e, r) {
7395
7384
  var o;
7396
7385
  if (!((o = e == null ? void 0 : e.frames) != null && o.length))
7397
7386
  return [];
@@ -7404,19 +7393,19 @@ function za(e, r) {
7404
7393
  );
7405
7394
  }
7406
7395
  function fx(e, r) {
7407
- return e ? Mi(e) : [];
7396
+ return e ? Oi(e) : [];
7408
7397
  }
7409
7398
  function px(e, r) {
7410
7399
  if (!e)
7411
7400
  return [];
7412
- const t = Mi(e), n = $l(e), o = Ct(
7401
+ const t = Oi(e), n = $l(e), o = Ct(
7413
7402
  t,
7414
7403
  n
7415
7404
  );
7416
7405
  return _h(e) ? o.length === 0 ? [] : n.length === 0 ? o : Ct(
7417
7406
  o,
7418
- za(e, r)
7419
- ) : za(e, r);
7407
+ ja(e, r)
7408
+ ) : ja(e, r);
7420
7409
  }
7421
7410
  function uo(e) {
7422
7411
  if (e !== void 0)
@@ -7426,7 +7415,7 @@ function uo(e) {
7426
7415
  }
7427
7416
  function mx(e) {
7428
7417
  const { field: r, sheetFields: t = [], dashboardFields: n = [] } = e, o = (s) => s.find(
7429
- (l) => Oi(l, r, {
7418
+ (l) => _i(l, r, {
7430
7419
  allowComparableFallback: !0
7431
7420
  })
7432
7421
  );
@@ -7561,7 +7550,7 @@ const xx = [
7561
7550
  function Wo(e) {
7562
7551
  return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").replace(/_{2,}/g, "_");
7563
7552
  }
7564
- function Ni(e) {
7553
+ function Mi(e) {
7565
7554
  return e === "boolean" ? [
7566
7555
  { value: "true", label: "True" },
7567
7556
  { value: "false", label: "False" }
@@ -7617,7 +7606,7 @@ function Ex(e, r) {
7617
7606
  return Array.from(t);
7618
7607
  }
7619
7608
  function Gl(e) {
7620
- const r = Ni(e.type);
7609
+ const r = Mi(e.type);
7621
7610
  return r ? {
7622
7611
  ...e,
7623
7612
  source: { kind: "manual", options: r }
@@ -7646,7 +7635,7 @@ function Fx(e) {
7646
7635
  options: []
7647
7636
  } : {
7648
7637
  kind: "manual",
7649
- options: Ni(i) ?? (o.source.kind === "manual" ? o.source.options : [])
7638
+ options: Mi(i) ?? (o.source.kind === "manual" ? o.source.options : [])
7650
7639
  }, t = e.controls.map(
7651
7640
  (o) => o.id === e.controlId ? {
7652
7641
  ...o,
@@ -7707,7 +7696,7 @@ function jh(e) {
7707
7696
  (i) => ["date", "datetime"].includes((i.dataType || "").toLowerCase())
7708
7697
  ) && r.push({ value: "config_grain", label: "Time Grain" }), r;
7709
7698
  }
7710
- function ki(e) {
7699
+ function Ni(e) {
7711
7700
  const r = /* @__PURE__ */ new Set();
7712
7701
  return e.filter((t) => r.has(t.value) ? !1 : (r.add(t.value), !0));
7713
7702
  }
@@ -7764,7 +7753,7 @@ function Ox(e, r = "SUM") {
7764
7753
  function Mx(e) {
7765
7754
  var r;
7766
7755
  return Mr(
7767
- ki(
7756
+ Ni(
7768
7757
  (((r = e == null ? void 0 : e.config) == null ? void 0 : r.groupByColumns) || []).filter((t) => typeof t.id == "string" && t.id.length > 0).map((t) => ({
7769
7758
  value: t.id,
7770
7759
  label: t.label || t.id
@@ -7775,7 +7764,7 @@ function Mx(e) {
7775
7764
  function Nx(e) {
7776
7765
  var r;
7777
7766
  return Mr(
7778
- ki(
7767
+ Ni(
7779
7768
  (((r = e == null ? void 0 : e.config) == null ? void 0 : r.metricColumns) || []).filter((t) => typeof t.id == "string" && t.id.length > 0).map((t) => ({
7780
7769
  value: t.id,
7781
7770
  label: t.label || t.id
@@ -7788,7 +7777,7 @@ function Wh(e) {
7788
7777
  return [];
7789
7778
  const r = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
7790
7779
  return e.forEach((n) => {
7791
- ki(n).forEach((i) => {
7780
+ Ni(n).forEach((i) => {
7792
7781
  r.set(i.value, (r.get(i.value) || 0) + 1), t.has(i.value) || t.set(i.value, i.label);
7793
7782
  });
7794
7783
  }), Mr(
@@ -8062,7 +8051,7 @@ function Xx(e) {
8062
8051
  }
8063
8052
  function Jh(e, r) {
8064
8053
  var i, a;
8065
- const t = Ni(e.type), n = Gl(e), o = (t ?? (n.source.kind === "manual" ? n.source.options : [])).map((s) => s.value);
8054
+ const t = Mi(e.type), n = Gl(e), o = (t ?? (n.source.kind === "manual" ? n.source.options : [])).map((s) => s.value);
8066
8055
  if (e.type === "boolean")
8067
8056
  return typeof r == "boolean" ? r : !1;
8068
8057
  if (e.type === "multi_enum") {
@@ -8088,7 +8077,7 @@ function Jh(e, r) {
8088
8077
  if (n.source.kind === "manual" && ((a = n.source.options[0]) != null && a.value))
8089
8078
  return n.source.options[0].value;
8090
8079
  }
8091
- function Ha(e) {
8080
+ function za(e) {
8092
8081
  return JSON.stringify({
8093
8082
  connectionId: e.connectionId,
8094
8083
  sql: e.sql,
@@ -8097,7 +8086,7 @@ function Ha(e) {
8097
8086
  }
8098
8087
  function Zx(e) {
8099
8088
  const { previousControl: r, nextControl: t, currentDefaultValue: n } = e;
8100
- if (!(r.source.kind !== "sql_query" && t.source.kind === "sql_query") && !(r.source.kind === "sql_query" && t.source.kind === "sql_query" && Ha(r.source) !== Ha(t.source)))
8089
+ if (!(r.source.kind !== "sql_query" && t.source.kind === "sql_query") && !(r.source.kind === "sql_query" && t.source.kind === "sql_query" && za(r.source) !== za(t.source)))
8101
8090
  return Jh(t, n);
8102
8091
  }
8103
8092
  function eg(e) {
@@ -8110,13 +8099,13 @@ function Qx(e, r) {
8110
8099
  requiredAtExecution: !0
8111
8100
  } : e;
8112
8101
  }
8113
- function qa(e) {
8102
+ function Ha(e) {
8114
8103
  return e.initialValueStrategy !== "embed_required";
8115
8104
  }
8116
8105
  function tg(e) {
8117
8106
  const r = {}, t = new Map(e.controls.map((n) => [n.id, n]));
8118
8107
  for (const n of e.controls) {
8119
- if (!qa(n))
8108
+ if (!Ha(n))
8120
8109
  continue;
8121
8110
  const o = eg({
8122
8111
  control: n,
@@ -8126,7 +8115,7 @@ function tg(e) {
8126
8115
  }
8127
8116
  for (const n of e.overrides || []) {
8128
8117
  const o = t.get(n.controlId);
8129
- if (o && !qa(o)) {
8118
+ if (o && !Ha(o)) {
8130
8119
  delete r[n.controlId];
8131
8120
  continue;
8132
8121
  }
@@ -8147,7 +8136,7 @@ function Jx(e) {
8147
8136
  o += 1, i = `${n}_${o}`;
8148
8137
  return i;
8149
8138
  }
8150
- function Wa(e, r, t) {
8139
+ function qa(e, r, t) {
8151
8140
  var n, o, i, a, s, l, c;
8152
8141
  switch (r.runtimeScope) {
8153
8142
  case "shared":
@@ -8162,7 +8151,7 @@ function Wa(e, r, t) {
8162
8151
  return;
8163
8152
  }
8164
8153
  }
8165
- function Ga(e, r, t, n) {
8154
+ function Wa(e, r, t, n) {
8166
8155
  var i, a, s, l, c, d;
8167
8156
  const o = Jl(e);
8168
8157
  switch (r.runtimeScope) {
@@ -8198,14 +8187,14 @@ function rg(e, r, t) {
8198
8187
  return Ne(n);
8199
8188
  }
8200
8189
  function eI(e) {
8201
- const r = Wa(
8190
+ const r = qa(
8202
8191
  e.runtimeValues,
8203
8192
  e.input,
8204
8193
  e.target
8205
8194
  );
8206
8195
  if (r)
8207
8196
  return r;
8208
- const t = Wa(
8197
+ const t = qa(
8209
8198
  e.dashboard.defaultInputValues,
8210
8199
  e.input,
8211
8200
  e.target
@@ -8356,7 +8345,7 @@ function ag({
8356
8345
  removedInputIds: o
8357
8346
  };
8358
8347
  }
8359
- function Ya(e, r) {
8348
+ function Ga(e, r) {
8360
8349
  var t;
8361
8350
  if (!(!e || r.size === 0)) {
8362
8351
  for (const n of r)
@@ -8371,11 +8360,11 @@ function Ya(e, r) {
8371
8360
  delete o[i];
8372
8361
  }
8373
8362
  }
8374
- function Ka(e) {
8363
+ function Ya(e) {
8375
8364
  const r = Intl.DateTimeFormat().resolvedOptions().timeZone;
8376
8365
  return um(e, r) || r;
8377
8366
  }
8378
- function Xa() {
8367
+ function Ka() {
8379
8368
  return typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.randomUUID == "function" ? `dashboard:draft:${globalThis.crypto.randomUUID()}` : `dashboard:draft:${Date.now().toString(36)}:${Math.random().toString(36).slice(2)}`;
8380
8369
  }
8381
8370
  function sg(e, r) {
@@ -8385,7 +8374,7 @@ function sg(e, r) {
8385
8374
  r
8386
8375
  ) || (e.title || "").trim() || (e.description || "").trim() || (n = e.sheets) != null && n.length || (o = e.filters) != null && o.length || (a = (i = e.aiContext) == null ? void 0 : i.selectedEntities) != null && a.length || ((s = e.aiContext) == null ? void 0 : s.mode) === "fixed");
8387
8376
  }
8388
- function Za(e) {
8377
+ function Xa(e) {
8389
8378
  var l;
8390
8379
  const r = (e.id || "").trim();
8391
8380
  if (!r)
@@ -8473,7 +8462,7 @@ function ft(e, r) {
8473
8462
  controlValuesByInputId: {}
8474
8463
  }), e[r];
8475
8464
  }
8476
- function Qa(e, r) {
8465
+ function Za(e, r) {
8477
8466
  var n;
8478
8467
  if (!e)
8479
8468
  return {};
@@ -8505,9 +8494,9 @@ const Ke = Yt()(
8505
8494
  currentBreakpoint: "lg",
8506
8495
  dashboard: {
8507
8496
  id: "",
8508
- style: Fa
8497
+ style: Aa
8509
8498
  },
8510
- dashboardAssistantDraftScopeKey: Xa(),
8499
+ dashboardAssistantDraftScopeKey: Ka(),
8511
8500
  showContext: !1,
8512
8501
  selectedSheetId: null,
8513
8502
  selectedCardId: null,
@@ -8552,8 +8541,8 @@ const Ke = Yt()(
8552
8541
  }) : o.clearPendingDashboardDraftMigration(), e((a) => {
8553
8542
  a.relaodToken = 0, a.isSessionExpired = !1, a.authToken = void 0, a.currentBreakpoint = "lg", a.dashboard = {
8554
8543
  id: "",
8555
- style: Fa
8556
- }, a.dashboardAssistantDraftScopeKey = Xa(), a.showContext = !1, a.selectedSheetId = null, a.selectedCardId = null, a.selectedFrameId = null, a.selectedCard = null, a.selectedDocumentSectionIdsBySheetId = {}, a.documentInspectorTabsBySheetId = {}, a.documentInputRuntimeBySheetId = {}, a.visualEditPendingFrameRewrites = {}, a.visualEditPendingFilterRewrites = {}, a.visualEditPendingDashboardCalculatedFields = void 0, a.showFilters = !1, a.isDashboardEditing = !1, a.isVisualEditing = !1, a.showDashboardJSON = !1, a.filteringCards = [], a.selectedLensId = void 0, a.filterValues = void 0, a.inlineFilterValuesMap = {}, a.controlValues = {}, a.cardControlValuesMap = {}, a.dashboardInputValues = {}, a.dashboardInputValuesAreAuthoritative = !1, a.semanticExecutionPayload = Zr();
8544
+ style: Aa
8545
+ }, a.dashboardAssistantDraftScopeKey = Ka(), a.showContext = !1, a.selectedSheetId = null, a.selectedCardId = null, a.selectedFrameId = null, a.selectedCard = null, a.selectedDocumentSectionIdsBySheetId = {}, a.documentInspectorTabsBySheetId = {}, a.documentInputRuntimeBySheetId = {}, a.visualEditPendingFrameRewrites = {}, a.visualEditPendingFilterRewrites = {}, a.visualEditPendingDashboardCalculatedFields = void 0, a.showFilters = !1, a.isDashboardEditing = !1, a.isVisualEditing = !1, a.showDashboardJSON = !1, a.filteringCards = [], a.selectedLensId = void 0, a.filterValues = void 0, a.inlineFilterValuesMap = {}, a.controlValues = {}, a.cardControlValuesMap = {}, a.dashboardInputValues = {}, a.dashboardInputValuesAreAuthoritative = !1, a.semanticExecutionPayload = Zr();
8557
8546
  });
8558
8547
  },
8559
8548
  triggerReload: () => {
@@ -8621,10 +8610,10 @@ const Ke = Yt()(
8621
8610
  e((n) => {
8622
8611
  n.dashboard.inputs = (n.dashboard.inputs || []).filter(
8623
8612
  (o) => o.id !== t
8624
- ), n.dashboard.defaultInputValues = Qa(
8613
+ ), n.dashboard.defaultInputValues = Za(
8625
8614
  n.dashboard.defaultInputValues,
8626
8615
  t
8627
- ), n.dashboardInputValues = Qa(
8616
+ ), n.dashboardInputValues = Za(
8628
8617
  n.dashboardInputValues,
8629
8618
  t
8630
8619
  );
@@ -8647,7 +8636,7 @@ const Ke = Yt()(
8647
8636
  },
8648
8637
  setDashboardInputSlot: (t, n, o) => {
8649
8638
  e((i) => {
8650
- i.dashboardInputValues = Ga(
8639
+ i.dashboardInputValues = Wa(
8651
8640
  i.dashboardInputValues,
8652
8641
  t,
8653
8642
  n,
@@ -8657,7 +8646,7 @@ const Ke = Yt()(
8657
8646
  },
8658
8647
  clearDashboardInputSlot: (t, n) => {
8659
8648
  e((o) => {
8660
- o.dashboardInputValues = Ga(
8649
+ o.dashboardInputValues = Wa(
8661
8650
  o.dashboardInputValues,
8662
8651
  t,
8663
8652
  n,
@@ -8777,10 +8766,10 @@ const Ke = Yt()(
8777
8766
  (S = n.dashboardInputValues.byCardId) == null || delete S[O], (y = (g = n.dashboard.defaultInputValues) == null ? void 0 : g.byCardId) == null || delete y[O];
8778
8767
  for (const O of T)
8779
8768
  (C = n.dashboardInputValues.byDocumentSectionId) == null || delete C[O], (I = (w = n.dashboard.defaultInputValues) == null ? void 0 : w.byDocumentSectionId) == null || delete I[O];
8780
- if (n.dashboard.inputs = R.inputs, Ya(
8769
+ if (n.dashboard.inputs = R.inputs, Ga(
8781
8770
  n.dashboardInputValues,
8782
8771
  R.removedInputIds
8783
- ), Ya(
8772
+ ), Ga(
8784
8773
  n.dashboard.defaultInputValues,
8785
8774
  R.removedInputIds
8786
8775
  ), n.dashboardInputValues = Ne(
@@ -8956,13 +8945,13 @@ const Ke = Yt()(
8956
8945
  },
8957
8946
  setThemeStyle: (t) => {
8958
8947
  e((n) => {
8959
- Sa(n.themeStyle, t) || (n.themeStyle = t);
8948
+ Ca(n.themeStyle, t) || (n.themeStyle = t);
8960
8949
  });
8961
8950
  },
8962
8951
  setDashboard: (t, n) => {
8963
8952
  var c, d, u, p;
8964
- Za(t);
8965
- const o = ja(t), i = r(), a = Ka(i.authToken), s = cm(
8953
+ Xa(t);
8954
+ const o = Ua(t), i = r(), a = Ya(i.authToken), s = cm(
8966
8955
  o,
8967
8956
  a
8968
8957
  ), l = so(
@@ -8996,8 +8985,8 @@ const Ke = Yt()(
8996
8985
  });
8997
8986
  },
8998
8987
  setDashboardWithFilterValues: (t, n, o, i) => {
8999
- Za(t);
9000
- const a = ja(t), s = so(
8988
+ Xa(t);
8989
+ const a = Ua(t), s = so(
9001
8990
  a,
9002
8991
  o,
9003
8992
  {
@@ -9486,7 +9475,7 @@ const Ke = Yt()(
9486
9475
  )) ?? -1) >= 0)
9487
9476
  return;
9488
9477
  n.dashboard.filters ? (s = n.dashboard.filters) == null || s.push(t) : n.dashboard.filters = [t], Hl(n.dashboard.sheets).forEach((l) => {
9489
- Pa({
9478
+ Da({
9490
9479
  id: t.id,
9491
9480
  layouts: l.layouts,
9492
9481
  y: 0,
@@ -9510,7 +9499,7 @@ const Ke = Yt()(
9510
9499
  );
9511
9500
  const l = n.dashboard.sheets;
9512
9501
  l == null || l.forEach((c) => {
9513
- const d = _a(t, c.layouts);
9502
+ const d = Pa(t, c.layouts);
9514
9503
  c.layouts = d;
9515
9504
  });
9516
9505
  }
@@ -9647,7 +9636,7 @@ const Ke = Yt()(
9647
9636
  sourceId: d.copyLayoutFromFrameId,
9648
9637
  duplicatedId: n.id,
9649
9638
  layouts: a.layouts
9650
- }) || Pa({
9639
+ }) || Da({
9651
9640
  id: n.id,
9652
9641
  layouts: a.layouts,
9653
9642
  x: p,
@@ -9667,7 +9656,7 @@ const Ke = Yt()(
9667
9656
  const i = (s = (a = o.dashboard) == null ? void 0 : a.sheets) == null ? void 0 : s.find((u) => u.id === t);
9668
9657
  if (i) {
9669
9658
  const u = (l = i.frames) == null ? void 0 : l.findIndex((p) => p.id === n);
9670
- console.log(u), typeof u == "number" && u > -1 && ((c = i.frames) == null || c.splice(u, 1), (d = i.layout) == null || d.splice(u, 1), _a(n, i.layouts));
9659
+ console.log(u), typeof u == "number" && u > -1 && ((c = i.frames) == null || c.splice(u, 1), (d = i.layout) == null || d.splice(u, 1), Pa(n, i.layouts));
9671
9660
  }
9672
9661
  });
9673
9662
  },
@@ -9701,7 +9690,7 @@ const Ke = Yt()(
9701
9690
  const w = v.get(C.id);
9702
9691
  return w ? p(w) : C.calculatedFields === void 0 ? C : { ...C, calculatedFields: void 0 };
9703
9692
  }), l && (i.dashboard.filters = l), c && (i.dashboard.calculatedFields = c);
9704
- const b = Ka(i.authToken);
9693
+ const b = Ya(i.authToken);
9705
9694
  i.isVisualEditing && i.selectedFrameId === n.id ? dg(
9706
9695
  i,
9707
9696
  u,
@@ -9777,7 +9766,7 @@ const Ke = Yt()(
9777
9766
  setStyle: (t) => {
9778
9767
  e((n) => {
9779
9768
  if (n.dashboard) {
9780
- if (Sa(n.dashboard.style, t))
9769
+ if (Ca(n.dashboard.style, t))
9781
9770
  return;
9782
9771
  n.dashboard.style = t;
9783
9772
  }
@@ -9934,7 +9923,7 @@ const Ke = Yt()(
9934
9923
  },
9935
9924
  updateCardId: (t, n) => {
9936
9925
  const o = r(), i = Up(n);
9937
- return i.isValid ? Oa(o.dashboard, n, t) ? (e((a) => {
9926
+ return i.isValid ? _a(o.dashboard, n, t) ? (e((a) => {
9938
9927
  var l;
9939
9928
  const s = a.dashboard.sheets || [];
9940
9929
  for (const c of s) {
@@ -9952,7 +9941,7 @@ const Ke = Yt()(
9952
9941
  error: "This Card ID already exists in the dashboard"
9953
9942
  } : { success: !1, error: i.error };
9954
9943
  },
9955
- isCardIdUnique: (t, n) => Oa(r().dashboard, t, n),
9944
+ isCardIdUnique: (t, n) => _a(r().dashboard, t, n),
9956
9945
  // Drill-through navigation actions
9957
9946
  navigateWithDrill: (t, n, o, i, a) => {
9958
9947
  e((s) => {
@@ -10119,14 +10108,14 @@ const aI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10119
10108
  __proto__: null,
10120
10109
  clsx: bn,
10121
10110
  default: bn
10122
- }, Symbol.toStringTag, { value: "Module" })), Li = "-", pg = (e) => {
10111
+ }, Symbol.toStringTag, { value: "Module" })), ki = "-", pg = (e) => {
10123
10112
  const r = hg(e), {
10124
10113
  conflictingClassGroups: t,
10125
10114
  conflictingClassGroupModifiers: n
10126
10115
  } = e;
10127
10116
  return {
10128
10117
  getClassGroupId: (a) => {
10129
- const s = a.split(Li);
10118
+ const s = a.split(ki);
10130
10119
  return s[0] === "" && s.length !== 1 && s.shift(), rc(s, r) || mg(a);
10131
10120
  },
10132
10121
  getConflictingClassGroupIds: (a, s) => {
@@ -10143,13 +10132,13 @@ const aI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10143
10132
  return o;
10144
10133
  if (r.validators.length === 0)
10145
10134
  return;
10146
- const i = e.join(Li);
10135
+ const i = e.join(ki);
10147
10136
  return (a = r.validators.find(({
10148
10137
  validator: s
10149
10138
  }) => s(i))) == null ? void 0 : a.classGroupId;
10150
- }, Ja = /^\[(.+)\]$/, mg = (e) => {
10151
- if (Ja.test(e)) {
10152
- const r = Ja.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
10139
+ }, Qa = /^\[(.+)\]$/, mg = (e) => {
10140
+ if (Qa.test(e)) {
10141
+ const r = Qa.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
10153
10142
  if (t)
10154
10143
  return "arbitrary.." + t;
10155
10144
  }
@@ -10167,7 +10156,7 @@ const aI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10167
10156
  }, Yo = (e, r, t, n) => {
10168
10157
  e.forEach((o) => {
10169
10158
  if (typeof o == "string") {
10170
- const i = o === "" ? r : es(r, o);
10159
+ const i = o === "" ? r : Ja(r, o);
10171
10160
  i.classGroupId = t;
10172
10161
  return;
10173
10162
  }
@@ -10183,12 +10172,12 @@ const aI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10183
10172
  return;
10184
10173
  }
10185
10174
  Object.entries(o).forEach(([i, a]) => {
10186
- Yo(a, es(r, i), t, n);
10175
+ Yo(a, Ja(r, i), t, n);
10187
10176
  });
10188
10177
  });
10189
- }, es = (e, r) => {
10178
+ }, Ja = (e, r) => {
10190
10179
  let t = e;
10191
- return r.split(Li).forEach((n) => {
10180
+ return r.split(ki).forEach((n) => {
10192
10181
  t.nextPart.has(n) || t.nextPart.set(n, {
10193
10182
  nextPart: /* @__PURE__ */ new Map(),
10194
10183
  validators: []
@@ -10319,7 +10308,7 @@ const oc = (e) => {
10319
10308
  e[n] && (r = oc(e[n])) && (t && (t += " "), t += r);
10320
10309
  return t;
10321
10310
  };
10322
- function ts(e, ...r) {
10311
+ function es(e, ...r) {
10323
10312
  let t, n, o, i = a;
10324
10313
  function a(l) {
10325
10314
  const c = r.reduce((d, u) => u(d), e());
@@ -10347,7 +10336,7 @@ const ne = (e) => {
10347
10336
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
10348
10337
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
10349
10338
  Fg.test(e) && !Rg.test(e)
10350
- ), ac = () => !1, $g = (e) => Dg.test(e), Ug = (e) => Pg.test(e), rs = () => {
10339
+ ), ac = () => !1, $g = (e) => Dg.test(e), Ug = (e) => Pg.test(e), ts = () => {
10351
10340
  const e = ne("colors"), r = ne("spacing"), t = ne("blur"), n = ne("brightness"), o = ne("borderColor"), i = ne("borderRadius"), a = ne("borderSpacing"), s = ne("borderWidth"), l = ne("contrast"), c = ne("grayscale"), d = ne("hueRotate"), u = ne("invert"), p = ne("gap"), h = ne("gradientColorStops"), v = ne("gradientColorStopPositions"), m = ne("inset"), b = ne("margin"), S = ne("opacity"), g = ne("padding"), y = ne("saturate"), C = ne("scale"), w = ne("sepia"), I = ne("skew"), E = ne("space"), A = ne("translate"), T = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", z, r], P = () => [z, r], O = () => ["", He, Je], L = () => ["auto", Bt, z], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], N = () => ["solid", "dashed", "dotted", "double", "none"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", z], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Bt, z];
10352
10341
  return {
10353
10342
  cacheSize: 500,
@@ -12402,7 +12391,7 @@ const ne = (e) => {
12402
12391
  const n = r[t];
12403
12392
  n !== void 0 && (e[t] = (e[t] || []).concat(n));
12404
12393
  }
12405
- }, qg = (e, ...r) => typeof e == "function" ? ts(rs, e, ...r) : ts(() => jg(rs(), e), ...r), Wg = qg({
12394
+ }, qg = (e, ...r) => typeof e == "function" ? es(ts, e, ...r) : es(() => jg(ts(), e), ...r), Wg = qg({
12406
12395
  extend: {
12407
12396
  classGroups: {
12408
12397
  rounded: ["rounded-control", "rounded-card"]
@@ -12647,7 +12636,7 @@ const Ve = (e) => {
12647
12636
  };
12648
12637
  function Jg(e) {
12649
12638
  var a, s, l, c, d, u, p, h;
12650
- const r = e.defaults ?? $s, t = e.mode ?? ry(e.spec.mode, e.systemMode), n = e.spec.schemes[t] ?? r.schemes[t], o = ((a = n.tokens) == null ? void 0 : a.color) ?? {}, i = {
12639
+ const r = e.defaults ?? Bs, t = e.mode ?? ry(e.spec.mode, e.systemMode), n = e.spec.schemes[t] ?? r.schemes[t], o = ((a = n.tokens) == null ? void 0 : a.color) ?? {}, i = {
12651
12640
  ...Qg[t]
12652
12641
  };
12653
12642
  for (const [v, m] of Object.entries(Zg)) {
@@ -12672,10 +12661,10 @@ function ey(e, r) {
12672
12661
  }
12673
12662
  function ty(e, r) {
12674
12663
  e["--semaphor-brand"] = e["--semaphor-primary"] ?? e["--semaphor-foreground"], e["--semaphor-secondary"] = e["--semaphor-accent"] ?? e["--semaphor-muted"], e["--semaphor-secondary-foreground"] = e["--semaphor-accent-foreground"] ?? e["--semaphor-foreground"], e["--semaphor-popover"] = e["--semaphor-card"] ?? e["--semaphor-background"], e["--semaphor-popover-foreground"] = e["--semaphor-card-foreground"] ?? e["--semaphor-foreground"], e["--semaphor-ring"] = e["--semaphor-primary"] ?? e["--semaphor-foreground"];
12675
- const t = ns((r == null ? void 0 : r.control) ?? 5), n = ns((r == null ? void 0 : r.card) ?? (r == null ? void 0 : r.control) ?? 5);
12664
+ const t = rs((r == null ? void 0 : r.control) ?? 5), n = rs((r == null ? void 0 : r.card) ?? (r == null ? void 0 : r.control) ?? 5);
12676
12665
  e["--semaphor-radius"] = t, e["--semaphor-control-radius"] = t, e["--semaphor-card-radius"] = n;
12677
12666
  }
12678
- function ns(e) {
12667
+ function rs(e) {
12679
12668
  return `${Number((e / 16).toFixed(4))}rem`;
12680
12669
  }
12681
12670
  function ry(e, r = "light") {
@@ -12718,7 +12707,7 @@ function ly(e) {
12718
12707
  colorScheme: e.mode
12719
12708
  };
12720
12709
  e.cssVariables["--semaphor-font-family"] && (r.fontFamily = "var(--semaphor-font-family)");
12721
- const n = (i = e.scheme.tokens) == null ? void 0 : i.typography, o = (a = $s.schemes[e.mode].tokens) == null ? void 0 : a.typography;
12710
+ const n = (i = e.scheme.tokens) == null ? void 0 : i.typography, o = (a = Bs.schemes[e.mode].tokens) == null ? void 0 : a.typography;
12722
12711
  (n == null ? void 0 : n.baseFontSize) !== void 0 && n.baseFontSize !== (o == null ? void 0 : o.baseFontSize) && (r.fontSize = n.baseFontSize);
12723
12712
  for (const [s, l] of Object.entries(
12724
12713
  e.cssVariables
@@ -12836,7 +12825,7 @@ const PI = Be("Upload", [
12836
12825
  ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
12837
12826
  ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
12838
12827
  ]);
12839
- function os(e, r) {
12828
+ function ns(e, r) {
12840
12829
  if (typeof e == "function")
12841
12830
  return e(r);
12842
12831
  e != null && (e.current = r);
@@ -12845,14 +12834,14 @@ function Zt(...e) {
12845
12834
  return (r) => {
12846
12835
  let t = !1;
12847
12836
  const n = e.map((o) => {
12848
- const i = os(o, r);
12837
+ const i = ns(o, r);
12849
12838
  return !t && typeof i == "function" && (t = !0), i;
12850
12839
  });
12851
12840
  if (t)
12852
12841
  return () => {
12853
12842
  for (let o = 0; o < n.length; o++) {
12854
12843
  const i = n[o];
12855
- typeof i == "function" ? i() : os(e[o], null);
12844
+ typeof i == "function" ? i() : ns(e[o], null);
12856
12845
  }
12857
12846
  };
12858
12847
  };
@@ -12868,7 +12857,7 @@ function dc(e) {
12868
12857
  return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === uy && "_payload" in e && fy(e._payload);
12869
12858
  }
12870
12859
  // @__NO_SIDE_EFFECTS__
12871
- function Vi(e) {
12860
+ function Li(e) {
12872
12861
  const r = /* @__PURE__ */ py(e), t = f.forwardRef((n, o) => {
12873
12862
  let { children: i, ...a } = n;
12874
12863
  dc(i) && typeof vn == "function" && (i = vn(i._payload));
@@ -12881,7 +12870,7 @@ function Vi(e) {
12881
12870
  });
12882
12871
  return t.displayName = `${e}.Slot`, t;
12883
12872
  }
12884
- var uc = /* @__PURE__ */ Vi("Slot");
12873
+ var uc = /* @__PURE__ */ Li("Slot");
12885
12874
  // @__NO_SIDE_EFFECTS__
12886
12875
  function py(e) {
12887
12876
  const r = f.forwardRef((t, n) => {
@@ -12914,13 +12903,13 @@ function yy(e) {
12914
12903
  let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
12915
12904
  return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
12916
12905
  }
12917
- const is = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, as = bn, st = (e, r) => (t) => {
12906
+ const os = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, is = bn, st = (e, r) => (t) => {
12918
12907
  var n;
12919
- if ((r == null ? void 0 : r.variants) == null) return as(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
12908
+ if ((r == null ? void 0 : r.variants) == null) return is(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
12920
12909
  const { variants: o, defaultVariants: i } = r, a = Object.keys(o).map((c) => {
12921
12910
  const d = t == null ? void 0 : t[c], u = i == null ? void 0 : i[c];
12922
12911
  if (d === null) return null;
12923
- const p = is(d) || is(u);
12912
+ const p = os(d) || os(u);
12924
12913
  return o[c][p];
12925
12914
  }), s = t && Object.entries(t).reduce((c, d) => {
12926
12915
  let [u, p] = d;
@@ -12942,7 +12931,7 @@ const is = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, as = bn, s
12942
12931
  p
12943
12932
  ] : c;
12944
12933
  }, []);
12945
- return as(e, a, l, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
12934
+ return is(e, a, l, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
12946
12935
  }, by = st(
12947
12936
  // Focus: no ring, no offset. Per-variant focus style mirrors the variant's
12948
12937
  // hover state (filled → slight bg darken, outline → border-ring, ghost →
@@ -13176,7 +13165,7 @@ function Py(e, r) {
13176
13165
  e && An.flushSync(() => e.dispatchEvent(r));
13177
13166
  }
13178
13167
  // @__NO_SIDE_EFFECTS__
13179
- function ss(e) {
13168
+ function as(e) {
13180
13169
  const r = /* @__PURE__ */ _y(e), t = f.forwardRef((n, o) => {
13181
13170
  const { children: i, ...a } = n, s = f.Children.toArray(i), l = s.find(My);
13182
13171
  if (l) {
@@ -13228,14 +13217,14 @@ function fc(e) {
13228
13217
  return /* @__PURE__ */ x(o, { scope: b, itemMap: y, collectionRef: g, children: S });
13229
13218
  };
13230
13219
  a.displayName = r;
13231
- const s = e + "CollectionSlot", l = /* @__PURE__ */ ss(s), c = Ce.forwardRef(
13220
+ const s = e + "CollectionSlot", l = /* @__PURE__ */ as(s), c = Ce.forwardRef(
13232
13221
  (m, b) => {
13233
13222
  const { scope: S, children: g } = m, y = i(s, S), C = Z(b, y.collectionRef);
13234
13223
  return /* @__PURE__ */ x(l, { ref: C, children: g });
13235
13224
  }
13236
13225
  );
13237
13226
  c.displayName = s;
13238
- const d = e + "CollectionItemSlot", u = "data-radix-collection-item", p = /* @__PURE__ */ ss(d), h = Ce.forwardRef(
13227
+ const d = e + "CollectionItemSlot", u = "data-radix-collection-item", p = /* @__PURE__ */ as(d), h = Ce.forwardRef(
13239
13228
  (m, b) => {
13240
13229
  const { scope: S, children: g, ...y } = m, C = Ce.useRef(null), w = Z(b, C), I = i(d, S);
13241
13230
  return Ce.useEffect(() => (I.itemMap.set(C, { ref: C, ...y }), () => void I.itemMap.delete(C))), /* @__PURE__ */ x(p, { [u]: "", ref: w, children: g });
@@ -13282,7 +13271,7 @@ function Vy(e, r = globalThis == null ? void 0 : globalThis.document) {
13282
13271
  return r.addEventListener("keydown", n, { capture: !0 }), () => r.removeEventListener("keydown", n, { capture: !0 });
13283
13272
  }, [t, r]);
13284
13273
  }
13285
- var By = "DismissableLayer", Ko = "dismissableLayer.update", $y = "dismissableLayer.pointerDownOutside", Uy = "dismissableLayer.focusOutside", ls, pc = f.createContext({
13274
+ var By = "DismissableLayer", Ko = "dismissableLayer.update", $y = "dismissableLayer.pointerDownOutside", Uy = "dismissableLayer.focusOutside", ss, pc = f.createContext({
13286
13275
  layers: /* @__PURE__ */ new Set(),
13287
13276
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
13288
13277
  branches: /* @__PURE__ */ new Set()
@@ -13307,11 +13296,11 @@ var By = "DismissableLayer", Ko = "dismissableLayer.update", $y = "dismissableLa
13307
13296
  g === c.layers.size - 1 && (n == null || n(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
13308
13297
  }, p), f.useEffect(() => {
13309
13298
  if (d)
13310
- return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (ls = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), cs(), () => {
13311
- t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = ls);
13299
+ return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (ss = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), ls(), () => {
13300
+ t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = ss);
13312
13301
  };
13313
13302
  }, [d, p, t, c]), f.useEffect(() => () => {
13314
- d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), cs());
13303
+ d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), ls());
13315
13304
  }, [d, c]), f.useEffect(() => {
13316
13305
  const E = () => h({});
13317
13306
  return document.addEventListener(Ko, E), () => document.removeEventListener(Ko, E);
@@ -13390,7 +13379,7 @@ function qy(e, r = globalThis == null ? void 0 : globalThis.document) {
13390
13379
  onBlurCapture: () => n.current = !1
13391
13380
  };
13392
13381
  }
13393
- function cs() {
13382
+ function ls() {
13394
13383
  const e = new CustomEvent(Ko);
13395
13384
  document.dispatchEvent(e);
13396
13385
  }
@@ -13402,16 +13391,16 @@ var wo = 0;
13402
13391
  function hc() {
13403
13392
  f.useEffect(() => {
13404
13393
  const e = document.querySelectorAll("[data-radix-focus-guard]");
13405
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? ds()), document.body.insertAdjacentElement("beforeend", e[1] ?? ds()), wo++, () => {
13394
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? cs()), document.body.insertAdjacentElement("beforeend", e[1] ?? cs()), wo++, () => {
13406
13395
  wo === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((r) => r.remove()), wo--;
13407
13396
  };
13408
13397
  }, []);
13409
13398
  }
13410
- function ds() {
13399
+ function cs() {
13411
13400
  const e = document.createElement("span");
13412
13401
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
13413
13402
  }
13414
- var xo = "focusScope.autoFocusOnMount", Io = "focusScope.autoFocusOnUnmount", us = { bubbles: !1, cancelable: !0 }, Wy = "FocusScope", Bi = f.forwardRef((e, r) => {
13403
+ var xo = "focusScope.autoFocusOnMount", Io = "focusScope.autoFocusOnUnmount", ds = { bubbles: !1, cancelable: !0 }, Wy = "FocusScope", Vi = f.forwardRef((e, r) => {
13415
13404
  const {
13416
13405
  loop: t = !1,
13417
13406
  trapped: n = !1,
@@ -13450,16 +13439,16 @@ var xo = "focusScope.autoFocusOnMount", Io = "focusScope.autoFocusOnUnmount", us
13450
13439
  }
13451
13440
  }, [n, s, h.paused]), f.useEffect(() => {
13452
13441
  if (s) {
13453
- ps.add(h);
13442
+ fs.add(h);
13454
13443
  const m = document.activeElement;
13455
13444
  if (!s.contains(m)) {
13456
- const S = new CustomEvent(xo, us);
13445
+ const S = new CustomEvent(xo, ds);
13457
13446
  s.addEventListener(xo, c), s.dispatchEvent(S), S.defaultPrevented || (Gy(Qy(gc(s)), { select: !0 }), document.activeElement === m && tt(s));
13458
13447
  }
13459
13448
  return () => {
13460
13449
  s.removeEventListener(xo, c), setTimeout(() => {
13461
- const S = new CustomEvent(Io, us);
13462
- s.addEventListener(Io, d), s.dispatchEvent(S), S.defaultPrevented || tt(m ?? document.body, { select: !0 }), s.removeEventListener(Io, d), ps.remove(h);
13450
+ const S = new CustomEvent(Io, ds);
13451
+ s.addEventListener(Io, d), s.dispatchEvent(S), S.defaultPrevented || tt(m ?? document.body, { select: !0 }), s.removeEventListener(Io, d), fs.remove(h);
13463
13452
  }, 0);
13464
13453
  };
13465
13454
  }
@@ -13477,14 +13466,14 @@ var xo = "focusScope.autoFocusOnMount", Io = "focusScope.autoFocusOnUnmount", us
13477
13466
  );
13478
13467
  return /* @__PURE__ */ x(W.div, { tabIndex: -1, ...a, ref: p, onKeyDown: v });
13479
13468
  });
13480
- Bi.displayName = Wy;
13469
+ Vi.displayName = Wy;
13481
13470
  function Gy(e, { select: r = !1 } = {}) {
13482
13471
  const t = document.activeElement;
13483
13472
  for (const n of e)
13484
13473
  if (tt(n, { select: r }), document.activeElement !== t) return;
13485
13474
  }
13486
13475
  function Yy(e) {
13487
- const r = gc(e), t = fs(r, e), n = fs(r.reverse(), e);
13476
+ const r = gc(e), t = us(r, e), n = us(r.reverse(), e);
13488
13477
  return [t, n];
13489
13478
  }
13490
13479
  function gc(e) {
@@ -13497,7 +13486,7 @@ function gc(e) {
13497
13486
  for (; t.nextNode(); ) r.push(t.currentNode);
13498
13487
  return r;
13499
13488
  }
13500
- function fs(e, r) {
13489
+ function us(e, r) {
13501
13490
  for (const t of e)
13502
13491
  if (!Ky(t, { upTo: r })) return t;
13503
13492
  }
@@ -13519,21 +13508,21 @@ function tt(e, { select: r = !1 } = {}) {
13519
13508
  e.focus({ preventScroll: !0 }), e !== t && Xy(e) && r && e.select();
13520
13509
  }
13521
13510
  }
13522
- var ps = Zy();
13511
+ var fs = Zy();
13523
13512
  function Zy() {
13524
13513
  let e = [];
13525
13514
  return {
13526
13515
  add(r) {
13527
13516
  const t = e[0];
13528
- r !== t && (t == null || t.pause()), e = ms(e, r), e.unshift(r);
13517
+ r !== t && (t == null || t.pause()), e = ps(e, r), e.unshift(r);
13529
13518
  },
13530
13519
  remove(r) {
13531
13520
  var t;
13532
- e = ms(e, r), (t = e[0]) == null || t.resume();
13521
+ e = ps(e, r), (t = e[0]) == null || t.resume();
13533
13522
  }
13534
13523
  };
13535
13524
  }
13536
- function ms(e, r) {
13525
+ function ps(e, r) {
13537
13526
  const t = [...e], n = t.indexOf(r);
13538
13527
  return n !== -1 && t.splice(n, 1), t;
13539
13528
  }
@@ -13569,22 +13558,22 @@ function Ye(e) {
13569
13558
  function Qt(e) {
13570
13559
  return e.split("-")[1];
13571
13560
  }
13572
- function $i(e) {
13561
+ function Bi(e) {
13573
13562
  return e === "x" ? "y" : "x";
13574
13563
  }
13575
- function Ui(e) {
13564
+ function $i(e) {
13576
13565
  return e === "y" ? "height" : "width";
13577
13566
  }
13578
13567
  function ke(e) {
13579
13568
  const r = e[0];
13580
13569
  return r === "t" || r === "b" ? "y" : "x";
13581
13570
  }
13582
- function ji(e) {
13583
- return $i(ke(e));
13571
+ function Ui(e) {
13572
+ return Bi(ke(e));
13584
13573
  }
13585
13574
  function nb(e, r, t) {
13586
13575
  t === void 0 && (t = !1);
13587
- const n = Qt(e), o = ji(e), i = Ui(o);
13576
+ const n = Qt(e), o = Ui(e), i = $i(o);
13588
13577
  let a = o === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
13589
13578
  return r.reference[i] > r.floating[i] && (a = Sn(a)), [a, Sn(a)];
13590
13579
  }
@@ -13595,12 +13584,12 @@ function ob(e) {
13595
13584
  function Zo(e) {
13596
13585
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
13597
13586
  }
13598
- const hs = ["left", "right"], gs = ["right", "left"], ib = ["top", "bottom"], ab = ["bottom", "top"];
13587
+ const ms = ["left", "right"], hs = ["right", "left"], ib = ["top", "bottom"], ab = ["bottom", "top"];
13599
13588
  function sb(e, r, t) {
13600
13589
  switch (e) {
13601
13590
  case "top":
13602
13591
  case "bottom":
13603
- return t ? r ? gs : hs : r ? hs : gs;
13592
+ return t ? r ? hs : ms : r ? ms : hs;
13604
13593
  case "left":
13605
13594
  case "right":
13606
13595
  return r ? ib : ab;
@@ -13652,12 +13641,12 @@ function wn(e) {
13652
13641
  y: t
13653
13642
  };
13654
13643
  }
13655
- function ys(e, r, t) {
13644
+ function gs(e, r, t) {
13656
13645
  let {
13657
13646
  reference: n,
13658
13647
  floating: o
13659
13648
  } = e;
13660
- const i = ke(r), a = ji(r), s = Ui(a), l = Ye(r), c = i === "y", d = n.x + n.width / 2 - o.width / 2, u = n.y + n.height / 2 - o.height / 2, p = n[s] / 2 - o[s] / 2;
13649
+ const i = ke(r), a = Ui(r), s = $i(a), l = Ye(r), c = i === "y", d = n.x + n.width / 2 - o.width / 2, u = n.y + n.height / 2 - o.height / 2, p = n[s] / 2 - o[s] / 2;
13661
13650
  let h;
13662
13651
  switch (l) {
13663
13652
  case "top":
@@ -13762,7 +13751,7 @@ const db = 50, ub = async (e, r, t) => {
13762
13751
  }), {
13763
13752
  x: d,
13764
13753
  y: u
13765
- } = ys(c, n, l), p = n, h = 0;
13754
+ } = gs(c, n, l), p = n, h = 0;
13766
13755
  const v = {};
13767
13756
  for (let m = 0; m < i.length; m++) {
13768
13757
  const b = i[m];
@@ -13800,7 +13789,7 @@ const db = 50, ub = async (e, r, t) => {
13800
13789
  }) : I.rects), {
13801
13790
  x: d,
13802
13791
  y: u
13803
- } = ys(c, p, l)), m = -1);
13792
+ } = gs(c, p, l)), m = -1);
13804
13793
  }
13805
13794
  return {
13806
13795
  x: d,
@@ -13830,7 +13819,7 @@ const db = 50, ub = async (e, r, t) => {
13830
13819
  const u = yc(d), p = {
13831
13820
  x: t,
13832
13821
  y: n
13833
- }, h = ji(o), v = Ui(h), m = await a.getDimensions(c), b = h === "y", S = b ? "top" : "left", g = b ? "bottom" : "right", y = b ? "clientHeight" : "clientWidth", C = i.reference[v] + i.reference[h] - p[h] - i.floating[v], w = p[h] - i.reference[h], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
13822
+ }, h = Ui(o), v = $i(h), m = await a.getDimensions(c), b = h === "y", S = b ? "top" : "left", g = b ? "bottom" : "right", y = b ? "clientHeight" : "clientWidth", C = i.reference[v] + i.reference[h] - p[h] - i.floating[v], w = p[h] - i.reference[h], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
13834
13823
  let E = I ? I[y] : 0;
13835
13824
  (!E || !await (a.isElement == null ? void 0 : a.isElement(I))) && (E = s.floating[y] || i.floating[v]);
13836
13825
  const A = C / 2 - w / 2, T = E / 2 - m[v] / 2 - 1, R = ot(u[S], T), D = ot(u[g], T), P = R, O = E - m[v] - D, L = E / 2 - m[v] / 2 + A, q = Xo(P, L, O), N = !l.arrow && Qt(o) != null && L !== q && i.reference[v] / 2 - (L < P ? R : D) - m[v] / 2 < 0, M = N ? L < P ? L - P : L - O : 0;
@@ -13928,7 +13917,7 @@ const db = 50, ub = async (e, r, t) => {
13928
13917
  }
13929
13918
  };
13930
13919
  };
13931
- function bs(e, r) {
13920
+ function ys(e, r) {
13932
13921
  return {
13933
13922
  top: e.top - r.height,
13934
13923
  right: e.right - r.width,
@@ -13936,7 +13925,7 @@ function bs(e, r) {
13936
13925
  left: e.left - r.width
13937
13926
  };
13938
13927
  }
13939
- function vs(e) {
13928
+ function bs(e) {
13940
13929
  return tb.some((r) => e[r] >= 0);
13941
13930
  }
13942
13931
  const mb = function(e) {
@@ -13956,11 +13945,11 @@ const mb = function(e) {
13956
13945
  const a = await n.detectOverflow(r, {
13957
13946
  ...i,
13958
13947
  elementContext: "reference"
13959
- }), s = bs(a, t.reference);
13948
+ }), s = ys(a, t.reference);
13960
13949
  return {
13961
13950
  data: {
13962
13951
  referenceHiddenOffsets: s,
13963
- referenceHidden: vs(s)
13952
+ referenceHidden: bs(s)
13964
13953
  }
13965
13954
  };
13966
13955
  }
@@ -13968,11 +13957,11 @@ const mb = function(e) {
13968
13957
  const a = await n.detectOverflow(r, {
13969
13958
  ...i,
13970
13959
  altBoundary: !0
13971
- }), s = bs(a, t.floating);
13960
+ }), s = ys(a, t.floating);
13972
13961
  return {
13973
13962
  data: {
13974
13963
  escapedOffsets: s,
13975
- escaped: vs(s)
13964
+ escaped: bs(s)
13976
13965
  }
13977
13966
  };
13978
13967
  }
@@ -14060,7 +14049,7 @@ const gb = function(e) {
14060
14049
  } = Ge(e, r), d = {
14061
14050
  x: t,
14062
14051
  y: n
14063
- }, u = await i.detectOverflow(r, c), p = ke(Ye(o)), h = $i(p);
14052
+ }, u = await i.detectOverflow(r, c), p = ke(Ye(o)), h = Bi(p);
14064
14053
  let v = d[h], m = d[p];
14065
14054
  if (a) {
14066
14055
  const S = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", y = v + u[S], C = v - u[g];
@@ -14105,7 +14094,7 @@ const gb = function(e) {
14105
14094
  } = Ge(e, r), d = {
14106
14095
  x: t,
14107
14096
  y: n
14108
- }, u = ke(o), p = $i(u);
14097
+ }, u = ke(o), p = Bi(u);
14109
14098
  let h = d[p], v = d[u];
14110
14099
  const m = Ge(s, r), b = typeof m == "number" ? {
14111
14100
  mainAxis: m,
@@ -14194,7 +14183,7 @@ function De(e) {
14194
14183
  function Ze(e) {
14195
14184
  return Ln() ? e instanceof HTMLElement || e instanceof xe(e).HTMLElement : !1;
14196
14185
  }
14197
- function Cs(e) {
14186
+ function vs(e) {
14198
14187
  return !Ln() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof xe(e).ShadowRoot;
14199
14188
  }
14200
14189
  function Nr(e) {
@@ -14223,14 +14212,14 @@ function Vn(e) {
14223
14212
  }
14224
14213
  const Sb = /transform|translate|scale|rotate|perspective|filter/, wb = /paint|layout|strict|content/, pt = (e) => !!e && e !== "none";
14225
14214
  let Eo;
14226
- function zi(e) {
14215
+ function ji(e) {
14227
14216
  const r = De(e) ? Pe(e) : e;
14228
- return pt(r.transform) || pt(r.translate) || pt(r.scale) || pt(r.rotate) || pt(r.perspective) || !Hi() && (pt(r.backdropFilter) || pt(r.filter)) || Sb.test(r.willChange || "") || wb.test(r.contain || "");
14217
+ return pt(r.transform) || pt(r.translate) || pt(r.scale) || pt(r.rotate) || pt(r.perspective) || !zi() && (pt(r.backdropFilter) || pt(r.filter)) || Sb.test(r.willChange || "") || wb.test(r.contain || "");
14229
14218
  }
14230
14219
  function xb(e) {
14231
14220
  let r = it(e);
14232
14221
  for (; Ze(r) && !Ht(r); ) {
14233
- if (zi(r))
14222
+ if (ji(r))
14234
14223
  return r;
14235
14224
  if (Vn(r))
14236
14225
  return null;
@@ -14238,7 +14227,7 @@ function xb(e) {
14238
14227
  }
14239
14228
  return null;
14240
14229
  }
14241
- function Hi() {
14230
+ function zi() {
14242
14231
  return Eo == null && (Eo = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Eo;
14243
14232
  }
14244
14233
  function Ht(e) {
@@ -14263,10 +14252,10 @@ function it(e) {
14263
14252
  // Step into the shadow DOM of the parent of a slotted node.
14264
14253
  e.assignedSlot || // DOM Element detected.
14265
14254
  e.parentNode || // ShadowRoot detected.
14266
- Cs(e) && e.host || // Fallback.
14255
+ vs(e) && e.host || // Fallback.
14267
14256
  $e(e)
14268
14257
  );
14269
- return Cs(r) ? r.host : r;
14258
+ return vs(r) ? r.host : r;
14270
14259
  }
14271
14260
  function Sc(e) {
14272
14261
  const r = it(e);
@@ -14295,11 +14284,11 @@ function wc(e) {
14295
14284
  $: s
14296
14285
  };
14297
14286
  }
14298
- function qi(e) {
14287
+ function Hi(e) {
14299
14288
  return De(e) ? e : e.contextElement;
14300
14289
  }
14301
14290
  function $t(e) {
14302
- const r = qi(e);
14291
+ const r = Hi(e);
14303
14292
  if (!Ze(r))
14304
14293
  return Le(1);
14305
14294
  const t = r.getBoundingClientRect(), {
@@ -14316,7 +14305,7 @@ function $t(e) {
14316
14305
  const Ib = /* @__PURE__ */ Le(0);
14317
14306
  function xc(e) {
14318
14307
  const r = xe(e);
14319
- return !Hi() || !r.visualViewport ? Ib : {
14308
+ return !zi() || !r.visualViewport ? Ib : {
14320
14309
  x: r.visualViewport.offsetLeft,
14321
14310
  y: r.visualViewport.offsetTop
14322
14311
  };
@@ -14326,7 +14315,7 @@ function Eb(e, r, t) {
14326
14315
  }
14327
14316
  function xt(e, r, t, n) {
14328
14317
  r === void 0 && (r = !1), t === void 0 && (t = !1);
14329
- const o = e.getBoundingClientRect(), i = qi(e);
14318
+ const o = e.getBoundingClientRect(), i = Hi(e);
14330
14319
  let a = Le(1);
14331
14320
  r && (n ? De(n) && (a = $t(n)) : a = $t(e));
14332
14321
  const s = Eb(i, t, n) ? xc(i) : Le(0);
@@ -14398,20 +14387,20 @@ function Fb(e) {
14398
14387
  y: s
14399
14388
  };
14400
14389
  }
14401
- const Ss = 25;
14390
+ const Cs = 25;
14402
14391
  function Rb(e, r) {
14403
14392
  const t = xe(e), n = $e(e), o = t.visualViewport;
14404
14393
  let i = n.clientWidth, a = n.clientHeight, s = 0, l = 0;
14405
14394
  if (o) {
14406
14395
  i = o.width, a = o.height;
14407
- const d = Hi();
14396
+ const d = zi();
14408
14397
  (!d || d && r === "fixed") && (s = o.offsetLeft, l = o.offsetTop);
14409
14398
  }
14410
14399
  const c = $n(n);
14411
14400
  if (c <= 0) {
14412
14401
  const d = n.ownerDocument, u = d.body, p = getComputedStyle(u), h = d.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, v = Math.abs(n.clientWidth - u.clientWidth - h);
14413
- v <= Ss && (i -= v);
14414
- } else c <= Ss && (i += c);
14402
+ v <= Cs && (i -= v);
14403
+ } else c <= Cs && (i += c);
14415
14404
  return {
14416
14405
  width: i,
14417
14406
  height: a,
@@ -14428,7 +14417,7 @@ function Db(e, r) {
14428
14417
  y: c
14429
14418
  };
14430
14419
  }
14431
- function ws(e, r, t) {
14420
+ function Ss(e, r, t) {
14432
14421
  let n;
14433
14422
  if (r === "viewport")
14434
14423
  n = Rb(e, t);
@@ -14459,7 +14448,7 @@ function Pb(e, r) {
14459
14448
  const i = Pe(e).position === "fixed";
14460
14449
  let a = i ? it(e) : e;
14461
14450
  for (; De(a) && !Ht(a); ) {
14462
- const s = Pe(a), l = zi(a);
14451
+ const s = Pe(a), l = ji(a);
14463
14452
  !l && s.position === "fixed" && (o = null), (i ? !l && !o : !l && s.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Nr(a) && !l && Ec(e, a)) ? n = n.filter((d) => d !== a) : o = s, a = it(a);
14464
14453
  }
14465
14454
  return r.set(e, n), n;
@@ -14471,10 +14460,10 @@ function _b(e) {
14471
14460
  rootBoundary: n,
14472
14461
  strategy: o
14473
14462
  } = e;
14474
- const a = [...t === "clippingAncestors" ? Vn(r) ? [] : Pb(r, this._c) : [].concat(t), n], s = ws(r, a[0], o);
14463
+ const a = [...t === "clippingAncestors" ? Vn(r) ? [] : Pb(r, this._c) : [].concat(t), n], s = Ss(r, a[0], o);
14475
14464
  let l = s.top, c = s.right, d = s.bottom, u = s.left;
14476
14465
  for (let p = 1; p < a.length; p++) {
14477
- const h = ws(r, a[p], o);
14466
+ const h = Ss(r, a[p], o);
14478
14467
  l = Se(h.top, l), c = ot(h.right, c), d = ot(h.bottom, d), u = Se(h.left, u);
14479
14468
  }
14480
14469
  return {
@@ -14521,7 +14510,7 @@ function Mb(e, r, t) {
14521
14510
  function To(e) {
14522
14511
  return Pe(e).position === "static";
14523
14512
  }
14524
- function xs(e, r) {
14513
+ function ws(e, r) {
14525
14514
  if (!Ze(e) || Pe(e).position === "fixed")
14526
14515
  return null;
14527
14516
  if (r)
@@ -14542,10 +14531,10 @@ function Tc(e, r) {
14542
14531
  }
14543
14532
  return t;
14544
14533
  }
14545
- let n = xs(e, r);
14534
+ let n = ws(e, r);
14546
14535
  for (; n && Cb(n) && To(n); )
14547
- n = xs(n, r);
14548
- return n && Ht(n) && To(n) && !zi(n) ? t : n || xb(e) || t;
14536
+ n = ws(n, r);
14537
+ return n && Ht(n) && To(n) && !ji(n) ? t : n || xb(e) || t;
14549
14538
  }
14550
14539
  const Nb = async function(e) {
14551
14540
  const r = this.getOffsetParent || Tc, t = this.getDimensions, n = await t(e.floating);
@@ -14631,7 +14620,7 @@ function Bb(e, r, t, n) {
14631
14620
  elementResize: a = typeof ResizeObserver == "function",
14632
14621
  layoutShift: s = typeof IntersectionObserver == "function",
14633
14622
  animationFrame: l = !1
14634
- } = n, c = qi(e), d = o || i ? [...c ? Fr(c) : [], ...r ? Fr(r) : []] : [];
14623
+ } = n, c = Hi(e), d = o || i ? [...c ? Fr(c) : [], ...r ? Fr(r) : []] : [];
14635
14624
  d.forEach((S) => {
14636
14625
  o && S.addEventListener("scroll", t, {
14637
14626
  passive: !0
@@ -14659,7 +14648,7 @@ function Bb(e, r, t, n) {
14659
14648
  }), u == null || u(), (S = h) == null || S.disconnect(), h = null, l && cancelAnimationFrame(v);
14660
14649
  };
14661
14650
  }
14662
- const OI = bc, $b = gb, Ub = yb, jb = pb, zb = vb, Hb = mb, Is = fb, qb = bb, Wb = (e, r, t) => {
14651
+ const OI = bc, $b = gb, Ub = yb, jb = pb, zb = vb, Hb = mb, xs = fb, qb = bb, Wb = (e, r, t) => {
14663
14652
  const n = /* @__PURE__ */ new Map(), o = {
14664
14653
  platform: Lb,
14665
14654
  ...t
@@ -14707,7 +14696,7 @@ function xn(e, r) {
14707
14696
  function Fc(e) {
14708
14697
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
14709
14698
  }
14710
- function Es(e, r) {
14699
+ function Is(e, r) {
14711
14700
  const t = Fc(e);
14712
14701
  return Math.round(r * t) / t;
14713
14702
  }
@@ -14798,7 +14787,7 @@ function Kb(e) {
14798
14787
  };
14799
14788
  if (!N.floating)
14800
14789
  return _;
14801
- const B = Es(N.floating, d.x), J = Es(N.floating, d.y);
14790
+ const B = Is(N.floating, d.x), J = Is(N.floating, d.y);
14802
14791
  return s ? {
14803
14792
  ..._,
14804
14793
  transform: "translate(" + B + "px, " + J + "px)",
@@ -14831,10 +14820,10 @@ const Xb = (e) => {
14831
14820
  element: n,
14832
14821
  padding: o
14833
14822
  } = typeof e == "function" ? e(t) : e;
14834
- return n && r(n) ? n.current != null ? Is({
14823
+ return n && r(n) ? n.current != null ? xs({
14835
14824
  element: n.current,
14836
14825
  padding: o
14837
- }).fn(t) : {} : n ? Is({
14826
+ }).fn(t) : {} : n ? xs({
14838
14827
  element: n,
14839
14828
  padding: o
14840
14829
  }).fn(t) : {};
@@ -14925,11 +14914,11 @@ function Dc(e) {
14925
14914
  t(void 0);
14926
14915
  }, [e]), r;
14927
14916
  }
14928
- var Wi = "Popper", [Pc, er] = Xe(Wi), [av, _c] = Pc(Wi), Oc = (e) => {
14917
+ var qi = "Popper", [Pc, er] = Xe(qi), [av, _c] = Pc(qi), Oc = (e) => {
14929
14918
  const { __scopePopper: r, children: t } = e, [n, o] = f.useState(null);
14930
14919
  return /* @__PURE__ */ x(av, { scope: r, anchor: n, onAnchorChange: o, children: t });
14931
14920
  };
14932
- Oc.displayName = Wi;
14921
+ Oc.displayName = qi;
14933
14922
  var Mc = "PopperAnchor", Nc = f.forwardRef(
14934
14923
  (e, r) => {
14935
14924
  const { __scopePopper: t, virtualRef: n, ...o } = e, i = _c(Mc, t), a = f.useRef(null), s = Z(r, a), l = f.useRef(null);
@@ -14940,7 +14929,7 @@ var Mc = "PopperAnchor", Nc = f.forwardRef(
14940
14929
  }
14941
14930
  );
14942
14931
  Nc.displayName = Mc;
14943
- var Gi = "PopperContent", [sv, lv] = Pc(Gi), kc = f.forwardRef(
14932
+ var Wi = "PopperContent", [sv, lv] = Pc(Wi), kc = f.forwardRef(
14944
14933
  (e, r) => {
14945
14934
  var k, G, ae, K, Y, X;
14946
14935
  const {
@@ -14958,7 +14947,7 @@ var Gi = "PopperContent", [sv, lv] = Pc(Gi), kc = f.forwardRef(
14958
14947
  updatePositionStrategy: h = "optimized",
14959
14948
  onPlaced: v,
14960
14949
  ...m
14961
- } = e, b = _c(Gi, t), [S, g] = f.useState(null), y = Z(r, (F) => g(F)), [C, w] = f.useState(null), I = Dc(C), E = (I == null ? void 0 : I.width) ?? 0, A = (I == null ? void 0 : I.height) ?? 0, T = n + (i !== "center" ? "-" + i : ""), R = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, D = Array.isArray(c) ? c : [c], P = D.length > 0, O = {
14950
+ } = e, b = _c(Wi, t), [S, g] = f.useState(null), y = Z(r, (F) => g(F)), [C, w] = f.useState(null), I = Dc(C), E = (I == null ? void 0 : I.width) ?? 0, A = (I == null ? void 0 : I.height) ?? 0, T = n + (i !== "center" ? "-" + i : ""), R = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, D = Array.isArray(c) ? c : [c], P = D.length > 0, O = {
14962
14951
  padding: R,
14963
14952
  boundary: D.filter(dv),
14964
14953
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -15054,7 +15043,7 @@ var Gi = "PopperContent", [sv, lv] = Pc(Gi), kc = f.forwardRef(
15054
15043
  );
15055
15044
  }
15056
15045
  );
15057
- kc.displayName = Gi;
15046
+ kc.displayName = Wi;
15058
15047
  var Lc = "PopperArrow", cv = {
15059
15048
  top: "bottom",
15060
15049
  right: "left",
@@ -15123,7 +15112,7 @@ function Bc(e) {
15123
15112
  const [r, t = "center"] = e.split("-");
15124
15113
  return [r, t];
15125
15114
  }
15126
- var Yi = Oc, Un = Nc, Ki = kc, Xi = Vc, fv = "Portal", jn = f.forwardRef((e, r) => {
15115
+ var Gi = Oc, Un = Nc, Yi = kc, Ki = Vc, fv = "Portal", jn = f.forwardRef((e, r) => {
15127
15116
  var s;
15128
15117
  const { container: t, ...n } = e, [o, i] = f.useState(!1);
15129
15118
  pe(() => i(!0), []);
@@ -15455,7 +15444,7 @@ function Mv(e, r) {
15455
15444
  })[0];
15456
15445
  return t.callback = r, t.facade;
15457
15446
  }
15458
- var Nv = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Ts = /* @__PURE__ */ new WeakMap();
15447
+ var Nv = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Es = /* @__PURE__ */ new WeakMap();
15459
15448
  function kv(e, r) {
15460
15449
  var t = Mv(null, function(n) {
15461
15450
  return e.forEach(function(o) {
@@ -15463,7 +15452,7 @@ function kv(e, r) {
15463
15452
  });
15464
15453
  });
15465
15454
  return Nv(function() {
15466
- var n = Ts.get(t);
15455
+ var n = Es.get(t);
15467
15456
  if (n) {
15468
15457
  var o = new Set(n), i = new Set(e), a = t.current;
15469
15458
  o.forEach(function(s) {
@@ -15472,7 +15461,7 @@ function kv(e, r) {
15472
15461
  o.has(s) || Do(s, a);
15473
15462
  });
15474
15463
  }
15475
- Ts.set(t, e);
15464
+ Es.set(t, e);
15476
15465
  }, [e]), t;
15477
15466
  }
15478
15467
  function Lv(e) {
@@ -15682,13 +15671,13 @@ var qv = function() {
15682
15671
  `).concat(Ov, ": ").concat(s, `px;
15683
15672
  }
15684
15673
  `);
15685
- }, As = function() {
15674
+ }, Ts = function() {
15686
15675
  var e = parseInt(document.body.getAttribute(Ut) || "0", 10);
15687
15676
  return isFinite(e) ? e : 0;
15688
15677
  }, Qv = function() {
15689
15678
  f.useEffect(function() {
15690
- return document.body.setAttribute(Ut, (As() + 1).toString()), function() {
15691
- var e = As() - 1;
15679
+ return document.body.setAttribute(Ut, (Ts() + 1).toString()), function() {
15680
+ var e = Ts() - 1;
15692
15681
  e <= 0 ? document.body.removeAttribute(Ut) : document.body.setAttribute(Ut, e.toString());
15693
15682
  };
15694
15683
  }, []);
@@ -15726,7 +15715,7 @@ var _t = ei ? { passive: !1 } : !1, eC = function(e) {
15726
15715
  return Qc(e, "overflowY");
15727
15716
  }, rC = function(e) {
15728
15717
  return Qc(e, "overflowX");
15729
- }, Fs = function(e, r) {
15718
+ }, As = function(e, r) {
15730
15719
  var t = r.ownerDocument, n = r;
15731
15720
  do {
15732
15721
  typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
@@ -15776,9 +15765,9 @@ var _t = ei ? { passive: !1 } : !1, eC = function(e) {
15776
15765
  return (d && Math.abs(u) < 1 || !d && Math.abs(p) < 1) && (c = !0), c;
15777
15766
  }, nn = function(e) {
15778
15767
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
15779
- }, Rs = function(e) {
15768
+ }, Fs = function(e) {
15780
15769
  return [e.deltaX, e.deltaY];
15781
- }, Ds = function(e) {
15770
+ }, Rs = function(e) {
15782
15771
  return e && "current" in e ? e.current : e;
15783
15772
  }, sC = function(e, r) {
15784
15773
  return e[0] === r[0] && e[1] === r[1];
@@ -15795,7 +15784,7 @@ function dC(e) {
15795
15784
  }, [e]), f.useEffect(function() {
15796
15785
  if (e.inert) {
15797
15786
  document.body.classList.add("block-interactivity-".concat(o));
15798
- var m = Pv([e.lockRef.current], (e.shards || []).map(Ds), !0).filter(Boolean);
15787
+ var m = Pv([e.lockRef.current], (e.shards || []).map(Rs), !0).filter(Boolean);
15799
15788
  return m.forEach(function(b) {
15800
15789
  return b.classList.add("allow-interactivity-".concat(o));
15801
15790
  }), function() {
@@ -15814,10 +15803,10 @@ function dC(e) {
15814
15803
  var A = window.getSelection(), T = A && A.anchorNode, R = T ? T === I || T.contains(I) : !1;
15815
15804
  if (R)
15816
15805
  return !1;
15817
- var D = Fs(E, I);
15806
+ var D = As(E, I);
15818
15807
  if (!D)
15819
15808
  return !0;
15820
- if (D ? w = E : (w = E === "v" ? "h" : "v", D = Fs(E, I)), !D)
15809
+ if (D ? w = E : (w = E === "v" ? "h" : "v", D = As(E, I)), !D)
15821
15810
  return !1;
15822
15811
  if (!n.current && "changedTouches" in m && (y || C) && (n.current = w), !w)
15823
15812
  return !0;
@@ -15826,7 +15815,7 @@ function dC(e) {
15826
15815
  }, []), l = f.useCallback(function(m) {
15827
15816
  var b = m;
15828
15817
  if (!(!Ot.length || Ot[Ot.length - 1] !== i)) {
15829
- var S = "deltaY" in b ? Rs(b) : nn(b), g = r.current.filter(function(w) {
15818
+ var S = "deltaY" in b ? Fs(b) : nn(b), g = r.current.filter(function(w) {
15830
15819
  return w.name === b.type && (w.target === b.target || b.target === w.shadowParent) && sC(w.delta, S);
15831
15820
  })[0];
15832
15821
  if (g && g.should) {
@@ -15834,7 +15823,7 @@ function dC(e) {
15834
15823
  return;
15835
15824
  }
15836
15825
  if (!g) {
15837
- var y = (a.current.shards || []).map(Ds).filter(Boolean).filter(function(w) {
15826
+ var y = (a.current.shards || []).map(Rs).filter(Boolean).filter(function(w) {
15838
15827
  return w.contains(b.target);
15839
15828
  }), C = y.length > 0 ? s(b, y[0]) : !a.current.noIsolation;
15840
15829
  C && b.cancelable && b.preventDefault();
@@ -15850,7 +15839,7 @@ function dC(e) {
15850
15839
  }, []), d = f.useCallback(function(m) {
15851
15840
  t.current = nn(m), n.current = void 0;
15852
15841
  }, []), u = f.useCallback(function(m) {
15853
- c(m.type, Rs(m), m.target, s(m, e.lockRef.current));
15842
+ c(m.type, Fs(m), m.target, s(m, e.lockRef.current));
15854
15843
  }, []), p = f.useCallback(function(m) {
15855
15844
  c(m.type, nn(m), m.target, s(m, e.lockRef.current));
15856
15845
  }, []);
@@ -15879,10 +15868,10 @@ function uC(e) {
15879
15868
  return r;
15880
15869
  }
15881
15870
  const fC = $v(Xc, dC);
15882
- var Zi = f.forwardRef(function(e, r) {
15871
+ var Xi = f.forwardRef(function(e, r) {
15883
15872
  return f.createElement(zn, Me({}, e, { ref: r, sideCar: fC }));
15884
15873
  });
15885
- Zi.classNames = zn.classNames;
15874
+ Xi.classNames = zn.classNames;
15886
15875
  const Hn = f.forwardRef(
15887
15876
  ({ children: e }, r) => {
15888
15877
  const { scopeProps: t } = iy();
@@ -15959,7 +15948,7 @@ var qn = "Popover", [td] = Xe(qn, [
15959
15948
  onChange: i,
15960
15949
  caller: qn
15961
15950
  });
15962
- return /* @__PURE__ */ x(Yi, { ...s, children: /* @__PURE__ */ x(
15951
+ return /* @__PURE__ */ x(Gi, { ...s, children: /* @__PURE__ */ x(
15963
15952
  vC,
15964
15953
  {
15965
15954
  scope: r,
@@ -16003,13 +15992,13 @@ var id = "PopoverTrigger", ad = f.forwardRef(
16003
15992
  }
16004
15993
  );
16005
15994
  ad.displayName = id;
16006
- var Qi = "PopoverPortal", [CC, SC] = td(Qi, {
15995
+ var Zi = "PopoverPortal", [CC, SC] = td(Zi, {
16007
15996
  forceMount: void 0
16008
15997
  }), sd = (e) => {
16009
- const { __scopePopover: r, forceMount: t, children: n, container: o } = e, i = lt(Qi, r);
15998
+ const { __scopePopover: r, forceMount: t, children: n, container: o } = e, i = lt(Zi, r);
16010
15999
  return /* @__PURE__ */ x(CC, { scope: r, forceMount: t, children: /* @__PURE__ */ x(Ue, { present: t || i.open, children: /* @__PURE__ */ x(jn, { asChild: !0, container: o, children: n }) }) });
16011
16000
  };
16012
- sd.displayName = Qi;
16001
+ sd.displayName = Zi;
16013
16002
  var qt = "PopoverContent", ld = f.forwardRef(
16014
16003
  (e, r) => {
16015
16004
  const t = SC(qt, e.__scopePopover), { forceMount: n = t.forceMount, ...o } = e, i = lt(qt, e.__scopePopover);
@@ -16023,7 +16012,7 @@ var wC = /* @__PURE__ */ pC("PopoverContent.RemoveScroll"), xC = f.forwardRef(
16023
16012
  return f.useEffect(() => {
16024
16013
  const a = n.current;
16025
16014
  if (a) return Gc(a);
16026
- }, []), /* @__PURE__ */ x(Zi, { as: wC, allowPinchZoom: !0, children: /* @__PURE__ */ x(
16015
+ }, []), /* @__PURE__ */ x(Xi, { as: wC, allowPinchZoom: !0, children: /* @__PURE__ */ x(
16027
16016
  cd,
16028
16017
  {
16029
16018
  ...e,
@@ -16088,7 +16077,7 @@ var wC = /* @__PURE__ */ pC("PopoverContent.RemoveScroll"), xC = f.forwardRef(
16088
16077
  ...u
16089
16078
  } = e, p = lt(qt, t), h = Lr(t);
16090
16079
  return hc(), /* @__PURE__ */ x(
16091
- Bi,
16080
+ Vi,
16092
16081
  {
16093
16082
  asChild: !0,
16094
16083
  loop: !0,
@@ -16106,7 +16095,7 @@ var wC = /* @__PURE__ */ pC("PopoverContent.RemoveScroll"), xC = f.forwardRef(
16106
16095
  onFocusOutside: c,
16107
16096
  onDismiss: () => p.onOpenChange(!1),
16108
16097
  children: /* @__PURE__ */ x(
16109
- Ki,
16098
+ Yi,
16110
16099
  {
16111
16100
  "data-state": fd(p.open),
16112
16101
  role: "dialog",
@@ -16147,7 +16136,7 @@ EC.displayName = dd;
16147
16136
  var TC = "PopoverArrow", ud = f.forwardRef(
16148
16137
  (e, r) => {
16149
16138
  const { __scopePopover: t, ...n } = e, o = Lr(t);
16150
- return /* @__PURE__ */ x(Xi, { ...o, ...n, ref: r });
16139
+ return /* @__PURE__ */ x(Ki, { ...o, ...n, ref: r });
16151
16140
  }
16152
16141
  );
16153
16142
  ud.displayName = TC;
@@ -16189,7 +16178,7 @@ var _C = [
16189
16178
  "svg",
16190
16179
  "ul"
16191
16180
  ], OC = _C.reduce((e, r) => {
16192
- const t = /* @__PURE__ */ Vi(`Primitive.${r}`), n = f.forwardRef((o, i) => {
16181
+ const t = /* @__PURE__ */ Li(`Primitive.${r}`), n = f.forwardRef((o, i) => {
16193
16182
  const { asChild: a, ...s } = o, l = a ? t : r;
16194
16183
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(l, { ...s, ref: i });
16195
16184
  });
@@ -16251,7 +16240,7 @@ const LC = st(
16251
16240
  VC.displayName = "Input";
16252
16241
  var Wn = "Tabs", [BC] = Xe(Wn, [
16253
16242
  Uc
16254
- ]), gd = Uc(), [$C, Ji] = BC(Wn), yd = f.forwardRef(
16243
+ ]), gd = Uc(), [$C, Qi] = BC(Wn), yd = f.forwardRef(
16255
16244
  (e, r) => {
16256
16245
  const {
16257
16246
  __scopeTabs: t,
@@ -16294,7 +16283,7 @@ var Wn = "Tabs", [BC] = Xe(Wn, [
16294
16283
  yd.displayName = Wn;
16295
16284
  var bd = "TabsList", vd = f.forwardRef(
16296
16285
  (e, r) => {
16297
- const { __scopeTabs: t, loop: n = !0, ...o } = e, i = Ji(bd, t), a = gd(t);
16286
+ const { __scopeTabs: t, loop: n = !0, ...o } = e, i = Qi(bd, t), a = gd(t);
16298
16287
  return /* @__PURE__ */ x(
16299
16288
  Tv,
16300
16289
  {
@@ -16319,7 +16308,7 @@ var bd = "TabsList", vd = f.forwardRef(
16319
16308
  vd.displayName = bd;
16320
16309
  var Cd = "TabsTrigger", Sd = f.forwardRef(
16321
16310
  (e, r) => {
16322
- const { __scopeTabs: t, value: n, disabled: o = !1, ...i } = e, a = Ji(Cd, t), s = gd(t), l = Id(a.baseId, n), c = Ed(a.baseId, n), d = n === a.value;
16311
+ const { __scopeTabs: t, value: n, disabled: o = !1, ...i } = e, a = Qi(Cd, t), s = gd(t), l = Id(a.baseId, n), c = Ed(a.baseId, n), d = n === a.value;
16323
16312
  return /* @__PURE__ */ x(
16324
16313
  Av,
16325
16314
  {
@@ -16359,7 +16348,7 @@ var Cd = "TabsTrigger", Sd = f.forwardRef(
16359
16348
  Sd.displayName = Cd;
16360
16349
  var wd = "TabsContent", xd = f.forwardRef(
16361
16350
  (e, r) => {
16362
- const { __scopeTabs: t, value: n, forceMount: o, children: i, ...a } = e, s = Ji(wd, t), l = Id(s.baseId, n), c = Ed(s.baseId, n), d = n === s.value, u = f.useRef(d);
16351
+ const { __scopeTabs: t, value: n, forceMount: o, children: i, ...a } = e, s = Qi(wd, t), l = Id(s.baseId, n), c = Ed(s.baseId, n), d = n === s.value, u = f.useRef(d);
16363
16352
  return f.useEffect(() => {
16364
16353
  const p = requestAnimationFrame(() => u.current = !1);
16365
16354
  return () => cancelAnimationFrame(p);
@@ -16616,7 +16605,7 @@ var eS = _d, tS = [" ", "Enter", "ArrowUp", "ArrowDown"], rS = [" ", "Enter"], I
16616
16605
  onChange: l,
16617
16606
  caller: It
16618
16607
  }), D = f.useRef(null), P = b ? v || !!b.closest("form") : !0, [O, L] = f.useState(/* @__PURE__ */ new Set()), q = Array.from(O).map((N) => N.props.value).join(";");
16619
- return /* @__PURE__ */ x(Yi, { ...m, children: /* @__PURE__ */ be(
16608
+ return /* @__PURE__ */ x(Gi, { ...m, children: /* @__PURE__ */ be(
16620
16609
  oS,
16621
16610
  {
16622
16611
  required: h,
@@ -16870,8 +16859,8 @@ var Re = 10, [Ud, dt] = tr(Et), cS = "SelectContentImpl", dS = /* @__PURE__ */ G
16870
16859
  position: n,
16871
16860
  isPositioned: O,
16872
16861
  searchRef: J,
16873
- children: /* @__PURE__ */ x(Zi, { as: dS, allowPinchZoom: !0, children: /* @__PURE__ */ x(
16874
- Bi,
16862
+ children: /* @__PURE__ */ x(Xi, { as: dS, allowPinchZoom: !0, children: /* @__PURE__ */ x(
16863
+ Vi,
16875
16864
  {
16876
16865
  asChild: !0,
16877
16866
  trapped: g.open,
@@ -17046,7 +17035,7 @@ var fS = "SelectPopperPosition", ri = f.forwardRef((e, r) => {
17046
17035
  ...i
17047
17036
  } = e, a = Kn(t);
17048
17037
  return /* @__PURE__ */ x(
17049
- Ki,
17038
+ Yi,
17050
17039
  {
17051
17040
  ...a,
17052
17041
  ...i,
@@ -17067,9 +17056,9 @@ var fS = "SelectPopperPosition", ri = f.forwardRef((e, r) => {
17067
17056
  );
17068
17057
  });
17069
17058
  ri.displayName = fS;
17070
- var [pS, ea] = tr(Et, {}), ni = "SelectViewport", Hd = f.forwardRef(
17059
+ var [pS, Ji] = tr(Et, {}), ni = "SelectViewport", Hd = f.forwardRef(
17071
17060
  (e, r) => {
17072
- const { __scopeSelect: t, nonce: n, ...o } = e, i = dt(ni, t), a = ea(ni, t), s = Z(r, i.onViewportChange), l = f.useRef(0);
17061
+ const { __scopeSelect: t, nonce: n, ...o } = e, i = dt(ni, t), a = Ji(ni, t), s = Z(r, i.onViewportChange), l = f.useRef(0);
17073
17062
  return /* @__PURE__ */ be(Dr, { children: [
17074
17063
  /* @__PURE__ */ x(
17075
17064
  "style",
@@ -17247,7 +17236,7 @@ var Qd = "SelectItemIndicator", Jd = f.forwardRef(
17247
17236
  );
17248
17237
  Jd.displayName = Qd;
17249
17238
  var oi = "SelectScrollUpButton", eu = f.forwardRef((e, r) => {
17250
- const t = dt(oi, e.__scopeSelect), n = ea(oi, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
17239
+ const t = dt(oi, e.__scopeSelect), n = Ji(oi, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
17251
17240
  return pe(() => {
17252
17241
  if (t.viewport && t.isPositioned) {
17253
17242
  let s = function() {
@@ -17271,7 +17260,7 @@ var oi = "SelectScrollUpButton", eu = f.forwardRef((e, r) => {
17271
17260
  });
17272
17261
  eu.displayName = oi;
17273
17262
  var ii = "SelectScrollDownButton", tu = f.forwardRef((e, r) => {
17274
- const t = dt(ii, e.__scopeSelect), n = ea(ii, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
17263
+ const t = dt(ii, e.__scopeSelect), n = Ji(ii, e.__scopeSelect), [o, i] = f.useState(!1), a = Z(r, n.onScrollButtonChange);
17275
17264
  return pe(() => {
17276
17265
  if (t.viewport && t.isPositioned) {
17277
17266
  let s = function() {
@@ -17331,7 +17320,7 @@ nu.displayName = yS;
17331
17320
  var ai = "SelectArrow", bS = f.forwardRef(
17332
17321
  (e, r) => {
17333
17322
  const { __scopeSelect: t, ...n } = e, o = Kn(t), i = ct(ai, t), a = dt(ai, t);
17334
- return i.open && a.position === "popper" ? /* @__PURE__ */ x(Xi, { ...o, ...n, ref: r }) : null;
17323
+ return i.open && a.position === "popper" ? /* @__PURE__ */ x(Ki, { ...o, ...n, ref: r }) : null;
17335
17324
  }
17336
17325
  );
17337
17326
  bS.displayName = ai;
@@ -17421,7 +17410,7 @@ const BI = SS, $I = TS, UI = wS, RS = st(
17421
17410
  children: [
17422
17411
  r,
17423
17412
  /* @__PURE__ */ x(xS, { asChild: !0, children: /* @__PURE__ */ x(
17424
- Bs,
17413
+ Vs,
17425
17414
  {
17426
17415
  className: ie(
17427
17416
  "opacity-50",
@@ -17455,7 +17444,7 @@ const gu = f.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ x(
17455
17444
  e
17456
17445
  ),
17457
17446
  ...r,
17458
- children: /* @__PURE__ */ x(Bs, { className: "h-3.5 w-3.5" })
17447
+ children: /* @__PURE__ */ x(Vs, { className: "h-3.5 w-3.5" })
17459
17448
  }
17460
17449
  ));
17461
17450
  gu.displayName = pu.displayName;
@@ -17551,13 +17540,13 @@ var NS = [
17551
17540
  "svg",
17552
17541
  "ul"
17553
17542
  ], kS = NS.reduce((e, r) => {
17554
- const t = /* @__PURE__ */ Vi(`Primitive.${r}`), n = f.forwardRef((o, i) => {
17543
+ const t = /* @__PURE__ */ Li(`Primitive.${r}`), n = f.forwardRef((o, i) => {
17555
17544
  const { asChild: a, ...s } = o, l = a ? t : r;
17556
17545
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(l, { ...s, ref: i });
17557
17546
  });
17558
17547
  return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
17559
- }, {}), LS = "Separator", Ps = "horizontal", VS = ["horizontal", "vertical"], yu = f.forwardRef((e, r) => {
17560
- const { decorative: t, orientation: n = Ps, ...o } = e, i = BS(n) ? n : Ps, s = t ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
17548
+ }, {}), LS = "Separator", Ds = "horizontal", VS = ["horizontal", "vertical"], yu = f.forwardRef((e, r) => {
17549
+ const { decorative: t, orientation: n = Ds, ...o } = e, i = BS(n) ? n : Ds, s = t ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
17561
17550
  return /* @__PURE__ */ x(
17562
17551
  kS.div,
17563
17552
  {
@@ -17593,7 +17582,7 @@ $S.displayName = bu.displayName;
17593
17582
  function US(e, r) {
17594
17583
  return f.useReducer((t, n) => r[t][n] ?? t, e);
17595
17584
  }
17596
- var ta = "ScrollArea", [vu] = Xe(ta), [jS, Ae] = vu(ta), Cu = f.forwardRef(
17585
+ var ea = "ScrollArea", [vu] = Xe(ea), [jS, Ae] = vu(ea), Cu = f.forwardRef(
17597
17586
  (e, r) => {
17598
17587
  const {
17599
17588
  __scopeScrollArea: t,
@@ -17643,7 +17632,7 @@ var ta = "ScrollArea", [vu] = Xe(ta), [jS, Ae] = vu(ta), Cu = f.forwardRef(
17643
17632
  );
17644
17633
  }
17645
17634
  );
17646
- Cu.displayName = ta;
17635
+ Cu.displayName = ea;
17647
17636
  var Su = "ScrollAreaViewport", wu = f.forwardRef(
17648
17637
  (e, r) => {
17649
17638
  const { __scopeScrollArea: t, children: n, nonce: o, ...i } = e, a = Ae(Su, t), s = f.useRef(null), l = Z(r, s, a.onViewportChange);
@@ -17686,15 +17675,15 @@ var Su = "ScrollAreaViewport", wu = f.forwardRef(
17686
17675
  }
17687
17676
  );
17688
17677
  wu.displayName = Su;
17689
- var je = "ScrollAreaScrollbar", ra = f.forwardRef(
17678
+ var je = "ScrollAreaScrollbar", ta = f.forwardRef(
17690
17679
  (e, r) => {
17691
17680
  const { forceMount: t, ...n } = e, o = Ae(je, e.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = o, s = e.orientation === "horizontal";
17692
17681
  return f.useEffect(() => (s ? i(!0) : a(!0), () => {
17693
17682
  s ? i(!1) : a(!1);
17694
- }), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ x(zS, { ...n, ref: r, forceMount: t }) : o.type === "scroll" ? /* @__PURE__ */ x(HS, { ...n, ref: r, forceMount: t }) : o.type === "auto" ? /* @__PURE__ */ x(xu, { ...n, ref: r, forceMount: t }) : o.type === "always" ? /* @__PURE__ */ x(na, { ...n, ref: r }) : null;
17683
+ }), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ x(zS, { ...n, ref: r, forceMount: t }) : o.type === "scroll" ? /* @__PURE__ */ x(HS, { ...n, ref: r, forceMount: t }) : o.type === "auto" ? /* @__PURE__ */ x(xu, { ...n, ref: r, forceMount: t }) : o.type === "always" ? /* @__PURE__ */ x(ra, { ...n, ref: r }) : null;
17695
17684
  }
17696
17685
  );
17697
- ra.displayName = je;
17686
+ ta.displayName = je;
17698
17687
  var zS = f.forwardRef((e, r) => {
17699
17688
  const { forceMount: t, ...n } = e, o = Ae(je, e.__scopeScrollArea), [i, a] = f.useState(!1);
17700
17689
  return f.useEffect(() => {
@@ -17753,7 +17742,7 @@ var zS = f.forwardRef((e, r) => {
17753
17742
  return c.addEventListener("scroll", p), () => c.removeEventListener("scroll", p);
17754
17743
  }
17755
17744
  }, [o.viewport, i, l, a]), /* @__PURE__ */ x(Ue, { present: t || s !== "hidden", children: /* @__PURE__ */ x(
17756
- na,
17745
+ ra,
17757
17746
  {
17758
17747
  "data-state": s === "hidden" ? "hidden" : "visible",
17759
17748
  ...n,
@@ -17770,14 +17759,14 @@ var zS = f.forwardRef((e, r) => {
17770
17759
  }
17771
17760
  }, 10);
17772
17761
  return Wt(t.viewport, l), Wt(t.content, l), /* @__PURE__ */ x(Ue, { present: n || i, children: /* @__PURE__ */ x(
17773
- na,
17762
+ ra,
17774
17763
  {
17775
17764
  "data-state": i ? "visible" : "hidden",
17776
17765
  ...o,
17777
17766
  ref: r
17778
17767
  }
17779
17768
  ) });
17780
- }), na = f.forwardRef((e, r) => {
17769
+ }), ra = f.forwardRef((e, r) => {
17781
17770
  const { orientation: t = "vertical", ...n } = e, o = Ae(je, e.__scopeScrollArea), i = f.useRef(null), a = f.useRef(0), [s, l] = f.useState({
17782
17771
  content: 0,
17783
17772
  viewport: 0,
@@ -17801,7 +17790,7 @@ var zS = f.forwardRef((e, r) => {
17801
17790
  ref: r,
17802
17791
  onThumbPositionChange: () => {
17803
17792
  if (o.viewport && i.current) {
17804
- const p = o.viewport.scrollLeft, h = _s(p, s, o.dir);
17793
+ const p = o.viewport.scrollLeft, h = Ps(p, s, o.dir);
17805
17794
  i.current.style.transform = `translate3d(${h}px, 0, 0)`;
17806
17795
  }
17807
17796
  },
@@ -17819,7 +17808,7 @@ var zS = f.forwardRef((e, r) => {
17819
17808
  ref: r,
17820
17809
  onThumbPositionChange: () => {
17821
17810
  if (o.viewport && i.current) {
17822
- const p = o.viewport.scrollTop, h = _s(p, s);
17811
+ const p = o.viewport.scrollTop, h = Ps(p, s);
17823
17812
  i.current.style.transform = `translate3d(0, ${h}px, 0)`;
17824
17813
  }
17825
17814
  },
@@ -18009,15 +17998,15 @@ var zS = f.forwardRef((e, r) => {
18009
17998
  }
18010
17999
  );
18011
18000
  Tu.displayName = En;
18012
- var oa = "ScrollAreaCorner", Au = f.forwardRef(
18001
+ var na = "ScrollAreaCorner", Au = f.forwardRef(
18013
18002
  (e, r) => {
18014
- const t = Ae(oa, e.__scopeScrollArea), n = !!(t.scrollbarX && t.scrollbarY);
18003
+ const t = Ae(na, e.__scopeScrollArea), n = !!(t.scrollbarX && t.scrollbarY);
18015
18004
  return t.type !== "scroll" && n ? /* @__PURE__ */ x(KS, { ...e, ref: r }) : null;
18016
18005
  }
18017
18006
  );
18018
- Au.displayName = oa;
18007
+ Au.displayName = na;
18019
18008
  var KS = f.forwardRef((e, r) => {
18020
- const { __scopeScrollArea: t, ...n } = e, o = Ae(oa, t), [i, a] = f.useState(0), [s, l] = f.useState(0), c = !!(i && s);
18009
+ const { __scopeScrollArea: t, ...n } = e, o = Ae(na, t), [i, a] = f.useState(0), [s, l] = f.useState(0), c = !!(i && s);
18021
18010
  return Wt(o.scrollbarX, () => {
18022
18011
  var u;
18023
18012
  const d = ((u = o.scrollbarX) == null ? void 0 : u.offsetHeight) || 0;
@@ -18058,7 +18047,7 @@ function XS(e, r, t, n = "ltr") {
18058
18047
  const o = Xn(t), i = o / 2, a = r || i, s = o - a, l = t.scrollbar.paddingStart + a, c = t.scrollbar.size - t.scrollbar.paddingEnd - s, d = t.content - t.viewport, u = n === "ltr" ? [0, d] : [d * -1, 0];
18059
18048
  return Ru([l, c], u)(e);
18060
18049
  }
18061
- function _s(e, r, t = "ltr") {
18050
+ function Ps(e, r, t = "ltr") {
18062
18051
  const n = Xn(r), o = r.scrollbar.paddingStart + r.scrollbar.paddingEnd, i = r.scrollbar.size - o, a = r.content - r.viewport, s = i - n, l = t === "ltr" ? [0, a] : [a * -1, 0], c = ti(e, l);
18063
18052
  return Ru([0, a], [0, s])(c);
18064
18053
  }
@@ -18116,7 +18105,7 @@ const e0 = f.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
18116
18105
  ));
18117
18106
  e0.displayName = Pu.displayName;
18118
18107
  const _u = f.forwardRef(({ className: e, orientation: r = "vertical", ...t }, n) => /* @__PURE__ */ x(
18119
- ra,
18108
+ ta,
18120
18109
  {
18121
18110
  ref: n,
18122
18111
  orientation: r,
@@ -18130,7 +18119,7 @@ const _u = f.forwardRef(({ className: e, orientation: r = "vertical", ...t }, n)
18130
18119
  children: /* @__PURE__ */ x(Tu, { className: "relative flex-1 rounded-full bg-border" })
18131
18120
  }
18132
18121
  ));
18133
- _u.displayName = ra.displayName;
18122
+ _u.displayName = ta.displayName;
18134
18123
  var t0 = Symbol("radix.slottable");
18135
18124
  // @__NO_SIDE_EFFECTS__
18136
18125
  function r0(e) {
@@ -18139,7 +18128,7 @@ function r0(e) {
18139
18128
  }
18140
18129
  var [Qn] = Xe("Tooltip", [
18141
18130
  er
18142
- ]), Jn = er(), Ou = "TooltipProvider", n0 = 700, si = "tooltip.open", [o0, ia] = Qn(Ou), Mu = (e) => {
18131
+ ]), Jn = er(), Ou = "TooltipProvider", n0 = 700, si = "tooltip.open", [o0, oa] = Qn(Ou), Mu = (e) => {
18143
18132
  const {
18144
18133
  __scopeTooltip: r,
18145
18134
  delayDuration: t = n0,
@@ -18184,7 +18173,7 @@ var Rr = "Tooltip", [i0, Vr] = Qn(Rr), Nu = (e) => {
18184
18173
  onOpenChange: i,
18185
18174
  disableHoverableContent: a,
18186
18175
  delayDuration: s
18187
- } = e, l = ia(Rr, e.__scopeTooltip), c = Jn(r), [d, u] = f.useState(null), p = Ft(), h = f.useRef(0), v = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, b = f.useRef(!1), [S, g] = wt({
18176
+ } = e, l = oa(Rr, e.__scopeTooltip), c = Jn(r), [d, u] = f.useState(null), p = Ft(), h = f.useRef(0), v = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, b = f.useRef(!1), [S, g] = wt({
18188
18177
  prop: n,
18189
18178
  defaultProp: o ?? !1,
18190
18179
  onChange: (E) => {
@@ -18202,7 +18191,7 @@ var Rr = "Tooltip", [i0, Vr] = Qn(Rr), Nu = (e) => {
18202
18191
  }, [m, g]);
18203
18192
  return f.useEffect(() => () => {
18204
18193
  h.current && (window.clearTimeout(h.current), h.current = 0);
18205
- }, []), /* @__PURE__ */ x(Yi, { ...c, children: /* @__PURE__ */ x(
18194
+ }, []), /* @__PURE__ */ x(Gi, { ...c, children: /* @__PURE__ */ x(
18206
18195
  i0,
18207
18196
  {
18208
18197
  scope: r,
@@ -18227,7 +18216,7 @@ var Rr = "Tooltip", [i0, Vr] = Qn(Rr), Nu = (e) => {
18227
18216
  Nu.displayName = Rr;
18228
18217
  var li = "TooltipTrigger", ku = f.forwardRef(
18229
18218
  (e, r) => {
18230
- const { __scopeTooltip: t, ...n } = e, o = Vr(li, t), i = ia(li, t), a = Jn(t), s = f.useRef(null), l = Z(r, s, o.onTriggerChange), c = f.useRef(!1), d = f.useRef(!1), u = f.useCallback(() => c.current = !1, []);
18219
+ const { __scopeTooltip: t, ...n } = e, o = Vr(li, t), i = oa(li, t), a = Jn(t), s = f.useRef(null), l = Z(r, s, o.onTriggerChange), c = f.useRef(!1), d = f.useRef(!1), u = f.useCallback(() => c.current = !1, []);
18231
18220
  return f.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ x(Un, { asChild: !0, ...a, children: /* @__PURE__ */ x(
18232
18221
  W.button,
18233
18222
  {
@@ -18254,20 +18243,20 @@ var li = "TooltipTrigger", ku = f.forwardRef(
18254
18243
  }
18255
18244
  );
18256
18245
  ku.displayName = li;
18257
- var aa = "TooltipPortal", [a0, s0] = Qn(aa, {
18246
+ var ia = "TooltipPortal", [a0, s0] = Qn(ia, {
18258
18247
  forceMount: void 0
18259
18248
  }), Lu = (e) => {
18260
- const { __scopeTooltip: r, forceMount: t, children: n, container: o } = e, i = Vr(aa, r);
18249
+ const { __scopeTooltip: r, forceMount: t, children: n, container: o } = e, i = Vr(ia, r);
18261
18250
  return /* @__PURE__ */ x(a0, { scope: r, forceMount: t, children: /* @__PURE__ */ x(Ue, { present: t || i.open, children: /* @__PURE__ */ x(jn, { asChild: !0, container: o, children: n }) }) });
18262
18251
  };
18263
- Lu.displayName = aa;
18252
+ Lu.displayName = ia;
18264
18253
  var Gt = "TooltipContent", Vu = f.forwardRef(
18265
18254
  (e, r) => {
18266
18255
  const t = s0(Gt, e.__scopeTooltip), { forceMount: n = t.forceMount, side: o = "top", ...i } = e, a = Vr(Gt, e.__scopeTooltip);
18267
18256
  return /* @__PURE__ */ x(Ue, { present: n || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ x(Bu, { side: o, ...i, ref: r }) : /* @__PURE__ */ x(l0, { side: o, ...i, ref: r }) });
18268
18257
  }
18269
18258
  ), l0 = f.forwardRef((e, r) => {
18270
- const t = Vr(Gt, e.__scopeTooltip), n = ia(Gt, e.__scopeTooltip), o = f.useRef(null), i = Z(r, o), [a, s] = f.useState(null), { trigger: l, onClose: c } = t, d = o.current, { onPointerInTransitChange: u } = n, p = f.useCallback(() => {
18259
+ const t = Vr(Gt, e.__scopeTooltip), n = oa(Gt, e.__scopeTooltip), o = f.useRef(null), i = Z(r, o), [a, s] = f.useState(null), { trigger: l, onClose: c } = t, d = o.current, { onPointerInTransitChange: u } = n, p = f.useCallback(() => {
18271
18260
  s(null), u(!1);
18272
18261
  }, [u]), h = f.useCallback(
18273
18262
  (v, m) => {
@@ -18320,7 +18309,7 @@ var Gt = "TooltipContent", Vu = f.forwardRef(
18320
18309
  onFocusOutside: (u) => u.preventDefault(),
18321
18310
  onDismiss: d,
18322
18311
  children: /* @__PURE__ */ be(
18323
- Ki,
18312
+ Yi,
18324
18313
  {
18325
18314
  "data-state": l.stateAttribute,
18326
18315
  ...c,
@@ -18351,7 +18340,7 @@ var $u = "TooltipArrow", Uu = f.forwardRef(
18351
18340
  return d0(
18352
18341
  $u,
18353
18342
  t
18354
- ).isInside ? null : /* @__PURE__ */ x(Xi, { ...o, ...n, ref: r });
18343
+ ).isInside ? null : /* @__PURE__ */ x(Ki, { ...o, ...n, ref: r });
18355
18344
  }
18356
18345
  );
18357
18346
  Uu.displayName = $u;
@@ -18506,7 +18495,7 @@ var zu = {}, le = Te && Te.__assign || function() {
18506
18495
  return t;
18507
18496
  };
18508
18497
  Object.defineProperty(zu, "__esModule", { value: !0 });
18509
- var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, Os = 57, Ms = 219, Ns = 222, ks = 192, Ls = 100, D0 = 3e3, P0 = typeof window < "u" && "navigator" in window && /Win/i.test(navigator.platform), Oo = typeof window < "u" && "navigator" in window && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), un = "npm__react-simple-code-editor__textarea", _0 = (
18498
+ var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, _s = 57, Os = 219, Ms = 222, Ns = 192, ks = 100, D0 = 3e3, P0 = typeof window < "u" && "navigator" in window && /Win/i.test(navigator.platform), Oo = typeof window < "u" && "navigator" in window && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), un = "npm__react-simple-code-editor__textarea", _0 = (
18510
18499
  /* CSS */
18511
18500
  `
18512
18501
  /**
@@ -18554,8 +18543,8 @@ var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, Os = 57, Ms = 219, Ns = 222, ks = 19
18554
18543
  if (ye.length && rr > -1) {
18555
18544
  M.current.stack = ye.slice(0, rr + 1);
18556
18545
  var nr = M.current.stack.length;
18557
- if (nr > Ls) {
18558
- var Rt = nr - Ls;
18546
+ if (nr > ks) {
18547
+ var Rt = nr - ks;
18559
18548
  M.current.stack = ye.slice(Rt, nr), M.current.offset = Math.max(M.current.offset - Rt, 0);
18560
18549
  }
18561
18550
  }
@@ -18600,8 +18589,8 @@ var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, Os = 57, Ms = 219, Ns = 222, ks = 19
18600
18589
  if (F.key === "Tab" && !l && J)
18601
18590
  if (F.preventDefault(), F.shiftKey) {
18602
18591
  var ye = re($, U), rr = ye.length - 1, nr = re($, te).length - 1, Rt = $.split(`
18603
- `).map(function(ar, la) {
18604
- return la >= rr && la <= nr && ar.startsWith(ue) ? ar.substring(ue.length) : ar;
18592
+ `).map(function(ar, sa) {
18593
+ return sa >= rr && sa <= nr && ar.startsWith(ue) ? ar.substring(ue.length) : ar;
18605
18594
  }).join(`
18606
18595
  `);
18607
18596
  if ($ !== Rt) {
@@ -18619,8 +18608,8 @@ var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, Os = 57, Ms = 219, Ns = 222, ks = 19
18619
18608
  var ye = re($, U), Qe = ye.length - 1, or = re($, te).length - 1, _e = ye[Qe];
18620
18609
  G({
18621
18610
  value: $.split(`
18622
- `).map(function(ca, da) {
18623
- return da >= Qe && da <= or ? ue + ca : ca;
18611
+ `).map(function(la, ca) {
18612
+ return ca >= Qe && ca <= or ? ue + la : la;
18624
18613
  }).join(`
18625
18614
  `),
18626
18615
  // Move the start cursor by number of characters added in first line of selection
@@ -18657,20 +18646,20 @@ var Ie = T0(Ce), F0 = 89, on = 90, R0 = 77, Os = 57, Ms = 219, Ns = 222, ks = 19
18657
18646
  var to = re($, U).pop(), Br = to == null ? void 0 : to.match(/^\s+/);
18658
18647
  if (Br != null && Br[0]) {
18659
18648
  F.preventDefault();
18660
- var sa = `
18661
- ` + Br[0], ve = U + sa.length;
18649
+ var aa = `
18650
+ ` + Br[0], ve = U + aa.length;
18662
18651
  G({
18663
18652
  // Insert indentation character at caret
18664
- value: $.substring(0, U) + sa + $.substring(te),
18653
+ value: $.substring(0, U) + aa + $.substring(te),
18665
18654
  // Update caret position
18666
18655
  selectionStart: ve,
18667
18656
  selectionEnd: ve
18668
18657
  });
18669
18658
  }
18670
18659
  }
18671
- } else if (F.keyCode === Os || F.keyCode === Ms || F.keyCode === Ns || F.keyCode === ks) {
18660
+ } else if (F.keyCode === _s || F.keyCode === Os || F.keyCode === Ms || F.keyCode === Ns) {
18672
18661
  var ze = void 0;
18673
- F.keyCode === Os && F.shiftKey ? ze = ["(", ")"] : F.keyCode === Ms ? F.shiftKey ? ze = ["{", "}"] : ze = ["[", "]"] : F.keyCode === Ns ? F.shiftKey ? ze = ['"', '"'] : ze = ["'", "'"] : F.keyCode === ks && !F.shiftKey && (ze = ["`", "`"]), U !== te && ze && (F.preventDefault(), G({
18662
+ F.keyCode === _s && F.shiftKey ? ze = ["(", ")"] : F.keyCode === Os ? F.shiftKey ? ze = ["{", "}"] : ze = ["[", "]"] : F.keyCode === Ms ? F.shiftKey ? ze = ['"', '"'] : ze = ["'", "'"] : F.keyCode === Ns && !F.shiftKey && (ze = ["`", "`"]), U !== te && ze && (F.preventDefault(), G({
18674
18663
  value: $.substring(0, U) + ze[0] + $.substring(U, te) + ze[1] + $.substring(te),
18675
18664
  // Update caret position
18676
18665
  selectionStart: U,
@@ -20254,7 +20243,7 @@ Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "java
20254
20243
  "javascript"
20255
20244
  ));
20256
20245
  Prism.languages.js = Prism.languages.javascript;
20257
- const Vs = {
20246
+ const Ls = {
20258
20247
  "tag-delimiter": /^\{%-?|-?%\}$/,
20259
20248
  "expression-delimiter": /^\{\{-?|-?\}\}$/,
20260
20249
  // Control flow — `if / else / for / endfor / and / or / not / in`.
@@ -20301,13 +20290,13 @@ const Vs = {
20301
20290
  // {% for item in items %}, {% if x %}, {% endblock %}
20302
20291
  pattern: /\{%-?\s*[\s\S]*?-?%\}/,
20303
20292
  greedy: !0,
20304
- inside: Vs
20293
+ inside: Ls
20305
20294
  },
20306
20295
  "jinja-expression": {
20307
20296
  // {{ param('grain') }}, {{ filter('region').sql }}
20308
20297
  pattern: /\{\{-?\s*[\s\S]*?-?\}\}/,
20309
20298
  greedy: !0,
20310
- inside: Vs
20299
+ inside: Ls
20311
20300
  }
20312
20301
  }, k0 = {
20313
20302
  "tag-delimiter": /^\[\[|\]\]$/,
@@ -20608,7 +20597,7 @@ export {
20608
20597
  VC as Z,
20609
20598
  BI as _,
20610
20599
  LI as a,
20611
- hI as a$,
20600
+ oh as a$,
20612
20601
  UI as a0,
20613
20602
  PS as a1,
20614
20603
  OS as a2,
@@ -20621,31 +20610,31 @@ export {
20621
20610
  Wx as a9,
20622
20611
  cc as aA,
20623
20612
  Kg as aB,
20624
- Dw as aC,
20613
+ Pw as aC,
20625
20614
  zl as aD,
20626
20615
  we as aE,
20627
20616
  rt as aF,
20628
20617
  fl as aG,
20629
20618
  Ex as aH,
20630
- Hl as aI,
20631
- FC as aJ,
20632
- pd as aK,
20633
- Ee as aL,
20634
- Sw as aM,
20635
- sI as aN,
20636
- Uw as aO,
20637
- Lw as aP,
20638
- kI as aQ,
20639
- _u as aR,
20640
- Pi as aS,
20641
- Fi as aT,
20642
- Dx as aU,
20643
- Px as aV,
20644
- Mx as aW,
20645
- Nx as aX,
20646
- Pm as aY,
20647
- $x as aZ,
20648
- Rx as a_,
20619
+ ww as aI,
20620
+ sI as aJ,
20621
+ jw as aK,
20622
+ Vw as aL,
20623
+ kI as aM,
20624
+ _u as aN,
20625
+ Fi as aO,
20626
+ Dx as aP,
20627
+ Px as aQ,
20628
+ Mx as aR,
20629
+ Nx as aS,
20630
+ Pm as aT,
20631
+ $x as aU,
20632
+ Rx as aV,
20633
+ hI as aW,
20634
+ iy as aX,
20635
+ Ee as aY,
20636
+ lh as aZ,
20637
+ Jm as a_,
20649
20638
  kx as aa,
20650
20639
  Lx as ab,
20651
20640
  eg as ac,
@@ -20668,264 +20657,262 @@ export {
20668
20657
  Vx as at,
20669
20658
  Hx as au,
20670
20659
  pI as av,
20671
- Vi as aw,
20660
+ Li as aw,
20672
20661
  ge as ax,
20673
20662
  pe as ay,
20674
20663
  Gg as az,
20675
20664
  PC as b,
20676
- Ki as b$,
20677
- iy as b0,
20678
- lh as b1,
20679
- Jm as b2,
20680
- oh as b3,
20681
- Kw as b4,
20682
- zm as b5,
20683
- Yw as b6,
20684
- Zm as b7,
20685
- mw as b8,
20686
- $I as b9,
20687
- gi as bA,
20688
- Fa as bB,
20689
- Yt as bC,
20690
- hi as bD,
20691
- wI as bE,
20692
- at as bF,
20693
- Nw as bG,
20694
- cm as bH,
20695
- Cm as bI,
20696
- Mw as bJ,
20697
- Zt as bK,
20698
- Xe as bL,
20699
- V as bM,
20700
- Z as bN,
20701
- fc as bO,
20702
- Ue as bP,
20703
- jn as bQ,
20704
- W as bR,
20705
- er as bS,
20706
- Uc as bT,
20707
- Un as bU,
20708
- Av as bV,
20709
- hc as bW,
20710
- Zi as bX,
20711
- Bi as bY,
20712
- kn as bZ,
20713
- Tv as b_,
20714
- _S as ba,
20715
- CI as bb,
20716
- oe as bc,
20717
- ww as bd,
20718
- dy as be,
20719
- gI as bf,
20720
- vw as bg,
20721
- Ve as bh,
20722
- pw as bi,
20723
- bw as bj,
20724
- Vw as bk,
20725
- zw as bl,
20726
- qw as bm,
20727
- Hw as bn,
20728
- Cp as bo,
20729
- ao as bp,
20730
- Rw as bq,
20731
- ox as br,
20732
- _i as bs,
20733
- Ih as bt,
20734
- mx as bu,
20735
- yI as bv,
20736
- cp as bw,
20737
- mt as bx,
20738
- Mt as by,
20739
- Te as bz,
20665
+ Gi as b$,
20666
+ Kw as b0,
20667
+ zm as b1,
20668
+ Yw as b2,
20669
+ Zm as b3,
20670
+ hw as b4,
20671
+ $I as b5,
20672
+ _S as b6,
20673
+ CI as b7,
20674
+ oe as b8,
20675
+ xw as b9,
20676
+ wI as bA,
20677
+ at as bB,
20678
+ kw as bC,
20679
+ cm as bD,
20680
+ Cm as bE,
20681
+ Nw as bF,
20682
+ Zt as bG,
20683
+ Xe as bH,
20684
+ V as bI,
20685
+ Z as bJ,
20686
+ fc as bK,
20687
+ Ue as bL,
20688
+ jn as bM,
20689
+ W as bN,
20690
+ er as bO,
20691
+ Uc as bP,
20692
+ Un as bQ,
20693
+ Av as bR,
20694
+ hc as bS,
20695
+ Xi as bT,
20696
+ Vi as bU,
20697
+ kn as bV,
20698
+ Tv as bW,
20699
+ Yi as bX,
20700
+ Gc as bY,
20701
+ Py as bZ,
20702
+ Nn as b_,
20703
+ dy as ba,
20704
+ gI as bb,
20705
+ Cw as bc,
20706
+ Ve as bd,
20707
+ mw as be,
20708
+ vw as bf,
20709
+ Bw as bg,
20710
+ Hw as bh,
20711
+ Ww as bi,
20712
+ qw as bj,
20713
+ Cp as bk,
20714
+ ao as bl,
20715
+ Dw as bm,
20716
+ ox as bn,
20717
+ Pi as bo,
20718
+ Ih as bp,
20719
+ mx as bq,
20720
+ yI as br,
20721
+ cp as bs,
20722
+ mt as bt,
20723
+ Mt as bu,
20724
+ Te as bv,
20725
+ gi as bw,
20726
+ Aa as bx,
20727
+ Yt as by,
20728
+ hi as bz,
20740
20729
  ie as c,
20741
- ex as c$,
20742
- Gc as c0,
20743
- Py as c1,
20744
- Nn as c2,
20745
- Yi as c3,
20746
- Ft as c4,
20747
- Xi as c5,
20748
- wt as c6,
20749
- Hn as c7,
20750
- cI as c8,
20751
- lI as c9,
20752
- jp as cA,
20753
- Ga as cB,
20754
- Ne as cC,
20755
- um as cD,
20756
- dm as cE,
20757
- Pw as cF,
20758
- wx as cG,
20759
- Dd as cH,
20760
- Dc as cI,
20761
- ix as cJ,
20762
- rx as cK,
20763
- tx as cL,
20764
- Ra as cM,
20765
- km as cN,
20766
- bI as cO,
20767
- Pu as cP,
20768
- QS as cQ,
20769
- JS as cR,
20770
- vI as cS,
20771
- kt as cT,
20772
- gw as cU,
20773
- fw as cV,
20774
- el as cW,
20775
- nt as cX,
20776
- ka as cY,
20777
- Gw as cZ,
20778
- Ml as c_,
20779
- fI as ca,
20780
- _I as cb,
20781
- by as cc,
20782
- DC as cd,
20783
- st as ce,
20784
- nw as cf,
20785
- ow as cg,
20786
- aI as ch,
20787
- ul as ci,
20788
- Wa as cj,
20789
- eI as ck,
20790
- tI as cl,
20791
- rI as cm,
20792
- xl as cn,
20793
- ng as co,
20794
- vl as cp,
20795
- kw as cq,
20796
- Pn as cr,
20797
- fp as cs,
20798
- pp as ct,
20799
- zp as cu,
20800
- Zp as cv,
20801
- Xp as cw,
20802
- uI as cx,
20803
- px as cy,
20804
- _h as cz,
20730
+ lm as c$,
20731
+ Ft as c0,
20732
+ Ki as c1,
20733
+ wt as c2,
20734
+ Hn as c3,
20735
+ cI as c4,
20736
+ lI as c5,
20737
+ fI as c6,
20738
+ _I as c7,
20739
+ by as c8,
20740
+ FC as c9,
20741
+ Ne as cA,
20742
+ um as cB,
20743
+ dm as cC,
20744
+ _w as cD,
20745
+ wx as cE,
20746
+ Dd as cF,
20747
+ Dc as cG,
20748
+ ix as cH,
20749
+ rx as cI,
20750
+ tx as cJ,
20751
+ Fa as cK,
20752
+ km as cL,
20753
+ bI as cM,
20754
+ Pu as cN,
20755
+ QS as cO,
20756
+ JS as cP,
20757
+ vI as cQ,
20758
+ kt as cR,
20759
+ yw as cS,
20760
+ pw as cT,
20761
+ el as cU,
20762
+ nt as cV,
20763
+ Na as cW,
20764
+ Gw as cX,
20765
+ Ml as cY,
20766
+ ex as cZ,
20767
+ Ow as c_,
20768
+ DC as ca,
20769
+ pd as cb,
20770
+ st as cc,
20771
+ ow as cd,
20772
+ iw as ce,
20773
+ aI as cf,
20774
+ ul as cg,
20775
+ qa as ch,
20776
+ eI as ci,
20777
+ tI as cj,
20778
+ rI as ck,
20779
+ xl as cl,
20780
+ ng as cm,
20781
+ vl as cn,
20782
+ Lw as co,
20783
+ Pn as cp,
20784
+ fp as cq,
20785
+ pp as cr,
20786
+ zp as cs,
20787
+ Zp as ct,
20788
+ Xp as cu,
20789
+ uI as cv,
20790
+ px as cw,
20791
+ _h as cx,
20792
+ jp as cy,
20793
+ Wa as cz,
20805
20794
  cy as d,
20806
- fx as d$,
20807
- _w as d0,
20808
- lm as d1,
20809
- sr as d2,
20810
- gr as d3,
20811
- Hr as d4,
20812
- lr as d5,
20813
- qr as d6,
20814
- Wr as d7,
20815
- cr as d8,
20816
- Gr as d9,
20817
- Zg as dA,
20818
- Sa as dB,
20819
- Jw as dC,
20820
- Xw as dD,
20821
- hw as dE,
20822
- yt as dF,
20823
- Al as dG,
20824
- Fl as dH,
20825
- Qs as dI,
20826
- Zs as dJ,
20827
- bi as dK,
20828
- Lt as dL,
20829
- jx as dM,
20830
- Ux as dN,
20831
- Zh as dO,
20832
- zx as dP,
20833
- Qh as dQ,
20834
- Ww as dR,
20835
- Hm as dS,
20836
- cw as dT,
20837
- lw as dU,
20838
- dw as dV,
20839
- vp as dW,
20840
- qo as dX,
20841
- Cw as dY,
20842
- MI as dZ,
20843
- uw as d_,
20844
- Yr as da,
20845
- dr as db,
20846
- Kr as dc,
20847
- Xr as dd,
20848
- ur as de,
20849
- Kb as df,
20850
- De as dg,
20851
- Ge as dh,
20852
- Zb as di,
20853
- OI as dj,
20854
- Se as dk,
20855
- Cn as dl,
20856
- ot as dm,
20857
- Qb as dn,
20858
- ev as dp,
20859
- tv as dq,
20860
- Bb as dr,
20861
- bn as ds,
20862
- xI as dt,
20863
- yl as du,
20864
- im as dv,
20865
- Ai as dw,
20866
- Ow as dx,
20867
- nx as dy,
20868
- mI as dz,
20795
+ Ph as d$,
20796
+ sr as d0,
20797
+ gr as d1,
20798
+ Hr as d2,
20799
+ lr as d3,
20800
+ qr as d4,
20801
+ Wr as d5,
20802
+ cr as d6,
20803
+ Gr as d7,
20804
+ Yr as d8,
20805
+ dr as d9,
20806
+ Ca as dA,
20807
+ Jw as dB,
20808
+ Xw as dC,
20809
+ gw as dD,
20810
+ yt as dE,
20811
+ Al as dF,
20812
+ Fl as dG,
20813
+ Qs as dH,
20814
+ Zs as dI,
20815
+ bi as dJ,
20816
+ Lt as dK,
20817
+ jx as dL,
20818
+ Ux as dM,
20819
+ Zh as dN,
20820
+ zx as dO,
20821
+ Qh as dP,
20822
+ Hm as dQ,
20823
+ dw as dR,
20824
+ cw as dS,
20825
+ uw as dT,
20826
+ vp as dU,
20827
+ qo as dV,
20828
+ Sw as dW,
20829
+ MI as dX,
20830
+ fw as dY,
20831
+ fx as dZ,
20832
+ ux as d_,
20833
+ Kr as da,
20834
+ Xr as db,
20835
+ ur as dc,
20836
+ Kb as dd,
20837
+ De as de,
20838
+ Ge as df,
20839
+ Zb as dg,
20840
+ OI as dh,
20841
+ Se as di,
20842
+ Cn as dj,
20843
+ ot as dk,
20844
+ Qb as dl,
20845
+ ev as dm,
20846
+ tv as dn,
20847
+ Bb as dp,
20848
+ bn as dq,
20849
+ Hl as dr,
20850
+ xI as ds,
20851
+ yl as dt,
20852
+ im as du,
20853
+ Ai as dv,
20854
+ Mw as dw,
20855
+ nx as dx,
20856
+ mI as dy,
20857
+ Zg as dz,
20869
20858
  TI as e,
20870
- ux as e0,
20871
- Ph as e1,
20872
- Vt as e2,
20873
- Ho as e3,
20874
- ax as e4,
20875
- yw as e5,
20876
- Bl as e6,
20877
- S0 as e7,
20878
- ju as e8,
20879
- w0 as e9,
20880
- Bw as eA,
20881
- $w as eB,
20882
- Xm as eC,
20883
- Jg as eD,
20884
- ay as eE,
20885
- oy as eF,
20886
- sw as eG,
20887
- ti as eH,
20888
- dI as ea,
20889
- Dh as eb,
20890
- Oi as ec,
20891
- cx as ed,
20892
- dx as ee,
20893
- Mh as ef,
20894
- yx as eg,
20895
- Nh as eh,
20896
- Ni as ei,
20897
- Ax as ej,
20898
- Kh as ek,
20899
- _x as el,
20900
- Ox as em,
20901
- Xl as en,
20902
- vx as eo,
20903
- bx as ep,
20904
- fo as eq,
20905
- hx as er,
20906
- Sx as es,
20907
- Cx as et,
20908
- gx as eu,
20909
- tl as ev,
20910
- bt as ew,
20911
- Tl as ex,
20912
- _d as ey,
20913
- jw as ez,
20914
- iw as f,
20915
- aw as g,
20859
+ Vt as e0,
20860
+ Ho as e1,
20861
+ ax as e2,
20862
+ bw as e3,
20863
+ Bl as e4,
20864
+ S0 as e5,
20865
+ ju as e6,
20866
+ w0 as e7,
20867
+ dI as e8,
20868
+ Dh as e9,
20869
+ Xm as eA,
20870
+ Jg as eB,
20871
+ ay as eC,
20872
+ oy as eD,
20873
+ lw as eE,
20874
+ ti as eF,
20875
+ _i as ea,
20876
+ cx as eb,
20877
+ dx as ec,
20878
+ Mh as ed,
20879
+ yx as ee,
20880
+ Nh as ef,
20881
+ Mi as eg,
20882
+ Ax as eh,
20883
+ Kh as ei,
20884
+ _x as ej,
20885
+ Ox as ek,
20886
+ Xl as el,
20887
+ vx as em,
20888
+ bx as en,
20889
+ fo as eo,
20890
+ hx as ep,
20891
+ Sx as eq,
20892
+ Cx as er,
20893
+ gx as es,
20894
+ tl as et,
20895
+ bt as eu,
20896
+ Tl as ev,
20897
+ _d as ew,
20898
+ zw as ex,
20899
+ $w as ey,
20900
+ Uw as ez,
20901
+ aw as f,
20902
+ sw as g,
20916
20903
  al as h,
20917
20904
  SI as i,
20918
20905
  wi as j,
20919
20906
  xi as k,
20920
20907
  sl as l,
20921
20908
  ll as m,
20922
- xw as n,
20923
- Iw as o,
20924
- Ew as p,
20925
- Tw as q,
20926
- Aw as r,
20909
+ Iw as n,
20910
+ Ew as o,
20911
+ Tw as p,
20912
+ Aw as q,
20913
+ Fw as r,
20927
20914
  xp as s,
20928
- Fw as t,
20915
+ Rw as t,
20929
20916
  Ke as u,
20930
20917
  cl as v,
20931
20918
  Ap as w,