@umriss-ui/table 0.7.3 → 0.7.4

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.
package/dist/table.js CHANGED
@@ -3,10 +3,10 @@ var qn = Object.defineProperty;
3
3
  var Un = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var J = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { useState as Z, useCallback as be, useMemo as oe, useRef as ie, useId as Te, useContext as Ee, useSyncExternalStore as rt, createContext as Rt, useLayoutEffect as ne, useEffect as Je } from "react";
6
- import { DEFAULT_FORMATS as hn, useVirtual as Yn, useFormats as Re, useWording as he, Checkbox as $e, DateRangePicker as Jn, FormField as pt, NumberInput as mt, Tooltip as Ue, Popover as st, Button as re, TagGroup as pn, Tag as mn, Menu as wn, MenuItem as ot, MenuSeparator as Xn, VisuallyHidden as Ge, Select as bn, DatePicker as Qn, Input as vn, useDensityFor as yn, AngleGlyph as Zn, assess as eo, verdictWeight as wt, DEFAULT_WORDING as to, Badge as je, useFreshness as no } from "@umriss-ui/core";
6
+ import { DEFAULT_FORMATS as hn, useVirtual as Yn, useFormats as Re, useWording as he, Checkbox as $e, DateRangePicker as Jn, FormField as pt, NumberInput as mt, Tooltip as Ue, Popover as st, Button as se, TagGroup as pn, Tag as mn, Menu as wn, MenuItem as ot, MenuSeparator as Xn, VisuallyHidden as Ge, Select as bn, DatePicker as Qn, Input as vn, useDensityFor as yn, AngleGlyph as Zn, IconButton as eo, assess as to, verdictWeight as wt, DEFAULT_WORDING as no, Badge as je, useFreshness as oo } from "@umriss-ui/core";
7
7
  import { jsx as c, jsxs as R, Fragment as de } from "react/jsx-runtime";
