react-semaphor 0.1.457 → 0.1.459

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 (34) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/chunks/{dashboard-briefing-launcher-DujsUIww.js → dashboard-briefing-launcher-ClCj98sq.js} +3 -3
  4. package/dist/chunks/{dashboard-briefing-launcher-W5sKgsYF.cjs → dashboard-briefing-launcher-DHtEouuH.cjs} +1 -1
  5. package/dist/chunks/{dashboard-controls-DZ5SgVcR.js → dashboard-controls-B8gsKlxc.js} +4 -4
  6. package/dist/chunks/{dashboard-controls-Cbw_M-lb.cjs → dashboard-controls-VRShl9J0.cjs} +1 -1
  7. package/dist/chunks/{dashboard-json-D9V7Vsvn.cjs → dashboard-json-BhvPMpZA.cjs} +1 -1
  8. package/dist/chunks/{dashboard-json-CHfML8Ff.js → dashboard-json-i_Auue_K.js} +2 -2
  9. package/dist/chunks/{edit-dashboard-visual-CLqJGsMx.js → edit-dashboard-visual-B3JF0fe4.js} +646 -640
  10. package/dist/chunks/{edit-dashboard-visual-BLmOGhEP.cjs → edit-dashboard-visual-DWWyT55u.cjs} +10 -10
  11. package/dist/chunks/{editor-action-buttons-C87bPAfR.cjs → editor-action-buttons-BTlCsP63.cjs} +1 -1
  12. package/dist/chunks/{editor-action-buttons-BVN1okyo.js → editor-action-buttons-C9x3nGnb.js} +2 -2
  13. package/dist/chunks/{index--A6SZu3V.js → index-BS2-ZZGf.js} +3833 -3798
  14. package/dist/chunks/{index-BFar58xY.cjs → index-DHF-2AqS.cjs} +3 -3
  15. package/dist/chunks/{report-preferences-dialog-DQtQZ3fF.js → report-preferences-dialog-BDpkcUtz.js} +2 -2
  16. package/dist/chunks/{report-preferences-dialog-DajdnPvA.cjs → report-preferences-dialog-BK0yAJnQ.cjs} +1 -1
  17. package/dist/chunks/{switch-BOBLNHUj.js → switch-DQR-Va05.js} +457 -439
  18. package/dist/chunks/{switch-BHOdIXq3.cjs → switch-f3TuZNLr.cjs} +16 -16
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/data-app-builder/index.cjs +1 -1
  22. package/dist/data-app-builder/index.js +2 -2
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +6 -6
  25. package/dist/surfboard/index.cjs +1 -1
  26. package/dist/surfboard/index.js +2 -2
  27. package/dist/types/briefings.d.ts +2 -0
  28. package/dist/types/dashboard-authoring.d.ts +2 -0
  29. package/dist/types/dashboard.d.ts +2 -0
  30. package/dist/types/main.d.ts +2 -0
  31. package/dist/types/shared.d.ts +2 -0
  32. package/dist/types/surfboard.d.ts +2 -0
  33. package/dist/types/types.d.ts +2 -0
  34. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { j as Ff, c as Ve, C as Qs } from "./x-CXDkqdur.js";
2
- import { jsx as x, jsxs as ye, Fragment as kn } from "react/jsx-runtime";
2
+ import { jsx as x, jsxs as ye, Fragment as Bn } from "react/jsx-runtime";
3
3
  import * as f from "react";
4
4
  import ve, { createContext as Af, useContext as Df, useLayoutEffect as Rf, useState as _f, forwardRef as Pf, useRef as Sa, useMemo as Of, useId as Mf, useImperativeHandle as Nf } from "react";
5
- import { e as Zs, v as rt, D as gr, B as xi, f as kf, h as Js, r as Lf, j as wa, k as Te } from "./saved-temporal-bucket-format-SGAV0ivR.js";
5
+ import { e as Zs, v as ot, D as gr, B as xi, f as kf, h as Js, r as Lf, j as wa, k as Te } from "./saved-temporal-bucket-format-SGAV0ivR.js";
6
6
  import { n as Or, Q as el, q as Bf, an as Vf, l as yr, ah as xa } from "./validators-DEmd8Sin.js";
7
7
  import "./analyze-result-contract-BbRJ-C06.js";
8
8
  import "../value-format-preferences/index.js";
@@ -82,13 +82,13 @@ function me(e, ...n) {
82
82
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
83
83
  );
84
84
  }
85
- var Tn = Object.getPrototypeOf;
85
+ var An = Object.getPrototypeOf;
86
86
  function Gt(e) {
87
87
  return !!e && !!e[Q];
88
88
  }
89
89
  function We(e) {
90
90
  var n;
91
- return e ? il(e) || Array.isArray(e) || !!e[Fa] || !!((n = e.constructor) != null && n[Fa]) || Ln(e) || Br(e) : !1;
91
+ return e ? il(e) || Array.isArray(e) || !!e[Fa] || !!((n = e.constructor) != null && n[Fa]) || Vn(e) || Br(e) : !1;
92
92
  }
93
93
  var ip = Object.prototype.constructor.toString(), Aa = /* @__PURE__ */ new WeakMap();
94
94
  function il(e) {
@@ -105,14 +105,14 @@ function il(e) {
105
105
  let r = Aa.get(t);
106
106
  return r === void 0 && (r = Function.toString.call(t), Aa.set(t, r)), r === ip;
107
107
  }
108
- function Fn(e, n, t = !0) {
108
+ function Dn(e, n, t = !0) {
109
109
  Lr(e) === 0 ? (t ? Reflect.ownKeys(e) : Object.keys(e)).forEach((o) => {
110
110
  n(o, e[o], e);
111
111
  }) : e.forEach((r, o) => n(o, r, e));
112
112
  }
113
113
  function Lr(e) {
114
114
  const n = e[Q];
115
- return n ? n.type_ : Array.isArray(e) ? 1 : Ln(e) ? 2 : Br(e) ? 3 : 0;
115
+ return n ? n.type_ : Array.isArray(e) ? 1 : Vn(e) ? 2 : Br(e) ? 3 : 0;
116
116
  }
117
117
  function qo(e, n) {
118
118
  return Lr(e) === 2 ? e.has(n) : Object.prototype.hasOwnProperty.call(e, n);
@@ -124,7 +124,7 @@ function al(e, n, t) {
124
124
  function ap(e, n) {
125
125
  return e === n ? e !== 0 || 1 / e === 1 / n : e !== e && n !== n;
126
126
  }
127
- function Ln(e) {
127
+ function Vn(e) {
128
128
  return e instanceof Map;
129
129
  }
130
130
  function Br(e) {
@@ -134,7 +134,7 @@ function se(e) {
134
134
  return e.copy_ || e.base_;
135
135
  }
136
136
  function Ho(e, n) {
137
- if (Ln(e))
137
+ if (Vn(e))
138
138
  return new Map(e);
139
139
  if (Br(e))
140
140
  return new Set(e);
@@ -155,9 +155,9 @@ function Ho(e, n) {
155
155
  value: e[a]
156
156
  });
157
157
  }
158
- return Object.create(Tn(e), r);
158
+ return Object.create(An(e), r);
159
159
  } else {
160
- const r = Tn(e);
160
+ const r = An(e);
161
161
  if (r !== null && t)
162
162
  return { ...e };
163
163
  const o = Object.create(r);
@@ -166,32 +166,32 @@ function Ho(e, n) {
166
166
  }
167
167
  function Ti(e, n = !1) {
168
168
  return Vr(e) || Gt(e) || !We(e) || (Lr(e) > 1 && Object.defineProperties(e, {
169
- set: Wn,
170
- add: Wn,
171
- clear: Wn,
172
- delete: Wn
169
+ set: Yn,
170
+ add: Yn,
171
+ clear: Yn,
172
+ delete: Yn
173
173
  }), Object.freeze(e), n && Object.values(e).forEach((t) => Ti(t, !0))), e;
174
174
  }
175
175
  function sp() {
176
176
  me(2);
177
177
  }
178
- var Wn = {
178
+ var Yn = {
179
179
  value: sp
180
180
  };
181
181
  function Vr(e) {
182
182
  return e === null || typeof e != "object" ? !0 : Object.isFrozen(e);
183
183
  }
184
184
  var Wo = {};
185
- function St(e) {
185
+ function wt(e) {
186
186
  const n = Wo[e];
187
187
  return n || me(0, e), n;
188
188
  }
189
189
  function lp(e, n) {
190
190
  Wo[e] || (Wo[e] = n);
191
191
  }
192
- var An;
192
+ var Rn;
193
193
  function vr() {
194
- return An;
194
+ return Rn;
195
195
  }
196
196
  function cp(e, n) {
197
197
  return {
@@ -205,16 +205,16 @@ function cp(e, n) {
205
205
  };
206
206
  }
207
207
  function Da(e, n) {
208
- n && (St("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = n);
208
+ n && (wt("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = n);
209
209
  }
210
210
  function Go(e) {
211
211
  Yo(e), e.drafts_.forEach(up), e.drafts_ = null;
212
212
  }
213
213
  function Yo(e) {
214
- e === An && (An = e.parent_);
214
+ e === Rn && (Rn = e.parent_);
215
215
  }
216
216
  function Ra(e) {
217
- return An = cp(An, e);
217
+ return Rn = cp(Rn, e);
218
218
  }
219
219
  function up(e) {
220
220
  const n = e[Q];
@@ -223,7 +223,7 @@ function up(e) {
223
223
  function _a(e, n) {
224
224
  n.unfinalizedDrafts_ = n.drafts_.length;
225
225
  const t = n.drafts_[0];
226
- return e !== void 0 && e !== t ? (t[Q].modified_ && (Go(n), me(4)), We(e) && (e = Cr(n, e), n.parent_ || Sr(n, e)), n.patches_ && St("Patches").generateReplacementPatches_(
226
+ return e !== void 0 && e !== t ? (t[Q].modified_ && (Go(n), me(4)), We(e) && (e = Cr(n, e), n.parent_ || Sr(n, e)), n.patches_ && wt("Patches").generateReplacementPatches_(
227
227
  t[Q].base_,
228
228
  e,
229
229
  n.patches_,
@@ -235,7 +235,7 @@ function Cr(e, n, t) {
235
235
  return n;
236
236
  const r = e.immer_.shouldUseStrictIteration(), o = n[Q];
237
237
  if (!o)
238
- return Fn(
238
+ return Dn(
239
239
  n,
240
240
  (i, a) => Pa(e, o, n, i, a, t),
241
241
  r
@@ -248,7 +248,7 @@ function Cr(e, n, t) {
248
248
  o.finalized_ = !0, o.scope_.unfinalizedDrafts_--;
249
249
  const i = o.copy_;
250
250
  let a = i, s = !1;
251
- o.type_ === 3 && (a = new Set(i), i.clear(), s = !0), Fn(
251
+ o.type_ === 3 && (a = new Set(i), i.clear(), s = !0), Dn(
252
252
  a,
253
253
  (l, c) => Pa(
254
254
  e,
@@ -260,7 +260,7 @@ function Cr(e, n, t) {
260
260
  s
261
261
  ),
262
262
  r
263
- ), Sr(e, i, !1), t && e.patches_ && St("Patches").generatePatches_(
263
+ ), Sr(e, i, !1), t && e.patches_ && wt("Patches").generatePatches_(
264
264
  o,
265
265
  t,
266
266
  e.patches_,
@@ -285,7 +285,7 @@ function Pa(e, n, t, r, o, i, a) {
285
285
  if (We(o) && !s) {
286
286
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || n && n.base_ && n.base_[r] === o && s)
287
287
  return;
288
- Cr(e, o), (!n || !n.scope_.parent_) && typeof r != "symbol" && (Ln(t) ? t.has(r) : Object.prototype.propertyIsEnumerable.call(t, r)) && Sr(e, o);
288
+ Cr(e, o), (!n || !n.scope_.parent_) && typeof r != "symbol" && (Vn(t) ? t.has(r) : Object.prototype.propertyIsEnumerable.call(t, r)) && Sr(e, o);
289
289
  }
290
290
  }
291
291
  }
@@ -317,7 +317,7 @@ function dp(e, n) {
317
317
  isManual_: !1
318
318
  };
319
319
  let o = r, i = Fi;
320
- t && (o = [r], i = Dn);
320
+ t && (o = [r], i = _n);
321
321
  const { revoke: a, proxy: s } = Proxy.revocable(o, i);
322
322
  return r.draft_ = s, r.revoke_ = a, s;
323
323
  }
@@ -329,7 +329,7 @@ var Fi = {
329
329
  if (!qo(t, n))
330
330
  return fp(e, t, n);
331
331
  const r = t[n];
332
- return e.finalized_ || !We(r) ? r : r === po(e.base_, n) ? (mo(e), e.copy_[n] = Rn(r, e)) : r;
332
+ return e.finalized_ || !We(r) ? r : r === po(e.base_, n) ? (mo(e), e.copy_[n] = Pn(r, e)) : r;
333
333
  },
334
334
  has(e, n) {
335
335
  return n in se(e);
@@ -371,21 +371,21 @@ var Fi = {
371
371
  me(11);
372
372
  },
373
373
  getPrototypeOf(e) {
374
- return Tn(e.base_);
374
+ return An(e.base_);
375
375
  },
376
376
  setPrototypeOf() {
377
377
  me(12);
378
378
  }
379
- }, Dn = {};
380
- Fn(Fi, (e, n) => {
381
- Dn[e] = function() {
379
+ }, _n = {};
380
+ Dn(Fi, (e, n) => {
381
+ _n[e] = function() {
382
382
  return arguments[0] = arguments[0][0], n.apply(this, arguments);
383
383
  };
384
384
  });
385
- Dn.deleteProperty = function(e, n) {
386
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(n)) && me(13), Dn.set.call(this, e, n, void 0);
385
+ _n.deleteProperty = function(e, n) {
386
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(n)) && me(13), _n.set.call(this, e, n, void 0);
387
387
  };
388
- Dn.set = function(e, n, t) {
388
+ _n.set = function(e, n, t) {
389
389
  return process.env.NODE_ENV !== "production" && n !== "length" && isNaN(parseInt(n)) && me(14), Fi.set.call(this, e[0], n, t, e[0]);
390
390
  };
391
391
  function po(e, n) {
@@ -404,12 +404,12 @@ function fp(e, n, t) {
404
404
  function sl(e, n) {
405
405
  if (!(n in e))
406
406
  return;
407
- let t = Tn(e);
407
+ let t = An(e);
408
408
  for (; t; ) {
409
409
  const r = Object.getOwnPropertyDescriptor(t, n);
410
410
  if (r)
411
411
  return r;
412
- t = Tn(t);
412
+ t = An(t);
413
413
  }
414
414
  }
415
415
  function He(e) {
@@ -435,7 +435,7 @@ var pp = class {
435
435
  typeof t != "function" && me(6), r !== void 0 && typeof r != "function" && me(7);
436
436
  let o;
437
437
  if (We(n)) {
438
- const i = Ra(this), a = Rn(n, void 0);
438
+ const i = Ra(this), a = Pn(n, void 0);
439
439
  let s = !0;
440
440
  try {
441
441
  o = t(a), s = !1;
@@ -446,7 +446,7 @@ var pp = class {
446
446
  } else if (!n || typeof n != "object") {
447
447
  if (o = t(n), o === void 0 && (o = n), o === ol && (o = void 0), this.autoFreeze_ && Ti(o, !0), r) {
448
448
  const i = [], a = [];
449
- St("Patches").generateReplacementPatches_(n, o, i, a), r(i, a);
449
+ wt("Patches").generateReplacementPatches_(n, o, i, a), r(i, a);
450
450
  }
451
451
  return o;
452
452
  } else
@@ -462,7 +462,7 @@ var pp = class {
462
462
  }
463
463
  createDraft(e) {
464
464
  We(e) || me(8), Gt(e) && (e = mp(e));
465
- const n = Ra(this), t = Rn(e, void 0);
465
+ const n = Ra(this), t = Pn(e, void 0);
466
466
  return t[Q].isManual_ = !0, Yo(n), t;
467
467
  }
468
468
  finishDraft(e, n) {
@@ -509,15 +509,15 @@ var pp = class {
509
509
  }
510
510
  }
511
511
  t > -1 && (n = n.slice(t + 1));
512
- const r = St("Patches").applyPatches_;
512
+ const r = wt("Patches").applyPatches_;
513
513
  return Gt(e) ? r(e, n) : this.produce(
514
514
  e,
515
515
  (o) => r(o, n)
516
516
  );
517
517
  }
518
518
  };
519
- function Rn(e, n) {
520
- const t = Ln(e) ? St("MapSet").proxyMap_(e, n) : Br(e) ? St("MapSet").proxySet_(e, n) : dp(e, n);
519
+ function Pn(e, n) {
520
+ const t = Vn(e) ? wt("MapSet").proxyMap_(e, n) : Br(e) ? wt("MapSet").proxySet_(e, n) : dp(e, n);
521
521
  return (n ? n.scope_ : vr()).drafts_.push(t), t;
522
522
  }
523
523
  function mp(e) {
@@ -534,7 +534,7 @@ function ll(e) {
534
534
  n.finalized_ = !0, t = Ho(e, n.scope_.immer_.useStrictShallowCopy_), r = n.scope_.immer_.shouldUseStrictIteration();
535
535
  } else
536
536
  t = Ho(e, !0);
537
- return Fn(
537
+ return Dn(
538
538
  t,
539
539
  (o, i) => {
540
540
  al(t, o, ll(i));
@@ -577,7 +577,7 @@ function wI() {
577
577
  }
578
578
  clear() {
579
579
  const l = this[Q];
580
- a(l), se(l).size && (t(l), He(l), l.assigned_ = /* @__PURE__ */ new Map(), Fn(l.base_, (c) => {
580
+ a(l), se(l).size && (t(l), He(l), l.assigned_ = /* @__PURE__ */ new Map(), Dn(l.base_, (c) => {
581
581
  l.assigned_.set(c, !1);
582
582
  }), l.copy_.clear());
583
583
  }
@@ -593,7 +593,7 @@ function wI() {
593
593
  const u = se(c).get(l);
594
594
  if (c.finalized_ || !We(u) || u !== c.base_.get(l))
595
595
  return u;
596
- const d = Rn(u, c);
596
+ const d = Pn(u, c);
597
597
  return t(c), c.copy_.set(l, d), d;
598
598
  }
599
599
  keys() {
@@ -705,7 +705,7 @@ function wI() {
705
705
  function i(s) {
706
706
  s.copy_ || (s.copy_ = /* @__PURE__ */ new Set(), s.base_.forEach((l) => {
707
707
  if (We(l)) {
708
- const c = Rn(l, s);
708
+ const c = Pn(l, s);
709
709
  s.drafts_.set(l, c), s.copy_.add(c);
710
710
  } else
711
711
  s.copy_.add(l);
@@ -747,15 +747,15 @@ var bp = function e(n, t) {
747
747
  }
748
748
  return n !== n && t !== t;
749
749
  };
750
- const Oa = /* @__PURE__ */ Zs(bp), bt = /* @__PURE__ */ new Map();
750
+ const Oa = /* @__PURE__ */ Zs(bp), vt = /* @__PURE__ */ new Map();
751
751
  function vp(e, n) {
752
- return bt.has(e) || bt.set(e, /* @__PURE__ */ new Set()), bt.get(e).add(n), () => {
752
+ return vt.has(e) || vt.set(e, /* @__PURE__ */ new Set()), vt.get(e).add(n), () => {
753
753
  var t;
754
- (t = bt.get(e)) == null || t.delete(n);
754
+ (t = vt.get(e)) == null || t.delete(n);
755
755
  };
756
756
  }
757
757
  function Di(e) {
758
- const n = bt.get(e);
758
+ const n = vt.get(e);
759
759
  n && n.forEach((t) => {
760
760
  try {
761
761
  t();
@@ -765,14 +765,14 @@ function Di(e) {
765
765
  });
766
766
  }
767
767
  function Cp(e) {
768
- e ? bt.delete(e) : bt.clear();
768
+ e ? vt.delete(e) : vt.clear();
769
769
  }
770
- const ct = {
770
+ const ut = {
771
771
  subscribe: vp,
772
772
  emit: Di,
773
773
  clear: Cp
774
- }, xI = () => Di("dashboard:load"), II = () => Di("dashboard:unload"), Ma = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, _n = /* @__PURE__ */ new Map(), Gn = (e) => {
775
- const n = _n.get(e);
774
+ }, xI = () => Di("dashboard:load"), II = () => Di("dashboard:unload"), Ma = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, On = /* @__PURE__ */ new Map(), Kn = (e) => {
775
+ const n = On.get(e);
776
776
  return n ? Object.fromEntries(
777
777
  Object.entries(n.stores).map(([t, r]) => [t, r.getState()])
778
778
  ) : {};
@@ -782,18 +782,18 @@ const ct = {
782
782
  type: "untracked",
783
783
  connection: n.connect(t)
784
784
  };
785
- const r = _n.get(t.name);
785
+ const r = On.get(t.name);
786
786
  if (r)
787
787
  return { type: "tracked", store: e, ...r };
788
788
  const o = {
789
789
  connection: n.connect(t),
790
790
  stores: {}
791
791
  };
792
- return _n.set(t.name, o), { type: "tracked", store: e, ...o };
792
+ return On.set(t.name, o), { type: "tracked", store: e, ...o };
793
793
  }, wp = (e, n) => {
794
794
  if (n === void 0) return;
795
- const t = _n.get(e);
796
- t && (delete t.stores[n], Object.keys(t.stores).length === 0 && _n.delete(e));
795
+ const t = On.get(e);
796
+ t && (delete t.stores[n], Object.keys(t.stores).length === 0 && On.delete(e));
797
797
  }, xp = (e) => {
798
798
  var n, t;
799
799
  if (!e) return;
@@ -827,7 +827,7 @@ const ct = {
827
827
  type: `${s}/${y.type}`
828
828
  },
829
829
  {
830
- ...Gn(l.name),
830
+ ...Kn(l.name),
831
831
  [s]: o.getState()
832
832
  }
833
833
  ), g);
@@ -893,20 +893,20 @@ const ct = {
893
893
  case "DISPATCH":
894
894
  switch (m.payload.type) {
895
895
  case "RESET":
896
- return h(v), s === void 0 ? u == null ? void 0 : u.init(o.getState()) : u == null ? void 0 : u.init(Gn(l.name));
896
+ return h(v), s === void 0 ? u == null ? void 0 : u.init(o.getState()) : u == null ? void 0 : u.init(Kn(l.name));
897
897
  case "COMMIT":
898
898
  if (s === void 0) {
899
899
  u == null || u.init(o.getState());
900
900
  return;
901
901
  }
902
- return u == null ? void 0 : u.init(Gn(l.name));
902
+ return u == null ? void 0 : u.init(Kn(l.name));
903
903
  case "ROLLBACK":
904
904
  return ho(m.state, (C) => {
905
905
  if (s === void 0) {
906
906
  h(C), u == null || u.init(o.getState());
907
907
  return;
908
908
  }
909
- h(C[s]), u == null || u.init(Gn(l.name));
909
+ h(C[s]), u == null || u.init(Kn(l.name));
910
910
  });
911
911
  case "JUMP_TO_STATE":
912
912
  case "JUMP_TO_ACTION":
@@ -1139,20 +1139,20 @@ function Dp(e) {
1139
1139
  if (i.length === 1) {
1140
1140
  const a = i[0];
1141
1141
  t.push({
1142
- id: rt(),
1142
+ id: ot(),
1143
1143
  logicalOperator: "AND",
1144
1144
  negate: !1,
1145
1145
  conditions: [
1146
- Xo(a, rt())
1146
+ Xo(a, ot())
1147
1147
  ],
1148
1148
  groups: []
1149
1149
  });
1150
1150
  } else {
1151
1151
  const a = i.map(
1152
- (s) => Xo(s, rt())
1152
+ (s) => Xo(s, ot())
1153
1153
  );
1154
1154
  t.push({
1155
- id: rt(),
1155
+ id: ot(),
1156
1156
  logicalOperator: "OR",
1157
1157
  negate: !1,
1158
1158
  conditions: a,
@@ -1161,7 +1161,7 @@ function Dp(e) {
1161
1161
  }
1162
1162
  if (t.length !== 0)
1163
1163
  return {
1164
- id: rt(),
1164
+ id: ot(),
1165
1165
  logicalOperator: "AND",
1166
1166
  negate: !1,
1167
1167
  conditions: [],
@@ -1172,7 +1172,7 @@ function Rp(e) {
1172
1172
  const n = e.filter(Boolean);
1173
1173
  if (n.length !== 0)
1174
1174
  return n.length === 1 ? n[0] : {
1175
- id: rt(),
1175
+ id: ot(),
1176
1176
  logicalOperator: "AND",
1177
1177
  // merge static + click filters
1178
1178
  negate: !1,
@@ -1483,7 +1483,7 @@ function AI(e) {
1483
1483
  errors: n
1484
1484
  };
1485
1485
  }
1486
- function Yn(e) {
1486
+ function Xn(e) {
1487
1487
  return typeof e == "string" && e.trim().length > 0;
1488
1488
  }
1489
1489
  function hl(e) {
@@ -1491,15 +1491,15 @@ function hl(e) {
1491
1491
  return !1;
1492
1492
  switch (e.mode) {
1493
1493
  case "drillDown":
1494
- return Yn(e.hierarchyId);
1494
+ return Xn(e.hierarchyId);
1495
1495
  case "dynamicDrill":
1496
1496
  return Array.isArray(e.availableFields) && e.availableFields.length > 0;
1497
1497
  case "drillThrough":
1498
- return Yn(e.targetDashboardId);
1498
+ return Xn(e.targetDashboardId);
1499
1499
  case "drillToDetail":
1500
- return Yn(e.targetInsightId);
1500
+ return Xn(e.targetInsightId);
1501
1501
  case "drillToURL":
1502
- return Yn(e.urlTemplate);
1502
+ return Xn(e.urlTemplate);
1503
1503
  case "clickFilter":
1504
1504
  case "inlineDrill":
1505
1505
  case "drillUp":
@@ -1549,7 +1549,7 @@ function $p(e, n) {
1549
1549
  const t = _i(e, n);
1550
1550
  return t.length > 0 ? t[0] : null;
1551
1551
  }
1552
- function vt(e, n) {
1552
+ function Ct(e, n) {
1553
1553
  if (e.sourceCardId !== n.sourceCardId || !Array.isArray(e.filterGroups) || !Array.isArray(n.filterGroups) || e.filterGroups.length !== n.filterGroups.length) return !1;
1554
1554
  const t = (s) => {
1555
1555
  if (!s) return "";
@@ -1686,9 +1686,9 @@ function Up(e, n, t, r, o, i, a) {
1686
1686
  metric: (E = e.metrics) == null ? void 0 : E[0],
1687
1687
  applyToCardIds: u.applyToCardIds,
1688
1688
  excludeCardIds: u.excludeCardIds
1689
- }, h = o.interactionStates[n.id] ?? ot(), v = h.appliedClickFilters ?? [];
1689
+ }, h = o.interactionStates[n.id] ?? it(), v = h.appliedClickFilters ?? [];
1690
1690
  return v.some(
1691
- (I) => vt(I, p)
1691
+ (I) => Ct(I, p)
1692
1692
  ) && v.length === 1 ? o.setInteractionState(n.id, {
1693
1693
  ...h,
1694
1694
  appliedClickFilters: []
@@ -1730,10 +1730,10 @@ function RI(e, n, t, r) {
1730
1730
  card: e
1731
1731
  });
1732
1732
  if (!m) return;
1733
- const b = o.interactionStates[e.id] ?? ot(), C = b.appliedClickFilters ?? [], y = C.some(
1734
- (w) => vt(w, m)
1733
+ const b = o.interactionStates[e.id] ?? it(), C = b.appliedClickFilters ?? [], y = C.some(
1734
+ (w) => Ct(w, m)
1735
1735
  ) ? C.filter(
1736
- (w) => !vt(w, m)
1736
+ (w) => !Ct(w, m)
1737
1737
  ) : [...C, m];
1738
1738
  o.setInteractionState(e.id, {
1739
1739
  ...b,
@@ -1904,10 +1904,10 @@ const Ut = Zt()(
1904
1904
  { name: "chartjs-store" }
1905
1905
  )
1906
1906
  );
1907
- ct.subscribe("dashboard:load", () => {
1907
+ ut.subscribe("dashboard:load", () => {
1908
1908
  Ut.getState().resetStore();
1909
1909
  });
1910
- ct.subscribe("dashboard:unload", () => {
1910
+ ut.subscribe("dashboard:unload", () => {
1911
1911
  Ut.getState().resetStore();
1912
1912
  });
1913
1913
  const gl = [
@@ -2028,8 +2028,8 @@ function Xp(e, n) {
2028
2028
  metricColumns: s
2029
2029
  } : e;
2030
2030
  }
2031
- const Ct = "__DRILL_CONTEXT__";
2032
- function ot() {
2031
+ const St = "__DRILL_CONTEXT__";
2032
+ function it() {
2033
2033
  return {
2034
2034
  breadcrumbs: [],
2035
2035
  hierarchyId: void 0,
@@ -2054,15 +2054,15 @@ const Ee = Zt()(
2054
2054
  e((t) => ({
2055
2055
  interactionStates: {
2056
2056
  ...t.interactionStates,
2057
- [n]: ot()
2057
+ [n]: it()
2058
2058
  }
2059
2059
  }));
2060
2060
  },
2061
2061
  toggleClickFilter: (n, t) => {
2062
2062
  e((r) => {
2063
- const o = r.interactionStates[n] ?? ot(), i = o.appliedClickFilters ?? [], a = i.some(
2064
- (l) => vt(l, t)
2065
- ), s = a ? i.filter((l) => !vt(l, t)) : [...i, t];
2063
+ const o = r.interactionStates[n] ?? it(), i = o.appliedClickFilters ?? [], a = i.some(
2064
+ (l) => Ct(l, t)
2065
+ ), s = a ? i.filter((l) => !Ct(l, t)) : [...i, t];
2066
2066
  return a && s.filter(
2067
2067
  (c) => c.sourceCardId === t.sourceCardId
2068
2068
  ).length === 0 && Ut.getState().clearBlurForCard(t.sourceCardId), {
@@ -2078,7 +2078,7 @@ const Ee = Zt()(
2078
2078
  },
2079
2079
  removeClickFiltersByValue: (n, t, r) => {
2080
2080
  e((o) => {
2081
- const i = o.interactionStates[n] ?? ot(), a = i.appliedClickFilters ?? [], s = a.filter(
2081
+ const i = o.interactionStates[n] ?? it(), a = i.appliedClickFilters ?? [], s = a.filter(
2082
2082
  (u) => u.filterGroups.some(
2083
2083
  (d) => d.filters.some((p) => {
2084
2084
  const h = p.field.label, v = p.field.name;
@@ -2087,13 +2087,13 @@ const Ee = Zt()(
2087
2087
  )
2088
2088
  ), l = /* @__PURE__ */ new Set(), c = a.filter((u) => {
2089
2089
  const d = s.some(
2090
- (p) => vt(u, p)
2090
+ (p) => Ct(u, p)
2091
2091
  );
2092
2092
  return d && l.add(u.sourceCardId), !d;
2093
2093
  });
2094
2094
  return l.forEach((u) => {
2095
2095
  const d = o.interactionStates[u], h = ((d == null ? void 0 : d.appliedClickFilters) ?? []).filter((m) => !s.some(
2096
- (b) => vt(m, b)
2096
+ (b) => Ct(m, b)
2097
2097
  ));
2098
2098
  let v = !1;
2099
2099
  Object.entries(o.interactionStates).forEach(
@@ -2120,7 +2120,7 @@ const Ee = Zt()(
2120
2120
  applyInteractionEvent: (n, t, r = !1) => {
2121
2121
  e((o) => {
2122
2122
  var s;
2123
- const i = o.interactionStates[n] ?? ot(), a = r ? ot() : i;
2123
+ const i = o.interactionStates[n] ?? it(), a = r ? it() : i;
2124
2124
  if (t.interactionMode === "clickFilter") {
2125
2125
  const l = r ? [t] : [
2126
2126
  ...a.appliedClickFilters ?? [],
@@ -2222,7 +2222,7 @@ const Ee = Zt()(
2222
2222
  e((n) => {
2223
2223
  const t = { ...n.interactionStates };
2224
2224
  for (const r in t)
2225
- r !== Ct && (t[r] = {
2225
+ r !== St && (t[r] = {
2226
2226
  ...t[r],
2227
2227
  appliedClickFilters: []
2228
2228
  });
@@ -2246,14 +2246,14 @@ const Ee = Zt()(
2246
2246
  { name: "interaction-store" }
2247
2247
  )
2248
2248
  );
2249
- ct.subscribe("dashboard:load", () => {
2249
+ ut.subscribe("dashboard:load", () => {
2250
2250
  Ee.getState().resetAllInteractionStates();
2251
2251
  });
2252
- ct.subscribe("dashboard:unload", () => {
2252
+ ut.subscribe("dashboard:unload", () => {
2253
2253
  Ee.getState().resetAllInteractionStates();
2254
2254
  });
2255
2255
  function bl(e, n) {
2256
- return Object.entries(n).filter(([r]) => r !== Ct).flatMap(([, r]) => (r == null ? void 0 : r.appliedClickFilters) ?? []).filter((r) => {
2256
+ return Object.entries(n).filter(([r]) => r !== St).flatMap(([, r]) => (r == null ? void 0 : r.appliedClickFilters) ?? []).filter((r) => {
2257
2257
  var o, i;
2258
2258
  return r.sourceCardId === e && !r.filterSourceCard ? !1 : (o = r.applyToCardIds) != null && o.length ? r.applyToCardIds.includes(e) : (i = r.excludeCardIds) != null && i.length ? !r.excludeCardIds.includes(e) : !0;
2259
2259
  });
@@ -2265,7 +2265,7 @@ const BI = (e) => Ee(
2265
2265
  );
2266
2266
  function $r(e, n, t) {
2267
2267
  var v, m;
2268
- const r = e.id, o = (v = e.config) == null ? void 0 : v.filters, i = bl(r, n), a = n[Ct], c = [...t && (a == null ? void 0 : a.targetDashboardId) === t && (a == null ? void 0 : a.contextMode) !== "none" ? (a == null ? void 0 : a.appliedClickFilters) || [] : [], ...i], u = Dp(c), p = (((m = n[r]) == null ? void 0 : m.breadcrumbs) ?? []).map((b, C) => ({
2268
+ const r = e.id, o = (v = e.config) == null ? void 0 : v.filters, i = bl(r, n), a = n[St], c = [...t && (a == null ? void 0 : a.targetDashboardId) === t && (a == null ? void 0 : a.contextMode) !== "none" ? (a == null ? void 0 : a.appliedClickFilters) || [] : [], ...i], u = Dp(c), p = (((m = n[r]) == null ? void 0 : m.breadcrumbs) ?? []).map((b, C) => ({
2269
2269
  id: `breadcrumb-${C}`,
2270
2270
  logicalOperator: "OR",
2271
2271
  negate: !1,
@@ -2523,7 +2523,7 @@ const wr = {
2523
2523
  sm: 24,
2524
2524
  xs: 12,
2525
2525
  xxs: 6
2526
- }, Sn = [...xi].sort(
2526
+ }, xn = [...xi].sort(
2527
2527
  (e, n) => wr[e] - wr[n]
2528
2528
  ), sm = {
2529
2529
  initialHeight: 35,
@@ -2636,17 +2636,17 @@ function gm(e, n, t) {
2636
2636
  const r = (i = e[t]) == null ? void 0 : i.find((l) => l.i === n);
2637
2637
  if (r)
2638
2638
  return r;
2639
- const o = Sn.indexOf(t);
2639
+ const o = xn.indexOf(t);
2640
2640
  if (o !== -1) {
2641
- for (let l = o + 1; l < Sn.length; l += 1) {
2642
- const c = Sn[l], u = (a = e[c]) == null ? void 0 : a.find(
2641
+ for (let l = o + 1; l < xn.length; l += 1) {
2642
+ const c = xn[l], u = (a = e[c]) == null ? void 0 : a.find(
2643
2643
  (d) => d.i === n
2644
2644
  );
2645
2645
  if (u)
2646
2646
  return u;
2647
2647
  }
2648
2648
  for (let l = o - 1; l >= 0; l -= 1) {
2649
- const c = Sn[l], u = (s = e[c]) == null ? void 0 : s.find(
2649
+ const c = xn[l], u = (s = e[c]) == null ? void 0 : s.find(
2650
2650
  (d) => d.i === n
2651
2651
  );
2652
2652
  if (u)
@@ -2688,7 +2688,7 @@ function ym({
2688
2688
  duplicatedId: n,
2689
2689
  layouts: t
2690
2690
  }) {
2691
- if (!t || !Sn.some(
2691
+ if (!t || !xn.some(
2692
2692
  (i) => {
2693
2693
  var a;
2694
2694
  return (a = t[i]) == null ? void 0 : a.some((s) => s.i === e);
@@ -2851,14 +2851,14 @@ function Am(e, n) {
2851
2851
  function Dm(e, n) {
2852
2852
  return Im(e, -n);
2853
2853
  }
2854
- const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2854
+ const ht = (e, n) => e.toString().padStart(n, "0"), Rt = (e, n) => {
2855
2855
  const t = Nr(e, n, "yyyy-MM-dd"), [r, o, i] = t.split("-").map((a) => Number(a));
2856
2856
  return {
2857
2857
  year: r,
2858
2858
  month: o,
2859
2859
  day: i
2860
2860
  };
2861
- }, Rt = (e, n) => {
2861
+ }, _t = (e, n) => {
2862
2862
  const {
2863
2863
  year: t,
2864
2864
  month: r,
@@ -2867,13 +2867,13 @@ const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2867
2867
  minutes: a = 0,
2868
2868
  seconds: s = 0,
2869
2869
  milliseconds: l = 0
2870
- } = e, c = `${mt(t, 4)}-${mt(r, 2)}-${mt(
2870
+ } = e, c = `${ht(t, 4)}-${ht(r, 2)}-${ht(
2871
2871
  o,
2872
2872
  2
2873
- )}T${mt(i, 2)}:${mt(a, 2)}:${mt(
2873
+ )}T${ht(i, 2)}:${ht(a, 2)}:${ht(
2874
2874
  s,
2875
2875
  2
2876
- )}.${mt(l, 3)}`;
2876
+ )}.${ht(l, 3)}`;
2877
2877
  return Wt(c, n);
2878
2878
  }, Ur = (e, n) => new Date(Date.UTC(e, n, 0)).getUTCDate(), jr = (e, n) => {
2879
2879
  if (n === 0) return e;
@@ -2897,12 +2897,12 @@ const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2897
2897
  month: e.month,
2898
2898
  day: r
2899
2899
  };
2900
- }, Rl = (e) => Math.floor((e - 1) / 3) * 3 + 1, Lt = (e, n) => {
2901
- const t = Dt(e, n);
2902
- return Rt(t, n);
2903
- }, yt = (e, n) => {
2904
- const t = Dt(e, n);
2905
- return Rt(
2900
+ }, Rl = (e) => Math.floor((e - 1) / 3) * 3 + 1, bt = (e, n) => {
2901
+ const t = Rt(e, n);
2902
+ return _t(t, n);
2903
+ }, rt = (e, n) => {
2904
+ const t = Rt(e, n);
2905
+ return _t(
2906
2906
  {
2907
2907
  ...t,
2908
2908
  hours: 23,
@@ -2913,22 +2913,22 @@ const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2913
2913
  n
2914
2914
  );
2915
2915
  }, ki = (e, n, t) => {
2916
- const r = Dt(e, n);
2917
- return Rt(t(r), n);
2916
+ const r = Rt(e, n);
2917
+ return _t(t(r), n);
2918
2918
  }, Li = (e, n, t) => {
2919
- const r = Dt(e, n), o = Rt(t(r), n);
2920
- return yt(o, n);
2921
- }, wn = (e, n, t = 1) => {
2922
- const r = typeof t == "object" ? t.weekStart : t, i = (Number(Nr(e, n, "i")) - r + 7) % 7, a = Dt(e, n), s = i === 0 ? a : jr(a, -i);
2923
- return Rt(s, n);
2924
- }, Kn = (e, n, t = 1) => {
2925
- const r = typeof t == "object" ? t.weekStart : t, o = wn(e, n, r), i = Dt(o, n), a = jr(i, 6), s = Rt(a, n);
2926
- return yt(s, n);
2927
- }, Xn = (e, n) => ki(e, n, (t) => ({
2919
+ const r = Rt(e, n), o = _t(t(r), n);
2920
+ return rt(o, n);
2921
+ }, In = (e, n, t = 1) => {
2922
+ const r = typeof t == "object" ? t.weekStart : t, i = (Number(Nr(e, n, "i")) - r + 7) % 7, a = Rt(e, n), s = i === 0 ? a : jr(a, -i);
2923
+ return _t(s, n);
2924
+ }, Qn = (e, n, t = 1) => {
2925
+ const r = typeof t == "object" ? t.weekStart : t, o = In(e, n, r), i = Rt(o, n), a = jr(i, 6), s = _t(a, n);
2926
+ return rt(s, n);
2927
+ }, fn = (e, n) => ki(e, n, (t) => ({
2928
2928
  year: t.year,
2929
2929
  month: t.month,
2930
2930
  day: 1
2931
- })), Qn = (e, n) => Li(e, n, (t) => ({
2931
+ })), pn = (e, n) => Li(e, n, (t) => ({
2932
2932
  year: t.year,
2933
2933
  month: t.month,
2934
2934
  day: Ur(t.year, t.month)
@@ -2951,10 +2951,10 @@ const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2951
2951
  year: t.year,
2952
2952
  month: 12,
2953
2953
  day: 31
2954
- })), Bn = (e, n, t, r) => {
2954
+ })), $n = (e, n, t, r) => {
2955
2955
  if (r === 0)
2956
- return Lt(e, n);
2957
- const o = Dt(e, n);
2956
+ return bt(e, n);
2957
+ const o = Rt(e, n);
2958
2958
  let i = o;
2959
2959
  switch (t) {
2960
2960
  case "day":
@@ -2973,8 +2973,8 @@ const mt = (e, n) => e.toString().padStart(n, "0"), Dt = (e, n) => {
2973
2973
  i = Pm(o, r);
2974
2974
  break;
2975
2975
  }
2976
- return Rt(i, n);
2977
- }, fn = (e, n, t) => Bn(e, n, "day", t), pn = (e, n, t) => Bn(e, n, "week", t), mn = (e, n, t) => Bn(e, n, "month", t), hn = (e, n, t) => Bn(e, n, "quarter", t), gn = (e, n, t) => Bn(e, n, "year", t), XI = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, Om = /* @__PURE__ */ new Set(["last", "this", "previous", "between"]), za = (e) => `${e}`.padStart(2, "0"), Bi = (e) => {
2976
+ return _t(i, n);
2977
+ }, mn = (e, n, t) => $n(e, n, "day", t), hn = (e, n, t) => $n(e, n, "week", t), gn = (e, n, t) => $n(e, n, "month", t), yn = (e, n, t) => $n(e, n, "quarter", t), bn = (e, n, t) => $n(e, n, "year", t), XI = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, Om = /* @__PURE__ */ new Set(["last", "this", "previous", "between"]), za = (e) => `${e}`.padStart(2, "0"), Bi = (e) => {
2978
2978
  if (!e || typeof e != "object") return !1;
2979
2979
  const n = e.mode;
2980
2980
  return typeof n == "string" && Om.has(n);
@@ -2999,44 +2999,44 @@ function Nm(e, n, t = 1) {
2999
2999
  if (l)
3000
3000
  switch (s) {
3001
3001
  case "day": {
3002
- const c = fn(
3002
+ const c = mn(
3003
3003
  r,
3004
3004
  n,
3005
3005
  -a
3006
- ), u = fn(r, n, -1);
3006
+ ), u = mn(r, n, -1);
3007
3007
  return [
3008
- Lt(c, n),
3009
- yt(u, n)
3008
+ bt(c, n),
3009
+ rt(u, n)
3010
3010
  ];
3011
3011
  }
3012
3012
  case "week": {
3013
- const c = pn(
3013
+ const c = hn(
3014
3014
  r,
3015
3015
  n,
3016
3016
  -a
3017
- ), u = pn(r, n, -1);
3017
+ ), u = hn(r, n, -1);
3018
3018
  return [
3019
- wn(c, n, t),
3020
- Kn(u, n, t)
3019
+ In(c, n, t),
3020
+ Qn(u, n, t)
3021
3021
  ];
3022
3022
  }
3023
3023
  case "month": {
3024
- const c = mn(
3024
+ const c = gn(
3025
3025
  r,
3026
3026
  n,
3027
3027
  -a
3028
- ), u = mn(r, n, -1);
3028
+ ), u = gn(r, n, -1);
3029
3029
  return [
3030
- Xn(c, n),
3031
- Qn(u, n)
3030
+ fn(c, n),
3031
+ pn(u, n)
3032
3032
  ];
3033
3033
  }
3034
3034
  case "quarter": {
3035
- const c = hn(
3035
+ const c = yn(
3036
3036
  r,
3037
3037
  n,
3038
3038
  -a
3039
- ), u = hn(
3039
+ ), u = yn(
3040
3040
  r,
3041
3041
  n,
3042
3042
  -1
@@ -3047,11 +3047,11 @@ function Nm(e, n, t = 1) {
3047
3047
  ];
3048
3048
  }
3049
3049
  case "year": {
3050
- const c = gn(
3050
+ const c = bn(
3051
3051
  r,
3052
3052
  n,
3053
3053
  -a
3054
- ), u = gn(r, n, -1);
3054
+ ), u = bn(r, n, -1);
3055
3055
  return [
3056
3056
  er(c, n),
3057
3057
  tr(u, n)
@@ -3090,13 +3090,13 @@ function Nm(e, n, t = 1) {
3090
3090
  let l, c;
3091
3091
  switch (a) {
3092
3092
  case "day":
3093
- l = Lt(r, n), c = yt(r, n);
3093
+ l = bt(r, n), c = rt(r, n);
3094
3094
  break;
3095
3095
  case "week":
3096
- l = wn(r, n, t), c = Kn(r, n, t);
3096
+ l = In(r, n, t), c = Qn(r, n, t);
3097
3097
  break;
3098
3098
  case "month":
3099
- l = Xn(r, n), c = Qn(r, n);
3099
+ l = fn(r, n), c = pn(r, n);
3100
3100
  break;
3101
3101
  case "quarter":
3102
3102
  l = Zn(r, n), c = Jn(r, n);
@@ -3105,41 +3105,48 @@ function Nm(e, n, t = 1) {
3105
3105
  l = er(r, n), c = tr(r, n);
3106
3106
  break;
3107
3107
  }
3108
+ if (e.boundary) {
3109
+ const u = e.boundary === "first_day" ? fn(r, n) : pn(r, n);
3110
+ return [
3111
+ bt(u, n),
3112
+ rt(u, n)
3113
+ ];
3114
+ }
3108
3115
  return s ? [l, r] : [l, c];
3109
3116
  }
3110
3117
  case "previous": {
3111
3118
  const { unit: a } = e;
3112
3119
  switch (a) {
3113
3120
  case "day": {
3114
- const s = fn(r, n, -1);
3121
+ const s = mn(r, n, -1);
3115
3122
  return [
3116
- Lt(s, n),
3117
- yt(s, n)
3123
+ bt(s, n),
3124
+ rt(s, n)
3118
3125
  ];
3119
3126
  }
3120
3127
  case "week": {
3121
- const s = pn(r, n, -1);
3128
+ const s = hn(r, n, -1);
3122
3129
  return [
3123
- wn(s, n, t),
3124
- Kn(s, n, t)
3130
+ In(s, n, t),
3131
+ Qn(s, n, t)
3125
3132
  ];
3126
3133
  }
3127
3134
  case "month": {
3128
- const s = mn(r, n, -1);
3135
+ const s = gn(r, n, -1);
3129
3136
  return [
3130
- Xn(s, n),
3131
- Qn(s, n)
3137
+ fn(s, n),
3138
+ pn(s, n)
3132
3139
  ];
3133
3140
  }
3134
3141
  case "quarter": {
3135
- const s = hn(r, n, -1);
3142
+ const s = yn(r, n, -1);
3136
3143
  return [
3137
3144
  Zn(s, n),
3138
3145
  Jn(s, n)
3139
3146
  ];
3140
3147
  }
3141
3148
  case "year": {
3142
- const s = gn(r, n, -1);
3149
+ const s = bn(r, n, -1);
3143
3150
  return [
3144
3151
  er(s, n),
3145
3152
  tr(s, n)
@@ -3152,44 +3159,44 @@ function Nm(e, n, t = 1) {
3152
3159
  const { unit: a, from: s, to: l } = e;
3153
3160
  switch (a) {
3154
3161
  case "day": {
3155
- const c = fn(
3162
+ const c = mn(
3156
3163
  r,
3157
3164
  n,
3158
3165
  s
3159
- ), u = fn(r, n, l);
3166
+ ), u = mn(r, n, l);
3160
3167
  return [
3161
- Lt(c, n),
3162
- yt(u, n)
3168
+ bt(c, n),
3169
+ rt(u, n)
3163
3170
  ];
3164
3171
  }
3165
3172
  case "week": {
3166
- const c = pn(
3173
+ const c = hn(
3167
3174
  r,
3168
3175
  n,
3169
3176
  s
3170
- ), u = pn(r, n, l);
3177
+ ), u = hn(r, n, l);
3171
3178
  return [
3172
- wn(c, n, t),
3173
- Kn(u, n, t)
3179
+ In(c, n, t),
3180
+ Qn(u, n, t)
3174
3181
  ];
3175
3182
  }
3176
3183
  case "month": {
3177
- const c = mn(
3184
+ const c = gn(
3178
3185
  r,
3179
3186
  n,
3180
3187
  s
3181
- ), u = mn(r, n, l);
3188
+ ), u = gn(r, n, l);
3182
3189
  return [
3183
- Xn(c, n),
3184
- Qn(u, n)
3190
+ fn(c, n),
3191
+ pn(u, n)
3185
3192
  ];
3186
3193
  }
3187
3194
  case "quarter": {
3188
- const c = hn(
3195
+ const c = yn(
3189
3196
  r,
3190
3197
  n,
3191
3198
  s
3192
- ), u = hn(
3199
+ ), u = yn(
3193
3200
  r,
3194
3201
  n,
3195
3202
  l
@@ -3200,11 +3207,11 @@ function Nm(e, n, t = 1) {
3200
3207
  ];
3201
3208
  }
3202
3209
  case "year": {
3203
- const c = gn(
3210
+ const c = bn(
3204
3211
  r,
3205
3212
  n,
3206
3213
  s
3207
- ), u = gn(r, n, l);
3214
+ ), u = bn(r, n, l);
3208
3215
  return [
3209
3216
  er(c, n),
3210
3217
  tr(u, n)
@@ -3214,7 +3221,7 @@ function Nm(e, n, t = 1) {
3214
3221
  break;
3215
3222
  }
3216
3223
  }
3217
- return [Lt(r, n), yt(r, n)];
3224
+ return [bt(r, n), rt(r, n)];
3218
3225
  }
3219
3226
  function QI(e) {
3220
3227
  if (!e) return null;
@@ -3231,13 +3238,13 @@ function QI(e) {
3231
3238
  const a = Math.abs(o);
3232
3239
  return o < 0 ? `${a} ${n(a, i)} ago` : `${a} ${n(a, i)} ahead`;
3233
3240
  }, r = (o) => o.charAt(0).toUpperCase() + o.slice(1);
3234
- return e.mode === "this" ? `This ${e.unit}${e.toDate ? " to date" : ""}` : e.mode === "previous" ? `Last ${e.unit}` : e.mode === "last" ? `Last ${e.n} ${n(e.n, e.unit)}` : e.mode === "between" ? e.from === e.to ? r(t(e.from, e.unit)) : `${r(t(e.from, e.unit))} to ${t(
3241
+ return e.mode === "this" ? e.boundary === "first_day" ? "First day of the month" : e.boundary === "last_day" ? "Last day of the month" : `This ${e.unit}${e.toDate ? " to date" : ""}` : e.mode === "previous" ? `Last ${e.unit}` : e.mode === "last" ? `Last ${e.n} ${n(e.n, e.unit)}` : e.mode === "between" ? e.from === e.to ? r(t(e.from, e.unit)) : `${r(t(e.from, e.unit))} to ${t(
3235
3242
  e.to,
3236
3243
  e.unit
3237
3244
  )}` : null;
3238
3245
  }
3239
3246
  function km(e, n) {
3240
- return !(e.mode !== n.mode || e.unit !== n.unit || e.mode === "last" && n.mode === "last" && (e.n !== n.n || !!e.complete != !!n.complete) || e.mode === "this" && n.mode === "this" && !!e.toDate != !!n.toDate || e.mode === "between" && n.mode === "between" && (e.from !== n.from || e.to !== n.to));
3247
+ return !(e.mode !== n.mode || e.unit !== n.unit || e.mode === "last" && n.mode === "last" && (e.n !== n.n || !!e.complete != !!n.complete) || e.mode === "this" && n.mode === "this" && (!!e.toDate != !!n.toDate || e.boundary !== n.boundary) || e.mode === "between" && n.mode === "between" && (e.from !== n.from || e.to !== n.to));
3241
3248
  }
3242
3249
  const Lm = {
3243
3250
  // Sub-day presets
@@ -3248,6 +3255,17 @@ const Lm = {
3248
3255
  "Last 24 hours": { mode: "last", n: 24, unit: "hour" },
3249
3256
  // Day presets
3250
3257
  Today: { mode: "this", unit: "day" },
3258
+ Yesterday: { mode: "previous", unit: "day" },
3259
+ "First day of the month": {
3260
+ mode: "this",
3261
+ unit: "month",
3262
+ boundary: "first_day"
3263
+ },
3264
+ "Last day of the month": {
3265
+ mode: "this",
3266
+ unit: "month",
3267
+ boundary: "last_day"
3268
+ },
3251
3269
  "Last 7 days": { mode: "between", unit: "day", from: -6, to: 0 },
3252
3270
  "Last 30 days": { mode: "between", unit: "day", from: -29, to: 0 },
3253
3271
  "Last 90 days": { mode: "between", unit: "day", from: -89, to: 0 },
@@ -3464,7 +3482,7 @@ function JI(e) {
3464
3482
  });
3465
3483
  return Hm(u, i);
3466
3484
  }
3467
- function Pn(e, n) {
3485
+ function Mn(e, n) {
3468
3486
  return Object.prototype.hasOwnProperty.call(e || {}, n);
3469
3487
  }
3470
3488
  function Ml(e) {
@@ -3497,7 +3515,7 @@ function Ui(e) {
3497
3515
  const n = {}, t = e.dashboardDefaultValues, r = Ml(t);
3498
3516
  for (const o of e.controls || [])
3499
3517
  if (Nl(o)) {
3500
- if (r && Pn(t, o.id)) {
3518
+ if (r && Mn(t, o.id)) {
3501
3519
  const i = t == null ? void 0 : t[o.id];
3502
3520
  i !== void 0 && (n[o.id] = i);
3503
3521
  continue;
@@ -3511,7 +3529,7 @@ function Km(e) {
3511
3529
  return (e.controls || []).map((t) => {
3512
3530
  if (!Nl(t))
3513
3531
  return t;
3514
- const r = Pn(n, t.id) ? n[t.id] : void 0;
3532
+ const r = Mn(n, t.id) ? n[t.id] : void 0;
3515
3533
  return t.defaultValue === r ? t : {
3516
3534
  ...t,
3517
3535
  defaultValue: r
@@ -3520,7 +3538,7 @@ function Km(e) {
3520
3538
  }
3521
3539
  function Ll(e, n) {
3522
3540
  if ($i(e))
3523
- return e.scope === "dashboard" && Ml(n) && Pn(n, e.id) ? n == null ? void 0 : n[e.id] : e.defaultValue;
3541
+ return e.scope === "dashboard" && Ml(n) && Mn(n, e.id) ? n == null ? void 0 : n[e.id] : e.defaultValue;
3524
3542
  }
3525
3543
  function Xm(e) {
3526
3544
  const n = {};
@@ -3562,11 +3580,11 @@ function eE(e) {
3562
3580
  var t, r;
3563
3581
  const n = {};
3564
3582
  for (const o of e.relevantControlIds) {
3565
- if (Pn(e.cardValues, o)) {
3583
+ if (Mn(e.cardValues, o)) {
3566
3584
  n[o] = (t = e.cardValues) == null ? void 0 : t[o];
3567
3585
  continue;
3568
3586
  }
3569
- Pn(e.dashboardValues, o) && (n[o] = (r = e.dashboardValues) == null ? void 0 : r[o]);
3587
+ Mn(e.dashboardValues, o) && (n[o] = (r = e.dashboardValues) == null ? void 0 : r[o]);
3570
3588
  }
3571
3589
  return n;
3572
3590
  }
@@ -4479,30 +4497,30 @@ function Rh(e) {
4479
4497
  const s = e.slice(t).trim();
4480
4498
  return s && n.push(s), n.filter(Boolean);
4481
4499
  }
4482
- function Ot(e) {
4500
+ function Mt(e) {
4483
4501
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4484
4502
  }
4485
4503
  function Wa(e, n) {
4486
4504
  const t = {
4487
4505
  getterOrSetter: new RegExp(
4488
- String.raw`^(?:async\s+)?(?:get|set)\s+['"]?${Ot(n)}['"]?\b`,
4506
+ String.raw`^(?:async\s+)?(?:get|set)\s+['"]?${Mt(n)}['"]?\b`,
4489
4507
  "s"
4490
4508
  ),
4491
4509
  methodShorthand: new RegExp(
4492
- String.raw`^(?:async\s+)?['"]?${Ot(n)}['"]?\s*\(`,
4510
+ String.raw`^(?:async\s+)?['"]?${Mt(n)}['"]?\s*\(`,
4493
4511
  "s"
4494
4512
  ),
4495
4513
  functionAssignment: new RegExp(
4496
- String.raw`^['"]?${Ot(n)}['"]?\s*:\s*(?:async\s+)?function\b`,
4514
+ String.raw`^['"]?${Mt(n)}['"]?\s*:\s*(?:async\s+)?function\b`,
4497
4515
  "s"
4498
4516
  ),
4499
4517
  arrowAssignment: new RegExp(
4500
- String.raw`^['"]?${Ot(n)}['"]?\s*:\s*(?:async\s+)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>`,
4518
+ String.raw`^['"]?${Mt(n)}['"]?\s*:\s*(?:async\s+)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>`,
4501
4519
  "s"
4502
4520
  )
4503
4521
  }, r = e.find(
4504
4522
  (o) => new RegExp(
4505
- String.raw`^(?:async\s+)?(?:get\s+|set\s+)?['"]?${Ot(n)}['"]?\b|^['"]?${Ot(n)}['"]?\s*:`,
4523
+ String.raw`^(?:async\s+)?(?:get\s+|set\s+)?['"]?${Mt(n)}['"]?\b|^['"]?${Mt(n)}['"]?\s*:`,
4506
4524
  "s"
4507
4525
  ).test(o)
4508
4526
  );
@@ -4676,32 +4694,32 @@ function Nh() {
4676
4694
  };
4677
4695
  }
4678
4696
  function Kl(e) {
4679
- return Vn(e) ? e.version === 1 && Array.isArray(e.blocks) && e.blocks.every(kh) : !1;
4697
+ return Un(e) ? e.version === 1 && Array.isArray(e.blocks) && e.blocks.every(kh) : !1;
4680
4698
  }
4681
4699
  function vE(e, n) {
4682
4700
  return !Kl(e) || !e.blocks.length ? "" : e.blocks.map((t) => Vh(t, n)).join("");
4683
4701
  }
4684
4702
  function kh(e) {
4685
- return Vn(e) ? e.type === "paragraph" ? Array.isArray(e.children) && e.children.every(ur) : e.type === "heading" ? (e.level === 1 || e.level === 2) && Array.isArray(e.children) && e.children.every(ur) : e.type === "list" ? (e.style === "bulleted" || e.style === "numbered") && Array.isArray(e.items) && e.items.every(
4703
+ return Un(e) ? e.type === "paragraph" ? Array.isArray(e.children) && e.children.every(ur) : e.type === "heading" ? (e.level === 1 || e.level === 2) && Array.isArray(e.children) && e.children.every(ur) : e.type === "list" ? (e.style === "bulleted" || e.style === "numbered") && Array.isArray(e.items) && e.items.every(
4686
4704
  (n) => Array.isArray(n) && n.every(ur)
4687
4705
  ) : !1 : !1;
4688
4706
  }
4689
4707
  function ur(e) {
4690
- return Vn(e) ? e.type === "text" ? typeof e.value == "string" && Ga(e.format) : e.type === "variable" ? Bh(e.ref) && Ga(e.format) : e.type === "link" ? typeof e.url == "string" && Array.isArray(e.children) && e.children.every(Lh) : !1 : !1;
4708
+ return Un(e) ? e.type === "text" ? typeof e.value == "string" && Ga(e.format) : e.type === "variable" ? Bh(e.ref) && Ga(e.format) : e.type === "link" ? typeof e.url == "string" && Array.isArray(e.children) && e.children.every(Lh) : !1 : !1;
4691
4709
  }
4692
4710
  function Lh(e) {
4693
4711
  return ur(e) && (e.type === "text" || e.type === "variable");
4694
4712
  }
4695
4713
  function Ga(e) {
4696
- return e === void 0 ? !0 : Vn(e) ? (e.bold === void 0 || typeof e.bold == "boolean") && (e.italic === void 0 || typeof e.italic == "boolean") : !1;
4714
+ return e === void 0 ? !0 : Un(e) ? (e.bold === void 0 || typeof e.bold == "boolean") && (e.italic === void 0 || typeof e.italic == "boolean") : !1;
4697
4715
  }
4698
4716
  function Bh(e) {
4699
- return Vn(e) ? e.source === "dashboardInput" ? typeof e.inputId == "string" && Ya(e.export) : e.source === "dashboardInputAlias" ? typeof e.variableName == "string" && (e.export === void 0 || Ya(e.export)) : e.source === "documentMeta" ? e.key === "generatedAt" || e.key === "pageNumber" || e.key === "pageCount" : !1 : !1;
4717
+ return Un(e) ? e.source === "dashboardInput" ? typeof e.inputId == "string" && Ya(e.export) : e.source === "dashboardInputAlias" ? typeof e.variableName == "string" && (e.export === void 0 || Ya(e.export)) : e.source === "documentMeta" ? e.key === "generatedAt" || e.key === "pageNumber" || e.key === "pageCount" : !1 : !1;
4700
4718
  }
4701
4719
  function Ya(e) {
4702
4720
  return e === "label" || e === "value" || e === "start" || e === "end" || e === "range";
4703
4721
  }
4704
- function Vn(e) {
4722
+ function Un(e) {
4705
4723
  return !!e && typeof e == "object" && !Array.isArray(e);
4706
4724
  }
4707
4725
  function Vh(e, n) {
@@ -5290,7 +5308,7 @@ function Jl(e, n) {
5290
5308
  if (!(typeof e != "number" || typeof n != "number"))
5291
5309
  return e === n ? n : void 0;
5292
5310
  }
5293
- function wt(e) {
5311
+ function xt(e) {
5294
5312
  if (typeof e != "string")
5295
5313
  return;
5296
5314
  const n = e.trim();
@@ -5328,7 +5346,7 @@ function Zh(e, n, t) {
5328
5346
  };
5329
5347
  }
5330
5348
  function Me(e, n, t) {
5331
- const r = Zh(e, n, t), o = wt(n.locale), i = wt(n.currency), a = typeof n.prefix == "string" ? n.prefix : void 0, s = typeof n.suffix == "string" ? n.suffix : void 0, l = e === "percent" && s === "%" ? void 0 : s, c = {
5349
+ const r = Zh(e, n, t), o = xt(n.locale), i = xt(n.currency), a = typeof n.prefix == "string" ? n.prefix : void 0, s = typeof n.suffix == "string" ? n.suffix : void 0, l = e === "percent" && s === "%" ? void 0 : s, c = {
5332
5350
  type: e,
5333
5351
  locale: o,
5334
5352
  minimumFractionDigits: r.minimumFractionDigits,
@@ -5484,7 +5502,7 @@ function CE(e) {
5484
5502
  });
5485
5503
  if (!n || n.type !== "currency")
5486
5504
  return n;
5487
- const t = !wt(e == null ? void 0 : e.currency) && typeof (e == null ? void 0 : e.decimalPlaces) == "number";
5505
+ const t = !xt(e == null ? void 0 : e.currency) && typeof (e == null ? void 0 : e.decimalPlaces) == "number";
5488
5506
  return {
5489
5507
  ...n,
5490
5508
  currency: t ? "USD" : n.currency
@@ -5493,7 +5511,7 @@ function CE(e) {
5493
5511
  function SE(e) {
5494
5512
  if (!e)
5495
5513
  return;
5496
- const n = wt(e.currency), t = wt(e.locale), r = typeof e.prefix == "string" ? e.prefix : void 0, o = typeof e.suffix == "string" ? e.suffix : void 0, i = n ? "currency" : o === "%" ? "percent" : "number";
5514
+ const n = xt(e.currency), t = xt(e.locale), r = typeof e.prefix == "string" ? e.prefix : void 0, o = typeof e.suffix == "string" ? e.suffix : void 0, i = n ? "currency" : o === "%" ? "percent" : "number";
5497
5515
  return Me(i, {
5498
5516
  currency: n,
5499
5517
  locale: t,
@@ -5509,7 +5527,7 @@ function SE(e) {
5509
5527
  function wE(e) {
5510
5528
  if (!e)
5511
5529
  return;
5512
- const n = wt(e.currency), t = wt(e.locale), r = typeof e.suffix == "string" ? e.suffix : void 0, o = n ? "currency" : r === "%" ? "percent" : "number";
5530
+ const n = xt(e.currency), t = xt(e.locale), r = typeof e.suffix == "string" ? e.suffix : void 0, o = n ? "currency" : r === "%" ? "percent" : "number";
5513
5531
  return Me(o, {
5514
5532
  currency: n,
5515
5533
  locale: t,
@@ -5751,7 +5769,7 @@ const zr = Zt()(
5751
5769
  data: []
5752
5770
  },
5753
5771
  frame: {
5754
- id: rt(),
5772
+ id: ot(),
5755
5773
  cards: [
5756
5774
  {
5757
5775
  id: "editor-card-id",
@@ -5782,7 +5800,7 @@ const zr = Zt()(
5782
5800
  type: "bar",
5783
5801
  visualizationMode: "builtin"
5784
5802
  }, t.frame = {
5785
- id: rt(),
5803
+ id: ot(),
5786
5804
  cards: [
5787
5805
  {
5788
5806
  id: "editor-card-id",
@@ -6601,10 +6619,10 @@ const zr = Zt()(
6601
6619
  }
6602
6620
  }))
6603
6621
  ), AE = () => zr((e) => e.actions);
6604
- ct.subscribe("dashboard:load", () => {
6622
+ ut.subscribe("dashboard:load", () => {
6605
6623
  zr.getState().actions.resetEditorStore();
6606
6624
  });
6607
- ct.subscribe("dashboard:unload", () => {
6625
+ ut.subscribe("dashboard:unload", () => {
6608
6626
  zr.getState().actions.resetEditorStore();
6609
6627
  });
6610
6628
  function tc(e) {
@@ -6679,7 +6697,7 @@ function _E(e) {
6679
6697
  function lg(e) {
6680
6698
  return !!(e && Object.prototype.hasOwnProperty.call(e, "calculatedFields"));
6681
6699
  }
6682
- function xt(...e) {
6700
+ function It(...e) {
6683
6701
  return sg(e.flatMap((n) => n || []));
6684
6702
  }
6685
6703
  function Jt(e, n) {
@@ -6704,7 +6722,7 @@ function cg(e) {
6704
6722
  }
6705
6723
  function rc(e) {
6706
6724
  if (e !== void 0)
6707
- return xt(
6725
+ return It(
6708
6726
  e.map((n) => Jt(n, "dashboard"))
6709
6727
  );
6710
6728
  }
@@ -6714,7 +6732,7 @@ function Za(e) {
6714
6732
  var i;
6715
6733
  return n.push(...cg(o)), {
6716
6734
  ...o,
6717
- calculatedFields: xt(
6735
+ calculatedFields: It(
6718
6736
  qi(o),
6719
6737
  nc(o)
6720
6738
  ),
@@ -6726,7 +6744,7 @@ function Za(e) {
6726
6744
  return {
6727
6745
  ...e,
6728
6746
  calculatedFields: rc(
6729
- xt(
6747
+ It(
6730
6748
  (r = e.calculatedFields) == null ? void 0 : r.map(
6731
6749
  (o) => Jt(o, "dashboard")
6732
6750
  ),
@@ -6743,7 +6761,7 @@ function Ja(e, n) {
6743
6761
  const t = n ? e.frames.find((i) => i.id === n) : void 0, r = e.frames.filter(
6744
6762
  (i) => !n || i.id !== n
6745
6763
  );
6746
- return xt(
6764
+ return It(
6747
6765
  t == null ? void 0 : t.calculatedFields,
6748
6766
  ...r.map((i) => i.calculatedFields)
6749
6767
  );
@@ -6754,18 +6772,18 @@ function PE(e, n) {
6754
6772
  function OE(e, n) {
6755
6773
  if (!e)
6756
6774
  return [];
6757
- const t = qi(e), r = nc(e), o = xt(
6775
+ const t = qi(e), r = nc(e), o = It(
6758
6776
  t,
6759
6777
  r
6760
6778
  );
6761
- return lg(e) ? o.length === 0 ? [] : r.length === 0 ? o : xt(
6779
+ return lg(e) ? o.length === 0 ? [] : r.length === 0 ? o : It(
6762
6780
  o,
6763
6781
  Ja(e, n)
6764
6782
  ) : Ja(e, n);
6765
6783
  }
6766
6784
  function vo(e) {
6767
6785
  if (e !== void 0)
6768
- return xt(
6786
+ return It(
6769
6787
  e.map((n) => Jt(n, "sheet"))
6770
6788
  );
6771
6789
  }
@@ -7092,7 +7110,7 @@ function Wi(e) {
7092
7110
  const n = /* @__PURE__ */ new Set();
7093
7111
  return e.filter((t) => n.has(t.value) ? !1 : (n.add(t.value), !0));
7094
7112
  }
7095
- function $n(e) {
7113
+ function jn(e) {
7096
7114
  return [...e].sort(
7097
7115
  (n, t) => n.label.localeCompare(t.label, void 0, {
7098
7116
  numeric: !0,
@@ -7128,7 +7146,7 @@ function ZE(e) {
7128
7146
  const o = r.label || r.name || r.id, i = uc(o, r.name || r.id);
7129
7147
  n.has(i) || n.set(i, { value: i, label: o }), t[i] || (t[i] = Ig(r));
7130
7148
  }), {
7131
- choices: $n(Array.from(n.values())),
7149
+ choices: jn(Array.from(n.values())),
7132
7150
  targetMap: t
7133
7151
  };
7134
7152
  }
@@ -7138,13 +7156,13 @@ function JE(e, n = "SUM") {
7138
7156
  const i = o.label || o.name || o.id, a = uc(i, o.name || o.id);
7139
7157
  t.has(a) || t.set(a, { value: a, label: i }), r[a] || (r[a] = Eg(o, n));
7140
7158
  }), {
7141
- choices: $n(Array.from(t.values())),
7159
+ choices: jn(Array.from(t.values())),
7142
7160
  targetMap: r
7143
7161
  };
7144
7162
  }
7145
7163
  function eT(e) {
7146
7164
  var n;
7147
- return $n(
7165
+ return jn(
7148
7166
  Wi(
7149
7167
  (((n = e == null ? void 0 : e.config) == null ? void 0 : n.groupByColumns) || []).filter((t) => typeof t.id == "string" && t.id.length > 0).map((t) => ({
7150
7168
  value: t.id,
@@ -7155,7 +7173,7 @@ function eT(e) {
7155
7173
  }
7156
7174
  function tT(e) {
7157
7175
  var n;
7158
- return $n(
7176
+ return jn(
7159
7177
  Wi(
7160
7178
  (((n = e == null ? void 0 : e.config) == null ? void 0 : n.metricColumns) || []).filter((t) => typeof t.id == "string" && t.id.length > 0).map((t) => ({
7161
7179
  value: t.id,
@@ -7172,7 +7190,7 @@ function Tg(e) {
7172
7190
  Wi(r).forEach((i) => {
7173
7191
  n.set(i.value, (n.get(i.value) || 0) + 1), t.has(i.value) || t.set(i.value, i.label);
7174
7192
  });
7175
- }), $n(
7193
+ }), jn(
7176
7194
  Array.from(n.entries()).filter(([, r]) => r === e.length).map(([r]) => ({
7177
7195
  value: r,
7178
7196
  label: t.get(r) || r
@@ -7357,7 +7375,7 @@ function cT(e, n) {
7357
7375
  function Pg(e) {
7358
7376
  return Array.isArray(e) ? e.filter((n) => typeof n == "string") : typeof e == "string" ? [e] : [];
7359
7377
  }
7360
- const En = [
7378
+ const Fn = [
7361
7379
  {
7362
7380
  value: "enum",
7363
7381
  label: "Dropdown",
@@ -7421,7 +7439,7 @@ const En = [
7421
7439
  grain_selector: "Time Grain"
7422
7440
  };
7423
7441
  function dT(e) {
7424
- return En.find((n) => n.value === e) || En[0];
7442
+ return Fn.find((n) => n.value === e) || Fn[0];
7425
7443
  }
7426
7444
  function fT(e) {
7427
7445
  var a;
@@ -7430,12 +7448,12 @@ function fT(e) {
7430
7448
  "aggregation_selector",
7431
7449
  "field_selector",
7432
7450
  "metric_selector"
7433
- ]), o = (n == null ? void 0 : n.scope) === "card" && ((a = n.card) == null ? void 0 : a.sql) == null ? En.filter(
7451
+ ]), o = (n == null ? void 0 : n.scope) === "card" && ((a = n.card) == null ? void 0 : a.sql) == null ? Fn.filter(
7434
7452
  (s) => t.has(s.value)
7435
- ) : En;
7453
+ ) : Fn;
7436
7454
  if (!(n != null && n.includeType) || o.some((s) => s.value === n.includeType))
7437
7455
  return o;
7438
- const i = En.find(
7456
+ const i = Fn.find(
7439
7457
  (s) => s.value === n.includeType
7440
7458
  );
7441
7459
  return i ? [...o, i] : o;
@@ -7549,12 +7567,12 @@ function vT(e) {
7549
7567
  function fe(e) {
7550
7568
  return typeof e == "string" ? e.trim() : "";
7551
7569
  }
7552
- function It(e) {
7570
+ function Et(e) {
7553
7571
  return Array.from(new Set(e.map(fe).filter(Boolean)));
7554
7572
  }
7555
7573
  function qr(e) {
7556
7574
  var n;
7557
- return (n = e.candidateDatasetNames) != null && n.length ? It(e.candidateDatasetNames) : It([e.datasetName]);
7575
+ return (n = e.candidateDatasetNames) != null && n.length ? Et(e.candidateDatasetNames) : Et([e.datasetName]);
7558
7576
  }
7559
7577
  function kg(e, n) {
7560
7578
  const t = e || [];
@@ -7580,11 +7598,11 @@ function CT(e, n) {
7580
7598
  datasetName: o
7581
7599
  }) === n
7582
7600
  );
7583
- return It([t, ...r]);
7601
+ return Et([t, ...r]);
7584
7602
  }
7585
7603
  function hc(e) {
7586
7604
  const n = fe(e.table), t = fe(e.schema), r = fe(e.catalog) || fe(e.database);
7587
- return n ? It([
7605
+ return n ? Et([
7588
7606
  n,
7589
7607
  t ? `${t}.${n}` : "",
7590
7608
  r ? `${r}.${n}` : "",
@@ -7594,7 +7612,7 @@ function hc(e) {
7594
7612
  function gc(e, n, t, r = [t]) {
7595
7613
  if (!n || !t)
7596
7614
  return;
7597
- const o = It(r);
7615
+ const o = Et(r);
7598
7616
  e.set(
7599
7617
  `${n}:${t}:${o.join("|")}`,
7600
7618
  {
@@ -7691,11 +7709,11 @@ function vc(e, n, t = []) {
7691
7709
  s || l ? c = [
7692
7710
  (s || l).datasetName
7693
7711
  ] : i && (e.type === "table" || a === i) ? c = [i, o] : c = [o, i];
7694
- const u = It(c)[0] || "";
7712
+ const u = Et(c)[0] || "";
7695
7713
  return !r || !u ? null : {
7696
7714
  domainId: r,
7697
7715
  datasetName: u,
7698
- candidateDatasetNames: It(c)
7716
+ candidateDatasetNames: Et(c)
7699
7717
  };
7700
7718
  }
7701
7719
  function Cc(e) {
@@ -8281,7 +8299,7 @@ function BT(e) {
8281
8299
  function is(e) {
8282
8300
  return (e == null ? void 0 : e.status) === "set" || (e == null ? void 0 : e.status) === "cleared";
8283
8301
  }
8284
- function yn(e, n, t, r) {
8302
+ function vn(e, n, t, r) {
8285
8303
  const o = xr(e, n, t);
8286
8304
  return r ? (o == null ? void 0 : o.status) === "set" ? Vt(e, n, t, {
8287
8305
  status: "set",
@@ -8565,7 +8583,7 @@ function Eo(e, n) {
8565
8583
  const t = Object.keys(e), r = Object.keys(n);
8566
8584
  return t.length !== r.length ? !1 : t.every((o) => Object.is(e[o], n[o]));
8567
8585
  }
8568
- function ht(e, n) {
8586
+ function gt(e, n) {
8569
8587
  return e[n] || (e[n] = {
8570
8588
  filterValuesByInputId: {},
8571
8589
  filterModesByInputId: {},
@@ -8748,12 +8766,12 @@ const Ke = Zt()(
8748
8766
  },
8749
8767
  setDefaultDashboardInputComparisonSelection: (t, r, o) => {
8750
8768
  e((i) => {
8751
- i.dashboard.defaultInputValues = yn(
8769
+ i.dashboard.defaultInputValues = vn(
8752
8770
  i.dashboard.defaultInputValues || {},
8753
8771
  t,
8754
8772
  r,
8755
8773
  o
8756
- ), i.dashboardInputValues = yn(
8774
+ ), i.dashboardInputValues = vn(
8757
8775
  i.dashboardInputValues,
8758
8776
  t,
8759
8777
  r,
@@ -8773,7 +8791,7 @@ const Ke = Zt()(
8773
8791
  t,
8774
8792
  r,
8775
8793
  o
8776
- ) : yn(
8794
+ ) : vn(
8777
8795
  i.dashboardInputValues,
8778
8796
  t,
8779
8797
  r,
@@ -8783,7 +8801,7 @@ const Ke = Zt()(
8783
8801
  },
8784
8802
  setDashboardInputComparisonSelection: (t, r, o) => {
8785
8803
  e((i) => {
8786
- i.dashboardInputValues = yn(
8804
+ i.dashboardInputValues = vn(
8787
8805
  i.dashboardInputValues,
8788
8806
  t,
8789
8807
  r,
@@ -8793,7 +8811,7 @@ const Ke = Zt()(
8793
8811
  },
8794
8812
  resetDashboardInputComparisonSelection: (t, r) => {
8795
8813
  e((o) => {
8796
- o.dashboardInputValues = yn(
8814
+ o.dashboardInputValues = vn(
8797
8815
  o.dashboardInputValues,
8798
8816
  t,
8799
8817
  r,
@@ -9254,7 +9272,7 @@ const Ke = Zt()(
9254
9272
  },
9255
9273
  setDocumentInputFilterValues: (t, r) => {
9256
9274
  e((o) => {
9257
- const i = ht(
9275
+ const i = gt(
9258
9276
  o.documentInputRuntimeBySheetId,
9259
9277
  t
9260
9278
  );
@@ -9266,7 +9284,7 @@ const Ke = Zt()(
9266
9284
  },
9267
9285
  setDocumentInputFilterValue: (t, r, o) => {
9268
9286
  e((i) => {
9269
- const a = ht(
9287
+ const a = gt(
9270
9288
  i.documentInputRuntimeBySheetId,
9271
9289
  t
9272
9290
  );
@@ -9278,7 +9296,7 @@ const Ke = Zt()(
9278
9296
  },
9279
9297
  removeDocumentInputFilterValue: (t, r) => {
9280
9298
  e((o) => {
9281
- const i = ht(
9299
+ const i = gt(
9282
9300
  o.documentInputRuntimeBySheetId,
9283
9301
  t
9284
9302
  );
@@ -9290,7 +9308,7 @@ const Ke = Zt()(
9290
9308
  },
9291
9309
  setDocumentInputFilterModes: (t, r) => {
9292
9310
  e((o) => {
9293
- const i = ht(
9311
+ const i = gt(
9294
9312
  o.documentInputRuntimeBySheetId,
9295
9313
  t
9296
9314
  );
@@ -9299,7 +9317,7 @@ const Ke = Zt()(
9299
9317
  },
9300
9318
  setDocumentInputFilterMode: (t, r, o) => {
9301
9319
  e((i) => {
9302
- const a = ht(
9320
+ const a = gt(
9303
9321
  i.documentInputRuntimeBySheetId,
9304
9322
  t
9305
9323
  );
@@ -9311,7 +9329,7 @@ const Ke = Zt()(
9311
9329
  },
9312
9330
  setDocumentInputControlValues: (t, r) => {
9313
9331
  e((o) => {
9314
- const i = ht(
9332
+ const i = gt(
9315
9333
  o.documentInputRuntimeBySheetId,
9316
9334
  t
9317
9335
  );
@@ -9323,7 +9341,7 @@ const Ke = Zt()(
9323
9341
  },
9324
9342
  setDocumentInputControlValue: (t, r, o) => {
9325
9343
  e((i) => {
9326
- const a = ht(
9344
+ const a = gt(
9327
9345
  i.documentInputRuntimeBySheetId,
9328
9346
  t
9329
9347
  );
@@ -10120,7 +10138,7 @@ const Ke = Zt()(
10120
10138
  goBackFromDrill: () => {
10121
10139
  e((t) => {
10122
10140
  if (t.drillHistory.pop(), t.drillHistory.length === 0)
10123
- t.drillContext = null, Ee.getState().resetInteractionState(Ct);
10141
+ t.drillContext = null, Ee.getState().resetInteractionState(St);
10124
10142
  else {
10125
10143
  const r = t.drillHistory[t.drillHistory.length - 1];
10126
10144
  t.drillContext = {
@@ -10129,12 +10147,12 @@ const Ke = Zt()(
10129
10147
  sourceDashboardTitle: r.sourceDashboardTitle
10130
10148
  };
10131
10149
  const o = {
10132
- sourceCardId: Ct,
10150
+ sourceCardId: St,
10133
10151
  interactionMode: "clickFilter",
10134
10152
  filterGroups: [{ filters: r.filters }]
10135
10153
  };
10136
- Ee.getState().setInteractionState(Ct, {
10137
- ...ot(),
10154
+ Ee.getState().setInteractionState(St, {
10155
+ ...it(),
10138
10156
  appliedClickFilters: [o],
10139
10157
  contextMode: r.contextMode,
10140
10158
  sourceDashboardId: r.sourceDashboardId,
@@ -10147,7 +10165,7 @@ const Ke = Zt()(
10147
10165
  clearDrillContext: () => {
10148
10166
  e((t) => {
10149
10167
  t.drillHistory = [], t.drillContext = null;
10150
- }), Ee.getState().resetInteractionState(Ct);
10168
+ }), Ee.getState().resetInteractionState(St);
10151
10169
  }
10152
10170
  }
10153
10171
  }))
@@ -10180,10 +10198,10 @@ const Ke = Zt()(
10180
10198
  pivotByFields: ((r = e == null ? void 0 : e.config) == null ? void 0 : r.pivotByColumns) || []
10181
10199
  };
10182
10200
  }, zT = () => Ke((e) => e.actions);
10183
- ct.subscribe("dashboard:load", () => {
10201
+ ut.subscribe("dashboard:load", () => {
10184
10202
  Ke.getState().actions.setInitStore();
10185
10203
  });
10186
- ct.subscribe("dashboard:unload", () => {
10204
+ ut.subscribe("dashboard:unload", () => {
10187
10205
  Ke.getState().actions.setInitStore();
10188
10206
  });
10189
10207
  async function Cy(e, n) {
@@ -10486,7 +10504,7 @@ function ps(e, ...n) {
10486
10504
  const ne = (e) => {
10487
10505
  const n = (t) => t[e] || [];
10488
10506
  return n.isThemeGetter = !0, n;
10489
- }, Oc = /^\[(?:([a-z-]+):)?(.+)\]$/i, Oy = /^\d+\/\d+$/, My = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ny = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ky = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ly = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, By = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vy = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qe = (e) => zt(e) || My.has(e) || Oy.test(e), et = (e) => en(e, "length", Gy), zt = (e) => !!e && !Number.isNaN(Number(e)), Ao = (e) => en(e, "number", zt), bn = (e) => !!e && Number.isInteger(Number(e)), $y = (e) => e.endsWith("%") && zt(e.slice(0, -1)), j = (e) => Oc.test(e), tt = (e) => Ny.test(e), Uy = /* @__PURE__ */ new Set(["length", "size", "percentage"]), jy = (e) => en(e, Uy, Mc), zy = (e) => en(e, "position", Mc), qy = /* @__PURE__ */ new Set(["image", "url"]), Hy = (e) => en(e, qy, Ky), Wy = (e) => en(e, "", Yy), vn = () => !0, en = (e, n, t) => {
10507
+ }, Oc = /^\[(?:([a-z-]+):)?(.+)\]$/i, Oy = /^\d+\/\d+$/, My = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ny = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ky = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ly = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, By = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vy = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qe = (e) => zt(e) || My.has(e) || Oy.test(e), et = (e) => en(e, "length", Gy), zt = (e) => !!e && !Number.isNaN(Number(e)), Ao = (e) => en(e, "number", zt), Cn = (e) => !!e && Number.isInteger(Number(e)), $y = (e) => e.endsWith("%") && zt(e.slice(0, -1)), j = (e) => Oc.test(e), tt = (e) => Ny.test(e), Uy = /* @__PURE__ */ new Set(["length", "size", "percentage"]), jy = (e) => en(e, Uy, Mc), zy = (e) => en(e, "position", Mc), qy = /* @__PURE__ */ new Set(["image", "url"]), Hy = (e) => en(e, qy, Ky), Wy = (e) => en(e, "", Yy), Sn = () => !0, en = (e, n, t) => {
10490
10508
  const r = Oc.exec(e);
10491
10509
  return r ? r[1] ? typeof n == "string" ? r[1] === n : n.has(r[1]) : t(r[2]) : !1;
10492
10510
  }, Gy = (e) => (
@@ -10500,7 +10518,7 @@ const ne = (e) => {
10500
10518
  cacheSize: 500,
10501
10519
  separator: ":",
10502
10520
  theme: {
10503
- colors: [vn],
10521
+ colors: [Sn],
10504
10522
  spacing: [qe, et],
10505
10523
  blur: ["none", "", tt, j],
10506
10524
  brightness: J(),
@@ -10740,7 +10758,7 @@ const ne = (e) => {
10740
10758
  * @see https://tailwindcss.com/docs/z-index
10741
10759
  */
10742
10760
  z: [{
10743
- z: ["auto", bn, j]
10761
+ z: ["auto", Cn, j]
10744
10762
  }],
10745
10763
  // Flexbox and Grid
10746
10764
  /**
@@ -10790,14 +10808,14 @@ const ne = (e) => {
10790
10808
  * @see https://tailwindcss.com/docs/order
10791
10809
  */
10792
10810
  order: [{
10793
- order: ["first", "last", "none", bn, j]
10811
+ order: ["first", "last", "none", Cn, j]
10794
10812
  }],
10795
10813
  /**
10796
10814
  * Grid Template Columns
10797
10815
  * @see https://tailwindcss.com/docs/grid-template-columns
10798
10816
  */
10799
10817
  "grid-cols": [{
10800
- "grid-cols": [vn]
10818
+ "grid-cols": [Sn]
10801
10819
  }],
10802
10820
  /**
10803
10821
  * Grid Column Start / End
@@ -10805,7 +10823,7 @@ const ne = (e) => {
10805
10823
  */
10806
10824
  "col-start-end": [{
10807
10825
  col: ["auto", {
10808
- span: ["full", bn, j]
10826
+ span: ["full", Cn, j]
10809
10827
  }, j]
10810
10828
  }],
10811
10829
  /**
@@ -10827,7 +10845,7 @@ const ne = (e) => {
10827
10845
  * @see https://tailwindcss.com/docs/grid-template-rows
10828
10846
  */
10829
10847
  "grid-rows": [{
10830
- "grid-rows": [vn]
10848
+ "grid-rows": [Sn]
10831
10849
  }],
10832
10850
  /**
10833
10851
  * Grid Row Start / End
@@ -10835,7 +10853,7 @@ const ne = (e) => {
10835
10853
  */
10836
10854
  "row-start-end": [{
10837
10855
  row: ["auto", {
10838
- span: [bn, j]
10856
+ span: [Cn, j]
10839
10857
  }, j]
10840
10858
  }],
10841
10859
  /**
@@ -11190,7 +11208,7 @@ const ne = (e) => {
11190
11208
  * @see https://tailwindcss.com/docs/font-family
11191
11209
  */
11192
11210
  "font-family": [{
11193
- font: [vn]
11211
+ font: [Sn]
11194
11212
  }],
11195
11213
  /**
11196
11214
  * Font Variant Numeric
@@ -11875,7 +11893,7 @@ const ne = (e) => {
11875
11893
  * @see https://tailwindcss.com/docs/box-shadow-color
11876
11894
  */
11877
11895
  "shadow-color": [{
11878
- shadow: [vn]
11896
+ shadow: [Sn]
11879
11897
  }],
11880
11898
  /**
11881
11899
  * Opacity
@@ -12154,7 +12172,7 @@ const ne = (e) => {
12154
12172
  * @see https://tailwindcss.com/docs/rotate
12155
12173
  */
12156
12174
  rotate: [{
12157
- rotate: [bn, j]
12175
+ rotate: [Cn, j]
12158
12176
  }],
12159
12177
  /**
12160
12178
  * Translate X
@@ -12531,18 +12549,18 @@ const ne = (e) => {
12531
12549
  extend: i = {},
12532
12550
  override: a = {}
12533
12551
  }) => {
12534
- xn(e, "cacheSize", n), xn(e, "prefix", t), xn(e, "separator", r), xn(e, "experimentalParseClassName", o);
12552
+ En(e, "cacheSize", n), En(e, "prefix", t), En(e, "separator", r), En(e, "experimentalParseClassName", o);
12535
12553
  for (const s in a)
12536
12554
  Qy(e[s], a[s]);
12537
12555
  for (const s in i)
12538
12556
  Zy(e[s], i[s]);
12539
12557
  return e;
12540
- }, xn = (e, n, t) => {
12558
+ }, En = (e, n, t) => {
12541
12559
  t !== void 0 && (e[n] = t);
12542
12560
  }, Qy = (e, n) => {
12543
12561
  if (n)
12544
12562
  for (const t in n)
12545
- xn(e, t, n[t]);
12563
+ En(e, t, n[t]);
12546
12564
  }, Zy = (e, n) => {
12547
12565
  if (n)
12548
12566
  for (const t in n) {
@@ -12560,14 +12578,14 @@ function re(...e) {
12560
12578
  return eb(Ir(e));
12561
12579
  }
12562
12580
  const HT = (e) => Object.keys(e).length === 0;
12563
- function at(e) {
12581
+ function st(e) {
12564
12582
  return !!e && typeof e == "object";
12565
12583
  }
12566
12584
  function Do(e, n, t) {
12567
12585
  return typeof n == "string" && n.trim().length > 0 && (t.preserveSyntheticMessage || e.usesFallbackMessage !== !0);
12568
12586
  }
12569
12587
  function Nc(e, n, t = {}) {
12570
- return typeof e == "string" && e.trim() ? e : at(e) ? e instanceof Error && Do(e, e.message, t) || Do(e, e.message, t) ? e.message : typeof e.details == "string" && e.details.trim() ? e.details : Do(e, e.error, t) ? e.error : typeof e.detail == "string" && e.detail.trim() ? e.detail : at(e.details) && typeof e.details.error == "string" && e.details.error.trim() ? e.details.error : n : n;
12588
+ return typeof e == "string" && e.trim() ? e : st(e) ? e instanceof Error && Do(e, e.message, t) || Do(e, e.message, t) ? e.message : typeof e.details == "string" && e.details.trim() ? e.details : Do(e, e.error, t) ? e.error : typeof e.detail == "string" && e.detail.trim() ? e.detail : st(e.details) && typeof e.details.error == "string" && e.details.error.trim() ? e.details.error : n : n;
12571
12589
  }
12572
12590
  function Ro(e, n, t) {
12573
12591
  if (e instanceof Error) {
@@ -12575,7 +12593,7 @@ function Ro(e, n, t) {
12575
12593
  return a.status ?? (a.status = n), a.payload ?? (a.payload = e), a.error ?? (a.error = a.message), a;
12576
12594
  }
12577
12595
  const r = Nc(e), o = r || t, i = new Error(o);
12578
- if (at(e))
12596
+ if (st(e))
12579
12597
  for (const [a, s] of Object.entries(e))
12580
12598
  a === "message" || a === "name" || a === "stack" || (i[a] = s);
12581
12599
  return typeof i.error != "string" && (i.error = o), i.status = n, i.payload = e, i.usesFallbackMessage = !r, i;
@@ -12588,14 +12606,14 @@ function WT(e, n, t = {}) {
12588
12606
  return r ? `${e}: ${r}` : e;
12589
12607
  }
12590
12608
  function GT(e) {
12591
- return at(e) && typeof e.status == "number" ? e.status : void 0;
12609
+ return st(e) && typeof e.status == "number" ? e.status : void 0;
12592
12610
  }
12593
12611
  function YT(e) {
12594
- if (!(!at(e) || !at(e.details)))
12612
+ if (!(!st(e) || !st(e.details)))
12595
12613
  return Array.isArray(e.details.violations) ? e.details.violations : void 0;
12596
12614
  }
12597
12615
  function KT(e) {
12598
- return at(e) && typeof e.sql == "string" ? e.sql : void 0;
12616
+ return st(e) && typeof e.sql == "string" ? e.sql : void 0;
12599
12617
  }
12600
12618
  async function kc(e) {
12601
12619
  const n = `HTTP error! status: ${e.status}`, t = await e.text();
@@ -12730,7 +12748,7 @@ async function i0(e, n, t = {}) {
12730
12748
  );
12731
12749
  s = JSON.parse(c.decryptedData);
12732
12750
  }
12733
- if (!at(s) || !("initialReportContext" in s))
12751
+ if (!st(s) || !("initialReportContext" in s))
12734
12752
  throw new Error("Dashboard response is missing initialReportContext");
12735
12753
  const l = Hf(s.initialReportContext);
12736
12754
  if (!l.ok)
@@ -13064,7 +13082,7 @@ function Eb(e) {
13064
13082
  let n = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, t = n && "isReactWarning" in n && n.isReactWarning;
13065
13083
  return t ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
13066
13084
  }
13067
- const ys = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, bs = Ir, ut = (e, n) => (t) => {
13085
+ const ys = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, bs = Ir, dt = (e, n) => (t) => {
13068
13086
  var r;
13069
13087
  if ((n == null ? void 0 : n.variants) == null) return bs(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
13070
13088
  const { variants: o, defaultVariants: i } = n, a = Object.keys(o).map((c) => {
@@ -13093,7 +13111,7 @@ const ys = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, bs = Ir, u
13093
13111
  ] : c;
13094
13112
  }, []);
13095
13113
  return bs(e, a, l, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
13096
- }, Tb = ut(
13114
+ }, Tb = dt(
13097
13115
  // Focus: no ring, no offset. Per-variant focus style mirrors the variant's
13098
13116
  // hover state (filled → slight bg darken, outline → border-ring, ghost →
13099
13117
  // bg-accent). See src/components/ui/CHANGES.md.
@@ -13205,7 +13223,7 @@ function Ab(...e) {
13205
13223
  }
13206
13224
  var ue = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
13207
13225
  }, Db = f[" useInsertionEffect ".trim().toString()] || ue;
13208
- function Et({
13226
+ function Tt({
13209
13227
  prop: e,
13210
13228
  defaultProp: n,
13211
13229
  onChange: t = () => {
@@ -13692,13 +13710,13 @@ function av(e) {
13692
13710
  }
13693
13711
  var sv = f[" useId ".trim().toString()] || (() => {
13694
13712
  }), lv = 0;
13695
- function _t(e) {
13713
+ function Pt(e) {
13696
13714
  const [n, t] = f.useState(sv());
13697
13715
  return ue(() => {
13698
13716
  t((r) => r ?? String(lv++));
13699
13717
  }, [e]), n ? `radix-${n}` : "";
13700
13718
  }
13701
- const cv = ["top", "right", "bottom", "left"], st = Math.min, Ce = Math.max, Tr = Math.round, rr = Math.floor, Be = (e) => ({
13719
+ const cv = ["top", "right", "bottom", "left"], lt = Math.min, Ce = Math.max, Tr = Math.round, rr = Math.floor, Be = (e) => ({
13702
13720
  x: e,
13703
13721
  y: e
13704
13722
  }), uv = {
@@ -13708,7 +13726,7 @@ const cv = ["top", "right", "bottom", "left"], st = Math.min, Ce = Math.max, Tr
13708
13726
  top: "bottom"
13709
13727
  };
13710
13728
  function ui(e, n, t) {
13711
- return Ce(e, st(n, t));
13729
+ return Ce(e, lt(n, t));
13712
13730
  }
13713
13731
  function Ge(e, n) {
13714
13732
  return typeof e == "function" ? e(n) : e;
@@ -13983,7 +14001,7 @@ const bv = 50, vv = async (e, n, t) => {
13983
14001
  }, h = Zi(o), v = Qi(h), m = await a.getDimensions(c), b = h === "y", C = b ? "top" : "left", g = b ? "bottom" : "right", y = b ? "clientHeight" : "clientWidth", S = i.reference[v] + i.reference[h] - p[h] - i.floating[v], w = p[h] - i.reference[h], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
13984
14002
  let I = E ? E[y] : 0;
13985
14003
  (!I || !await (a.isElement == null ? void 0 : a.isElement(E))) && (I = s.floating[y] || i.floating[v]);
13986
- const F = S / 2 - w / 2, T = I / 2 - m[v] / 2 - 1, A = st(d[C], T), R = st(d[g], T), _ = A, O = I - m[v] - R, L = I / 2 - m[v] / 2 + F, q = ui(_, L, O), N = !l.arrow && nn(o) != null && L !== q && i.reference[v] / 2 - (L < _ ? A : R) - m[v] / 2 < 0, M = N ? L < _ ? L - _ : L - O : 0;
14004
+ const F = S / 2 - w / 2, T = I / 2 - m[v] / 2 - 1, A = lt(d[C], T), R = lt(d[g], T), _ = A, O = I - m[v] - R, L = I / 2 - m[v] / 2 + F, q = ui(_, L, O), N = !l.arrow && nn(o) != null && L !== q && i.reference[v] / 2 - (L < _ ? A : R) - m[v] / 2 < 0, M = N ? L < _ ? L - _ : L - O : 0;
13987
14005
  return {
13988
14006
  [h]: p[h] + M,
13989
14007
  data: {
@@ -14301,7 +14319,7 @@ const Iv = function(e) {
14301
14319
  } = i.floating;
14302
14320
  let b, C;
14303
14321
  d === "top" || d === "bottom" ? (b = d, C = p === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (C = d, b = p === "end" ? "top" : "bottom");
14304
- const g = m - u.top - u.bottom, y = v - u.left - u.right, S = st(m - u[b], g), w = st(v - u[C], y), E = !n.middlewareData.shift;
14322
+ const g = m - u.top - u.bottom, y = v - u.left - u.right, S = lt(m - u[b], g), w = lt(v - u[C], y), E = !n.middlewareData.shift;
14305
14323
  let I = S, F = w;
14306
14324
  if ((t = n.middlewareData.shift) != null && t.enabled.x && (F = y), (r = n.middlewareData.shift) != null && r.enabled.y && (I = g), E && !p) {
14307
14325
  const A = Ce(u.left, 0), R = Ce(u.right, 0), _ = Ce(u.top, 0), O = Ce(u.bottom, 0);
@@ -14347,7 +14365,7 @@ function Qe(e) {
14347
14365
  function Ps(e) {
14348
14366
  return !Gr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof we(e).ShadowRoot;
14349
14367
  }
14350
- function Un(e) {
14368
+ function zn(e) {
14351
14369
  const {
14352
14370
  overflow: n,
14353
14371
  overflowX: t,
@@ -14371,20 +14389,20 @@ function Yr(e) {
14371
14389
  return !1;
14372
14390
  }
14373
14391
  }
14374
- const Dv = /transform|translate|scale|rotate|perspective|filter/, Rv = /paint|layout|strict|content/, gt = (e) => !!e && e !== "none";
14392
+ const Dv = /transform|translate|scale|rotate|perspective|filter/, Rv = /paint|layout|strict|content/, yt = (e) => !!e && e !== "none";
14375
14393
  let Mo;
14376
14394
  function Ji(e) {
14377
14395
  const n = _e(e) ? Pe(e) : e;
14378
- return gt(n.transform) || gt(n.translate) || gt(n.scale) || gt(n.rotate) || gt(n.perspective) || !ea() && (gt(n.backdropFilter) || gt(n.filter)) || Dv.test(n.willChange || "") || Rv.test(n.contain || "");
14396
+ return yt(n.transform) || yt(n.translate) || yt(n.scale) || yt(n.rotate) || yt(n.perspective) || !ea() && (yt(n.backdropFilter) || yt(n.filter)) || Dv.test(n.willChange || "") || Rv.test(n.contain || "");
14379
14397
  }
14380
14398
  function _v(e) {
14381
- let n = lt(e);
14399
+ let n = ct(e);
14382
14400
  for (; Qe(n) && !Yt(n); ) {
14383
14401
  if (Ji(n))
14384
14402
  return n;
14385
14403
  if (Yr(n))
14386
14404
  return null;
14387
- n = lt(n);
14405
+ n = ct(n);
14388
14406
  }
14389
14407
  return null;
14390
14408
  }
@@ -14406,7 +14424,7 @@ function Kr(e) {
14406
14424
  scrollTop: e.scrollY
14407
14425
  };
14408
14426
  }
14409
- function lt(e) {
14427
+ function ct(e) {
14410
14428
  if (rn(e) === "html")
14411
14429
  return e;
14412
14430
  const n = (
@@ -14419,18 +14437,18 @@ function lt(e) {
14419
14437
  return Ps(n) ? n.host : n;
14420
14438
  }
14421
14439
  function Kc(e) {
14422
- const n = lt(e);
14423
- return Yt(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : Qe(n) && Un(n) ? n : Kc(n);
14440
+ const n = ct(e);
14441
+ return Yt(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : Qe(n) && zn(n) ? n : Kc(n);
14424
14442
  }
14425
- function On(e, n, t) {
14443
+ function Nn(e, n, t) {
14426
14444
  var r;
14427
14445
  n === void 0 && (n = []), t === void 0 && (t = !0);
14428
14446
  const o = Kc(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = we(o);
14429
14447
  if (i) {
14430
14448
  const s = fi(a);
14431
- return n.concat(a, a.visualViewport || [], Un(o) ? o : [], s && t ? On(s) : []);
14449
+ return n.concat(a, a.visualViewport || [], zn(o) ? o : [], s && t ? Nn(s) : []);
14432
14450
  } else
14433
- return n.concat(o, On(o, [], t));
14451
+ return n.concat(o, Nn(o, [], t));
14434
14452
  }
14435
14453
  function fi(e) {
14436
14454
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -14474,7 +14492,7 @@ function Qc(e) {
14474
14492
  function Ov(e, n, t) {
14475
14493
  return n === void 0 && (n = !1), !t || n && t !== we(e) ? !1 : n;
14476
14494
  }
14477
- function Tt(e, n, t, r) {
14495
+ function Ft(e, n, t, r) {
14478
14496
  n === void 0 && (n = !1), t === void 0 && (t = !1);
14479
14497
  const o = e.getBoundingClientRect(), i = ta(e);
14480
14498
  let a = Be(1);
@@ -14498,7 +14516,7 @@ function Tt(e, n, t, r) {
14498
14516
  }
14499
14517
  function Xr(e, n) {
14500
14518
  const t = Kr(e).scrollLeft;
14501
- return n ? n.left + t : Tt($e(e)).left + t;
14519
+ return n ? n.left + t : Ft($e(e)).left + t;
14502
14520
  }
14503
14521
  function Zc(e, n) {
14504
14522
  const t = e.getBoundingClientRect(), r = t.left + n.scrollLeft - Xr(e, t), o = t.top + n.scrollTop;
@@ -14522,8 +14540,8 @@ function Mv(e) {
14522
14540
  scrollTop: 0
14523
14541
  }, c = Be(1);
14524
14542
  const u = Be(0), d = Qe(r);
14525
- if ((d || !d && !i) && ((rn(r) !== "body" || Un(a)) && (l = Kr(r)), d)) {
14526
- const h = Tt(r);
14543
+ if ((d || !d && !i) && ((rn(r) !== "body" || zn(a)) && (l = Kr(r)), d)) {
14544
+ const h = Ft(r);
14527
14545
  c = qt(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
14528
14546
  }
14529
14547
  const p = a && !d && !i ? Zc(a, l) : Be(0);
@@ -14570,7 +14588,7 @@ function Lv(e, n) {
14570
14588
  };
14571
14589
  }
14572
14590
  function Bv(e, n) {
14573
- const t = Tt(e, !0, n === "fixed"), r = t.top + e.clientTop, o = t.left + e.clientLeft, i = Qe(e) ? qt(e) : Be(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
14591
+ const t = Ft(e, !0, n === "fixed"), r = t.top + e.clientTop, o = t.left + e.clientLeft, i = Qe(e) ? qt(e) : Be(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
14574
14592
  return {
14575
14593
  width: a,
14576
14594
  height: s,
@@ -14598,19 +14616,19 @@ function Ms(e, n, t) {
14598
14616
  return Ar(r);
14599
14617
  }
14600
14618
  function Jc(e, n) {
14601
- const t = lt(e);
14619
+ const t = ct(e);
14602
14620
  return t === n || !_e(t) || Yt(t) ? !1 : Pe(t).position === "fixed" || Jc(t, n);
14603
14621
  }
14604
14622
  function Vv(e, n) {
14605
14623
  const t = n.get(e);
14606
14624
  if (t)
14607
14625
  return t;
14608
- let r = On(e, [], !1).filter((s) => _e(s) && rn(s) !== "body"), o = null;
14626
+ let r = Nn(e, [], !1).filter((s) => _e(s) && rn(s) !== "body"), o = null;
14609
14627
  const i = Pe(e).position === "fixed";
14610
- let a = i ? lt(e) : e;
14628
+ let a = i ? ct(e) : e;
14611
14629
  for (; _e(a) && !Yt(a); ) {
14612
14630
  const s = Pe(a), l = Ji(a);
14613
- !l && s.position === "fixed" && (o = null), (i ? !l && !o : !l && s.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Un(a) && !l && Jc(e, a)) ? r = r.filter((u) => u !== a) : o = s, a = lt(a);
14631
+ !l && s.position === "fixed" && (o = null), (i ? !l && !o : !l && s.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || zn(a) && !l && Jc(e, a)) ? r = r.filter((u) => u !== a) : o = s, a = ct(a);
14614
14632
  }
14615
14633
  return n.set(e, r), r;
14616
14634
  }
@@ -14625,7 +14643,7 @@ function $v(e) {
14625
14643
  let l = s.top, c = s.right, u = s.bottom, d = s.left;
14626
14644
  for (let p = 1; p < a.length; p++) {
14627
14645
  const h = Ms(n, a[p], o);
14628
- l = Ce(h.top, l), c = st(h.right, c), u = st(h.bottom, u), d = Ce(h.left, d);
14646
+ l = Ce(h.top, l), c = lt(h.right, c), u = lt(h.bottom, u), d = Ce(h.left, d);
14629
14647
  }
14630
14648
  return {
14631
14649
  width: c - d,
@@ -14645,7 +14663,7 @@ function Uv(e) {
14645
14663
  };
14646
14664
  }
14647
14665
  function jv(e, n, t) {
14648
- const r = Qe(n), o = $e(n), i = t === "fixed", a = Tt(e, !0, i, n);
14666
+ const r = Qe(n), o = $e(n), i = t === "fixed", a = Ft(e, !0, i, n);
14649
14667
  let s = {
14650
14668
  scrollLeft: 0,
14651
14669
  scrollTop: 0
@@ -14655,8 +14673,8 @@ function jv(e, n, t) {
14655
14673
  l.x = Xr(o);
14656
14674
  }
14657
14675
  if (r || !r && !i)
14658
- if ((rn(n) !== "body" || Un(o)) && (s = Kr(n)), r) {
14659
- const h = Tt(n, !0, i, n);
14676
+ if ((rn(n) !== "body" || zn(o)) && (s = Kr(n)), r) {
14677
+ const h = Ft(n, !0, i, n);
14660
14678
  l.x = h.x + n.clientLeft, l.y = h.y + n.clientTop;
14661
14679
  } else o && c();
14662
14680
  i && !r && o && c();
@@ -14684,11 +14702,11 @@ function eu(e, n) {
14684
14702
  if (Yr(e))
14685
14703
  return t;
14686
14704
  if (!Qe(e)) {
14687
- let o = lt(e);
14705
+ let o = ct(e);
14688
14706
  for (; o && !Yt(o); ) {
14689
14707
  if (_e(o) && !No(o))
14690
14708
  return o;
14691
- o = lt(o);
14709
+ o = ct(o);
14692
14710
  }
14693
14711
  return t;
14694
14712
  }
@@ -14746,7 +14764,7 @@ function Wv(e, n) {
14746
14764
  return;
14747
14765
  const v = rr(d), m = rr(o.clientWidth - (u + p)), b = rr(o.clientHeight - (d + h)), C = rr(u), y = {
14748
14766
  rootMargin: -v + "px " + -m + "px " + -b + "px " + -C + "px",
14749
- threshold: Ce(0, st(1, l)) || 1
14767
+ threshold: Ce(0, lt(1, l)) || 1
14750
14768
  };
14751
14769
  let S = !0;
14752
14770
  function w(E) {
@@ -14781,7 +14799,7 @@ function Gv(e, n, t, r) {
14781
14799
  elementResize: a = typeof ResizeObserver == "function",
14782
14800
  layoutShift: s = typeof IntersectionObserver == "function",
14783
14801
  animationFrame: l = !1
14784
- } = r, c = ta(e), u = o || i ? [...c ? On(c) : [], ...n ? On(n) : []] : [];
14802
+ } = r, c = ta(e), u = o || i ? [...c ? Nn(c) : [], ...n ? Nn(n) : []] : [];
14785
14803
  u.forEach((C) => {
14786
14804
  o && C.addEventListener("scroll", t, {
14787
14805
  passive: !0
@@ -14796,10 +14814,10 @@ function Gv(e, n, t, r) {
14796
14814
  (y = h) == null || y.observe(n);
14797
14815
  })), t();
14798
14816
  }), c && !l && h.observe(c), n && h.observe(n));
14799
- let v, m = l ? Tt(e) : null;
14817
+ let v, m = l ? Ft(e) : null;
14800
14818
  l && b();
14801
14819
  function b() {
14802
- const C = Tt(e);
14820
+ const C = Ft(e);
14803
14821
  m && !tu(m, C) && t(), m = C, v = requestAnimationFrame(b);
14804
14822
  }
14805
14823
  return t(), () => {
@@ -15346,13 +15364,13 @@ function xC(e) {
15346
15364
  let n = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, t = n && "isReactWarning" in n && n.isReactWarning;
15347
15365
  return t ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
15348
15366
  }
15349
- var Lo = "rovingFocusGroup.onEntryFocus", IC = { bubbles: !1, cancelable: !0 }, jn = "RovingFocusGroup", [pi, mu, EC] = $c(jn), [TC, hu] = Xe(
15350
- jn,
15367
+ var Lo = "rovingFocusGroup.onEntryFocus", IC = { bubbles: !1, cancelable: !0 }, qn = "RovingFocusGroup", [pi, mu, EC] = $c(qn), [TC, hu] = Xe(
15368
+ qn,
15351
15369
  [EC]
15352
- ), [FC, AC] = TC(jn), gu = f.forwardRef(
15370
+ ), [FC, AC] = TC(qn), gu = f.forwardRef(
15353
15371
  (e, n) => /* @__PURE__ */ x(pi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(pi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ x(DC, { ...e, ref: n }) }) })
15354
15372
  );
15355
- gu.displayName = jn;
15373
+ gu.displayName = qn;
15356
15374
  var DC = f.forwardRef((e, n) => {
15357
15375
  const {
15358
15376
  __scopeRovingFocusGroup: t,
@@ -15365,11 +15383,11 @@ var DC = f.forwardRef((e, n) => {
15365
15383
  onEntryFocus: c,
15366
15384
  preventScrollOnEntryFocus: u = !1,
15367
15385
  ...d
15368
- } = e, p = f.useRef(null), h = X(n, p), v = Hr(i), [m, b] = Et({
15386
+ } = e, p = f.useRef(null), h = X(n, p), v = Hr(i), [m, b] = Tt({
15369
15387
  prop: a,
15370
15388
  defaultProp: s ?? null,
15371
15389
  onChange: l,
15372
- caller: jn
15390
+ caller: qn
15373
15391
  }), [C, g] = f.useState(!1), y = he(c), S = mu(t), w = f.useRef(!1), [E, I] = f.useState(0);
15374
15392
  return f.useEffect(() => {
15375
15393
  const F = p.current;
@@ -15434,7 +15452,7 @@ var DC = f.forwardRef((e, n) => {
15434
15452
  tabStopId: i,
15435
15453
  children: a,
15436
15454
  ...s
15437
- } = e, l = _t(), c = i || l, u = AC(yu, t), d = u.currentTabStopId === c, p = mu(t), { onFocusableItemAdd: h, onFocusableItemRemove: v, currentTabStopId: m } = u;
15455
+ } = e, l = Pt(), c = i || l, u = AC(yu, t), d = u.currentTabStopId === c, p = mu(t), { onFocusableItemAdd: h, onFocusableItemRemove: v, currentTabStopId: m } = u;
15438
15456
  return f.useEffect(() => {
15439
15457
  if (r)
15440
15458
  return h(), () => v();
@@ -15515,7 +15533,7 @@ var MC = gu, NC = bu, kC = function(e) {
15515
15533
  return null;
15516
15534
  var n = Array.isArray(e) ? e[0] : e;
15517
15535
  return n.ownerDocument.body;
15518
- }, Mt = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {}, Bo = 0, Cu = function(e) {
15536
+ }, Nt = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {}, Bo = 0, Cu = function(e) {
15519
15537
  return e && (e.host || Cu(e.parentNode));
15520
15538
  }, LC = function(e, n) {
15521
15539
  return n.map(function(t) {
@@ -15539,8 +15557,8 @@ var MC = gu, NC = bu, kC = function(e) {
15539
15557
  u(p);
15540
15558
  else
15541
15559
  try {
15542
- var h = p.getAttribute(r), v = h !== null && h !== "false", m = (Mt.get(p) || 0) + 1, b = (i.get(p) || 0) + 1;
15543
- Mt.set(p, m), i.set(p, b), a.push(p), m === 1 && v && ir.set(p, !0), b === 1 && p.setAttribute(t, "true"), v || p.setAttribute(r, "true");
15560
+ var h = p.getAttribute(r), v = h !== null && h !== "false", m = (Nt.get(p) || 0) + 1, b = (i.get(p) || 0) + 1;
15561
+ Nt.set(p, m), i.set(p, b), a.push(p), m === 1 && v && ir.set(p, !0), b === 1 && p.setAttribute(t, "true"), v || p.setAttribute(r, "true");
15544
15562
  } catch (C) {
15545
15563
  console.error("aria-hidden: cannot operate on ", p, C);
15546
15564
  }
@@ -15548,9 +15566,9 @@ var MC = gu, NC = bu, kC = function(e) {
15548
15566
  };
15549
15567
  return u(n), s.clear(), Bo++, function() {
15550
15568
  a.forEach(function(d) {
15551
- var p = Mt.get(d) - 1, h = i.get(d) - 1;
15552
- Mt.set(d, p), i.set(d, h), p || (ir.has(d) || d.removeAttribute(r), ir.delete(d)), h || d.removeAttribute(t);
15553
- }), Bo--, Bo || (Mt = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {});
15569
+ var p = Nt.get(d) - 1, h = i.get(d) - 1;
15570
+ Nt.set(d, p), i.set(d, h), p || (ir.has(d) || d.removeAttribute(r), ir.delete(d)), h || d.removeAttribute(t);
15571
+ }), Bo--, Bo || (Nt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {});
15554
15572
  };
15555
15573
  }, Su = function(e, n, t) {
15556
15574
  t === void 0 && (t = "data-aria-hidden");
@@ -15861,7 +15879,7 @@ if (typeof window < "u")
15861
15879
  } catch {
15862
15880
  mi = !1;
15863
15881
  }
15864
- var Nt = mi ? { passive: !1 } : !1, lS = function(e) {
15882
+ var kt = mi ? { passive: !1 } : !1, lS = function(e) {
15865
15883
  return e.tagName === "TEXTAREA";
15866
15884
  }, Tu = function(e, n) {
15867
15885
  if (!(e instanceof Element))
@@ -15937,7 +15955,7 @@ var Nt = mi ? { passive: !1 } : !1, lS = function(e) {
15937
15955
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
15938
15956
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
15939
15957
  `);
15940
- }, yS = 0, kt = [];
15958
+ }, yS = 0, Lt = [];
15941
15959
  function bS(e) {
15942
15960
  var n = f.useRef([]), t = f.useRef([0, 0]), r = f.useRef(), o = f.useState(yS++)[0], i = f.useState(Eu)[0], a = f.useRef(e);
15943
15961
  f.useEffect(function() {
@@ -15975,7 +15993,7 @@ function bS(e) {
15975
15993
  return mS(_, b, m, _ === "h" ? y : S);
15976
15994
  }, []), l = f.useCallback(function(m) {
15977
15995
  var b = m;
15978
- if (!(!kt.length || kt[kt.length - 1] !== i)) {
15996
+ if (!(!Lt.length || Lt[Lt.length - 1] !== i)) {
15979
15997
  var C = "deltaY" in b ? Us(b) : lr(b), g = n.current.filter(function(w) {
15980
15998
  return w.name === b.type && (w.target === b.target || b.target === w.shadowParent) && hS(w.delta, C);
15981
15999
  })[0];
@@ -16005,14 +16023,14 @@ function bS(e) {
16005
16023
  c(m.type, lr(m), m.target, s(m, e.lockRef.current));
16006
16024
  }, []);
16007
16025
  f.useEffect(function() {
16008
- return kt.push(i), e.setCallbacks({
16026
+ return Lt.push(i), e.setCallbacks({
16009
16027
  onScrollCapture: d,
16010
16028
  onWheelCapture: d,
16011
16029
  onTouchMoveCapture: p
16012
- }), document.addEventListener("wheel", l, Nt), document.addEventListener("touchmove", l, Nt), document.addEventListener("touchstart", u, Nt), function() {
16013
- kt = kt.filter(function(m) {
16030
+ }), document.addEventListener("wheel", l, kt), document.addEventListener("touchmove", l, kt), document.addEventListener("touchstart", u, kt), function() {
16031
+ Lt = Lt.filter(function(m) {
16014
16032
  return m !== i;
16015
- }), document.removeEventListener("wheel", l, Nt), document.removeEventListener("touchmove", l, Nt), document.removeEventListener("touchstart", u, Nt);
16033
+ }), document.removeEventListener("wheel", l, kt), document.removeEventListener("touchmove", l, kt), document.removeEventListener("touchstart", u, kt);
16016
16034
  };
16017
16035
  }, []);
16018
16036
  var h = e.removeScrollBar, v = e.inert;
@@ -16095,7 +16113,7 @@ function TS(e) {
16095
16113
  }
16096
16114
  var to = "Popover", [Du] = Xe(to, [
16097
16115
  on
16098
- ]), zn = on(), [FS, dt] = Du(to), Ru = (e) => {
16116
+ ]), Hn = on(), [FS, ft] = Du(to), Ru = (e) => {
16099
16117
  const {
16100
16118
  __scopePopover: n,
16101
16119
  children: t,
@@ -16103,7 +16121,7 @@ var to = "Popover", [Du] = Xe(to, [
16103
16121
  defaultOpen: o,
16104
16122
  onOpenChange: i,
16105
16123
  modal: a = !1
16106
- } = e, s = zn(n), l = f.useRef(null), [c, u] = f.useState(!1), [d, p] = Et({
16124
+ } = e, s = Hn(n), l = f.useRef(null), [c, u] = f.useState(!1), [d, p] = Tt({
16107
16125
  prop: r,
16108
16126
  defaultProp: o ?? !1,
16109
16127
  onChange: i,
@@ -16113,7 +16131,7 @@ var to = "Popover", [Du] = Xe(to, [
16113
16131
  FS,
16114
16132
  {
16115
16133
  scope: n,
16116
- contentId: _t(),
16134
+ contentId: Pt(),
16117
16135
  triggerRef: l,
16118
16136
  open: d,
16119
16137
  onOpenChange: p,
@@ -16129,14 +16147,14 @@ var to = "Popover", [Du] = Xe(to, [
16129
16147
  Ru.displayName = to;
16130
16148
  var _u = "PopoverAnchor", Pu = f.forwardRef(
16131
16149
  (e, n) => {
16132
- const { __scopePopover: t, ...r } = e, o = dt(_u, t), i = zn(t), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
16150
+ const { __scopePopover: t, ...r } = e, o = ft(_u, t), i = Hn(t), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
16133
16151
  return f.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ x(Qr, { ...i, ...r, ref: n });
16134
16152
  }
16135
16153
  );
16136
16154
  Pu.displayName = _u;
16137
16155
  var Ou = "PopoverTrigger", Mu = f.forwardRef(
16138
16156
  (e, n) => {
16139
- const { __scopePopover: t, ...r } = e, o = dt(Ou, t), i = zn(t), a = X(n, o.triggerRef), s = /* @__PURE__ */ x(
16157
+ const { __scopePopover: t, ...r } = e, o = ft(Ou, t), i = Hn(t), a = X(n, o.triggerRef), s = /* @__PURE__ */ x(
16140
16158
  H.button,
16141
16159
  {
16142
16160
  type: "button",
@@ -16156,20 +16174,20 @@ Mu.displayName = Ou;
16156
16174
  var la = "PopoverPortal", [AS, DS] = Du(la, {
16157
16175
  forceMount: void 0
16158
16176
  }), Nu = (e) => {
16159
- const { __scopePopover: n, forceMount: t, children: r, container: o } = e, i = dt(la, n);
16177
+ const { __scopePopover: n, forceMount: t, children: r, container: o } = e, i = ft(la, n);
16160
16178
  return /* @__PURE__ */ x(AS, { scope: n, forceMount: t, children: /* @__PURE__ */ x(Ue, { present: t || i.open, children: /* @__PURE__ */ x(Zr, { asChild: !0, container: o, children: r }) }) });
16161
16179
  };
16162
16180
  Nu.displayName = la;
16163
16181
  var Kt = "PopoverContent", ku = f.forwardRef(
16164
16182
  (e, n) => {
16165
- const t = DS(Kt, e.__scopePopover), { forceMount: r = t.forceMount, ...o } = e, i = dt(Kt, e.__scopePopover);
16183
+ const t = DS(Kt, e.__scopePopover), { forceMount: r = t.forceMount, ...o } = e, i = ft(Kt, e.__scopePopover);
16166
16184
  return /* @__PURE__ */ x(Ue, { present: r || i.open, children: i.modal ? /* @__PURE__ */ x(_S, { ...o, ref: n }) : /* @__PURE__ */ x(PS, { ...o, ref: n }) });
16167
16185
  }
16168
16186
  );
16169
16187
  ku.displayName = Kt;
16170
16188
  var RS = /* @__PURE__ */ SS("PopoverContent.RemoveScroll"), _S = f.forwardRef(
16171
16189
  (e, n) => {
16172
- const t = dt(Kt, e.__scopePopover), r = f.useRef(null), o = X(n, r), i = f.useRef(!1);
16190
+ const t = ft(Kt, e.__scopePopover), r = f.useRef(null), o = X(n, r), i = f.useRef(!1);
16173
16191
  return f.useEffect(() => {
16174
16192
  const a = r.current;
16175
16193
  if (a) return Su(a);
@@ -16202,7 +16220,7 @@ var RS = /* @__PURE__ */ SS("PopoverContent.RemoveScroll"), _S = f.forwardRef(
16202
16220
  }
16203
16221
  ), PS = f.forwardRef(
16204
16222
  (e, n) => {
16205
- const t = dt(Kt, e.__scopePopover), r = f.useRef(!1), o = f.useRef(!1);
16223
+ const t = ft(Kt, e.__scopePopover), r = f.useRef(!1), o = f.useRef(!1);
16206
16224
  return /* @__PURE__ */ x(
16207
16225
  Lu,
16208
16226
  {
@@ -16236,7 +16254,7 @@ var RS = /* @__PURE__ */ SS("PopoverContent.RemoveScroll"), _S = f.forwardRef(
16236
16254
  onFocusOutside: c,
16237
16255
  onInteractOutside: u,
16238
16256
  ...d
16239
- } = e, p = dt(Kt, t), h = zn(t);
16257
+ } = e, p = ft(Kt, t), h = Hn(t);
16240
16258
  return zc(), /* @__PURE__ */ x(
16241
16259
  Ki,
16242
16260
  {
@@ -16281,7 +16299,7 @@ var RS = /* @__PURE__ */ SS("PopoverContent.RemoveScroll"), _S = f.forwardRef(
16281
16299
  }
16282
16300
  ), Bu = "PopoverClose", OS = f.forwardRef(
16283
16301
  (e, n) => {
16284
- const { __scopePopover: t, ...r } = e, o = dt(Bu, t);
16302
+ const { __scopePopover: t, ...r } = e, o = ft(Bu, t);
16285
16303
  return /* @__PURE__ */ x(
16286
16304
  H.button,
16287
16305
  {
@@ -16296,7 +16314,7 @@ var RS = /* @__PURE__ */ SS("PopoverContent.RemoveScroll"), _S = f.forwardRef(
16296
16314
  OS.displayName = Bu;
16297
16315
  var MS = "PopoverArrow", Vu = f.forwardRef(
16298
16316
  (e, n) => {
16299
- const { __scopePopover: t, ...r } = e, o = zn(t);
16317
+ const { __scopePopover: t, ...r } = e, o = Hn(t);
16300
16318
  return /* @__PURE__ */ x(aa, { ...o, ...r, ref: n });
16301
16319
  }
16302
16320
  );
@@ -16357,7 +16375,7 @@ var $S = [
16357
16375
  ));
16358
16376
  ju.displayName = jS;
16359
16377
  var zu = ju;
16360
- const zS = ut(
16378
+ const zS = dt(
16361
16379
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
16362
16380
  ), qS = f.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ x(
16363
16381
  zu,
@@ -16368,7 +16386,7 @@ const zS = ut(
16368
16386
  }
16369
16387
  ));
16370
16388
  qS.displayName = zu.displayName;
16371
- const HS = ut(
16389
+ const HS = dt(
16372
16390
  // Control radius flows from the active Semaphor/shadcn radius variable so dense editor
16373
16391
  // surfaces (`size="xs"`) sit flush next to dialog forms (`size="sm"`)
16374
16392
  // and stock forms (`size="default"`) without the 5px/6px mismatch that
@@ -16412,7 +16430,7 @@ var no = "Tabs", [GS] = Xe(no, [
16412
16430
  dir: s,
16413
16431
  activationMode: l = "automatic",
16414
16432
  ...c
16415
- } = e, u = Hr(s), [d, p] = Et({
16433
+ } = e, u = Hr(s), [d, p] = Tt({
16416
16434
  prop: r,
16417
16435
  onChange: o,
16418
16436
  defaultProp: i ?? "",
@@ -16422,7 +16440,7 @@ var no = "Tabs", [GS] = Xe(no, [
16422
16440
  YS,
16423
16441
  {
16424
16442
  scope: t,
16425
- baseId: _t(),
16443
+ baseId: Pt(),
16426
16444
  value: d,
16427
16445
  onValueChange: p,
16428
16446
  orientation: a,
@@ -16542,7 +16560,7 @@ function Ju(e, n) {
16542
16560
  return `${e}-content-${n}`;
16543
16561
  }
16544
16562
  var KS = Hu, ed = Gu, td = Ku, nd = Qu;
16545
- const S0 = KS, XS = ut("text-muted-foreground", {
16563
+ const S0 = KS, XS = dt("text-muted-foreground", {
16546
16564
  variants: {
16547
16565
  variant: {
16548
16566
  segmented: "inline-flex items-center justify-center rounded-control bg-muted",
@@ -16569,7 +16587,7 @@ const S0 = KS, XS = ut("text-muted-foreground", {
16569
16587
  variant: "segmented",
16570
16588
  size: "default"
16571
16589
  }
16572
- }), QS = ut(
16590
+ }), QS = dt(
16573
16591
  "inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",
16574
16592
  {
16575
16593
  variants: {
@@ -16736,10 +16754,10 @@ var id = Object.freeze({
16736
16754
  )
16737
16755
  );
16738
16756
  ad.displayName = sw;
16739
- var lw = ad, cw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], Ft = "Select", [ro, oo, dw] = $c(Ft), [an] = Xe(Ft, [
16757
+ var lw = ad, cw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], At = "Select", [ro, oo, dw] = $c(At), [an] = Xe(At, [
16740
16758
  dw,
16741
16759
  on
16742
- ]), io = on(), [fw, ft] = an(Ft), [pw, mw] = an(Ft), sd = (e) => {
16760
+ ]), io = on(), [fw, pt] = an(At), [pw, mw] = an(At), sd = (e) => {
16743
16761
  const {
16744
16762
  __scopeSelect: n,
16745
16763
  children: t,
@@ -16755,16 +16773,16 @@ var lw = ad, cw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], F
16755
16773
  disabled: p,
16756
16774
  required: h,
16757
16775
  form: v
16758
- } = e, m = io(n), [b, C] = f.useState(null), [g, y] = f.useState(null), [S, w] = f.useState(!1), E = Hr(c), [I, F] = Et({
16776
+ } = e, m = io(n), [b, C] = f.useState(null), [g, y] = f.useState(null), [S, w] = f.useState(!1), E = Hr(c), [I, F] = Tt({
16759
16777
  prop: r,
16760
16778
  defaultProp: o ?? !1,
16761
16779
  onChange: i,
16762
- caller: Ft
16763
- }), [T, A] = Et({
16780
+ caller: At
16781
+ }), [T, A] = Tt({
16764
16782
  prop: a,
16765
16783
  defaultProp: s,
16766
16784
  onChange: l,
16767
- caller: Ft
16785
+ caller: At
16768
16786
  }), R = f.useRef(null), _ = b ? v || !!b.closest("form") : !0, [O, L] = f.useState(/* @__PURE__ */ new Set()), q = Array.from(O).map((N) => N.props.value).join(";");
16769
16787
  return /* @__PURE__ */ x(oa, { ...m, children: /* @__PURE__ */ ye(
16770
16788
  fw,
@@ -16777,7 +16795,7 @@ var lw = ad, cw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], F
16777
16795
  onValueNodeChange: y,
16778
16796
  valueNodeHasChildren: S,
16779
16797
  onValueNodeHasChildrenChange: w,
16780
- contentId: _t(),
16798
+ contentId: Pt(),
16781
16799
  value: T,
16782
16800
  onValueChange: A,
16783
16801
  open: I,
@@ -16825,10 +16843,10 @@ var lw = ad, cw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], F
16825
16843
  }
16826
16844
  ) });
16827
16845
  };
16828
- sd.displayName = Ft;
16846
+ sd.displayName = At;
16829
16847
  var ld = "SelectTrigger", cd = f.forwardRef(
16830
16848
  (e, n) => {
16831
- const { __scopeSelect: t, disabled: r = !1, ...o } = e, i = io(t), a = ft(ld, t), s = a.disabled || r, l = X(n, a.onTriggerChange), c = oo(t), u = f.useRef("touch"), [d, p, h] = Md((m) => {
16849
+ const { __scopeSelect: t, disabled: r = !1, ...o } = e, i = io(t), a = pt(ld, t), s = a.disabled || r, l = X(n, a.onTriggerChange), c = oo(t), u = f.useRef("touch"), [d, p, h] = Md((m) => {
16832
16850
  const b = c().filter((y) => !y.disabled), C = b.find((y) => y.value === a.value), g = Nd(b, m, C);
16833
16851
  g !== void 0 && a.onValueChange(g.value);
16834
16852
  }), v = (m) => {
@@ -16872,7 +16890,7 @@ var ld = "SelectTrigger", cd = f.forwardRef(
16872
16890
  cd.displayName = ld;
16873
16891
  var ud = "SelectValue", dd = f.forwardRef(
16874
16892
  (e, n) => {
16875
- const { __scopeSelect: t, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = ft(ud, t), { onValueNodeHasChildrenChange: c } = l, u = i !== void 0, d = X(n, l.onValueNodeChange);
16893
+ const { __scopeSelect: t, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = pt(ud, t), { onValueNodeHasChildrenChange: c } = l, u = i !== void 0, d = X(n, l.onValueNodeChange);
16876
16894
  return ue(() => {
16877
16895
  c(u);
16878
16896
  }, [c, u]), /* @__PURE__ */ x(
@@ -16881,7 +16899,7 @@ var ud = "SelectValue", dd = f.forwardRef(
16881
16899
  ...s,
16882
16900
  ref: d,
16883
16901
  style: { pointerEvents: "none" },
16884
- children: Od(l.value) ? /* @__PURE__ */ x(kn, { children: a }) : i
16902
+ children: Od(l.value) ? /* @__PURE__ */ x(Bn, { children: a }) : i
16885
16903
  }
16886
16904
  );
16887
16905
  }
@@ -16896,9 +16914,9 @@ var hw = "SelectIcon", fd = f.forwardRef(
16896
16914
  fd.displayName = hw;
16897
16915
  var gw = "SelectPortal", pd = (e) => /* @__PURE__ */ x(Zr, { asChild: !0, ...e });
16898
16916
  pd.displayName = gw;
16899
- var At = "SelectContent", md = f.forwardRef(
16917
+ var Dt = "SelectContent", md = f.forwardRef(
16900
16918
  (e, n) => {
16901
- const t = ft(At, e.__scopeSelect), [r, o] = f.useState();
16919
+ const t = pt(Dt, e.__scopeSelect), [r, o] = f.useState();
16902
16920
  if (ue(() => {
16903
16921
  o(new DocumentFragment());
16904
16922
  }, []), !t.open) {
@@ -16911,8 +16929,8 @@ var At = "SelectContent", md = f.forwardRef(
16911
16929
  return /* @__PURE__ */ x(gd, { ...e, ref: n });
16912
16930
  }
16913
16931
  );
16914
- md.displayName = At;
16915
- var Re = 10, [hd, pt] = an(At), yw = "SelectContentImpl", bw = /* @__PURE__ */ tw("SelectContent.RemoveScroll"), gd = f.forwardRef(
16932
+ md.displayName = Dt;
16933
+ var Re = 10, [hd, mt] = an(Dt), yw = "SelectContentImpl", bw = /* @__PURE__ */ tw("SelectContent.RemoveScroll"), gd = f.forwardRef(
16916
16934
  (e, n) => {
16917
16935
  const {
16918
16936
  __scopeSelect: t,
@@ -16934,7 +16952,7 @@ var Re = 10, [hd, pt] = an(At), yw = "SelectContentImpl", bw = /* @__PURE__ */ t
16934
16952
  avoidCollisions: b,
16935
16953
  //
16936
16954
  ...C
16937
- } = e, g = ft(At, t), [y, S] = f.useState(null), [w, E] = f.useState(null), I = X(n, (k) => S(k)), [F, T] = f.useState(null), [A, R] = f.useState(
16955
+ } = e, g = pt(Dt, t), [y, S] = f.useState(null), [w, E] = f.useState(null), I = X(n, (k) => S(k)), [F, T] = f.useState(null), [A, R] = f.useState(
16938
16956
  null
16939
16957
  ), _ = oo(t), [O, L] = f.useState(!1), q = f.useRef(!1);
16940
16958
  f.useEffect(() => {
@@ -17084,7 +17102,7 @@ var Re = 10, [hd, pt] = an(At), yw = "SelectContentImpl", bw = /* @__PURE__ */ t
17084
17102
  );
17085
17103
  gd.displayName = yw;
17086
17104
  var vw = "SelectItemAlignedPosition", yd = f.forwardRef((e, n) => {
17087
- const { __scopeSelect: t, onPlaced: r, ...o } = e, i = ft(At, t), a = pt(At, t), [s, l] = f.useState(null), [c, u] = f.useState(null), d = X(n, (I) => u(I)), p = oo(t), h = f.useRef(!1), v = f.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: C, focusSelectedItem: g } = a, y = f.useCallback(() => {
17105
+ const { __scopeSelect: t, onPlaced: r, ...o } = e, i = pt(Dt, t), a = mt(Dt, t), [s, l] = f.useState(null), [c, u] = f.useState(null), d = X(n, (I) => u(I)), p = oo(t), h = f.useRef(!1), v = f.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: C, focusSelectedItem: g } = a, y = f.useCallback(() => {
17088
17106
  if (i.trigger && i.valueNode && s && c && m && b && C) {
17089
17107
  const I = i.trigger.getBoundingClientRect(), F = c.getBoundingClientRect(), T = i.valueNode.getBoundingClientRect(), A = C.getBoundingClientRect();
17090
17108
  if (i.dir !== "rtl") {
@@ -17217,10 +17235,10 @@ var Cw = "SelectPopperPosition", gi = f.forwardRef((e, n) => {
17217
17235
  );
17218
17236
  });
17219
17237
  gi.displayName = Cw;
17220
- var [Sw, ua] = an(At, {}), yi = "SelectViewport", bd = f.forwardRef(
17238
+ var [Sw, ua] = an(Dt, {}), yi = "SelectViewport", bd = f.forwardRef(
17221
17239
  (e, n) => {
17222
- const { __scopeSelect: t, nonce: r, ...o } = e, i = pt(yi, t), a = ua(yi, t), s = X(n, i.onViewportChange), l = f.useRef(0);
17223
- return /* @__PURE__ */ ye(kn, { children: [
17240
+ const { __scopeSelect: t, nonce: r, ...o } = e, i = mt(yi, t), a = ua(yi, t), s = X(n, i.onViewportChange), l = f.useRef(0);
17241
+ return /* @__PURE__ */ ye(Bn, { children: [
17224
17242
  /* @__PURE__ */ x(
17225
17243
  "style",
17226
17244
  {
@@ -17272,7 +17290,7 @@ var [Sw, ua] = an(At, {}), yi = "SelectViewport", bd = f.forwardRef(
17272
17290
  bd.displayName = yi;
17273
17291
  var vd = "SelectGroup", [ww, xw] = an(vd), Cd = f.forwardRef(
17274
17292
  (e, n) => {
17275
- const { __scopeSelect: t, ...r } = e, o = _t();
17293
+ const { __scopeSelect: t, ...r } = e, o = Pt();
17276
17294
  return /* @__PURE__ */ x(ww, { scope: t, id: o, children: /* @__PURE__ */ x(H.div, { role: "group", "aria-labelledby": o, ...r, ref: n }) });
17277
17295
  }
17278
17296
  );
@@ -17292,13 +17310,13 @@ var Rr = "SelectItem", [Iw, xd] = an(Rr), Id = f.forwardRef(
17292
17310
  disabled: o = !1,
17293
17311
  textValue: i,
17294
17312
  ...a
17295
- } = e, s = ft(Rr, t), l = pt(Rr, t), c = s.value === r, [u, d] = f.useState(i ?? ""), [p, h] = f.useState(!1), v = X(
17313
+ } = e, s = pt(Rr, t), l = mt(Rr, t), c = s.value === r, [u, d] = f.useState(i ?? ""), [p, h] = f.useState(!1), v = X(
17296
17314
  n,
17297
17315
  (g) => {
17298
17316
  var y;
17299
17317
  return (y = l.itemRefCallback) == null ? void 0 : y.call(l, g, r, o);
17300
17318
  }
17301
- ), m = _t(), b = f.useRef("touch"), C = () => {
17319
+ ), m = Pt(), b = f.useRef("touch"), C = () => {
17302
17320
  o || (s.onValueChange(r), s.onOpenChange(!1));
17303
17321
  };
17304
17322
  if (r === "")
@@ -17368,9 +17386,9 @@ var Rr = "SelectItem", [Iw, xd] = an(Rr), Id = f.forwardRef(
17368
17386
  }
17369
17387
  );
17370
17388
  Id.displayName = Rr;
17371
- var In = "SelectItemText", Ed = f.forwardRef(
17389
+ var Tn = "SelectItemText", Ed = f.forwardRef(
17372
17390
  (e, n) => {
17373
- const { __scopeSelect: t, className: r, style: o, ...i } = e, a = ft(In, t), s = pt(In, t), l = xd(In, t), c = mw(In, t), [u, d] = f.useState(null), p = X(
17391
+ const { __scopeSelect: t, className: r, style: o, ...i } = e, a = pt(Tn, t), s = mt(Tn, t), l = xd(Tn, t), c = mw(Tn, t), [u, d] = f.useState(null), p = X(
17374
17392
  n,
17375
17393
  (C) => d(C),
17376
17394
  l.onItemTextChange,
@@ -17382,13 +17400,13 @@ var In = "SelectItemText", Ed = f.forwardRef(
17382
17400
  () => /* @__PURE__ */ x("option", { value: l.value, disabled: l.disabled, children: h }, l.value),
17383
17401
  [l.disabled, l.value, h]
17384
17402
  ), { onNativeOptionAdd: m, onNativeOptionRemove: b } = c;
17385
- return ue(() => (m(v), () => b(v)), [m, b, v]), /* @__PURE__ */ ye(kn, { children: [
17403
+ return ue(() => (m(v), () => b(v)), [m, b, v]), /* @__PURE__ */ ye(Bn, { children: [
17386
17404
  /* @__PURE__ */ x(H.span, { id: l.textId, ...i, ref: p }),
17387
17405
  l.isSelected && a.valueNode && !a.valueNodeHasChildren ? Mr.createPortal(i.children, a.valueNode) : null
17388
17406
  ] });
17389
17407
  }
17390
17408
  );
17391
- Ed.displayName = In;
17409
+ Ed.displayName = Tn;
17392
17410
  var Td = "SelectItemIndicator", Fd = f.forwardRef(
17393
17411
  (e, n) => {
17394
17412
  const { __scopeSelect: t, ...r } = e;
@@ -17397,7 +17415,7 @@ var Td = "SelectItemIndicator", Fd = f.forwardRef(
17397
17415
  );
17398
17416
  Fd.displayName = Td;
17399
17417
  var bi = "SelectScrollUpButton", Ad = f.forwardRef((e, n) => {
17400
- const t = pt(bi, e.__scopeSelect), r = ua(bi, e.__scopeSelect), [o, i] = f.useState(!1), a = X(n, r.onScrollButtonChange);
17418
+ const t = mt(bi, e.__scopeSelect), r = ua(bi, e.__scopeSelect), [o, i] = f.useState(!1), a = X(n, r.onScrollButtonChange);
17401
17419
  return ue(() => {
17402
17420
  if (t.viewport && t.isPositioned) {
17403
17421
  let s = function() {
@@ -17421,7 +17439,7 @@ var bi = "SelectScrollUpButton", Ad = f.forwardRef((e, n) => {
17421
17439
  });
17422
17440
  Ad.displayName = bi;
17423
17441
  var vi = "SelectScrollDownButton", Dd = f.forwardRef((e, n) => {
17424
- const t = pt(vi, e.__scopeSelect), r = ua(vi, e.__scopeSelect), [o, i] = f.useState(!1), a = X(n, r.onScrollButtonChange);
17442
+ const t = mt(vi, e.__scopeSelect), r = ua(vi, e.__scopeSelect), [o, i] = f.useState(!1), a = X(n, r.onScrollButtonChange);
17425
17443
  return ue(() => {
17426
17444
  if (t.viewport && t.isPositioned) {
17427
17445
  let s = function() {
@@ -17445,7 +17463,7 @@ var vi = "SelectScrollDownButton", Dd = f.forwardRef((e, n) => {
17445
17463
  });
17446
17464
  Dd.displayName = vi;
17447
17465
  var Rd = f.forwardRef((e, n) => {
17448
- const { __scopeSelect: t, onAutoScroll: r, ...o } = e, i = pt("SelectScrollButton", t), a = f.useRef(null), s = oo(t), l = f.useCallback(() => {
17466
+ const { __scopeSelect: t, onAutoScroll: r, ...o } = e, i = mt("SelectScrollButton", t), a = f.useRef(null), s = oo(t), l = f.useCallback(() => {
17449
17467
  a.current !== null && (window.clearInterval(a.current), a.current = null);
17450
17468
  }, []);
17451
17469
  return f.useEffect(() => () => l(), [l]), ue(() => {
@@ -17480,7 +17498,7 @@ var Rd = f.forwardRef((e, n) => {
17480
17498
  _d.displayName = Ew;
17481
17499
  var Ci = "SelectArrow", Tw = f.forwardRef(
17482
17500
  (e, n) => {
17483
- const { __scopeSelect: t, ...r } = e, o = io(t), i = ft(Ci, t), a = pt(Ci, t);
17501
+ const { __scopeSelect: t, ...r } = e, o = io(t), i = pt(Ci, t), a = mt(Ci, t);
17484
17502
  return i.open && a.position === "popper" ? /* @__PURE__ */ x(aa, { ...o, ...r, ref: n }) : null;
17485
17503
  }
17486
17504
  );
@@ -17541,7 +17559,7 @@ function Aw(e, n) {
17541
17559
  return e.map((t, r) => e[(n + r) % e.length]);
17542
17560
  }
17543
17561
  var Dw = sd, kd = cd, Rw = dd, _w = fd, Pw = pd, Ld = md, Ow = bd, Mw = Cd, Bd = wd, Vd = Id, Nw = Ed, kw = Fd, $d = Ad, Ud = Dd, jd = _d;
17544
- const w0 = Dw, x0 = Mw, I0 = Rw, Lw = ut(
17562
+ const w0 = Dw, x0 = Mw, I0 = Rw, Lw = dt(
17545
17563
  // Border-only focus (no outset ring) — mirrors Input / Textarea so
17546
17564
  // focus chrome is consistent across form primitives and never gets
17547
17565
  // clipped by tight parent containers. See CHANGES.md.
@@ -17797,7 +17815,7 @@ Yd.displayName = da;
17797
17815
  var Kd = "ScrollAreaViewport", Xd = f.forwardRef(
17798
17816
  (e, n) => {
17799
17817
  const { __scopeScrollArea: t, children: r, nonce: o, ...i } = e, a = Ae(Kd, t), s = f.useRef(null), l = X(n, s, a.onViewportChange);
17800
- return /* @__PURE__ */ ye(kn, { children: [
17818
+ return /* @__PURE__ */ ye(Bn, { children: [
17801
17819
  /* @__PURE__ */ x(
17802
17820
  "style",
17803
17821
  {
@@ -18284,7 +18302,7 @@ sf.displayName = fa.displayName;
18284
18302
  var cx = Symbol("radix.slottable");
18285
18303
  // @__NO_SIDE_EFFECTS__
18286
18304
  function ux(e) {
18287
- const n = ({ children: t }) => /* @__PURE__ */ x(kn, { children: t });
18305
+ const n = ({ children: t }) => /* @__PURE__ */ x(Bn, { children: t });
18288
18306
  return n.displayName = `${e}.Slottable`, n.__radixId = cx, n;
18289
18307
  }
18290
18308
  var [lo] = Xe("Tooltip", [
@@ -18325,7 +18343,7 @@ var [lo] = Xe("Tooltip", [
18325
18343
  );
18326
18344
  };
18327
18345
  cf.displayName = lf;
18328
- var Mn = "Tooltip", [px, qn] = lo(Mn), uf = (e) => {
18346
+ var kn = "Tooltip", [px, Wn] = lo(kn), uf = (e) => {
18329
18347
  const {
18330
18348
  __scopeTooltip: n,
18331
18349
  children: t,
@@ -18334,13 +18352,13 @@ var Mn = "Tooltip", [px, qn] = lo(Mn), uf = (e) => {
18334
18352
  onOpenChange: i,
18335
18353
  disableHoverableContent: a,
18336
18354
  delayDuration: s
18337
- } = e, l = ha(Mn, e.__scopeTooltip), c = co(n), [u, d] = f.useState(null), p = _t(), h = f.useRef(0), v = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, b = f.useRef(!1), [C, g] = Et({
18355
+ } = e, l = ha(kn, e.__scopeTooltip), c = co(n), [u, d] = f.useState(null), p = Pt(), h = f.useRef(0), v = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, b = f.useRef(!1), [C, g] = Tt({
18338
18356
  prop: r,
18339
18357
  defaultProp: o ?? !1,
18340
18358
  onChange: (I) => {
18341
18359
  I ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Si))) : l.onClose(), i == null || i(I);
18342
18360
  },
18343
- caller: Mn
18361
+ caller: kn
18344
18362
  }), y = f.useMemo(() => C ? b.current ? "delayed-open" : "instant-open" : "closed", [C]), S = f.useCallback(() => {
18345
18363
  window.clearTimeout(h.current), h.current = 0, b.current = !1, g(!0);
18346
18364
  }, [g]), w = f.useCallback(() => {
@@ -18374,10 +18392,10 @@ var Mn = "Tooltip", [px, qn] = lo(Mn), uf = (e) => {
18374
18392
  }
18375
18393
  ) });
18376
18394
  };
18377
- uf.displayName = Mn;
18395
+ uf.displayName = kn;
18378
18396
  var wi = "TooltipTrigger", df = f.forwardRef(
18379
18397
  (e, n) => {
18380
- const { __scopeTooltip: t, ...r } = e, o = qn(wi, t), i = ha(wi, t), a = co(t), s = f.useRef(null), l = X(n, s, o.onTriggerChange), c = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => c.current = !1, []);
18398
+ const { __scopeTooltip: t, ...r } = e, o = Wn(wi, t), i = ha(wi, t), a = co(t), s = f.useRef(null), l = X(n, s, o.onTriggerChange), c = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => c.current = !1, []);
18381
18399
  return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(Qr, { asChild: !0, ...a, children: /* @__PURE__ */ x(
18382
18400
  H.button,
18383
18401
  {
@@ -18407,17 +18425,17 @@ df.displayName = wi;
18407
18425
  var ga = "TooltipPortal", [mx, hx] = lo(ga, {
18408
18426
  forceMount: void 0
18409
18427
  }), ff = (e) => {
18410
- const { __scopeTooltip: n, forceMount: t, children: r, container: o } = e, i = qn(ga, n);
18428
+ const { __scopeTooltip: n, forceMount: t, children: r, container: o } = e, i = Wn(ga, n);
18411
18429
  return /* @__PURE__ */ x(mx, { scope: n, forceMount: t, children: /* @__PURE__ */ x(Ue, { present: t || i.open, children: /* @__PURE__ */ x(Zr, { asChild: !0, container: o, children: r }) }) });
18412
18430
  };
18413
18431
  ff.displayName = ga;
18414
18432
  var Qt = "TooltipContent", pf = f.forwardRef(
18415
18433
  (e, n) => {
18416
- const t = hx(Qt, e.__scopeTooltip), { forceMount: r = t.forceMount, side: o = "top", ...i } = e, a = qn(Qt, e.__scopeTooltip);
18434
+ const t = hx(Qt, e.__scopeTooltip), { forceMount: r = t.forceMount, side: o = "top", ...i } = e, a = Wn(Qt, e.__scopeTooltip);
18417
18435
  return /* @__PURE__ */ x(Ue, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ x(mf, { side: o, ...i, ref: n }) : /* @__PURE__ */ x(gx, { side: o, ...i, ref: n }) });
18418
18436
  }
18419
18437
  ), gx = f.forwardRef((e, n) => {
18420
- const t = qn(Qt, e.__scopeTooltip), r = ha(Qt, e.__scopeTooltip), o = f.useRef(null), i = X(n, o), [a, s] = f.useState(null), { trigger: l, onClose: c } = t, u = o.current, { onPointerInTransitChange: d } = r, p = f.useCallback(() => {
18438
+ const t = Wn(Qt, e.__scopeTooltip), r = ha(Qt, e.__scopeTooltip), o = f.useRef(null), i = X(n, o), [a, s] = f.useState(null), { trigger: l, onClose: c } = t, u = o.current, { onPointerInTransitChange: d } = r, p = f.useCallback(() => {
18421
18439
  s(null), d(!1);
18422
18440
  }, [d]), h = f.useCallback(
18423
18441
  (v, m) => {
@@ -18442,7 +18460,7 @@ var Qt = "TooltipContent", pf = f.forwardRef(
18442
18460
  return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
18443
18461
  }
18444
18462
  }, [l, u, a, c, p]), /* @__PURE__ */ x(mf, { ...e, ref: i });
18445
- }), [yx, bx] = lo(Mn, { isInside: !1 }), vx = /* @__PURE__ */ ux("TooltipContent"), mf = f.forwardRef(
18463
+ }), [yx, bx] = lo(kn, { isInside: !1 }), vx = /* @__PURE__ */ ux("TooltipContent"), mf = f.forwardRef(
18446
18464
  (e, n) => {
18447
18465
  const {
18448
18466
  __scopeTooltip: t,
@@ -18451,7 +18469,7 @@ var Qt = "TooltipContent", pf = f.forwardRef(
18451
18469
  onEscapeKeyDown: i,
18452
18470
  onPointerDownOutside: a,
18453
18471
  ...s
18454
- } = e, l = qn(Qt, t), c = co(t), { onClose: u } = l;
18472
+ } = e, l = Wn(Qt, t), c = co(t), { onClose: u } = l;
18455
18473
  return f.useEffect(() => (document.addEventListener(Si, u), () => document.removeEventListener(Si, u)), [u]), f.useEffect(() => {
18456
18474
  if (l.trigger) {
18457
18475
  const d = (p) => {
@@ -18705,8 +18723,8 @@ var xe = Mx(ve), kx = 89, cr = 90, Lx = 77, Hs = 57, Ws = 219, Gs = 222, Ys = 19
18705
18723
  M.current.stack = ge.slice(0, sn + 1);
18706
18724
  var ln = M.current.stack.length;
18707
18725
  if (ln > Ks) {
18708
- var Pt = ln - Ks;
18709
- M.current.stack = ge.slice(Pt, ln), M.current.offset = Math.max(M.current.offset - Pt, 0);
18726
+ var Ot = ln - Ks;
18727
+ M.current.stack = ge.slice(Ot, ln), M.current.offset = Math.max(M.current.offset - Ot, 0);
18710
18728
  }
18711
18729
  }
18712
18730
  var Oe = Date.now();
@@ -18749,20 +18767,20 @@ var xe = Mx(ve), kx = 89, cr = 90, Lx = 77, Hs = 57, Ws = 219, Gs = 222, Ys = 19
18749
18767
  var z = D.currentTarget, $ = z.value, U = z.selectionStart, ee = z.selectionEnd, ce = (u ? " " : " ").repeat(_);
18750
18768
  if (D.key === "Tab" && !l && Z)
18751
18769
  if (D.preventDefault(), D.shiftKey) {
18752
- var ge = te($, U), sn = ge.length - 1, ln = te($, ee).length - 1, Pt = $.split(`
18770
+ var ge = te($, U), sn = ge.length - 1, ln = te($, ee).length - 1, Ot = $.split(`
18753
18771
  `).map(function(dn, ba) {
18754
18772
  return ba >= sn && ba <= ln && dn.startsWith(ce) ? dn.substring(ce.length) : dn;
18755
18773
  }).join(`
18756
18774
  `);
18757
- if ($ !== Pt) {
18775
+ if ($ !== Ot) {
18758
18776
  var Oe = ge[sn];
18759
18777
  W({
18760
- value: Pt,
18778
+ value: Ot,
18761
18779
  // Move the start cursor if first line in selection was modified
18762
18780
  // It was modified only if it started with a tab
18763
18781
  selectionStart: Oe != null && Oe.startsWith(ce) ? U - ce.length : U,
18764
18782
  // Move the end cursor by total number of characters removed
18765
- selectionEnd: ee - ($.length - Pt.length)
18783
+ selectionEnd: ee - ($.length - Ot.length)
18766
18784
  });
18767
18785
  }
18768
18786
  } else if (U !== ee) {
@@ -18804,11 +18822,11 @@ var xe = Mx(ve), kx = 89, cr = 90, Lx = 77, Hs = 57, Ws = 219, Gs = 222, Ys = 19
18804
18822
  }
18805
18823
  } else if (D.key === "Enter") {
18806
18824
  if (U === ee) {
18807
- var fo = te($, U).pop(), Hn = fo == null ? void 0 : fo.match(/^\s+/);
18808
- if (Hn != null && Hn[0]) {
18825
+ var fo = te($, U).pop(), Gn = fo == null ? void 0 : fo.match(/^\s+/);
18826
+ if (Gn != null && Gn[0]) {
18809
18827
  D.preventDefault();
18810
18828
  var ya = `
18811
- ` + Hn[0], be = U + ya.length;
18829
+ ` + Gn[0], be = U + ya.length;
18812
18830
  W({
18813
18831
  // Insert indentation character at caret
18814
18832
  value: $.substring(0, U) + ya + $.substring(ee),
@@ -18868,14 +18886,14 @@ var xe = Mx(ve), kx = 89, cr = 90, Lx = 77, Hs = 57, Ws = 219, Gs = 222, Ys = 19
18868
18886
  };
18869
18887
  }, []), xe.createElement(
18870
18888
  "div",
18871
- ae({}, N, { style: ae(ae({}, Cn.container), A) }),
18872
- xe.createElement("pre", ae({ className: I, "aria-hidden": "true", style: ae(ae(ae({}, Cn.editor), Cn.highlight), ie) }, typeof De == "string" ? { dangerouslySetInnerHTML: { __html: De + "<br />" } } : { children: De })),
18889
+ ae({}, N, { style: ae(ae({}, wn.container), A) }),
18890
+ xe.createElement("pre", ae({ className: I, "aria-hidden": "true", style: ae(ae(ae({}, wn.editor), wn.highlight), ie) }, typeof De == "string" ? { dangerouslySetInnerHTML: { __html: De + "<br />" } } : { children: De })),
18873
18891
  xe.createElement("textarea", { ref: function(D) {
18874
18892
  return P.current = D;
18875
- }, style: ae(ae(ae({}, Cn.editor), Cn.textarea), ie), className: hr + (O ? " ".concat(O) : ""), id: L, value: q, onChange: K, onKeyDown: G, onClick: m, onKeyUp: g, onFocus: b, onBlur: v, disabled: o, form: i, maxLength: d, minLength: p, name: h, placeholder: E, readOnly: F, required: T, autoFocus: r, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "data-gramm": !1 }),
18893
+ }, style: ae(ae(ae({}, wn.editor), wn.textarea), ie), className: hr + (O ? " ".concat(O) : ""), id: L, value: q, onChange: K, onKeyDown: G, onClick: m, onKeyUp: g, onFocus: b, onBlur: v, disabled: o, form: i, maxLength: d, minLength: p, name: h, placeholder: E, readOnly: F, required: T, autoFocus: r, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "data-gramm": !1 }),
18876
18894
  xe.createElement("style", { dangerouslySetInnerHTML: { __html: $x } })
18877
18895
  );
18878
- }), Cn = {
18896
+ }), wn = {
18879
18897
  container: {
18880
18898
  position: "relative",
18881
18899
  textAlign: "left",
@@ -20078,8 +20096,8 @@ var xe = Mx(ve), kx = 89, cr = 90, Lx = 77, Hs = 57, Ws = 219, Gs = 222, Ys = 19
20078
20096
  };
20079
20097
  }();
20080
20098
  })(vf);
20081
- var Nn = vf.exports;
20082
- const it = /* @__PURE__ */ Zs(Nn);
20099
+ var Ln = vf.exports;
20100
+ const at = /* @__PURE__ */ Zs(Ln);
20083
20101
  (function(e) {
20084
20102
  var n = /[*&][^\s[\]{},]+/, t = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + t.source + "(?:[ ]+" + n.source + ")?|" + n.source + "(?:[ ]+" + t.source + ")?)", o = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
20085
20103
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
@@ -20528,7 +20546,7 @@ const Xs = {
20528
20546
  // Accessors defined by Semaphor: `.sql` / `.list` / `.value` etc.
20529
20547
  // Kept muted — they're modifiers on the primitive, not the primitive.
20530
20548
  "semaphor-accessor": {
20531
- pattern: /\.(?:sql|list_sql|list|values|value|present)\b/,
20549
+ pattern: /\.(?:sql|list_sql|list|start|end|values|value|present)\b/,
20532
20550
  alias: "property"
20533
20551
  },
20534
20552
  string: /(["'])(?:\\.|(?!\1)[^\\])*\1/,
@@ -20578,11 +20596,11 @@ const Xs = {
20578
20596
  inside: qx
20579
20597
  }
20580
20598
  };
20581
- it.languages.sql && (it.languages.sql.function = /\b[A-Za-z_][\w]*(?=\s*\()/, it.languages.insertBefore("sql", "comment", {
20599
+ at.languages.sql && (at.languages.sql.function = /\b[A-Za-z_][\w]*(?=\s*\()/, at.languages.insertBefore("sql", "comment", {
20582
20600
  ...Hx,
20583
20601
  ...zx
20584
- }), it.languages["sql-jinja"] = it.languages.sql);
20585
- it.languages.yaml && it.languages.insertBefore("yaml", "punctuation", {
20602
+ }), at.languages["sql-jinja"] = at.languages.sql);
20603
+ at.languages.yaml && at.languages.insertBefore("yaml", "punctuation", {
20586
20604
  "plain-scalar": {
20587
20605
  pattern: new RegExp("(?<=:[ \\t]|-[ \\t])(?!\\s)[^\\r\\n#]+"),
20588
20606
  alias: "string"
@@ -20600,11 +20618,11 @@ const Wx = {
20600
20618
  function Gx(e) {
20601
20619
  if (!e) return null;
20602
20620
  const n = e.trim().toLowerCase(), t = Wx[n] ?? n;
20603
- return it.languages[t] ? t : null;
20621
+ return at.languages[t] ? t : null;
20604
20622
  }
20605
20623
  function D0(e, n) {
20606
20624
  const t = Gx(n);
20607
- return t ? Nn.highlight(e, Nn.languages[t], t) : null;
20625
+ return t ? Ln.highlight(e, Ln.languages[t], t) : null;
20608
20626
  }
20609
20627
  function Yx({
20610
20628
  value: e,
@@ -20700,7 +20718,7 @@ function Yx({
20700
20718
  value: e,
20701
20719
  onValueChange: n ?? (() => {
20702
20720
  }),
20703
- highlight: (I) => Nn.highlight(I, Nn.languages[t], t),
20721
+ highlight: (I) => Ln.highlight(I, Ln.languages[t], t),
20704
20722
  padding: C,
20705
20723
  placeholder: c,
20706
20724
  textareaClassName: r ? "code-editor-textarea code-editor-textarea-readonly" : "code-editor-textarea",
@@ -20736,7 +20754,7 @@ var uo = "Switch", [Kx] = Xe(uo), [Xx, Qx] = Kx(uo), Cf = f.forwardRef(
20736
20754
  onCheckedChange: c,
20737
20755
  form: u,
20738
20756
  ...d
20739
- } = e, [p, h] = f.useState(null), v = X(n, (y) => h(y)), m = f.useRef(!1), b = p ? u || !!p.closest("form") : !0, [C, g] = Et({
20757
+ } = e, [p, h] = f.useState(null), v = X(n, (y) => h(y)), m = f.useRef(!1), b = p ? u || !!p.closest("form") : !0, [C, g] = Tt({
20740
20758
  prop: o,
20741
20759
  defaultProp: i ?? !1,
20742
20760
  onChange: c,
@@ -20840,7 +20858,7 @@ function If(e) {
20840
20858
  return e ? "checked" : "unchecked";
20841
20859
  }
20842
20860
  var Ef = Cf, Jx = wf;
20843
- const eI = ut(
20861
+ const eI = dt(
20844
20862
  "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
20845
20863
  {
20846
20864
  variants: {
@@ -20854,7 +20872,7 @@ const eI = ut(
20854
20872
  size: "default"
20855
20873
  }
20856
20874
  }
20857
- ), tI = ut(
20875
+ ), tI = dt(
20858
20876
  "pointer-events-none block rounded-full bg-background shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0",
20859
20877
  {
20860
20878
  variants: {
@@ -21003,7 +21021,7 @@ export {
21003
21021
  ke as bQ,
21004
21022
  kT as bR,
21005
21023
  Cm as bS,
21006
- ct as bT,
21024
+ ut as bT,
21007
21025
  JI as bU,
21008
21026
  Bm as bV,
21009
21027
  Gm as bW,
@@ -21033,8 +21051,8 @@ export {
21033
21051
  Gp as bt,
21034
21052
  LI as bu,
21035
21053
  hg as bv,
21036
- yt as bw,
21037
- Lt as bx,
21054
+ rt as bw,
21055
+ bt as bx,
21038
21056
  Zt as by,
21039
21057
  Ai as bz,
21040
21058
  re as c,
@@ -21084,9 +21102,9 @@ export {
21084
21102
  Vb as cf,
21085
21103
  Hr as cg,
21086
21104
  oa as ch,
21087
- _t as ci,
21105
+ Pt as ci,
21088
21106
  aa as cj,
21089
- Et as ck,
21107
+ Tt as ck,
21090
21108
  eo as cl,
21091
21109
  GT as cm,
21092
21110
  WT as cn,
@@ -21096,7 +21114,7 @@ export {
21096
21114
  kS as cr,
21097
21115
  BS as cs,
21098
21116
  Uu as ct,
21099
- ut as cu,
21117
+ dt as cu,
21100
21118
  wI as cv,
21101
21119
  qT as cw,
21102
21120
  eE as cx,
@@ -21110,22 +21128,22 @@ export {
21110
21128
  $t as d3,
21111
21129
  RI as d4,
21112
21130
  _i as d5,
21113
- ot as d6,
21131
+ it as d6,
21114
21132
  uE as d7,
21115
21133
  Ha as d8,
21116
21134
  hl as d9,
21117
- wn as dA,
21118
- Kn as dB,
21119
- pn as dC,
21120
- Xn as dD,
21121
- Qn as dE,
21122
- mn as dF,
21135
+ fn as dA,
21136
+ pn as dB,
21137
+ In as dC,
21138
+ Qn as dD,
21139
+ hn as dE,
21140
+ gn as dF,
21123
21141
  Zn as dG,
21124
21142
  Jn as dH,
21125
- hn as dI,
21143
+ yn as dI,
21126
21144
  er as dJ,
21127
21145
  tr as dK,
21128
- gn as dL,
21146
+ bn as dL,
21129
21147
  xT as dM,
21130
21148
  IT as dN,
21131
21149
  LT as dO,
@@ -21151,7 +21169,7 @@ export {
21151
21169
  g0 as dh,
21152
21170
  Ce as di,
21153
21171
  Tr as dj,
21154
- st as dk,
21172
+ lt as dk,
21155
21173
  aC as dl,
21156
21174
  lC as dm,
21157
21175
  cC as dn,
@@ -21165,12 +21183,12 @@ export {
21165
21183
  AT as dw,
21166
21184
  RT as dx,
21167
21185
  Lm as dy,
21168
- fn as dz,
21186
+ mn as dz,
21169
21187
  xI as e,
21170
21188
  wh as e$,
21171
21189
  wT as e0,
21172
21190
  BI as e1,
21173
- vt as e2,
21191
+ Ct as e2,
21174
21192
  Ul as e3,
21175
21193
  jl as e4,
21176
21194
  pl as e5,
@@ -21198,7 +21216,7 @@ export {
21198
21216
  $E as eR,
21199
21217
  kE as eS,
21200
21218
  bl as eT,
21201
- Ct as eU,
21219
+ St as eU,
21202
21220
  $l as eV,
21203
21221
  ad as eW,
21204
21222
  aE as eX,