8
- import { createPortal as oo } from "react-dom";
9
- function ro(e) {
8
+ import { createPortal as ro } from "react-dom";
9
+ function so(e) {
10
10
  const [t, n] = Z(/* @__PURE__ */ new Set()), o = be((d) => t.has(d), [t]), r = be((d) => {
11
11
  n((g) => {
12
12
  const u = new Set(g);
@@ -73,7 +73,7 @@ function bt(e, t) {
73
73
  }
74
74
  }
75
75
  }
76
- const so = "ja", io = "nein";
76
+ const io = "ja", ao = "nein";
77
77
  function kn(e, t) {
78
78
  if (!fe(e)) {
79
79
  if (t) return kn(t(e));
@@ -85,7 +85,7 @@ function kn(e, t) {
85
85
  case "date":
86
86
  return e.toISOString();
87
87
  case "boolean":
88
- return e ? so : io;
88
+ return e ? io : ao;
89
89
  default:
90
90
  return;
91
91
  }
@@ -121,7 +121,7 @@ function dt(e, t, n) {
121
121
  const o = Ye(e), r = Ye(t);
122
122
  return o === void 0 || r === void 0 ? o === r ? 0 : o === void 0 ? 1 : -1 : typeof o == "number" && typeof r == "number" ? o - r : n(String(o), String(r));
123
123
  }
124
- function ao(e, t) {
124
+ function lo(e, t) {
125
125
  const n = t.compareText ?? hn.compareText, o = (r, s, a) => {
126
126
  var p;
127
127
  const l = /* @__PURE__ */ new Map(), i = t.levels[s];
@@ -168,32 +168,32 @@ function ao(e, t) {
168
168
  };
169
169
  return o(e, 0, []);
170
170
  }
171
- function lo(e, t) {
171
+ function co(e, t) {
172
172
  const n = /* @__PURE__ */ new Set(), o = (r) => {
173
173
  for (const s of r)
174
174
  n.add(s.path), o(s.groups);
175
175
  };
176
176
  return o(e), t.filter((r) => n.has(r));
177
177
  }
178
- const co = (e) => (t) => {
178
+ const uo = (e) => (t) => {
179
179
  if (!(t instanceof Date) || Number.isNaN(t.getTime())) return;
180
180
  const n = t.getFullYear(), o = t.getMonth(), r = t.getDate();
181
181
  return e === "year" ? new Date(n, 0, 1) : e === "month" ? new Date(n, o, 1) : e === "week" ? new Date(n, o, r - (t.getDay() + 6) % 7) : new Date(n, o, r);
182
182
  };
183
- function uo(e) {
183
+ function fo(e) {
184
184
  const t = new Date(e.getFullYear(), e.getMonth(), e.getDate() + 3 - (e.getDay() + 6) % 7), n = new Date(t.getFullYear(), 0, 4);
185
185
  return { week: 1 + Math.round((t.getTime() - n.getTime()) / 864e5 / 7 - ((n.getDay() + 6) % 7 - 3) / 7), year: t.getFullYear() };
186
186
  }
187
- function fo(e, t, n, o) {
187
+ function go(e, t, n, o) {
188
188
  if (e === "year") return String(t.getFullYear());
189
189
  if (e === "month") return n.month(t);
190
190
  if (e === "week") {
191
- const { week: r, year: s } = uo(t);
191
+ const { week: r, year: s } = fo(t);
192
192
  return o.calendarWeek(r, s);
193
193
  }
194
194
  return n.date(t);
195
195
  }
196
- function go(e, t) {
196
+ function ho(e, t) {
197
197
  const n = [], o = (r, s) => {
198
198
  for (const a of r) {
199
199
  const l = t.has(a.path);
@@ -205,7 +205,7 @@ function go(e, t) {
205
205
  };
206
206
  return o(e, []), n;
207
207
  }
208
- function ho(e, t, n) {
208
+ function po(e, t, n) {
209
209
  const o = n > 0 ? n : e.length || 1, r = Math.max(1, Math.ceil(e.length / o)), s = Math.min(Math.max(1, t), r), a = e.slice((s - 1) * o, s * o);
210
210
  return { lines: Sn(a), page: s, pageCount: r };
211
211
  }
@@ -227,7 +227,7 @@ function Pt(e, t) {
227
227
  ...e.filter((n) => !t.includes(n.id))
228
228
  ] : e;
229
229
  }
230
- const ze = (e) => e == null || typeof e == "number" && Number.isNaN(e), po = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : hn.compareText(String(e), String(t));
230
+ const ze = (e) => e == null || typeof e == "number" && Number.isNaN(e), mo = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : hn.compareText(String(e), String(t));
231
231
  function It(e, t, n) {
232
232
  var A;
233
233
  const {
@@ -259,7 +259,7 @@ function It(e, t, n) {
259
259
  const F = C.direction === "asc" ? 1 : -1, V = T.compare, P = T.value;
260
260
  return P ? ($, L) => {
261
261
  const D = P($), Q = P(L);
262
- return ze(D) || ze(Q) ? ze(D) === ze(Q) ? 0 : ze(D) ? 1 : -1 : (V ? V($, L) : po(D, Q)) * F;
262
+ return ze(D) || ze(Q) ? ze(D) === ze(Q) ? 0 : ze(D) ? 1 : -1 : (V ? V($, L) : mo(D, Q)) * F;
263
263
  } : ($, L) => V($, L) * F;
264
264
  }).filter((C) => C !== null);
265
265
  if (y.length > 0 && b.sort((C, T) => {
@@ -269,7 +269,7 @@ function It(e, t, n) {
269
269
  }
270
270
  return 0;
271
271
  }), (A = n.grouping) != null && A.levels.length) {
272
- const { folded: C, ...T } = n.grouping, F = ao(b, { ...T, sort: p }), V = go(F, C), P = ho(V, a, l ?? 0);
272
+ const { folded: C, ...T } = n.grouping, F = lo(b, { ...T, sort: p }), V = ho(F, C), P = po(V, a, l ?? 0);
273
273
  return {
274
274
  columns: u,
275
275
  filtered: b,
@@ -292,7 +292,7 @@ function It(e, t, n) {
292
292
  columnCount: u.length
293
293
  };
294
294
  }
295
- function mo(e, t, n) {
295
+ function wo(e, t, n) {
296
296
  const { rowKey: o, filter: r, defaultSort: s = null, initialView: a, virtual: l, grouping: i, manual: d } = n, [g, u] = Z((a == null ? void 0 : a.search) ?? ""), [m, v] = Z(() => {
297
297
  var E;
298
298
  return (E = a == null ? void 0 : a.sort) != null && E.length ? [...a.sort] : s ? Array.isArray(s) ? [...s] : [s] : [];
@@ -326,7 +326,7 @@ function mo(e, t, n) {
326
326
  ), D = oe(
327
327
  () => l ? L ? Et(L) : P.filtered.slice($.from, $.to) : P.visible,
328
328
  [l, L, P.filtered, P.visible, $.from, $.to]
329
- ), Q = oe(() => P.filtered.map(o), [P.filtered, o]), X = ro(Q), ae = be((E) => {
329
+ ), Q = oe(() => P.filtered.map(o), [P.filtered, o]), X = so(Q), ae = be((E) => {
330
330
  u(E), b(1);
331
331
  }, []), pe = be((E) => {
332
332
  y(E), b(1);
@@ -377,7 +377,7 @@ function mo(e, t, n) {
377
377
  ), z = oe(
378
378
  () => Pt(t, A).filter((E) => E.label !== void 0 && E.hideable !== !1).map((E) => ({ id: E.id, label: E.label, visible: !_.includes(E.id) })),
379
379
  [t, A, _]
380
- ), se = n.pageSize ?? 10, xe = oe(() => {
380
+ ), re = n.pageSize ?? 10, xe = oe(() => {
381
381
  const E = {};
382
382
  for (const G of t)
383
383
  G.width !== void 0 && (E[G.id] = G.width);
@@ -403,7 +403,7 @@ function mo(e, t, n) {
403
403
  the view of a virtualised table would be a promise nobody redeems on
404
404
  opening. */
405
405
  ...!l && P.page > 1 ? { page: P.page } : {},
406
- ...!l && p !== se ? { pageSize: p } : {},
406
+ ...!l && p !== re ? { pageSize: p } : {},
407
407
  ..._.length ? { hidden: _ } : {},
408
408
  ...A.length ? { order: A } : {},
409
409
  ...Object.keys(Ne).length ? { widths: Ne } : {}
@@ -415,7 +415,7 @@ function mo(e, t, n) {
415
415
  ge,
416
416
  P.page,
417
417
  p,
418
- se,
418
+ re,
419
419
  _,
420
420
  A,
421
421
  Ne
@@ -450,177 +450,177 @@ function mo(e, t, n) {
450
450
  selection: X
451
451
  };
452
452
  }
453
- function wo(e, t) {
453
+ function bo(e, t) {
454
454
  return [
455
455
  ...e.filter((n) => t[n.id] === "start"),
456
456
  ...e.filter((n) => t[n.id] === void 0),
457
457
  ...e.filter((n) => t[n.id] === "end")
458
458
  ];
459
459
  }
460
- function bo(e, t) {
460
+ function vo(e, t) {
461
461
  const n = {};
462
462
  for (const o of e) o.pin && (n[o.id] = o.pin);
463
463
  return t !== void 0 && !n[t] && (n[t] = "start"), n;
464
464
  }
465
- function vo(e, t, n) {
465
+ function yo(e, t, n) {
466
466
  const o = { ...e };
467
467
  return n ? o[t] = n : delete o[t], o;
468
468
  }
469
- const yo = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.entries(e).every(([n, o]) => t[n] === o);
470
- function _o(e, t, n) {
469
+ const _o = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.entries(e).every(([n, o]) => t[n] === o);
470
+ function ko(e, t, n) {
471
471
  if (!e) return;
472
472
  const o = n.size === 0 ? e : Object.fromEntries(Object.entries(e).filter(([r]) => n.has(r)));
473
- return yo(o, t) ? void 0 : o;
473
+ return _o(o, t) ? void 0 : o;
474
474
  }
475
- function ko(e, t, n = t) {
475
+ function So(e, t, n = t) {
476
476
  if (n < e.start) return { side: "start", at: t, edge: n === e.start - 1 };
477
477
  const o = e.count - e.end;
478
478
  if (e.end > 0 && t >= o) return { side: "end", at: e.count - 1 - n, edge: t === o };
479
479
  }
480
- const So = 256;
481
- function Co(e, t, n) {
482
- const o = n - Math.min(n / 2, So);
480
+ const Co = 256;
481
+ function No(e, t, n) {
482
+ const o = n - Math.min(n / 2, Co);
483
483
  return n <= 0 || e + t <= o ? { start: !0, end: !0 } : e > 0 && e <= o ? { start: !0, end: !1 } : { start: !1, end: t > 0 && t <= o };
484
484
  }
485
- const No = (e) => JSON.stringify([e.search, e.conditions, e.sort, e.page, e.pageSize]);
486
- function xo() {
485
+ const xo = (e) => JSON.stringify([e.search, e.conditions, e.sort, e.page, e.pageSize]);
486
+ function Ao() {
487
487
  var t;
488
488
  const e = import.meta;
489
489
  return typeof ((t = e.env) == null ? void 0 : t.DEV) == "boolean" ? e.env.DEV : typeof process < "u" && (process != null && process.env) ? process.env.NODE_ENV !== "production" : !1;
490
490
  }
491
- const Cn = xo(), Ut = /* @__PURE__ */ new Set();
491
+ const Cn = Ao(), Ut = /* @__PURE__ */ new Set();
492
492
  function ve(e, t) {
493
493
  !Cn || Ut.has(e) || (Ut.add(e), console.warn(`@umriss-ui/table: ${t}`));
494
494
  }
495
- const Ao = "_frame_gw9g4_11 _text_ocaqi_23", Oo = "_children_gw9g4_24", To = "_scroll_gw9g4_33 _scroll_ocaqi_52", Ro = "_footerTarget_gw9g4_62", Mo = "_table_gw9g4_66", Lo = "_th_gw9g4_74 _ring_ocaqi_81", Fo = "_sticky_gw9g4_89", Do = "_td_gw9g4_97", Eo = "_rowHeader_gw9g4_109", Po = "_compact_gw9g4_130 _dense_ocaqi_39", Io = "_sortButton_gw9g4_147 _ring_ocaqi_81", Bo = "_numeric_gw9g4_175", zo = "_token_gw9g4_6", Vo = "_absent_gw9g4_192", $o = "_striped_gw9g4_196", Go = "_pinned_gw9g4_223", Ho = "_pinStartEdge_gw9g4_239", Ko = "_pinEndEdge_gw9g4_240", jo = "_sortIndicator_gw9g4_295", Wo = "_sortArrow_gw9g4_302", qo = "_sortArrowDesc_gw9g4_306", Uo = "_sortActive_gw9g4_314", Yo = "_sortRank_gw9g4_320", Jo = "_thFlex_gw9g4_328", Xo = "_footerKind_gw9g4_353", Qo = "_emptyCell_gw9g4_361", Zo = "_emptyTitle_gw9g4_383", er = "_skeleton_gw9g4_392", tr = "_toolbar_gw9g4_424 _text_ocaqi_23", nr = "_toolbarGroup_gw9g4_438", or = "_search_gw9g4_458", rr = "_toolbarInfo_gw9g4_463", sr = "_pagination_gw9g4_469 _text_ocaqi_23", ir = "_paginationControls_gw9g4_482", ar = "_pageSize_gw9g4_489", lr = "_pageSteps_gw9g4_501", cr = "_paginationStatus_gw9g4_507", dr = "_filterButton_gw9g4_516 _ring_ocaqi_81", ur = "_filterActive_gw9g4_543", fr = "_filterPanel_gw9g4_548", gr = "_filterContent_gw9g4_562 _scroll_ocaqi_52", hr = "_filterFooter_gw9g4_573", pr = "_filterLabel_gw9g4_587", mr = "_filterValue_gw9g4_597", wr = "_filteredCount_gw9g4_603", br = "_rangeFields_gw9g4_614", vr = "_rangePeriod_gw9g4_624", yr = "_conditions_gw9g4_630", _r = "_conditionButton_gw9g4_636", kr = "_condition_gw9g4_630", Sr = "_columnsPanel_gw9g4_661", Cr = "_columnsList_gw9g4_670", Nr = "_columnsEntry_gw9g4_679", xr = "_move_gw9g4_691", Ar = "_pinOn_gw9g4_729", Or = "_groupingChoice_gw9g4_739", Tr = "_groupingHeading_gw9g4_747", Rr = "_groupingOptions_gw9g4_756", Mr = "_groupingOption_gw9g4_756 _ring_ocaqi_81", Lr = "_groupingLevel_gw9g4_799", Fr = "_groupingTag_gw9g4_804", Dr = "_groupingTrigger_gw9g4_811", Er = "_groupingPrefix_gw9g4_817", Pr = "_groupingPath_gw9g4_822", Ir = "_groupingSeparator_gw9g4_826", Br = "_groupHeader_gw9g4_843", zr = "_spanCell_gw9g4_884", Vr = "_groupFolded_gw9g4_962", $r = "_spanValue_gw9g4_966", Gr = "_groupLabel_gw9g4_967", Hr = "_spanText_gw9g4_981", Kr = "_groupValue_gw9g4_982", jr = "_groupCount_gw9g4_989", Wr = "_continued_gw9g4_1003", qr = "_spanSelect_gw9g4_1034", Ur = "_fold_gw9g4_1048", Yr = "_foldClosed_gw9g4_1084", Jr = "_foldedCount_gw9g4_1094", Xr = "_shareHost_gw9g4_1102", Qr = "_shareBar_gw9g4_1109", Zr = "_expander_gw9g4_1121", es = "_expanderOpen_gw9g4_1156", ts = "_detailRow_gw9g4_1160", ns = "_detailCell_gw9g4_1160", os = "_actionsCell_gw9g4_1170", rs = "_actions_gw9g4_1170", ss = "_decision_gw9g4_1201", is = "_reserve_gw9g4_1220", as = "_grip_gw9g4_1230", ls = "_virtualBody_gw9g4_1271", cs = "_virtualRow_gw9g4_1287", ds = "_fillerRow_gw9g4_1311", us = "_grid_gw9g4_1324", fs = "_editing_gw9g4_1340", gs = "_editingValue_gw9g4_1344", hs = "_editor_gw9g4_1350", ps = "_editorField_gw9g4_1363", ms = "_draftButtons_gw9g4_1395", ws = "_held_gw9g4_1403", bs = "_deleteAsk_gw9g4_1407", vs = "_newRowBar_gw9g4_1414", ys = "_draftMessage_gw9g4_1421", _s = "_editorMessage_gw9g4_1446", ks = "_control_gw9g4_211", Ss = "_empty_gw9g4_361", Cs = "_toned_gw9g4_1207", f = {
496
- frame: Ao,
497
- children: Oo,
498
- scroll: To,
499
- footerTarget: Ro,
500
- table: Mo,
501
- th: Lo,
502
- sticky: Fo,
503
- td: Do,
504
- rowHeader: Eo,
505
- compact: Po,
506
- sortButton: Io,
507
- numeric: Bo,
508
- token: zo,
509
- absent: Vo,
510
- striped: $o,
511
- pinned: Go,
512
- pinStartEdge: Ho,
513
- pinEndEdge: Ko,
514
- sortIndicator: jo,
515
- sortArrow: Wo,
516
- sortArrowDesc: qo,
517
- sortActive: Uo,
518
- sortRank: Yo,
519
- thFlex: Jo,
520
- footerKind: Xo,
521
- emptyCell: Qo,
522
- emptyTitle: Zo,
523
- skeleton: er,
524
- toolbar: tr,
525
- toolbarGroup: nr,
526
- search: or,
527
- toolbarInfo: rr,
528
- pagination: sr,
529
- paginationControls: ir,
530
- pageSize: ar,
531
- pageSteps: lr,
532
- paginationStatus: cr,
533
- filterButton: dr,
534
- filterActive: ur,
535
- filterPanel: fr,
536
- filterContent: gr,
537
- filterFooter: hr,
538
- filterLabel: pr,
539
- filterValue: mr,
540
- filteredCount: wr,
541
- rangeFields: br,
542
- rangePeriod: vr,
543
- conditions: yr,
544
- conditionButton: _r,
545
- condition: kr,
546
- columnsPanel: Sr,
547
- columnsList: Cr,
548
- columnsEntry: Nr,
549
- move: xr,
550
- pinOn: Ar,
551
- groupingChoice: Or,
552
- groupingHeading: Tr,
553
- groupingOptions: Rr,
554
- groupingOption: Mr,
555
- groupingLevel: Lr,
556
- groupingTag: Fr,
557
- groupingTrigger: Dr,
558
- groupingPrefix: Er,
559
- groupingPath: Pr,
560
- groupingSeparator: Ir,
561
- groupHeader: Br,
562
- spanCell: zr,
563
- groupFolded: Vr,
564
- spanValue: $r,
565
- groupLabel: Gr,
566
- spanText: Hr,
567
- groupValue: Kr,
568
- groupCount: jr,
569
- continued: Wr,
570
- spanSelect: qr,
571
- fold: Ur,
572
- foldClosed: Yr,
573
- foldedCount: Jr,
574
- shareHost: Xr,
575
- shareBar: Qr,
576
- expander: Zr,
577
- expanderOpen: es,
578
- detailRow: ts,
579
- detailCell: ns,
580
- actionsCell: os,
581
- actions: rs,
582
- decision: ss,
583
- reserve: is,
584
- grip: as,
585
- virtualBody: ls,
586
- virtualRow: cs,
587
- fillerRow: ds,
588
- grid: us,
589
- editing: fs,
590
- editingValue: gs,
591
- editor: hs,
592
- editorField: ps,
593
- draftButtons: ms,
594
- held: ws,
595
- deleteAsk: bs,
596
- newRowBar: vs,
597
- draftMessage: ys,
598
- editorMessage: _s,
599
- control: ks,
600
- empty: Ss,
601
- toned: Cs
495
+ const Oo = "_frame_gw9g4_11 _text_ocaqi_23", To = "_children_gw9g4_24", Ro = "_scroll_gw9g4_33 _scroll_ocaqi_52", Mo = "_footerTarget_gw9g4_62", Lo = "_table_gw9g4_66", Fo = "_th_gw9g4_74 _ring_ocaqi_81", Do = "_sticky_gw9g4_89", Eo = "_td_gw9g4_97", Po = "_rowHeader_gw9g4_109", Io = "_compact_gw9g4_130 _dense_ocaqi_39", Bo = "_sortButton_gw9g4_147 _ring_ocaqi_81", zo = "_numeric_gw9g4_175", Vo = "_token_gw9g4_6", $o = "_absent_gw9g4_192", Go = "_striped_gw9g4_196", Ho = "_pinned_gw9g4_223", Ko = "_pinStartEdge_gw9g4_239", jo = "_pinEndEdge_gw9g4_240", Wo = "_sortIndicator_gw9g4_295", qo = "_sortArrow_gw9g4_302", Uo = "_sortArrowDesc_gw9g4_306", Yo = "_sortActive_gw9g4_314", Jo = "_sortRank_gw9g4_320", Xo = "_thFlex_gw9g4_328", Qo = "_footerKind_gw9g4_353", Zo = "_emptyCell_gw9g4_361", er = "_emptyTitle_gw9g4_383", tr = "_skeleton_gw9g4_392", nr = "_toolbar_gw9g4_424 _text_ocaqi_23", or = "_toolbarGroup_gw9g4_438", rr = "_search_gw9g4_458", sr = "_toolbarInfo_gw9g4_463", ir = "_pagination_gw9g4_469 _text_ocaqi_23", ar = "_paginationControls_gw9g4_482", lr = "_pageSize_gw9g4_489", cr = "_pageSteps_gw9g4_501", dr = "_paginationStatus_gw9g4_507", ur = "_filterButton_gw9g4_516 _ring_ocaqi_81", fr = "_filterActive_gw9g4_543", gr = "_filterPanel_gw9g4_548", hr = "_filterContent_gw9g4_562 _scroll_ocaqi_52", pr = "_filterFooter_gw9g4_573", mr = "_filterLabel_gw9g4_587", wr = "_filterValue_gw9g4_597", br = "_filteredCount_gw9g4_603", vr = "_rangeFields_gw9g4_614", yr = "_rangePeriod_gw9g4_624", _r = "_conditions_gw9g4_630", kr = "_conditionButton_gw9g4_636", Sr = "_condition_gw9g4_630", Cr = "_columnsPanel_gw9g4_661", Nr = "_columnsList_gw9g4_670", xr = "_columnsEntry_gw9g4_679", Ar = "_move_gw9g4_691", Or = "_pinOn_gw9g4_729", Tr = "_groupingChoice_gw9g4_739", Rr = "_groupingHeading_gw9g4_747", Mr = "_groupingOptions_gw9g4_756", Lr = "_groupingOption_gw9g4_756 _ring_ocaqi_81", Fr = "_groupingLevel_gw9g4_799", Dr = "_groupingTag_gw9g4_804", Er = "_groupingTrigger_gw9g4_811", Pr = "_groupingPrefix_gw9g4_817", Ir = "_groupingPath_gw9g4_822", Br = "_groupingSeparator_gw9g4_826", zr = "_groupHeader_gw9g4_843", Vr = "_spanCell_gw9g4_884", $r = "_groupFolded_gw9g4_962", Gr = "_spanValue_gw9g4_966", Hr = "_groupLabel_gw9g4_967", Kr = "_spanText_gw9g4_981", jr = "_groupValue_gw9g4_982", Wr = "_groupCount_gw9g4_989", qr = "_continued_gw9g4_1003", Ur = "_spanSelect_gw9g4_1034", Yr = "_fold_gw9g4_1048", Jr = "_foldClosed_gw9g4_1084", Xr = "_foldedCount_gw9g4_1094", Qr = "_shareHost_gw9g4_1102", Zr = "_shareBar_gw9g4_1109", es = "_expander_gw9g4_1121", ts = "_expanderOpen_gw9g4_1156", ns = "_detailRow_gw9g4_1160", os = "_detailCell_gw9g4_1160", rs = "_actionsCell_gw9g4_1170", ss = "_actions_gw9g4_1170", is = "_decision_gw9g4_1201", as = "_reserve_gw9g4_1220", ls = "_grip_gw9g4_1230", cs = "_virtualBody_gw9g4_1271", ds = "_virtualRow_gw9g4_1287", us = "_fillerRow_gw9g4_1311", fs = "_grid_gw9g4_1324", gs = "_editing_gw9g4_1340", hs = "_editingValue_gw9g4_1344", ps = "_editor_gw9g4_1350", ms = "_editorField_gw9g4_1363", ws = "_draftButtons_gw9g4_1395", bs = "_held_gw9g4_1403", vs = "_deleteAsk_gw9g4_1407", ys = "_newRowBar_gw9g4_1414", _s = "_draftMessage_gw9g4_1421", ks = "_editorMessage_gw9g4_1446", Ss = "_control_gw9g4_211", Cs = "_empty_gw9g4_361", Ns = "_toned_gw9g4_1207", f = {
496
+ frame: Oo,
497
+ children: To,
498
+ scroll: Ro,
499
+ footerTarget: Mo,
500
+ table: Lo,
501
+ th: Fo,
502
+ sticky: Do,
503
+ td: Eo,
504
+ rowHeader: Po,
505
+ compact: Io,
506
+ sortButton: Bo,
507
+ numeric: zo,
508
+ token: Vo,
509
+ absent: $o,
510
+ striped: Go,
511
+ pinned: Ho,
512
+ pinStartEdge: Ko,
513
+ pinEndEdge: jo,
514
+ sortIndicator: Wo,
515
+ sortArrow: qo,
516
+ sortArrowDesc: Uo,
517
+ sortActive: Yo,
518
+ sortRank: Jo,
519
+ thFlex: Xo,
520
+ footerKind: Qo,
521
+ emptyCell: Zo,
522
+ emptyTitle: er,
523
+ skeleton: tr,
524
+ toolbar: nr,
525
+ toolbarGroup: or,
526
+ search: rr,
527
+ toolbarInfo: sr,
528
+ pagination: ir,
529
+ paginationControls: ar,
530
+ pageSize: lr,
531
+ pageSteps: cr,
532
+ paginationStatus: dr,
533
+ filterButton: ur,
534
+ filterActive: fr,
535
+ filterPanel: gr,
536
+ filterContent: hr,
537
+ filterFooter: pr,
538
+ filterLabel: mr,
539
+ filterValue: wr,
540
+ filteredCount: br,
541
+ rangeFields: vr,
542
+ rangePeriod: yr,
543
+ conditions: _r,
544
+ conditionButton: kr,
545
+ condition: Sr,
546
+ columnsPanel: Cr,
547
+ columnsList: Nr,
548
+ columnsEntry: xr,
549
+ move: Ar,
550
+ pinOn: Or,
551
+ groupingChoice: Tr,
552
+ groupingHeading: Rr,
553
+ groupingOptions: Mr,
554
+ groupingOption: Lr,
555
+ groupingLevel: Fr,
556
+ groupingTag: Dr,
557
+ groupingTrigger: Er,
558
+ groupingPrefix: Pr,
559
+ groupingPath: Ir,
560
+ groupingSeparator: Br,
561
+ groupHeader: zr,
562
+ spanCell: Vr,
563
+ groupFolded: $r,
564
+ spanValue: Gr,
565
+ groupLabel: Hr,
566
+ spanText: Kr,
567
+ groupValue: jr,
568
+ groupCount: Wr,
569
+ continued: qr,
570
+ spanSelect: Ur,
571
+ fold: Yr,
572
+ foldClosed: Jr,
573
+ foldedCount: Xr,
574
+ shareHost: Qr,
575
+ shareBar: Zr,
576
+ expander: es,
577
+ expanderOpen: ts,
578
+ detailRow: ns,
579
+ detailCell: os,
580
+ actionsCell: rs,
581
+ actions: ss,
582
+ decision: is,
583
+ reserve: as,
584
+ grip: ls,
585
+ virtualBody: cs,
586
+ virtualRow: ds,
587
+ fillerRow: us,
588
+ grid: fs,
589
+ editing: gs,
590
+ editingValue: hs,
591
+ editor: ps,
592
+ editorField: ms,
593
+ draftButtons: ws,
594
+ held: bs,
595
+ deleteAsk: vs,
596
+ newRowBar: ys,
597
+ draftMessage: _s,
598
+ editorMessage: ks,
599
+ control: Ss,
600
+ empty: Cs,
601
+ toned: Ns
602
602
  };
603
- function qa(e) {
603
+ function Ua(e) {
604
604
  return e;
605
605
  }
606
606
  const Xe = /* @__PURE__ */ new WeakMap();
607
607
  function Nn(e, t) {
608
608
  return Xe.set(e, t), e;
609
609
  }
610
- const Ns = (e) => Xe.has(e);
610
+ const xs = (e) => Xe.has(e);
611
611
  function Ie(e) {
612
- return e === "list" ? Ts : e === "range" ? Is : typeof e == "object" && e !== null ? e : void 0;
612
+ return e === "list" ? Rs : e === "range" ? Bs : typeof e == "object" && e !== null ? e : void 0;
613
613
  }
614
614
  function xn(e, t) {
615
615
  if (t == null) return "empty";
616
616
  const n = Xe.get(e);
617
617
  return n ? n.isCondition(t) ? n.isEmpty(t) ? "empty" : "effective" : "foreign" : "effective";
618
618
  }
619
- function xs(e, t, n) {
619
+ function As(e, t, n) {
620
620
  var o;
621
621
  return fe(t) ? ((o = Xe.get(e)) == null ? void 0 : o.absentMatches(n)) ?? !1 : e.matches(t, n);
622
622
  }
623
- function As(e, t, n) {
623
+ function Os(e, t, n) {
624
624
  const o = Xe.get(e);
625
625
  return o ? o.describeIn(t, n) : e.describe(t);
626
626
  }
@@ -648,7 +648,7 @@ function yt(e) {
648
648
  return t || (t = new Set(e.map(De)), Jt.set(e, t)), t;
649
649
  }
650
650
  const _t = (e, t) => fe(e) ? t.wording.cellAbsentValue : He(e, t.format, t.formats, t.wording) ?? String(e);
651
- function Os({
651
+ function Ts({
652
652
  condition: e,
653
653
  setCondition: t,
654
654
  values: n,
@@ -674,10 +674,10 @@ function Os({
674
674
  u.key
675
675
  )) });
676
676
  }
677
- const Ts = Nn(
677
+ const Rs = Nn(
678
678
  {
679
679
  matches: (e, t) => yt(t).has(De(e)),
680
- Input: Os,
680
+ Input: Ts,
681
681
  describe: (e) => e.map((t) => fe(t) ? "–" : String(t)).join(", ")
682
682
  },
683
683
  {
@@ -693,8 +693,8 @@ const Ts = Nn(
693
693
  return `${n.slice(0, 2).join(", ")} ${t.wording.moreValues(o, t.formats.count(o))}`;
694
694
  }
695
695
  }
696
- ), Rs = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), Ms = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime(), Ve = (e) => typeof e == "number" && Number.isFinite(e), Le = (e) => e instanceof Date && !Number.isNaN(e.getTime()), Ls = (e) => Le(e) ? Rs(e) : Ve(e) ? e : void 0, Fs = (e) => Le(e) ? { value: Ms(e), open: !0 } : Ve(e) ? { value: e, open: !1 } : void 0, tt = (e, t) => Le(e) ? t.formats.date(e) : He(e, t.format, t.formats, t.wording) ?? String(e);
697
- function Ds({ condition: e, setCondition: t }) {
696
+ ), Ms = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), Ls = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime(), Ve = (e) => typeof e == "number" && Number.isFinite(e), Le = (e) => e instanceof Date && !Number.isNaN(e.getTime()), Fs = (e) => Le(e) ? Ms(e) : Ve(e) ? e : void 0, Ds = (e) => Le(e) ? { value: Ls(e), open: !0 } : Ve(e) ? { value: e, open: !1 } : void 0, tt = (e, t) => Le(e) ? t.formats.date(e) : He(e, t.format, t.formats, t.wording) ?? String(e);
697
+ function Es({ condition: e, setCondition: t }) {
698
698
  const n = he(), [o, r] = Z(null), s = o !== null, a = o ? o.from : Ve(e == null ? void 0 : e.from) ? e.from : null, l = o ? o.to : Ve(e == null ? void 0 : e.to) ? e.to : null, i = (d, g) => {
699
699
  const u = { from: a, to: l, [d]: g };
700
700
  if (u.from !== null && u.to !== null && u.from > u.to) {
@@ -715,7 +715,7 @@ function Ds({ condition: e, setCondition: t }) {
715
715
  /* @__PURE__ */ c(pt, { label: n.filterTo, error: s ? n.rangeInvalid : void 0, children: /* @__PURE__ */ c(mt, { size: "sm", value: l, onChange: (d) => i("to", d) }) })
716
716
  ] });
717
717
  }
718
- function Es({ condition: e, setCondition: t }) {
718
+ function Ps({ condition: e, setCondition: t }) {
719
719
  const n = Le(e == null ? void 0 : e.from) && Le(e == null ? void 0 : e.to) ? { from: e.from, to: e.to } : null;
720
720
  return /* @__PURE__ */ c("div", { className: f.rangePeriod, children: /* @__PURE__ */ c(
721
721
  Jn,
@@ -727,18 +727,18 @@ function Es({ condition: e, setCondition: t }) {
727
727
  }
728
728
  ) });
729
729
  }
730
- function Ps(e) {
731
- return e.kind === "date" ? /* @__PURE__ */ c(Es, { ...e }) : /* @__PURE__ */ c(Ds, { ...e });
730
+ function Is(e) {
731
+ return e.kind === "date" ? /* @__PURE__ */ c(Ps, { ...e }) : /* @__PURE__ */ c(Es, { ...e });
732
732
  }
733
- const Is = Nn(
733
+ const Bs = Nn(
734
734
  {
735
735
  matches: (e, t) => {
736
736
  const n = Le(e) ? e.getTime() : Ve(e) ? e : void 0;
737
737
  if (n === void 0) return !1;
738
- const o = Ls(t.from), r = Fs(t.to);
738
+ const o = Fs(t.from), r = Ds(t.to);
739
739
  return !(o !== void 0 && n < o || r !== void 0 && (r.open ? n >= r.value : n > r.value));
740
740
  },
741
- Input: Ps,
741
+ Input: Is,
742
742
  describe: (e) => [e.from, e.to].map((t) => t === void 0 ? "" : String(t)).join("–")
743
743
  },
744
744
  {
@@ -814,7 +814,7 @@ const Xt = (e) => JSON.stringify([
814
814
  are new functions on every render and are read when an edit starts. */
815
815
  typeof e.edit == "function" ? "ƒ" : e.edit
816
816
  ]), Qt = (e, t) => e == null ? void 0 : e[t];
817
- class Bs {
817
+ class zs {
818
818
  constructor() {
819
819
  J(this, "columns", new ut("data-umriss-column"));
820
820
  J(this, "actions", new ut("data-umriss-action"));
@@ -935,7 +935,7 @@ class Bs {
935
935
  /** What the columns of this pass declare. */
936
936
  declaredPins() {
937
937
  var t;
938
- return bo(
938
+ return vo(
939
939
  this.orderedColumns().map((n) => ({ id: n.spec.id, pin: n.spec.pin })),
940
940
  this.stickyRowHeader ? (t = this.rowHeader()) == null ? void 0 : t.spec.id : void 0
941
941
  );
@@ -948,7 +948,7 @@ class Bs {
948
948
  /** The columns with the pinned blocks at either end - the one place where
949
949
  that is decided, for screen, column menu and export. */
950
950
  inPinOrder(t) {
951
- return wo(t, this.pins());
951
+ return bo(t, this.pins());
952
952
  }
953
953
  /** The columns in JSX order, the first one per id. */
954
954
  orderedColumns() {
@@ -1038,7 +1038,7 @@ class Bs {
1038
1038
  const g = i.read(d);
1039
1039
  if (g == null) return;
1040
1040
  const { ownGroupValue: u, group: m } = i.spec;
1041
- return u ? u(g) : m ? co(m)(g) : g;
1041
+ return u ? u(g) : m ? uo(m)(g) : g;
1042
1042
  },
1043
1043
  /* A value of one's own is a name; its groups stand by what they hold. */
1044
1044
  order: i.spec.ownGroupValue ? (d) => bt(i.read(d), i.spec.ownSortValue) : void 0
@@ -1129,7 +1129,7 @@ class Bs {
1129
1129
  order: o.order,
1130
1130
  grouping: this.groupingFor(t),
1131
1131
  manual: o.manual
1132
- }, s = It(t.admitted, n, r), a = o.virtual ? zs(s, o.virtual.from, o.virtual.to) : s;
1132
+ }, s = It(t.admitted, n, r), a = o.virtual ? Vs(s, o.virtual.from, o.virtual.to) : s;
1133
1133
  return this.projectionCache = { hook: t, columns: n, projection: a }, a;
1134
1134
  }
1135
1135
  /* --- The hook's snapshot ---------------------------------------------------------- */
@@ -1210,14 +1210,14 @@ class Bs {
1210
1210
  this.actions.entries.delete(t) && this.structure++;
1211
1211
  }
1212
1212
  }
1213
- function zs(e, t, n) {
1213
+ function Vs(e, t, n) {
1214
1214
  if (!e.lines) return { ...e, visible: e.filtered.slice(t, n) };
1215
1215
  const o = e.lines.slice(t, n);
1216
1216
  return { ...e, visibleLines: o, visible: Et(o) };
1217
1217
  }
1218
- const On = /* @__PURE__ */ new WeakMap(), Vs = (e, t) => {
1218
+ const On = /* @__PURE__ */ new WeakMap(), $s = (e, t) => {
1219
1219
  On.set(e, t);
1220
- }, $s = (e) => typeof e == "function" || typeof e == "object" && e !== null ? On.get(e) : void 0, j = (...e) => e.filter(Boolean).join(" ");
1220
+ }, Gs = (e) => typeof e == "function" || typeof e == "object" && e !== null ? On.get(e) : void 0, j = (...e) => e.filter(Boolean).join(" ");
1221
1221
  function Tn({
1222
1222
  entry: e,
1223
1223
  registry: t,
@@ -1237,7 +1237,7 @@ function Tn({
1237
1237
  `manual-filter-options:${u}`,
1238
1238
  `The list filter of "${u}" offers only the values of the page in manual mode; \`filterOptions\` gives it the server's.`
1239
1239
  ), !k) return null;
1240
- const O = n.publicSnapshot, _ = k.Input, S = Ns(k) ? { absentOccurs: y, format: v, kind: t.kindOf(e, n.rows) } : {}, A = () => {
1240
+ const O = n.publicSnapshot, _ = k.Input, S = xs(k) ? { absentOccurs: y, format: v, kind: t.kindOf(e, n.rows) } : {}, A = () => {
1241
1241
  var C;
1242
1242
  l(!1), (C = (s ?? o).current) == null || C.focus();
1243
1243
  };
@@ -1264,14 +1264,14 @@ function Tn({
1264
1264
  }
1265
1265
  ),
1266
1266
  /* @__PURE__ */ R("div", { className: f.filterFooter, children: [
1267
- /* @__PURE__ */ c(re, { size: "sm", variant: "ghost", onClick: () => O.setFilter(u, null), children: d.filterReset }),
1268
- /* @__PURE__ */ c(re, { size: "sm", onClick: A, children: d.filterDone })
1267
+ /* @__PURE__ */ c(se, { size: "sm", variant: "ghost", onClick: () => O.setFilter(u, null), children: d.filterReset }),
1268
+ /* @__PURE__ */ c(se, { size: "sm", onClick: A, children: d.filterDone })
1269
1269
  ] })
1270
1270
  ]
1271
1271
  }
1272
1272
  );
1273
1273
  }
1274
- function Gs({
1274
+ function Hs({
1275
1275
  entry: e,
1276
1276
  registry: t,
1277
1277
  hook: n
@@ -1318,16 +1318,16 @@ function Gs({
1318
1318
  )
1319
1319
  ] });
1320
1320
  }
1321
- function Hs({ registry: e, hook: t }) {
1321
+ function Ks({ registry: e, hook: t }) {
1322
1322
  const n = he(), o = Re(), r = Object.entries(t.publicSnapshot.filter).flatMap(([s, a]) => {
1323
1323
  const l = e.columnById(s), i = l ? Ie(l.spec.filter) : void 0;
1324
1324
  if (!l || !i) return [];
1325
1325
  const d = { formats: o, wording: n, format: l.spec.format, kind: e.kindOf(l, t.rows) };
1326
- return [{ entry: l, text: As(i, a, d) }];
1326
+ return [{ entry: l, text: Os(i, a, d) }];
1327
1327
  });
1328
- return r.length === 0 ? null : /* @__PURE__ */ c(pn, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: s, text: a }) => /* @__PURE__ */ c(Ks, { entry: s, text: a, registry: e, hook: t }, s.spec.id)) });
1328
+ return r.length === 0 ? null : /* @__PURE__ */ c(pn, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: s, text: a }) => /* @__PURE__ */ c(js, { entry: s, text: a, registry: e, hook: t }, s.spec.id)) });
1329
1329
  }
1330
- function Ks({
1330
+ function js({
1331
1331
  entry: e,
1332
1332
  text: t,
1333
1333
  registry: n,
@@ -1377,15 +1377,15 @@ function Ks({
1377
1377
  )
1378
1378
  ] });
1379
1379
  }
1380
- const Zt = ";", js = `\r
1381
- `, Ws = "\uFEFF", qs = (e) => String(e).replace(".", ","), Rn = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, Us = (e, t) => {
1380
+ const Zt = ";", Ws = `\r
1381
+ `, qs = "\uFEFF", Us = (e) => String(e).replace(".", ","), Rn = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, Ys = (e, t) => {
1382
1382
  var o;
1383
1383
  const n = (o = t.value) == null ? void 0 : o.call(t, e);
1384
- return n == null ? "" : Rn(typeof n == "number" ? qs(n) : String(n));
1384
+ return n == null ? "" : Rn(typeof n == "number" ? Us(n) : String(n));
1385
1385
  };
1386
- function Ys(e, t) {
1387
- const n = t.map((r) => Rn(r.label ?? r.id)).join(Zt), o = e.map((r) => t.map((s) => Us(r, s)).join(Zt));
1388
- return Ws + [n, ...o].join(js);
1386
+ function Js(e, t) {
1387
+ const n = t.map((r) => Rn(r.label ?? r.id)).join(Zt), o = e.map((r) => t.map((s) => Ys(r, s)).join(Zt));
1388
+ return qs + [n, ...o].join(Ws);
1389
1389
  }
1390
1390
  function Mn(e) {
1391
1391
  const t = new Map(e.orderedColumns().map((o) => [o.spec.id, o])), n = e.projection().columns.map((o) => t.get(o.id)).filter((o) => o !== void 0);
@@ -1395,7 +1395,7 @@ function Ln(e) {
1395
1395
  e.setSearch("");
1396
1396
  for (const t of Object.keys(e.filter)) e.setFilter(t, null);
1397
1397
  }
1398
- function Js(e) {
1398
+ function Xs(e) {
1399
1399
  const t = e.hook;
1400
1400
  if (!t) return "";
1401
1401
  const n = Mn(e).filter((o) => e.kindOf(o, t.rows) !== "other" || o.spec.ownExportValue).map(
@@ -1405,13 +1405,13 @@ function Js(e) {
1405
1405
  value: (r) => kn(o.read(r), o.spec.ownExportValue)
1406
1406
  })
1407
1407
  );
1408
- return Ys(e.projection().filtered, n);
1408
+ return Js(e.projection().filtered, n);
1409
1409
  }
1410
- const Xs = (e, t, n) => {
1410
+ const Qs = (e, t, n) => {
1411
1411
  var o;
1412
1412
  return ((o = e.groupingEntries(t.rows).find((r) => r.spec.id === n)) == null ? void 0 : o.spec.label) ?? n;
1413
1413
  };
1414
- function Qs({ registry: e, hook: t }) {
1414
+ function Zs({ registry: e, hook: t }) {
1415
1415
  const n = he(), o = e.groupingEntries(t.rows);
1416
1416
  if (o.length === 0) return null;
1417
1417
  const { grouping: r, setGrouping: s } = t.publicSnapshot;
@@ -1438,10 +1438,10 @@ function Qs({ registry: e, hook: t }) {
1438
1438
  }) })
1439
1439
  ] });
1440
1440
  }
1441
- function Zs({ registry: e, hook: t }) {
1441
+ function ei({ registry: e, hook: t }) {
1442
1442
  const n = he(), o = t.publicSnapshot, { grouping: r } = o;
1443
1443
  if (r.length === 0) return null;
1444
- const s = r.map((a) => Xs(e, t, a));
1444
+ const s = r.map((a) => Qs(e, t, a));
1445
1445
  return (
1446
1446
  /* In a tag group, as the conditions stand: the tag is one stop, its button
1447
1447
  the thing one tabs to, and the ring stands on the tag. */
@@ -1467,7 +1467,7 @@ function Zs({ registry: e, hook: t }) {
1467
1467
  }
1468
1468
  function Fn({ registry: e }) {
1469
1469
  const t = he();
1470
- return /* @__PURE__ */ c(re, { size: "sm", variant: "secondary", onClick: () => {
1470
+ return /* @__PURE__ */ c(se, { size: "sm", variant: "secondary", onClick: () => {
1471
1471
  var n;
1472
1472
  return (n = e.addRow) == null ? void 0 : n.call(e);
1473
1473
  }, children: t.newRow });
@@ -1483,18 +1483,18 @@ function Dn({
1483
1483
  if (e && a) {
1484
1484
  const d = a.publicSnapshot, g = d.search !== "" || Object.keys(d.filter).length > 0, u = o ? [] : a.selectedRows ?? d.filtered.filter((v) => d.selection.isSelected(a.rowKey(v))), m = e.hasRowActions() ? e.actions.ordered().filter((v) => v.spec.bulk) : [];
1485
1485
  l = /* @__PURE__ */ R(de, { children: [
1486
- /* @__PURE__ */ c(Zs, { registry: e, hook: a }),
1487
- /* @__PURE__ */ c(Hs, { registry: e, hook: a })
1486
+ /* @__PURE__ */ c(ei, { registry: e, hook: a }),
1487
+ /* @__PURE__ */ c(Ks, { registry: e, hook: a })
1488
1488
  ] }), i = /* @__PURE__ */ R("div", { className: f.toolbarGroup, children: [
1489
1489
  /* @__PURE__ */ c("span", { role: "status", className: f.filteredCount, children: g ? d.manual ? (
1490
1490
  /* The server counts the matches only; a total beside them would be a second request. */
1491
1491
  r.entries(d.rowCount, s.count(d.rowCount))
1492
1492
  ) : r.filteredOfTotal(s.count(d.filtered.length), s.count(a.admitted.length)) : "" }),
1493
- g && /* @__PURE__ */ c(re, { size: "sm", variant: "ghost", onClick: () => Ln(d), children: r.resetAll }),
1493
+ g && /* @__PURE__ */ c(se, { size: "sm", variant: "ghost", onClick: () => Ln(d), children: r.resetAll }),
1494
1494
  u.length > 0 && /* @__PURE__ */ R(de, { children: [
1495
1495
  /* @__PURE__ */ c("span", { className: f.toolbarInfo, children: r.selectedCount(u.length, s.count(u.length)) }),
1496
1496
  m.map(({ key: v, spec: h }) => /* @__PURE__ */ c(
1497
- re,
1497
+ se,
1498
1498
  {
1499
1499
  size: "sm",
1500
1500
  variant: h.tone === "danger" ? "danger" : "secondary",
@@ -1515,13 +1515,13 @@ function Dn({
1515
1515
  i
1516
1516
  ] });
1517
1517
  }
1518
- const kt = Rt(null), ei = () => () => {
1518
+ const kt = Rt(null), ti = () => () => {
1519
1519
  }, en = () => 0;
1520
1520
  function Qe(e) {
1521
1521
  var r;
1522
- const t = Ee(kt), n = e ? $s(e.Table) ?? null : (t == null ? void 0 : t.registry) ?? null;
1522
+ const t = Ee(kt), n = e ? Gs(e.Table) ?? null : (t == null ? void 0 : t.registry) ?? null;
1523
1523
  rt(
1524
- n ? n.subscribe : ei,
1524
+ n ? n.subscribe : ti,
1525
1525
  n ? n.bodyVersion : en,
1526
1526
  n ? n.bodyVersion : en
1527
1527
  );
@@ -1534,7 +1534,7 @@ function En({ wording: e }) {
1534
1534
  /* @__PURE__ */ c(Ge, { children: e.cellAbsentValue })
1535
1535
  ] });
1536
1536
  }
1537
- const ti = { sum: "Σ", avg: "⌀", min: "min", max: "max" }, ni = (e, t) => ({
1537
+ const ni = { sum: "Σ", avg: "⌀", min: "min", max: "max" }, oi = (e, t) => ({
1538
1538
  sum: t.footerSum,
1539
1539
  avg: t.footerAverage,
1540
1540
  min: t.footerMinimum,
@@ -1556,9 +1556,9 @@ function St({
1556
1556
  let u;
1557
1557
  if (fe(d)) u = /* @__PURE__ */ c(En, { wording: o });
1558
1558
  else if ((i === "sum" || i === "avg") && a === void 0 && typeof d == "number") {
1559
- const v = Math.max(0, ...t.map((h) => e.read(h)).filter(oi).map(ri));
1559
+ const v = Math.max(0, ...t.map((h) => e.read(h)).filter(ri).map(si));
1560
1560
  u = n.number(d, Math.min(10, i === "avg" ? v + 1 : v));
1561
- } else if (i === "range" && a === "date" && si(d)) {
1561
+ } else if (i === "range" && a === "date" && ii(d)) {
1562
1562
  const [v, h] = d;
1563
1563
  u = v.getTime() === h.getTime() ? n.date(v) : o.rangeFromTo(n.dateShort(v), n.dateShort(h));
1564
1564
  } else if (i === "count" || i === "distinct") u = n.count(d);
@@ -1566,26 +1566,26 @@ function St({
1566
1566
  const [v, h] = d;
1567
1567
  u = g(v) === g(h) ? g(v) : o.rangeFromTo(g(v) ?? "", g(h) ?? "");
1568
1568
  } else i === "own" && l ? u = l(d, t[0]) : u = g(d);
1569
- const m = ti[i];
1569
+ const m = ni[i];
1570
1570
  return /* @__PURE__ */ R(de, { children: [
1571
1571
  r && m && /* @__PURE__ */ c("span", { "aria-hidden": "true", className: f.footerKind, children: m }),
1572
1572
  r && /* @__PURE__ */ R(Ge, { children: [
1573
- ni(i, o),
1573
+ oi(i, o),
1574
1574
  " "
1575
1575
  ] }),
1576
1576
  u
1577
1577
  ] });
1578
1578
  }
1579
- const oi = (e) => typeof e == "number" && Number.isFinite(e), ri = (e) => {
1579
+ const ri = (e) => typeof e == "number" && Number.isFinite(e), si = (e) => {
1580
1580
  var o;
1581
1581
  const [t = "", n = "0"] = e.toExponential().split("e");
1582
1582
  return Math.max(0, (((o = t.split(".")[1]) == null ? void 0 : o.length) ?? 0) - Number(n));
1583
- }, si = ([e, t]) => e instanceof Date && t instanceof Date && e.getFullYear() === t.getFullYear();
1583
+ }, ii = ([e, t]) => e instanceof Date && t instanceof Date && e.getFullYear() === t.getFullYear();
1584
1584
  function Pn(e, t) {
1585
1585
  const n = e.spec.aggregate;
1586
1586
  return n === "count" || n === "distinct" ? !0 : e.spec.rightAligned !== void 0 ? e.spec.rightAligned : _n(t, e.read) === "number";
1587
1587
  }
1588
- function ii(e, t) {
1588
+ function ai(e, t) {
1589
1589
  const n = /* @__PURE__ */ new Map();
1590
1590
  for (const [o, r] of t) {
1591
1591
  const s = e.get(o);
@@ -1597,29 +1597,29 @@ function In(e, t) {
1597
1597
  const n = getComputedStyle(e).getPropertyValue(t).trim(), o = Number.parseFloat(n);
1598
1598
  return Number.isFinite(o) ? n.endsWith("ms") ? o : o * 1e3 : 0;
1599
1599
  }
1600
- const ai = (e) => {
1600
+ const li = (e) => {
1601
1601
  const t = /* @__PURE__ */ new Map(), n = e.getBoundingClientRect().top;
1602
1602
  for (const o of Array.from(e.querySelectorAll("tbody > tr[data-motion]")))
1603
1603
  t.set(o.dataset.motion, o.getBoundingClientRect().top - n);
1604
1604
  return t;
1605
1605
  };
1606
- function li(e, t) {
1606
+ function ci(e, t) {
1607
1607
  const n = ie(null);
1608
1608
  ne(() => {
1609
1609
  const o = e.current;
1610
1610
  if (!o) return;
1611
- const r = ai(o), s = n.current;
1611
+ const r = li(o), s = n.current;
1612
1612
  if (n.current = { trigger: t, positions: r }, !s || s.trigger === t) return;
1613
1613
  const a = In(o, "--u-duration-medium");
1614
1614
  if (a === 0 || typeof o.animate != "function") return;
1615
- const l = getComputedStyle(o).getPropertyValue("--u-ease-out").trim() || "ease-out", i = ii(s.positions, r);
1615
+ const l = getComputedStyle(o).getPropertyValue("--u-ease-out").trim() || "ease-out", i = ai(s.positions, r);
1616
1616
  for (const d of Array.from(o.querySelectorAll("tbody > tr[data-motion]"))) {
1617
1617
  const g = d.dataset.motion, u = i.get(g);
1618
1618
  u !== void 0 ? d.animate([{ transform: `translateY(${u}px)` }, { transform: "none" }], { duration: a, easing: l }) : s.positions.has(g) || d.animate([{ opacity: 0, transform: "translateY(-4px)" }, { opacity: 1, transform: "none" }], { duration: a, easing: l });
1619
1619
  }
1620
1620
  });
1621
1621
  }
1622
- function ci(e, t, n) {
1622
+ function di(e, t, n) {
1623
1623
  const o = ie(t);
1624
1624
  ne(() => {
1625
1625
  const r = e.current, s = o.current;
@@ -1638,7 +1638,7 @@ function ci(e, t, n) {
1638
1638
  }
1639
1639
  const Bn = {};
1640
1640
  function Bt(e, t, n = t) {
1641
- const o = ko(e, t, n);
1641
+ const o = So(e, t, n);
1642
1642
  if (!o) return Bn;
1643
1643
  const r = o.side === "start";
1644
1644
  return {
@@ -1658,7 +1658,7 @@ function Bt(e, t, n = t) {
1658
1658
  }
1659
1659
  };
1660
1660
  }
1661
- const di = (e) => e.controls + (e.span ? 1 : 0) + e.aggregates.length + (e.actions ? 1 : 0);
1661
+ const ui = (e) => e.controls + (e.span ? 1 : 0) + e.aggregates.length + (e.actions ? 1 : 0);
1662
1662
  function zn(e) {
1663
1663
  const { controls: t, span: n, aggregates: o, actions: r, blocks: s } = e, a = o.length, l = o.indexOf(!0), i = s.end > 0 ? s.end - (r ? 1 : 0) : 0, d = Math.max(n || a === 0 ? 0 : 1, Math.min(l === -1 ? a : l, a - i)), g = t + (n ? 1 : 0), u = s.start > 0 ? s.start - g : 0;
1664
1664
  return {
@@ -1668,14 +1668,14 @@ function zn(e) {
1668
1668
  };
1669
1669
  }
1670
1670
  function ft(e, t) {
1671
- const n = di(t);
1671
+ const n = ui(t);
1672
1672
  if (e === "cells") return Array.from({ length: n }, () => 1);
1673
1673
  if (e === "whole") return [n];
1674
1674
  const { lead: o, labelColumns: r, countColumns: s } = zn(t), a = Array.from({ length: t.controls }, () => 1), l = Array.from({ length: t.aggregates.length - o + (t.actions ? 1 : 0) }, () => 1), i = (d) => o - d > 0 ? [o - d] : [];
1675
1675
  return e === "header" ? [...a, (t.span ? 1 : 0) + r, ...i(r), ...l] : [...a, 1, ...s > 0 ? [s] : [], ...i(s), ...l];
1676
1676
  }
1677
1677
  const at = (e) => `row:${e}`;
1678
- function ui({ layout: e, body: t, rowKey: n, expanded: o, foot: r }) {
1678
+ function fi({ layout: e, body: t, rowKey: n, expanded: o, foot: r }) {
1679
1679
  const s = ft("cells", e), a = ft("whole", e), l = [{ key: "head", cells: s, at: -1 }], i = (d, g) => {
1680
1680
  const u = n(d);
1681
1681
  l.push({ key: at(u), cells: s, at: g, row: d }), o.has(u) && l.push({ key: `detail:${u}`, cells: a, at: g, row: d });
@@ -1694,7 +1694,7 @@ function Vn(e, t) {
1694
1694
  return { index: 0, start: 0 };
1695
1695
  }
1696
1696
  const qe = (e, t) => e.slice(0, t).reduce((n, o) => n + o, 0);
1697
- function fi(e, t, n, o) {
1697
+ function gi(e, t, n, o) {
1698
1698
  const r = e.length - 1, s = e[t.line];
1699
1699
  if (!s) return t;
1700
1700
  const { index: a } = Vn(s.cells, t.column), l = (i) => ({ line: Math.max(0, Math.min(r, i)), column: t.column });
@@ -1721,7 +1721,7 @@ function fi(e, t, n, o) {
1721
1721
  return { line: r, column: qe(e[r].cells, e[r].cells.length - 1) };
1722
1722
  }
1723
1723
  }
1724
- function gi(e, t, n, o) {
1724
+ function hi(e, t, n, o) {
1725
1725
  const r = e.flatMap((l, i) => l.cells.map((d, g) => ({ line: i, column: qe(l.cells, g) }))), s = r.findIndex((l) => l.line === t.line && l.column === Vn(e[t.line].cells, t.column).start);
1726
1726
  return (n ? r.slice(0, Math.max(0, s)).reverse() : r.slice(s + 1)).find(o) ?? null;
1727
1727
  }
@@ -1732,7 +1732,7 @@ function tn(e, t, n) {
1732
1732
  function lt(e, t, n, o) {
1733
1733
  if (t === void 0) return o.groupNoValue;
1734
1734
  const r = e == null ? void 0 : e.spec;
1735
- if (r != null && r.group && t instanceof Date) return fo(r.group, t, n, o);
1735
+ if (r != null && r.group && t instanceof Date) return go(r.group, t, n, o);
1736
1736
  const s = r != null && r.ownGroupValue || r == null ? void 0 : r.format;
1737
1737
  return He(t, s, n, o) ?? String(t);
1738
1738
  }
@@ -1783,9 +1783,9 @@ function Nt({
1783
1783
  }
1784
1784
  );
1785
1785
  }
1786
- function hi({ value: e, formats: t }) {
1786
+ function pi({ value: e, formats: t }) {
1787
1787
  const n = ie(null);
1788
- return ci(n, e, t.count), /* @__PURE__ */ c("span", { ref: n, className: f.groupCount, children: t.count(e) });
1788
+ return di(n, e, t.count), /* @__PURE__ */ c("span", { ref: n, className: f.groupCount, children: t.count(e) });
1789
1789
  }
1790
1790
  function xt({ group: e, entry: t, hook: n, formats: o, wording: r }) {
1791
1791
  const { selection: s } = n.publicSnapshot, a = e.rows.map(n.rowKey), l = a.filter((d) => s.isSelected(d)).length, i = l === a.length;
@@ -1810,7 +1810,7 @@ function nn(e, t, n) {
1810
1810
  for (const a of r)
1811
1811
  o.folded.includes(a.path) !== t && o.toggleFold(a.path);
1812
1812
  }
1813
- function pi({
1813
+ function mi({
1814
1814
  line: e,
1815
1815
  entry: t,
1816
1816
  selectable: n,
@@ -1858,7 +1858,7 @@ function on({
1858
1858
  }), C = s.slice(_), T = a + (o ? 1 : 0), F = (D, Q = D) => Bt(l, D, Q), V = (D) => _ - D > 0 && /* @__PURE__ */ c("td", { className: f.td, colSpan: _ - D }), P = s.find((D) => D.spec.aggregate === "sum" && D.spec.share !== !1), $ = n !== void 0, L = /* @__PURE__ */ R("span", { className: f.groupLabel, children: [
1859
1859
  /* @__PURE__ */ c(Nt, { group: y, parent: e.parents.at(-1), entry: r, open: O, hook: v, formats: h, wording: b }),
1860
1860
  /* @__PURE__ */ c("span", { className: f.groupValue, children: /* @__PURE__ */ c(Ct, { entry: r, group: y, formats: h, wording: b }) }),
1861
- /* @__PURE__ */ c(hi, { value: y.rows.length, formats: h }),
1861
+ /* @__PURE__ */ c(pi, { value: y.rows.length, formats: h }),
1862
1862
  k && e.continued && /* @__PURE__ */ c("span", { className: f.continued, children: b.groupContinued })
1863
1863
  ] });
1864
1864
  return /* @__PURE__ */ R(
@@ -1915,7 +1915,7 @@ function on({
1915
1915
  V(A)
1916
1916
  ] }),
1917
1917
  C.map((D, Q) => /* @__PURE__ */ c(
1918
- mi,
1918
+ wi,
1919
1919
  {
1920
1920
  pin: F(T + _ + Q),
1921
1921
  entry: D,
@@ -1932,7 +1932,7 @@ function on({
1932
1932
  }
1933
1933
  );
1934
1934
  }
1935
- function mi({
1935
+ function wi({
1936
1936
  entry: e,
1937
1937
  pin: t,
1938
1938
  group: n,
@@ -1957,7 +1957,7 @@ function mi({
1957
1957
  ] }) : /* @__PURE__ */ c(St, { entry: e, rows: n.rows, formats: s, wording: a }) });
1958
1958
  }
1959
1959
  const Ce = "new";
1960
- class wi {
1960
+ class bi {
1961
1961
  constructor() {
1962
1962
  J(this, "wish", null);
1963
1963
  }
@@ -1971,17 +1971,17 @@ class wi {
1971
1971
  return n && (this.wish = null), n;
1972
1972
  }
1973
1973
  }
1974
- function bi() {
1975
- const [e, t] = Z({ active: null, widget: !1, editing: null }), [n] = Z(() => new wi());
1974
+ function vi() {
1975
+ const [e, t] = Z({ active: null, widget: !1, editing: null }), [n] = Z(() => new bi());
1976
1976
  return { state: e, setState: t, focus: n };
1977
1977
  }
1978
1978
  const Ke = Rt(null);
1979
- function vi(e, t) {
1979
+ function yi(e, t) {
1980
1980
  const n = Ee(Ke), o = n == null ? void 0 : n.editing;
1981
1981
  return o && o.line === e && t in o.drafts ? n : null;
1982
1982
  }
1983
1983
  const At = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]', We = "data-grid-tabindex";
1984
- function yi(e, t) {
1984
+ function _i(e, t) {
1985
1985
  if (t && !e.hasAttribute(We))
1986
1986
  e.setAttribute(We, e.getAttribute("tabindex") ?? ""), e.tabIndex = -1;
1987
1987
  else if (!t && e.hasAttribute(We)) {
@@ -2003,7 +2003,7 @@ function gt(e, t) {
2003
2003
  const { start: s, end: a } = zt(o).find((l) => l.cell === n);
2004
2004
  return { cell: n, line: r, column: s, end: a };
2005
2005
  }
2006
- function _i({
2006
+ function ki({
2007
2007
  table: e,
2008
2008
  grid: t,
2009
2009
  lines: n,
@@ -2030,7 +2030,7 @@ function _i({
2030
2030
  var O, _;
2031
2031
  const i = e.current;
2032
2032
  if (!i) return;
2033
- const { active: d, widget: g, editing: u } = t.state, m = ki(d, n, o), v = (O = n[m.line]) == null ? void 0 : O.key, h = new Map(n.map((S, A) => [S.key, A]));
2033
+ const { active: d, widget: g, editing: u } = t.state, m = Si(d, n, o), v = (O = n[m.line]) == null ? void 0 : O.key, h = new Map(n.map((S, A) => [S.key, A]));
2034
2034
  let b = null, p = null;
2035
2035
  for (const S of Array.from(i.querySelectorAll("tr[data-grid-line]"))) {
2036
2036
  const A = S.dataset.gridLine, C = zt(S);
@@ -2038,7 +2038,7 @@ function _i({
2038
2038
  const P = m.column >= F && m.column < V || T === C.at(-1).cell && m.column >= V;
2039
2039
  P && A === v && (b = T), P && p === null && A !== "head" && (p = T), T.tabIndex = -1, r && A !== "head" && !r({ line: h.get(A) ?? -1, column: F }) ? T.setAttribute("aria-readonly", "true") : T.removeAttribute("aria-readonly");
2040
2040
  const $ = (u == null ? void 0 : u.row) === !0 && u.line === A || T === b && (g || u !== null && u.line === A);
2041
- for (const L of Array.from(T.querySelectorAll(At))) yi(L, !$);
2041
+ for (const L of Array.from(T.querySelectorAll(At))) _i(L, !$);
2042
2042
  }
2043
2043
  }
2044
2044
  const y = b ?? p ?? i.querySelector("tr[data-grid-line] > *");
@@ -2055,7 +2055,7 @@ function _i({
2055
2055
  } else k === "cell" && (b == null || b.focus());
2056
2056
  }), null;
2057
2057
  }
2058
- function ki(e, t, n) {
2058
+ function Si(e, t, n) {
2059
2059
  return e ? {
2060
2060
  line: tn(
2061
2061
  t.map((o) => o.key),
@@ -2065,7 +2065,7 @@ function ki(e, t, n) {
2065
2065
  column: tn(n, e.column, e.columnIndex)
2066
2066
  } : { line: Math.min(1, t.length - 1), column: 0 };
2067
2067
  }
2068
- const Si = {
2068
+ const Ci = {
2069
2069
  ArrowLeft: "left",
2070
2070
  ArrowRight: "right",
2071
2071
  ArrowUp: "up",
@@ -2079,7 +2079,7 @@ function $n(e, t) {
2079
2079
  const n = (o) => fe(o) || o === "" ? null : o instanceof Date ? o.getTime() : o;
2080
2080
  return Object.is(n(e), n(t));
2081
2081
  }
2082
- function Ci(e) {
2082
+ function Ni(e) {
2083
2083
  const { grid: t, lines: n, ids: o, columnById: r, rowKey: s, virtual: a, onCellEdit: l, rowMode: i, onRowSave: d, onRowAdd: g, newRow: u, onRowDelete: m, select: v } = e, { setState: h } = t, b = n.map((w) => w.key), p = t.state.editing, y = (w) => {
2084
2084
  var N;
2085
2085
  return w === Ce ? p == null ? void 0 : p.fresh : (N = n.find((M) => M.key === w)) == null ? void 0 : N.row;
@@ -2101,14 +2101,14 @@ function Ci(e) {
2101
2101
  editing: { line: B.key, column: q.spec.id, row: i, drafts: Y, errors: {}, refused: !1 }
2102
2102
  }));
2103
2103
  }, T = (w = {}, N = !0) => {
2104
- var se, xe, Ne;
2104
+ var re, xe, Ne;
2105
2105
  if (!p) return !0;
2106
2106
  const M = { ...p.drafts, ...w }, B = y(p.line);
2107
2107
  if (B === void 0)
2108
2108
  return h((te) => ({ ...te, editing: null })), !0;
2109
2109
  const q = {};
2110
2110
  for (const [te, ge] of Object.entries(M)) {
2111
- const Ae = (Ne = (se = r(te)) == null ? void 0 : (xe = se.spec).validate) == null ? void 0 : Ne.call(xe, ge, B);
2111
+ const Ae = (Ne = (re = r(te)) == null ? void 0 : (xe = re.spec).validate) == null ? void 0 : Ne.call(xe, ge, B);
2112
2112
  Ae && (q[te] = Ae);
2113
2113
  }
2114
2114
  const Y = Object.keys(M).find((te) => q[te] !== void 0);
@@ -2134,8 +2134,8 @@ function Ci(e) {
2134
2134
  if (!M.editing) return M;
2135
2135
  const B = { ...M.editing.errors };
2136
2136
  if (B[w] !== void 0) {
2137
- const se = (z = (q = r(w)) == null ? void 0 : (Y = q.spec).validate) == null ? void 0 : z.call(Y, N, y(M.editing.line));
2138
- se ? B[w] = se : delete B[w];
2137
+ const re = (z = (q = r(w)) == null ? void 0 : (Y = q.spec).validate) == null ? void 0 : z.call(Y, N, y(M.editing.line));
2138
+ re ? B[w] = re : delete B[w];
2139
2139
  }
2140
2140
  return { ...M, editing: { ...M.editing, drafts: { ...M.editing.drafts, [w]: N }, errors: B, refused: !1 } };
2141
2141
  }), L = () => {
@@ -2176,8 +2176,8 @@ function Ci(e) {
2176
2176
  else if (w.key === "Enter" && !(w.target instanceof HTMLButtonElement))
2177
2177
  w.preventDefault(), T();
2178
2178
  else if (w.key === "Tab") {
2179
- const z = gi(n, B, w.shiftKey, O), se = T();
2180
- if ((z || !se) && w.preventDefault(), !se) return;
2179
+ const z = hi(n, B, w.shiftKey, O), re = T();
2180
+ if ((z || !re) && w.preventDefault(), !re) return;
2181
2181
  z ? C(z) : t.focus.want(null);
2182
2182
  }
2183
2183
  return;
@@ -2187,9 +2187,9 @@ function Ci(e) {
2187
2187
  return;
2188
2188
  }
2189
2189
  if (w.altKey || w.metaKey) return;
2190
- const q = w.ctrlKey ? { Home: "first", End: "last" }[w.key] : Si[w.key];
2190
+ const q = w.ctrlKey ? { Home: "first", End: "last" }[w.key] : Ci[w.key];
2191
2191
  if (q) {
2192
- w.preventDefault(), A(N, fi(n, B, q, Ni(M.cell, N)));
2192
+ w.preventDefault(), A(N, gi(n, B, q, xi(M.cell, N)));
2193
2193
  return;
2194
2194
  }
2195
2195
  if (!w.ctrlKey) {
@@ -2204,7 +2204,7 @@ function Ci(e) {
2204
2204
  return;
2205
2205
  }
2206
2206
  const z = M.cell.querySelector(At);
2207
- z && (w.preventDefault(), h((se) => ({ ...se, widget: !0 })), z.focus());
2207
+ z && (w.preventDefault(), h((re) => ({ ...re, widget: !0 })), z.focus());
2208
2208
  return;
2209
2209
  }
2210
2210
  if (w.key.length === 1 && O(B)) {
@@ -2249,12 +2249,12 @@ function Ci(e) {
2249
2249
  }, ee = p && !p.row ? () => void T({}, !1) : void 0;
2250
2250
  return { onKeyDown: D, onClick: Q, onFocus: X, onBlur: ae, context: pe, editable: O, addRow: L, outside: ee };
2251
2251
  }
2252
- function Ni(e, t) {
2252
+ function xi(e, t) {
2253
2253
  var s;
2254
2254
  const n = ((s = e.parentElement) == null ? void 0 : s.getBoundingClientRect().height) ?? 0, o = t.parentElement, r = Math.min((o == null ? void 0 : o.clientHeight) || window.innerHeight, window.innerHeight);
2255
2255
  return n > 0 ? Math.max(1, Math.floor(r / n) - 1) : 10;
2256
2256
  }
2257
- function xi({ entry: e, row: t, rowName: n, grid: o }) {
2257
+ function Ai({ entry: e, row: t, rowName: n, grid: o }) {
2258
2258
  const r = Re(), s = ie(null), { spec: a } = e, l = o.editing, i = a.id, d = l.drafts[i], g = l.errors[i] ?? null, u = (h) => o.setDraft(i, h), m = o.wording.editCell(a.label, n);
2259
2259
  let v;
2260
2260
  if (typeof a.edit == "function")
@@ -2284,7 +2284,7 @@ function xi({ entry: e, row: t, rowName: n, grid: o }) {
2284
2284
  }, anchorRef: s, restoreFocus: !1, offset: 4, className: f.editorMessage, children: /* @__PURE__ */ c("span", { "aria-hidden": "true", children: g }) })
2285
2285
  ] });
2286
2286
  }
2287
- function Ai(e) {
2287
+ function Oi(e) {
2288
2288
  const t = typeof e.value == "string" ? e.value : void 0;
2289
2289
  let n = e.id ?? t;
2290
2290
  return n === void 0 && (ve(`without-id:${e.label}`, `The column "${e.label}" has a computed value but no id. Its label serves as the id.`), n = e.label), e.footer !== void 0 && ve(`footer:${n}`, `The column "${n}" uses \`footer\`, which is called \`aggregate\` now. The old name goes with the next minor version.`), e.children !== void 0 && typeof e.children != "function" && ve(`children:${n}`, `The children of the column "${n}" are not a function and are passed over.`), {
@@ -2313,14 +2313,14 @@ function Ai(e) {
2313
2313
  validate: e.validate
2314
2314
  };
2315
2315
  }
2316
- function Oi(e, t, n, o, r) {
2316
+ function Ti(e, t, n, o, r) {
2317
2317
  if (!t) return n.rowKey(e);
2318
2318
  const s = t.read(e);
2319
2319
  return fe(s) ? r.cellAbsentValue : He(s, t.spec.format, o, r) ?? n.rowKey(e);
2320
2320
  }
2321
- function Ti(e) {
2321
+ function Ri(e) {
2322
2322
  function t(i) {
2323
- const d = Te(), g = Ee(kt), u = Ai(i);
2323
+ const d = Te(), g = Ee(kt), u = Oi(i);
2324
2324
  return e.registerColumn(d, u), ne(
2325
2325
  () => () => {
2326
2326
  e.removeColumn(d), e.commit();
@@ -2400,18 +2400,18 @@ function Ti(e) {
2400
2400
  const m = oe(() => ({ registry: e, footerTarget: g }), [g]);
2401
2401
  return /* @__PURE__ */ c(kt.Provider, { value: m, children: /* @__PURE__ */ R("div", { className: j(f.frame, i.className), children: [
2402
2402
  /* @__PURE__ */ c("div", { ref: d, className: f.children, children: i.children }),
2403
- /* @__PURE__ */ c(Ri, { registry: e }),
2404
- /* @__PURE__ */ c(Mi, { registry: e, props: i }),
2403
+ /* @__PURE__ */ c(Mi, { registry: e }),
2404
+ /* @__PURE__ */ c(Li, { registry: e, props: i }),
2405
2405
  /* @__PURE__ */ c("div", { ref: u, className: f.footerTarget })
2406
2406
  ] }) });
2407
2407
  }
2408
2408
  const l = { Table: a, Column: t, RowDetail: n, RowActions: o, Action: r, GroupBy: s };
2409
- return Vs(a, e), l;
2409
+ return $s(a, e), l;
2410
2410
  }
2411
- function Ri({ registry: e }) {
2411
+ function Mi({ registry: e }) {
2412
2412
  return rt(e.subscribe, e.bodyVersion, e.bodyVersion), !e.hook || !e.needsOwnToolbar() ? null : /* @__PURE__ */ c(Dn, { registry: e, own: !0 });
2413
2413
  }
2414
- function Mi({ registry: e, props: t }) {
2414
+ function Li({ registry: e, props: t }) {
2415
2415
  var Gt, Ht, Kt;
2416
2416
  const {
2417
2417
  selectable: n = !1,
@@ -2426,7 +2426,7 @@ function Mi({ registry: e, props: t }) {
2426
2426
  grid: u = !1
2427
2427
  } = t;
2428
2428
  rt(e.subscribe, e.bodyVersion, e.bodyVersion);
2429
- const m = he(), v = Re(), h = yn(s, "regular"), b = Te(), p = ie(null), y = bi(), [k, O] = Z({ start: !0, end: !0 }), _ = (Gt = y.state.editing) == null ? void 0 : Gt.line;
2429
+ const m = he(), v = Re(), h = yn(s, "regular"), b = Te(), p = ie(null), y = vi(), [k, O] = Z({ start: !0, end: !0 }), _ = (Gt = y.state.editing) == null ? void 0 : Gt.line;
2430
2430
  ne(() => {
2431
2431
  const x = e.hook;
2432
2432
  !x || _ === void 0 || _ === Ce || x.rows.some((K) => at(x.rowKey(K)) === _) || y.setState((K) => ({ ...K, editing: null }));
@@ -2466,10 +2466,10 @@ function Mi({ registry: e, props: t }) {
2466
2466
  (Se == null ? void 0 : Se.cells.length) === K.widths.length && Array.from(Se.cells).forEach((U, ke) => U.style.width = `${K.widths[ke]}px`);
2467
2467
  });
2468
2468
  const A = e.hook && !e.hook.companion.virtual ? e.hook.publicSnapshot : null;
2469
- li(p, A ? `${A.grouping.join("|")}#${A.folded.join("|")}` : "");
2469
+ ci(p, A ? `${A.grouping.join("|")}#${A.folded.join("|")}` : "");
2470
2470
  const C = e.hook;
2471
2471
  if (!C) return null;
2472
- const T = C.publicSnapshot, F = e.projection(), V = e.rowHeader(), P = Mn(e), $ = e.detail, L = e.hasRowActions() ? e.actions.ordered() : [], D = C.companion.virtual, Q = T.grouping, X = Q.length > 0 ? F.visibleLines : void 0, ae = X ? e.groupingEntries(C.rows) : [], pe = (x) => ae.find((K) => K.spec.id === x), ee = X && Q.length > 1 ? pe(Q.at(-1)) : void 0, w = X ? P.filter((x) => !Q.includes(x.spec.id)) : P, N = (n ? 1 : 0) + ($ ? 1 : 0), M = N + (ee ? 1 : 0), B = u && t.editMode === "row", q = u && (B || t.onRowAdd !== void 0 || t.onRowDelete !== void 0), Y = L.length > 0 || q, z = M + w.length + (Y ? 1 : 0), se = e.pins(), xe = w.filter((x) => se[x.spec.id] === "start").length, Ne = w.filter((x) => se[x.spec.id] === "end").length, te = ee !== void 0 && se[ee.spec.id] === "start", ge = ((Ht = y.state.editing) == null ? void 0 : Ht.row) === !0, Ae = L.length > 0 || t.onRowDelete !== void 0 || ge, E = {
2472
+ const T = C.publicSnapshot, F = e.projection(), V = e.rowHeader(), P = Mn(e), $ = e.detail, L = e.hasRowActions() ? e.actions.ordered() : [], D = C.companion.virtual, Q = T.grouping, X = Q.length > 0 ? F.visibleLines : void 0, ae = X ? e.groupingEntries(C.rows) : [], pe = (x) => ae.find((K) => K.spec.id === x), ee = X && Q.length > 1 ? pe(Q.at(-1)) : void 0, w = X ? P.filter((x) => !Q.includes(x.spec.id)) : P, N = (n ? 1 : 0) + ($ ? 1 : 0), M = N + (ee ? 1 : 0), B = u && t.editMode === "row", q = u && (B || t.onRowAdd !== void 0 || t.onRowDelete !== void 0), Y = L.length > 0 || q, z = M + w.length + (Y ? 1 : 0), re = e.pins(), xe = w.filter((x) => re[x.spec.id] === "start").length, Ne = w.filter((x) => re[x.spec.id] === "end").length, te = ee !== void 0 && re[ee.spec.id] === "start", ge = ((Ht = y.state.editing) == null ? void 0 : Ht.row) === !0, Ae = L.length > 0 || t.onRowDelete !== void 0 || ge, E = {
2473
2473
  start: xe > 0 || te ? M + xe : 0,
2474
2474
  end: Ne > 0 ? Ne + (Y ? 1 : 0) : Y && Ae ? 1 : 0,
2475
2475
  count: z
@@ -2477,7 +2477,7 @@ function Mi({ registry: e, props: t }) {
2477
2477
  start: k.start ? E.start : 0,
2478
2478
  end: k.end || ge && q ? E.end : 0,
2479
2479
  count: z
2480
- }, H = (x, K = x) => Bt(G, x, K), le = F.visible, ue = !i && !T.manual && w.some((x) => x.spec.aggregate), Ze = T.search !== "" || Object.keys(T.filter).length > 0, Fe = u ? ui({
2480
+ }, H = (x, K = x) => Bt(G, x, K), le = F.visible, ue = !i && !T.manual && w.some((x) => x.spec.aggregate), Ze = T.search !== "" || Object.keys(T.filter).length > 0, Fe = u ? fi({
2481
2481
  layout: { controls: N, span: ee !== void 0, aggregates: w.map((x) => x.spec.aggregate !== void 0), actions: Y, blocks: G },
2482
2482
  body: i ? { rows: [] } : X ? { lines: D ? F.lines : X } : { rows: D ? F.filtered : le },
2483
2483
  rowKey: C.rowKey,
@@ -2491,7 +2491,7 @@ function Mi({ registry: e, props: t }) {
2491
2491
  ...ee ? ["#span"] : [],
2492
2492
  ...w.map((x) => x.spec.id),
2493
2493
  ...Y ? ["#actions"] : []
2494
- ], I = u ? Ci({
2494
+ ], I = u ? Ni({
2495
2495
  grid: y,
2496
2496
  lines: Fe,
2497
2497
  ids: W,
@@ -2559,7 +2559,7 @@ function Mi({ registry: e, props: t }) {
2559
2559
  let we, Be = null;
2560
2560
  if (i)
2561
2561
  we = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c(
2562
- Vi,
2562
+ $i,
2563
2563
  {
2564
2564
  columns: z,
2565
2565
  rows: T.manual ? le.length || T.pageSize : void 0,
@@ -2572,7 +2572,7 @@ function Mi({ registry: e, props: t }) {
2572
2572
  else if (F.filtered.length === 0)
2573
2573
  we = Be = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c("tr", { "data-grid-line": me("empty"), children: /* @__PURE__ */ c("td", { colSpan: z, className: f.emptyCell, children: /* @__PURE__ */ c("div", { className: f.empty, children: (T.manual || C.admitted.length > 0) && Ze ? /* @__PURE__ */ R(de, { children: [
2574
2574
  /* @__PURE__ */ c("p", { className: f.emptyTitle, children: m.nothingMatchesFilters }),
2575
- /* @__PURE__ */ c(re, { size: "sm", variant: "ghost", onClick: () => Ln(T), children: m.resetAll })
2575
+ /* @__PURE__ */ c(se, { size: "sm", variant: "ghost", onClick: () => Ln(T), children: m.resetAll })
2576
2576
  ] }) : l ?? /* @__PURE__ */ c("p", { className: f.emptyTitle, children: m.noEntries }) }) }) }) });
2577
2577
  else if (X) {
2578
2578
  const x = D ? Sn(X).map((U) => U.kind === "folded" || !U.continued ? U : { ...U, continued: !1 }) : X, K = x.length - X.length, Se = D && D.from > 0 ? D.fillerBefore / D.from : 0, _e = (U, ke) => {
@@ -2696,13 +2696,13 @@ function Mi({ registry: e, props: t }) {
2696
2696
  /* @__PURE__ */ c(Ge, { children: m.rowActions }),
2697
2697
  q && /* @__PURE__ */ R("span", { className: f.reserve, "aria-hidden": "true", children: [
2698
2698
  (B || t.onRowAdd) && /* @__PURE__ */ R("span", { className: j(f.actions, f.decision), children: [
2699
- /* @__PURE__ */ c(re, { tabIndex: -1, size: "sm", children: m.saveRow }),
2700
- /* @__PURE__ */ c(re, { tabIndex: -1, size: "sm", children: m.discardRow })
2699
+ /* @__PURE__ */ c(se, { tabIndex: -1, size: "sm", children: m.saveRow }),
2700
+ /* @__PURE__ */ c(se, { tabIndex: -1, size: "sm", children: m.discardRow })
2701
2701
  ] }),
2702
2702
  t.onRowDelete && /* @__PURE__ */ R("span", { className: j(f.actions, f.decision), children: [
2703
2703
  /* @__PURE__ */ c("span", { className: f.deleteAsk, children: m.deleteRowAsk }),
2704
- /* @__PURE__ */ c(re, { tabIndex: -1, size: "sm", children: m.deleteRow }),
2705
- /* @__PURE__ */ c(re, { tabIndex: -1, size: "sm", children: m.keepRow })
2704
+ /* @__PURE__ */ c(se, { tabIndex: -1, size: "sm", children: m.deleteRow }),
2705
+ /* @__PURE__ */ c(se, { tabIndex: -1, size: "sm", children: m.keepRow })
2706
2706
  ] })
2707
2707
  ] })
2708
2708
  ]
@@ -2717,7 +2717,7 @@ function Mi({ registry: e, props: t }) {
2717
2717
  Array.from({ length: N }, (x, K) => /* @__PURE__ */ c("td", { className: j(f.td, f.control, H(K).className), style: H(K).style }, K)),
2718
2718
  ee && /* @__PURE__ */ c("td", { className: j(f.td, H(N).className), style: H(N).style }),
2719
2719
  w.map((x, K) => /* @__PURE__ */ c(
2720
- Ii,
2720
+ Bi,
2721
2721
  {
2722
2722
  entry: x,
2723
2723
  rows: F.filtered,
@@ -2732,19 +2732,19 @@ function Mi({ registry: e, props: t }) {
2732
2732
  ]
2733
2733
  }
2734
2734
  ),
2735
- we === Be && /* @__PURE__ */ c(Fi, { table: p }),
2736
- /* @__PURE__ */ c(Di, { table: p, blocks: G }),
2735
+ we === Be && /* @__PURE__ */ c(Di, { table: p }),
2736
+ /* @__PURE__ */ c(Ei, { table: p, blocks: G }),
2737
2737
  /* @__PURE__ */ c(
2738
- Li,
2738
+ Fi,
2739
2739
  {
2740
2740
  table: p,
2741
2741
  blocks: E,
2742
2742
  onSticking: (x) => O((K) => K.start === x.start && K.end === x.end ? K : x),
2743
- pinnedKeys: w.filter((x) => se[x.spec.id]).map((x) => x.key).join("|")
2743
+ pinnedKeys: w.filter((x) => re[x.spec.id]).map((x) => x.key).join("|")
2744
2744
  }
2745
2745
  ),
2746
2746
  u && /* @__PURE__ */ c(
2747
- _i,
2747
+ ki,
2748
2748
  {
2749
2749
  table: p,
2750
2750
  grid: y,
@@ -2760,7 +2760,7 @@ function Mi({ registry: e, props: t }) {
2760
2760
  e.rowAdding && !e.showsToolbar() && /* @__PURE__ */ c("div", { className: f.newRowBar, children: /* @__PURE__ */ c(Fn, { registry: e }) })
2761
2761
  ] });
2762
2762
  }
2763
- function Li({
2763
+ function Fi({
2764
2764
  table: e,
2765
2765
  blocks: t,
2766
2766
  onSticking: n,
@@ -2784,7 +2784,7 @@ function Li({
2784
2784
  a.current.key !== v && (a.current = { key: v, sticking: a.current.sticking });
2785
2785
  const h = a.current;
2786
2786
  h.sticking.start && (h.start = u), h.sticking.end && (h.end = m);
2787
- const b = Co(h.start ?? u, h.end ?? m, d.clientWidth);
2787
+ const b = No(h.start ?? u, h.end ?? m, d.clientWidth);
2788
2788
  h.sticking = b, n(b), b.start || (u = 0), b.end || (m = 0), i.style.setProperty("--u-table-pin-start", `${u}px`), i.style.setProperty("--u-table-pin-end", `${m}px`), u && d.style.setProperty("scroll-padding-left", `${u}px`), m && d.style.setProperty("scroll-padding-right", `${m}px`), Gn(d);
2789
2789
  };
2790
2790
  return ne(l), Je(() => {
@@ -2796,7 +2796,7 @@ function Li({
2796
2796
  return i.parentElement && d.observe(i.parentElement), () => d.disconnect();
2797
2797
  }, [e, r, s, t.count, o]), null;
2798
2798
  }
2799
- function Fi({ table: e }) {
2799
+ function Di({ table: e }) {
2800
2800
  return ne(() => {
2801
2801
  var r;
2802
2802
  const t = (r = e.current) == null ? void 0 : r.parentElement;
@@ -2807,7 +2807,7 @@ function Fi({ table: e }) {
2807
2807
  return o.observe(t), () => o.disconnect();
2808
2808
  }, [e]), null;
2809
2809
  }
2810
- function Di({ table: e, blocks: t }) {
2810
+ function Ei({ table: e, blocks: t }) {
2811
2811
  const n = ie(t);
2812
2812
  return ne(() => {
2813
2813
  var r;
@@ -2910,7 +2910,7 @@ function an({
2910
2910
  children: [
2911
2911
  _ ? /* @__PURE__ */ R("span", { className: f.thFlex, children: [
2912
2912
  k,
2913
- /* @__PURE__ */ c(Gs, { entry: e, registry: t, hook: n })
2913
+ /* @__PURE__ */ c(Hs, { entry: e, registry: t, hook: n })
2914
2914
  ] }) : k,
2915
2915
  r.resizable && /* @__PURE__ */ c(
2916
2916
  "span",
@@ -2951,7 +2951,7 @@ function ln({
2951
2951
  fresh: O = !1
2952
2952
  }) {
2953
2953
  var N;
2954
- const _ = Ee(Hn), S = r.publicSnapshot, A = O ? Ce : r.rowKey(e), C = O ? h.newRow : Oi(e, a, r, v, h), T = O ? Ce : at(A), F = (N = Ee(Ke)) == null ? void 0 : N.editing, V = (F == null ? void 0 : F.row) === !0 && F.line === T, P = o.detail, $ = !O && P !== null && S.expanded.includes(A), L = `${m}-detail-${t}`, { className: D, ...Q } = (u == null ? void 0 : u(e)) ?? {}, X = n !== void 0, ae = b ? b.span ?? b.parents.at(-1) : void 0, pe = (l ? 1 : 0) + (P ? 1 : 0), ee = pe + (p ? 1 : 0), w = (M) => Bt(d, M);
2954
+ const _ = Ee(Hn), S = r.publicSnapshot, A = O ? Ce : r.rowKey(e), C = O ? h.newRow : Ti(e, a, r, v, h), T = O ? Ce : at(A), F = (N = Ee(Ke)) == null ? void 0 : N.editing, V = (F == null ? void 0 : F.row) === !0 && F.line === T, P = o.detail, $ = !O && P !== null && S.expanded.includes(A), L = `${m}-detail-${t}`, { className: D, ...Q } = (u == null ? void 0 : u(e)) ?? {}, X = n !== void 0, ae = b ? b.span ?? b.parents.at(-1) : void 0, pe = (l ? 1 : 0) + (P ? 1 : 0), ee = pe + (p ? 1 : 0), w = (M) => Bt(d, M);
2955
2955
  return /* @__PURE__ */ R(de, { children: [
2956
2956
  /* @__PURE__ */ R(
2957
2957
  "tr",
@@ -2995,7 +2995,7 @@ function ln({
2995
2995
  }
2996
2996
  ) }),
2997
2997
  b && b.span && /* @__PURE__ */ c(
2998
- pi,
2998
+ mi,
2999
2999
  {
3000
3000
  line: { ...b, span: b.span },
3001
3001
  entry: p,
@@ -3007,7 +3007,7 @@ function ln({
3007
3007
  }
3008
3008
  ),
3009
3009
  s.map((M, B) => /* @__PURE__ */ c(
3010
- Pi,
3010
+ Ii,
3011
3011
  {
3012
3012
  entry: M,
3013
3013
  row: e,
@@ -3021,7 +3021,7 @@ function ln({
3021
3021
  M.key
3022
3022
  )),
3023
3023
  k && /* @__PURE__ */ c("td", { className: j(f.td, f.actionsCell, w(g - 1).className, V && f.editing), style: w(g - 1).style, children: V ? /* @__PURE__ */ R(de, { children: [
3024
- /* @__PURE__ */ c(zi, { name: C, wording: h }),
3024
+ /* @__PURE__ */ c(Vi, { name: C, wording: h }),
3025
3025
  /* @__PURE__ */ c("span", { className: f.held, "aria-hidden": "true", children: /* @__PURE__ */ c(cn, { actions: O ? [] : i, row: e, name: C, wording: h, line: T }) })
3026
3026
  ] }) : /* @__PURE__ */ c(cn, { actions: O ? [] : i, row: e, name: C, wording: h, line: T }) })
3027
3027
  ]
@@ -3030,8 +3030,8 @@ function ln({
3030
3030
  $ && P && /* @__PURE__ */ c("tr", { id: L, className: f.detailRow, "data-group": ae == null ? void 0 : ae.path, "data-grid-line": y ? `detail:${A}` : void 0, children: /* @__PURE__ */ c("td", { colSpan: g, className: f.detailCell, children: P.presentation(e) }) })
3031
3031
  ] });
3032
3032
  }
3033
- const Ei = 24;
3034
- function Pi({
3033
+ const Pi = 24;
3034
+ function Ii({
3035
3035
  entry: e,
3036
3036
  row: t,
3037
3037
  kind: n,
@@ -3041,10 +3041,10 @@ function Pi({
3041
3041
  line: a,
3042
3042
  rowName: l
3043
3043
  }) {
3044
- const { spec: i } = e, d = e.read(t), g = Mt(n, i.rightAligned), u = vi(a, i.id), v = !(Ee(Ke) !== null) || i.edit === void 0 ? void 0 : i.edit === "text" || i.edit === "number" ? "type" : "pick";
3044
+ const { spec: i } = e, d = e.read(t), g = Mt(n, i.rightAligned), u = yi(a, i.id), v = !(Ee(Ke) !== null) || i.edit === void 0 ? void 0 : i.edit === "text" || i.edit === "number" ? "type" : "pick";
3045
3045
  let h;
3046
3046
  fe(d) ? h = /* @__PURE__ */ c(En, { wording: s }) : i.presentation ? h = i.presentation(d, t) : h = He(d, i.format, r, s);
3047
- const b = typeof h == "string" && h.length <= Ei && !/\s/.test(h), p = i.rowHeader ? "th" : "td";
3047
+ const b = typeof h == "string" && h.length <= Pi && !/\s/.test(h), p = i.rowHeader ? "th" : "td";
3048
3048
  return /* @__PURE__ */ c(
3049
3049
  p,
3050
3050
  {
@@ -3053,13 +3053,13 @@ function Pi({
3053
3053
  style: o.style,
3054
3054
  "data-edit": v,
3055
3055
  children: u ? /* @__PURE__ */ R(de, { children: [
3056
- /* @__PURE__ */ c(xi, { entry: e, row: t, rowName: l, grid: u }),
3056
+ /* @__PURE__ */ c(Ai, { entry: e, row: t, rowName: l, grid: u }),
3057
3057
  /* @__PURE__ */ c("span", { className: f.editingValue, "aria-hidden": "true", children: h })
3058
3058
  ] }) : h
3059
3059
  }
3060
3060
  );
3061
3061
  }
3062
- function Ii({
3062
+ function Bi({
3063
3063
  entry: e,
3064
3064
  rows: t,
3065
3065
  formats: n,
@@ -3070,7 +3070,7 @@ function Ii({
3070
3070
  const s = typeof e.spec.aggregate == "function" ? "own" : e.spec.aggregate;
3071
3071
  return /* @__PURE__ */ c("td", { className: j(f.td, Pn(e, t) && f.numeric, r.className), style: r.style, "data-footer": s, children: /* @__PURE__ */ c(St, { entry: e, rows: t, formats: n, wording: o, signed: !0 }) });
3072
3072
  }
3073
- const Bi = 2;
3073
+ const zi = 2;
3074
3074
  function cn({
3075
3075
  actions: e,
3076
3076
  row: t,
@@ -3090,14 +3090,14 @@ function cn({
3090
3090
  y(p.bulk ? [t] : t);
3091
3091
  }, h = l && (i ? /* @__PURE__ */ R(de, { children: [
3092
3092
  /* @__PURE__ */ c("span", { className: f.deleteAsk, children: o.deleteRowAsk }),
3093
- /* @__PURE__ */ c(re, { className: f.toned, size: "sm", variant: "danger", "aria-label": o.rowAction(o.deleteRow, n), onClick: () => {
3093
+ /* @__PURE__ */ c(se, { className: f.toned, size: "sm", variant: "danger", "aria-label": o.rowAction(o.deleteRow, n), onClick: () => {
3094
3094
  d(!1), l(t);
3095
3095
  }, children: o.deleteRow }),
3096
- /* @__PURE__ */ c(re, { ref: m, size: "sm", variant: "ghost", "aria-label": o.rowAction(o.keepRow, n), onClick: () => d(!1), children: o.keepRow })
3097
- ] }) : /* @__PURE__ */ c(re, { ref: u, size: "sm", variant: "ghost", "aria-label": o.rowAction(o.deleteRow, n), onClick: () => !a && d(!0), children: o.deleteRow }));
3098
- return e.length <= Bi ? /* @__PURE__ */ R("div", { className: j(f.actions, i && f.decision), children: [
3096
+ /* @__PURE__ */ c(se, { ref: m, size: "sm", variant: "ghost", "aria-label": o.rowAction(o.keepRow, n), onClick: () => d(!1), children: o.keepRow })
3097
+ ] }) : /* @__PURE__ */ c(se, { ref: u, size: "sm", variant: "ghost", "aria-label": o.rowAction(o.deleteRow, n), onClick: () => !a && d(!0), children: o.deleteRow }));
3098
+ return e.length <= zi ? /* @__PURE__ */ R("div", { className: j(f.actions, i && f.decision), children: [
3099
3099
  !i && e.map(({ key: p, spec: y }) => /* @__PURE__ */ c(
3100
- re,
3100
+ se,
3101
3101
  {
3102
3102
  size: "sm",
3103
3103
  variant: "ghost",
@@ -3113,19 +3113,19 @@ function cn({
3113
3113
  wn,
3114
3114
  {
3115
3115
  align: "end",
3116
- trigger: /* @__PURE__ */ c(re, { size: "sm", variant: "ghost", "aria-label": o.rowActionsMenu(n), children: "⋯" }),
3116
+ trigger: /* @__PURE__ */ c(eo, { size: "sm", variant: "ghost", "aria-label": o.rowActionsMenu(n), children: "⋯" }),
3117
3117
  children: e.map(({ key: p, spec: y }) => /* @__PURE__ */ c(ot, { tone: y.tone, onSelect: () => v(y), children: y.label }, p))
3118
3118
  }
3119
3119
  ),
3120
3120
  h
3121
3121
  ] });
3122
3122
  }
3123
- function zi({ name: e, wording: t }) {
3123
+ function Vi({ name: e, wording: t }) {
3124
3124
  var r;
3125
3125
  const n = Ee(Ke), o = ie(null);
3126
3126
  return /* @__PURE__ */ R("div", { ref: o, className: j(f.actions, f.decision, f.draftButtons), children: [
3127
- /* @__PURE__ */ c(re, { className: f.toned, size: "sm", variant: "primary", "aria-label": t.rowAction(t.saveRow, e), onClick: n.save, children: t.saveRow }),
3128
- /* @__PURE__ */ c(re, { size: "sm", variant: "ghost", "aria-label": t.rowAction(t.discardRow, e), onClick: n.discard, children: t.discardRow }),
3127
+ /* @__PURE__ */ c(se, { className: f.toned, size: "sm", variant: "primary", "aria-label": t.rowAction(t.saveRow, e), onClick: n.save, children: t.saveRow }),
3128
+ /* @__PURE__ */ c(se, { size: "sm", variant: "ghost", "aria-label": t.rowAction(t.discardRow, e), onClick: n.discard, children: t.discardRow }),
3129
3129
  /* @__PURE__ */ c(
3130
3130
  st,
3131
3131
  {
@@ -3141,7 +3141,7 @@ function zi({ name: e, wording: t }) {
3141
3141
  )
3142
3142
  ] });
3143
3143
  }
3144
- function Vi({ columns: e, rightAligned: t = [], rows: n = 4 }) {
3144
+ function $i({ columns: e, rightAligned: t = [], rows: n = 4 }) {
3145
3145
  const o = [72, 48, 60, 40, 56, 64];
3146
3146
  return /* @__PURE__ */ c(de, { children: Array.from({ length: n }, (r, s) => /* @__PURE__ */ c("tr", { "aria-hidden": "true", children: Array.from({ length: e }, (a, l) => /* @__PURE__ */ c("td", { className: j(f.td, t[l] && f.numeric), children: /* @__PURE__ */ c("span", { className: f.skeleton, style: { width: `${o[(s + l) % o.length]}%` } }) }, l)) }, s)) });
3147
3147
  }
@@ -3184,21 +3184,21 @@ function un({
3184
3184
  }
3185
3185
  );
3186
3186
  }
3187
- const $i = "_verdict_1mxfd_6", Gi = "_glyph_1mxfd_13", Hi = "_value_1mxfd_23", Ki = "_excess_1mxfd_28", nt = {
3188
- verdict: $i,
3189
- glyph: Gi,
3190
- value: Hi,
3191
- excess: Ki
3192
- }, fn = (e, t, n) => t === "percent" ? n.percent(e) : t === "count" ? n.count(e) : n.number(e, typeof t == "object" ? t.decimals : void 0), ji = (e, t) => e === "alarm" ? t.verdictAlarm : e === "warning" ? t.verdictWarning : e === "unknown" ? t.verdictUnknown : t.verdictOk, Wi = {
3187
+ const Gi = "_verdict_1mxfd_6", Hi = "_glyph_1mxfd_13", Ki = "_value_1mxfd_23", ji = "_excess_1mxfd_28", nt = {
3188
+ verdict: Gi,
3189
+ glyph: Hi,
3190
+ value: Ki,
3191
+ excess: ji
3192
+ }, fn = (e, t, n) => t === "percent" ? n.percent(e) : t === "count" ? n.count(e) : n.number(e, typeof t == "object" ? t.decimals : void 0), Wi = (e, t) => e === "alarm" ? t.verdictAlarm : e === "warning" ? t.verdictWarning : e === "unknown" ? t.verdictUnknown : t.verdictOk, qi = {
3193
3193
  ok: "✓",
3194
3194
  unknown: "?",
3195
3195
  warning: "▲",
3196
3196
  alarm: "■"
3197
3197
  };
3198
- function qi({ reading: e, format: t }) {
3199
- const n = Re(), o = he(), { measured: r, assessment: s } = e, a = ji(s.verdict, o);
3198
+ function Ui({ reading: e, format: t }) {
3199
+ const n = Re(), o = he(), { measured: r, assessment: s } = e, a = Wi(s.verdict, o);
3200
3200
  return /* @__PURE__ */ R("span", { className: nt.verdict, "data-verdict": s.verdict, title: a, children: [
3201
- /* @__PURE__ */ c("span", { "aria-hidden": "true", className: nt.glyph, children: Wi[s.verdict] }),
3201
+ /* @__PURE__ */ c("span", { "aria-hidden": "true", className: nt.glyph, children: qi[s.verdict] }),
3202
3202
  /* @__PURE__ */ c("span", { className: nt.value, children: r === null ? o.statAbsentValue : fn(r, t, n) }),
3203
3203
  s.excess !== void 0 && /* @__PURE__ */ R("span", { className: nt.excess, children: [
3204
3204
  "+",
@@ -3207,11 +3207,11 @@ function qi({ reading: e, format: t }) {
3207
3207
  /* @__PURE__ */ c(Ge, { children: a })
3208
3208
  ] });
3209
3209
  }
3210
- const Ui = (e) => e.measured, Yi = (e) => e.reduce(
3210
+ const Yi = (e) => e.measured, Ji = (e) => e.reduce(
3211
3211
  (t, n) => !t || wt(n.assessment.verdict) > wt(t.assessment.verdict) ? n : t,
3212
3212
  void 0
3213
3213
  );
3214
- function Ji(e) {
3214
+ function Xi(e) {
3215
3215
  return function({ id: n, value: o, label: r, limits: s, format: a, sortBy: l = "verdict", width: i, resizable: d, pin: g, aggregate: u }) {
3216
3216
  const m = JSON.stringify(s), v = oe(() => {
3217
3217
  const b = JSON.parse(m);
@@ -3219,7 +3219,7 @@ function Ji(e) {
3219
3219
  const y = typeof o == "string" ? p == null ? void 0 : p[o] : o(p);
3220
3220
  return {
3221
3221
  measured: typeof y == "number" && Number.isFinite(y) ? y : null,
3222
- assessment: eo(y, b)
3222
+ assessment: to(y, b)
3223
3223
  };
3224
3224
  };
3225
3225
  }, [o, m]), h = be(
@@ -3237,9 +3237,9 @@ function Ji(e) {
3237
3237
  pin: g,
3238
3238
  value: v,
3239
3239
  sortValue: h,
3240
- exportValue: Ui,
3241
- aggregate: u === "worst" ? Yi : void 0,
3242
- children: (b) => /* @__PURE__ */ c(qi, { reading: b, format: a })
3240
+ exportValue: Yi,
3241
+ aggregate: u === "worst" ? Ji : void 0,
3242
+ children: (b) => /* @__PURE__ */ c(Ui, { reading: b, format: a })
3243
3243
  }
3244
3244
  );
3245
3245
  };
@@ -3254,7 +3254,7 @@ function jn(e, t, n) {
3254
3254
  const s = xn(r, n);
3255
3255
  return s === "foreign" && Kn(t), s === "effective";
3256
3256
  }
3257
- function Xi(e, t) {
3257
+ function Qi(e, t) {
3258
3258
  if (e.length === 0) return;
3259
3259
  let n = -1, o = [];
3260
3260
  return (r) => {
@@ -3267,17 +3267,17 @@ function Xi(e, t) {
3267
3267
  }
3268
3268
  return o.every(({ entry: s, condition: a }) => {
3269
3269
  const l = Ie(s.spec.filter);
3270
- return !l || xs(l, s.read(r), a);
3270
+ return !l || As(l, s.read(r), a);
3271
3271
  });
3272
3272
  };
3273
3273
  }
3274
- function Qi(e, t) {
3274
+ function Zi(e, t) {
3275
3275
  const n = oe(() => t ? e.filter((a) => t(a)) : e, [e, t]), [o, r] = Z(() => ({ source: e, result: n }));
3276
3276
  if (!t) return e;
3277
3277
  const s = o.source === e && (o.result === n || o.result.length === n.length && o.result.every((a, l) => a === n[l]));
3278
3278
  return s || r({ source: e, result: n }), s ? o.result : n;
3279
3279
  }
3280
- function Zi(e, t) {
3280
+ function ea(e, t) {
3281
3281
  var l, i, d, g, u, m;
3282
3282
  if (t.size === 0) return e;
3283
3283
  const n = (l = e.sort) == null ? void 0 : l.filter((v) => t.has(v.column)), o = (i = e.hidden) == null ? void 0 : i.filter((v) => t.has(v)), r = (d = e.order) == null ? void 0 : d.filter((v) => t.has(v)), s = e.widths ? Object.fromEntries(Object.entries(e.widths).filter(([v]) => t.has(v))) : void 0;
@@ -3291,7 +3291,7 @@ function Zi(e, t) {
3291
3291
  ...s && Object.keys(s).length ? { widths: s } : {}
3292
3292
  };
3293
3293
  }
3294
- const ht = (e) => e === void 0 ? [] : typeof e == "string" ? [e] : [...e], ea = (e, t) => e.length === t.length && e.every((n, o) => n === t[o]);
3294
+ const ht = (e) => e === void 0 ? [] : typeof e == "string" ? [e] : [...e], ta = (e, t) => e.length === t.length && e.every((n, o) => n === t[o]);
3295
3295
  function gn(e) {
3296
3296
  const t = [], n = (o) => {
3297
3297
  for (const r of o)
@@ -3299,28 +3299,28 @@ function gn(e) {
3299
3299
  };
3300
3300
  return n(e ?? []), t;
3301
3301
  }
3302
- const ta = (e, t) => e.size === t.size && [...e].every((n) => t.has(n));
3303
- function na(e, t) {
3302
+ const na = (e, t) => e.size === t.size && [...e].every((n) => t.has(n));
3303
+ function oa(e, t) {
3304
3304
  const n = {};
3305
3305
  for (const o of e) o.width !== void 0 && (n[o.id] = o.width);
3306
3306
  return { ...n, ...t };
3307
3307
  }
3308
- function oa(e, t) {
3308
+ function ra(e, t) {
3309
3309
  var Pe;
3310
- const [n] = Z(() => new Bs()), [o] = Z(() => {
3311
- const W = Ti(n);
3312
- return { ...W, VerdictColumn: Ji(W.Column) };
3310
+ const [n] = Z(() => new zs()), [o] = Z(() => {
3311
+ const W = Ri(n);
3312
+ return { ...W, VerdictColumn: Xi(W.Column) };
3313
3313
  });
3314
3314
  rt(n.subscribe, n.structureVersion, n.structureVersion);
3315
3315
  const r = Re(), s = e, a = n.modelColumns(s, r), [l] = Z(() => t.initialView), i = t.manual === !0, d = t.manual ? t.rowCount : 0, g = oe(() => i ? { rowCount: d } : void 0, [i, d]);
3316
3316
  n.setManual(i), i && ((t.preFilter ?? t.filter) && ve("manual-prefilter", "`preFilter` is passed over in manual mode: the server decides which rows the table has."), t.virtual && ve("manual-virtual", "`virtual` is passed over in manual mode: the table pages instead."), (t.defaultGrouping !== void 0 || (Pe = l == null ? void 0 : l.grouping) != null && Pe.length) && ve("manual-grouping", "A grouping is passed over in manual mode: the groups would be the page's, not the server's."));
3317
- const [u, m] = Z(() => Object.entries((l == null ? void 0 : l.conditions) ?? {})), v = oe(() => Xi(u, n), [u, n]), h = t.preFilter ?? t.filter, b = Qi(s, i ? void 0 : h), [p, y] = Z(
3317
+ const [u, m] = Z(() => Object.entries((l == null ? void 0 : l.conditions) ?? {})), v = oe(() => Qi(u, n), [u, n]), h = t.preFilter ?? t.filter, b = Zi(s, i ? void 0 : h), [p, y] = Z(
3318
3318
  () => l != null && l.grouping ? [...l.grouping] : ht(t.defaultGrouping)
3319
3319
  ), [k, O] = Z(() => (l == null ? void 0 : l.folded) ?? []), [_, S] = Z(() => l != null && l.pinned ? { ...l.pinned } : null), A = n.orderedColumns().length + n.groupKeys.entries.size > 0, C = i ? [] : A ? n.effectiveGrouping(p, s) : p.slice(0, Dt), T = C.join("|"), F = oe(() => new Set(k), [k]), V = C.length ? n.groupingModel(C, s) : null, P = oe(
3320
3320
  () => V && V.levels.length ? { ...V, folded: F, compareText: r.compareText } : void 0,
3321
3321
  // eslint-disable-next-line react-hooks/exhaustive-deps -- the model's identity carries the ids and the columns
3322
3322
  [V, F, r.compareText, T]
3323
- ), $ = t.rowKey, L = mo(b, a, {
3323
+ ), $ = t.rowKey, L = wo(b, a, {
3324
3324
  rowKey: $,
3325
3325
  pageSize: t.pageSize,
3326
3326
  defaultSort: t.defaultSort,
@@ -3355,27 +3355,27 @@ function oa(e, t) {
3355
3355
  },
3356
3356
  [n, D]
3357
3357
  ), X = new Set(n.orderedColumns().map((W) => W.spec.id)), [ae, pe] = Z(() => /* @__PURE__ */ new Set());
3358
- if (!ta(ae, X)) {
3358
+ if (!na(ae, X)) {
3359
3359
  const W = new Set([...ae].filter((I) => !X.has(I)));
3360
3360
  pe(X), u.some(([I]) => W.has(I)) && m((I) => I.filter(([me]) => !W.has(me)));
3361
3361
  }
3362
- const ee = X.size === 0 ? u : u.filter(([W, I]) => jn(n, W, I)), w = Zi(L.view, X), N = ee.length > 0 ? { ...w, conditions: Object.fromEntries(ee) } : w, M = X.size === 0 ? L.sort : L.sort.filter((W) => X.has(W.column)), B = i ? [] : A ? n.effectiveGrouping(ht(t.defaultGrouping), s) : ht(t.defaultGrouping), q = L.groups ? lo(L.groups, k) : A ? [] : [...k], Y = n.declaredPins(), z = _o(_, Y, X), se = {
3362
+ const ee = X.size === 0 ? u : u.filter(([W, I]) => jn(n, W, I)), w = ea(L.view, X), N = ee.length > 0 ? { ...w, conditions: Object.fromEntries(ee) } : w, M = X.size === 0 ? L.sort : L.sort.filter((W) => X.has(W.column)), B = i ? [] : A ? n.effectiveGrouping(ht(t.defaultGrouping), s) : ht(t.defaultGrouping), q = L.groups ? co(L.groups, k) : A ? [] : [...k], Y = n.declaredPins(), z = ko(_, Y, X), re = {
3363
3363
  ...N,
3364
- ...ea(C, B) ? {} : { grouping: C },
3364
+ ...ta(C, B) ? {} : { grouping: C },
3365
3365
  ...q.length ? { folded: q } : {},
3366
3366
  ...z ? { pinned: z } : {}
3367
- }, xe = (W, I) => S((me) => vo(me ?? n.declaredPins(), W, I)), Ne = (W) => {
3367
+ }, xe = (W, I) => S((me) => yo(me ?? n.declaredPins(), W, I)), Ne = (W) => {
3368
3368
  y([...W]), D(1);
3369
3369
  }, te = (W) => {
3370
3370
  gn(L.groups).includes(W) && (n.noteFocusBeforeFold(), O((I) => I.includes(W) ? I.filter((me) => me !== W) : [...I, W]));
3371
3371
  }, ge = !i && t.virtual !== void 0, Ae = n.paginates() || ge, E = t.selection ?? L.selection, G = {
3372
- ...se,
3372
+ ...re,
3373
3373
  search: L.search,
3374
3374
  conditions: Object.fromEntries(ee),
3375
3375
  sort: M,
3376
3376
  page: L.page,
3377
3377
  pageSize: L.pageSize
3378
- }, H = i ? No(G) : "", le = ie(null);
3378
+ }, H = i ? xo(G) : "", le = ie(null);
3379
3379
  Je(() => {
3380
3380
  var W;
3381
3381
  !i || le.current === H || (le.current = H, (W = t.onViewChange) == null || W.call(t, G));
@@ -3411,14 +3411,14 @@ function oa(e, t) {
3411
3411
  setOrder: L.setOrder,
3412
3412
  pinned: _ ?? Y,
3413
3413
  setPin: xe,
3414
- widths: na(a, L.widths),
3414
+ widths: oa(a, L.widths),
3415
3415
  setWidth: L.setWidth,
3416
3416
  expanded: L.expanded,
3417
3417
  toggleRow: L.toggleRow,
3418
3418
  filter: Object.fromEntries(ee),
3419
3419
  setFilter: Q,
3420
3420
  selection: E,
3421
- view: se,
3421
+ view: re,
3422
3422
  grouping: C,
3423
3423
  setGrouping: Ne,
3424
3424
  folded: q,
@@ -3429,7 +3429,7 @@ function oa(e, t) {
3429
3429
  unfoldAll: () => {
3430
3430
  n.noteFocusBeforeFold(), O([]);
3431
3431
  },
3432
- asCsv: () => Js(n),
3432
+ asCsv: () => Xs(n),
3433
3433
  virtual: ge,
3434
3434
  rowCount: i ? d : L.filtered.length,
3435
3435
  manual: i
@@ -3450,7 +3450,7 @@ function oa(e, t) {
3450
3450
  selectedRows: Ze
3451
3451
  }), { ...Fe, ...o };
3452
3452
  }
3453
- function Ua(e) {
3453
+ function Ya(e) {
3454
3454
  return e;
3455
3455
  }
3456
3456
  function Vt(e, t) {
@@ -3462,13 +3462,13 @@ function Vt(e, t) {
3462
3462
  };
3463
3463
  }, [e, t, n]);
3464
3464
  }
3465
- function Ya({ children: e, className: t, of: n }) {
3465
+ function Ja({ children: e, className: t, of: n }) {
3466
3466
  const o = Qe(n);
3467
3467
  Vt(o == null ? void 0 : o.registry, "toolbar");
3468
3468
  const r = o == null ? void 0 : o.registry;
3469
3469
  return /* @__PURE__ */ c(Dn, { registry: r ?? null, className: t, children: e });
3470
3470
  }
3471
- function Ja({ placeholder: e, "aria-label": t, className: n, of: o }) {
3471
+ function Xa({ placeholder: e, "aria-label": t, className: n, of: o }) {
3472
3472
  const r = Qe(o), s = he();
3473
3473
  if (Vt(r == null ? void 0 : r.registry, "search"), !r) return null;
3474
3474
  const { snapshot: a } = r;
@@ -3487,7 +3487,7 @@ function Ja({ placeholder: e, "aria-label": t, className: n, of: o }) {
3487
3487
  }
3488
3488
  );
3489
3489
  }
3490
- function Xa({ of: e }) {
3490
+ function Qa({ of: e }) {
3491
3491
  const t = Qe(e), n = he(), [o, r] = Z(!1), s = ie(null), a = ie(null), l = Te(), [i, d] = Z(null);
3492
3492
  if (ne(() => {
3493
3493
  var S;
@@ -3534,7 +3534,7 @@ function Xa({ of: e }) {
3534
3534
  };
3535
3535
  return /* @__PURE__ */ R(de, { children: [
3536
3536
  /* @__PURE__ */ c(
3537
- re,
3537
+ se,
3538
3538
  {
3539
3539
  ref: s,
3540
3540
  size: "sm",
@@ -3597,17 +3597,17 @@ function Xa({ of: e }) {
3597
3597
  y(k.id, _, "end")
3598
3598
  ] }, k.id);
3599
3599
  }) }),
3600
- /* @__PURE__ */ c(Qs, { registry: g, hook: m })
3600
+ /* @__PURE__ */ c(Zs, { registry: g, hook: m })
3601
3601
  ]
3602
3602
  }
3603
3603
  )
3604
3604
  ] });
3605
3605
  }
3606
- function Qa({ filename: e, onExport: t, of: n }) {
3606
+ function Za({ filename: e, onExport: t, of: n }) {
3607
3607
  const o = Qe(n), r = he();
3608
3608
  if (!o) return null;
3609
3609
  const { snapshot: s } = o;
3610
- return /* @__PURE__ */ c(re, { size: "sm", onClick: () => {
3610
+ return /* @__PURE__ */ c(se, { size: "sm", onClick: () => {
3611
3611
  const l = s.asCsv();
3612
3612
  if (t) {
3613
3613
  t(l);
@@ -3617,7 +3617,7 @@ function Qa({ filename: e, onExport: t, of: n }) {
3617
3617
  d.href = i, d.download = e ?? r.exportFileName, d.click(), setTimeout(() => URL.revokeObjectURL(i), 1e4);
3618
3618
  }, children: s.manual ? r.exportPageLabel : r.exportLabel });
3619
3619
  }
3620
- function Za({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
3620
+ function el({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
3621
3621
  const o = Qe(n), r = he(), s = Re();
3622
3622
  if (Vt(o == null ? void 0 : o.registry, "pagination"), !o || o.snapshot.virtual) return null;
3623
3623
  const { snapshot: a } = o, l = a.rowCount, i = e.includes(a.pageSize) ? e : [...e, a.pageSize].sort((g, u) => g - u), d = /* @__PURE__ */ R("nav", { "aria-label": r.pagination, className: j(f.pagination, t), children: [
@@ -3641,88 +3641,88 @@ function Za({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
3641
3641
  page: s.count(a.page),
3642
3642
  total: s.count(a.pageCount)
3643
3643
  }) }),
3644
- /* @__PURE__ */ c(re, { size: "sm", disabled: a.page <= 1, onClick: () => a.setPage(a.page - 1), children: r.previousPage }),
3645
- /* @__PURE__ */ c(re, { size: "sm", disabled: a.page >= a.pageCount, onClick: () => a.setPage(a.page + 1), children: r.nextPage })
3644
+ /* @__PURE__ */ c(se, { size: "sm", disabled: a.page <= 1, onClick: () => a.setPage(a.page - 1), children: r.previousPage }),
3645
+ /* @__PURE__ */ c(se, { size: "sm", disabled: a.page >= a.pageCount, onClick: () => a.setPage(a.page + 1), children: r.nextPage })
3646
3646
  ] })
3647
3647
  ] })
3648
3648
  ] });
3649
- return o.inside ? o.footerTarget ? oo(d, o.footerTarget) : null : d;
3649
+ return o.inside ? o.footerTarget ? ro(d, o.footerTarget) : null : d;
3650
3650
  }
3651
- const ra = ["high", "medium", "low"], sa = (e) => ra.indexOf(e), ia = (e) => e === "active-unacknowledged" || e === "active-acknowledged", ct = (e) => e === "active-acknowledged" || e === "resolved-acknowledged", aa = (e) => e === "resolved-acknowledged";
3652
- function la(e, t) {
3651
+ const sa = ["high", "medium", "low"], ia = (e) => sa.indexOf(e), aa = (e) => e === "active-unacknowledged" || e === "active-acknowledged", ct = (e) => e === "active-acknowledged" || e === "resolved-acknowledged", la = (e) => e === "resolved-acknowledged";
3652
+ function ca(e, t) {
3653
3653
  switch (t) {
3654
3654
  case "raised":
3655
3655
  return "active-unacknowledged";
3656
3656
  case "acknowledged":
3657
- return ia(e) ? "active-acknowledged" : "resolved-acknowledged";
3657
+ return aa(e) ? "active-acknowledged" : "resolved-acknowledged";
3658
3658
  case "resolved":
3659
3659
  return ct(e) ? "resolved-acknowledged" : "resolved-unacknowledged";
3660
3660
  }
3661
3661
  }
3662
- const ca = [
3662
+ const da = [
3663
3663
  "in-service",
3664
3664
  "snoozed",
3665
3665
  "suppressed",
3666
3666
  "disabled"
3667
3667
  ], Tt = (e) => e !== "in-service";
3668
- function da(e, t) {
3668
+ function ua(e, t) {
3669
3669
  return e.availability === "snoozed" ? t >= e.snooze.until ? "in-service" : "snoozed" : e.availability ?? "in-service";
3670
3670
  }
3671
- function el(e, t, n) {
3671
+ function tl(e, t, n) {
3672
3672
  return e.availability === "disabled" || e.availability === "suppressed" ? e : { ...e, availability: "snoozed", snooze: { until: t, by: n } };
3673
3673
  }
3674
- function tl(e) {
3674
+ function nl(e) {
3675
3675
  return e.availability !== "snoozed" ? e : { ...e, availability: "in-service", snooze: void 0 };
3676
3676
  }
3677
- function nl(e) {
3677
+ function ol(e) {
3678
3678
  return e.availability === "disabled" || e.availability === "suppressed" ? e : { ...e, availability: "disabled", snooze: void 0 };
3679
3679
  }
3680
- function ol(e) {
3680
+ function rl(e) {
3681
3681
  return e.availability !== "disabled" ? e : { ...e, availability: "in-service" };
3682
3682
  }
3683
- const rl = (e, t) => e.direction === "upper" ? t <= e.returnTo : t >= e.returnTo, $t = (e, t, n) => e > n - t && e <= n, sl = (e, t, n) => e.reduce((o, r) => o + ($t(r, t, n) ? 1 : 0), 0);
3684
- function ua(e, t, n) {
3683
+ const sl = (e, t) => e.direction === "upper" ? t <= e.returnTo : t >= e.returnTo, $t = (e, t, n) => e > n - t && e <= n, il = (e, t, n) => e.reduce((o, r) => o + ($t(r, t, n) ? 1 : 0), 0);
3684
+ function fa(e, t, n) {
3685
3685
  const o = /* @__PURE__ */ new Map();
3686
3686
  for (const r of e)
3687
3687
  $t(r.raised, t, n) && o.set(r.type, (o.get(r.type) ?? 0) + 1);
3688
3688
  return o;
3689
3689
  }
3690
- function fa(e) {
3690
+ function ga(e) {
3691
3691
  let t = Number.POSITIVE_INFINITY;
3692
3692
  for (const n of e) n < t && (t = n);
3693
3693
  return t;
3694
3694
  }
3695
- function ga(e) {
3695
+ function ha(e) {
3696
3696
  let t = Number.NEGATIVE_INFINITY;
3697
3697
  for (const n of e) n > t && (t = n);
3698
3698
  return t;
3699
3699
  }
3700
- function ha(e, t, n) {
3700
+ function pa(e, t, n) {
3701
3701
  const o = e.filter((s) => $t(s.raised, t.windowMs, n));
3702
3702
  if (o.length < t.atLeast) return null;
3703
3703
  const r = o.map((s) => s.raised);
3704
3704
  return {
3705
3705
  // No spread: a flood is the case with many elements, and an argument list
3706
3706
  // of that size blows the call stack at some point. A loop cannot.
3707
- from: fa(r),
3708
- to: ga(r),
3707
+ from: ga(r),
3708
+ to: ha(r),
3709
3709
  count: o.length,
3710
3710
  alarms: o.map((s) => s.id)
3711
3711
  };
3712
3712
  }
3713
- function pa(e, t) {
3713
+ function ma(e, t) {
3714
3714
  const n = new Set(t);
3715
3715
  return e.reduce(
3716
3716
  (o, r) => o + (n.has(r.id) && !ct(r.lifecycle) ? 1 : 0),
3717
3717
  0
3718
3718
  );
3719
3719
  }
3720
- function il(e, t, n) {
3720
+ function al(e, t, n) {
3721
3721
  const o = new Set(t);
3722
3722
  let r = 0;
3723
- return { alarms: e.map((a) => !o.has(a.id) || ct(a.lifecycle) ? a : (r += 1, { ...a, lifecycle: la(a.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
3723
+ return { alarms: e.map((a) => !o.has(a.id) || ct(a.lifecycle) ? a : (r += 1, { ...a, lifecycle: ca(a.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
3724
3724
  }
3725
- const ma = (e) => [
3725
+ const wa = (e) => [
3726
3726
  {
3727
3727
  id: "type",
3728
3728
  label: e.columnAlarm,
@@ -3733,7 +3733,7 @@ const ma = (e) => [
3733
3733
  { id: "lifecycle", label: e.columnLifecycleState, value: (t) => t.lifecycle, searchable: !0 },
3734
3734
  /* The rank, like the priority: the column exists for the first level of the
3735
3735
  order. */
3736
- { id: "availability", label: e.columnAvailability, value: (t) => ca.indexOf(t.availability) },
3736
+ { id: "availability", label: e.columnAvailability, value: (t) => da.indexOf(t.availability) },
3737
3737
  { id: "priority", label: e.columnPriority, value: (t) => t.rank },
3738
3738
  /* A column of its own instead of a glance at the lifecycle state: the second
3739
3739
  level of the order asks only about the acknowledgement and expressly not
@@ -3743,17 +3743,17 @@ const ma = (e) => [
3743
3743
  { id: "raised", label: e.columnRaised, value: (t) => t.alarm.raised },
3744
3744
  { id: "age", label: e.columnAge, value: (t) => t.age },
3745
3745
  { id: "frequency", label: e.columnFrequency, value: (t) => t.frequency }
3746
- ], wa = ma(to), ba = [
3746
+ ], ba = wa(no), va = [
3747
3747
  { column: "availability", direction: "asc" },
3748
3748
  { column: "priority", direction: "asc" },
3749
3749
  { column: "acknowledgement", direction: "asc" },
3750
3750
  { column: "raised", direction: "desc" }
3751
- ], va = (e) => ({
3751
+ ], ya = (e) => ({
3752
3752
  id: e,
3753
3753
  label: e,
3754
3754
  priority: "high"
3755
3755
  });
3756
- function al(e, t = {}) {
3756
+ function ll(e, t = {}) {
3757
3757
  const {
3758
3758
  alarms: n,
3759
3759
  types: o,
@@ -3761,17 +3761,17 @@ function al(e, t = {}) {
3761
3761
  chatter: s,
3762
3762
  flood: a,
3763
3763
  keepDone: l = !1,
3764
- columns: i = wa
3765
- } = e, d = new Map(o.map((b) => [b.id, b])), g = ua(n, (s == null ? void 0 : s.windowMs) ?? 1 / 0, r), u = a ? ha(n, a, r) : null, m = new Set((u == null ? void 0 : u.alarms) ?? []), v = n.filter((b) => l || !aa(b.lifecycle)).map((b) => {
3766
- const p = d.get(b.type) ?? va(b.type), y = g.get(b.type) ?? 0;
3764
+ columns: i = ba
3765
+ } = e, d = new Map(o.map((b) => [b.id, b])), g = fa(n, (s == null ? void 0 : s.windowMs) ?? 1 / 0, r), u = a ? pa(n, a, r) : null, m = new Set((u == null ? void 0 : u.alarms) ?? []), v = n.filter((b) => l || !la(b.lifecycle)).map((b) => {
3766
+ const p = d.get(b.type) ?? ya(b.type), y = g.get(b.type) ?? 0;
3767
3767
  return {
3768
3768
  id: b.id,
3769
3769
  alarm: b,
3770
3770
  type: p,
3771
3771
  lifecycle: b.lifecycle,
3772
- availability: da(b, r),
3772
+ availability: ua(b, r),
3773
3773
  priority: p.priority,
3774
- rank: sa(p.priority),
3774
+ rank: ia(p.priority),
3775
3775
  age: r - b.raised,
3776
3776
  duration: (b.resolved ?? r) - b.raised,
3777
3777
  frequency: y,
@@ -3780,7 +3780,7 @@ function al(e, t = {}) {
3780
3780
  };
3781
3781
  }), h = It(v, i, {
3782
3782
  ...t,
3783
- sort: t.sort === void 0 ? ba : t.sort
3783
+ sort: t.sort === void 0 ? va : t.sort
3784
3784
  });
3785
3785
  return {
3786
3786
  ...h,
@@ -3795,25 +3795,25 @@ function al(e, t = {}) {
3795
3795
  )
3796
3796
  };
3797
3797
  }
3798
- const ya = "_list_1t95e_4 _text_ocaqi_23", _a = "_bar_1t95e_12", ka = "_heading_1t95e_19", Sa = "_filler_1t95e_25", Ca = "_asOf_1t95e_29", Na = "_live_1t95e_46", xa = "_alarm_1t95e_54", Aa = "_label_1t95e_59", Oa = "_counter_1t95e_63", Ta = "_state_1t95e_70", Ra = "_lifecycle_1t95e_74", Ma = "_hidden_1t95e_80", La = "_hiddenLabel_1t95e_87", Fa = "_availability_1t95e_93", Da = "_empty_1t95e_97", Ea = "_row_1t95e_105", ce = {
3799
- list: ya,
3800
- bar: _a,
3801
- heading: ka,
3802
- filler: Sa,
3803
- asOf: Ca,
3804
- live: Na,
3805
- alarm: xa,
3806
- label: Aa,
3807
- counter: Oa,
3808
- state: Ta,
3809
- lifecycle: Ra,
3810
- hidden: Ma,
3811
- hiddenLabel: La,
3812
- availability: Fa,
3813
- empty: Da,
3814
- row: Ea
3798
+ const _a = "_list_1t95e_4 _text_ocaqi_23", ka = "_bar_1t95e_12", Sa = "_heading_1t95e_19", Ca = "_filler_1t95e_25", Na = "_asOf_1t95e_29", xa = "_live_1t95e_46", Aa = "_alarm_1t95e_54", Oa = "_label_1t95e_59", Ta = "_counter_1t95e_63", Ra = "_state_1t95e_70", Ma = "_lifecycle_1t95e_74", La = "_hidden_1t95e_80", Fa = "_hiddenLabel_1t95e_87", Da = "_availability_1t95e_93", Ea = "_empty_1t95e_97", Pa = "_row_1t95e_105", ce = {
3799
+ list: _a,
3800
+ bar: ka,
3801
+ heading: Sa,
3802
+ filler: Ca,
3803
+ asOf: Na,
3804
+ live: xa,
3805
+ alarm: Aa,
3806
+ label: Oa,
3807
+ counter: Ta,
3808
+ state: Ra,
3809
+ lifecycle: Ma,
3810
+ hidden: La,
3811
+ hiddenLabel: Fa,
3812
+ availability: Da,
3813
+ empty: Ea,
3814
+ row: Pa
3815
3815
  };
3816
- function Pa(e, t) {
3816
+ function Ia(e, t) {
3817
3817
  switch (e) {
3818
3818
  case "active-unacknowledged":
3819
3819
  return t.lifecycleActiveUnacknowledged;
@@ -3825,7 +3825,7 @@ function Pa(e, t) {
3825
3825
  return t.lifecycleResolvedAcknowledged;
3826
3826
  }
3827
3827
  }
3828
- function Ia(e, t, n) {
3828
+ function Ba(e, t, n) {
3829
3829
  switch (e.availability) {
3830
3830
  case "snoozed": {
3831
3831
  const o = e.alarm.snooze;
@@ -3841,26 +3841,26 @@ function Ia(e, t, n) {
3841
3841
  return null;
3842
3842
  }
3843
3843
  }
3844
- function Ba(e, t) {
3844
+ function za(e, t) {
3845
3845
  return e === "high" ? t.priorityHigh : e === "medium" ? t.priorityMedium : t.priorityLow;
3846
3846
  }
3847
- function za(e) {
3847
+ function Va(e) {
3848
3848
  return e === "high" ? "danger" : e === "medium" ? "warning" : "neutral";
3849
3849
  }
3850
- function Va(e, t) {
3850
+ function $a(e, t) {
3851
3851
  const n = Math.max(0, Math.floor(e / 6e4)), o = Math.floor(n / 60), r = n % 60, s = [];
3852
3852
  return o > 0 && s.push(t.hoursShort(o)), (o === 0 || r > 0) && s.push(t.minutesShort(r)), s.join(" ");
3853
3853
  }
3854
- function ll(e) {
3854
+ function cl(e) {
3855
3855
  const { asOf: t, freshness: n, ...o } = e;
3856
- return t === void 0 || n === void 0 ? /* @__PURE__ */ c(Wn, { ...o, freshness: null }) : /* @__PURE__ */ c($a, { ...o, asOf: t, ages: n });
3856
+ return t === void 0 || n === void 0 ? /* @__PURE__ */ c(Wn, { ...o, freshness: null }) : /* @__PURE__ */ c(Ga, { ...o, asOf: t, ages: n });
3857
3857
  }
3858
- function $a({
3858
+ function Ga({
3859
3859
  asOf: e,
3860
3860
  ages: t,
3861
3861
  ...n
3862
3862
  }) {
3863
- const o = no(e, t);
3863
+ const o = oo(e, t);
3864
3864
  return /* @__PURE__ */ c(Wn, { ...n, freshness: o });
3865
3865
  }
3866
3866
  function Wn({
@@ -3874,7 +3874,7 @@ function Wn({
3874
3874
  onHiddenOnlyChange: l,
3875
3875
  ...i
3876
3876
  }) {
3877
- const d = he(), g = Re(), u = s !== null, m = (s == null ? void 0 : s.freshness) === "lost", { Table: v, Column: h } = oa(e.visible, { rowKey: (_) => _.id, selection: t }), b = oe(() => e.filtered.map((_) => _.alarm), [e.filtered]), p = oe(() => t === void 0 ? [] : e.filtered.map((_) => _.id).filter((_) => t.selected.has(_)), [e.filtered, t]), y = oe(() => pa(b, p), [b, p]), k = yn(o, "compact"), O = d.hiddenAlarms(e.hiddenAlarms);
3877
+ const d = he(), g = Re(), u = s !== null, m = (s == null ? void 0 : s.freshness) === "lost", { Table: v, Column: h } = ra(e.visible, { rowKey: (_) => _.id, selection: t }), b = oe(() => e.filtered.map((_) => _.alarm), [e.filtered]), p = oe(() => t === void 0 ? [] : e.filtered.map((_) => _.id).filter((_) => t.selected.has(_)), [e.filtered, t]), y = oe(() => ma(b, p), [b, p]), k = yn(o, "compact"), O = d.hiddenAlarms(e.hiddenAlarms);
3878
3878
  return /* @__PURE__ */ R("div", { className: [ce.list, r].filter(Boolean).join(" "), ...i, children: [
3879
3879
  /* @__PURE__ */ R("div", { className: ce.bar, children: [
3880
3880
  /* @__PURE__ */ c("span", { className: ce.heading, children: d.alarms }),
@@ -3893,7 +3893,7 @@ function Wn({
3893
3893
  }
3894
3894
  ) : e.hiddenAlarms > 0 && /* @__PURE__ */ c("span", { className: ce.hidden, children: O }),
3895
3895
  /* @__PURE__ */ c("span", { className: ce.filler }),
3896
- t !== void 0 && n !== void 0 && /* @__PURE__ */ c(re, { variant: "primary", size: "sm", disabled: y === 0, onClick: () => n(p), children: y === 0 ? d.acknowledgeAlarm : d.acknowledgeAlarms(y) })
3896
+ t !== void 0 && n !== void 0 && /* @__PURE__ */ c(se, { variant: "primary", size: "sm", disabled: y === 0, onClick: () => n(p), children: y === 0 ? d.acknowledgeAlarm : d.acknowledgeAlarms(y) })
3897
3897
  ] }),
3898
3898
  /* @__PURE__ */ c("div", { "aria-live": "polite", "aria-atomic": "true", className: ce.live, children: d.activeUnacknowledged(e.activeUnacknowledged) }),
3899
3899
  /* @__PURE__ */ R(
@@ -3916,16 +3916,16 @@ function Wn({
3916
3916
  S.chatters && /* @__PURE__ */ c(je, { tone: "warning", pill: !0, className: ce.counter, children: d.chatterHint(S.frequency) })
3917
3917
  ] }) }),
3918
3918
  /* @__PURE__ */ c(h, { value: "lifecycle", label: d.columnLifecycleState, sortable: !1, children: (_, S) => {
3919
- const A = Ia(S, d, g), C = A === null ? null : A.short === A.full ? /* @__PURE__ */ c(je, { className: ce.availability, children: A.short }) : /* @__PURE__ */ c(Ue, { content: A.full, children: /* @__PURE__ */ R(je, { className: ce.availability, children: [
3919
+ const A = Ba(S, d, g), C = A === null ? null : A.short === A.full ? /* @__PURE__ */ c(je, { className: ce.availability, children: A.short }) : /* @__PURE__ */ c(Ue, { content: A.full, children: /* @__PURE__ */ R(je, { className: ce.availability, children: [
3920
3920
  /* @__PURE__ */ c("span", { "aria-hidden": "true", children: A.short }),
3921
3921
  /* @__PURE__ */ c(Ge, { children: A.full })
3922
3922
  ] }) });
3923
3923
  return /* @__PURE__ */ R("span", { className: ce.state, children: [
3924
3924
  C,
3925
- /* @__PURE__ */ c("span", { className: ce.lifecycle, children: Pa(_, d) })
3925
+ /* @__PURE__ */ c("span", { className: ce.lifecycle, children: Ia(_, d) })
3926
3926
  ] });
3927
3927
  } }),
3928
- /* @__PURE__ */ c(h, { value: "priority", label: d.columnPriority, sortable: !1, children: (_, S) => /* @__PURE__ */ c(je, { tone: Tt(S.availability) ? "neutral" : za(_), children: Ba(_, d) }) }),
3928
+ /* @__PURE__ */ c(h, { value: "priority", label: d.columnPriority, sortable: !1, children: (_, S) => /* @__PURE__ */ c(je, { tone: Tt(S.availability) ? "neutral" : Va(_), children: za(_, d) }) }),
3929
3929
  /* @__PURE__ */ c(
3930
3930
  h,
3931
3931
  {
@@ -3936,7 +3936,7 @@ function Wn({
3936
3936
  sortable: !1
3937
3937
  }
3938
3938
  ),
3939
- /* @__PURE__ */ c(h, { value: "duration", label: d.columnDuration, sortable: !1, children: (_) => /* @__PURE__ */ c("span", { className: ce.state, children: Va(_, d) }) }),
3939
+ /* @__PURE__ */ c(h, { value: "duration", label: d.columnDuration, sortable: !1, children: (_) => /* @__PURE__ */ c("span", { className: ce.state, children: $a(_, d) }) }),
3940
3940
  /* @__PURE__ */ c(h, { value: "frequency", label: d.columnFrequency, format: "count", sortable: !1 })
3941
3941
  ]
3942
3942
  }
@@ -3944,37 +3944,37 @@ function Wn({
3944
3944
  ] });
3945
3945
  }
3946
3946
  export {
3947
- wa as ALARM_COLUMNS,
3948
- ca as AVAILABILITIES,
3949
- ll as AlarmList,
3950
- Xa as ColumnMenu,
3951
- ba as DEFAULT_ORDER,
3952
- Qa as Export,
3953
- ra as PRIORITIES,
3954
- Za as Pagination,
3955
- Ja as Search,
3956
- Ya as Toolbar,
3957
- il as acknowledge,
3958
- ma as alarmColumns,
3959
- al as alarmModel,
3960
- da as availabilityAt,
3961
- Ua as column,
3962
- qa as columnFilter,
3963
- pa as countAcknowledgeable,
3964
- sl as countInWindow,
3965
- ha as detectFlood,
3966
- nl as disable,
3967
- ol as enable,
3968
- ua as frequencyByType,
3969
- rl as hasReturned,
3947
+ ba as ALARM_COLUMNS,
3948
+ da as AVAILABILITIES,
3949
+ cl as AlarmList,
3950
+ Qa as ColumnMenu,
3951
+ va as DEFAULT_ORDER,
3952
+ Za as Export,
3953
+ sa as PRIORITIES,
3954
+ el as Pagination,
3955
+ Xa as Search,
3956
+ Ja as Toolbar,
3957
+ al as acknowledge,
3958
+ wa as alarmColumns,
3959
+ ll as alarmModel,
3960
+ ua as availabilityAt,
3961
+ Ya as column,
3962
+ Ua as columnFilter,
3963
+ ma as countAcknowledgeable,
3964
+ il as countInWindow,
3965
+ pa as detectFlood,
3966
+ ol as disable,
3967
+ rl as enable,
3968
+ fa as frequencyByType,
3969
+ sl as hasReturned,
3970
3970
  ct as isAcknowledged,
3971
- ia as isActive,
3972
- aa as isDone,
3971
+ aa as isActive,
3972
+ la as isDone,
3973
3973
  Tt as isHidden,
3974
- la as nextLifecycleState,
3975
- sa as priorityRank,
3976
- el as snooze,
3977
- tl as unsnooze,
3978
- oa as useTable,
3979
- ro as useTableSelection
3974
+ ca as nextLifecycleState,
3975
+ ia as priorityRank,
3976
+ tl as snooze,
3977
+ nl as unsnooze,
3978
+ ra as useTable,
3979
+ so as useTableSelection
3980
3980
  };