@svgrid/grid 1.2.3 → 1.2.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.
@@ -3004,7 +3004,7 @@ var ya = `
3004
3004
  }
3005
3005
  `, ba = typeof HTMLElement < "u" ? HTMLElement : class {}, xa = class extends ba {
3006
3006
  constructor(...e) {
3007
- super(...e), this.dragging = !1, this.dragStart = 0, this.valueStart = 0, this.holdTimer = null, this.resizeObserver = null, this.onArrowStartPointerDown = (e) => {
3007
+ super(...e), this.dragging = !1, this.dragStart = 0, this.valueStart = 0, this.holdTimer = null, this.resizeObserver = null, this.resizeFrame = 0, this.onArrowStartPointerDown = (e) => {
3008
3008
  e.preventDefault(), this.startHold(-1);
3009
3009
  }, this.onArrowEndPointerDown = (e) => {
3010
3010
  e.preventDefault(), this.startHold(1);
@@ -3038,10 +3038,14 @@ var ya = `
3038
3038
  let e = this.attachShadow({ mode: "open" }), t = document.createElement("style");
3039
3039
  t.textContent = ya, this.startArrow = this.createArrow("start"), this.endArrow = this.createArrow("end"), this.track = document.createElement("div"), this.track.className = "track", this.thumb = document.createElement("div"), this.thumb.className = "thumb", this.track.appendChild(this.thumb), e.append(t, this.startArrow, this.track, this.endArrow), this.thumb.addEventListener("pointerdown", this.onThumbPointerDown), this.track.addEventListener("pointerdown", this.onTrackPointerDown), this.startArrow.addEventListener("pointerdown", this.onArrowStartPointerDown), this.endArrow.addEventListener("pointerdown", this.onArrowEndPointerDown);
3040
3040
  for (let e of [this.startArrow, this.endArrow]) e.addEventListener("pointerup", this.stopHold), e.addEventListener("pointerleave", this.stopHold), e.addEventListener("pointercancel", this.stopHold);
3041
- this.resizeObserver = new ResizeObserver(() => this.render()), this.resizeObserver.observe(this), this.render();
3041
+ this.resizeObserver = new ResizeObserver(() => {
3042
+ this.resizeFrame ||= requestAnimationFrame(() => {
3043
+ this.resizeFrame = 0, this.render();
3044
+ });
3045
+ }), this.resizeObserver.observe(this), this.render();
3042
3046
  }
3043
3047
  disconnectedCallback() {
3044
- this.stopHold(), this.resizeObserver?.disconnect(), this.resizeObserver = null, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
3048
+ this.stopHold(), this.resizeFrame && cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0, this.resizeObserver?.disconnect(), this.resizeObserver = null, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
3045
3049
  }
3046
3050
  attributeChangedCallback() {
3047
3051
  this.render();
@@ -3712,7 +3716,7 @@ function ko(e) {
3712
3716
  }
3713
3717
  function a(t) {
3714
3718
  let n = t.currentTarget;
3715
- if (n && ((e.columnMenuFor || e.operatorMenuFor) && e.closeMenus(), i(n.scrollTop, n.scrollLeft), e.props.alignedGridGroup != null && e.broadcastAlignedScroll(n.scrollLeft), e.props.onScrollBottomReached)) {
3719
+ if (n && ((e.columnMenuFor || e.operatorMenuFor || e.contextMenuFor) && e.closeMenus(), i(n.scrollTop, n.scrollLeft), e.props.alignedGridGroup != null && e.broadcastAlignedScroll(n.scrollLeft), e.props.onScrollBottomReached)) {
3716
3720
  let { scrollTop: t, scrollHeight: r, clientHeight: i } = n, a = t + i >= r - 32;
3717
3721
  a && e.scrollBottomArmed ? (e.scrollBottomArmed = !1, e.props.onScrollBottomReached({
3718
3722
  scrollTop: t,
@@ -4134,13 +4138,13 @@ function Ho(e) {
4134
4138
  e.grid.setPagination((e) => ({
4135
4139
  ...e,
4136
4140
  pageIndex: Math.max((e?.pageIndex ?? 0) + t, 0)
4137
- }));
4141
+ })), e.scrollContainer?.scrollTo({ top: 0 });
4138
4142
  }
4139
4143
  function S(t) {
4140
4144
  e.grid.setPagination((e) => ({
4141
4145
  ...e,
4142
4146
  pageIndex: Math.max(0, t)
4143
- }));
4147
+ })), e.scrollContainer?.scrollTo({ top: 0 });
4144
4148
  }
4145
4149
  function C(t) {
4146
4150
  e.grid.setPagination((e) => {
@@ -4214,10 +4218,10 @@ function Ho(e) {
4214
4218
  function ne(t, n, r, i) {
4215
4219
  if (!e.props.contextMenu) return;
4216
4220
  t.preventDefault(), s(), e.contextMenuFor = null;
4217
- let a = e.allRows[n], o = a?.original ?? null, c = a?.id ?? String(n);
4221
+ let a = e.allRows[n], o = a?.original ?? null, c = a?.id ?? String(n), l = t.clientY + 280 > window.innerHeight ? Math.max(8, t.clientY - 280) : t.clientY;
4218
4222
  e.contextMenuPos = {
4219
4223
  x: ao(t.clientX, 220),
4220
- y: Math.max(8, Math.min(t.clientY, window.innerHeight - 16))
4224
+ y: l
4221
4225
  }, e.contextMenuFor = {
4222
4226
  rowIndex: n,
4223
4227
  colIndex: r,
@@ -4374,9 +4378,9 @@ function Uo(t) {
4374
4378
  }
4375
4379
  function l(e, n) {
4376
4380
  let r = e.columnDef.editorOptions;
4377
- if (typeof r == "function") return n?.original ? Jp(r(n.original)) : [];
4381
+ if (typeof r == "function") return n?.original ? Yp(r(n.original)) : [];
4378
4382
  let i = e.id;
4379
- return (!t.editorOptionsCache[i] || t.editorOptionsCache[i + "__src"] !== r) && (t.editorOptionsCache[i] = Jp(r), t.editorOptionsCache[i + "__src"] = r), t.editorOptionsCache[i];
4383
+ return (!t.editorOptionsCache[i] || t.editorOptionsCache[i + "__src"] !== r) && (t.editorOptionsCache[i] = Yp(r), t.editorOptionsCache[i + "__src"] = r), t.editorOptionsCache[i];
4380
4384
  }
4381
4385
  function u(e, t, n) {
4382
4386
  let r = l(e, n), i = e.columnDef.editorSeparator ?? ", ";
@@ -4547,7 +4551,7 @@ function Wo(e) {
4547
4551
  }
4548
4552
  function o() {
4549
4553
  if (!e.editingCell) return;
4550
- let t = e.allRows.find((t) => t.id === e.editingCell?.rowId), n = e.allColumns.find((t) => t.id === e.editingCell?.columnId), r = Yp(e.editingCell.editorType, e.editingCell.value, { multiple: n?.columnDef.editorMultiple === !0 }), i, a = r;
4554
+ let t = e.allRows.find((t) => t.id === e.editingCell?.rowId), n = e.allColumns.find((t) => t.id === e.editingCell?.columnId), r = Xp(e.editingCell.editorType, e.editingCell.value, { multiple: n?.columnDef.editorMultiple === !0 }), i, a = r;
4551
4555
  if (t?.original && n?.columnDef.field) {
4552
4556
  i = t.original[n.columnDef.field];
4553
4557
  let o = n.columnDef.valueParser;
@@ -4684,7 +4688,7 @@ function Wo(e) {
4684
4688
  let i = e.allColumns[o + t];
4685
4689
  if (!i?.columnDef.field || !n(r, o + t)) continue;
4686
4690
  let a = i.columnDef.editorType ?? "text", s = u ? l[0] : d?.[t] ?? "";
4687
- m[i.columnDef.field] = Yp(a, s);
4691
+ m[i.columnDef.field] = Xp(a, s);
4688
4692
  }
4689
4693
  p[s] = m;
4690
4694
  }
@@ -4737,7 +4741,7 @@ function Wo(e) {
4737
4741
  if (!(i.id in t.draft)) continue;
4738
4742
  let a = i.columnDef.field;
4739
4743
  if (!a) continue;
4740
- let o = Yp(i.columnDef.editorType ?? "text", t.draft[i.id], { multiple: i.columnDef.editorMultiple === !0 }), s = n.original[a], c = i.columnDef.valueParser, l = c ? c({
4744
+ let o = Xp(i.columnDef.editorType ?? "text", t.draft[i.id], { multiple: i.columnDef.editorMultiple === !0 }), s = n.original[a], c = i.columnDef.valueParser, l = c ? c({
4741
4745
  newValue: o,
4742
4746
  oldValue: s,
4743
4747
  rawInput: String(t.draft[i.id] ?? ""),
@@ -4830,7 +4834,7 @@ function Go(e) {
4830
4834
  if (e.userHasActivatedCell = !0, e.grid.setActiveCell({
4831
4835
  rowIndex: t,
4832
4836
  colIndex: n,
4833
- cellId: rm("svgrid", t, n)
4837
+ cellId: im("svgrid", t, n)
4834
4838
  }), e.props.onActiveCellChange) {
4835
4839
  let r = e.allColumns[n];
4836
4840
  e.props.onActiveCellChange({
@@ -6255,7 +6259,7 @@ function gs(e) {
6255
6259
  let r = e.allColumns[n];
6256
6260
  if (!r?.columnDef.field || !e.isCellEditableAt(t, n)) continue;
6257
6261
  let i = r.columnDef.editorType ?? "text";
6258
- l[r.columnDef.field] = Yp(i, ""), u = !0;
6262
+ l[r.columnDef.field] = Xp(i, ""), u = !0;
6259
6263
  }
6260
6264
  u && (s[r] = l, c = !0);
6261
6265
  }
@@ -6421,7 +6425,17 @@ function Fs() {
6421
6425
  }
6422
6426
  return Ns;
6423
6427
  }
6424
- function Is(e) {
6428
+ function Is(e, t) {
6429
+ let n = 0, r = new ResizeObserver(() => {
6430
+ n ||= requestAnimationFrame(() => {
6431
+ n = 0, t();
6432
+ });
6433
+ });
6434
+ return r.observe(e), () => {
6435
+ n && cancelAnimationFrame(n), r.disconnect();
6436
+ };
6437
+ }
6438
+ function Ls(e) {
6425
6439
  let t = /* @__PURE__ */ M(() => e.editable ?? e.enableInlineEditing ?? !1), n = /* @__PURE__ */ M(() => e.pageable ?? e.showPagination ?? !1), r = /* @__PURE__ */ M(() => e.groupable ?? e.showGroupingControls ?? !1), i = /* @__PURE__ */ N(""), a = /* @__PURE__ */ N(null), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(yn({})), c = /* @__PURE__ */ N(yn({})), l = /* @__PURE__ */ N(null), u = /* @__PURE__ */ N(null), d = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = "", m = 0, g = 0, y = null, C = /* @__PURE__ */ N(yn({
6426
6440
  anchor: null,
6427
6441
  focus: null
@@ -6679,10 +6693,10 @@ function Is(e) {
6679
6693
  if (nt) return t;
6680
6694
  let n = t;
6681
6695
  if (B(i).trim()) {
6682
- let t = Zp(B(i), e.filterLocale);
6683
- n = n.filter((n) => n.getAllCells().some((n) => Zp(String(n.getValue() ?? ""), e.filterLocale).includes(t)));
6696
+ let t = Qp(B(i), e.filterLocale);
6697
+ n = n.filter((n) => n.getAllCells().some((n) => Qp(String(n.getValue() ?? ""), e.filterLocale).includes(t)));
6684
6698
  }
6685
- let r = (e, t, n) => e === "isBlank" ? !0 : e === "between" ? t.trim().length > 0 && (n ?? "").trim().length > 0 : t.trim().length > 0, a = (t, n, r, i, a) => Qp(t, {
6699
+ let r = (e, t, n) => e === "isBlank" ? !0 : e === "between" ? t.trim().length > 0 && (n ?? "").trim().length > 0 : t.trim().length > 0, a = (t, n, r, i, a) => $p(t, {
6686
6700
  id: n,
6687
6701
  operator: r,
6688
6702
  value: i,
@@ -6719,7 +6733,16 @@ function Is(e) {
6719
6733
  if (!B(n)) return e;
6720
6734
  let { pageIndex: t, pageSize: r } = B(xt), i = t * r;
6721
6735
  return e.slice(i, i + r);
6722
- }), wt = /* @__PURE__ */ M(() => (B(be), it.getState().rowSelection ?? {})), Tt = "";
6736
+ });
6737
+ Wn(() => {
6738
+ if (!B(n)) return;
6739
+ let { pageIndex: e, pageSize: t } = B(xt), r = Math.ceil(B(St).length / t);
6740
+ r > 0 && e >= r && it.setPagination({
6741
+ pageIndex: 0,
6742
+ pageSize: t
6743
+ });
6744
+ });
6745
+ let wt = /* @__PURE__ */ M(() => (B(be), it.getState().rowSelection ?? {})), Tt = "";
6723
6746
  Wn(() => {
6724
6747
  let t = JSON.stringify(B(wt));
6725
6748
  if (t === Tt) return;
@@ -6816,13 +6839,13 @@ function Is(e) {
6816
6839
  }, o = JSON.stringify(a);
6817
6840
  o !== Pt && (Pt = o, e.onFiltersChange(a));
6818
6841
  });
6819
- let Ft = Kp({
6842
+ let Ft = qp({
6820
6843
  count: 0,
6821
6844
  estimateSize: 36,
6822
6845
  overscan: 8,
6823
6846
  viewportHeight: 520,
6824
6847
  scrollOffset: 0
6825
- }), It = qp({
6848
+ }), It = Jp({
6826
6849
  count: 0,
6827
6850
  viewportWidth: 0,
6828
6851
  overscan: 3,
@@ -6844,18 +6867,36 @@ function Is(e) {
6844
6867
  let e = Ft.getState().scrollOffset;
6845
6868
  return e - B(Wt).logicalToDom(e);
6846
6869
  }), Xt = /* @__PURE__ */ M(() => Math.max(B(Vt) - B(Yt), 0)), Zt = /* @__PURE__ */ M(() => Math.max(B(Gt) - (B(Ht) - B(Yt)), 0)), Qt = /* @__PURE__ */ M(() => (B(ye), It.getVirtualItems())), $t = /* @__PURE__ */ M(() => (B(ye), It.getTotalSize())), en = /* @__PURE__ */ M(() => {
6847
- if (B(Rt)) return B(Qt);
6848
- let e = 0;
6849
- return B(st).map((t, n) => {
6850
- let r = fi(t.id), i = {
6851
- index: n,
6852
- key: n,
6853
- size: r,
6854
- start: e,
6855
- end: e + r
6856
- };
6857
- return e += r, i;
6858
- });
6870
+ if (!B(Rt)) {
6871
+ let e = 0;
6872
+ return B(st).map((t, n) => {
6873
+ let r = fi(t.id), i = {
6874
+ index: n,
6875
+ key: n,
6876
+ size: r,
6877
+ start: e,
6878
+ end: e + r
6879
+ };
6880
+ return e += r, i;
6881
+ });
6882
+ }
6883
+ let e = B(Qt), t = B(ve).left.length > 0, n = B(ve).right.length > 0;
6884
+ if (!t && !n || e.length === 0) return e;
6885
+ let r = e[0].index, i = e[e.length - 1].index, a = t ? 0 : r, o = n ? B(st).length - 1 : i;
6886
+ if (a === r && o === i) return e;
6887
+ let s = [], c = 0;
6888
+ for (let e = 0; e < a; e += 1) c += fi(B(st)[e].id);
6889
+ for (let e = a; e <= o; e += 1) {
6890
+ let t = fi(B(st)[e].id);
6891
+ s.push({
6892
+ index: e,
6893
+ key: e,
6894
+ size: t,
6895
+ start: c,
6896
+ end: c + t
6897
+ }), c += t;
6898
+ }
6899
+ return s;
6859
6900
  }), tn = /* @__PURE__ */ M(() => B(en).map((e) => ({
6860
6901
  item: e,
6861
6902
  column: B(st)[e.index]
@@ -6874,7 +6915,7 @@ function Is(e) {
6874
6915
  cellId: null
6875
6916
  })), ln = /* @__PURE__ */ M(() => {
6876
6917
  let e = B(cn), t = e.rowIndex >= 0 && e.rowIndex < B(Ct).length, n = e.colIndex >= 0 && e.colIndex < B(st).length;
6877
- return !t || !n ? null : rm("svgrid", e.rowIndex, e.colIndex);
6918
+ return !t || !n ? null : im("svgrid", e.rowIndex, e.colIndex);
6878
6919
  }), un = 5e4, dn = /* @__PURE__ */ N(yn({}));
6879
6920
  Wn(() => {
6880
6921
  B(be), B(re);
@@ -6894,23 +6935,18 @@ function Is(e) {
6894
6935
  r = !0, cancelAnimationFrame(i);
6895
6936
  };
6896
6937
  }), Wn(() => {
6897
- if (!B(fe)) return;
6898
- P(pe, B(fe).offsetHeight, !0);
6899
- let e = new ResizeObserver(() => {
6938
+ if (B(fe)) return P(pe, B(fe).offsetHeight, !0), Is(B(fe), () => {
6900
6939
  P(pe, B(fe)?.offsetHeight ?? 0, !0);
6901
6940
  });
6902
- return e.observe(B(fe)), () => e.disconnect();
6903
6941
  }), Wn(() => {
6904
- if (!B(o)) return;
6905
- let e = new ResizeObserver(() => {
6942
+ if (B(o)) return Is(B(o), () => {
6906
6943
  P(d, B(d) + 1);
6907
6944
  });
6908
- return e.observe(B(o)), () => e.disconnect();
6909
6945
  }), Wn(() => {
6910
6946
  !B(Ct).length || !B(st).length || it.getState().activeCell?.cellId || it.setActiveCell({
6911
6947
  rowIndex: 0,
6912
6948
  colIndex: 0,
6913
- cellId: rm("svgrid", 0, 0)
6949
+ cellId: im("svgrid", 0, 0)
6914
6950
  });
6915
6951
  }), Wn(() => {
6916
6952
  let t = `cols:${e.columns.length}`;
@@ -6946,11 +6982,9 @@ function Is(e) {
6946
6982
  });
6947
6983
  let fn = /* @__PURE__ */ N(!1);
6948
6984
  Wn(() => {
6949
- if (!B(a)) return;
6950
- let e = new ResizeObserver(() => {
6985
+ if (B(a)) return Is(B(a), () => {
6951
6986
  P(f, B(f) + 1), B(fn) || P(fn, !0);
6952
6987
  });
6953
- return e.observe(B(a)), () => e.disconnect();
6954
6988
  }), Wn(() => {
6955
6989
  B(he), It.setOptions({
6956
6990
  count: B(st).length,
@@ -8210,16 +8244,16 @@ function Is(e) {
8210
8244
  }
8211
8245
  //#endregion
8212
8246
  //#region src/GridMenus.svelte
8213
- var Ls = /* @__PURE__ */ U("<option> </option>"), Rs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), zs = /* @__PURE__ */ U("<option> </option>"), Bs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Vs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), Hs = /* @__PURE__ */ U("<div class=\"sv-grid-menu-join\" role=\"radiogroup\" aria-label=\"Combine conditions\"><button type=\"button\">AND</button> <button type=\"button\">OR</button> <button type=\"button\" class=\"sv-grid-menu-join-x\" title=\"Remove second condition\" aria-label=\"Remove second condition\">×</button></div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Second filter condition\"></select> <!>", 1), Us = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-add-cond\">+ Add condition</button>"), Ws = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!> <!>", 1), Gs = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), Ks = /* @__PURE__ */ U("<div class=\"sv-grid-facet-empty\">No values</div>"), qs = /* @__PURE__ */ U("<div class=\"sv-grid-facet-note\"> </div>"), Js = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter\"><div class=\"sv-grid-menu-filter-head\"><span class=\"sv-grid-header-icon\"><!></span> Filter\n condition</div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Filter condition\"></select> <!> <div class=\"sv-grid-menu-sep\"></div> <div class=\"sv-grid-menu-filter-head\">Values</div> <input class=\"sv-grid-menu-search\" placeholder=\"Search values...\"/> <label class=\"sv-grid-facet sv-grid-facet-all\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\">(Select all)</span></label> <div class=\"sv-grid-facet-list\"></div> <!> <div class=\"sv-grid-menu-actions\"><button type=\"button\" class=\"sv-grid-menu-btn\">Clear filter</button> <button type=\"button\" class=\"sv-grid-menu-btn sv-grid-menu-btn-primary\">Done</button></div></div>"), Ys = /* @__PURE__ */ U("<div role=\"tooltip\"> </div>"), Xs = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div>"), Zs = /* @__PURE__ */ U("<button type=\"button\" role=\"tab\">Filter</button>"), Qs = /* @__PURE__ */ U("<div class=\"sv-grid-menu-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">General</button> <!> <button type=\"button\" role=\"tab\">Columns</button></div>"), $s = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), ec = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div>", 1), tc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n ascending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n descending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove sort</button>", 1), nc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to left</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to right</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Unpin column</button>", 1), rc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Group\n by this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove grouping</button>", 1), ic = /* @__PURE__ */ U("<button type=\"button\" role=\"menuitem\" aria-haspopup=\"menu\"><span class=\"sv-grid-header-icon\"><!></span> Choose columns <span class=\"sv-grid-header-icon sv-grid-menu-item-chevron\"><!></span></button>"), ac = /* @__PURE__ */ U("<!> <!> <div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n all columns</button> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Reset columns</button>", 1), oc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-column-menu\" role=\"menu\"><!> <!></div>"), sc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-filter-menu\" role=\"menu\"><!></div>"), cc = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), lc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-choose-columns-menu\" role=\"menu\"><div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div></div>"), uc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitemradio\"><span class=\"sv-grid-header-icon\"><!></span> </button>"), dc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-operator-menu\" role=\"menu\"></div>"), fc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div>"), pc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"> </button>"), mc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-context-menu\" role=\"menu\"></div>", 1), hc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-comment-editor\" role=\"dialog\" aria-label=\"Edit comment\"><textarea class=\"sv-grid-comment-textarea\" rows=\"3\" placeholder=\"Add a comment…\"></textarea> <div class=\"sv-grid-comment-actions\"><button type=\"button\" class=\"sv-grid-comment-remove\">Remove</button> <span class=\"sv-grid-comment-spacer\"></span> <button type=\"button\" class=\"sv-grid-comment-cancel\">Cancel</button> <button type=\"button\" class=\"sv-grid-comment-save\">Save</button></div></div>", 1), gc = /* @__PURE__ */ U("<!> <!> <!> <!> <!> <!> <!> <!>", 1);
8214
- function _c(e, t) {
8247
+ var Rs = /* @__PURE__ */ U("<option> </option>"), zs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Bs = /* @__PURE__ */ U("<option> </option>"), Vs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Hs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), Us = /* @__PURE__ */ U("<div class=\"sv-grid-menu-join\" role=\"radiogroup\" aria-label=\"Combine conditions\"><button type=\"button\">AND</button> <button type=\"button\">OR</button> <button type=\"button\" class=\"sv-grid-menu-join-x\" title=\"Remove second condition\" aria-label=\"Remove second condition\">×</button></div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Second filter condition\"></select> <!>", 1), Ws = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-add-cond\">+ Add condition</button>"), Gs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!> <!>", 1), Ks = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), qs = /* @__PURE__ */ U("<div class=\"sv-grid-facet-empty\">No values</div>"), Js = /* @__PURE__ */ U("<div class=\"sv-grid-facet-note\"> </div>"), Ys = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter\"><div class=\"sv-grid-menu-filter-head\"><span class=\"sv-grid-header-icon\"><!></span> Filter\n condition</div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Filter condition\"></select> <!> <div class=\"sv-grid-menu-sep\"></div> <div class=\"sv-grid-menu-filter-head\">Values</div> <input class=\"sv-grid-menu-search\" placeholder=\"Search values...\"/> <label class=\"sv-grid-facet sv-grid-facet-all\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\">(Select all)</span></label> <div class=\"sv-grid-facet-list\"></div> <!> <div class=\"sv-grid-menu-actions\"><button type=\"button\" class=\"sv-grid-menu-btn\">Clear filter</button> <button type=\"button\" class=\"sv-grid-menu-btn sv-grid-menu-btn-primary\">Done</button></div></div>"), Xs = /* @__PURE__ */ U("<div role=\"tooltip\"> </div>"), Zs = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div>"), Qs = /* @__PURE__ */ U("<button type=\"button\" role=\"tab\">Filter</button>"), $s = /* @__PURE__ */ U("<div class=\"sv-grid-menu-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">General</button> <!> <button type=\"button\" role=\"tab\">Columns</button></div>"), ec = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), tc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div>", 1), nc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n ascending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n descending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove sort</button>", 1), rc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to left</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to right</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Unpin column</button>", 1), ic = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Group\n by this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove grouping</button>", 1), ac = /* @__PURE__ */ U("<button type=\"button\" role=\"menuitem\" aria-haspopup=\"menu\"><span class=\"sv-grid-header-icon\"><!></span> Choose columns <span class=\"sv-grid-header-icon sv-grid-menu-item-chevron\"><!></span></button>"), oc = /* @__PURE__ */ U("<!> <!> <div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n all columns</button> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Reset columns</button>", 1), sc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-column-menu\" role=\"menu\"><!> <!></div>"), cc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-filter-menu\" role=\"menu\"><!></div>"), lc = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), uc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-choose-columns-menu\" role=\"menu\"><div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div></div>"), dc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitemradio\"><span class=\"sv-grid-header-icon\"><!></span> </button>"), fc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-operator-menu\" role=\"menu\"></div>"), pc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div>"), mc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"> </button>"), hc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-context-menu\" role=\"menu\"></div>", 1), gc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-comment-editor\" role=\"dialog\" aria-label=\"Edit comment\"><textarea class=\"sv-grid-comment-textarea\" rows=\"3\" placeholder=\"Add a comment…\"></textarea> <div class=\"sv-grid-comment-actions\"><button type=\"button\" class=\"sv-grid-comment-remove\">Remove</button> <span class=\"sv-grid-comment-spacer\"></span> <button type=\"button\" class=\"sv-grid-comment-cancel\">Cancel</button> <button type=\"button\" class=\"sv-grid-comment-save\">Save</button></div></div>", 1), _c = /* @__PURE__ */ U("<!> <!> <!> <!> <!> <!> <!> <!>", 1);
8248
+ function vc(e, t) {
8215
8249
  ft(t, !0);
8216
8250
  let n = (e, n = de) => {
8217
8251
  let i = /* @__PURE__ */ M(() => B(_).find((e) => e.id === n())), o = /* @__PURE__ */ M(() => B(te)(B(i))), s = /* @__PURE__ */ M(() => B(a)[n()]?.operator ?? B(ne)(B(i))), c = /* @__PURE__ */ M(() => Qa(B(i)?.columnDef.editorType ?? "text"));
8218
- var l = Js(), u = F(l), d = F(u);
8252
+ var l = Ys(), u = F(l), d = F(u);
8219
8253
  oi(F(d), () => t.icon, () => "filter"), A(d), nt(), A(u);
8220
8254
  var f = L(u, 2);
8221
8255
  Y(f, 21, () => B(o), (e) => e.value, (e, t) => {
8222
- var n = Ls(), r = F(n, !0);
8256
+ var n = Rs(), r = F(n, !0);
8223
8257
  A(n);
8224
8258
  var a = {};
8225
8259
  R((e) => {
@@ -8230,10 +8264,10 @@ function _c(e, t) {
8230
8264
  Ai(f);
8231
8265
  var m = L(f, 2), h = (e) => {
8232
8266
  let t = /* @__PURE__ */ M(() => B(a)[n()]);
8233
- var r = Ws(), l = I(r);
8267
+ var r = Gs(), l = I(r);
8234
8268
  Vi(l);
8235
8269
  var u = L(l, 2), d = (e) => {
8236
- var t = Rs();
8270
+ var t = zs();
8237
8271
  Vi(t), R(() => {
8238
8272
  Q(t, "type", B(c)), Hi(t, B(a)[n()]?.valueTo ?? "");
8239
8273
  }), H("input", t, (e) => B(ee)(n(), e.currentTarget.value)), K(e, t);
@@ -8243,7 +8277,7 @@ function _c(e, t) {
8243
8277
  });
8244
8278
  var f = L(u, 2), p = (e) => {
8245
8279
  let r = /* @__PURE__ */ M(() => B(t).operator2 ?? B(ne)(B(i)));
8246
- var a = Hs(), s = I(a), l = F(s);
8280
+ var a = Us(), s = I(a), l = F(s);
8247
8281
  let u;
8248
8282
  var d = L(l, 2);
8249
8283
  let f;
@@ -8251,7 +8285,7 @@ function _c(e, t) {
8251
8285
  A(s);
8252
8286
  var m = L(s, 2);
8253
8287
  Y(m, 21, () => B(o), (e) => e.value, (e, t) => {
8254
- var n = zs(), r = F(n, !0);
8288
+ var n = Bs(), r = F(n, !0);
8255
8289
  A(n);
8256
8290
  var a = {};
8257
8291
  R((e) => {
@@ -8261,10 +8295,10 @@ function _c(e, t) {
8261
8295
  var h;
8262
8296
  Ai(m);
8263
8297
  var g = L(m, 2), _ = (e) => {
8264
- var i = Vs(), a = I(i);
8298
+ var i = Hs(), a = I(i);
8265
8299
  Vi(a);
8266
8300
  var o = L(a, 2), s = (e) => {
8267
- var r = Bs();
8301
+ var r = Vs();
8268
8302
  Vi(r), R(() => {
8269
8303
  Q(r, "type", B(c)), Hi(r, B(t).valueTo2 ?? "");
8270
8304
  }), H("input", r, (e) => ie(n(), { valueTo2: e.currentTarget.value })), K(e, r);
@@ -8286,7 +8320,7 @@ function _c(e, t) {
8286
8320
  join: void 0
8287
8321
  })), H("change", m, (e) => ie(n(), { operator2: e.currentTarget.value })), K(e, a);
8288
8322
  }, m = (e) => {
8289
- var t = Us();
8323
+ var t = Ws();
8290
8324
  H("click", t, () => ie(n(), {
8291
8325
  operator2: B(ne)(B(i)),
8292
8326
  value2: "",
@@ -8308,17 +8342,17 @@ function _c(e, t) {
8308
8342
  Vi(y), nt(2), A(v);
8309
8343
  var b = L(v, 2);
8310
8344
  Y(b, 20, () => B(O), (e) => e, (e, t) => {
8311
- var r = Gs(), i = F(r);
8345
+ var r = Ks(), i = F(r);
8312
8346
  Vi(i);
8313
8347
  var a = L(i, 2), o = F(a, !0);
8314
8348
  A(a), A(r), R((e) => {
8315
8349
  Ui(i, e), q(o, t === "" ? "(Blanks)" : t);
8316
8350
  }, [() => B(ge)(n(), t)]), H("change", i, () => B(_e)(n(), t)), K(e, r);
8317
8351
  }, (e) => {
8318
- K(e, Ks());
8352
+ K(e, qs());
8319
8353
  }), A(b);
8320
8354
  var x = L(b, 2), S = (e) => {
8321
- var t = qs(), n = F(t);
8355
+ var t = Js(), n = F(t);
8322
8356
  A(t), R(() => q(n, `Showing ${B(O).length ?? ""} of ${B(he).length ?? ""}`)), K(e, t);
8323
8357
  };
8324
8358
  J(x, (e) => {
@@ -8345,8 +8379,8 @@ function _c(e, t) {
8345
8379
  };
8346
8380
  }
8347
8381
  let ae = /* @__PURE__ */ M(() => r().isColumnFiltered), oe = /* @__PURE__ */ M(() => r().closeMenus), se = /* @__PURE__ */ M(() => r().autosizeColumn), D = /* @__PURE__ */ M(() => r().autosizeAllColumns), ce = /* @__PURE__ */ M(() => r().resetColumns), le = /* @__PURE__ */ M(() => r().openChooseColumns), ue = /* @__PURE__ */ M(() => r().sortColumnFromMenu), fe = /* @__PURE__ */ M(() => r().clearColumnSort), pe = /* @__PURE__ */ M(() => r().groupByColumnFromMenu), me = /* @__PURE__ */ M(() => r().clearGroupingFromMenu), he = /* @__PURE__ */ M(() => r().columnMenuFacetValues), O = /* @__PURE__ */ M(() => r().columnMenuVisibleFacets), ge = /* @__PURE__ */ M(() => r().isFacetChecked), _e = /* @__PURE__ */ M(() => r().toggleFacetValue), ve = /* @__PURE__ */ M(() => r().isAllFacetsChecked), ye = /* @__PURE__ */ M(() => r().toggleAllFacets), be = /* @__PURE__ */ M(() => r().clearColumnFilter), xe = /* @__PURE__ */ M(() => r().contextMenuFor), Se = /* @__PURE__ */ M(() => r().contextMenuPos), Ce = /* @__PURE__ */ M(() => r().contextMenuItems), we = /* @__PURE__ */ M(() => r().closeContextMenu), Te = /* @__PURE__ */ M(() => r().commentEditFor), Ee = /* @__PURE__ */ M(() => r().saveComment), De = /* @__PURE__ */ M(() => r().removeComment), Oe = /* @__PURE__ */ M(() => r().closeCommentEditor);
8348
- var ke = gc(), Ae = I(ke), je = (e) => {
8349
- var t = Ys();
8382
+ var ke = _c(), Ae = I(ke), je = (e) => {
8383
+ var t = Xs();
8350
8384
  let n;
8351
8385
  var r = F(t, !0);
8352
8386
  A(t), R(() => {
@@ -8357,7 +8391,7 @@ function _c(e, t) {
8357
8391
  B(o) && e(je);
8358
8392
  });
8359
8393
  var Me = L(Ae, 2), Ne = (e) => {
8360
- var t = Xs();
8394
+ var t = Zs();
8361
8395
  H("click", t, function(...e) {
8362
8396
  B(oe)?.apply(this, e);
8363
8397
  }), K(e, t);
@@ -8367,11 +8401,11 @@ function _c(e, t) {
8367
8401
  });
8368
8402
  var Pe = L(Me, 2), Fe = (e) => {
8369
8403
  let a = /* @__PURE__ */ M(() => B(s)), o = /* @__PURE__ */ M(() => B(_).find((e) => e.id === B(a))), l = /* @__PURE__ */ M(() => B(o)?.getCanSort?.() ?? !1), u = /* @__PURE__ */ M(() => B(o)?.columnDef.field != null && B(o)?.columnDef.filterable !== !1), d = /* @__PURE__ */ M(() => r().columnMenuTab);
8370
- var f = oc(), T = F(f), E = (e) => {
8371
- var t = Qs(), n = F(t);
8404
+ var f = sc(), T = F(f), E = (e) => {
8405
+ var t = $s(), n = F(t);
8372
8406
  let i;
8373
8407
  var a = L(n, 2), o = (e) => {
8374
- var t = Zs();
8408
+ var t = Qs();
8375
8409
  let n;
8376
8410
  R(() => {
8377
8411
  n = X(t, 1, "sv-grid-menu-tab", null, n, { "is-active": B(d) === "filter" }), Q(t, "aria-selected", B(d) === "filter");
@@ -8392,9 +8426,9 @@ function _c(e, t) {
8392
8426
  var ee = L(T, 2), te = (e) => {
8393
8427
  n(e, () => B(a));
8394
8428
  }, ne = (e) => {
8395
- var t = ec(), n = L(I(t), 2);
8429
+ var t = tc(), n = L(I(t), 2);
8396
8430
  Y(n, 21, () => B(g).getAllColumns(), (e) => e.id, (e, t) => {
8397
- var n = $s(), i = F(n);
8431
+ var n = ec(), i = F(n);
8398
8432
  Vi(i);
8399
8433
  var a = L(i, 2), o = F(a, !0);
8400
8434
  A(a), A(n), R(() => {
@@ -8410,8 +8444,8 @@ function _c(e, t) {
8410
8444
  }), K(e, n);
8411
8445
  }), A(n), K(e, t);
8412
8446
  }, re = (e) => {
8413
- var n = ac(), r = I(n), o = (e) => {
8414
- var n = tc(), r = I(n), i = F(r);
8447
+ var n = oc(), r = I(n), o = (e) => {
8448
+ var n = nc(), r = I(n), i = F(r);
8415
8449
  oi(F(i), () => t.icon, () => "sort-asc"), A(i), nt(), A(r);
8416
8450
  var o = L(r, 2), s = F(o);
8417
8451
  oi(F(s), () => t.icon, () => "sort-desc"), A(s), nt(), A(o);
@@ -8423,7 +8457,7 @@ function _c(e, t) {
8423
8457
  });
8424
8458
  var s = L(r, 2), c = (e) => {
8425
8459
  let n = /* @__PURE__ */ M(() => B(v)(B(a)));
8426
- var r = nc(), i = L(I(r), 2), o = F(i);
8460
+ var r = rc(), i = L(I(r), 2), o = F(i);
8427
8461
  oi(F(o), () => t.icon, () => "op-startsWith"), A(o), nt(), A(i);
8428
8462
  var s = L(i, 2), c = F(s);
8429
8463
  oi(F(c), () => t.icon, () => "op-greaterThan"), A(c), nt(), A(s);
@@ -8440,7 +8474,7 @@ function _c(e, t) {
8440
8474
  var f = L(u, 2), m = F(f);
8441
8475
  oi(F(m), () => t.icon, () => "autosize"), A(m), nt(), A(f);
8442
8476
  var g = L(f, 2), _ = (e) => {
8443
- var n = rc(), r = L(I(n), 2), i = F(r);
8477
+ var n = ic(), r = L(I(n), 2), i = F(r);
8444
8478
  oi(F(i), () => t.icon, () => "group"), A(i), nt(), A(r);
8445
8479
  var o = L(r, 2), s = F(o);
8446
8480
  oi(F(s), () => t.icon, () => "x"), A(s), nt(), A(o), R((e, t) => {
@@ -8451,7 +8485,7 @@ function _c(e, t) {
8451
8485
  B(i) && e(_);
8452
8486
  });
8453
8487
  var T = L(g, 4), E = (e) => {
8454
- var n = ic();
8488
+ var n = ac();
8455
8489
  let r;
8456
8490
  var i = F(n);
8457
8491
  oi(F(i), () => t.icon, () => "columns"), A(i);
@@ -8480,7 +8514,7 @@ function _c(e, t) {
8480
8514
  B(s) && e(Fe);
8481
8515
  });
8482
8516
  var Ie = L(Pe, 2), Le = (e) => {
8483
- var t = sc();
8517
+ var t = cc();
8484
8518
  n(F(t), () => B(l)), A(t), R(() => Z(t, `left: ${B(u).x}px; top: ${B(u).y}px; max-height: calc(100vh - ${B(u).y}px - 12px);`)), K(e, t);
8485
8519
  };
8486
8520
  J(Ie, (e) => {
@@ -8488,9 +8522,9 @@ function _c(e, t) {
8488
8522
  });
8489
8523
  var Re = L(Ie, 2), ze = (e) => {
8490
8524
  let t = /* @__PURE__ */ M(() => B(g).getAllColumns());
8491
- var n = lc(), i = L(F(n), 2);
8525
+ var n = uc(), i = L(F(n), 2);
8492
8526
  Y(i, 21, () => B(t), (e) => e.id, (e, t) => {
8493
- var n = cc(), i = F(n);
8527
+ var n = lc(), i = F(n);
8494
8528
  Vi(i);
8495
8529
  var a = L(i, 2), o = F(a, !0);
8496
8530
  A(a), A(n), R(() => {
@@ -8511,9 +8545,9 @@ function _c(e, t) {
8511
8545
  });
8512
8546
  var Be = L(Re, 2), Ve = (e) => {
8513
8547
  let n = /* @__PURE__ */ M(() => B(d)), r = /* @__PURE__ */ M(() => B(_).find((e) => e.id === B(n))), i = /* @__PURE__ */ M(() => B(te)(B(r))), o = /* @__PURE__ */ M(() => B(a)[B(n)]?.operator ?? B(ne)(B(r)));
8514
- var s = dc();
8548
+ var s = fc();
8515
8549
  Y(s, 21, () => B(i), (e) => e.value, (e, i) => {
8516
- var a = uc(), s = F(a);
8550
+ var a = dc(), s = F(a);
8517
8551
  oi(F(s), () => t.icon, () => B(i).iconName), A(s);
8518
8552
  var c = L(s);
8519
8553
  A(a), R((e) => {
@@ -8527,12 +8561,12 @@ function _c(e, t) {
8527
8561
  B(d) && e(Ve);
8528
8562
  });
8529
8563
  var He = L(Be, 2), Ue = (e) => {
8530
- var t = mc(), n = I(t), r = L(n, 2);
8564
+ var t = hc(), n = I(t), r = L(n, 2);
8531
8565
  Y(r, 21, () => B(Ce)(), (e) => e.key, (e, t) => {
8532
8566
  var n = G(), r = I(n), i = (e) => {
8533
- K(e, fc());
8567
+ K(e, pc());
8534
8568
  }, a = (e) => {
8535
- var n = pc(), r = F(n, !0);
8569
+ var n = mc(), r = F(n, !0);
8536
8570
  A(n), R(() => {
8537
8571
  n.disabled = B(t).disabled, q(r, B(t).label);
8538
8572
  }), H("click", n, () => {
@@ -8552,7 +8586,7 @@ function _c(e, t) {
8552
8586
  B(xe) && e(Ue);
8553
8587
  });
8554
8588
  var We = L(He, 2), Ge = (e) => {
8555
- var t = hc(), n = I(t), i = L(n, 2), a = F(i);
8589
+ var t = gc(), n = I(t), i = L(n, 2), a = F(i);
8556
8590
  Pn(a), Nn(a, !0);
8557
8591
  var o = L(a, 2), s = F(o), c = L(s, 4), l = L(c, 2);
8558
8592
  A(o), A(i), R(() => Z(i, `left: ${B(Te).x}px; top: ${B(Te).y}px;`)), H("click", n, function(...e) {
@@ -8580,31 +8614,31 @@ Wr([
8580
8614
  ]);
8581
8615
  //#endregion
8582
8616
  //#region src/GridFooter.svelte
8583
- var vc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Count</span> </span>"), yc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), bc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Sum</span> </span>"), xc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Avg</span> </span>"), Sc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Min</span> </span>"), Cc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Max</span> </span>"), wc = /* @__PURE__ */ U("<div class=\"sv-grid-status-bar\" role=\"status\" aria-live=\"polite\"></div>"), Tc = /* @__PURE__ */ U("<div class=\"sv-grid-pagination\" role=\"navigation\" aria-label=\"Pagination\"><label class=\"sv-grid-pagination-pagesize\"><span>Page Size:</span> <select><option>10</option><option>25</option><option>50</option><option>100</option></select></label> <span class=\"sv-grid-pagination-range\"><strong> </strong> to <strong> </strong> of <strong> </strong></span> <div class=\"sv-grid-pagination-nav\"><button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"First page\">⇤</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Previous page\">‹</button> <span class=\"sv-grid-pagination-label\">Page <strong> </strong> of <strong> </strong></span> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Next page\">›</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Last page\">⇥</button></div></div>"), Ec = /* @__PURE__ */ U("<!> <!>", 1);
8584
- function Dc(e, t) {
8617
+ var yc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Count</span> </span>"), bc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), xc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Sum</span> </span>"), Sc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Avg</span> </span>"), Cc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Min</span> </span>"), wc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Max</span> </span>"), Tc = /* @__PURE__ */ U("<div class=\"sv-grid-status-bar\" role=\"status\" aria-live=\"polite\"></div>"), Ec = /* @__PURE__ */ U("<div class=\"sv-grid-pagination\" role=\"navigation\" aria-label=\"Pagination\"><label class=\"sv-grid-pagination-pagesize\"><span>Page Size:</span> <select><option>10</option><option>25</option><option>50</option><option>100</option></select></label> <span class=\"sv-grid-pagination-range\"><strong> </strong> to <strong> </strong> of <strong> </strong></span> <div class=\"sv-grid-pagination-nav\"><button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"First page\">⇤</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Previous page\">‹</button> <span class=\"sv-grid-pagination-label\">Page <strong> </strong> of <strong> </strong></span> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Next page\">›</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Last page\">⇥</button></div></div>"), Dc = /* @__PURE__ */ U("<!> <!>", 1);
8618
+ function Oc(e, t) {
8585
8619
  ft(t, !0);
8586
8620
  let n = /* @__PURE__ */ M(() => t.ctrl.paginationEnabled), r = /* @__PURE__ */ M(() => t.ctrl.paginationState), i = /* @__PURE__ */ M(() => t.ctrl.allRowsBeforePagination), a = /* @__PURE__ */ M(() => t.ctrl.statusBarEnabled), o = /* @__PURE__ */ M(() => t.ctrl.statusBarAggregates), s = /* @__PURE__ */ M(() => t.ctrl.statusBarStats), c = /* @__PURE__ */ M(() => t.ctrl.changePage), l = /* @__PURE__ */ M(() => t.ctrl.goToPage), u = /* @__PURE__ */ M(() => t.ctrl.setPageSize);
8587
- var d = Ec(), f = I(d), p = (e) => {
8621
+ var d = Dc(), f = I(d), p = (e) => {
8588
8622
  let t = /* @__PURE__ */ M(() => B(s));
8589
- var n = wc();
8623
+ var n = Tc();
8590
8624
  Y(n, 20, () => B(o), (e) => e, (e, n) => {
8591
8625
  var r = G(), i = I(r), a = (e) => {
8592
- var n = vc(), r = L(F(n), 1, !0);
8626
+ var n = yc(), r = L(F(n), 1, !0);
8593
8627
  A(n), R((e) => q(r, e), [() => Ka(B(t).count)]), K(e, n);
8594
8628
  }, o = (e) => {
8595
- var n = yc(), r = L(F(n), 1, !0);
8629
+ var n = bc(), r = L(F(n), 1, !0);
8596
8630
  A(n), R((e) => q(r, e), [() => Ka(B(t).numericCount)]), K(e, n);
8597
8631
  }, s = (e) => {
8598
- var n = bc(), r = L(F(n), 1, !0);
8632
+ var n = xc(), r = L(F(n), 1, !0);
8599
8633
  A(n), R((e) => q(r, e), [() => Ka(B(t).sum)]), K(e, n);
8600
8634
  }, c = (e) => {
8601
- var n = xc(), r = L(F(n), 1, !0);
8635
+ var n = Sc(), r = L(F(n), 1, !0);
8602
8636
  A(n), R((e) => q(r, e), [() => Ka(B(t).avg)]), K(e, n);
8603
8637
  }, l = (e) => {
8604
- var n = Sc(), r = L(F(n), 1, !0);
8638
+ var n = Cc(), r = L(F(n), 1, !0);
8605
8639
  A(n), R((e) => q(r, e), [() => Ka(B(t).min)]), K(e, n);
8606
8640
  }, u = (e) => {
8607
- var n = Cc(), r = L(F(n), 1, !0);
8641
+ var n = wc(), r = L(F(n), 1, !0);
8608
8642
  A(n), R((e) => q(r, e), [() => Ka(B(t).max)]), K(e, n);
8609
8643
  };
8610
8644
  J(i, (e) => {
@@ -8617,7 +8651,7 @@ function Dc(e, t) {
8617
8651
  });
8618
8652
  var m = L(f, 2), h = (e) => {
8619
8653
  let t = /* @__PURE__ */ M(() => B(i).length), n = /* @__PURE__ */ M(() => B(r).pageSize), a = /* @__PURE__ */ M(() => Math.max(1, Math.ceil(B(t) / B(n)))), o = /* @__PURE__ */ M(() => Math.min(B(r).pageIndex + 1, B(a))), s = /* @__PURE__ */ M(() => B(t) === 0 ? 0 : (B(o) - 1) * B(n) + 1), d = /* @__PURE__ */ M(() => Math.min(B(t), B(o) * B(n))), f = /* @__PURE__ */ M(() => B(o) <= 1), p = /* @__PURE__ */ M(() => B(o) >= B(a));
8620
- var m = Tc(), h = F(m), g = L(F(h), 2), _ = F(g);
8654
+ var m = Ec(), h = F(m), g = L(F(h), 2), _ = F(g);
8621
8655
  _.value = _.__value = "10";
8622
8656
  var v = L(_);
8623
8657
  v.value = v.__value = "25";
@@ -8653,10 +8687,10 @@ function Dc(e, t) {
8653
8687
  Wr(["change", "click"]);
8654
8688
  //#endregion
8655
8689
  //#region src/SvGrid.svelte
8656
- var Oc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-loading\" role=\"status\">Loading grid data...</div>"), kc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-error\" role=\"alert\"> </div>"), Ac = /* @__PURE__ */ W("<path d=\"M8 10l4-4 4 4\"></path><path d=\"M8 14l4 4 4-4\"></path>", 1), jc = /* @__PURE__ */ W("<path d=\"M6 14l6-6 6 6\"></path>"), Mc = /* @__PURE__ */ W("<path d=\"M6 10l6 6 6-6\"></path>"), Nc = /* @__PURE__ */ W("<path d=\"M3 5h18l-7 8v6l-4 2v-8z\"></path>"), Pc = /* @__PURE__ */ W("<path d=\"M4 7h16\"></path><path d=\"M4 12h16\"></path><path d=\"M4 17h16\"></path>", 1), Fc = /* @__PURE__ */ W("<path d=\"M12 3l8 4.5-8 4.5-8-4.5z\"></path><path d=\"M4 12l8 4.5 8-4.5\"></path><path d=\"M4 16.5l8 4.5 8-4.5\"></path>", 1), Ic = /* @__PURE__ */ W("<path d=\"M18 6L6 18\"></path><path d=\"M6 6l12 12\"></path>", 1), Lc = /* @__PURE__ */ W("<path d=\"M6 9l6 6 6-6\"></path>"), Rc = /* @__PURE__ */ W("<circle cx=\"11\" cy=\"11\" r=\"6\"></circle><path d=\"M20 20l-4.5-4.5\"></path>", 1), zc = /* @__PURE__ */ W("<path d=\"M5 9.5h14\"></path><path d=\"M5 14.5h14\"></path>", 1), Bc = /* @__PURE__ */ W("<path d=\"M5 5v14\"></path><path d=\"M9 9h10\"></path><path d=\"M9 15h7\"></path>", 1), Vc = /* @__PURE__ */ W("<path d=\"M8 5l9 7-9 7\"></path>"), Hc = /* @__PURE__ */ W("<path d=\"M16 5l-9 7 9 7\"></path>"), Uc = /* @__PURE__ */ W("<circle cx=\"12\" cy=\"12\" r=\"8\"></circle><path d=\"M6.5 6.5l11 11\"></path>", 1), Wc = /* @__PURE__ */ W("<path d=\"M3 12h18\"></path><path d=\"M3 12l4-4\"></path><path d=\"M3 12l4 4\"></path><path d=\"M21 12l-4-4\"></path><path d=\"M21 12l-4 4\"></path>", 1), Gc = /* @__PURE__ */ W("<rect x=\"3\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"10\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect>", 1), Kc = /* @__PURE__ */ W("<path d=\"M3 4v6h6\"></path><path d=\"M3.5 10A9 9 0 1 0 6 5.3\"></path>", 1), qc = /* @__PURE__ */ W("<svg class=\"sv-grid-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><!></svg>"), Jc = /* @__PURE__ */ U("<div class=\"sv-grid-checkbox sv-grid-checkbox-readonly\" role=\"checkbox\" aria-readonly=\"true\"></div>"), Yc = /* @__PURE__ */ U("<span class=\"sv-grid-chip\"> </span>"), Xc = /* @__PURE__ */ U("<div class=\"sv-grid-chips-display\"></div>"), Zc = /* @__PURE__ */ W("<path fill-opacity=\"0.18\" stroke=\"none\"></path>"), Qc = /* @__PURE__ */ W("<path fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), $c = /* @__PURE__ */ W("<rect rx=\"0.5\"></rect>"), el = /* @__PURE__ */ W("<circle></circle>"), tl = /* @__PURE__ */ W("<svg class=\"sv-grid-sparkline\" preserveAspectRatio=\"none\" role=\"img\"><!><!><!><!></svg>"), nl = /* @__PURE__ */ U("<span class=\"sv-grid-group-child-indent\" aria-hidden=\"true\"></span>"), rl = /* @__PURE__ */ U("<!> <!>", 1), il = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bg\"></div>"), al = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bar\"></div>"), ol = /* @__PURE__ */ U("<span class=\"sv-grid-cf-icon\"> </span>"), sl = /* @__PURE__ */ U("<!> <!> <span class=\"sv-grid-cf-content\"><!> <!></span>", 1), cl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), ll = /* @__PURE__ */ U("<button type=\"button\" role=\"radio\">★</button>"), ul = /* @__PURE__ */ U("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), dl = /* @__PURE__ */ U("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), fl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), pl = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), ml = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), hl = /* @__PURE__ */ U("<input type=\"color\"/>"), gl = /* @__PURE__ */ U("<input/>"), _l = /* @__PURE__ */ U("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), vl = /* @__PURE__ */ U("<option> </option>"), yl = /* @__PURE__ */ U("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), bl = /* @__PURE__ */ U("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), xl = /* @__PURE__ */ U("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), Sl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), Cl = /* @__PURE__ */ U("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), wl = /* @__PURE__ */ U("<span class=\"sv-grid-group-agg\"><span class=\"sv-grid-group-agg-label\"> </span> </span>"), Tl = /* @__PURE__ */ U("<div class=\"sv-grid-group-content\"><button type=\"button\" class=\"sv-grid-group-toggle\"> </button> <span class=\"sv-grid-group-label\"> </span> <span class=\"sv-grid-group-count\"> </span> <!></div>"), El = /* @__PURE__ */ U("<tr><td class=\"sv-grid-cell sv-grid-detail-cell\"><!></td></tr>"), Dl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), Ol = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"></td>"), kl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Al = /* @__PURE__ */ U("<td> </td>"), jl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Ml = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Nl = /* @__PURE__ */ U("<label class=\"sv-grid-global-filter\">Filter all rows <input placeholder=\"Type to filter...\"/></label>"), Pl = /* @__PURE__ */ U("<div class=\"sv-grid-toolbar\"><button type=\"button\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"6\" height=\"16\" rx=\"1\"></rect><rect x=\"11\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect></svg> Columns &amp; Filters</button></div>"), Fl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-hidden=\"true\"></th>"), Il = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\" aria-hidden=\"true\"></th>"), Ll = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-group-header-label\"> </span> <svg class=\"sv-grid-group-caret\" viewBox=\"0 0 16 16\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"4 6 8 10 12 6\"></polyline></svg></button>"), Rl = /* @__PURE__ */ U("<span class=\"sv-grid-group-header-label\"> </span>"), zl = /* @__PURE__ */ U("<th><!></th>"), Bl = /* @__PURE__ */ U("<tr><!><!><!></tr>"), Vl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-label=\"Row number\"><span class=\"sv-grid-row-number-head\">#</span></th>"), Hl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select all rows\"></button></th>"), Ul = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Wl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Gl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Kl = /* @__PURE__ */ U("<div class=\"sv-grid-header-custom\" role=\"button\" tabindex=\"-1\"><!> <!></div>"), ql = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Jl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Yl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-hint\"><!></span>"), Xl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-header-sort\"><span class=\"sv-grid-header-label\"> </span> <!></button>"), Zl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-flag\" title=\"Grouped\"><!></span>"), Ql = /* @__PURE__ */ U("<button type=\"button\" aria-label=\"Filter\" aria-haspopup=\"menu\"><!></button>"), $l = /* @__PURE__ */ U("<input class=\"sv-grid-column-filter\" placeholder=\"Filter\"/>"), eu = /* @__PURE__ */ U("<div class=\"sv-grid-header-cell\"><!> <!> <!> <button type=\"button\" aria-label=\"Column menu\" aria-haspopup=\"menu\"><!></button></div> <!> <div role=\"separator\" aria-orientation=\"vertical\" aria-label=\"Resize column\"></div>", 1), tu = /* @__PURE__ */ U("<th><!></th>"), nu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\"></th>"), iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"></th>"), au = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), ou = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value sv-grid-filter-value-to\" placeholder=\"To\"/>"), su = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value\"/> <!>", 1), cu = /* @__PURE__ */ U("<th class=\"sv-grid-column\"><div class=\"sv-grid-filter-row-control\"><button type=\"button\"><span class=\"sv-grid-header-icon\"><!></span> <span class=\"sv-grid-caret\"><!></span></button> <!></div></th>"), lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), uu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), du = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr> <!>", 1), fu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-top-body\" role=\"rowgroup\"></tbody>"), pu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-empty-row\"><td class=\"sv-grid-cell sv-grid-empty-cell\"> </td></tr>"), mu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), hu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), gu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), _u = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), vu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), yu = /* @__PURE__ */ U("<div class=\"sv-grid-fill-handle\" role=\"button\" aria-label=\"Fill handle\"></div>"), bu = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), xu = /* @__PURE__ */ U("<td><!> <!> <!></td>"), Su = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Cu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), wu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), Tu = /* @__PURE__ */ U("<!> <!> <!>", 1), Eu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), Du = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), Ou = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), ku = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Au = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), ju = /* @__PURE__ */ U("<td><!> <!></td>"), Mu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Nu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Pu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-bottom-body\" role=\"rowgroup\"></tbody>"), Fu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-row-number-column\"></th>"), Iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-selection-column\"></th>"), Lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column\"> </th>"), zu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Bu = /* @__PURE__ */ U("<tfoot class=\"sv-grid-foot\" role=\"rowgroup\"><tr><!><!><!><!><!></tr></tfoot>"), Vu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner\" aria-hidden=\"true\"></div>"), Hu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Uu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Wu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner-br\" aria-hidden=\"true\"></div>"), Gu = /* @__PURE__ */ U("<div class=\"sv-grid-find\" role=\"search\" aria-label=\"Find in grid\"><svg class=\"sv-grid-find-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><circle cx=\"7\" cy=\"7\" r=\"4.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"></circle><line x1=\"10.2\" y1=\"10.2\" x2=\"14\" y2=\"14\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></line></svg> <input class=\"sv-grid-find-input\" type=\"search\" placeholder=\"Find in grid…\"/> <span class=\"sv-grid-find-count\"> </span> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Previous match\">↑</button> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Next match\">↓</button> <button type=\"button\" class=\"sv-grid-find-close\" aria-label=\"Close find\">✕</button></div>"), Ku = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-cell\"><span class=\"sv-grid-skeleton-bar\"></span></div>"), qu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-row\"></div>"), Ju = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton\" aria-hidden=\"true\"></div>"), Yu = /* @__PURE__ */ U("<div class=\"sv-grid-loading-overlay\" role=\"status\" aria-live=\"polite\"><div class=\"sv-grid-loading-bar\"></div> <!> <span class=\"sv-grid-sr-only\">Loading…</span></div>"), Xu = /* @__PURE__ */ U("<li class=\"sv-grid-tool-panel-item\"><label class=\"sv-grid-tool-panel-vis\"><input type=\"checkbox\"/> <span class=\"sv-grid-tool-panel-name\"> </span></label> <span class=\"sv-grid-tool-panel-actions\"><button type=\"button\">⊞</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move down\">↓</button></span></li>"), Zu = /* @__PURE__ */ U("<ul class=\"sv-grid-tool-panel-list\"></ul>"), Qu = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-tp-filter-clear\" title=\"Clear filter\">✕</button>"), $u = /* @__PURE__ */ U("<option> </option>"), ed = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\" placeholder=\"To\"/>"), td = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\"/> <!>", 1), nd = /* @__PURE__ */ U("<div><div class=\"sv-grid-tp-filter-head\"><span class=\"sv-grid-tp-filter-name\"> </span> <!></div> <select class=\"sv-grid-tp-filter-op\"></select> <!></div>"), rd = /* @__PURE__ */ U("<div class=\"sv-grid-tool-panel-filters\"></div>"), id = /* @__PURE__ */ U("<aside class=\"sv-grid-tool-panel\" aria-label=\"Tool panel\"><div class=\"sv-grid-tool-panel-head\"><span> </span> <button type=\"button\" class=\"sv-grid-tool-panel-close\" aria-label=\"Close\">✕</button></div> <div class=\"sv-grid-tool-panel-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">Columns</button> <button type=\"button\" role=\"tab\">Filters</button></div> <!></aside>"), ad = /* @__PURE__ */ U("<div><!> <!> <div class=\"sv-grid-shell\"><div><table><thead class=\"sv-grid-head\" role=\"rowgroup\"><!><!></thead><!><tbody class=\"sv-grid-body\" role=\"rowgroup\"><!></tbody><!><!></table></div> <!> <!> <!> <!></div> <!> <!> <!> <!></div> <!>", 1);
8657
- function od(e, t) {
8690
+ var kc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-loading\" role=\"status\">Loading grid data...</div>"), Ac = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-error\" role=\"alert\"> </div>"), jc = /* @__PURE__ */ W("<path d=\"M8 10l4-4 4 4\"></path><path d=\"M8 14l4 4 4-4\"></path>", 1), Mc = /* @__PURE__ */ W("<path d=\"M6 14l6-6 6 6\"></path>"), Nc = /* @__PURE__ */ W("<path d=\"M6 10l6 6 6-6\"></path>"), Pc = /* @__PURE__ */ W("<path d=\"M3 5h18l-7 8v6l-4 2v-8z\"></path>"), Fc = /* @__PURE__ */ W("<path d=\"M4 7h16\"></path><path d=\"M4 12h16\"></path><path d=\"M4 17h16\"></path>", 1), Ic = /* @__PURE__ */ W("<path d=\"M12 3l8 4.5-8 4.5-8-4.5z\"></path><path d=\"M4 12l8 4.5 8-4.5\"></path><path d=\"M4 16.5l8 4.5 8-4.5\"></path>", 1), Lc = /* @__PURE__ */ W("<path d=\"M18 6L6 18\"></path><path d=\"M6 6l12 12\"></path>", 1), Rc = /* @__PURE__ */ W("<path d=\"M6 9l6 6 6-6\"></path>"), zc = /* @__PURE__ */ W("<circle cx=\"11\" cy=\"11\" r=\"6\"></circle><path d=\"M20 20l-4.5-4.5\"></path>", 1), Bc = /* @__PURE__ */ W("<path d=\"M5 9.5h14\"></path><path d=\"M5 14.5h14\"></path>", 1), Vc = /* @__PURE__ */ W("<path d=\"M5 5v14\"></path><path d=\"M9 9h10\"></path><path d=\"M9 15h7\"></path>", 1), Hc = /* @__PURE__ */ W("<path d=\"M8 5l9 7-9 7\"></path>"), Uc = /* @__PURE__ */ W("<path d=\"M16 5l-9 7 9 7\"></path>"), Wc = /* @__PURE__ */ W("<circle cx=\"12\" cy=\"12\" r=\"8\"></circle><path d=\"M6.5 6.5l11 11\"></path>", 1), Gc = /* @__PURE__ */ W("<path d=\"M3 12h18\"></path><path d=\"M3 12l4-4\"></path><path d=\"M3 12l4 4\"></path><path d=\"M21 12l-4-4\"></path><path d=\"M21 12l-4 4\"></path>", 1), Kc = /* @__PURE__ */ W("<rect x=\"3\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"10\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect>", 1), qc = /* @__PURE__ */ W("<path d=\"M3 4v6h6\"></path><path d=\"M3.5 10A9 9 0 1 0 6 5.3\"></path>", 1), Jc = /* @__PURE__ */ W("<svg class=\"sv-grid-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><!></svg>"), Yc = /* @__PURE__ */ U("<div class=\"sv-grid-checkbox sv-grid-checkbox-readonly\" role=\"checkbox\" aria-readonly=\"true\"></div>"), Xc = /* @__PURE__ */ U("<span class=\"sv-grid-chip\"> </span>"), Zc = /* @__PURE__ */ U("<div class=\"sv-grid-chips-display\"></div>"), Qc = /* @__PURE__ */ W("<path fill-opacity=\"0.18\" stroke=\"none\"></path>"), $c = /* @__PURE__ */ W("<path fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), el = /* @__PURE__ */ W("<rect rx=\"0.5\"></rect>"), tl = /* @__PURE__ */ W("<circle></circle>"), nl = /* @__PURE__ */ W("<svg class=\"sv-grid-sparkline\" preserveAspectRatio=\"none\" role=\"img\"><!><!><!><!></svg>"), rl = /* @__PURE__ */ U("<span class=\"sv-grid-group-child-indent\" aria-hidden=\"true\"></span>"), il = /* @__PURE__ */ U("<!> <!>", 1), al = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bg\"></div>"), ol = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bar\"></div>"), sl = /* @__PURE__ */ U("<span class=\"sv-grid-cf-icon\"> </span>"), cl = /* @__PURE__ */ U("<!> <!> <span class=\"sv-grid-cf-content\"><!> <!></span>", 1), ll = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), ul = /* @__PURE__ */ U("<button type=\"button\" role=\"radio\">★</button>"), dl = /* @__PURE__ */ U("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), fl = /* @__PURE__ */ U("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), pl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ml = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), hl = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), gl = /* @__PURE__ */ U("<input type=\"color\"/>"), _l = /* @__PURE__ */ U("<input/>"), vl = /* @__PURE__ */ U("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), yl = /* @__PURE__ */ U("<option> </option>"), bl = /* @__PURE__ */ U("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), xl = /* @__PURE__ */ U("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), Sl = /* @__PURE__ */ U("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), Cl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), wl = /* @__PURE__ */ U("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), Tl = /* @__PURE__ */ U("<span class=\"sv-grid-group-agg\"><span class=\"sv-grid-group-agg-label\"> </span> </span>"), El = /* @__PURE__ */ U("<div class=\"sv-grid-group-content\"><button type=\"button\" class=\"sv-grid-group-toggle\"> </button> <span class=\"sv-grid-group-label\"> </span> <span class=\"sv-grid-group-count\"> </span> <!></div>"), Dl = /* @__PURE__ */ U("<tr><td class=\"sv-grid-cell sv-grid-detail-cell\"><!></td></tr>"), Ol = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), kl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"></td>"), Al = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), jl = /* @__PURE__ */ U("<td> </td>"), Ml = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Nl = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Pl = /* @__PURE__ */ U("<label class=\"sv-grid-global-filter\">Filter all rows <input placeholder=\"Type to filter...\"/></label>"), Fl = /* @__PURE__ */ U("<div class=\"sv-grid-toolbar\"><button type=\"button\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"6\" height=\"16\" rx=\"1\"></rect><rect x=\"11\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect></svg> Columns &amp; Filters</button></div>"), Il = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-hidden=\"true\"></th>"), Ll = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\" aria-hidden=\"true\"></th>"), Rl = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-group-header-label\"> </span> <svg class=\"sv-grid-group-caret\" viewBox=\"0 0 16 16\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"4 6 8 10 12 6\"></polyline></svg></button>"), zl = /* @__PURE__ */ U("<span class=\"sv-grid-group-header-label\"> </span>"), Bl = /* @__PURE__ */ U("<th><!></th>"), Vl = /* @__PURE__ */ U("<tr><!><!><!></tr>"), Hl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-label=\"Row number\"><span class=\"sv-grid-row-number-head\">#</span></th>"), Ul = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select all rows\"></button></th>"), Wl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Gl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Kl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), ql = /* @__PURE__ */ U("<div class=\"sv-grid-header-custom\" role=\"button\" tabindex=\"-1\"><!> <!></div>"), Jl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Yl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Xl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-hint\"><!></span>"), Zl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-header-sort\"><span class=\"sv-grid-header-label\"> </span> <!></button>"), Ql = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-flag\" title=\"Grouped\"><!></span>"), $l = /* @__PURE__ */ U("<button type=\"button\" aria-label=\"Filter\" aria-haspopup=\"menu\"><!></button>"), eu = /* @__PURE__ */ U("<input class=\"sv-grid-column-filter\" placeholder=\"Filter\"/>"), tu = /* @__PURE__ */ U("<div class=\"sv-grid-header-cell\"><!> <!> <!> <button type=\"button\" aria-label=\"Column menu\" aria-haspopup=\"menu\"><!></button></div> <!> <div role=\"separator\" aria-orientation=\"vertical\" aria-label=\"Resize column\"></div>", 1), nu = /* @__PURE__ */ U("<th><!></th>"), ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\"></th>"), au = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"></th>"), ou = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), su = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value sv-grid-filter-value-to\" placeholder=\"To\"/>"), cu = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value\"/> <!>", 1), lu = /* @__PURE__ */ U("<th class=\"sv-grid-column\"><div class=\"sv-grid-filter-row-control\"><button type=\"button\"><span class=\"sv-grid-header-icon\"><!></span> <span class=\"sv-grid-caret\"><!></span></button> <!></div></th>"), uu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), du = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), fu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr> <!>", 1), pu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-top-body\" role=\"rowgroup\"></tbody>"), mu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-empty-row\"><td class=\"sv-grid-cell sv-grid-empty-cell\"> </td></tr>"), hu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), gu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), _u = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), vu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), yu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), bu = /* @__PURE__ */ U("<div class=\"sv-grid-fill-handle\" role=\"button\" aria-label=\"Fill handle\"></div>"), xu = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), Su = /* @__PURE__ */ U("<td><!> <!> <!></td>"), Cu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), wu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Tu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), Eu = /* @__PURE__ */ U("<!> <!> <!>", 1), Du = /* @__PURE__ */ U("<tr><td><!></td></tr>"), Ou = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), ku = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), Au = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), ju = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), Mu = /* @__PURE__ */ U("<td><!> <!></td>"), Nu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Pu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Fu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-bottom-body\" role=\"rowgroup\"></tbody>"), Iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-row-number-column\"></th>"), Lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-selection-column\"></th>"), Ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), zu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column\"> </th>"), Bu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Vu = /* @__PURE__ */ U("<tfoot class=\"sv-grid-foot\" role=\"rowgroup\"><tr><!><!><!><!><!></tr></tfoot>"), Hu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner\" aria-hidden=\"true\"></div>"), Uu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Wu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Gu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner-br\" aria-hidden=\"true\"></div>"), Ku = /* @__PURE__ */ U("<div class=\"sv-grid-find\" role=\"search\" aria-label=\"Find in grid\"><svg class=\"sv-grid-find-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><circle cx=\"7\" cy=\"7\" r=\"4.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"></circle><line x1=\"10.2\" y1=\"10.2\" x2=\"14\" y2=\"14\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></line></svg> <input class=\"sv-grid-find-input\" type=\"search\" placeholder=\"Find in grid…\"/> <span class=\"sv-grid-find-count\"> </span> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Previous match\">↑</button> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Next match\">↓</button> <button type=\"button\" class=\"sv-grid-find-close\" aria-label=\"Close find\">✕</button></div>"), qu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-cell\"><span class=\"sv-grid-skeleton-bar\"></span></div>"), Ju = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-row\"></div>"), Yu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton\" aria-hidden=\"true\"></div>"), Xu = /* @__PURE__ */ U("<div class=\"sv-grid-loading-overlay\" role=\"status\" aria-live=\"polite\"><div class=\"sv-grid-loading-bar\"></div> <!> <span class=\"sv-grid-sr-only\">Loading…</span></div>"), Zu = /* @__PURE__ */ U("<li class=\"sv-grid-tool-panel-item\"><label class=\"sv-grid-tool-panel-vis\"><input type=\"checkbox\"/> <span class=\"sv-grid-tool-panel-name\"> </span></label> <span class=\"sv-grid-tool-panel-actions\"><button type=\"button\">⊞</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move down\">↓</button></span></li>"), Qu = /* @__PURE__ */ U("<ul class=\"sv-grid-tool-panel-list\"></ul>"), $u = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-tp-filter-clear\" title=\"Clear filter\">✕</button>"), ed = /* @__PURE__ */ U("<option> </option>"), td = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\" placeholder=\"To\"/>"), nd = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\"/> <!>", 1), rd = /* @__PURE__ */ U("<div><div class=\"sv-grid-tp-filter-head\"><span class=\"sv-grid-tp-filter-name\"> </span> <!></div> <select class=\"sv-grid-tp-filter-op\"></select> <!></div>"), id = /* @__PURE__ */ U("<div class=\"sv-grid-tool-panel-filters\"></div>"), ad = /* @__PURE__ */ U("<aside class=\"sv-grid-tool-panel\" aria-label=\"Tool panel\"><div class=\"sv-grid-tool-panel-head\"><span> </span> <button type=\"button\" class=\"sv-grid-tool-panel-close\" aria-label=\"Close\">✕</button></div> <div class=\"sv-grid-tool-panel-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">Columns</button> <button type=\"button\" role=\"tab\">Filters</button></div> <!></aside>"), od = /* @__PURE__ */ U("<div><!> <!> <div class=\"sv-grid-shell\"><div><table><thead class=\"sv-grid-head\" role=\"rowgroup\"><!><!></thead><!><tbody class=\"sv-grid-body\" role=\"rowgroup\"><!></tbody><!><!></table></div> <!> <!> <!> <!></div> <!> <!> <!> <!></div> <!>", 1);
8691
+ function sd(e, t) {
8658
8692
  ft(t, !0);
8659
- let n = Is(/* @__PURE__ */ ra(t, [
8693
+ let n = Ls(/* @__PURE__ */ ra(t, [
8660
8694
  "$$slots",
8661
8695
  "$$events",
8662
8696
  "$$legacy"
@@ -8716,56 +8750,56 @@ function od(e, t) {
8716
8750
  B(jt)?.apply(this, e);
8717
8751
  });
8718
8752
  var rn = I(nn), an = (e) => {
8719
- K(e, Oc());
8753
+ K(e, kc());
8720
8754
  }, on = (e) => {
8721
- var n = kc(), r = F(n, !0);
8755
+ var n = Ac(), r = F(n, !0);
8722
8756
  A(n), R(() => q(r, t.error)), K(e, n);
8723
8757
  }, sn = (e) => {
8724
8758
  let fe = (e, t = de) => {
8725
- var n = qc(), r = F(n), i = (e) => {
8726
- var t = Ac();
8759
+ var n = Jc(), r = F(n), i = (e) => {
8760
+ var t = jc();
8727
8761
  nt(), K(e, t);
8728
8762
  }, a = (e) => {
8729
- K(e, jc());
8730
- }, o = (e) => {
8731
8763
  K(e, Mc());
8732
- }, s = (e) => {
8764
+ }, o = (e) => {
8733
8765
  K(e, Nc());
8766
+ }, s = (e) => {
8767
+ K(e, Pc());
8734
8768
  }, c = (e) => {
8735
- var t = Pc();
8769
+ var t = Fc();
8736
8770
  nt(2), K(e, t);
8737
8771
  }, l = (e) => {
8738
- var t = Fc();
8772
+ var t = Ic();
8739
8773
  nt(2), K(e, t);
8740
8774
  }, u = (e) => {
8741
- var t = Ic();
8775
+ var t = Lc();
8742
8776
  nt(), K(e, t);
8743
8777
  }, d = (e) => {
8744
- K(e, Lc());
8778
+ K(e, Rc());
8745
8779
  }, f = (e) => {
8746
- var t = Rc();
8780
+ var t = zc();
8747
8781
  nt(), K(e, t);
8748
8782
  }, p = (e) => {
8749
- var t = zc();
8783
+ var t = Bc();
8750
8784
  nt(), K(e, t);
8751
8785
  }, m = (e) => {
8752
- var t = Bc();
8786
+ var t = Vc();
8753
8787
  nt(2), K(e, t);
8754
8788
  }, h = (e) => {
8755
- K(e, Vc());
8756
- }, g = (e) => {
8757
8789
  K(e, Hc());
8790
+ }, g = (e) => {
8791
+ K(e, Uc());
8758
8792
  }, _ = (e) => {
8759
- var t = Uc();
8793
+ var t = Wc();
8760
8794
  nt(), K(e, t);
8761
8795
  }, v = (e) => {
8762
- var t = Wc();
8796
+ var t = Gc();
8763
8797
  nt(4), K(e, t);
8764
8798
  }, y = (e) => {
8765
- var t = Gc();
8799
+ var t = Kc();
8766
8800
  nt(2), K(e, t);
8767
8801
  }, b = (e) => {
8768
- var t = Kc();
8802
+ var t = qc();
8769
8803
  nt(), K(e, t);
8770
8804
  };
8771
8805
  J(r, (e) => {
@@ -8773,16 +8807,16 @@ function od(e, t) {
8773
8807
  }), A(n), K(e, n);
8774
8808
  }, pe = (e, t = de, n = de, r = de) => {
8775
8809
  var i = G(), a = I(i), o = (e) => {
8776
- var t = Jc();
8810
+ var t = Yc();
8777
8811
  R((e, n) => {
8778
8812
  Q(t, "aria-checked", e), Q(t, "aria-label", n);
8779
8813
  }, [() => !!r(), () => B(je)(n())]), K(e, t);
8780
8814
  }, s = (e) => {
8781
8815
  let i = /* @__PURE__ */ M(() => Array.isArray(r()) ? r() : r() == null || r() === "" ? [] : [r()]), a = /* @__PURE__ */ M(() => B(lt)(n(), t())), o = /* @__PURE__ */ M(() => n().columnDef.editorType === "chips"), s = /* @__PURE__ */ M(() => B(i).some((e) => to(B(a), e)));
8782
8816
  var c = G(), l = I(c), u = (e) => {
8783
- var t = Xc();
8817
+ var t = Zc();
8784
8818
  Y(t, 21, () => B(i), (e) => String(e), (e, t) => {
8785
- var n = Yc(), r = F(n, !0);
8819
+ var n = Xc(), r = F(n, !0);
8786
8820
  A(n), R((e, t) => {
8787
8821
  Z(n, e), q(r, t);
8788
8822
  }, [() => no(to(B(a), B(t))), () => eo(B(a), B(t))]), K(e, n);
@@ -8798,8 +8832,8 @@ function od(e, t) {
8798
8832
  let t = /* @__PURE__ */ M(() => Oa(Da(r()), n().columnDef.sparkline));
8799
8833
  var i = G(), a = I(i), o = (e) => {
8800
8834
  let n = /* @__PURE__ */ M(() => Da(r()));
8801
- var i = tl(), a = F(i), o = (e) => {
8802
- var n = Zc();
8835
+ var i = nl(), a = F(i), o = (e) => {
8836
+ var n = Qc();
8803
8837
  R(() => {
8804
8838
  Q(n, "d", B(t).areaPath), Q(n, "fill", B(t).color);
8805
8839
  }), K(e, n);
@@ -8808,7 +8842,7 @@ function od(e, t) {
8808
8842
  B(t).areaPath && e(o);
8809
8843
  });
8810
8844
  var s = L(a), c = (e) => {
8811
- var n = Qc();
8845
+ var n = $c();
8812
8846
  R(() => {
8813
8847
  Q(n, "d", B(t).linePath), Q(n, "stroke", B(t).color), Q(n, "stroke-width", B(t).lineWidth);
8814
8848
  }), K(e, n);
@@ -8818,13 +8852,13 @@ function od(e, t) {
8818
8852
  });
8819
8853
  var l = L(s);
8820
8854
  Y(l, 17, () => B(t).bars, si, (e, n) => {
8821
- var r = $c();
8855
+ var r = el();
8822
8856
  R(() => {
8823
8857
  Q(r, "x", B(n).x), Q(r, "y", B(n).y), Q(r, "width", B(n).w), Q(r, "height", B(n).h), Q(r, "fill", B(n).negative ? B(t).negativeColor : B(t).color);
8824
8858
  }), K(e, r);
8825
8859
  });
8826
8860
  var u = L(l), d = (e) => {
8827
- var n = el();
8861
+ var n = tl();
8828
8862
  R(() => {
8829
8863
  Q(n, "cx", B(t).lastPoint.x), Q(n, "cy", B(t).lastPoint.y), Q(n, "r", B(t).lineWidth + .5), Q(n, "fill", B(t).color);
8830
8864
  }), K(e, n);
@@ -8840,8 +8874,8 @@ function od(e, t) {
8840
8874
  }), K(e, i);
8841
8875
  }, l = (e) => {
8842
8876
  let i = /* @__PURE__ */ M(() => n().columnDef.cell);
8843
- var a = rl(), o = I(a), s = (e) => {
8844
- var n = nl();
8877
+ var a = il(), o = I(a), s = (e) => {
8878
+ var n = rl();
8845
8879
  R(() => Z(n, `width: ${t().depth * 20}px;`)), K(e, n);
8846
8880
  };
8847
8881
  J(o, (e) => {
@@ -8896,22 +8930,22 @@ function od(e, t) {
8896
8930
  }, me = (e, t = de, n = de, r = de) => {
8897
8931
  let i = /* @__PURE__ */ M(() => B(we)(t(), n(), r()));
8898
8932
  var a = G(), o = I(a), s = (e) => {
8899
- var a = sl(), o = I(a), s = (e) => {
8900
- var t = il();
8933
+ var a = cl(), o = I(a), s = (e) => {
8934
+ var t = al();
8901
8935
  R(() => Z(t, `background:${B(i).background}`)), K(e, t);
8902
8936
  };
8903
8937
  J(o, (e) => {
8904
8938
  B(i).background && e(s);
8905
8939
  });
8906
8940
  var c = L(o, 2), l = (e) => {
8907
- var t = al();
8941
+ var t = ol();
8908
8942
  R(() => Z(t, `width:${B(i).dataBar.percent}%;background:${B(i).dataBar.color}`)), K(e, t);
8909
8943
  };
8910
8944
  J(c, (e) => {
8911
8945
  B(i).dataBar && e(l);
8912
8946
  });
8913
8947
  var u = L(c, 2), d = F(u), f = (e) => {
8914
- var t = ol(), n = F(t, !0);
8948
+ var t = sl(), n = F(t, !0);
8915
8949
  A(t), R(() => q(n, B(i).icon)), K(e, t);
8916
8950
  };
8917
8951
  J(d, (e) => {
@@ -8961,7 +8995,7 @@ function od(e, t) {
8961
8995
  }
8962
8996
  K(e, a);
8963
8997
  }, s = (e) => {
8964
- var t = cl();
8998
+ var t = ll();
8965
8999
  R((e) => Q(t, "aria-checked", e), [() => !!n.editingCell.value]), H("click", t, (e) => {
8966
9000
  e.stopPropagation();
8967
9001
  let t = !n.editingCell?.value;
@@ -9009,7 +9043,7 @@ function od(e, t) {
9009
9043
  ge(e, () => B(i), () => B(a), () => B(o));
9010
9044
  }, u = (e) => {
9011
9045
  let t = /* @__PURE__ */ M(() => Math.max(0, Math.min(5, Math.round(Number(n.editingCell?.value) || 0))));
9012
- var r = ul(), i = F(r);
9046
+ var r = dl(), i = F(r);
9013
9047
  Y(i, 16, () => [
9014
9048
  1,
9015
9049
  2,
@@ -9017,7 +9051,7 @@ function od(e, t) {
9017
9051
  4,
9018
9052
  5
9019
9053
  ], (e) => e, (e, r) => {
9020
- var i = ll();
9054
+ var i = ul();
9021
9055
  R(() => {
9022
9056
  Q(i, "aria-checked", B(t) >= r), Q(i, "aria-label", `${r} ${r === 1 ? "star" : "stars"}`), X(i, 1, `sv-grid-rating-star ${B(t) >= r ? "sv-grid-rating-star-on" : ""}`);
9023
9057
  }), H("mousedown", i, (e) => e.preventDefault()), H("click", i, (e) => {
@@ -9088,7 +9122,7 @@ function od(e, t) {
9088
9122
  });
9089
9123
  }
9090
9124
  }, p = (e) => {
9091
- var t = dl();
9125
+ var t = fl();
9092
9126
  Pn(t), vi(t, (e) => B(Rt)?.(e)), R((e) => Hi(t, e), [() => String(n.editingCell?.value ?? "")]), H("pointerdown", t, (e) => e.stopPropagation()), H("input", t, (e) => B(It)(e.currentTarget.value)), H("keydown", t, (e) => {
9093
9127
  if (e.stopPropagation(), e.key === "Escape") {
9094
9128
  e.preventDefault(), n.editingCell = null, n.gridRootEl?.focus({ preventScroll: !0 });
@@ -9098,12 +9132,12 @@ function od(e, t) {
9098
9132
  }), V("blur", t, () => B(Ft)()), K(e, t);
9099
9133
  }, m = (e) => {
9100
9134
  let i = /* @__PURE__ */ M(() => B(lt)(t(), r())), a = /* @__PURE__ */ M(() => String(n.editingCell?.value ?? "")), o = /* @__PURE__ */ M(() => B(a).trim() ? B(i).filter((e) => String(e.label).toLowerCase().includes(B(a).toLowerCase())) : B(i));
9101
- var s = ml(), c = F(s);
9135
+ var s = hl(), c = F(s);
9102
9136
  Vi(c), vi(c, (e) => B(Rt)?.(e));
9103
9137
  var l = L(c, 2), u = (e) => {
9104
- var t = pl();
9138
+ var t = ml();
9105
9139
  Y(t, 21, () => B(o).slice(0, 50), (e) => e.value, (e, t) => {
9106
- var r = fl(), i = F(r, !0);
9140
+ var r = pl(), i = F(r, !0);
9107
9141
  A(r), R((e) => {
9108
9142
  Q(r, "aria-selected", e), q(i, B(t).label);
9109
9143
  }, [() => String(B(t).value) === B(a)]), H("mousedown", r, (e) => {
@@ -9120,7 +9154,7 @@ function od(e, t) {
9120
9154
  B(Lt)?.apply(this, e);
9121
9155
  }), K(e, s);
9122
9156
  }, h = (e) => {
9123
- var t = hl();
9157
+ var t = gl();
9124
9158
  Vi(t), vi(t, (e) => B(Rt)?.(e)), R((e, n) => {
9125
9159
  X(t, 1, e), Hi(t, n);
9126
9160
  }, [() => Si(ro("color")), () => Za("color", n.editingCell?.value)]), H("input", t, (e) => B(It)(e.currentTarget.value)), H("change", t, (e) => {
@@ -9129,7 +9163,7 @@ function od(e, t) {
9129
9163
  B(Lt)?.apply(this, e);
9130
9164
  }), K(e, t);
9131
9165
  }, g = (e) => {
9132
- var t = gl();
9166
+ var t = _l();
9133
9167
  Vi(t), vi(t, (e) => B(Rt)?.(e)), R((e, n, r) => {
9134
9168
  X(t, 1, e), Q(t, "type", n), Hi(t, r);
9135
9169
  }, [
@@ -9146,13 +9180,13 @@ function od(e, t) {
9146
9180
  }, O = (e, t = de, r = de) => {
9147
9181
  let i = /* @__PURE__ */ M(() => t().columnDef.editorType ?? "text"), a = /* @__PURE__ */ M(() => B(Ge)?.draft[t().id]);
9148
9182
  var o = G(), s = I(o), c = (e) => {
9149
- var r = _l();
9183
+ var r = vl();
9150
9184
  Vi(r), R((e) => Ui(r, e), [() => !!B(a)]), H("change", r, (e) => n.setFullRowDraft(t().id, e.currentTarget.checked)), H("keydown", r, Ke), H("pointerdown", r, (e) => e.stopPropagation()), H("click", r, (e) => e.stopPropagation()), K(e, r);
9151
9185
  }, l = (e) => {
9152
9186
  let i = /* @__PURE__ */ M(() => B(lt)(t(), r()));
9153
- var o = yl();
9187
+ var o = bl();
9154
9188
  Y(o, 21, () => B(i), (e) => qe(e), (e, t) => {
9155
- var n = vl(), r = F(n, !0);
9189
+ var n = yl(), r = F(n, !0);
9156
9190
  A(n);
9157
9191
  var i = {};
9158
9192
  R((e, t) => {
@@ -9165,7 +9199,7 @@ function od(e, t) {
9165
9199
  }, [() => String(B(a) ?? "")]), H("change", o, (e) => n.setFullRowDraft(t().id, e.currentTarget.value)), H("keydown", o, Ke), H("pointerdown", o, (e) => e.stopPropagation()), H("click", o, (e) => e.stopPropagation()), K(e, o);
9166
9200
  }, u = (e) => {
9167
9201
  let r = /* @__PURE__ */ M(() => B(i) === "number" ? "number" : B(i) === "date" ? "date" : B(i) === "datetime" ? "datetime-local" : B(i) === "time" ? "time" : B(i) === "password" ? "password" : "text");
9168
- var o = bl();
9202
+ var o = xl();
9169
9203
  Vi(o), R((e) => {
9170
9204
  Q(o, "type", B(r)), Hi(o, e);
9171
9205
  }, [() => String(B(a) ?? "")]), H("input", o, (e) => n.setFullRowDraft(t().id, e.currentTarget.value)), H("keydown", o, Ke), H("pointerdown", o, (e) => e.stopPropagation()), H("click", o, (e) => e.stopPropagation()), K(e, o);
@@ -9202,11 +9236,11 @@ function od(e, t) {
9202
9236
  });
9203
9237
  }
9204
9238
  }, c = (e) => {
9205
- var t = Cl();
9239
+ var t = wl();
9206
9240
  Q(t, "tabindex", -1);
9207
9241
  var a = F(t), o = F(a);
9208
9242
  Y(o, 19, i, (e, t) => String(e) + "_" + t, (e, t, a) => {
9209
- var o = xl(), s = F(o), c = L(s);
9243
+ var o = Sl(), s = F(o), c = L(s);
9210
9244
  A(o), R((e, t) => {
9211
9245
  q(s, `${e ?? ""} `), Q(c, "aria-label", `Remove ${t ?? ""}`);
9212
9246
  }, [() => String(B(t)), () => String(B(t))]), H("mousedown", c, (e) => e.preventDefault()), H("click", c, () => {
@@ -9220,7 +9254,7 @@ function od(e, t) {
9220
9254
  var s = L(o, 2);
9221
9255
  vi(s, (e) => B(Rt)?.(e));
9222
9256
  var c = L(s, 2), l = (e) => {
9223
- var t = Sl();
9257
+ var t = Cl();
9224
9258
  H("mousedown", t, (e) => e.preventDefault()), H("click", t, () => B(Ft)()), K(e, t);
9225
9259
  };
9226
9260
  J(c, (e) => {
@@ -9252,7 +9286,7 @@ function od(e, t) {
9252
9286
  }), K(e, a);
9253
9287
  }, ye = (e, t = de) => {
9254
9288
  let n = /* @__PURE__ */ M(() => B(De)[t().depth] ?? ""), r = /* @__PURE__ */ M(() => B(T).find((e) => e.id === B(n))), i = /* @__PURE__ */ M(() => typeof B(r)?.columnDef.header == "string" ? B(r).columnDef.header : B(n)), a = /* @__PURE__ */ M(() => t().getCellValueByColumnId(B(n))), o = /* @__PURE__ */ M(() => B(r) ? B(dt)(B(r), B(a), t()) : String(B(a) ?? "")), s = /* @__PURE__ */ M(() => t().leafCount ?? t().subRows?.length ?? 0);
9255
- var c = Tl(), l = F(c), u = F(l, !0);
9289
+ var c = El(), l = F(c), u = F(l, !0);
9256
9290
  A(l);
9257
9291
  var d = L(l, 2), f = F(d);
9258
9292
  A(d);
@@ -9261,7 +9295,7 @@ function od(e, t) {
9261
9295
  var i = G(), a = I(i), o = (e) => {
9262
9296
  let n = /* @__PURE__ */ M(() => t().getCellValueByColumnId(B(r).id));
9263
9297
  var i = G(), a = I(i), o = (e) => {
9264
- var i = wl(), a = F(i), o = F(a, !0);
9298
+ var i = Tl(), a = F(i), o = F(a, !0);
9265
9299
  A(a);
9266
9300
  var s = L(a);
9267
9301
  A(i), R((e) => {
@@ -9285,11 +9319,11 @@ function od(e, t) {
9285
9319
  e.stopPropagation(), t().toggleExpanded?.();
9286
9320
  }), K(e, c);
9287
9321
  }, ft = (e, n = de, r = de) => {
9288
- var i = El();
9322
+ var i = Dl();
9289
9323
  qi(i, (e) => ({
9290
9324
  class: "sv-grid-row sv-grid-detail-row",
9291
9325
  ...e
9292
- }), [() => tm(r() + 1)]);
9326
+ }), [() => nm(r() + 1)]);
9293
9327
  var a = F(i), o = F(a), s = (e) => {
9294
9328
  var i = G();
9295
9329
  oi(I(i), () => t.renderDetailRow, () => ({
@@ -9301,8 +9335,8 @@ function od(e, t) {
9301
9335
  t.renderDetailRow && e(s);
9302
9336
  }), A(a), A(i), R(() => Q(a, "colspan", B(T).length + +!!B(f) + +!!B(C))), K(e, i);
9303
9337
  }, pt = (e, t = de, n = de, r = de) => {
9304
- var i = Ml(), a = F(i), o = (e) => {
9305
- var t = Dl(), r = F(t, !0);
9338
+ var i = Nl(), a = F(i), o = (e) => {
9339
+ var t = Ol(), r = F(t, !0);
9306
9340
  A(t), R(() => {
9307
9341
  Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(r, n() === "top" ? "↑" : "↓");
9308
9342
  }), K(e, t);
@@ -9311,14 +9345,14 @@ function od(e, t) {
9311
9345
  B(f) && e(o);
9312
9346
  });
9313
9347
  var s = L(a), c = (e) => {
9314
- var t = Ol();
9348
+ var t = kl();
9315
9349
  R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
9316
9350
  };
9317
9351
  J(s, (e) => {
9318
9352
  B(C) && e(c);
9319
9353
  });
9320
9354
  var l = L(s), p = (e) => {
9321
- var t = kl();
9355
+ var t = Al();
9322
9356
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
9323
9357
  };
9324
9358
  J(l, (e) => {
@@ -9327,7 +9361,7 @@ function od(e, t) {
9327
9361
  var m = L(l);
9328
9362
  Y(m, 17, () => B(Ve), (e) => e.column.id, (e, n) => {
9329
9363
  let r = /* @__PURE__ */ M(() => B(mt)(t(), B(n).column)), i = /* @__PURE__ */ M(() => B(gt)(t(), B(n).column));
9330
- var a = Al(), o = F(a, !0);
9364
+ var a = jl(), o = F(a, !0);
9331
9365
  A(a), R((e, t, r) => {
9332
9366
  X(a, 1, `sv-grid-cell ${B(i)}`), Q(a, "data-col-id", B(n).column.id), Q(a, "data-pinned", e), Z(a, t), q(o, r);
9333
9367
  }, [
@@ -9337,7 +9371,7 @@ function od(e, t) {
9337
9371
  ]), K(e, a);
9338
9372
  });
9339
9373
  var h = L(m), g = (e) => {
9340
- var t = jl();
9374
+ var t = Ml();
9341
9375
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
9342
9376
  };
9343
9377
  J(h, (e) => {
@@ -9346,17 +9380,17 @@ function od(e, t) {
9346
9380
  X(i, 1, `sv-grid-row sv-grid-pinned-row sv-grid-pinned-row-${n()}`), Q(i, "data-pinned-row", n()), Q(i, "data-pinned-index", r());
9347
9381
  }), K(e, i);
9348
9382
  };
9349
- var j = ad(), jt = I(j);
9383
+ var j = od(), jt = I(j);
9350
9384
  let tn;
9351
9385
  var nn = F(jt), rn = (e) => {
9352
- var t = Nl(), r = L(F(t));
9386
+ var t = Pl(), r = L(F(t));
9353
9387
  Vi(r), A(t), Zi(r, () => n.globalFilter, (e) => n.globalFilter = e), K(e, t);
9354
9388
  };
9355
9389
  J(nn, (e) => {
9356
9390
  B(b) && e(rn);
9357
9391
  });
9358
9392
  var an = L(nn, 2), on = (e) => {
9359
- var t = Pl(), r = F(t);
9393
+ var t = Fl(), r = F(t);
9360
9394
  let i;
9361
9395
  A(t), R(() => {
9362
9396
  i = X(r, 1, "sv-grid-toolbar-btn", null, i, { "is-active": n.toolPanelOpen }), Q(r, "aria-label", n.toolPanelOpen ? "Close tool panel" : "Open tool panel (columns & filters)"), Q(r, "aria-expanded", n.toolPanelOpen);
@@ -9374,45 +9408,45 @@ function od(e, t) {
9374
9408
  onkeydown: B(Bt),
9375
9409
  onpaste: B(Vt),
9376
9410
  style: `min-width: ${B(He)}px;`
9377
- }), [() => $p({
9411
+ }), [() => em({
9378
9412
  activeDescendantId: B(Qe),
9379
9413
  rowCount: B(Oe).length,
9380
9414
  colCount: B(T).length
9381
9415
  })]);
9382
9416
  var dn = F(un), fn = F(dn);
9383
9417
  Y(fn, 17, () => B(ee), (e) => e.id, (e, r) => {
9384
- var i = Bl();
9418
+ var i = Vl();
9385
9419
  qi(i, (e) => ({
9386
9420
  class: "sv-grid-row sv-grid-header-row sv-grid-group-header-row",
9387
9421
  ...e,
9388
9422
  style: t.headerHeight ? `height: ${t.headerHeight}px;` : void 0
9389
- }), [() => tm()]);
9423
+ }), [() => nm()]);
9390
9424
  var a = F(i), o = (e) => {
9391
- var t = Fl();
9425
+ var t = Il();
9392
9426
  R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
9393
9427
  };
9394
9428
  J(a, (e) => {
9395
9429
  B(f) && e(o);
9396
9430
  });
9397
9431
  var s = L(a), c = (e) => {
9398
- var t = Il();
9432
+ var t = Ll();
9399
9433
  R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
9400
9434
  };
9401
9435
  J(s, (e) => {
9402
9436
  B(C) && e(c);
9403
9437
  }), Y(L(s), 17, () => B(r).cells, (e) => e.key, (e, t) => {
9404
- var r = zl();
9438
+ var r = Bl();
9405
9439
  let i;
9406
9440
  var a = F(r), o = (e) => {
9407
9441
  var r = G(), i = I(r), a = (e) => {
9408
- var r = Ll();
9442
+ var r = Rl();
9409
9443
  let i;
9410
9444
  var a = F(r), o = F(a, !0);
9411
9445
  A(a), nt(2), A(r), R(() => {
9412
9446
  i = X(r, 1, "sv-grid-group-toggle", null, i, { "is-collapsed": B(t).collapsed }), Q(r, "aria-expanded", !B(t).collapsed), Q(r, "aria-label", B(t).collapsed ? `Expand ${B(t).label}` : `Collapse ${B(t).label}`), Q(r, "title", B(t).collapsed ? "Expand group" : "Collapse group"), q(o, B(t).label);
9413
9447
  }), H("click", r, () => n.toggleColumnGroup(B(t).groupId)), K(e, r);
9414
9448
  }, o = (e) => {
9415
- var n = Rl(), r = F(n, !0);
9449
+ var n = zl(), r = F(n, !0);
9416
9450
  A(n), R(() => q(r, B(t).label)), K(e, n);
9417
9451
  };
9418
9452
  J(i, (e) => {
@@ -9426,21 +9460,21 @@ function od(e, t) {
9426
9460
  }), K(e, r);
9427
9461
  }), A(i), K(e, i);
9428
9462
  }), Y(L(fn), 17, () => B(E), (e) => e.id, (e, n) => {
9429
- var a = du(), o = I(a);
9463
+ var a = fu(), o = I(a);
9430
9464
  qi(o, (e) => ({
9431
9465
  class: "sv-grid-row sv-grid-header-row",
9432
9466
  ...e,
9433
9467
  style: t.headerHeight ? `height: ${t.headerHeight}px;` : void 0
9434
- }), [() => tm()]);
9468
+ }), [() => nm()]);
9435
9469
  var s = F(o), c = (e) => {
9436
- var t = Vl();
9470
+ var t = Hl();
9437
9471
  R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
9438
9472
  };
9439
9473
  J(s, (e) => {
9440
9474
  B(f) && e(c);
9441
9475
  });
9442
9476
  var g = L(s), _ = (e) => {
9443
- var t = Hl(), n = F(t);
9477
+ var t = Ul(), n = F(t);
9444
9478
  A(t), R(() => {
9445
9479
  Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", B(yt) === "all" ? "true" : B(yt) === "some" ? "mixed" : "false");
9446
9480
  }), H("click", n, function(...e) {
@@ -9451,7 +9485,7 @@ function od(e, t) {
9451
9485
  B(C) && e(_);
9452
9486
  });
9453
9487
  var v = L(g), y = (e) => {
9454
- var t = Ul();
9488
+ var t = Wl();
9455
9489
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
9456
9490
  };
9457
9491
  J(v, (e) => {
@@ -9462,7 +9496,7 @@ function od(e, t) {
9462
9496
  let i = /* @__PURE__ */ M(() => B(n).headers[B(r).item.index]);
9463
9497
  var a = G(), o = I(a), s = (e) => {
9464
9498
  let n = /* @__PURE__ */ M(() => B(Ee)[B(i).column.id]), a = /* @__PURE__ */ M(() => B(De).includes(B(i).column.id));
9465
- var o = tu(), s = (e) => (t.enableColumnReorder ?? !1) && B(oe)(e, B(i).column.id), c = (e) => (t.enableColumnReorder ?? !1) && B(se)(e, B(i).column.id), u = () => (t.enableColumnReorder ?? !1) && B(D)(B(i).column.id), d = (e) => (t.enableColumnReorder ?? !1) && B(ce)(e, B(i).column.id), f = () => (t.enableColumnReorder ?? !1) && B(le)();
9499
+ var o = nu(), s = (e) => (t.enableColumnReorder ?? !1) && B(oe)(e, B(i).column.id), c = (e) => (t.enableColumnReorder ?? !1) && B(se)(e, B(i).column.id), u = () => (t.enableColumnReorder ?? !1) && B(D)(B(i).column.id), d = (e) => (t.enableColumnReorder ?? !1) && B(ce)(e, B(i).column.id), f = () => (t.enableColumnReorder ?? !1) && B(le)();
9466
9500
  qi(o, (e, n, r, a) => ({
9467
9501
  class: "sv-grid-column",
9468
9502
  "data-svgrid-header-col": B(i).column.id,
@@ -9485,15 +9519,15 @@ function od(e, t) {
9485
9519
  () => B(ct)(B(r).column),
9486
9520
  () => B(ne)(B(r).column.id) ?? void 0,
9487
9521
  () => `width: ${B(r).item.size}px; min-width: ${B(r).item.size}px; max-width: ${B(r).item.size}px; ${B(te)(B(r).column.id)}`,
9488
- () => em({
9522
+ () => tm({
9489
9523
  sortable: B(i).column.getCanSort(),
9490
9524
  sortDirection: B(n) === "asc" ? "ascending" : B(n) === "desc" ? "descending" : "none"
9491
9525
  })
9492
9526
  ]);
9493
9527
  var h = F(o), g = (e) => {
9494
- var t = eu(), r = I(t), o = F(r), s = (e) => {
9528
+ var t = tu(), r = I(t), o = F(r), s = (e) => {
9495
9529
  let t = /* @__PURE__ */ M(() => B(i).column.columnDef.header(B(i).getContext()));
9496
- var r = Kl(), a = F(r), o = (e) => {
9530
+ var r = ql(), a = F(r), o = (e) => {
9497
9531
  var n = G();
9498
9532
  oi(I(n), () => B(t).snippet, () => B(t).params), K(e, n);
9499
9533
  }, s = (e) => {
@@ -9513,10 +9547,10 @@ function od(e, t) {
9513
9547
  });
9514
9548
  var u = L(a, 2), d = (e) => {
9515
9549
  var t = G(), r = I(t), i = (e) => {
9516
- var t = Wl();
9550
+ var t = Gl();
9517
9551
  fe(F(t), () => "sort-asc"), A(t), K(e, t);
9518
9552
  }, a = (e) => {
9519
- var t = Gl();
9553
+ var t = Kl();
9520
9554
  fe(F(t), () => "sort-desc"), A(t), K(e, t);
9521
9555
  };
9522
9556
  J(r, (e) => {
@@ -9533,17 +9567,17 @@ function od(e, t) {
9533
9567
  e.key !== "Enter" && e.key !== " " || B(i).column.getCanSort() && (e.preventDefault(), B(zt)(e, B(i).column.id));
9534
9568
  }), K(e, r);
9535
9569
  }, c = (e) => {
9536
- var t = Xl(), r = F(t), a = F(r, !0);
9570
+ var t = Zl(), r = F(t), a = F(r, !0);
9537
9571
  A(r);
9538
9572
  var o = L(r, 2), s = (e) => {
9539
9573
  var t = G(), r = I(t), i = (e) => {
9540
- var t = ql();
9574
+ var t = Jl();
9541
9575
  fe(F(t), () => "sort-asc"), A(t), K(e, t);
9542
9576
  }, a = (e) => {
9543
- var t = Jl();
9577
+ var t = Yl();
9544
9578
  fe(F(t), () => "sort-desc"), A(t), K(e, t);
9545
9579
  }, o = (e) => {
9546
- var t = Yl();
9580
+ var t = Xl();
9547
9581
  fe(F(t), () => "sort"), A(t), K(e, t);
9548
9582
  };
9549
9583
  J(r, (e) => {
@@ -9558,14 +9592,14 @@ function od(e, t) {
9558
9592
  typeof B(i).column.columnDef.header == "function" ? e(s) : e(c, -1);
9559
9593
  });
9560
9594
  var u = L(o, 2), d = (e) => {
9561
- var t = Zl();
9595
+ var t = Ql();
9562
9596
  fe(F(t), () => "group"), A(t), K(e, t);
9563
9597
  };
9564
9598
  J(u, (e) => {
9565
9599
  B(a) && e(d);
9566
9600
  });
9567
9601
  var f = L(u, 2), h = (e) => {
9568
- var t = Ql();
9602
+ var t = $l();
9569
9603
  let n;
9570
9604
  fe(F(t), () => "filter"), A(t), R((e) => n = X(t, 1, "sv-grid-col-menu-btn sv-grid-col-filter-btn", null, n, e), [() => ({
9571
9605
  "is-open": B(m) === B(i).column.id,
@@ -9579,7 +9613,7 @@ function od(e, t) {
9579
9613
  let v;
9580
9614
  fe(F(_), () => "menu"), A(_), A(r);
9581
9615
  var y = L(r, 2), b = (e) => {
9582
- var t = $l();
9616
+ var t = eu();
9583
9617
  H("input", t, (e) => {
9584
9618
  let t = e.currentTarget.value;
9585
9619
  B(w).setColumnFilters((e) => [...e.filter((e) => e.id !== B(i).column.id), ...t ? [{
@@ -9607,31 +9641,31 @@ function od(e, t) {
9607
9641
  }), K(e, a);
9608
9642
  });
9609
9643
  var T = L(b), E = (e) => {
9610
- var t = nu();
9644
+ var t = ru();
9611
9645
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
9612
9646
  };
9613
9647
  J(T, (e) => {
9614
9648
  B(Ie) && B(Ze) > 0 && e(E);
9615
9649
  }), A(o);
9616
9650
  var ee = L(o, 2), ue = (e) => {
9617
- var t = uu();
9618
- qi(t, (e) => ({ ...e }), [() => tm()]);
9651
+ var t = du();
9652
+ qi(t, (e) => ({ ...e }), [() => nm()]);
9619
9653
  var n = F(t), a = (e) => {
9620
- var t = ru();
9654
+ var t = iu();
9621
9655
  R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
9622
9656
  };
9623
9657
  J(n, (e) => {
9624
9658
  B(f) && e(a);
9625
9659
  });
9626
9660
  var o = L(n), s = (e) => {
9627
- var t = iu();
9661
+ var t = au();
9628
9662
  R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
9629
9663
  };
9630
9664
  J(o, (e) => {
9631
9665
  B(C) && e(s);
9632
9666
  });
9633
9667
  var c = L(o), l = (e) => {
9634
- var t = au();
9668
+ var t = ou();
9635
9669
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
9636
9670
  };
9637
9671
  J(c, (e) => {
@@ -9640,7 +9674,7 @@ function od(e, t) {
9640
9674
  var p = L(c);
9641
9675
  Y(p, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
9642
9676
  let n = /* @__PURE__ */ M(() => B(i)[B(t).column.id]?.operator ?? B(Xt)(B(t).column));
9643
- var a = cu(), o = F(a), s = F(o);
9677
+ var a = lu(), o = F(a), s = F(o);
9644
9678
  let c;
9645
9679
  var l = F(s), u = F(l);
9646
9680
  {
@@ -9652,10 +9686,10 @@ function od(e, t) {
9652
9686
  fe(F(d), () => "chevron-down"), A(d), A(s);
9653
9687
  var f = L(s, 2), p = (e) => {
9654
9688
  let a = /* @__PURE__ */ M(() => Qa(B(t).column.columnDef.editorType ?? "text"));
9655
- var o = su(), s = I(o);
9689
+ var o = cu(), s = I(o);
9656
9690
  Vi(s);
9657
9691
  var c = L(s, 2), l = (e) => {
9658
- var n = ou();
9692
+ var n = su();
9659
9693
  Vi(n), R(() => {
9660
9694
  Q(n, "type", B(a)), Hi(n, B(i)[B(t).column.id]?.valueTo ?? "");
9661
9695
  }), H("input", n, (e) => B(Wt)(B(t).column.id, e.currentTarget.value)), K(e, n);
@@ -9678,7 +9712,7 @@ function od(e, t) {
9678
9712
  ]), H("click", s, (e) => B(en)(e, B(t).column.id)), K(e, a);
9679
9713
  });
9680
9714
  var m = L(p), g = (e) => {
9681
- var t = lu();
9715
+ var t = uu();
9682
9716
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
9683
9717
  };
9684
9718
  J(m, (e) => {
@@ -9690,7 +9724,7 @@ function od(e, t) {
9690
9724
  }), K(e, a);
9691
9725
  }), A(dn), ta(dn, (e) => n.theadEl = e, () => n?.theadEl);
9692
9726
  var pn = L(dn), N = (e) => {
9693
- var n = fu();
9727
+ var n = pu();
9694
9728
  Y(n, 21, () => t.pinnedTopRows, si, (e, t, n) => {
9695
9729
  pt(e, () => B(t), () => "top", () => n);
9696
9730
  }), A(n), K(e, n);
@@ -9699,13 +9733,13 @@ function od(e, t) {
9699
9733
  t.pinnedTopRows && t.pinnedTopRows.length > 0 && e(N);
9700
9734
  });
9701
9735
  var mn = L(pn), P = F(mn), hn = (e) => {
9702
- var n = pu(), r = F(n), i = F(r, !0);
9736
+ var n = mu(), r = F(n), i = F(r, !0);
9703
9737
  A(r), A(n), R(() => {
9704
9738
  Q(r, "colspan", B(T).length + +!!B(f) + +!!B(C)), q(i, t.emptyMessage ?? "No rows to display.");
9705
9739
  }), K(e, n);
9706
9740
  }, gn = (e) => {
9707
- var r = Tu(), i = I(r), s = (e) => {
9708
- var t = mu(), n = F(t);
9741
+ var r = Eu(), i = I(r), s = (e) => {
9742
+ var t = hu(), n = F(t);
9709
9743
  A(t), R(() => {
9710
9744
  Z(n, `height: ${B(Re)}px; padding: 0; border: 0;`), Q(n, "colspan", B(T).length + +!!B(f) + +!!B(C));
9711
9745
  }), K(e, t);
@@ -9720,7 +9754,7 @@ function od(e, t) {
9720
9754
  var c = G(), l = I(c), p = (e) => {
9721
9755
  ft(e, () => B(s), () => B(i));
9722
9756
  }, m = /* @__PURE__ */ M(() => t.isDetailRow?.(B(s).original, B(i))), h = (e) => {
9723
- var t = hu();
9757
+ var t = gu();
9724
9758
  qi(t, (e, t, n) => ({
9725
9759
  class: "sv-grid-row sv-grid-group-row",
9726
9760
  "aria-level": B(s).depth + 1,
@@ -9730,7 +9764,7 @@ function od(e, t) {
9730
9764
  [Mi]: n
9731
9765
  }), [
9732
9766
  () => B(s).getIsExpanded?.() ? "true" : "false",
9733
- () => tm(B(i) + 1),
9767
+ () => nm(B(i) + 1),
9734
9768
  () => ({ "sv-grid-row-selected": B(_t)(B(s).id) })
9735
9769
  ]);
9736
9770
  var n = F(t);
@@ -9740,7 +9774,7 @@ function od(e, t) {
9740
9774
  }), H("click", n, () => B(s).toggleExpanded?.()), K(e, t);
9741
9775
  }, g = /* @__PURE__ */ M(() => B(Te)(B(s))), _ = (e) => {
9742
9776
  let c = /* @__PURE__ */ M(() => B(rt)(B(s), B(i)));
9743
- var l = Cu();
9777
+ var l = wu();
9744
9778
  qi(l, (e, t, n, i) => ({
9745
9779
  class: e,
9746
9780
  ...t,
@@ -9749,7 +9783,7 @@ function od(e, t) {
9749
9783
  [Mi]: i
9750
9784
  }), [
9751
9785
  () => `sv-grid-row ${B(c)} ${xe(B(i))}`,
9752
- () => tm(B(i) + 1),
9786
+ () => nm(B(i) + 1),
9753
9787
  () => be(B(i)),
9754
9788
  () => ({
9755
9789
  "sv-grid-row-selected": B(_t)(B(s).id),
@@ -9758,7 +9792,7 @@ function od(e, t) {
9758
9792
  })
9759
9793
  ]);
9760
9794
  var p = F(l), m = (e) => {
9761
- var t = gu(), n = F(t, !0);
9795
+ var t = _u(), n = F(t, !0);
9762
9796
  A(t), R(() => {
9763
9797
  Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(n, B(i) + 1);
9764
9798
  }), K(e, t);
@@ -9767,7 +9801,7 @@ function od(e, t) {
9767
9801
  B(f) && e(m);
9768
9802
  });
9769
9803
  var h = L(p), g = (e) => {
9770
- var t = _u(), n = F(t);
9804
+ var t = vu(), n = F(t);
9771
9805
  A(t), R((e) => {
9772
9806
  Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", e);
9773
9807
  }, [() => B(_t)(B(s).id)]), H("click", t, () => B(vt)(B(s).id)), H("click", n, (e) => {
@@ -9780,7 +9814,7 @@ function od(e, t) {
9780
9814
  B(C) && e(g);
9781
9815
  });
9782
9816
  var _ = L(h), v = (e) => {
9783
- var t = vu();
9817
+ var t = yu();
9784
9818
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
9785
9819
  };
9786
9820
  J(_, (e) => {
@@ -9789,7 +9823,7 @@ function od(e, t) {
9789
9823
  var y = L(_);
9790
9824
  Y(y, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
9791
9825
  let r = /* @__PURE__ */ M(() => B(t).item.index), c = /* @__PURE__ */ M(() => B(Se)(B(s), B(t).column)), l = /* @__PURE__ */ M(() => B(st)(B(s).id, B(t).column.id, B(c))), u = /* @__PURE__ */ M(() => n.editingCell?.rowId === B(s).id && n.editingCell?.columnId === B(t).column.id), d = /* @__PURE__ */ M(() => !!B(Ge) && B(Ge).rowId === B(s).id && B(t).column.id in B(Ge).draft), f = /* @__PURE__ */ M(() => B(Tt)(B(i), B(r))), p = /* @__PURE__ */ M(() => B(Et) && B(Et).rowIndex === B(i) && B(Et).colIndex === B(r)), m = /* @__PURE__ */ M(() => B(it)(B(s), B(t).column)), h = /* @__PURE__ */ M(() => B(ot)(B(s), B(t).column));
9792
- var g = xu(), _ = (e) => B(kt)(B(i), B(r), e), v = () => B(At)(B(i), B(r)), y = () => B(Nt)(B(i), B(r)), b = () => B(Mt)(B(i), B(r)), x = (e) => B(Pt)(e, B(i), B(r), B(t).column.id);
9826
+ var g = Su(), _ = (e) => B(kt)(B(i), B(r), e), v = () => B(At)(B(i), B(r)), y = () => B(Nt)(B(i), B(r)), b = () => B(Mt)(B(i), B(r)), x = (e) => B(Pt)(e, B(i), B(r), B(t).column.id);
9793
9827
  qi(g, (e, n, a, o, s) => ({
9794
9828
  class: `sv-grid-cell ${B(m)}`,
9795
9829
  "data-svgrid-row": B(i),
@@ -9822,8 +9856,8 @@ function od(e, t) {
9822
9856
  () => B(ne)(B(t).column.id) ?? void 0,
9823
9857
  () => B(Dt)(B(i), B(r)) ? "true" : void 0,
9824
9858
  () => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`,
9825
- () => nm({
9826
- id: rm("svgrid", B(i), B(r)),
9859
+ () => rm({
9860
+ id: im("svgrid", B(i), B(r)),
9827
9861
  rowIndex: B(i) + 1,
9828
9862
  colIndex: B(r) + 1,
9829
9863
  selected: B(_t)(B(s).id)
@@ -9840,14 +9874,14 @@ function od(e, t) {
9840
9874
  B(d) ? e(C) : B(u) ? e(w, 1) : e(T, -1);
9841
9875
  });
9842
9876
  var E = L(S, 2), ee = (e) => {
9843
- var t = yu();
9877
+ var t = bu();
9844
9878
  Q(t, "tabindex", -1), H("pointerdown", t, (e) => B(Ot)(e, B(i), B(r))), K(e, t);
9845
9879
  };
9846
9880
  J(E, (e) => {
9847
9881
  !B(u) && B(Et) && B(Et).rowIndex === B(i) && B(Et).colIndex === B(r) && e(ee);
9848
9882
  });
9849
9883
  var re = L(E, 2), ie = (e) => {
9850
- var t = bu();
9884
+ var t = xu();
9851
9885
  V("pointerenter", t, (e) => {
9852
9886
  e.stopPropagation(), B(a)(e.currentTarget, B(h));
9853
9887
  }), V("pointerleave", t, (e) => {
@@ -9864,7 +9898,7 @@ function od(e, t) {
9864
9898
  })), K(e, g);
9865
9899
  });
9866
9900
  var b = L(y), x = (e) => {
9867
- var t = Su();
9901
+ var t = Cu();
9868
9902
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
9869
9903
  };
9870
9904
  J(b, (e) => {
@@ -9880,7 +9914,7 @@ function od(e, t) {
9880
9914
  }), K(e, c);
9881
9915
  });
9882
9916
  var l = L(c, 2), p = (e) => {
9883
- var t = wu(), n = F(t);
9917
+ var t = Tu(), n = F(t);
9884
9918
  A(t), R(() => {
9885
9919
  Z(n, `height: ${B(ze)}px; padding: 0; border: 0;`), Q(n, "colspan", B(T).length + +!!B(f) + +!!B(C));
9886
9920
  }), K(e, t);
@@ -9894,7 +9928,7 @@ function od(e, t) {
9894
9928
  var s = G(), c = I(s), l = (e) => {
9895
9929
  ft(e, () => B(r), () => B(i));
9896
9930
  }, p = /* @__PURE__ */ M(() => t.isDetailRow?.(B(r).original, B(i))), m = (e) => {
9897
- var t = Eu();
9931
+ var t = Du();
9898
9932
  qi(t, (e, t, n) => ({
9899
9933
  class: "sv-grid-row sv-grid-group-row",
9900
9934
  "aria-level": B(r).depth + 1,
@@ -9903,7 +9937,7 @@ function od(e, t) {
9903
9937
  [Mi]: n
9904
9938
  }), [
9905
9939
  () => B(r).getIsExpanded?.() ? "true" : "false",
9906
- () => tm(B(i) + 1),
9940
+ () => nm(B(i) + 1),
9907
9941
  () => ({ "sv-grid-row-selected": B(_t)(B(r).id) })
9908
9942
  ]);
9909
9943
  var n = F(t);
@@ -9913,7 +9947,7 @@ function od(e, t) {
9913
9947
  }), H("click", n, () => B(r).toggleExpanded?.()), K(e, t);
9914
9948
  }, h = /* @__PURE__ */ M(() => B(Te)(B(r))), g = (e) => {
9915
9949
  let s = /* @__PURE__ */ M(() => B(rt)(B(r), B(i)));
9916
- var c = Nu();
9950
+ var c = Pu();
9917
9951
  qi(c, (e, t, n, r) => ({
9918
9952
  class: e,
9919
9953
  ...t,
@@ -9921,7 +9955,7 @@ function od(e, t) {
9921
9955
  [Mi]: r
9922
9956
  }), [
9923
9957
  () => `sv-grid-row ${B(s)} ${xe(B(i))}`,
9924
- () => tm(B(i) + 1),
9958
+ () => nm(B(i) + 1),
9925
9959
  () => be(B(i)),
9926
9960
  () => ({
9927
9961
  "sv-grid-row-selected": B(_t)(B(r).id),
@@ -9930,7 +9964,7 @@ function od(e, t) {
9930
9964
  })
9931
9965
  ]);
9932
9966
  var l = F(c), p = (e) => {
9933
- var t = Du(), n = F(t, !0);
9967
+ var t = Ou(), n = F(t, !0);
9934
9968
  A(t), R(() => {
9935
9969
  Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(n, B(i) + 1);
9936
9970
  }), K(e, t);
@@ -9939,7 +9973,7 @@ function od(e, t) {
9939
9973
  B(f) && e(p);
9940
9974
  });
9941
9975
  var m = L(l), h = (e) => {
9942
- var t = Ou(), n = F(t);
9976
+ var t = ku(), n = F(t);
9943
9977
  A(t), R((e) => {
9944
9978
  Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", e);
9945
9979
  }, [() => B(_t)(B(r).id)]), H("click", t, () => B(vt)(B(r).id)), H("click", n, (e) => {
@@ -9952,7 +9986,7 @@ function od(e, t) {
9952
9986
  B(C) && e(h);
9953
9987
  });
9954
9988
  var g = L(m), _ = (e) => {
9955
- var t = ku();
9989
+ var t = Au();
9956
9990
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
9957
9991
  };
9958
9992
  J(g, (e) => {
@@ -9961,7 +9995,7 @@ function od(e, t) {
9961
9995
  var v = L(g);
9962
9996
  Y(v, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
9963
9997
  let s = /* @__PURE__ */ M(() => B(t).item.index), c = /* @__PURE__ */ M(() => B(Se)(B(r), B(t).column)), l = /* @__PURE__ */ M(() => B(st)(B(r).id, B(t).column.id, B(c))), u = /* @__PURE__ */ M(() => n.editingCell?.rowId === B(r).id && n.editingCell?.columnId === B(t).column.id), d = /* @__PURE__ */ M(() => !!B(Ge) && B(Ge).rowId === B(r).id && B(t).column.id in B(Ge).draft), f = /* @__PURE__ */ M(() => B(Tt)(B(i), B(s))), p = /* @__PURE__ */ M(() => B(it)(B(r), B(t).column)), m = /* @__PURE__ */ M(() => B(at)(B(r), B(t).column)), h = /* @__PURE__ */ M(() => B(ot)(B(r), B(t).column));
9964
- var g = ju(), _ = (e) => B(kt)(B(i), B(s), e), v = (e) => {
9998
+ var g = Mu(), _ = (e) => B(kt)(B(i), B(s), e), v = (e) => {
9965
9999
  B(At)(B(i), B(s)), B(m) && B(a)(e.currentTarget, B(m));
9966
10000
  }, y = () => B(Nt)(B(i), B(s)), b = () => B(Mt)(B(i), B(s)), x = (e) => B(Pt)(e, B(i), B(s), B(t).column.id);
9967
10001
  qi(g, (e, n, r) => ({
@@ -9992,8 +10026,8 @@ function od(e, t) {
9992
10026
  }), [
9993
10027
  () => B(ne)(B(t).column.id) ?? void 0,
9994
10028
  () => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`,
9995
- () => nm({
9996
- id: rm("svgrid", B(i), B(s)),
10029
+ () => rm({
10030
+ id: im("svgrid", B(i), B(s)),
9997
10031
  rowIndex: B(i) + 1,
9998
10032
  colIndex: B(s) + 1,
9999
10033
  selected: B(_t)(B(r).id)
@@ -10010,7 +10044,7 @@ function od(e, t) {
10010
10044
  B(d) ? e(C) : B(u) ? e(w, 1) : e(T, -1);
10011
10045
  });
10012
10046
  var E = L(S, 2), ee = (e) => {
10013
- var t = Au();
10047
+ var t = ju();
10014
10048
  V("pointerenter", t, (e) => {
10015
10049
  e.stopPropagation(), B(a)(e.currentTarget, B(h));
10016
10050
  }), V("pointerleave", t, (e) => {
@@ -10027,7 +10061,7 @@ function od(e, t) {
10027
10061
  })), K(e, g);
10028
10062
  });
10029
10063
  var y = L(v), b = (e) => {
10030
- var t = Mu();
10064
+ var t = Nu();
10031
10065
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
10032
10066
  };
10033
10067
  J(y, (e) => {
@@ -10043,7 +10077,7 @@ function od(e, t) {
10043
10077
  !B(Oe).length && !(t.loading && t.loadingOverlay) ? e(hn) : B(Fe) ? e(gn, 1) : e(_n, -1);
10044
10078
  }), A(mn);
10045
10079
  var vn = L(mn), yn = (e) => {
10046
- var n = Pu();
10080
+ var n = Fu();
10047
10081
  Y(n, 21, () => t.pinnedBottomRows, si, (e, t, n) => {
10048
10082
  pt(e, () => B(t), () => "bottom", () => n);
10049
10083
  }), A(n), K(e, n);
@@ -10052,27 +10086,27 @@ function od(e, t) {
10052
10086
  t.pinnedBottomRows && t.pinnedBottomRows.length > 0 && e(yn);
10053
10087
  });
10054
10088
  var bn = L(vn), xn = (e) => {
10055
- var t = Bu(), n = F(t);
10089
+ var t = Vu(), n = F(t);
10056
10090
  qi(n, (e) => ({
10057
10091
  class: "sv-grid-row sv-grid-summary-row",
10058
10092
  ...e
10059
- }), [() => tm()]);
10093
+ }), [() => nm()]);
10060
10094
  var r = F(n), i = (e) => {
10061
- var t = Fu();
10095
+ var t = Iu();
10062
10096
  R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
10063
10097
  };
10064
10098
  J(r, (e) => {
10065
10099
  B(f) && e(i);
10066
10100
  });
10067
10101
  var a = L(r), o = (e) => {
10068
- var t = Iu();
10102
+ var t = Lu();
10069
10103
  R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
10070
10104
  };
10071
10105
  J(a, (e) => {
10072
10106
  B(C) && e(o);
10073
10107
  });
10074
10108
  var s = L(a), c = (e) => {
10075
- var t = Lu();
10109
+ var t = Ru();
10076
10110
  R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
10077
10111
  };
10078
10112
  J(s, (e) => {
@@ -10080,13 +10114,13 @@ function od(e, t) {
10080
10114
  });
10081
10115
  var l = L(s);
10082
10116
  Y(l, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
10083
- var n = Ru(), r = F(n, !0);
10117
+ var n = zu(), r = F(n, !0);
10084
10118
  A(n), R((e, i) => {
10085
10119
  Q(n, "data-pinned", e), Z(n, i), q(r, B($e)[B(t).column.id] ?? "");
10086
10120
  }, [() => B(ne)(B(t).column.id) ?? void 0, () => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`]), K(e, n);
10087
10121
  });
10088
10122
  var p = L(l), m = (e) => {
10089
- var t = zu();
10123
+ var t = Bu();
10090
10124
  R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
10091
10125
  };
10092
10126
  J(p, (e) => {
@@ -10097,14 +10131,14 @@ function od(e, t) {
10097
10131
  (t.enableRowSummaries ?? !0) && e(xn);
10098
10132
  }), A(un), ta(un, (e) => n.gridRootEl = e, () => n?.gridRootEl), A(cn), ta(cn, (e) => n.scrollContainer = e, () => n?.scrollContainer);
10099
10133
  var Sn = L(cn, 2), Cn = (e) => {
10100
- var t = Vu();
10134
+ var t = Hu();
10101
10135
  R(() => Z(t, `height: ${B(c)}px;`)), K(e, t);
10102
10136
  };
10103
10137
  J(Sn, (e) => {
10104
10138
  B(et) && B(y) && e(Cn);
10105
10139
  });
10106
10140
  var wn = L(Sn, 2), Tn = (e) => {
10107
- var r = Hu();
10141
+ var r = Uu();
10108
10142
  X(r, 1, "sv-grid-scrollbar sv-grid-scrollbar-vertical"), Gi(r, "orientation", "vertical"), R(() => Gi(r, "viewport-size", B(_))), R(() => Gi(r, "content-size", B(v).scrollHeight || B(Be) + B(c))), R(() => Gi(r, "value", B(v).scrollTop)), R(() => Gi(r, "step", typeof t.rowHeight == "number" ? t.rowHeight : 30)), ta(r, (e) => n.verticalScrollbarEl = e, () => n?.verticalScrollbarEl), R(() => Z(r, `top: ${B(c)}px; height: calc(100% - ${B(c) + (B(Ye) ? 16 : 0)}px);`)), K(e, r);
10109
10143
  };
10110
10144
  J(wn, (e) => {
@@ -10112,24 +10146,24 @@ function od(e, t) {
10112
10146
  });
10113
10147
  var En = L(wn, 2), Dn = (e) => {
10114
10148
  let r = /* @__PURE__ */ M(() => B(He) + (B(f) ? B(d) : 0) + (B(C) ? B(u) : 0));
10115
- var i = Uu();
10149
+ var i = Wu();
10116
10150
  X(i, 1, "sv-grid-scrollbar sv-grid-scrollbar-horizontal"), Gi(i, "orientation", "horizontal"), R(() => Gi(i, "viewport-size", B(g))), R(() => Gi(i, "content-size", B(v).scrollWidth || B(r))), R(() => Gi(i, "value", B(v).scrollLeft)), R(() => Gi(i, "step", t.columnWidth ?? 140)), ta(i, (e) => n.horizontalScrollbarEl = e, () => n?.horizontalScrollbarEl), R(() => Z(i, `width: calc(100% - ${B(y) ? 16 : 0}px);`)), K(e, i);
10117
10151
  };
10118
10152
  J(En, (e) => {
10119
10153
  B(et) && B(Ye) && e(Dn);
10120
10154
  });
10121
10155
  var On = L(En, 2), kn = (e) => {
10122
- K(e, Wu());
10156
+ K(e, Gu());
10123
10157
  };
10124
10158
  J(On, (e) => {
10125
10159
  B(et) && B(y) && B(Ye) && e(kn);
10126
10160
  }), A(sn);
10127
10161
  var An = L(sn, 2);
10128
- Dc(An, { get ctrl() {
10162
+ Oc(An, { get ctrl() {
10129
10163
  return n;
10130
10164
  } });
10131
10165
  var jn = L(An, 2), Mn = (e) => {
10132
- var t = Gu(), r = L(F(t), 2);
10166
+ var t = Ku(), r = L(F(t), 2);
10133
10167
  Vi(r), Nn(r, !0);
10134
10168
  var i = L(r, 2), a = F(i, !0);
10135
10169
  A(i);
@@ -10160,12 +10194,12 @@ function od(e, t) {
10160
10194
  n.findOpen && e(Mn);
10161
10195
  });
10162
10196
  var Fn = L(jn, 2), In = (e) => {
10163
- var n = Yu(), r = L(F(n), 2), i = (e) => {
10164
- var n = Ju();
10197
+ var n = Xu(), r = L(F(n), 2), i = (e) => {
10198
+ var n = Yu();
10165
10199
  Y(n, 21, () => Array(t.loadingSkeletonRows ?? 8), si, (e, t) => {
10166
- var n = qu();
10200
+ var n = Ju();
10167
10201
  Y(n, 21, () => B(T), (e) => e.id, (e, t) => {
10168
- var n = Ku();
10202
+ var n = qu();
10169
10203
  R((e) => Z(n, e), [() => `width:${B(Ct)(B(t).id)}px`]), K(e, n);
10170
10204
  }), A(n), K(e, n);
10171
10205
  }), A(n), K(e, n);
@@ -10180,7 +10214,7 @@ function od(e, t) {
10180
10214
  var Ln = L(Fn, 2), Rn = (e) => {
10181
10215
  var t = G(), r = I(t), a = (e) => {
10182
10216
  let t = /* @__PURE__ */ M(() => n.toolPanelTab);
10183
- var r = id(), a = F(r), o = F(a), s = F(o, !0);
10217
+ var r = ad(), a = F(r), o = F(a), s = F(o, !0);
10184
10218
  A(o);
10185
10219
  var c = L(o, 2);
10186
10220
  A(a);
@@ -10190,10 +10224,10 @@ function od(e, t) {
10190
10224
  let p;
10191
10225
  A(l);
10192
10226
  var m = L(l, 2), h = (e) => {
10193
- var t = Zu();
10227
+ var t = Qu();
10194
10228
  Y(t, 23, () => B(Ae), (e) => e.id, (e, t, r) => {
10195
10229
  let i = /* @__PURE__ */ M(() => !n.hiddenColumns[B(t).id]), a = /* @__PURE__ */ M(() => B(De).includes(B(t).id));
10196
- var o = Xu(), s = F(o), c = F(s);
10230
+ var o = Zu(), s = F(o), c = F(s);
10197
10231
  Vi(c);
10198
10232
  var l = L(c, 2), u = F(l, !0);
10199
10233
  A(l), A(s);
@@ -10205,16 +10239,16 @@ function od(e, t) {
10205
10239
  }, [() => B(je)(B(t))]), H("change", c, () => B(Me)(B(t).id)), H("click", f, () => B(Pe)(B(t).id)), H("click", m, () => B(Ne)(B(t).id, -1)), H("click", h, () => B(Ne)(B(t).id, 1)), K(e, o);
10206
10240
  }), A(t), K(e, t);
10207
10241
  }, g = (e) => {
10208
- var t = rd();
10242
+ var t = id();
10209
10243
  Y(t, 21, () => B(Ae), (e) => e.id, (e, t) => {
10210
10244
  var n = G(), r = I(n), a = (e) => {
10211
10245
  let n = /* @__PURE__ */ M(() => B(i)[B(t).id]?.operator ?? B(Xt)(B(t))), r = /* @__PURE__ */ M(() => Qa(B(t).columnDef.editorType ?? "text"));
10212
- var a = nd();
10246
+ var a = rd();
10213
10247
  let o;
10214
10248
  var s = F(a), c = F(s), l = F(c, !0);
10215
10249
  A(c);
10216
10250
  var u = L(c, 2), d = (e) => {
10217
- var n = Qu();
10251
+ var n = $u();
10218
10252
  R((e) => Q(n, "aria-label", e), [() => `Clear ${B(je)(B(t))} filter`]), H("click", n, () => B(qt)(B(t).id)), K(e, n);
10219
10253
  }, f = /* @__PURE__ */ M(() => B(Zt)(B(t).id));
10220
10254
  J(u, (e) => {
@@ -10222,7 +10256,7 @@ function od(e, t) {
10222
10256
  }), A(s);
10223
10257
  var p = L(s, 2);
10224
10258
  Y(p, 21, () => B(Kt)(B(t)), (e) => e.value, (e, t) => {
10225
- var n = $u(), r = F(n, !0);
10259
+ var n = ed(), r = F(n, !0);
10226
10260
  A(n);
10227
10261
  var i = {};
10228
10262
  R((e) => {
@@ -10232,10 +10266,10 @@ function od(e, t) {
10232
10266
  var m;
10233
10267
  Ai(p);
10234
10268
  var h = L(p, 2), g = (e) => {
10235
- var a = td(), o = I(a);
10269
+ var a = nd(), o = I(a);
10236
10270
  Vi(o);
10237
10271
  var s = L(o, 2), c = (e) => {
10238
- var n = ed();
10272
+ var n = td();
10239
10273
  Vi(n), R(() => {
10240
10274
  Q(n, "type", B(r)), Hi(n, B(i)[B(t).id]?.valueTo ?? "");
10241
10275
  }), H("input", n, (e) => B(Wt)(B(t).id, e.currentTarget.value)), K(e, n);
@@ -10273,7 +10307,7 @@ function od(e, t) {
10273
10307
  };
10274
10308
  J(Ln, (e) => {
10275
10309
  B(ke) && e(Rn);
10276
- }), A(jt), _c(L(jt, 2), {
10310
+ }), A(jt), vc(L(jt, 2), {
10277
10311
  get ctrl() {
10278
10312
  return n;
10279
10313
  },
@@ -10305,7 +10339,7 @@ Wr([
10305
10339
  ]);
10306
10340
  //#endregion
10307
10341
  //#region src/FlexRender.svelte
10308
- function sd(e, t) {
10342
+ function cd(e, t) {
10309
10343
  ft(t, !0);
10310
10344
  let n = /* @__PURE__ */ ra(t, [
10311
10345
  "$$slots",
@@ -10345,7 +10379,7 @@ function sd(e, t) {
10345
10379
  }
10346
10380
  //#endregion
10347
10381
  //#region src/chart.ts
10348
- var cd = [
10382
+ var ld = [
10349
10383
  "#2563eb",
10350
10384
  "#16a34a",
10351
10385
  "#f59e0b",
@@ -10358,51 +10392,51 @@ var cd = [
10358
10392
  function $(e) {
10359
10393
  return Math.round(e * 100) / 100;
10360
10394
  }
10361
- function ld(e, t) {
10395
+ function ud(e, t) {
10362
10396
  if (e <= 0) return 1;
10363
10397
  let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
10364
10398
  return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
10365
10399
  }
10366
- var ud = [
10400
+ var dd = [
10367
10401
  "#eff6ff",
10368
10402
  "#bfdbfe",
10369
10403
  "#60a5fa",
10370
10404
  "#2563eb",
10371
10405
  "#1e3a8a"
10372
- ], dd = [
10406
+ ], fd = [
10373
10407
  "#b91c1c",
10374
10408
  "#fca5a5",
10375
10409
  "#f1f5f9",
10376
10410
  "#93c5fd",
10377
10411
  "#1d4ed8"
10378
- ], fd = [
10412
+ ], pd = [
10379
10413
  "#1c2c4d",
10380
10414
  "#1d4ed8",
10381
10415
  "#3b82f6",
10382
10416
  "#60a5fa",
10383
10417
  "#bae6fd"
10384
- ], pd = [
10418
+ ], md = [
10385
10419
  "#f87171",
10386
10420
  "#b91c1c",
10387
10421
  "#222b3d",
10388
10422
  "#1d4ed8",
10389
10423
  "#60a5fa"
10390
10424
  ];
10391
- function md(e, t, n, r = "light") {
10425
+ function hd(e, t, n, r = "light") {
10392
10426
  if (Array.isArray(e) && e.length >= 2) return e;
10393
10427
  let i = r === "dark";
10394
- return e === "diverging" || e == null && t < 0 && n > 0 ? i ? pd : dd : i ? fd : ud;
10428
+ return e === "diverging" || e == null && t < 0 && n > 0 ? i ? md : fd : i ? pd : dd;
10395
10429
  }
10396
- function hd(e, t) {
10430
+ function gd(e, t) {
10397
10431
  if (!e.length) return "#888";
10398
10432
  let n = Math.max(0, Math.min(1, t));
10399
10433
  if (e.length === 1) return e[0];
10400
- let r = n * (e.length - 1), i = Math.floor(r), a = r - i, o = gd(e[i]), s = gd(e[Math.min(e.length - 1, i + 1)]);
10434
+ let r = n * (e.length - 1), i = Math.floor(r), a = r - i, o = _d(e[i]), s = _d(e[Math.min(e.length - 1, i + 1)]);
10401
10435
  if (!o || !s) return e[i] ?? "#888";
10402
10436
  let c = (e, t) => Math.round(e + (t - e) * a), l = (e) => e.toString(16).padStart(2, "0");
10403
10437
  return "#" + l(c(o.r, s.r)) + l(c(o.g, s.g)) + l(c(o.b, s.b));
10404
10438
  }
10405
- function gd(e) {
10439
+ function _d(e) {
10406
10440
  let t = /^#?([0-9a-f]{6})$/i.exec(e.trim());
10407
10441
  if (!t) return null;
10408
10442
  let n = parseInt(t[1], 16);
@@ -10412,8 +10446,8 @@ function gd(e) {
10412
10446
  b: n & 255
10413
10447
  };
10414
10448
  }
10415
- function _d(e) {
10416
- let t = gd(e);
10449
+ function vd(e) {
10450
+ let t = _d(e);
10417
10451
  if (!t) return "#0f172a";
10418
10452
  let n = (e) => {
10419
10453
  let t = e / 255;
@@ -10421,7 +10455,7 @@ function _d(e) {
10421
10455
  };
10422
10456
  return .2126 * n(t.r) + .7152 * n(t.g) + .0722 * n(t.b) > .5 ? "#0f172a" : "#ffffff";
10423
10457
  }
10424
- function vd(e, t) {
10458
+ function yd(e, t) {
10425
10459
  (!Number.isFinite(e) || e <= 0) && (e = 1), (!Number.isFinite(t) || t <= e) && (t = e * 10);
10426
10460
  let n = Math.floor(Math.log10(e)), r = Math.ceil(Math.log10(t)), i = [];
10427
10461
  for (let e = n; e <= r; e += 1) i.push(10 ** e);
@@ -10432,10 +10466,10 @@ function vd(e, t) {
10432
10466
  ticks: i
10433
10467
  };
10434
10468
  }
10435
- function yd(e, t, n, r) {
10469
+ function bd(e, t, n, r) {
10436
10470
  return Number.isFinite(e) ? r ? e <= 0 || t <= 0 ? null : (Math.log10(e) - Math.log10(t)) / (Math.log10(n) - Math.log10(t)) : (e - t) / (n - t) : null;
10437
10471
  }
10438
- function bd(e, t) {
10472
+ function xd(e, t) {
10439
10473
  if (!t) {
10440
10474
  let t = "", n = !1;
10441
10475
  for (let r of e) {
@@ -10452,9 +10486,9 @@ function bd(e, t) {
10452
10486
  x: t.x,
10453
10487
  y: t.y
10454
10488
  }) : r.length && (n.push(r), r = []);
10455
- return r.length && n.push(r), n.map(xd).filter(Boolean).join(" ");
10489
+ return r.length && n.push(r), n.map(Sd).filter(Boolean).join(" ");
10456
10490
  }
10457
- function xd(e) {
10491
+ function Sd(e) {
10458
10492
  let t = e.length;
10459
10493
  if (t === 0) return "";
10460
10494
  if (t === 1) return `M${e[0].x},${e[0].y}`;
@@ -10482,7 +10516,7 @@ function xd(e) {
10482
10516
  }
10483
10517
  return a;
10484
10518
  }
10485
- function Sd(e) {
10519
+ function Cd(e) {
10486
10520
  let t = 0, n = 0, r = 0, i = 0, a = 0;
10487
10521
  for (let o = 0; o < e.length; o += 1) {
10488
10522
  let s = e[o];
@@ -10494,7 +10528,7 @@ function Sd(e) {
10494
10528
  let s = (t * a - n * r) / o, c = (r - s * n) / t;
10495
10529
  return e.map((e, t) => s * t + c);
10496
10530
  }
10497
- function Cd(e, t) {
10531
+ function wd(e, t) {
10498
10532
  if (t < 1) return e.slice();
10499
10533
  let n = Array(e.length).fill(NaN), r = 0, i = 0;
10500
10534
  for (let a = 0; a < e.length; a += 1) {
@@ -10507,7 +10541,7 @@ function Cd(e, t) {
10507
10541
  }
10508
10542
  return n;
10509
10543
  }
10510
- function wd(e, t) {
10544
+ function Td(e, t) {
10511
10545
  let n = 2 / (Math.max(1, t) + 1), r = Array(e.length).fill(NaN), i = null;
10512
10546
  for (let t = 0; t < e.length; t += 1) {
10513
10547
  let a = e[t];
@@ -10519,16 +10553,16 @@ function wd(e, t) {
10519
10553
  }
10520
10554
  return r;
10521
10555
  }
10522
- function Td(e, t) {
10523
- if (t === "linear") return Sd(e);
10556
+ function Ed(e, t) {
10557
+ if (t === "linear") return Cd(e);
10524
10558
  let n = /^(sma|ema):(\d+)$/.exec(t);
10525
10559
  if (!n) return e.map(() => NaN);
10526
10560
  let r = Number(n[2]);
10527
- return n[1] === "ema" ? wd(e, r) : Cd(e, r);
10561
+ return n[1] === "ema" ? Td(e, r) : wd(e, r);
10528
10562
  }
10529
- function Ed(e, t, n = 4) {
10563
+ function Dd(e, t, n = 4) {
10530
10564
  (!Number.isFinite(e) || !Number.isFinite(t)) && (e = 0, t = 1), e === t && (e === 0 ? t = 1 : (e = Math.min(0, e), t = Math.max(0, t)), e === t && (t = e + 1));
10531
- let r = ld(ld(t - e, !1) / Math.max(1, n), !0), i = Math.floor(e / r) * r, a = Math.ceil(t / r) * r, o = [];
10565
+ let r = ud(ud(t - e, !1) / Math.max(1, n), !0), i = Math.floor(e / r) * r, a = Math.ceil(t / r) * r, o = [];
10532
10566
  for (let e = i; e <= a + r * .5; e += r) o.push($(e));
10533
10567
  return {
10534
10568
  min: i,
@@ -10537,27 +10571,27 @@ function Ed(e, t, n = 4) {
10537
10571
  ticks: o
10538
10572
  };
10539
10573
  }
10540
- function Dd(e) {
10574
+ function Od(e) {
10541
10575
  let t = Math.abs(e);
10542
10576
  return t >= 1e6 ? `${(e / 1e6).toFixed(t % 1e6 ? 1 : 0)}M` : t >= 1e3 ? `${(e / 1e3).toFixed(t % 1e3 ? 1 : 0)}k` : String(Math.round(e * 100) / 100);
10543
10577
  }
10544
- var Od = 864e5;
10545
- function kd(e, t) {
10546
- let n = t - e, r = n <= 7 * Od ? Od : n <= 70 * Od ? 7 * Od : n <= 800 * Od ? 30 * Od : 365 * Od, i = [];
10578
+ var kd = 864e5;
10579
+ function Ad(e, t) {
10580
+ let n = t - e, r = n <= 7 * kd ? kd : n <= 70 * kd ? 7 * kd : n <= 800 * kd ? 30 * kd : 365 * kd, i = [];
10547
10581
  for (let n = Math.ceil(e / r) * r; n <= t + 1; n += r) i.push(n);
10548
10582
  return i.length || i.push(e, t), i;
10549
10583
  }
10550
- function Ad(e, t) {
10584
+ function jd(e, t) {
10551
10585
  let n = new Date(e);
10552
- return t <= 70 * Od ? n.toLocaleDateString(void 0, {
10586
+ return t <= 70 * kd ? n.toLocaleDateString(void 0, {
10553
10587
  month: "short",
10554
10588
  day: "numeric"
10555
- }) : t <= 800 * Od ? n.toLocaleDateString(void 0, {
10589
+ }) : t <= 800 * kd ? n.toLocaleDateString(void 0, {
10556
10590
  month: "short",
10557
10591
  year: "2-digit"
10558
10592
  }) : String(n.getFullYear());
10559
10593
  }
10560
- function jd(e, t, n, r = [], i = !1) {
10594
+ function Md(e, t, n, r = [], i = !1) {
10561
10595
  let a = Infinity, o = -Infinity, s = (e) => {
10562
10596
  Number.isFinite(e) && (i && e <= 0 || (e < a && (a = e), e > o && (o = e)));
10563
10597
  };
@@ -10573,10 +10607,10 @@ function jd(e, t, n, r = [], i = !1) {
10573
10607
  }
10574
10608
  else for (let e of c) for (let t of e.values) s(t);
10575
10609
  for (let e of l) for (let t of e.values) s(t);
10576
- return a === Infinity && (a = +!!i, o = i ? 10 : 1), c.length && !i && (a = Math.min(a, 0), o = Math.max(o, 0)), i ? vd(a, o) : Ed(a, o);
10610
+ return a === Infinity && (a = +!!i, o = i ? 10 : 1), c.length && !i && (a = Math.min(a, 0), o = Math.max(o, 0)), i ? yd(a, o) : Dd(a, o);
10577
10611
  }
10578
- function Md(e, t = "light") {
10579
- let n = e.width ?? 520, r = e.height ?? 300, i = e.palette ?? cd, a = !!(e.stacked || e.stacked100), o = e.series.map((t, n) => ({
10612
+ function Nd(e, t = "light") {
10613
+ let n = e.width ?? 520, r = e.height ?? 300, i = e.palette ?? ld, a = !!(e.stacked || e.stacked100), o = e.series.map((t, n) => ({
10580
10614
  ...t,
10581
10615
  color: t.color ?? i[n % i.length],
10582
10616
  kind: t.type ?? (e.type === "pie" || e.type === "scatter" ? "bar" : e.type),
@@ -10654,7 +10688,7 @@ function Md(e, t = "light") {
10654
10688
  });
10655
10689
  let b = 0, x = 0;
10656
10690
  for (let e of v) e.from < b && (b = e.from), e.to < b && (b = e.to), e.from > x && (x = e.from), e.to > x && (x = e.to);
10657
- let S = Ed(b, x), C = (e) => $(10 + h - (e - S.min) / (S.max - S.min || 1) * h), w = m / Math.max(1, e.categories.length), T = w * .2, E = Math.max(1, w - T), ee = v.map((n, r) => {
10691
+ let S = Dd(b, x), C = (e) => $(10 + h - (e - S.min) / (S.max - S.min || 1) * h), w = m / Math.max(1, e.categories.length), T = w * .2, E = Math.max(1, w - T), ee = v.map((n, r) => {
10658
10692
  let i = C(Math.max(n.from, n.to)), o = C(Math.min(n.from, n.to)), c = f + w * r + T / 2, u = n.isTotal ? l : n.value >= 0 ? a : s;
10659
10693
  return {
10660
10694
  x: $(c),
@@ -10681,7 +10715,7 @@ function Md(e, t = "light") {
10681
10715
  })), re = S.ticks.map((e) => ({
10682
10716
  value: e,
10683
10717
  y: C(e),
10684
- label: Dd(e)
10718
+ label: Od(e)
10685
10719
  }));
10686
10720
  return {
10687
10721
  ...c,
@@ -10701,7 +10735,7 @@ function Md(e, t = "light") {
10701
10735
  y: 16,
10702
10736
  w: i,
10703
10737
  h: a
10704
- }, l = a / t.values.length, u = Math.max(...t.values.map((e) => Number.isFinite(e) ? e : 0)), d = t.values[0] ?? 0, f = (e) => u > 0 ? e / u * i : 0, p = 20 + i / 2, m = e.palette ?? cd, h = t.values.map((n, r) => {
10738
+ }, l = a / t.values.length, u = Math.max(...t.values.map((e) => Number.isFinite(e) ? e : 0)), d = t.values[0] ?? 0, f = (e) => u > 0 ? e / u * i : 0, p = 20 + i / 2, m = e.palette ?? ld, h = t.values.map((n, r) => {
10705
10739
  let i = t.values[r + 1] ?? n * .8, a = f(n), o = f(i), s = 16 + l * r, c = s + l, u = `M${p - a / 2},${s} L${p + a / 2},${s} L${p + o / 2},${c} L${p - o / 2},${c} Z`, h = t.color ?? m[r % m.length];
10706
10740
  return {
10707
10741
  path: u,
@@ -10712,7 +10746,7 @@ function Md(e, t = "light") {
10712
10746
  dropoff: r === 0 ? 0 : (t.values[r - 1] ?? n) > 0 ? 1 - n / (t.values[r - 1] ?? n) : 0,
10713
10747
  cx: p,
10714
10748
  cy: (s + c) / 2,
10715
- textColor: _d(h)
10749
+ textColor: vd(h)
10716
10750
  };
10717
10751
  });
10718
10752
  return {
@@ -10753,7 +10787,7 @@ function Md(e, t = "light") {
10753
10787
  value: e,
10754
10788
  axis: d[t] ?? ""
10755
10789
  };
10756
- }), i = r.length ? r.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ") + " Z" : "", a = e.palette ?? cd;
10790
+ }), i = r.length ? r.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ") + " Z" : "", a = e.palette ?? ld;
10757
10791
  return {
10758
10792
  label: t.label,
10759
10793
  color: t.color ?? a[n % a.length],
@@ -10780,7 +10814,7 @@ function Md(e, t = "light") {
10780
10814
  let a = /* @__PURE__ */ new Map(), o = Infinity, s = -Infinity;
10781
10815
  for (let e of i) a.set(e.date, e.value), Number.isFinite(e.value) && (e.value < o && (o = e.value), e.value > s && (s = e.value));
10782
10816
  o === Infinity && (o = 0, s = 1), o === s && (s = o + 1);
10783
- let l = md(e.colorScale, o, s, t), u = (e) => hd(l, (e - o) / (s - o)), d = i.map((e) => e.date).sort(), f = e.calendarStart ?? d[0] ?? "2026-01-01", p = e.calendarEnd ?? d[d.length - 1] ?? f, m = /* @__PURE__ */ new Date(f + "T00:00:00Z"), h = /* @__PURE__ */ new Date(p + "T00:00:00Z");
10817
+ let l = hd(e.colorScale, o, s, t), u = (e) => gd(l, (e - o) / (s - o)), d = i.map((e) => e.date).sort(), f = e.calendarStart ?? d[0] ?? "2026-01-01", p = e.calendarEnd ?? d[d.length - 1] ?? f, m = /* @__PURE__ */ new Date(f + "T00:00:00Z"), h = /* @__PURE__ */ new Date(p + "T00:00:00Z");
10784
10818
  m.setUTCDate(m.getUTCDate() - m.getUTCDay()), h.setUTCDate(h.getUTCDate() + (6 - h.getUTCDay()));
10785
10819
  let g = Math.round((h.getTime() - m.getTime()) / 864e5) + 1, _ = Math.ceil(g / 7), v = Math.max(1, n - 36 - 80), y = Math.max(1, r - 26 - 16), b = Math.floor(v / _), x = Math.floor(y / 7), S = Math.max(6, Math.min(b, x)), C = {
10786
10820
  x: 36,
@@ -10808,7 +10842,7 @@ function Md(e, t = "light") {
10808
10842
  return {
10809
10843
  value: r,
10810
10844
  color: u(r),
10811
- label: Dd(r)
10845
+ label: Od(r)
10812
10846
  };
10813
10847
  });
10814
10848
  return {
@@ -10896,7 +10930,7 @@ function Md(e, t = "light") {
10896
10930
  y: 4,
10897
10931
  w: i,
10898
10932
  h: a
10899
- }, s = e.palette ?? cd, l = [];
10933
+ }, s = e.palette ?? ld, l = [];
10900
10934
  function u(e) {
10901
10935
  return e.children?.length ? e.children.reduce((e, t) => e + u(t), 0) : Math.max(0, e.value ?? 0);
10902
10936
  }
@@ -10928,7 +10962,7 @@ function Md(e, t = "light") {
10928
10962
  w: $(f),
10929
10963
  h: $(h),
10930
10964
  color: g,
10931
- textColor: _d(g),
10965
+ textColor: vd(g),
10932
10966
  name: e.node.name,
10933
10967
  value: e.value,
10934
10968
  depth: a
@@ -10941,7 +10975,7 @@ function Md(e, t = "light") {
10941
10975
  w: $(f),
10942
10976
  h: $(h),
10943
10977
  color: g,
10944
- textColor: _d(g),
10978
+ textColor: vd(g),
10945
10979
  name: e.node.name,
10946
10980
  value: e.value,
10947
10981
  depth: a
@@ -10970,7 +11004,7 @@ function Md(e, t = "light") {
10970
11004
  y: 14,
10971
11005
  w: a,
10972
11006
  h: o
10973
- }, l = e.palette ?? cd, u = new Map(t.map((e) => [e.id, e])), d = new Set(i.map((e) => e.target)), f = t.filter((e) => !d.has(e.id)), p = /* @__PURE__ */ new Map();
11007
+ }, l = e.palette ?? ld, u = new Map(t.map((e) => [e.id, e])), d = new Set(i.map((e) => e.target)), f = t.filter((e) => !d.has(e.id)), p = /* @__PURE__ */ new Map();
10974
11008
  function m(e, t, n) {
10975
11009
  if (!n.has(e)) {
10976
11010
  n.add(e), (t > (p.get(e) ?? 0) || !p.has(e)) && p.set(e, t);
@@ -11056,7 +11090,7 @@ function Md(e, t = "light") {
11056
11090
  }, d = s / e.categories.length, f = l / o.length, p = Infinity, m = -Infinity;
11057
11091
  for (let e of o) for (let t of e.values) Number.isFinite(t) && (t < p && (p = t), t > m && (m = t));
11058
11092
  p === Infinity && (p = 0, m = 1), p === m && (m = p + 1);
11059
- let h = md(e.colorScale, p, m, t), g = (e) => hd(h, (e - p) / (m - p)), _ = [];
11093
+ let h = hd(e.colorScale, p, m, t), g = (e) => gd(h, (e - p) / (m - p)), _ = [];
11060
11094
  o.forEach((t, n) => {
11061
11095
  t.values.forEach((r, i) => {
11062
11096
  if (!Number.isFinite(r)) return;
@@ -11067,7 +11101,7 @@ function Md(e, t = "light") {
11067
11101
  w: $(d),
11068
11102
  h: $(f),
11069
11103
  color: o,
11070
- textColor: _d(o),
11104
+ textColor: vd(o),
11071
11105
  value: r,
11072
11106
  rowLabel: t.label,
11073
11107
  colLabel: e.categories[i] ?? ""
@@ -11086,7 +11120,7 @@ function Md(e, t = "light") {
11086
11120
  return {
11087
11121
  value: r,
11088
11122
  color: g(r),
11089
- label: Dd(r)
11123
+ label: Od(r)
11090
11124
  };
11091
11125
  });
11092
11126
  return {
@@ -11147,7 +11181,7 @@ function Md(e, t = "light") {
11147
11181
  ...c,
11148
11182
  plot: l
11149
11183
  };
11150
- let g = Ed(u, d), _ = Ed(f, p), v = h > m, y = (e) => $(t + (e - g.min) / (g.max - g.min || 1) * a), b = (e) => $(10 + s - (e - _.min) / (_.max - _.min || 1) * s), x = (e) => v && e != null && Number.isFinite(e) ? $(4 + (e - m) / (h - m || 1) * 14) : 5, S = [];
11184
+ let g = Dd(u, d), _ = Dd(f, p), v = h > m, y = (e) => $(t + (e - g.min) / (g.max - g.min || 1) * a), b = (e) => $(10 + s - (e - _.min) / (_.max - _.min || 1) * s), x = (e) => v && e != null && Number.isFinite(e) ? $(4 + (e - m) / (h - m || 1) * 14) : 5, S = [];
11151
11185
  for (let e of o) for (let t of e.points ?? []) !Number.isFinite(t.x) || !Number.isFinite(t.y) || S.push({
11152
11186
  cx: y(t.x),
11153
11187
  cy: b(t.y),
@@ -11160,7 +11194,7 @@ function Md(e, t = "light") {
11160
11194
  });
11161
11195
  let C = (e.referenceLines ?? []).map((e) => ({
11162
11196
  y: b(e.value),
11163
- label: e.label ?? Dd(e.value),
11197
+ label: e.label ?? Od(e.value),
11164
11198
  color: e.color ?? "#ef4444",
11165
11199
  dashed: e.dashed !== !1
11166
11200
  }));
@@ -11172,10 +11206,10 @@ function Md(e, t = "light") {
11172
11206
  yTicks: _.ticks.map((e) => ({
11173
11207
  value: e,
11174
11208
  y: b(e),
11175
- label: Dd(e)
11209
+ label: Od(e)
11176
11210
  })),
11177
11211
  xTicks: g.ticks.map((e) => ({
11178
- label: Dd(e),
11212
+ label: Od(e),
11179
11213
  x: y(e)
11180
11214
  }))
11181
11215
  };
@@ -11186,7 +11220,7 @@ function Md(e, t = "light") {
11186
11220
  y: 8,
11187
11221
  w: l,
11188
11222
  h: u
11189
- }, f = (e.referenceLines ?? []).map((e) => e.value), p = e.stacked100 ? Ed(0, 100) : jd(o, e.categories, a, f), m = (e) => $(i + (e - p.min) / (p.max - p.min || 1) * l), h = e.categories.length, g = u / Math.max(1, h), _ = g * .2, v = g - _, y = (e) => 8 + g * e + _ / 2, b = m(Math.min(Math.max(0, p.min), p.max)), x = [];
11223
+ }, f = (e.referenceLines ?? []).map((e) => e.value), p = e.stacked100 ? Dd(0, 100) : Md(o, e.categories, a, f), m = (e) => $(i + (e - p.min) / (p.max - p.min || 1) * l), h = e.categories.length, g = u / Math.max(1, h), _ = g * .2, v = g - _, y = (e) => 8 + g * e + _ / 2, b = m(Math.min(Math.max(0, p.min), p.max)), x = [];
11190
11224
  if (a) {
11191
11225
  let t = e.stacked100 ? e.categories.map((e, t) => o.reduce((e, n) => e + Math.abs(Number.isFinite(n.values[t]) ? n.values[t] : 0), 0) || 1) : null, n = Array(h).fill(0), r = Array(h).fill(0);
11192
11226
  for (let i of o) i.values.forEach((a, o) => {
@@ -11223,7 +11257,7 @@ function Md(e, t = "light") {
11223
11257
  });
11224
11258
  }
11225
11259
  let S = p.ticks.map((t) => ({
11226
- label: e.stacked100 ? `${Dd(t)}%` : Dd(t),
11260
+ label: e.stacked100 ? `${Od(t)}%` : Od(t),
11227
11261
  x: m(t)
11228
11262
  })), C = e.categories.map((e, t) => ({
11229
11263
  value: t,
@@ -11231,7 +11265,7 @@ function Md(e, t = "light") {
11231
11265
  label: e
11232
11266
  })), w = (e.referenceLines ?? []).map((e) => ({
11233
11267
  x: m(e.value),
11234
- label: e.label ?? Dd(e.value),
11268
+ label: e.label ?? Od(e.value),
11235
11269
  color: e.color ?? "#ef4444",
11236
11270
  dashed: e.dashed !== !1
11237
11271
  }));
@@ -11251,11 +11285,11 @@ function Md(e, t = "light") {
11251
11285
  y: 10,
11252
11286
  w: _,
11253
11287
  h: v
11254
- }, b = (e.referenceLines ?? []).filter((e) => e.axis !== "right").map((e) => e.value), x = (e.referenceLines ?? []).filter((e) => e.axis === "right").map((e) => e.value), S = e.yScale === "log", C = e.y2Scale === "log", w = e.stacked100 ? Ed(0, 100) : jd(l, e.categories, a, b, S), T = d ? e.stacked100 ? Ed(0, 100) : jd(u, e.categories, a, x, C) : null, E = (e, t, n = !1) => {
11255
- let r = yd(t, e.min, e.max, n);
11288
+ }, b = (e.referenceLines ?? []).filter((e) => e.axis !== "right").map((e) => e.value), x = (e.referenceLines ?? []).filter((e) => e.axis === "right").map((e) => e.value), S = e.yScale === "log", C = e.y2Scale === "log", w = e.stacked100 ? Dd(0, 100) : Md(l, e.categories, a, b, S), T = d ? e.stacked100 ? Dd(0, 100) : Md(u, e.categories, a, x, C) : null, E = (e, t, n = !1) => {
11289
+ let r = bd(t, e.min, e.max, n);
11256
11290
  return r === null ? NaN : $(10 + v - r * v);
11257
- }, ee = (e) => E(w, e, S), te = (e) => E(T ?? w, e, C), ne = (e) => e.axis === "right" ? T ?? w : w, re = (e) => e.axis === "right" ? C : S, ie = e.categories.length, ae = _ / Math.max(1, ie), oe = e.xType === "time" ? e.categories.map((e) => Date.parse(e)) : null, se = !!oe && oe.some((e) => Number.isFinite(e)), D = se ? Math.min(...oe.filter(Number.isFinite)) : 0, ce = se && Math.max(...oe.filter(Number.isFinite)) - D || 1, le = (e) => se && Number.isFinite(oe[e]) ? $(m + (oe[e] - D) / ce * _) : $(m + ae * e + ae / 2), ue = se ? kd(D, D + ce).map((e) => ({
11258
- label: Ad(e, ce),
11291
+ }, ee = (e) => E(w, e, S), te = (e) => E(T ?? w, e, C), ne = (e) => e.axis === "right" ? T ?? w : w, re = (e) => e.axis === "right" ? C : S, ie = e.categories.length, ae = _ / Math.max(1, ie), oe = e.xType === "time" ? e.categories.map((e) => Date.parse(e)) : null, se = !!oe && oe.some((e) => Number.isFinite(e)), D = se ? Math.min(...oe.filter(Number.isFinite)) : 0, ce = se && Math.max(...oe.filter(Number.isFinite)) - D || 1, le = (e) => se && Number.isFinite(oe[e]) ? $(m + (oe[e] - D) / ce * _) : $(m + ae * e + ae / 2), ue = se ? Ad(D, D + ce).map((e) => ({
11292
+ label: jd(e, ce),
11259
11293
  x: $(m + (e - D) / ce * _)
11260
11294
  })) : e.categories.map((e, t) => ({
11261
11295
  label: e,
@@ -11344,15 +11378,15 @@ function Md(e, t = "light") {
11344
11378
  defined: r
11345
11379
  };
11346
11380
  });
11347
- let u = !!t.smooth, d = bd(c, u), f = "";
11348
- if (t.kind === "area" && c.length) if (l) f = `${u ? xd(c.map((e) => ({
11381
+ let u = !!t.smooth, d = xd(c, u), f = "";
11382
+ if (t.kind === "area" && c.length) if (l) f = `${u ? Sd(c.map((e) => ({
11349
11383
  x: e.x,
11350
11384
  y: e.y
11351
- }))) : c.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${l[l.length - 1].x},${l[l.length - 1].y} ` + xd(l.slice().reverse()).replace(/^M[^ ]+ /, "") : l.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`;
11385
+ }))) : c.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${l[l.length - 1].x},${l[l.length - 1].y} ` + Sd(l.slice().reverse()).replace(/^M[^ ]+ /, "") : l.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`;
11352
11386
  else {
11353
11387
  let e = $(i(Math.min(Math.max(0, n.min), n.max))), t = [], r = [];
11354
11388
  for (let e of c) e.defined ? r.push(e) : r.length && (t.push(r), r = []);
11355
- r.length && t.push(r), f = t.map((t) => `${u ? xd(t.map((e) => ({
11389
+ r.length && t.push(r), f = t.map((t) => `${u ? Sd(t.map((e) => ({
11356
11390
  x: e.x,
11357
11391
  y: e.y
11358
11392
  }))) : t.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} L${t[t.length - 1].x},${e} L${t[0].x},${e} Z`).join(" ");
@@ -11370,7 +11404,7 @@ function Md(e, t = "light") {
11370
11404
  y: i(c)
11371
11405
  }));
11372
11406
  }
11373
- e.length >= 2 && (p = `${u ? xd(e) : e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${n[n.length - 1].x},${n[n.length - 1].y} ` + xd(n.slice().reverse()).replace(/^M[^ ]+ /, "") : n.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`);
11407
+ e.length >= 2 && (p = `${u ? Sd(e) : e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${n[n.length - 1].x},${n[n.length - 1].y} ` + Sd(n.slice().reverse()).replace(/^M[^ ]+ /, "") : n.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`);
11374
11408
  }
11375
11409
  pe.push({
11376
11410
  path: d,
@@ -11384,19 +11418,19 @@ function Md(e, t = "light") {
11384
11418
  let O = (e, t) => e.ticks.map((n) => ({
11385
11419
  value: n,
11386
11420
  y: E(e, n, t),
11387
- label: Dd(n)
11421
+ label: Od(n)
11388
11422
  })), ge = (e.referenceLines ?? []).map((e) => {
11389
11423
  let t = e.axis === "right", n = t ? T ?? w : w, r = t ? C : S;
11390
11424
  return {
11391
11425
  y: E(n, e.value, r),
11392
- label: e.label ?? Dd(e.value),
11426
+ label: e.label ?? Od(e.value),
11393
11427
  color: e.color ?? "#ef4444",
11394
11428
  dashed: e.dashed !== !1
11395
11429
  };
11396
11430
  }), _e = [];
11397
11431
  for (let t of o) {
11398
11432
  if (!t.overlay) continue;
11399
- let n = ne(t), r = re(t), i = Td(t.values, t.overlay), a = t.overlayColor ?? t.color, o = i.map((t, i) => {
11433
+ let n = ne(t), r = re(t), i = Ed(t.values, t.overlay), a = t.overlayColor ?? t.color, o = i.map((t, i) => {
11400
11434
  let a = Number.isFinite(t) && (!r || t > 0);
11401
11435
  return {
11402
11436
  x: le(i),
@@ -11405,7 +11439,7 @@ function Md(e, t = "light") {
11405
11439
  value: t,
11406
11440
  defined: a
11407
11441
  };
11408
- }), s = bd(o, !!t.smooth);
11442
+ }), s = xd(o, !!t.smooth);
11409
11443
  _e.push({
11410
11444
  path: s,
11411
11445
  areaPath: "",
@@ -11451,7 +11485,7 @@ function Md(e, t = "light") {
11451
11485
  annotations: ve
11452
11486
  };
11453
11487
  }
11454
- function Nd(e, t) {
11488
+ function Pd(e, t) {
11455
11489
  let n = t.reduce ?? "sum", r = Array.isArray(t.value) ? t.value : [t.value], i = (e, t) => n === "count" ? t : n === "avg" ? t ? e / t : 0 : e, a = [], o = /* @__PURE__ */ new Map(), s = (e) => {
11456
11490
  let t = o.get(e);
11457
11491
  return t === void 0 && (t = a.length, o.set(e, t), a.push(e)), t;
@@ -11516,13 +11550,13 @@ function Nd(e, t) {
11516
11550
  }
11517
11551
  //#endregion
11518
11552
  //#region src/SvGridChart.svelte
11519
- var Pd = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Reset zoom (or double-click the plot)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> Reset zoom</button>"), Fd = /* @__PURE__ */ U("<div class=\"sv-grid-chart-toolbar svelte-hyytey\"><!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download PNG\">PNG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download SVG\">SVG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Copy chart as image\"> </button></div>"), Id = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), Ld = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), Rd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), zd = /* @__PURE__ */ W("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), Bd = /* @__PURE__ */ W("<defs></defs>"), Vd = /* @__PURE__ */ W("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Hd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Ud = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Wd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Gd = /* @__PURE__ */ W("<!><!><!><!>", 1), Kd = /* @__PURE__ */ W("<line></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>", 1), qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Jd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Yd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Xd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Zd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), $d = /* @__PURE__ */ W("<!><!><!><!><!><!>", 1), ef = /* @__PURE__ */ W("<path class=\"sv-grid-chart-band\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), tf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-area\" fill-opacity=\"0.15\" stroke=\"none\"></path>"), nf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), rf = /* @__PURE__ */ W("<circle></circle><!>", 1), af = /* @__PURE__ */ W("<g><!><!><path class=\"sv-grid-chart-linepath\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), of = /* @__PURE__ */ W("<text> </text>"), sf = /* @__PURE__ */ W("<text text-anchor=\"middle\"> </text>"), cf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-bar svelte-hyytey\" rx=\"1\"></rect><!>", 1), lf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-scatter svelte-hyytey\" fill-opacity=\"0.7\"></circle>"), uf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"end\"> </text>", 1), df = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"start\"> </text>", 1), ff = /* @__PURE__ */ W("<path class=\"sv-grid-chart-overlay svelte-hyytey\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), pf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-annotation-marker svelte-hyytey\" r=\"4\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-hyytey\"> </text>", 1), mf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), hf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), gf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), _f = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-heatlabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-heatcell svelte-hyytey\"></rect><!>", 1), bf = /* @__PURE__ */ W("<stop></stop>"), xf = /* @__PURE__ */ W("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-hyytey\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Sf = /* @__PURE__ */ W("<!><!><!><!>", 1), Cf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-funnel-seg svelte-hyytey\"></path><text class=\"sv-grid-chart-funnel-label svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), wf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-ring svelte-hyytey\"></circle>"), Tf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-radar-spoke svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\"> </text>", 1), Ef = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-dot svelte-hyytey\" r=\"3\"></circle>"), Df = /* @__PURE__ */ W("<path class=\"sv-grid-chart-radar-poly svelte-hyytey\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), Of = /* @__PURE__ */ W("<!><!><!>", 1), kf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Af = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), jf = /* @__PURE__ */ W("<rect rx=\"2\"></rect>"), Mf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-calendar-legend svelte-hyytey\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Nf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">More</text>", 1), Pf = /* @__PURE__ */ W("<!><!><!><!>", 1), Ff = /* @__PURE__ */ W("<line></line>"), If = /* @__PURE__ */ W("<path fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\" opacity=\"0.85\"></path>"), Lf = /* @__PURE__ */ W("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), Rf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-hyytey\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-hyytey\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-hyytey\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), zf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-label svelte-hyytey\"> </text>"), Bf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-value svelte-hyytey\" opacity=\"0.85\"> </text>"), Vf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-treemap-cell svelte-hyytey\"></rect><!><!>", 1), Hf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-sankey-link svelte-hyytey\" fill=\"none\" stroke-opacity=\"0.35\"></path>"), Uf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-sankey-node svelte-hyytey\"></rect><text class=\"sv-grid-chart-sankey-label svelte-hyytey\"> </text>", 1), Wf = /* @__PURE__ */ W("<!><!>", 1), Gf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel on-bar svelte-hyytey\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), Kf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-slice svelte-hyytey\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), qf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-donut-total svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-hyytey\" text-anchor=\"middle\">Total</text>", 1), Jf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-cat-hit svelte-hyytey\"></rect>"), Yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-zoom-rect svelte-hyytey\"></rect>"), Xf = /* @__PURE__ */ W("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Zf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), Qf = /* @__PURE__ */ W("<rect opacity=\"0.55\"></rect>"), $f = /* @__PURE__ */ W("<svg class=\"sv-grid-chart-brush svelte-hyytey\" width=\"100%\" role=\"img\" aria-label=\"Range brush\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-window svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect></svg>"), ep = /* @__PURE__ */ U("<div class=\"sv-grid-chart-empty svelte-hyytey\">No data</div>"), tp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-dot svelte-hyytey\"></span>"), np = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row-label svelte-hyytey\"> </span>"), rp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row svelte-hyytey\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-hyytey\"> </span></span>"), ip = /* @__PURE__ */ U("<div><span class=\"sv-grid-chart-tooltip-title svelte-hyytey\"> </span> <!></div>"), ap = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-chart-swatch svelte-hyytey\"></span> </button>"), op = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-hyytey\"> </button>"), sp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-legend svelte-hyytey\"><!> <!></div>"), cp = /* @__PURE__ */ U("<th> </th>"), lp = /* @__PURE__ */ U("<td> </td>"), up = /* @__PURE__ */ U("<tr></tr>"), dp = /* @__PURE__ */ U("<div class=\"sv-grid-chart svelte-hyytey\"><!> <svg width=\"100%\" role=\"img\"><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <table class=\"sv-grid-chart-sr-only svelte-hyytey\"><caption> </caption><thead><tr></tr></thead><tbody></tbody></table></div>"), fp = {
11553
+ var Fd = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Reset zoom (or double-click the plot)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> Reset zoom</button>"), Id = /* @__PURE__ */ U("<div class=\"sv-grid-chart-toolbar svelte-hyytey\"><!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download PNG\">PNG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download SVG\">SVG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Copy chart as image\"> </button></div>"), Ld = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), Rd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), zd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), Bd = /* @__PURE__ */ W("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), Vd = /* @__PURE__ */ W("<defs></defs>"), Hd = /* @__PURE__ */ W("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Ud = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Wd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Gd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Kd = /* @__PURE__ */ W("<!><!><!><!>", 1), qd = /* @__PURE__ */ W("<line></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>", 1), Jd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Yd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Xd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Zd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), $d = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), ef = /* @__PURE__ */ W("<!><!><!><!><!><!>", 1), tf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-band\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), nf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-area\" fill-opacity=\"0.15\" stroke=\"none\"></path>"), rf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), af = /* @__PURE__ */ W("<circle></circle><!>", 1), of = /* @__PURE__ */ W("<g><!><!><path class=\"sv-grid-chart-linepath\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), sf = /* @__PURE__ */ W("<text> </text>"), cf = /* @__PURE__ */ W("<text text-anchor=\"middle\"> </text>"), lf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-bar svelte-hyytey\" rx=\"1\"></rect><!>", 1), uf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-scatter svelte-hyytey\" fill-opacity=\"0.7\"></circle>"), df = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"end\"> </text>", 1), ff = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"start\"> </text>", 1), pf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-overlay svelte-hyytey\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), mf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-annotation-marker svelte-hyytey\" r=\"4\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-hyytey\"> </text>", 1), hf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), gf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), _f = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), yf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-heatlabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), bf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-heatcell svelte-hyytey\"></rect><!>", 1), xf = /* @__PURE__ */ W("<stop></stop>"), Sf = /* @__PURE__ */ W("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-hyytey\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Cf = /* @__PURE__ */ W("<!><!><!><!>", 1), wf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-funnel-seg svelte-hyytey\"></path><text class=\"sv-grid-chart-funnel-label svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Tf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-ring svelte-hyytey\"></circle>"), Ef = /* @__PURE__ */ W("<line class=\"sv-grid-chart-radar-spoke svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\"> </text>", 1), Df = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-dot svelte-hyytey\" r=\"3\"></circle>"), Of = /* @__PURE__ */ W("<path class=\"sv-grid-chart-radar-poly svelte-hyytey\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), kf = /* @__PURE__ */ W("<!><!><!>", 1), Af = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), jf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Mf = /* @__PURE__ */ W("<rect rx=\"2\"></rect>"), Nf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-calendar-legend svelte-hyytey\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Pf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">More</text>", 1), Ff = /* @__PURE__ */ W("<!><!><!><!>", 1), If = /* @__PURE__ */ W("<line></line>"), Lf = /* @__PURE__ */ W("<path fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\" opacity=\"0.85\"></path>"), Rf = /* @__PURE__ */ W("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), zf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-hyytey\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-hyytey\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-hyytey\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Bf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-label svelte-hyytey\"> </text>"), Vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-value svelte-hyytey\" opacity=\"0.85\"> </text>"), Hf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-treemap-cell svelte-hyytey\"></rect><!><!>", 1), Uf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-sankey-link svelte-hyytey\" fill=\"none\" stroke-opacity=\"0.35\"></path>"), Wf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-sankey-node svelte-hyytey\"></rect><text class=\"sv-grid-chart-sankey-label svelte-hyytey\"> </text>", 1), Gf = /* @__PURE__ */ W("<!><!>", 1), Kf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel on-bar svelte-hyytey\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), qf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-slice svelte-hyytey\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), Jf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-donut-total svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-hyytey\" text-anchor=\"middle\">Total</text>", 1), Yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-cat-hit svelte-hyytey\"></rect>"), Xf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-zoom-rect svelte-hyytey\"></rect>"), Zf = /* @__PURE__ */ W("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Qf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), $f = /* @__PURE__ */ W("<rect opacity=\"0.55\"></rect>"), ep = /* @__PURE__ */ W("<svg class=\"sv-grid-chart-brush svelte-hyytey\" width=\"100%\" role=\"img\" aria-label=\"Range brush\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-window svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect></svg>"), tp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-empty svelte-hyytey\">No data</div>"), np = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-dot svelte-hyytey\"></span>"), rp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row-label svelte-hyytey\"> </span>"), ip = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row svelte-hyytey\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-hyytey\"> </span></span>"), ap = /* @__PURE__ */ U("<div><span class=\"sv-grid-chart-tooltip-title svelte-hyytey\"> </span> <!></div>"), op = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-chart-swatch svelte-hyytey\"></span> </button>"), sp = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-hyytey\"> </button>"), cp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-legend svelte-hyytey\"><!> <!></div>"), lp = /* @__PURE__ */ U("<th> </th>"), up = /* @__PURE__ */ U("<td> </td>"), dp = /* @__PURE__ */ U("<tr></tr>"), fp = /* @__PURE__ */ U("<div class=\"sv-grid-chart svelte-hyytey\"><!> <svg width=\"100%\" role=\"img\"><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <table class=\"sv-grid-chart-sr-only svelte-hyytey\"><caption> </caption><thead><tr></tr></thead><tbody></tbody></table></div>"), pp = {
11520
11554
  hash: "svelte-hyytey",
11521
11555
  code: ".sv-grid-chart.svelte-hyytey {position:relative;display:flex;flex-direction:column;gap:8px;width:100%;}.sv-grid-chart-svg.svelte-hyytey {display:block;width:100%;height:auto;}.sv-grid-chart-gridline.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-gridline.is-zero.svelte-hyytey {stroke:var(--sg-muted, #94a3b8);opacity:0.9;}.sv-grid-chart-axis.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:10px;font-family:inherit;}.sv-grid-chart-axis-title.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:11px;font-weight:600;font-family:inherit;}.sv-grid-chart-crosshair.svelte-hyytey {stroke:var(--sg-accent, #2563eb);stroke-width:1;stroke-dasharray:3 3;opacity:0.65;pointer-events:none;}.sv-grid-chart-refline.svelte-hyytey {stroke-width:1.5;opacity:0.9;pointer-events:none;}.sv-grid-chart-reflabel.svelte-hyytey {font-size:9.5px;font-weight:700;font-family:inherit;pointer-events:none;}.sv-grid-chart-overlay.svelte-hyytey {opacity:0.85;pointer-events:none;}.sv-grid-chart-annotation-marker.svelte-hyytey {pointer-events:none;}.sv-grid-chart-annotation-label.svelte-hyytey {font-size:10px;font-weight:700;font-family:inherit;pointer-events:none;}\n /* Heatmap cells. Stroke uses the border token (not bg) so the cell\n separators stay visible in BOTH light and dark themes - on dark mode\n a bg-colored stroke disappeared into the navy cells. */.sv-grid-chart-heatcell.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:1;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-heatcell:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-heatcell.svelte-hyytey:hover {opacity:0.85;}.sv-grid-chart-heatlabel.svelte-hyytey {font-size:10px;font-weight:600;font-family:inherit;pointer-events:none;user-select:none;}\n /* Legend gradient bar gets a visible outline + axis labels next to it\n pull from the regular axis class so they follow the theme. */.sv-grid-chart-heatlegend.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:1;}\n /* Funnel segments + labels. */.sv-grid-chart-funnel-seg.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:2;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-funnel-seg:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-funnel-seg.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-funnel-label.svelte-hyytey {font-size:11px;font-weight:700;font-family:inherit;pointer-events:none;}.sv-grid-chart-funnel-value.svelte-hyytey {font-size:10px;font-family:inherit;opacity:0.85;pointer-events:none;}\n /* Radar grid + polygons. */.sv-grid-chart-radar-ring.svelte-hyytey {fill:none;stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-radar-spoke.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-radar-poly.svelte-hyytey {transition:opacity 100ms ease;pointer-events:none;}.sv-grid-chart-radar-dot.svelte-hyytey {transition:r 100ms ease;cursor:default;}.sv-grid-chart-radar-dot.svelte-hyytey:hover {r:4.5;}\n /* Calendar heatmap cells. Blank cells get a faint outline so the grid\n still reads on days with no data. */.sv-grid-chart-calendar-cell.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:0.5;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-calendar-cell.is-blank.svelte-hyytey {stroke-opacity:0.5;}.sv-grid-chart-calendar-cell.svelte-hyytey:hover {opacity:0.85;}.sv-grid-chart-calendar-legend.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:0.5;}\n /* Gauge centre readout. */.sv-grid-chart-gauge-value.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:22px;font-weight:800;font-family:inherit;pointer-events:none;}\n /* Gauge tick marks: faint minors, stronger majors. */.sv-grid-chart-gauge-tick.svelte-hyytey {stroke:var(--sg-muted, #94a3b8);stroke-width:1;opacity:0.4;}.sv-grid-chart-gauge-tick.is-major.svelte-hyytey {stroke-width:2;opacity:0.7;}\n /* Pointer needle + hub. */.sv-grid-chart-gauge-needle.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:0.75;stroke-linejoin:round;}.sv-grid-chart-gauge-hub.svelte-hyytey {fill:var(--sg-fg, #0f172a);stroke:var(--sg-bg, #ffffff);stroke-width:2;}.sv-grid-chart-gauge-hub-dot.svelte-hyytey {fill:var(--sg-bg, #ffffff);}\n /* Tree-map cells. White separators give the squarified rects breathing\n room without distracting from the data. */.sv-grid-chart-treemap-cell.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:1;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-treemap-cell:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-treemap-cell.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-treemap-label.svelte-hyytey {font-size:11px;font-weight:600;font-family:inherit;pointer-events:none;}.sv-grid-chart-treemap-value.svelte-hyytey {font-size:10px;font-family:inherit;pointer-events:none;}\n /* Sankey nodes + links. Links use stroke not fill so per-ribbon width\n comes from stroke-width directly. */.sv-grid-chart-sankey-node.svelte-hyytey {transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-sankey-node.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-sankey-link.svelte-hyytey {transition:stroke-opacity 100ms ease;cursor:default;}.sv-grid-chart-sankey-link.svelte-hyytey:hover {stroke-opacity:0.6;}.sv-grid-chart-sankey-label.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:11px;font-weight:600;font-family:inherit;pointer-events:none;}\n /* Brush mini-map: a compact secondary chart with a draggable window. */.sv-grid-chart-brush.svelte-hyytey {display:block;width:100%;height:auto;margin-top:4px;border-top:1px solid var(--sg-border, #e2e8f0);user-select:none;touch-action:none;}.sv-grid-chart-brush-mask.svelte-hyytey {fill:var(--sg-bg, #ffffff);fill-opacity:0.65;pointer-events:none;}.sv-grid-chart-brush-window.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.10;stroke:var(--sg-accent, #2563eb);stroke-width:1;cursor:grab;}.sv-grid-chart-brush-window.svelte-hyytey:active {cursor:grabbing;}.sv-grid-chart-brush-handle.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.4;cursor:ew-resize;}.sv-grid-chart-brush-handle.svelte-hyytey:hover {fill-opacity:0.7;}.sv-grid-chart-scatter.svelte-hyytey {transition:opacity 0.2s ease;stroke-width:1;}.is-clickable.svelte-hyytey .sv-grid-chart-scatter:where(.svelte-hyytey),\n .sv-grid-chart-scatter.svelte-hyytey:hover {cursor:pointer;}.sv-grid-chart-cat-hit.svelte-hyytey {fill:transparent;}.sv-grid-chart-cat-hit.svelte-hyytey:focus-visible,\n .sv-grid-chart-slice.svelte-hyytey:focus-visible {outline:2px solid var(--sg-accent, #2563eb);outline-offset:1px;}.sv-grid-chart-datalabel.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:9.5px;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none;}.sv-grid-chart-datalabel.on-bar.svelte-hyytey {fill:#fff;}.sv-grid-chart-donut-total.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;}.sv-grid-chart-donut-label.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:10px;}.sv-grid-chart-bar.svelte-hyytey {transition:x 0.3s ease, y 0.3s ease, width 0.3s ease, height 0.3s ease;}.sv-grid-chart-dot.svelte-hyytey {transition:cx 0.3s ease, cy 0.3s ease;}.is-clickable.svelte-hyytey .sv-grid-chart-cat-hit:where(.svelte-hyytey),\n .is-clickable.svelte-hyytey .sv-grid-chart-slice:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-empty.svelte-hyytey {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--sg-muted, #94a3b8);font-size:13px;pointer-events:none;}\n\n /* Toolbar above the chart: reset-zoom, PNG / SVG / Copy. */.sv-grid-chart-toolbar.svelte-hyytey {display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;}.sv-grid-chart-tool.svelte-hyytey {display:inline-flex;align-items:center;gap:4px;border:1px solid var(--sg-border, #cbd5e1);background:var(--sg-bg, #ffffff);color:var(--sg-fg, #1e293b);font-size:11px;font-weight:500;padding:3px 8px;border-radius:4px;cursor:pointer;transition:background-color 100ms ease, border-color 100ms ease;}.sv-grid-chart-tool.svelte-hyytey:hover {background:var(--sg-row-hover-bg, #f1f5f9);border-color:var(--sg-accent, #2563eb);}\n\n /* Drag-to-zoom: translucent accent rectangle over the plot. */.sv-grid-chart-svg.is-zoomable.svelte-hyytey {cursor:crosshair;}.sv-grid-chart-svg.is-dragging.svelte-hyytey {cursor:crosshair;user-select:none;}.sv-grid-chart-zoom-rect.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.12;stroke:var(--sg-accent, #2563eb);stroke-width:1;stroke-dasharray:3 3;pointer-events:none;}.sv-grid-chart-tooltip.svelte-hyytey {position:absolute;z-index:10;transform:translate(-50%, calc(-100% - 12px));pointer-events:none;white-space:nowrap;padding:6px 9px;border-radius:6px;background:var(--sg-fg, #0f172a);color:var(--sg-bg, #fff);font-size:11.5px;line-height:1.4;box-shadow:0 6px 18px rgba(0, 0, 0, 0.28);display:flex;flex-direction:column;gap:1px;}.sv-grid-chart-tooltip.is-below.svelte-hyytey {transform:translate(-50%, 16px);}.sv-grid-chart-tooltip-title.svelte-hyytey {opacity:0.75;font-size:10.5px;margin-bottom:1px;}.sv-grid-chart-tooltip-row.svelte-hyytey {display:flex;align-items:center;gap:6px;}.sv-grid-chart-tooltip-dot.svelte-hyytey {width:8px;height:8px;border-radius:2px;flex-shrink:0;}.sv-grid-chart-tooltip-row-label.svelte-hyytey {opacity:0.85;}.sv-grid-chart-tooltip-row-value.svelte-hyytey {margin-left:auto;padding-left:10px;font-weight:700;font-variant-numeric:tabular-nums;}.sv-grid-chart-legend.svelte-hyytey {display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--sg-fg, #0f172a);}.sv-grid-chart-legend-item.svelte-hyytey {display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;font:inherit;padding:1px 2px;border-radius:4px;cursor:pointer;}.sv-grid-chart-legend-item.svelte-hyytey:disabled {cursor:default;}.sv-grid-chart-legend-item.is-off.svelte-hyytey {color:var(--sg-muted, #94a3b8);text-decoration:line-through;}.sv-grid-chart-legend-item.is-isolated.svelte-hyytey {background:var(--sg-header-bg, #f1f5f9);font-weight:700;}.sv-grid-chart-legend-more.svelte-hyytey {border:1px dashed var(--sg-border, #cbd5e1);background:transparent;color:var(--sg-muted, #64748b);font:inherit;font-size:11px;padding:1px 7px;border-radius:999px;cursor:pointer;}.sv-grid-chart-legend-more.svelte-hyytey:hover {color:var(--sg-fg, #0f172a);border-color:var(--sg-accent, #2563eb);}.sv-grid-chart-sr-only.svelte-hyytey {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.sv-grid-chart-swatch.svelte-hyytey {width:12px;height:12px;border-radius:3px;border:1.5px solid transparent;display:inline-block;box-sizing:border-box;}"
11522
11556
  };
11523
- function pp(e, t) {
11524
- ft(t, !0), _i(e, fp);
11525
- let n = oa(t, "legend", 3, !0), r = oa(t, "interactive", 3, !0), i = oa(t, "dataLabels", 3, !1), a = oa(t, "zoomable", 3, !1), o = oa(t, "brush", 3, !1), s = oa(t, "brushHeight", 3, 88), c = /* @__PURE__ */ M(() => t.toolbar ?? (a() || !!t.onDrill)), l = (e) => t.formatValue ? t.formatValue(e) : Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e), u = /* @__PURE__ */ N(yn(/* @__PURE__ */ new Set())), d = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N(null), p = /* @__PURE__ */ M(() => t.spec.palette ?? cd), m = `svgc-${Math.random().toString(36).slice(2, 8)}`, h = /* @__PURE__ */ M(() => t.spec.series.map((e, t) => ({
11557
+ function mp(e, t) {
11558
+ ft(t, !0), _i(e, pp);
11559
+ let n = oa(t, "legend", 3, !0), r = oa(t, "interactive", 3, !0), i = oa(t, "dataLabels", 3, !1), a = oa(t, "zoomable", 3, !1), o = oa(t, "brush", 3, !1), s = oa(t, "brushHeight", 3, 88), c = /* @__PURE__ */ M(() => t.toolbar ?? (a() || !!t.onDrill)), l = (e) => t.formatValue ? t.formatValue(e) : Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e), u = /* @__PURE__ */ N(yn(/* @__PURE__ */ new Set())), d = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N(null), p = /* @__PURE__ */ M(() => t.spec.palette ?? ld), m = `svgc-${Math.random().toString(36).slice(2, 8)}`, h = /* @__PURE__ */ M(() => t.spec.series.map((e, t) => ({
11526
11560
  ...e,
11527
11561
  color: e.color ?? B(p)[t % B(p).length]
11528
11562
  }))), g = /* @__PURE__ */ M(() => t.spec.series.map((e, n) => e.pattern ? e.pattern : t.spec.patternFallback ? [
@@ -11611,7 +11645,7 @@ function pp(e, t) {
11611
11645
  referenceLines: void 0,
11612
11646
  annotations: void 0,
11613
11647
  series: B(h).filter((e) => !B(y).has(e.label))
11614
- })), D = /* @__PURE__ */ M(() => B(oe) ? Md(B(se)) : null), ce = /* @__PURE__ */ M(() => {
11648
+ })), D = /* @__PURE__ */ M(() => B(oe) ? Nd(B(se)) : null), ce = /* @__PURE__ */ M(() => {
11615
11649
  let e = t.spec.categories.length;
11616
11650
  return !B(b) || e === 0 ? {
11617
11651
  t0: 0,
@@ -11681,7 +11715,7 @@ function pp(e, t) {
11681
11715
  rowIds: e.rowIds ? i(e.rowIds) : void 0
11682
11716
  }))
11683
11717
  };
11684
- }), he = /* @__PURE__ */ N(!1), O = /* @__PURE__ */ M(() => Md(B(me), B(he) ? "dark" : "light")), ge = /* @__PURE__ */ M(() => t.spec.type !== "pie" && t.spec.type !== "heatmap" && t.spec.type !== "funnel" && t.spec.type !== "radar" && t.spec.type !== "calendar" && t.spec.type !== "gauge" && t.spec.type !== "treemap" && t.spec.type !== "sankey"), _e = /* @__PURE__ */ M(() => t.spec.type === "scatter"), ve = /* @__PURE__ */ M(() => t.spec.type === "heatmap"), ye = /* @__PURE__ */ M(() => t.spec.type === "funnel"), be = /* @__PURE__ */ M(() => t.spec.type === "radar"), xe = /* @__PURE__ */ M(() => t.spec.type === "calendar"), Se = /* @__PURE__ */ M(() => t.spec.type === "gauge"), Ce = /* @__PURE__ */ M(() => t.spec.type === "treemap"), we = /* @__PURE__ */ M(() => t.spec.type === "sankey"), Te = /* @__PURE__ */ M(() => B(O).orientation === "horizontal"), Ee = /* @__PURE__ */ M(() => (B(Te) ? B(O).plot.h : B(O).plot.w) / Math.max(1, B(me).categories.length)), De = (e) => B(f) && B(f) !== e ? .18 : 1, Oe = /* @__PURE__ */ M(() => t.spec.type === "pie" ? t.spec.categories.map((e, t) => ({
11718
+ }), he = /* @__PURE__ */ N(!1), O = /* @__PURE__ */ M(() => Nd(B(me), B(he) ? "dark" : "light")), ge = /* @__PURE__ */ M(() => t.spec.type !== "pie" && t.spec.type !== "heatmap" && t.spec.type !== "funnel" && t.spec.type !== "radar" && t.spec.type !== "calendar" && t.spec.type !== "gauge" && t.spec.type !== "treemap" && t.spec.type !== "sankey"), _e = /* @__PURE__ */ M(() => t.spec.type === "scatter"), ve = /* @__PURE__ */ M(() => t.spec.type === "heatmap"), ye = /* @__PURE__ */ M(() => t.spec.type === "funnel"), be = /* @__PURE__ */ M(() => t.spec.type === "radar"), xe = /* @__PURE__ */ M(() => t.spec.type === "calendar"), Se = /* @__PURE__ */ M(() => t.spec.type === "gauge"), Ce = /* @__PURE__ */ M(() => t.spec.type === "treemap"), we = /* @__PURE__ */ M(() => t.spec.type === "sankey"), Te = /* @__PURE__ */ M(() => B(O).orientation === "horizontal"), Ee = /* @__PURE__ */ M(() => (B(Te) ? B(O).plot.h : B(O).plot.w) / Math.max(1, B(me).categories.length)), De = (e) => B(f) && B(f) !== e ? .18 : 1, Oe = /* @__PURE__ */ M(() => t.spec.type === "pie" ? t.spec.categories.map((e, t) => ({
11685
11719
  label: e,
11686
11720
  color: B(p)[t % B(p).length],
11687
11721
  off: B(u).has(e)
@@ -11953,9 +11987,9 @@ function pp(e, t) {
11953
11987
  }
11954
11988
  setTimeout(() => P(tt, "idle"), 1500);
11955
11989
  }
11956
- var ct = dp(), lt = F(ct), ut = (e) => {
11957
- var t = Fd(), n = F(t), r = (e) => {
11958
- var t = Pd();
11990
+ var ct = fp(), lt = F(ct), ut = (e) => {
11991
+ var t = Id(), n = F(t), r = (e) => {
11992
+ var t = Fd();
11959
11993
  H("click", t, S), K(e, t);
11960
11994
  };
11961
11995
  J(n, (e) => {
@@ -11970,25 +12004,25 @@ function pp(e, t) {
11970
12004
  var dt = L(lt, 2);
11971
12005
  let mt;
11972
12006
  var ht = F(dt), gt = (e) => {
11973
- var t = Bd();
12007
+ var t = Vd();
11974
12008
  Y(t, 21, () => B(v), (e) => e.id, (e, t) => {
11975
12009
  var n = G(), r = I(n), i = (e) => {
11976
- var n = Id(), r = F(n);
12010
+ var n = Ld(), r = F(n);
11977
12011
  nt(), A(n), R(() => {
11978
12012
  Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
11979
12013
  }), K(e, n);
11980
12014
  }, a = (e) => {
11981
- var n = Ld(), r = F(n);
12015
+ var n = Rd(), r = F(n);
11982
12016
  nt(), A(n), R(() => {
11983
12017
  Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
11984
12018
  }), K(e, n);
11985
12019
  }, o = (e) => {
11986
- var n = Rd(), r = F(n);
12020
+ var n = zd(), r = F(n);
11987
12021
  nt(), A(n), R(() => {
11988
12022
  Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
11989
12023
  }), K(e, n);
11990
12024
  }, s = (e) => {
11991
- var n = zd(), r = F(n);
12025
+ var n = Bd(), r = F(n);
11992
12026
  nt(), A(n), R(() => {
11993
12027
  Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
11994
12028
  }), K(e, n);
@@ -12002,22 +12036,22 @@ function pp(e, t) {
12002
12036
  B(v).length && e(gt);
12003
12037
  });
12004
12038
  var _t = L(ht), vt = (e) => {
12005
- var n = Gd(), r = I(n);
12039
+ var n = Kd(), r = I(n);
12006
12040
  Y(r, 17, () => B(O).valueTicks, (e) => e.label + e.x, (e, t) => {
12007
- var n = Vd(), r = I(n), i = L(r), a = F(i, !0);
12041
+ var n = Hd(), r = I(n), i = L(r), a = F(i, !0);
12008
12042
  A(i), R(() => {
12009
12043
  Q(r, "x1", B(t).x), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(t).x), Q(r, "y2", B(O).plot.y + B(O).plot.h), Q(i, "x", B(t).x), Q(i, "y", B(O).plot.y + B(O).plot.h + 14), q(a, B(t).label);
12010
12044
  }), K(e, n);
12011
12045
  });
12012
12046
  var i = L(r);
12013
12047
  Y(i, 17, () => B(O).catTicks, (e) => e.value, (e, t) => {
12014
- var n = Hd(), r = F(n, !0);
12048
+ var n = Ud(), r = F(n, !0);
12015
12049
  A(n), R((e) => {
12016
12050
  Q(n, "x", B(O).plot.x - 6), Q(n, "y", B(t).y + 3), q(r, e);
12017
12051
  }, [() => Ie(B(t).label, 18)]), K(e, n);
12018
12052
  });
12019
12053
  var a = L(i), o = (e) => {
12020
- var n = Ud();
12054
+ var n = Wd();
12021
12055
  Q(n, "x", 13);
12022
12056
  var r = F(n, !0);
12023
12057
  A(n), R(() => {
@@ -12028,7 +12062,7 @@ function pp(e, t) {
12028
12062
  t.spec.yAxisTitle && e(o);
12029
12063
  });
12030
12064
  var s = L(a), c = (e) => {
12031
- var n = Wd(), r = F(n, !0);
12065
+ var n = Gd(), r = F(n, !0);
12032
12066
  A(n), R(() => {
12033
12067
  Q(n, "x", B(O).plot.x + B(O).plot.w / 2), Q(n, "y", B(O).height - 3), q(r, t.spec.xAxisTitle);
12034
12068
  }), K(e, n);
@@ -12037,9 +12071,9 @@ function pp(e, t) {
12037
12071
  t.spec.xAxisTitle && e(c);
12038
12072
  }), K(e, n);
12039
12073
  }, yt = (e) => {
12040
- var n = $d(), r = I(n);
12074
+ var n = ef(), r = I(n);
12041
12075
  Y(r, 17, () => B(O).yTicks, (e) => e.value, (e, t) => {
12042
- var n = Kd(), r = I(n);
12076
+ var n = qd(), r = I(n);
12043
12077
  let i;
12044
12078
  var a = L(r), o = F(a, !0);
12045
12079
  A(a), R((e) => {
@@ -12049,7 +12083,7 @@ function pp(e, t) {
12049
12083
  var i = L(r), a = (e) => {
12050
12084
  var t = G();
12051
12085
  Y(I(t), 17, () => B(O).y2Ticks, (e) => e.value, (e, t) => {
12052
- var n = qd(), r = F(n, !0);
12086
+ var n = Jd(), r = F(n, !0);
12053
12087
  A(n), R((e) => {
12054
12088
  Q(n, "x", B(O).plot.x + B(O).plot.w + 6), Q(n, "y", B(t).y + 3), q(r, e);
12055
12089
  }, [() => Le(B(t).value, B(t).label)]), K(e, n);
@@ -12061,12 +12095,12 @@ function pp(e, t) {
12061
12095
  var o = L(i);
12062
12096
  Y(o, 17, () => B(O).xTicks, (e) => e.label + e.x, (e, t) => {
12063
12097
  var n = G(), r = I(n), i = (e) => {
12064
- var n = Jd(), r = F(n, !0);
12098
+ var n = Yd(), r = F(n, !0);
12065
12099
  A(n), R((e) => {
12066
12100
  Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 12), Q(n, "transform", `rotate(-40 ${B(t).x} ${B(O).plot.y + B(O).plot.h + 12})`), q(r, e);
12067
12101
  }, [() => Ie(B(t).label)]), K(e, n);
12068
12102
  }, a = (e) => {
12069
- var n = Yd(), r = F(n, !0);
12103
+ var n = Xd(), r = F(n, !0);
12070
12104
  A(n), R((e) => {
12071
12105
  Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 16), q(r, e);
12072
12106
  }, [() => Ie(B(t).label, 16)]), K(e, n);
@@ -12076,7 +12110,7 @@ function pp(e, t) {
12076
12110
  }), K(e, n);
12077
12111
  });
12078
12112
  var s = L(o), c = (e) => {
12079
- var n = Xd();
12113
+ var n = Zd();
12080
12114
  Q(n, "x", 13);
12081
12115
  var r = F(n, !0);
12082
12116
  A(n), R(() => {
@@ -12087,7 +12121,7 @@ function pp(e, t) {
12087
12121
  t.spec.yAxisTitle && e(c);
12088
12122
  });
12089
12123
  var l = L(s), u = (e) => {
12090
- var n = Zd(), r = F(n, !0);
12124
+ var n = Qd(), r = F(n, !0);
12091
12125
  A(n), R(() => {
12092
12126
  Q(n, "x", B(O).width - 5), Q(n, "y", B(O).plot.y + B(O).plot.h / 2), Q(n, "transform", `rotate(90 ${B(O).width - 5} ${B(O).plot.y + B(O).plot.h / 2})`), q(r, t.spec.y2AxisTitle);
12093
12127
  }), K(e, n);
@@ -12096,7 +12130,7 @@ function pp(e, t) {
12096
12130
  t.spec.y2AxisTitle && e(u);
12097
12131
  });
12098
12132
  var d = L(l), f = (e) => {
12099
- var n = Qd(), r = F(n, !0);
12133
+ var n = $d(), r = F(n, !0);
12100
12134
  A(n), R(() => {
12101
12135
  Q(n, "x", B(O).plot.x + B(O).plot.w / 2), Q(n, "y", B(O).height - 3), q(r, t.spec.xAxisTitle);
12102
12136
  }), K(e, n);
@@ -12110,8 +12144,8 @@ function pp(e, t) {
12110
12144
  });
12111
12145
  var bt = L(_t);
12112
12146
  Y(bt, 19, () => B(O).lines, (e, t) => e.label + t, (e, t) => {
12113
- var n = af(), r = F(n), a = (e) => {
12114
- var n = ef();
12147
+ var n = of(), r = F(n), a = (e) => {
12148
+ var n = tf();
12115
12149
  R(() => {
12116
12150
  Q(n, "d", B(t).bandPath), Q(n, "fill", B(t).color);
12117
12151
  }), K(e, n);
@@ -12120,7 +12154,7 @@ function pp(e, t) {
12120
12154
  B(t).bandPath && e(a);
12121
12155
  });
12122
12156
  var o = L(r), s = (e) => {
12123
- var n = tf();
12157
+ var n = nf();
12124
12158
  R(() => {
12125
12159
  Q(n, "d", B(t).areaPath), Q(n, "fill", B(_)[B(t).label] ?? B(t).color);
12126
12160
  }), K(e, n);
@@ -12131,10 +12165,10 @@ function pp(e, t) {
12131
12165
  var c = L(o);
12132
12166
  Y(L(c), 17, () => B(t).points, si, (e, n, r) => {
12133
12167
  var a = G(), o = I(a), s = (e) => {
12134
- var a = rf(), o = I(a);
12168
+ var a = af(), o = I(a);
12135
12169
  let s;
12136
12170
  var c = L(o), u = (e) => {
12137
- var t = nf(), r = F(t, !0);
12171
+ var t = rf(), r = F(t, !0);
12138
12172
  A(t), R((e) => {
12139
12173
  Q(t, "x", B(n).x), Q(t, "y", B(n).y - 7), q(r, e);
12140
12174
  }, [() => l(B(n).value)]), K(e, t);
@@ -12154,15 +12188,15 @@ function pp(e, t) {
12154
12188
  });
12155
12189
  var xt = L(bt);
12156
12190
  Y(xt, 17, () => B(O).bars, si, (e, n) => {
12157
- var r = cf(), a = I(r), o = L(a), s = (e) => {
12158
- var r = of();
12191
+ var r = lf(), a = I(r), o = L(a), s = (e) => {
12192
+ var r = sf();
12159
12193
  let i;
12160
12194
  var a = F(r, !0);
12161
12195
  A(r), R((e) => {
12162
12196
  i = X(r, 0, "sv-grid-chart-datalabel svelte-hyytey", null, i, { "on-bar": t.spec.stacked || t.spec.stacked100 }), Q(r, "x", t.spec.stacked || t.spec.stacked100 ? B(n).x + B(n).w / 2 : B(n).value >= 0 ? B(n).x + B(n).w + 3 : B(n).x - 3), Q(r, "y", B(n).y + B(n).h / 2 + 3), Q(r, "text-anchor", t.spec.stacked || t.spec.stacked100 ? "middle" : B(n).value >= 0 ? "start" : "end"), q(a, e);
12163
12197
  }, [() => l(B(n).value)]), K(e, r);
12164
12198
  }, c = (e) => {
12165
- var r = sf();
12199
+ var r = cf();
12166
12200
  let i;
12167
12201
  var a = F(r, !0);
12168
12202
  A(r), R((e) => {
@@ -12177,28 +12211,28 @@ function pp(e, t) {
12177
12211
  });
12178
12212
  var St = L(xt);
12179
12213
  Y(St, 17, () => B(O).scatterPoints, si, (e, t) => {
12180
- var n = lf();
12214
+ var n = uf();
12181
12215
  R((e) => {
12182
12216
  Q(n, "cx", B(t).cx), Q(n, "cy", B(t).cy), Q(n, "r", B(t).r), Q(n, "fill", B(t).color), Q(n, "stroke", B(t).color), Z(n, e);
12183
12217
  }, [() => `opacity:${De(B(t).series)}`]), H("mousemove", n, (e) => Je(e.clientX, e.clientY, B(t))), V("mouseleave", n, Ke), K(e, n);
12184
12218
  });
12185
12219
  var Ct = L(St);
12186
12220
  Y(Ct, 17, () => B(O).referenceLines, si, (e, t) => {
12187
- var n = uf(), r = I(n), i = L(r), a = F(i, !0);
12221
+ var n = df(), r = I(n), i = L(r), a = F(i, !0);
12188
12222
  A(i), R(() => {
12189
12223
  Q(r, "x1", B(O).plot.x), Q(r, "y1", B(t).y), Q(r, "x2", B(O).plot.x + B(O).plot.w), Q(r, "y2", B(t).y), Q(r, "stroke", B(t).color), Q(r, "stroke-dasharray", B(t).dashed ? "5 4" : void 0), Q(i, "x", B(O).plot.x + B(O).plot.w - 3), Q(i, "y", B(t).y - 3), Q(i, "fill", B(t).color), q(a, B(t).label);
12190
12224
  }), K(e, n);
12191
12225
  });
12192
12226
  var wt = L(Ct);
12193
12227
  Y(wt, 17, () => B(O).referenceLinesV, si, (e, t) => {
12194
- var n = df(), r = I(n), i = L(r), a = F(i, !0);
12228
+ var n = ff(), r = I(n), i = L(r), a = F(i, !0);
12195
12229
  A(i), R(() => {
12196
12230
  Q(r, "x1", B(t).x), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(t).x), Q(r, "y2", B(O).plot.y + B(O).plot.h), Q(r, "stroke", B(t).color), Q(r, "stroke-dasharray", B(t).dashed ? "5 4" : void 0), Q(i, "x", B(t).x + 3), Q(i, "y", B(O).plot.y + 9), Q(i, "fill", B(t).color), q(a, B(t).label);
12197
12231
  }), K(e, n);
12198
12232
  });
12199
12233
  var Tt = L(wt);
12200
12234
  Y(Tt, 19, () => B(O).overlays, (e, t) => e.label + t, (e, t) => {
12201
- var n = ff();
12235
+ var n = pf();
12202
12236
  R(() => {
12203
12237
  Q(n, "d", B(t).path), Q(n, "stroke", B(t).color);
12204
12238
  }), K(e, n);
@@ -12206,7 +12240,7 @@ function pp(e, t) {
12206
12240
  var Et = L(Tt);
12207
12241
  Y(Et, 19, () => B(O).annotations, (e, t) => e.label + t, (e, t) => {
12208
12242
  let n = /* @__PURE__ */ M(() => B(t).placement === "left" ? -8 : B(t).placement === "right" ? 8 : 0), r = /* @__PURE__ */ M(() => B(t).placement === "bottom" ? 14 : B(t).placement === "top" ? -8 : 0), i = /* @__PURE__ */ M(() => B(t).placement === "left" ? "end" : B(t).placement === "right" ? "start" : "middle");
12209
- var a = pf(), o = I(a), s = L(o), c = F(s, !0);
12243
+ var a = mf(), o = I(a), s = L(o), c = F(s, !0);
12210
12244
  A(s), R(() => {
12211
12245
  Q(o, "cx", B(t).x), Q(o, "cy", B(t).y), Q(o, "fill", B(t).color), Q(s, "x", B(t).x + B(n)), Q(s, "y", B(t).y + B(r)), Q(s, "text-anchor", B(i)), Q(s, "fill", B(t).color), q(c, B(t).label);
12212
12246
  }), K(e, a);
@@ -12214,13 +12248,13 @@ function pp(e, t) {
12214
12248
  var Dt = L(Et), Ot = (e) => {
12215
12249
  var t = G(), n = I(t), r = (e) => {
12216
12250
  let t = /* @__PURE__ */ M(() => B(O).plot.y + B(Ee) * B(Ve) + B(Ee) / 2);
12217
- var n = mf();
12251
+ var n = hf();
12218
12252
  R(() => {
12219
12253
  Q(n, "x1", B(O).plot.x), Q(n, "y1", B(t)), Q(n, "x2", B(O).plot.x + B(O).plot.w), Q(n, "y2", B(t));
12220
12254
  }), K(e, n);
12221
12255
  }, i = (e) => {
12222
12256
  let t = /* @__PURE__ */ M(() => B(O).lines[0]?.points[B(Ve)]), n = /* @__PURE__ */ M(() => B(t) && Number.isFinite(B(t).x) ? B(t).x : B(O).plot.x + B(Ee) * B(Ve) + B(Ee) / 2);
12223
- var r = hf();
12257
+ var r = gf();
12224
12258
  R(() => {
12225
12259
  Q(r, "x1", B(n)), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(n)), Q(r, "y2", B(O).plot.y + B(O).plot.h);
12226
12260
  }), K(e, r);
@@ -12233,24 +12267,24 @@ function pp(e, t) {
12233
12267
  B(ge) && B(Ve) !== null && e(Ot);
12234
12268
  });
12235
12269
  var kt = L(Dt), At = (e) => {
12236
- var n = Sf(), r = I(n);
12270
+ var n = Cf(), r = I(n);
12237
12271
  Y(r, 17, () => B(O).heatmapRowTicks, (e) => e.value, (e, t) => {
12238
- var n = gf(), r = F(n, !0);
12272
+ var n = _f(), r = F(n, !0);
12239
12273
  A(n), R((e) => {
12240
12274
  Q(n, "x", B(O).plot.x - 8), Q(n, "y", B(t).y + 3), q(r, e);
12241
12275
  }, [() => Ie(B(t).label, 22)]), K(e, n);
12242
12276
  });
12243
12277
  var a = L(r);
12244
12278
  Y(a, 19, () => B(O).heatmapColTicks, (e, t) => e.label + t, (e, t) => {
12245
- var n = _f(), r = F(n, !0);
12279
+ var n = vf(), r = F(n, !0);
12246
12280
  A(n), R((e) => {
12247
12281
  Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 14), q(r, e);
12248
12282
  }, [() => Ie(B(t).label, 14)]), K(e, n);
12249
12283
  });
12250
12284
  var o = L(a);
12251
12285
  Y(o, 17, () => B(O).heatmapCells, si, (e, n) => {
12252
- var r = yf(), a = I(r), o = L(a), s = (e) => {
12253
- var t = vf(), r = F(t, !0);
12286
+ var r = bf(), a = I(r), o = L(a), s = (e) => {
12287
+ var t = yf(), r = F(t, !0);
12254
12288
  A(t), R((e) => {
12255
12289
  Q(t, "x", B(n).x + B(n).w / 2), Q(t, "y", B(n).y + B(n).h / 2 + 3), Q(t, "fill", B(n).textColor), q(r, e);
12256
12290
  }, [() => l(B(n).value)]), K(e, t);
@@ -12263,9 +12297,9 @@ function pp(e, t) {
12263
12297
  });
12264
12298
  var s = L(o), c = (e) => {
12265
12299
  let t = /* @__PURE__ */ M(() => B(O).plot.x + B(O).plot.w + 14), n = /* @__PURE__ */ M(() => B(O).plot.h - 20), r = /* @__PURE__ */ M(() => B(O).heatmapLegend);
12266
- var i = xf(), a = I(i), o = F(a);
12300
+ var i = Sf(), a = I(i), o = F(a);
12267
12301
  Y(o, 21, () => B(r), si, (e, t, n) => {
12268
- var i = bf();
12302
+ var i = xf();
12269
12303
  R(() => {
12270
12304
  Q(i, "offset", `${n / (B(r).length - 1) * 100}%`), Q(i, "stop-color", B(t).color);
12271
12305
  }), K(e, i);
@@ -12287,7 +12321,7 @@ function pp(e, t) {
12287
12321
  var j = L(kt), jt = (e) => {
12288
12322
  var n = G();
12289
12323
  Y(I(n), 17, () => B(O).funnelSegments, si, (e, n, r) => {
12290
- var i = Cf(), a = I(i), o = L(a), s = F(o, !0);
12324
+ var i = wf(), a = I(i), o = L(a), s = F(o, !0);
12291
12325
  A(o);
12292
12326
  var c = L(o), u = F(c);
12293
12327
  A(c), R((e, r, i, l) => {
@@ -12305,10 +12339,10 @@ function pp(e, t) {
12305
12339
  });
12306
12340
  var Mt = L(j), Nt = (e) => {
12307
12341
  let t = /* @__PURE__ */ M(() => B(O).radarCenter);
12308
- var n = Of(), r = I(n);
12342
+ var n = kf(), r = I(n);
12309
12343
  Y(r, 17, () => B(O).radarRings, si, (e, n, r) => {
12310
12344
  let i = /* @__PURE__ */ M(() => B(t).r * ((r + 1) / B(O).radarRings.length));
12311
- var a = wf();
12345
+ var a = Tf();
12312
12346
  R(() => {
12313
12347
  Q(a, "cx", B(t).cx), Q(a, "cy", B(t).cy), Q(a, "r", B(i));
12314
12348
  }), K(e, a);
@@ -12316,14 +12350,14 @@ function pp(e, t) {
12316
12350
  var i = L(r);
12317
12351
  Y(i, 17, () => B(O).radarAxes, si, (e, n) => {
12318
12352
  let r = /* @__PURE__ */ M(() => B(n).x - B(t).cx), i = /* @__PURE__ */ M(() => B(n).y - B(t).cy), a = /* @__PURE__ */ M(() => B(t).cx + B(r) * 1.08), o = /* @__PURE__ */ M(() => B(t).cy + B(i) * 1.08);
12319
- var s = Tf(), c = I(s), l = L(c), u = F(l, !0);
12353
+ var s = Ef(), c = I(s), l = L(c), u = F(l, !0);
12320
12354
  A(l), R((e) => {
12321
12355
  Q(c, "x1", B(t).cx), Q(c, "y1", B(t).cy), Q(c, "x2", B(n).x), Q(c, "y2", B(n).y), Q(l, "x", B(a)), Q(l, "y", B(o) + 3), Q(l, "text-anchor", e), q(u, B(n).label);
12322
12356
  }, [() => Math.abs(B(r)) < 1 ? "middle" : B(r) > 0 ? "start" : "end"]), K(e, s);
12323
12357
  }), Y(L(i), 17, () => B(O).radarSeries, si, (e, t) => {
12324
- var n = Df(), r = I(n);
12358
+ var n = Of(), r = I(n);
12325
12359
  Y(L(r), 17, () => B(t).points, si, (e, n) => {
12326
- var r = Ef();
12360
+ var r = Df();
12327
12361
  R(() => {
12328
12362
  Q(r, "cx", B(n).x), Q(r, "cy", B(n).y), Q(r, "fill", B(t).color);
12329
12363
  }), H("mousemove", r, (e) => Ze(e.clientX, e.clientY, B(t).label, B(n).axis, B(n).value, B(t).color)), V("mouseleave", r, Ke), K(e, r);
@@ -12336,9 +12370,9 @@ function pp(e, t) {
12336
12370
  B(be) && B(O).radarCenter && e(Nt);
12337
12371
  });
12338
12372
  var Pt = L(Mt), Ft = (e) => {
12339
- var t = Pf(), n = I(t);
12373
+ var t = Ff(), n = I(t);
12340
12374
  Y(n, 17, () => B(O).calendarMonthTicks, si, (e, t) => {
12341
- var n = kf(), r = F(n, !0);
12375
+ var n = Af(), r = F(n, !0);
12342
12376
  A(n), R(() => {
12343
12377
  Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y - 8), q(r, B(t).label);
12344
12378
  }), K(e, n);
@@ -12355,7 +12389,7 @@ function pp(e, t) {
12355
12389
  5
12356
12390
  ][n]), i = /* @__PURE__ */ M(() => B(O).calendarCells[B(r)]);
12357
12391
  var a = G(), o = I(a), s = (e) => {
12358
- var n = Af(), r = F(n, !0);
12392
+ var n = jf(), r = F(n, !0);
12359
12393
  A(n), R(() => {
12360
12394
  Q(n, "x", B(O).plot.x - 6), Q(n, "y", B(i).y + B(i).size / 2 + 3), q(r, t);
12361
12395
  }), K(e, n);
@@ -12366,7 +12400,7 @@ function pp(e, t) {
12366
12400
  });
12367
12401
  var i = L(r);
12368
12402
  Y(i, 17, () => B(O).calendarCells, si, (e, t) => {
12369
- var n = jf();
12403
+ var n = Mf();
12370
12404
  let r;
12371
12405
  R((e) => {
12372
12406
  r = X(n, 0, "sv-grid-chart-calendar-cell svelte-hyytey", null, r, { "is-blank": !B(t).defined }), Q(n, "x", B(t).x + 1), Q(n, "y", B(t).y + 1), Q(n, "width", B(t).size - 2), Q(n, "height", B(t).size - 2), Q(n, "fill", B(t).defined ? B(t).color : "transparent"), Q(n, "aria-label", e);
@@ -12377,9 +12411,9 @@ function pp(e, t) {
12377
12411
  });
12378
12412
  var a = L(i), o = (e) => {
12379
12413
  let t = /* @__PURE__ */ M(() => B(O).plot.x + B(O).plot.w + 12), n = /* @__PURE__ */ M(() => B(O).plot.y + 4);
12380
- var r = Nf(), i = I(r), a = L(i);
12414
+ var r = Pf(), i = I(r), a = L(i);
12381
12415
  Y(a, 17, () => B(O).calendarLegend, si, (e, r, i) => {
12382
- var a = Mf(), o = I(a), s = L(o), c = F(s, !0);
12416
+ var a = Nf(), o = I(a), s = L(o), c = F(s, !0);
12383
12417
  A(s), R(() => {
12384
12418
  Q(o, "x", B(t)), Q(o, "y", B(n) + 6 + i * 13), Q(o, "fill", B(r).color), Q(s, "x", B(t) + 14), Q(s, "y", B(n) + 14 + i * 13), q(c, B(r).label);
12385
12419
  }), K(e, a);
@@ -12398,9 +12432,9 @@ function pp(e, t) {
12398
12432
  });
12399
12433
  var It = L(Pt), Lt = (e) => {
12400
12434
  let t = /* @__PURE__ */ M(() => B(O).gauge);
12401
- var n = Rf(), r = I(n);
12435
+ var n = zf(), r = I(n);
12402
12436
  Y(r, 17, () => B(t).ticks, si, (e, t) => {
12403
- var n = Ff();
12437
+ var n = If();
12404
12438
  let r;
12405
12439
  R(() => {
12406
12440
  r = X(n, 0, "sv-grid-chart-gauge-tick svelte-hyytey", null, r, { "is-major": B(t).major }), Q(n, "x1", B(t).x1), Q(n, "y1", B(t).y1), Q(n, "x2", B(t).x2), Q(n, "y2", B(t).y2);
@@ -12408,13 +12442,13 @@ function pp(e, t) {
12408
12442
  });
12409
12443
  var i = L(r), a = L(i);
12410
12444
  Y(a, 17, () => B(t).rangePaths, si, (e, t) => {
12411
- var n = If();
12445
+ var n = Lf();
12412
12446
  R(() => {
12413
12447
  Q(n, "d", B(t).path), Q(n, "stroke", B(t).color);
12414
12448
  }), K(e, n);
12415
12449
  });
12416
12450
  var o = L(a), s = L(o), c = (e) => {
12417
- var n = Lf();
12451
+ var n = Rf();
12418
12452
  R(() => {
12419
12453
  Q(n, "x1", B(t).target.x1), Q(n, "y1", B(t).target.y1), Q(n, "x2", B(t).target.x2), Q(n, "y2", B(t).target.y2);
12420
12454
  }), K(e, n);
@@ -12441,8 +12475,8 @@ function pp(e, t) {
12441
12475
  var Rt = L(It), zt = (e) => {
12442
12476
  var t = G();
12443
12477
  Y(I(t), 17, () => B(O).treemapCells, si, (e, t) => {
12444
- var n = Vf(), r = I(n), i = L(r), a = (e) => {
12445
- var n = zf(), r = F(n, !0);
12478
+ var n = Hf(), r = I(n), i = L(r), a = (e) => {
12479
+ var n = Bf(), r = F(n, !0);
12446
12480
  A(n), R((e) => {
12447
12481
  Q(n, "x", B(t).x + 4), Q(n, "y", B(t).y + 12), Q(n, "fill", B(t).textColor), q(r, e);
12448
12482
  }, [() => Ie(B(t).name, Math.max(3, Math.floor(B(t).w / 7)))]), K(e, n);
@@ -12451,7 +12485,7 @@ function pp(e, t) {
12451
12485
  B(t).w > 36 && B(t).h > 18 && e(a);
12452
12486
  });
12453
12487
  var o = L(i), s = (e) => {
12454
- var n = Bf(), r = F(n, !0);
12488
+ var n = Vf(), r = F(n, !0);
12455
12489
  A(n), R((e) => {
12456
12490
  Q(n, "x", B(t).x + 4), Q(n, "y", B(t).y + 24), Q(n, "fill", B(t).textColor), q(r, e);
12457
12491
  }, [() => l(B(t).value)]), K(e, n);
@@ -12470,9 +12504,9 @@ function pp(e, t) {
12470
12504
  B(Ce) && e(zt);
12471
12505
  });
12472
12506
  var Bt = L(Rt), Vt = (e) => {
12473
- var t = Wf(), n = I(t);
12507
+ var t = Gf(), n = I(t);
12474
12508
  Y(n, 17, () => B(O).sankeyLinks, si, (e, t) => {
12475
- var n = Hf();
12509
+ var n = Uf();
12476
12510
  R((e) => {
12477
12511
  Q(n, "d", B(t).path), Q(n, "stroke", B(t).color), Q(n, "stroke-width", B(t).width), Q(n, "aria-label", e);
12478
12512
  }, [() => `${B(t).source} -> ${B(t).target}: ${l(B(t).value)}`]), H("mousemove", n, (e) => He(e.clientX, e.clientY, `${B(t).source} -> ${B(t).target}`, [{
@@ -12480,7 +12514,7 @@ function pp(e, t) {
12480
12514
  value: l(B(t).value)
12481
12515
  }])), V("mouseleave", n, Ke), K(e, n);
12482
12516
  }), Y(L(n), 17, () => B(O).sankeyNodes, si, (e, t) => {
12483
- var n = Uf(), r = I(n), i = L(r), a = F(i, !0);
12517
+ var n = Wf(), r = I(n), i = L(r), a = F(i, !0);
12484
12518
  A(i), R((e) => {
12485
12519
  Q(r, "x", B(t).x), Q(r, "y", B(t).y), Q(r, "width", B(t).w), Q(r, "height", B(t).h), Q(r, "fill", B(t).color), Q(r, "aria-label", e), Q(i, "x", B(t).column === 0 ? B(t).x + B(t).w + 4 : B(t).x - 4), Q(i, "y", B(t).y + B(t).h / 2 + 3), Q(i, "text-anchor", B(t).column === 0 ? "start" : "end"), q(a, B(t).label);
12486
12520
  }, [() => `${B(t).label}: in ${l(B(t).totalIn)}, out ${l(B(t).totalOut)}`]), H("mousemove", r, (e) => He(e.clientX, e.clientY, B(t).label, [{
@@ -12497,8 +12531,8 @@ function pp(e, t) {
12497
12531
  });
12498
12532
  var Ht = L(Bt);
12499
12533
  Y(Ht, 17, () => B(O).slices, si, (e, n, r) => {
12500
- var a = Kf(), o = I(a), s = L(o), c = (e) => {
12501
- var t = Gf(), r = F(t);
12534
+ var a = qf(), o = I(a), s = L(o), c = (e) => {
12535
+ var t = Kf(), r = F(t);
12502
12536
  A(t), R((e) => {
12503
12537
  Q(t, "x", B(n).cx), Q(t, "y", B(n).cy), q(r, `${e ?? ""}%`);
12504
12538
  }, [() => B(n).percent.toFixed(0)]), K(e, t);
@@ -12513,7 +12547,7 @@ function pp(e, t) {
12513
12547
  }), V("blur", o, Ke), H("click", o, () => k(B(n).label, B(n).label, B(n).value, r)), H("keydown", o, (e) => et(e, B(n).label, B(n).value)), K(e, a);
12514
12548
  });
12515
12549
  var Ut = L(Ht), Wt = (e) => {
12516
- var t = qf(), n = I(t), r = F(n, !0);
12550
+ var t = Jf(), n = I(t), r = F(n, !0);
12517
12551
  A(n);
12518
12552
  var i = L(n);
12519
12553
  R((e) => {
@@ -12527,7 +12561,7 @@ function pp(e, t) {
12527
12561
  var n = G();
12528
12562
  Y(I(n), 19, () => B(me).categories, (e, t) => e + t, (e, n, i) => {
12529
12563
  let a = /* @__PURE__ */ M(() => B(O).lines[0]?.points), o = /* @__PURE__ */ M(() => B(a)?.[B(i)]?.x), s = /* @__PURE__ */ M(() => !B(Te) && B(a) && B(a).length === B(me).categories.length && Number.isFinite(B(o))), c = /* @__PURE__ */ M(() => B(s) && B(i) > 0 ? B(a)[B(i) - 1].x : null), l = /* @__PURE__ */ M(() => B(s) && B(i) < B(a).length - 1 ? B(a)[B(i) + 1].x : null), u = /* @__PURE__ */ M(() => B(s) ? B(c) == null ? B(O).plot.x : (B(c) + B(o)) / 2 : B(O).plot.x + B(Ee) * B(i)), d = /* @__PURE__ */ M(() => B(s) ? B(l) == null ? B(O).plot.x + B(O).plot.w : (B(o) + B(l)) / 2 : B(O).plot.x + B(Ee) * (B(i) + 1));
12530
- var f = Jf();
12564
+ var f = Yf();
12531
12565
  R((e, n) => {
12532
12566
  Q(f, "x", B(Te) ? B(O).plot.x : B(u)), Q(f, "y", B(Te) ? B(O).plot.y + B(Ee) * B(i) : B(O).plot.y), Q(f, "width", e), Q(f, "height", B(Te) ? B(Ee) : B(O).plot.h), Q(f, "role", t.onSelect ? "button" : "img"), Q(f, "tabindex", r() ? B(i) === 0 ? 0 : -1 : void 0), Q(f, "data-cat-index", B(i)), Q(f, "aria-label", n);
12533
12567
  }, [() => B(Te) ? B(O).plot.w : Math.max(0, B(d) - B(u)), () => `${B(n)}: ${Ue(B(i)).map((e) => `${e.label} ${e.value}`).join(", ")}`]), H("mousemove", f, (e) => We(e.clientX, e.clientY, B(i))), V("mouseleave", f, Ke), V("focus", f, (e) => Ge(e.currentTarget, B(i))), V("blur", f, Ke), H("click", f, () => k(B(n), "", 0, B(i))), H("keydown", f, (e) => $e(e, B(i))), K(e, f);
@@ -12537,7 +12571,7 @@ function pp(e, t) {
12537
12571
  B(ge) && !B(_e) && e(Kt);
12538
12572
  });
12539
12573
  var qt = L(Gt), Jt = (e) => {
12540
- var t = Yf();
12574
+ var t = Xf();
12541
12575
  R(() => {
12542
12576
  Q(t, "x", B(E).x), Q(t, "y", B(E).y), Q(t, "width", B(E).w), Q(t, "height", B(E).h);
12543
12577
  }), K(e, t);
@@ -12547,10 +12581,10 @@ function pp(e, t) {
12547
12581
  }), A(dt), ta(dt, (e) => P(C, e), () => B(C));
12548
12582
  var Yt = L(dt, 2), Xt = (e) => {
12549
12583
  let t = /* @__PURE__ */ M(() => B(D).plot.x + B(ce).t0 * B(D).plot.w), n = /* @__PURE__ */ M(() => (B(ce).t1 - B(ce).t0) * B(D).plot.w);
12550
- var r = $f(), i = F(r);
12584
+ var r = ep(), i = F(r);
12551
12585
  Y(i, 17, () => B(D).lines, si, (e, t) => {
12552
- var n = Zf(), r = I(n), i = (e) => {
12553
- var n = Xf();
12586
+ var n = Qf(), r = I(n), i = (e) => {
12587
+ var n = Zf();
12554
12588
  R(() => {
12555
12589
  Q(n, "d", B(t).areaPath), Q(n, "fill", B(t).color);
12556
12590
  }), K(e, n);
@@ -12565,7 +12599,7 @@ function pp(e, t) {
12565
12599
  });
12566
12600
  var a = L(i);
12567
12601
  Y(a, 17, () => B(D).bars, si, (e, t) => {
12568
- var n = Qf();
12602
+ var n = $f();
12569
12603
  R(() => {
12570
12604
  Q(n, "x", B(t).x), Q(n, "y", B(t).y), Q(n, "width", B(t).w), Q(n, "height", B(t).h), Q(n, "fill", B(t).color);
12571
12605
  }), K(e, n);
@@ -12579,25 +12613,25 @@ function pp(e, t) {
12579
12613
  B(oe) && B(D) && e(Xt);
12580
12614
  });
12581
12615
  var Zt = L(Yt, 2), Qt = (e) => {
12582
- K(e, ep());
12616
+ K(e, tp());
12583
12617
  };
12584
12618
  J(Zt, (e) => {
12585
12619
  B(Me) && e(Qt);
12586
12620
  });
12587
12621
  var $t = L(Zt, 2), en = (e) => {
12588
- var t = ip();
12622
+ var t = ap();
12589
12623
  let n;
12590
12624
  var r = F(t), i = F(r, !0);
12591
12625
  A(r), Y(L(r, 2), 17, () => B(Be).rows, si, (e, t) => {
12592
- var n = rp(), r = F(n), i = (e) => {
12593
- var n = tp();
12626
+ var n = ip(), r = F(n), i = (e) => {
12627
+ var n = np();
12594
12628
  R(() => Z(n, `background:${B(t).color}`)), K(e, n);
12595
12629
  };
12596
12630
  J(r, (e) => {
12597
12631
  B(t).color && e(i);
12598
12632
  });
12599
12633
  var a = L(r, 2), o = (e) => {
12600
- var n = np(), r = F(n, !0);
12634
+ var n = rp(), r = F(n, !0);
12601
12635
  A(n), R(() => q(r, B(t).label)), K(e, n);
12602
12636
  };
12603
12637
  J(a, (e) => {
@@ -12613,9 +12647,9 @@ function pp(e, t) {
12613
12647
  B(Be) && e(en);
12614
12648
  });
12615
12649
  var tn = L($t, 2), nn = (e) => {
12616
- var t = sp(), n = F(t);
12650
+ var t = cp(), n = F(t);
12617
12651
  Y(n, 17, () => B(je), (e) => e.label, (e, t) => {
12618
- var n = ap();
12652
+ var n = op();
12619
12653
  let i;
12620
12654
  var a = F(n), o = L(a);
12621
12655
  A(n), R(() => {
@@ -12626,7 +12660,7 @@ function pp(e, t) {
12626
12660
  }), H("click", n, () => Ne(B(t).label)), H("dblclick", n, () => Pe(B(t).label)), V("pointerenter", n, () => r() && P(f, B(t).label, !0)), V("pointerleave", n, () => P(f, null)), K(e, n);
12627
12661
  });
12628
12662
  var i = L(n, 2), a = (e) => {
12629
- var t = op(), n = F(t, !0);
12663
+ var t = sp(), n = F(t, !0);
12630
12664
  A(t), R(() => q(n, B(ke) ? "Show less" : `+${B(Oe).length - 10} more`)), H("click", t, () => P(ke, !B(ke))), K(e, t);
12631
12665
  };
12632
12666
  J(i, (e) => {
@@ -12640,14 +12674,14 @@ function pp(e, t) {
12640
12674
  A(an);
12641
12675
  var sn = L(an), cn = F(sn);
12642
12676
  Y(cn, 20, () => B(Fe).cols, (e) => e, (e, t) => {
12643
- var n = cp(), r = F(n, !0);
12677
+ var n = lp(), r = F(n, !0);
12644
12678
  A(n), R(() => q(r, t)), K(e, n);
12645
12679
  }), A(cn), A(sn);
12646
12680
  var ln = L(sn);
12647
12681
  Y(ln, 21, () => B(Fe).rows, si, (e, t) => {
12648
- var n = up();
12682
+ var n = dp();
12649
12683
  Y(n, 21, () => B(t), si, (e, t) => {
12650
- var n = lp(), r = F(n, !0);
12684
+ var n = up(), r = F(n, !0);
12651
12685
  A(n), R(() => q(r, B(t))), K(e, n);
12652
12686
  }), A(n), K(e, n);
12653
12687
  }), A(ln), A(rn), A(ct), ta(ct, (e) => P(Re, e), () => B(Re)), R(() => {
@@ -12670,16 +12704,16 @@ Wr([
12670
12704
  ]);
12671
12705
  //#endregion
12672
12706
  //#region src/chart-export.ts
12673
- function mp(e) {
12707
+ function hp(e) {
12674
12708
  return e instanceof SVGSVGElement ? e : e.querySelector("svg.sv-grid-chart-svg") ?? e.querySelector("svg");
12675
12709
  }
12676
- function hp(e, t, n) {
12710
+ function gp(e, t, n) {
12677
12711
  return getComputedStyle(e).getPropertyValue(t).trim() || n;
12678
12712
  }
12679
- function gp(e, t = {}) {
12680
- let n = mp(e);
12713
+ function _p(e, t = {}) {
12714
+ let n = hp(e);
12681
12715
  if (!n) throw Error("chartToSvgString: no <svg> found");
12682
- let r = hp(n, "--sg-fg", "#0f172a"), i = hp(n, "--sg-muted", "#64748b"), a = hp(n, "--sg-border", "#e2e8f0"), o = t.background ?? hp(n, "--sg-bg", "#ffffff"), s = n.viewBox.baseVal, c = s && s.width ? s.width : n.clientWidth || 520, l = s && s.height ? s.height : n.clientHeight || 300, u = n.cloneNode(!0);
12716
+ let r = gp(n, "--sg-fg", "#0f172a"), i = gp(n, "--sg-muted", "#64748b"), a = gp(n, "--sg-border", "#e2e8f0"), o = t.background ?? gp(n, "--sg-bg", "#ffffff"), s = n.viewBox.baseVal, c = s && s.width ? s.width : n.clientWidth || 520, l = s && s.height ? s.height : n.clientHeight || 300, u = n.cloneNode(!0);
12683
12717
  u.setAttribute("width", String(c)), u.setAttribute("height", String(l)), u.setAttribute("xmlns", "http://www.w3.org/2000/svg"), u.querySelectorAll(".sv-grid-chart-hit").forEach((e) => e.remove());
12684
12718
  let d = document.createElementNS("http://www.w3.org/2000/svg", "style");
12685
12719
  d.textContent = `
@@ -12694,16 +12728,16 @@ function gp(e, t = {}) {
12694
12728
  let f = document.createElementNS("http://www.w3.org/2000/svg", "rect");
12695
12729
  return f.setAttribute("x", "0"), f.setAttribute("y", "0"), f.setAttribute("width", String(c)), f.setAttribute("height", String(l)), f.setAttribute("fill", o), u.insertBefore(f, d.nextSibling), new XMLSerializer().serializeToString(u);
12696
12730
  }
12697
- function _p(e, t) {
12731
+ function vp(e, t) {
12698
12732
  let n = document.createElement("a");
12699
12733
  n.href = e, n.download = t, document.body.appendChild(n), n.click(), n.remove();
12700
12734
  }
12701
- function vp(e, t = "chart.svg", n = {}) {
12702
- let r = gp(e, n), i = URL.createObjectURL(new Blob([r], { type: "image/svg+xml" }));
12703
- _p(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
12735
+ function yp(e, t = "chart.svg", n = {}) {
12736
+ let r = _p(e, n), i = URL.createObjectURL(new Blob([r], { type: "image/svg+xml" }));
12737
+ vp(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
12704
12738
  }
12705
- function yp(e, t = {}) {
12706
- let n = gp(e, t), r = t.scale ?? 2, i = mp(e), a = i.viewBox.baseVal, o = (a && a.width ? a.width : i.clientWidth || 520) * r, s = (a && a.height ? a.height : i.clientHeight || 300) * r;
12739
+ function bp(e, t = {}) {
12740
+ let n = _p(e, t), r = t.scale ?? 2, i = hp(e), a = i.viewBox.baseVal, o = (a && a.width ? a.width : i.clientWidth || 520) * r, s = (a && a.height ? a.height : i.clientHeight || 300) * r;
12707
12741
  return new Promise((e, t) => {
12708
12742
  let r = URL.createObjectURL(new Blob([n], { type: "image/svg+xml" })), i = new Image();
12709
12743
  i.onload = () => {
@@ -12720,13 +12754,13 @@ function yp(e, t = {}) {
12720
12754
  }, i.src = r;
12721
12755
  });
12722
12756
  }
12723
- async function bp(e, t = "chart.png", n = {}) {
12724
- let r = await yp(e, n), i = URL.createObjectURL(r);
12725
- _p(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
12757
+ async function xp(e, t = "chart.png", n = {}) {
12758
+ let r = await bp(e, n), i = URL.createObjectURL(r);
12759
+ vp(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
12726
12760
  }
12727
12761
  //#endregion
12728
12762
  //#region src/spreadsheet.ts
12729
- function xp(e, t, n) {
12763
+ function Sp(e, t, n) {
12730
12764
  let r = [], i = /* @__PURE__ */ new Set();
12731
12765
  for (let a = 0; a < e.length; a += 1) {
12732
12766
  let o = e[a];
@@ -12754,60 +12788,60 @@ function xp(e, t, n) {
12754
12788
  }
12755
12789
  return r;
12756
12790
  }
12757
- var Sp = [
12791
+ var Cp = [
12758
12792
  "top",
12759
12793
  "right",
12760
12794
  "bottom",
12761
12795
  "left"
12762
- ], Cp = "data-svgrid-sheet";
12763
- function wp(e) {
12796
+ ], wp = "data-svgrid-sheet";
12797
+ function Tp(e) {
12764
12798
  return e ? `${e.width ?? 2}px ${e.style ?? "solid"} ${e.color ?? "currentColor"}` : null;
12765
12799
  }
12766
- function Tp(e, t, n) {
12800
+ function Ep(e, t, n) {
12767
12801
  return e.querySelector(`td[data-svgrid-row="${t}"][data-col-id="${CSS.escape(n)}"]`);
12768
12802
  }
12769
- var Ep = "sv-cell-border-overlay";
12770
- function Dp(e, t) {
12771
- for (let t of e.querySelectorAll(`td[${Cp}]`)) {
12803
+ var Dp = "sv-cell-border-overlay";
12804
+ function Op(e, t) {
12805
+ for (let t of e.querySelectorAll(`td[${wp}]`)) {
12772
12806
  t.removeAttribute("colspan"), t.removeAttribute("rowspan"), t.style.display === "none" && (t.style.display = "");
12773
- let e = t.querySelector(`:scope > .${Ep}`);
12774
- e && e.remove(), t.classList.remove("sv-merge-edge-right", "sv-merge-edge-bottom", "sv-merge-in-range"), t.removeAttribute(Cp);
12807
+ let e = t.querySelector(`:scope > .${Dp}`);
12808
+ e && e.remove(), t.classList.remove("sv-merge-edge-right", "sv-merge-edge-bottom", "sv-merge-in-range"), t.removeAttribute(wp);
12775
12809
  }
12776
12810
  let n = t.columnOrder, r = /* @__PURE__ */ new Map();
12777
12811
  for (let e = 0; e < n.length; e += 1) r.set(n[e], e);
12778
12812
  for (let i of t.merges ?? []) {
12779
12813
  let t = r.get(i.columnId);
12780
12814
  if (t === void 0) continue;
12781
- let a = Math.max(1, i.rowspan ?? 1), o = Math.max(1, i.colspan ?? 1), s = Tp(e, i.rowIndex, i.columnId);
12815
+ let a = Math.max(1, i.rowspan ?? 1), o = Math.max(1, i.colspan ?? 1), s = Ep(e, i.rowIndex, i.columnId);
12782
12816
  if (!s) continue;
12783
- o > 1 && s.setAttribute("colspan", String(o)), a > 1 && s.setAttribute("rowspan", String(a)), s.setAttribute(Cp, "");
12817
+ o > 1 && s.setAttribute("colspan", String(o)), a > 1 && s.setAttribute("rowspan", String(a)), s.setAttribute(wp, "");
12784
12818
  for (let r = 0; r < a; r += 1) for (let a = 0; a < o; a += 1) {
12785
12819
  if (r === 0 && a === 0) continue;
12786
12820
  let o = n[t + a];
12787
12821
  if (!o) continue;
12788
- let s = Tp(e, i.rowIndex + r, o);
12789
- s && (s.style.display = "none", s.setAttribute(Cp, ""));
12822
+ let s = Ep(e, i.rowIndex + r, o);
12823
+ s && (s.style.display = "none", s.setAttribute(wp, ""));
12790
12824
  }
12791
- let c = n[t + o - 1], l = c ? Tp(e, i.rowIndex, c) : null, u = Tp(e, i.rowIndex + a - 1, i.columnId), d = c ? Tp(e, i.rowIndex + a - 1, c) : null, f = l?.getAttribute("data-range-right") === "true" || d?.getAttribute("data-range-right") === "true", p = u?.getAttribute("data-range-bottom") === "true" || d?.getAttribute("data-range-bottom") === "true", m = l?.getAttribute("data-selected-range") === "true" || u?.getAttribute("data-selected-range") === "true" || d?.getAttribute("data-selected-range") === "true" || s.getAttribute("data-selected-range") === "true";
12825
+ let c = n[t + o - 1], l = c ? Ep(e, i.rowIndex, c) : null, u = Ep(e, i.rowIndex + a - 1, i.columnId), d = c ? Ep(e, i.rowIndex + a - 1, c) : null, f = l?.getAttribute("data-range-right") === "true" || d?.getAttribute("data-range-right") === "true", p = u?.getAttribute("data-range-bottom") === "true" || d?.getAttribute("data-range-bottom") === "true", m = l?.getAttribute("data-selected-range") === "true" || u?.getAttribute("data-selected-range") === "true" || d?.getAttribute("data-selected-range") === "true" || s.getAttribute("data-selected-range") === "true";
12792
12826
  s.classList.toggle("sv-merge-edge-right", f), s.classList.toggle("sv-merge-edge-bottom", p), s.classList.toggle("sv-merge-in-range", m);
12793
12827
  }
12794
12828
  for (let n of t.borders ?? []) {
12795
- let t = Tp(e, n.rowIndex, n.columnId);
12829
+ let t = Ep(e, n.rowIndex, n.columnId);
12796
12830
  if (!t) continue;
12797
12831
  let r = !1, i = document.createElement("div");
12798
- i.className = Ep, i.style.cssText = "position:absolute;inset:0;pointer-events:none;box-sizing:border-box;z-index:1;";
12799
- for (let e of Sp) {
12800
- let t = wp(n[e]);
12832
+ i.className = Dp, i.style.cssText = "position:absolute;inset:0;pointer-events:none;box-sizing:border-box;z-index:1;";
12833
+ for (let e of Cp) {
12834
+ let t = Tp(n[e]);
12801
12835
  t && (i.style.setProperty(`border-${e}`, t), r = !0);
12802
12836
  }
12803
- r && (getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.appendChild(i), t.setAttribute(Cp, ""));
12837
+ r && (getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.appendChild(i), t.setAttribute(wp, ""));
12804
12838
  }
12805
12839
  }
12806
- function Op(e, t) {
12840
+ function kp(e, t) {
12807
12841
  let n = t, r = 0;
12808
12842
  function i() {
12809
12843
  r ||= requestAnimationFrame(() => {
12810
- r = 0, Dp(e, n);
12844
+ r = 0, Op(e, n);
12811
12845
  });
12812
12846
  }
12813
12847
  let a = new MutationObserver(i);
@@ -12836,8 +12870,8 @@ function Op(e, t) {
12836
12870
  }
12837
12871
  //#endregion
12838
12872
  //#region src/row-resize.ts
12839
- var kp = "sv-grid-row-resize-handle";
12840
- function Ap(e, t) {
12873
+ var Ap = "sv-grid-row-resize-handle";
12874
+ function jp(e, t) {
12841
12875
  let n = t, r = null;
12842
12876
  function i(e) {
12843
12877
  let t = e.querySelector("[data-svgrid-row]")?.dataset.svgridRow;
@@ -12860,7 +12894,7 @@ function Ap(e, t) {
12860
12894
  function s(e) {
12861
12895
  if (n.disabled) return;
12862
12896
  let t = e.target;
12863
- if (!t?.classList.contains(kp)) return;
12897
+ if (!t?.classList.contains(Ap)) return;
12864
12898
  let s = t.closest("tr.sv-grid-row");
12865
12899
  if (!s) return;
12866
12900
  let c = i(s);
@@ -12887,14 +12921,14 @@ function Ap(e, t) {
12887
12921
  for (let e of t) {
12888
12922
  if (e.classList.contains("sv-grid-header-row") || e.classList.contains("sv-grid-row-spacer")) continue;
12889
12923
  let t = e.querySelector(".sv-grid-cell.sv-row-gutter");
12890
- if (!t || t.querySelector(`:scope > .${kp}`)) continue;
12924
+ if (!t || t.querySelector(`:scope > .${Ap}`)) continue;
12891
12925
  getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.style.overflow = "visible";
12892
12926
  let n = document.createElement("div");
12893
- n.className = kp, n.setAttribute("role", "separator"), n.setAttribute("aria-orientation", "horizontal"), n.setAttribute("aria-label", "Resize row"), n.style.cssText = "position:absolute;left:0;right:0;bottom:0;height:5px;cursor:row-resize;user-select:none;z-index:60;pointer-events:auto;", t.appendChild(n);
12927
+ n.className = Ap, n.setAttribute("role", "separator"), n.setAttribute("aria-orientation", "horizontal"), n.setAttribute("aria-label", "Resize row"), n.style.cssText = "position:absolute;left:0;right:0;bottom:0;height:5px;cursor:row-resize;user-select:none;z-index:60;pointer-events:auto;", t.appendChild(n);
12894
12928
  }
12895
12929
  }
12896
12930
  function l() {
12897
- e.querySelectorAll(`.${kp}`).forEach((e) => e.remove());
12931
+ e.querySelectorAll(`.${Ap}`).forEach((e) => e.remove());
12898
12932
  }
12899
12933
  e.addEventListener("pointerdown", s, { capture: !0 });
12900
12934
  let u = new MutationObserver(() => c());
@@ -12913,7 +12947,7 @@ function Ap(e, t) {
12913
12947
  }
12914
12948
  //#endregion
12915
12949
  //#region src/hyperformula-adapter.ts
12916
- function jp(e) {
12950
+ function Mp(e) {
12917
12951
  let { hyperformula: t, rows: n, fields: r } = e, i = e.sheetId ?? 0, a = /* @__PURE__ */ new Map();
12918
12952
  r.forEach((e, t) => a.set(e, t));
12919
12953
  for (let e = 0; e < n.length; e += 1) {
@@ -12970,7 +13004,7 @@ function jp(e) {
12970
13004
  }
12971
13005
  //#endregion
12972
13006
  //#region src/collaboration.ts
12973
- function Mp(e) {
13007
+ function Np(e) {
12974
13008
  let t = typeof BroadcastChannel < "u" ? new BroadcastChannel(e) : null;
12975
13009
  return {
12976
13010
  post(e) {
@@ -12983,7 +13017,7 @@ function Mp(e) {
12983
13017
  }
12984
13018
  };
12985
13019
  }
12986
- function Np(e) {
13020
+ function Pp(e) {
12987
13021
  let { user: t, transport: n } = e, r = e.peerTimeoutMs ?? 15e3, i = /* @__PURE__ */ new Map(), a = null, o = !1, s = () => [...i.values()].sort((e, t) => e.name.localeCompare(t.name)), c = () => e.onPeersChange?.(s());
12988
13022
  function l(e, n) {
12989
13023
  e.id !== t.id && (i.set(e.id, {
@@ -13055,7 +13089,7 @@ function Np(e) {
13055
13089
  }
13056
13090
  //#endregion
13057
13091
  //#region src/server-data-source.ts
13058
- function Pp(e, t) {
13092
+ function Fp(e, t) {
13059
13093
  let n = {
13060
13094
  rows: [],
13061
13095
  total: 0,
@@ -13113,7 +13147,7 @@ function Pp(e, t) {
13113
13147
  }
13114
13148
  //#endregion
13115
13149
  //#region src/named-views.ts
13116
- function Fp(e = []) {
13150
+ function Ip(e = []) {
13117
13151
  let t = [...e];
13118
13152
  return {
13119
13153
  read: () => t,
@@ -13122,7 +13156,7 @@ function Fp(e = []) {
13122
13156
  }
13123
13157
  };
13124
13158
  }
13125
- function Ip(e) {
13159
+ function Lp(e) {
13126
13160
  let t = typeof localStorage < "u";
13127
13161
  return {
13128
13162
  read() {
@@ -13141,8 +13175,8 @@ function Ip(e) {
13141
13175
  }
13142
13176
  };
13143
13177
  }
13144
- function Lp(e, t = {}) {
13145
- let n = t.storage ?? Fp(), r = () => n.read(), i = (e) => r().find((t) => t.name === e);
13178
+ function Rp(e, t = {}) {
13179
+ let n = t.storage ?? Ip(), r = () => n.read(), i = (e) => r().find((t) => t.name === e);
13146
13180
  return {
13147
13181
  list: () => r().slice().sort((e, t) => e.createdAt - t.createdAt),
13148
13182
  has: (e) => !!i(e),
@@ -13171,7 +13205,7 @@ function Lp(e, t = {}) {
13171
13205
  }
13172
13206
  };
13173
13207
  }
13174
- function Rp(e, t, n = {}) {
13208
+ function zp(e, t, n = {}) {
13175
13209
  let r = n.name ?? "__autosave";
13176
13210
  !n.skipRestore && t.has(r) && t.load(r);
13177
13211
  let i = Math.max(100, n.intervalMs ?? 800), a = JSON.stringify(e.getState()), o = setInterval(() => {
@@ -13187,13 +13221,13 @@ function Rp(e, t, n = {}) {
13187
13221
  }
13188
13222
  //#endregion
13189
13223
  //#region src/virtualization/virtualizer.ts
13190
- function zp(e, t, n) {
13224
+ function Bp(e, t, n) {
13191
13225
  return Math.min(Math.max(e, t), n);
13192
13226
  }
13193
- function Bp(e, t) {
13227
+ function Vp(e, t) {
13194
13228
  return e.count === t.count && e.estimateSize === t.estimateSize && (e.overscan ?? 6) === (t.overscan ?? 6) && e.viewportHeight === t.viewportHeight && (e.scrollOffset ?? 0) === (t.scrollOffset ?? 0);
13195
13229
  }
13196
- function Vp(e, t) {
13230
+ function Hp(e, t) {
13197
13231
  if (e.totalSize !== t.totalSize || e.startIndex !== t.startIndex || e.endIndex !== t.endIndex || e.viewportHeight !== t.viewportHeight || e.items.length !== t.items.length) return !1;
13198
13232
  for (let n = 0; n < e.items.length; n += 1) {
13199
13233
  let r = e.items[n], i = t.items[n];
@@ -13201,7 +13235,7 @@ function Vp(e, t) {
13201
13235
  }
13202
13236
  return !0;
13203
13237
  }
13204
- function Hp(e, t, n) {
13238
+ function Up(e, t, n) {
13205
13239
  let r = [];
13206
13240
  for (let i = e; i <= t; i += 1) {
13207
13241
  let t = i * n;
@@ -13215,7 +13249,7 @@ function Hp(e, t, n) {
13215
13249
  }
13216
13250
  return r;
13217
13251
  }
13218
- function Up(e, t, n) {
13252
+ function Wp(e, t, n) {
13219
13253
  let r = [];
13220
13254
  for (let i = e; i <= t; i += 1) {
13221
13255
  let t = n[i] ?? 0, a = n[i + 1] ?? t;
@@ -13229,10 +13263,10 @@ function Up(e, t, n) {
13229
13263
  }
13230
13264
  return r;
13231
13265
  }
13232
- function Wp(e, t) {
13266
+ function Gp(e, t) {
13233
13267
  let n = Math.max(e.count, 0), r = Math.max(e.overscan ?? 6, 0), i = Math.max(e.viewportHeight, 0);
13234
13268
  if (typeof e.estimateSize == "function" && t) {
13235
- let a = t[n] ?? 0, o = Math.max(a - i, 0), s = zp(e.scrollOffset ?? 0, 0, o), c = 0, l = n;
13269
+ let a = t[n] ?? 0, o = Math.max(a - i, 0), s = Bp(e.scrollOffset ?? 0, 0, o), c = 0, l = n;
13236
13270
  for (; c < l;) {
13237
13271
  let e = c + l >>> 1;
13238
13272
  (t[e + 1] ?? 0) <= s ? c = e + 1 : l = e;
@@ -13242,9 +13276,9 @@ function Wp(e, t) {
13242
13276
  let e = c + l >>> 1;
13243
13277
  (t[e] ?? 0) < d ? c = e + 1 : l = e;
13244
13278
  }
13245
- let f = Math.max(c - 1, u), p = n === 0 ? 0 : zp(u - r, 0, n - 1), m = n === 0 ? -1 : zp(f + r, 0, n - 1);
13279
+ let f = Math.max(c - 1, u), p = n === 0 ? 0 : Bp(u - r, 0, n - 1), m = n === 0 ? -1 : Bp(f + r, 0, n - 1);
13246
13280
  return {
13247
- items: m >= p ? Up(p, m, t) : [],
13281
+ items: m >= p ? Wp(p, m, t) : [],
13248
13282
  totalSize: a,
13249
13283
  startIndex: p,
13250
13284
  endIndex: m,
@@ -13252,9 +13286,9 @@ function Wp(e, t) {
13252
13286
  viewportHeight: i
13253
13287
  };
13254
13288
  }
13255
- let a = Math.max(typeof e.estimateSize == "number" ? e.estimateSize : 1, 1), o = n * a, s = Math.max(o - i, 0), c = zp(e.scrollOffset ?? 0, 0, s), l = Math.floor(c / a), u = Math.ceil(i / a), d = Math.min(l + u, Math.max(n - 1, 0)), f = n === 0 ? 0 : zp(l - r, 0, n - 1), p = n === 0 ? -1 : zp(d + r, 0, n - 1);
13289
+ let a = Math.max(typeof e.estimateSize == "number" ? e.estimateSize : 1, 1), o = n * a, s = Math.max(o - i, 0), c = Bp(e.scrollOffset ?? 0, 0, s), l = Math.floor(c / a), u = Math.ceil(i / a), d = Math.min(l + u, Math.max(n - 1, 0)), f = n === 0 ? 0 : Bp(l - r, 0, n - 1), p = n === 0 ? -1 : Bp(d + r, 0, n - 1);
13256
13290
  return {
13257
- items: p >= f ? Hp(f, p, a) : [],
13291
+ items: p >= f ? Up(f, p, a) : [],
13258
13292
  totalSize: o,
13259
13293
  startIndex: f,
13260
13294
  endIndex: p,
@@ -13262,7 +13296,7 @@ function Wp(e, t) {
13262
13296
  viewportHeight: i
13263
13297
  };
13264
13298
  }
13265
- function Gp(e) {
13299
+ function Kp(e) {
13266
13300
  let t = e, n = null;
13267
13301
  function r() {
13268
13302
  if (typeof t.estimateSize != "function") return null;
@@ -13277,13 +13311,13 @@ function Gp(e) {
13277
13311
  offsets: i
13278
13312
  }, i;
13279
13313
  }
13280
- let i = Wp(t, r()), a = /* @__PURE__ */ new Set();
13314
+ let i = Gp(t, r()), a = /* @__PURE__ */ new Set();
13281
13315
  function o() {
13282
13316
  a.forEach((e) => e());
13283
13317
  }
13284
13318
  function s() {
13285
- let e = Wp(t, r());
13286
- Vp(i, e) || (i = e, o());
13319
+ let e = Gp(t, r());
13320
+ Hp(i, e) || (i = e, o());
13287
13321
  }
13288
13322
  return {
13289
13323
  setOptions(e) {
@@ -13291,7 +13325,7 @@ function Gp(e) {
13291
13325
  ...t,
13292
13326
  ...e
13293
13327
  };
13294
- Bp(t, n) || (t = n, s());
13328
+ Vp(t, n) || (t = n, s());
13295
13329
  },
13296
13330
  setScrollOffset(e) {
13297
13331
  (t.scrollOffset ?? 0) !== e && (t = {
@@ -13306,7 +13340,7 @@ function Gp(e) {
13306
13340
  }, s());
13307
13341
  },
13308
13342
  scrollToIndex(e) {
13309
- let n = zp(e, 0, Math.max(t.count - 1, 0)), a = i.totalSize, o;
13343
+ let n = Bp(e, 0, Math.max(t.count - 1, 0)), a = i.totalSize, o;
13310
13344
  if (typeof t.estimateSize == "function") {
13311
13345
  let e = r();
13312
13346
  if (e) o = e[n] ?? 0;
@@ -13316,7 +13350,7 @@ function Gp(e) {
13316
13350
  o = e;
13317
13351
  }
13318
13352
  } else o = n * Math.max(t.estimateSize, 1);
13319
- let c = Math.max(a - t.viewportHeight, 0), l = zp(o, 0, c);
13353
+ let c = Math.max(a - t.viewportHeight, 0), l = Bp(o, 0, c);
13320
13354
  (t.scrollOffset ?? 0) !== l && (t = {
13321
13355
  ...t,
13322
13356
  scrollOffset: l
@@ -13353,8 +13387,8 @@ function Gp(e) {
13353
13387
  }
13354
13388
  //#endregion
13355
13389
  //#region src/virtualization/svelte-virtualizer.svelte.ts
13356
- function Kp(e) {
13357
- let t = Gp(e), n = /* @__PURE__ */ N(0);
13390
+ function qp(e) {
13391
+ let t = Kp(e), n = /* @__PURE__ */ N(0);
13358
13392
  return t.subscribe(() => {
13359
13393
  P(n, B(n) + 1);
13360
13394
  }), {
@@ -13374,8 +13408,8 @@ function Kp(e) {
13374
13408
  }
13375
13409
  //#endregion
13376
13410
  //#region src/virtualization/column-virtualizer.ts
13377
- function qp(e) {
13378
- let t = Gp({
13411
+ function Jp(e) {
13412
+ let t = Kp({
13379
13413
  count: e.count,
13380
13414
  estimateSize: e.estimateSize ?? 140,
13381
13415
  viewportHeight: e.viewportWidth,
@@ -13394,7 +13428,7 @@ function qp(e) {
13394
13428
  }
13395
13429
  //#endregion
13396
13430
  //#region src/editors/cell-editors.ts
13397
- function Jp(e) {
13431
+ function Yp(e) {
13398
13432
  return !e || typeof e == "function" ? [] : e.map((e) => typeof e == "string" || typeof e == "number" ? {
13399
13433
  value: e,
13400
13434
  label: String(e)
@@ -13404,7 +13438,7 @@ function Jp(e) {
13404
13438
  color: e.color
13405
13439
  });
13406
13440
  }
13407
- function Yp(e, t, n) {
13441
+ function Xp(e, t, n) {
13408
13442
  if (e === "number") {
13409
13443
  let e = Number(t);
13410
13444
  return Number.isFinite(e) ? e : null;
@@ -13434,14 +13468,14 @@ function Yp(e, t, n) {
13434
13468
  }
13435
13469
  //#endregion
13436
13470
  //#region src/filtering/excel-filters.ts
13437
- var Xp = /[̀-ͯ]/g;
13438
- function Zp(e, t) {
13471
+ var Zp = /[̀-ͯ]/g;
13472
+ function Qp(e, t) {
13439
13473
  if (!e) return "";
13440
- let n = e.normalize("NFD").replace(Xp, "");
13474
+ let n = e.normalize("NFD").replace(Zp, "");
13441
13475
  return t ? n.toLocaleLowerCase(t) : n.toLowerCase();
13442
13476
  }
13443
- function Qp(e, t, n) {
13444
- let r = String(e ?? ""), i = Zp(r, n?.locale), a = Zp(String(t.value ?? ""), n?.locale);
13477
+ function $p(e, t, n) {
13478
+ let r = String(e ?? ""), i = Qp(r, n?.locale), a = Qp(String(t.value ?? ""), n?.locale);
13445
13479
  switch (t.operator) {
13446
13480
  case "contains": return i.includes(a);
13447
13481
  case "equals": return i === a;
@@ -13465,7 +13499,7 @@ function Qp(e, t, n) {
13465
13499
  }
13466
13500
  //#endregion
13467
13501
  //#region src/a11y.ts
13468
- function $p(e = {}) {
13502
+ function em(e = {}) {
13469
13503
  return {
13470
13504
  role: "grid",
13471
13505
  tabindex: 0,
@@ -13474,33 +13508,33 @@ function $p(e = {}) {
13474
13508
  ...e.colCount === void 0 ? {} : { "aria-colcount": e.colCount }
13475
13509
  };
13476
13510
  }
13477
- function em(e = {}) {
13511
+ function tm(e = {}) {
13478
13512
  let { sortable: t = !1, sortDirection: n = "none" } = e;
13479
13513
  return {
13480
13514
  role: "columnheader",
13481
13515
  ...t ? { "aria-sort": n } : {}
13482
13516
  };
13483
13517
  }
13484
- function tm(e) {
13518
+ function nm(e) {
13485
13519
  return {
13486
13520
  role: "row",
13487
13521
  ...e === void 0 ? {} : { "aria-rowindex": e }
13488
13522
  };
13489
13523
  }
13490
- function nm(e = {}) {
13524
+ function rm(e = {}) {
13491
13525
  let { colIndex: t, rowIndex: n, selected: r = !1, id: i } = e;
13492
13526
  return {
13493
13527
  role: "gridcell",
13494
13528
  ...i ? { id: i } : {},
13495
13529
  ...t === void 0 ? {} : { "aria-colindex": t },
13496
13530
  ...n === void 0 ? {} : { "aria-rowindex": n },
13497
- ...r ? { "aria-selected": !0 } : {}
13531
+ "aria-selected": r
13498
13532
  };
13499
13533
  }
13500
- function rm(e, t, n) {
13534
+ function im(e, t, n) {
13501
13535
  return `${e}_cell_${t}_${n}`;
13502
13536
  }
13503
13537
  //#endregion
13504
- export { cd as DEFAULT_PALETTE, sd as FlexRender, od as SvGrid, pp as SvGridChart, Qp as applyExcelFilter, o as applyGroupAggregate, Rp as attachAutoSavedView, Mp as broadcastChannelTransport, Md as buildChart, bd as buildLinePath, Oa as buildSparkline, yp as chartToPngBlob, gp as chartToSvgString, l as columnFilteringFeature, d as columnGroupingFeature, is as computeColumnGroupMeta, vo as computeColumnStat, Td as computeOverlay, Co as contrastText, Np as createCollaboration, qp as createColumnVirtualizer, _ as createCoreRowModel, x as createExpandedRowModel, v as createFilteredRowModel, ca as createGrid, la as createGridState, b as createGroupedRowModel, jp as createHyperFormulaSheet, Lp as createNamedViews, y as createPaginatedRowModel, Pp as createServerDataSource, S as createSortedRowModel, sa as createSvGrid, sa as createTable, ua as createSvGridState, Kp as createSvelteVirtualizer, Gp as createVirtualizer, bp as downloadChartPng, vp as downloadChartSvg, wd as exponentialMovingAverage, g as filterFns, a as formatNumericWithConfig, nm as getGridCellA11yProps, rm as getGridCellDomId, em as getGridHeaderA11yProps, $p as getGridRootA11yProps, tm as getGridRowA11yProps, Ao as getKeyboardIntent, jo as getNextActiveCell, as as hiddenLeavesForCollapse, ts as inferCellDataType, wo as lerpColor, Sd as linearTrend, Ip as localStorageViews, Fp as memoryViews, vd as niceLogScale, Ed as niceScale, Jp as normalizeEditorOptions, Zp as normalizeForFilter, Yp as parseEditorValue, _d as pickContrastText, wa as renderComponent, Ta as renderSnippet, Eo as resolveCellFormat, ns as resolveColumnTypes, e as resolveDatePattern, Xo as rowDropZone, p as rowExpandingFeature, u as rowPaginationFeature, Ap as rowResize, f as rowSelectionFeature, c as rowSortingFeature, Nd as rowsToChartSpec, hd as sampleGradient, Cd as simpleMovingAverage, h as sortFns, xp as spansToMerges, Op as spreadsheetLayout, fa as subscribeGrid, pa as subscribeSvGrid, m as tableFeatures, Da as toSparklineValues };
13538
+ export { ld as DEFAULT_PALETTE, cd as FlexRender, sd as SvGrid, mp as SvGridChart, $p as applyExcelFilter, o as applyGroupAggregate, zp as attachAutoSavedView, Np as broadcastChannelTransport, Nd as buildChart, xd as buildLinePath, Oa as buildSparkline, bp as chartToPngBlob, _p as chartToSvgString, l as columnFilteringFeature, d as columnGroupingFeature, is as computeColumnGroupMeta, vo as computeColumnStat, Ed as computeOverlay, Co as contrastText, Pp as createCollaboration, Jp as createColumnVirtualizer, _ as createCoreRowModel, x as createExpandedRowModel, v as createFilteredRowModel, ca as createGrid, la as createGridState, b as createGroupedRowModel, Mp as createHyperFormulaSheet, Rp as createNamedViews, y as createPaginatedRowModel, Fp as createServerDataSource, S as createSortedRowModel, sa as createSvGrid, sa as createTable, ua as createSvGridState, qp as createSvelteVirtualizer, Kp as createVirtualizer, xp as downloadChartPng, yp as downloadChartSvg, Td as exponentialMovingAverage, g as filterFns, a as formatNumericWithConfig, rm as getGridCellA11yProps, im as getGridCellDomId, tm as getGridHeaderA11yProps, em as getGridRootA11yProps, nm as getGridRowA11yProps, Ao as getKeyboardIntent, jo as getNextActiveCell, as as hiddenLeavesForCollapse, ts as inferCellDataType, wo as lerpColor, Cd as linearTrend, Lp as localStorageViews, Ip as memoryViews, yd as niceLogScale, Dd as niceScale, Yp as normalizeEditorOptions, Qp as normalizeForFilter, Xp as parseEditorValue, vd as pickContrastText, wa as renderComponent, Ta as renderSnippet, Eo as resolveCellFormat, ns as resolveColumnTypes, e as resolveDatePattern, Xo as rowDropZone, p as rowExpandingFeature, u as rowPaginationFeature, jp as rowResize, f as rowSelectionFeature, c as rowSortingFeature, Pd as rowsToChartSpec, gd as sampleGradient, wd as simpleMovingAverage, h as sortFns, Sp as spansToMerges, kp as spreadsheetLayout, fa as subscribeGrid, pa as subscribeSvGrid, m as tableFeatures, Da as toSparklineValues };
13505
13539
 
13506
13540
  ;(function(){try{if(typeof document==='undefined')return;var s=document.createElement('style');s.setAttribute('data-svgrid','');s.textContent=".sv-grid-root{position:relative}.sv-grid-sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sv-grid-loading-overlay{z-index:18;pointer-events:auto;background:color-mix(in srgb, var(--sg-bg,#fff) 35%, transparent);position:absolute;inset:0}.sv-grid-loading-bar{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);height:3px;position:absolute;top:0;left:0;right:0;overflow:hidden}.sv-grid-loading-bar:before{content:\"\";background:var(--sg-accent,#2563eb);width:40%;animation:1.1s ease-in-out infinite sv-grid-loading-slide;position:absolute;inset:0}@keyframes sv-grid-loading-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}.sv-grid-skeleton{top:var(--sg-thead-h,40px);padding:0;position:absolute;left:0;right:0;overflow:hidden}.sv-grid-skeleton-row{height:var(--sg-pinned-row-h,36px);border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;display:flex}.sv-grid-skeleton-cell{box-sizing:border-box;flex-shrink:0;padding:0 12px}.sv-grid-skeleton-bar{background:linear-gradient(90deg, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 25%, color-mix(in srgb, var(--sg-muted,#94a3b8) 32%, transparent) 50%, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 75%);background-size:200% 100%;border-radius:4px;width:70%;height:10px;animation:1.3s linear infinite sv-grid-shimmer;display:block}@keyframes sv-grid-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.sv-grid-toolbar{align-items:center;gap:8px;padding:6px 2px;display:flex}.sv-grid-toolbar-btn{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex}.sv-grid-toolbar-btn:hover{border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-toolbar-btn.is-active{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:#fff}.sv-grid-tool-panel{z-index:901;background:var(--sg-bg,#fff);border-left:1px solid var(--sg-border,#e2e8f0);flex-direction:column;width:250px;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0000001f}.sv-grid-tool-panel-head{text-transform:uppercase;letter-spacing:.05em;color:var(--sg-muted,#64748b);border-bottom:1px solid var(--sg-border,#e2e8f0);justify-content:space-between;align-items:center;padding:8px 12px;font-size:12px;font-weight:700;display:flex}.sv-grid-tool-panel-close{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;font-size:14px}.sv-grid-tool-panel-list{flex:1;margin:0;padding:6px;list-style:none;overflow-y:auto}.sv-grid-tool-panel-item{border-radius:5px;justify-content:space-between;align-items:center;gap:6px;padding:3px 6px;display:flex}.sv-grid-tool-panel-item:hover{background:var(--sg-row-hover-bg,#94a3b81a)}.sv-grid-tool-panel-vis{min-width:0;color:var(--sg-fg,#0f172a);cursor:pointer;flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.sv-grid-tool-panel-vis input{accent-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-tool-panel-actions{flex-shrink:0;gap:2px;display:inline-flex}.sv-grid-tool-panel-btn{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;font-size:13px}.sv-grid-tool-panel-btn:hover:not(:disabled){background:var(--sg-row-hover-bg,#94a3b82e);color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-btn:disabled{opacity:.35;cursor:default}.sv-grid-tool-panel-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;padding:6px 6px 0;display:flex}.sv-grid-tool-panel-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px 8px;font-size:12px;font-weight:600}.sv-grid-tool-panel-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-filters{flex-direction:column;flex:1;gap:8px;padding:6px;display:flex;overflow-y:auto}.sv-grid-tp-filter{border:1px solid var(--sg-border,#e2e8f0);border-radius:6px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-tp-filter.is-filtered{border-color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-head{justify-content:space-between;align-items:center;display:flex}.sv-grid-tp-filter-name{color:var(--sg-fg,#0f172a);font-size:12px;font-weight:600}.sv-grid-tp-filter-clear{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:11px}.sv-grid-tp-filter-clear:hover{color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-op,.sv-grid-tp-filter-input{box-sizing:border-box;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);width:100%;color:var(--sg-fg,#0f172a);border-radius:5px;padding:4px 6px;font-size:12px}.sv-grid-root-fill{flex-direction:column;height:100%;min-height:0;display:flex}.sv-grid-root-fill>.sv-grid-shell{flex:1 1 0;min-height:0;height:auto!important}.sv-grid-shell{border-bottom:1px solid var(--sg-border,#cbd5e1);position:relative}.sv-grid-table{table-layout:fixed;border-collapse:separate;border-spacing:0}.sv-grid-table:focus{outline:none}.sv-grid-column,.sv-grid-cell{box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);-webkit-user-select:none;user-select:none;border-right:1px solid var(--sg-border,#e2e8f0);border-bottom:1px solid var(--sg-border,#e2e8f0);overflow:hidden}.sv-grid-table tr>:last-child.sv-grid-column,.sv-grid-table tr>:last-child.sv-grid-cell{border-right:0}.sv-grid-table tbody tr:hover>.sv-grid-cell{background:var(--sg-row-hover-bg,#eef2ff)}.sv-grid-cell-active,.sv-grid-cell-has-fill-handle{position:relative}.sv-grid-cell-has-fill-handle{overflow:visible}.sv-grid-detail-row{height:auto!important}.sv-grid-detail-cell{text-overflow:clip;white-space:normal;background:var(--sg-bg,#fff);-webkit-user-select:text;user-select:text;height:auto;padding:0;overflow:visible}.sv-grid-cell[data-pinned=left],.sv-grid-column[data-pinned=left]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset -1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), 8px 0 12px -6px #0f172a38}.sv-grid-cell[data-pinned=right],.sv-grid-column[data-pinned=right]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset 1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), -8px 0 12px -6px #0f172a38}.sv-grid-head .sv-grid-column[data-pinned=left],.sv-grid-head .sv-grid-column[data-pinned=right]{background:var(--sg-pinned-header-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 86%, var(--sg-accent,#2563eb) 14%));font-weight:600}.sv-grid-row-alt>.sv-grid-cell{background:var(--sg-row-alt-bg,#f8fafc)}.sv-grid-row-alt>.sv-grid-cell[data-pinned]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row-selected>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent), color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row:hover>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent), color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-column{position:relative}.sv-grid-cell[data-align=left],.sv-grid-column[data-align=left]{padding-left:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=right]{text-align:right;padding-right:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=center]{text-align:center}.sv-grid-column[data-align=right]{padding-right:var(--sg-cell-px,7px)}.sv-grid-column[data-align=right] .sv-grid-header-sort{justify-content:flex-end}.sv-grid-has-vscroll .sv-grid-table tr>:last-child.sv-grid-cell[data-align=right],.sv-grid-has-vscroll .sv-grid-table tr>:last-child.sv-grid-column[data-align=right]{padding-right:calc(var(--sg-cell-px,7px) + 16px)}.sv-grid-column[data-align=center] .sv-grid-header-sort{justify-content:center}.sv-grid-resize-handle{cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2;width:5px;height:100%;transition:background-color .1s;position:absolute;top:0;right:0}.sv-grid-resize-handle:after{content:\"\";background:var(--sg-fg,#0f172a);opacity:0;border-radius:1px;width:2px;margin:auto 2px;transition:background-color .1s,opacity .1s;position:absolute;inset:0}.sv-grid-column:hover .sv-grid-resize-handle:after{opacity:.3}.sv-grid-column:hover .sv-grid-resize-handle:hover:after,.sv-grid-resize-handle.is-resizing:after{background:var(--sg-accent,#2563eb);opacity:1}.sv-grid-row-resize-handle{transition:background-color .1s}.sv-grid-row-resize-handle:hover,.sv-grid-row-resize-handle.is-resizing{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 30%, transparent)}.sv-grid-head{z-index:35;background:var(--sg-header-bg,#f5f7fb);position:sticky;top:0}.sv-grid-head .sv-grid-column{background:var(--sg-header-bg,#f5f7fb);color:var(--sg-header-label-color,var(--sg-header-fg,var(--sg-fg,#0f172a)));font-weight:var(--sg-header-weight,600);font-size:var(--sg-header-size,inherit);text-transform:var(--sg-header-transform,none);letter-spacing:var(--sg-header-tracking,normal)}.sv-grid-column[draggable=true]{cursor:grab}.sv-grid-column[draggable=true]:active{cursor:grabbing}.sv-grid-column.is-dragging{opacity:.55}.sv-grid-column.is-drag-target-before,.sv-grid-column.is-drag-target-after{position:relative}.sv-grid-column.is-drag-target-before:before,.sv-grid-column.is-drag-target-after:after{content:\"\";pointer-events:none;z-index:7;background:linear-gradient(#6366f1,#8b5cf6);border-radius:2px;width:3px;animation:.7s ease-in-out infinite alternate sg-drop-pulse;position:absolute;top:4px;bottom:4px;box-shadow:0 0 6px #6366f1}.sv-grid-column.is-drag-target-before:before{left:-2px}.sv-grid-column.is-drag-target-after:after{right:-2px}@keyframes sg-drop-pulse{0%{opacity:.55}to{opacity:1}}.sv-grid-row-draggable{cursor:grab}.sv-grid-row-draggable:active{cursor:grabbing}.sv-grid-row-draggable .sv-grid-row-number-cell{padding-left:14px;position:relative}.sv-grid-row-draggable .sv-grid-row-number-cell:before{content:\"⠇\";color:var(--sg-muted,#94a3b8);opacity:.4;pointer-events:none;font-size:13px;line-height:1;transition:opacity .12s;position:absolute;top:50%;left:3px;transform:translateY(-50%)}.sv-grid-row-draggable:hover .sv-grid-row-number-cell:before{opacity:1}.sv-grid-row-dropzone-over{outline:2px dashed var(--sg-accent,#6366f1);outline-offset:-2px;background:color-mix(in srgb, var(--sg-accent,#6366f1) 10%, transparent)}.sv-grid-row-drop-before>td{box-shadow:inset 0 2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-row-drop-after>td{box-shadow:inset 0 -2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-pinned-row td{z-index:4;background:var(--sg-pinned-bg,oklab(98.3416% .00101131 -.00809926));border-bottom:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));font-weight:600;position:sticky}.sv-grid-pinned-row-top td{top:var(--sg-thead-h,36px)}.sv-grid-pinned-row-bottom td{border-top:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));bottom:0}.sv-grid-pinned-row-top[data-pinned-index=\"1\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px))}.sv-grid-pinned-row-top[data-pinned-index=\"2\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-top[data-pinned-index=\"3\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row-bottom[data-pinned-index=\"1\"] td{bottom:var(--sg-pinned-row-h,32px)}.sv-grid-pinned-row-bottom[data-pinned-index=\"2\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-bottom[data-pinned-index=\"3\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row td[data-pinned]{z-index:5}.sv-grid-group-header-row{background:var(--sg-header-bg,#eef2f8)}.sv-grid-group-header-cell{box-sizing:border-box;border-bottom:1px solid var(--sg-border,#d8dee9);border-right:1px solid var(--sg-border,#e2e8f0);text-align:center;color:var(--sg-header-fg,#475569);text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;font-size:11.5px;font-weight:700}.sv-grid-group-header-placeholder{background:0 0;border-right-color:#0000}.sv-grid-group-header-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block;overflow:hidden}.sv-grid-group-toggle{max-width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;padding:2px 6px;display:inline-flex}.sv-grid-group-toggle:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb)}.sv-grid-group-caret{flex-shrink:0;transition:transform .14s}.sv-grid-group-toggle.is-collapsed .sv-grid-group-caret{transform:rotate(-90deg)}.sv-grid-foot{z-index:6;background:var(--sg-header-bg,#f5f7fb);position:sticky;bottom:0}.sv-grid-container{scrollbar-width:auto;-ms-overflow-style:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-padding-top:var(--sg-thead-h,36px)}.sv-grid-container.sv-grid-container-custom-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.sv-grid-container.sv-grid-container-custom-scrollbars::-webkit-scrollbar{display:none}.sv-grid-scrollbar{z-index:40;position:absolute}.sv-grid-scrollbar-vertical{top:0;width:16px;height:calc(100% - 16px);inset-inline-end:0}.sv-grid-scrollbar-corner{top:0;background:var(--sg-header-bg,#f5f7fb);z-index:41;pointer-events:none;border-bottom:1px solid #0f172a14;width:16px;position:absolute;inset-inline-end:0}.sv-grid-scrollbar-corner-br{inset-inline-end:0;background:var(--sg-header-bg,#eef2f8);z-index:42;pointer-events:none;width:16px;height:16px;position:absolute;bottom:0;box-shadow:inset 0 0 0 1px #0f172a0d}.sv-grid-scrollbar-horizontal{inset-inline-start:0;width:calc(100% - 16px);height:16px;bottom:0}.sv-grid-selection-column,.sv-grid-selection-cell{text-align:center;z-index:4;padding-inline:6px;position:sticky}.sv-grid-row-number-column,.sv-grid-row-number-cell{text-align:right;z-index:4;background:var(--sg-header-bg,#f5f7fb);color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;padding-inline:8px;position:sticky;left:0}.sv-grid-row-number-head{color:inherit}.sv-grid-filter-row-control{flex-direction:row;align-items:center;gap:4px;display:flex}.sv-grid-filter-operator{box-sizing:border-box;flex:2 1 0;min-width:0}.sv-grid-filter-value{box-sizing:border-box;flex:3 1 0;min-width:0}.sv-grid-filter-value.sv-grid-filter-value-pulse{animation:.7s ease-out sv-grid-filter-pulse}@keyframes sv-grid-filter-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 55%, transparent)}70%{box-shadow:0 0 0 6px color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}to{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}}.sv-grid-checkbox{border:1px solid var(--sg-input-border,#8794a8);background:var(--sg-input-bg,#fff);width:16px;height:16px;color:var(--sg-accent,#0b63f3);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;margin:0 auto;transition:border-color .12s,background-color .12s;display:inline-flex;position:relative}.sv-grid-fr-editor{box-sizing:border-box;width:100%}select.sv-grid-fr-editor{height:100%;min-height:26px}.sv-grid-fr-checkbox{width:16px;height:16px;accent-color:var(--sg-accent,#3b82f6);cursor:pointer}.sv-grid-cell-editor-color{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:2px}.sv-grid-cell-editor-color::-webkit-color-swatch-wrapper{padding:0}.sv-grid-cell-editor-color::-webkit-color-swatch{border:0;border-radius:4px}.sv-grid-cell-editor-color::-moz-color-swatch{border:0;border-radius:4px}.sv-grid-rating-editor{align-items:center;gap:1px;height:100%;display:inline-flex}.sv-grid-rating-star{cursor:pointer;color:var(--sg-rating-empty,#cbd5e1);background:0 0;border:0;padding:0 1px;font-size:18px;line-height:1;transition:color 80ms,transform 80ms}.sv-grid-rating-star-on{color:var(--sg-rating-on,#f59e0b)}.sv-grid-rating-star:hover{color:var(--sg-rating-hover,#fbbf24);transform:scale(1.12)}.sv-grid-rating-clear{color:var(--sg-muted,#94a3b8);cursor:pointer;background:0 0;border:0;margin-left:4px;font-size:14px}.sv-grid-rating-clear:hover{color:var(--sg-fg,#0f172a)}.sv-grid-checkbox[aria-checked=true],.sv-grid-checkbox[aria-checked=mixed]{border-color:var(--sg-accent,#2563eb);background:var(--sg-accent,#2563eb);color:var(--sg-on-accent,#fff)}.sv-grid-checkbox[aria-checked=true]:after{content:\"\";border-bottom:2px solid;border-right:2px solid;width:5px;height:9px;transform:rotate(40deg)translate(-1px,-1px)}.sv-grid-checkbox[aria-checked=mixed]:after{content:\"\";background:currentColor;border-radius:1px;width:8px;height:2px}.sv-grid-checkbox:focus-visible{outline:2px solid var(--sg-accent,#0b63f3);outline-offset:1px}.sv-grid-checkbox-readonly{cursor:default;pointer-events:none}@keyframes sv-grid-cell-flash-kf{0%{background-color:var(--sg-cell-flash,color-mix(in oklab, var(--sg-accent,#3b82f6) 42%, transparent))}to{background-color:#0000}}.sv-grid-cell-flash{animation:.7s ease-out sv-grid-cell-flash-kf}@media (prefers-reduced-motion:reduce){.sv-grid-cell-flash{animation:none}}.sv-grid-cell-active,.sv-grid-cell-editing{z-index:20;box-shadow:inset 0 0 0 2px var(--sg-accent,#0b63f3);outline:none;position:relative;overflow:visible}.sv-grid-cell-note-corner{background:linear-gradient(45deg, transparent 50%, var(--sg-note-corner,#f59e0b) 50%);cursor:help;z-index:6;width:12px;height:12px;position:absolute;top:0;right:0}.sv-grid-cell-note-corner:before{content:\"\";position:absolute;inset:-3px -3px 0 0}.sv-grid-fill-handle{background:var(--sg-accent,#0b63f3);border:1px solid var(--sg-bg,#fff);box-sizing:border-box;cursor:crosshair;z-index:15;touch-action:none;width:9px;height:9px;position:absolute;bottom:0;right:0}.sv-grid-fill-handle:hover{transform-origin:100% 100%;transform:scale(1.3)}.sv-grid-cell[data-fill-preview=true]{box-shadow:inset 0 0 0 2px var(--sg-fill-preview-border,color-mix(in srgb, var(--sg-accent,#0b63f3) 50%, transparent));background:var(--sg-fill-preview-bg,color-mix(in srgb, var(--sg-accent,#0b63f3) 8%, transparent))}.sv-grid-cell-editing{padding:0}.sv-grid-cell[data-selected-range=true]{background:var(--sg-selection-bg,#eef4ff);--sv-range-top:0 0 0 transparent;--sv-range-bottom:0 0 0 transparent;--sv-range-left:0 0 0 transparent;--sv-range-right:0 0 0 transparent;box-shadow:var(--sv-range-top), var(--sv-range-bottom), var(--sv-range-left), var(--sv-range-right)}.sv-grid-cell[data-range-top=true]{--sv-range-top:inset 0 2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-bottom=true]{--sv-range-bottom:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-left=true]{--sv-range-left:inset 2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-right=true]{--sv-range-right:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-top=true],.sv-grid-cell[data-range-bottom=true],.sv-grid-cell[data-range-left=true],.sv-grid-cell[data-range-right=true],.sv-grid-cell.sv-merge-edge-right,.sv-grid-cell.sv-merge-edge-bottom{z-index:3;position:relative}.sv-grid-cell.sv-merge-edge-right{box-shadow:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-edge-bottom{box-shadow:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-in-range{background:var(--sg-selection-bg,#eef4ff)}.sv-grid-cell-editor{background:var(--sg-input-bg,#fff);box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit;border:0;outline:none;padding:0 8px;position:absolute;inset:0}.sv-grid-column-filter,.sv-grid-filter-value,.sv-grid-global-filter input,.sv-grid-menu-search,.sv-grid-menu-condition-value{background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,#cbd5e1);box-sizing:border-box;font:inherit;border-radius:5px;padding:0 8px}.sv-grid-column-filter{width:100%;height:28px;font-size:.8125rem}.sv-grid-column-filter::placeholder,.sv-grid-filter-value::placeholder,.sv-grid-menu-search::placeholder,.sv-grid-global-filter input::placeholder,.sv-grid-cell-editor::placeholder{color:var(--sg-muted,#64748b);opacity:.7}.sv-grid-global-filter input:focus,.sv-grid-filter-value:focus,.sv-grid-column-filter:focus,.sv-grid-menu-search:focus,.sv-grid-menu-condition-value:focus,.sv-grid-menu-operator:focus,.sv-grid-cell-editor:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent);outline:none}.sv-grid-cell-editor-number,.sv-grid-cell-editor-date,.sv-grid-cell-editor-datetime{width:100%;height:100%}.sv-grid-cell-editor-list{appearance:auto;width:100%;height:100%;font:inherit;color:inherit;background:var(--sg-input-bg,#fff);box-sizing:border-box;border:0;padding:0 6px}.sv-grid-cell-editor-list[multiple]{z-index:5;border:1px solid var(--sg-accent,#0b63f3);background:var(--sg-input-bg,#fff);height:auto;min-height:100%;max-height:220px;padding:4px;position:absolute;top:0;left:0;right:0;box-shadow:0 8px 24px #0f172a2e}.sv-grid-cell-editor-chips{background:var(--sg-header-bg,var(--sg-bg,#fff));min-height:calc(100% + 2px);color:var(--sg-fg,#0f172a);box-sizing:border-box;z-index:1000;border:1px solid var(--sg-accent,#2563eb);border-radius:var(--sg-radius,6px);align-items:flex-start;padding:4px 6px;display:flex;position:absolute;top:-1px;left:-1px;right:-1px;overflow:visible;box-shadow:0 12px 28px #00000073}.sv-grid-cell-editing:has(.sv-grid-cell-editor-chips){outline:none}.sv-grid-chips-row{flex-wrap:wrap;align-items:center;gap:4px;width:100%;display:flex}.sv-grid-chip-input{min-width:60px;font:inherit;color:inherit;background:0 0;border:0;outline:none;flex:80px;padding:2px 4px}.sv-grid-chip-picker{min-width:80px;font:inherit;color:inherit;background:var(--sg-bg,#fff);border:1px solid #0f172a26;border-radius:4px;flex:100px;padding:2px 4px}.sv-grid-chip-commit{text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--sg-accent,#0b63f3);cursor:pointer;border:0;border-radius:4px;padding:3px 8px;font-size:11px}.sv-grid-chip-commit:hover{filter:brightness(1.1)}.sv-grid-chips-display{vertical-align:middle;flex-wrap:nowrap;align-items:center;gap:4px;max-width:100%;display:inline-flex}.sv-grid-sparkline{vertical-align:middle;display:inline-block;overflow:visible}.sv-grid-cf-bg{z-index:0;pointer-events:none;position:absolute;inset:0}.sv-grid-cf-bar{z-index:0;opacity:.85;pointer-events:none;border-radius:0 2px 2px 0;position:absolute;top:0;bottom:0;left:0}.sv-grid-cell-cf{position:relative}.sv-grid-status-bar{color:var(--sg-fg);background:var(--sg-header-bg,#f1f5f9);border:1px solid var(--sg-border,#e2e8f0);border-top:0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:18px;padding:6px 14px;font-size:12px;display:flex}.sv-grid-status-item{font-variant-numeric:tabular-nums;font-weight:600}.sv-grid-status-label{color:var(--sg-muted,#64748b);margin-right:5px;font-weight:400}.sv-grid-cf-content{z-index:1;position:relative}.sv-grid-cf-icon{margin-right:5px;font-size:.95em}.sv-grid-chip{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);color:var(--sg-fg,inherit);border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;line-height:1.4;display:inline-flex}.sv-grid-chip-removable{padding-right:2px}.sv-grid-chip-remove{background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:16px;height:16px;color:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.sv-grid-chip-remove:hover{color:#fff;background:#dc2626b3}.sv-grid-icon{flex:none;width:1em;height:1em;display:block}.sv-grid-header-cell{width:100%;min-width:0;min-height:var(--sg-header-min-height,auto);align-items:center;gap:2px;display:flex}.sv-grid-header-sort{min-width:0;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:4px;padding:2px;display:flex}.sv-grid-header-custom{text-align:left;cursor:pointer;outline:none;flex:auto;align-items:center;gap:4px;min-width:0;padding:2px;display:flex}.sv-grid-header-label{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.sv-grid-header-icon{color:var(--sg-muted,#5b6b85);flex:none;font-size:13px;display:inline-flex}.sv-grid-header-icon-hint{opacity:0;transition:opacity .12s}.sv-grid-column:hover .sv-grid-header-icon-hint{opacity:.4}.sv-grid-header-icon-flag{color:var(--sg-accent,#0b63f3)}.sv-grid-col-menu-btn{width:0;height:22px;color:var(--sg-muted,#5b6b85);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:15px;transition:width .14s,opacity .14s,background-color .12s;display:inline-flex;overflow:hidden}.sv-grid-column:hover .sv-grid-col-menu-btn,.sv-grid-col-menu-btn.is-open,.sv-grid-col-menu-btn:focus-visible,.sv-grid-col-filter-btn.is-active{opacity:1;pointer-events:auto;width:22px}.sv-grid-col-menu-btn:hover,.sv-grid-col-menu-btn.is-open{background:var(--sg-row-hover-bg,#e2e8f3)}.sv-grid-filter-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:24px;color:var(--sg-fg,#334155);cursor:pointer;border-radius:4px;flex:none;align-items:center;gap:2px;padding:0 4px;font-size:13px;display:inline-flex}.sv-grid-filter-operator-btn.is-open{border-color:var(--sg-accent,#0b63f3)}.sv-grid-caret{color:var(--sg-muted,#94a3b8);font-size:9px;display:inline-flex}.sv-grid-menu-backdrop{z-index:900;background:0 0;position:fixed;inset:0}.sv-grid-menu{z-index:901;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);max-height:calc(100vh - 24px);color:var(--sg-fg,#1f2937);border-radius:8px;padding:4px;font-size:13px;position:fixed;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-column-menu{width:260px}.sv-grid-menu-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;margin:-2px -2px 4px;padding:2px 2px 0;display:flex}.sv-grid-menu-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px;font-size:12px;font-weight:600}.sv-grid-menu-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-menu-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-operator-menu{width:184px}.sv-grid-context-menu{min-width:180px}.sv-grid-comment-editor{width:240px;padding:8px}.sv-grid-comment-textarea{resize:vertical;border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;min-height:60px;color:var(--sg-fg,#0f172a);font:inherit;border-radius:4px;outline:none;padding:6px 8px;font-size:13px}.sv-grid-comment-textarea:focus{border-color:var(--sg-accent,#6366f1)}.sv-grid-comment-actions{align-items:center;gap:6px;margin-top:8px;display:flex}.sv-grid-comment-spacer{flex:auto}.sv-grid-comment-actions button{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;border-radius:4px;padding:4px 10px;font-size:12px}.sv-grid-comment-save{border-color:var(--sg-accent,#6366f1)!important;background:var(--sg-accent,#6366f1)!important;color:#fff!important}.sv-grid-comment-remove{color:var(--sg-danger,#dc2626)!important}.sv-grid-menu-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:7px 10px;display:flex}.sv-grid-menu-item:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-item[aria-checked=true]{background:var(--sg-selection-bg,#eaf2ff);color:var(--sg-accent,#0b63f3)}.sv-grid-menu-sep{background:var(--sg-border,#e6ebf2);height:1px;margin:4px 6px}.sv-grid-menu-filter{padding:4px 6px 6px}.sv-grid-menu-filter-head{color:var(--sg-muted,#475569);align-items:center;gap:6px;padding:2px 0 6px;font-weight:600;display:flex}.sv-grid-menu-search{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);width:100%;height:28px;font:inherit;border-radius:5px;margin-bottom:6px;padding:0 8px}.sv-grid-menu-filter-row{gap:4px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-group{gap:2px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#475569);cursor:pointer;border-radius:4px;flex:1 1 0;justify-content:center;align-items:center;padding:0;transition:background-color .1s,color .1s,border-color .1s;display:inline-flex}.sv-grid-menu-operator-btn:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-operator-btn.is-active{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-condition-value{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);min-width:0;height:28px;font:inherit;border-radius:5px;flex:1 1 0;padding:0 8px}.sv-grid-menu-add-cond{color:var(--sg-accent,#3b82f6);border:1px dashed var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;border-radius:5px;align-self:flex-start;margin-top:2px;padding:3px 8px;font-size:11.5px;font-weight:600}.sv-grid-menu-add-cond:hover{background:color-mix(in oklab, var(--sg-accent,#3b82f6) 8%, transparent);border-style:solid}.sv-grid-menu-join{align-items:center;gap:2px;margin:2px 0;display:inline-flex}.sv-grid-menu-join button{color:var(--sg-muted,#64748b);border:1px solid var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;padding:2px 10px;font-size:11px;font-weight:700}.sv-grid-menu-join button:first-child{border-radius:5px 0 0 5px}.sv-grid-menu-join button:nth-child(2){border-left:0;border-radius:0}.sv-grid-menu-join button.is-on{background:var(--sg-accent,#3b82f6);color:#fff;border-color:var(--sg-accent,#3b82f6)}.sv-grid-menu-join-x{margin-left:auto;font-size:14px;line-height:1;border-radius:5px!important;padding:2px 7px!important}.sv-grid-facet-list{border:1px solid var(--sg-border,#eaeef4);border-radius:5px;max-height:200px;overflow:auto}.sv-grid-facet{cursor:pointer;align-items:center;gap:8px;padding:4px 8px;display:flex}.sv-grid-facet:hover{background:var(--sg-row-hover-bg,#f4f6fa)}.sv-grid-facet-all{border-bottom:1px solid var(--sg-border,#eaeef4);font-weight:600}.sv-grid-facet input{flex:none}.sv-grid-facet-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-facet-empty,.sv-grid-facet-note{color:var(--sg-muted,#94a3b8);padding:6px 8px;font-size:12px}.sv-grid-menu-actions{justify-content:flex-end;gap:6px;padding-top:8px;display:flex}.sv-grid-menu-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#334155);font:inherit;cursor:pointer;border-radius:5px;padding:5px 10px}.sv-grid-menu-btn-primary{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-item:disabled,.sv-grid-menu-btn:disabled{opacity:.4;cursor:default}.sv-grid-menu-item:disabled:hover{background:0 0}.sv-grid-group-row>.sv-grid-cell{background:var(--sg-header-bg,#eef2f8);cursor:pointer;font-weight:600}.sv-grid-row-selected>.sv-grid-cell{background:var(--sg-selection-bg,#eaf2ff)}.sv-grid-group-cell{padding:0 12px}.sv-grid-group-content{align-items:center;gap:6px;display:inline-flex}.sv-grid-group-toggle{color:var(--sg-fg,#334155);cursor:pointer;background:0 0;border:0;padding:0 4px 0 0;font-size:11px;line-height:1}.sv-grid-group-count{color:var(--sg-muted,#64748b);margin-left:6px;font-size:12px;font-weight:400}.sv-grid-group-agg{color:var(--sg-fg);white-space:nowrap;margin-left:10px;font-size:12px;font-weight:600}.sv-grid-group-agg-label{color:var(--sg-muted,#64748b);margin-right:4px;font-weight:400}.sv-grid-group-agg-label:after{content:\":\"}.sv-grid-group-child-indent{width:18px;display:inline-block}.sv-grid-tooltip{z-index:10000;color:#f1f5f9;border-radius:var(--sg-radius,6px);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;background:#0f172a;max-width:280px;padding:8px 10px;font-size:12px;line-height:1.45;position:fixed;box-shadow:0 8px 24px #0f172a47}[data-theme=dark] .sv-grid-tooltip{color:#0f172a;background:#f1f5f9}.sv-grid-cell-editor-textarea{border:1px solid var(--sg-accent,#6366f1);background:var(--sg-bg,#fff);width:100%;min-height:80px;color:var(--sg-fg,#0f172a);resize:vertical;box-shadow:var(--sg-focus-ring,0 0 0 2px #6366f166);border-radius:4px;outline:none;padding:6px 8px;font-family:inherit;font-size:13px;line-height:1.4}.sv-grid-autocomplete{width:100%;position:relative}.sv-grid-autocomplete-list{z-index:30;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);border-radius:var(--sg-radius,6px);max-height:220px;margin-top:2px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-autocomplete-option{text-align:left;width:100%;color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:4px;padding:5px 8px;font-size:13px;display:block;overflow:hidden}.sv-grid-autocomplete-option:hover,.sv-grid-autocomplete-option[aria-selected=true]{background:var(--sg-row-hover-bg,#6366f11a)}.sv-grid-find{z-index:60;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#cbd5e1);border-radius:8px;align-items:center;gap:4px;min-width:280px;padding:6px 8px;display:inline-flex;position:absolute;top:8px;right:8px;box-shadow:0 10px 25px #0f172a2e}.sv-grid-find-icon{width:14px;height:14px;color:var(--sg-muted,#94a3b8);flex:none;margin-left:2px}.sv-grid-find-input{min-width:0;color:inherit;background:0 0;border:0;outline:none;flex:1;padding:2px 6px;font-size:13px}.sv-grid-find-input::placeholder{color:var(--sg-muted,#94a3b8)}.sv-grid-find-count{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 4px;font-size:11px}.sv-grid-find-step,.sv-grid-find-close{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.sv-grid-find-step:hover:not(:disabled),.sv-grid-find-close:hover{background:var(--sg-row-hover-bg,#94a3b81f);color:var(--sg-fg,#0f172a)}.sv-grid-find-step:disabled{opacity:.3;cursor:default}.sv-grid-pagination{border:1px solid var(--sg-border,#e2e8f0);border-radius:0 0 var(--sg-radius,6px) var(--sg-radius,6px);background:var(--sg-header-bg,#f1f5f9);color:var(--sg-fg,#0f172a);border-top:0;justify-content:flex-end;align-items:center;gap:24px;margin-top:0;padding:12px 16px;font-size:13px;display:flex}.sv-grid-pagination-pagesize{color:var(--sg-muted,#64748b);align-items:center;gap:8px;display:inline-flex}.sv-grid-pagination-pagesize select{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px) 12px,calc(100% - 8px) 12px;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:5px;padding:0 22px 0 8px;font-size:13px}.sv-grid-pagination-pagesize select:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent);outline:none}.sv-grid-pagination-range{color:var(--sg-fg,#0f172a)}.sv-grid-pagination-nav{align-items:center;gap:4px;display:inline-flex}.sv-grid-pagination-btn{width:28px;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:16px;transition:background-color .1s,color .1s;display:inline-flex}.sv-grid-pagination-btn:hover:not(:disabled){background:var(--sg-input-bg,#fff);color:var(--sg-accent,#2563eb)}.sv-grid-pagination-btn:disabled{color:var(--sg-muted,#64748b);opacity:.4;cursor:default}.sv-grid-pagination-label{color:var(--sg-fg,#0f172a);margin:0 8px}.sv-grid-no-scroll .sv-grid-scrollbar-corner,.sv-grid-no-scroll .sv-grid-scrollbar{display:none}.sv-grid-scrollbar-corner,.sv-grid-scrollbar-corner-br{border-bottom-color:var(--sg-border,#e2e8f0)}.sv-grid-menu-operator-select{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px) 12px,calc(100% - 8px) 12px;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:5px;margin-bottom:6px;padding:0 22px 0 8px;font-size:13px}.sv-grid-menu-operator-select:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 40%, transparent);outline:none}.sv-grid-menu-operator-btn.is-active{color:var(--sg-on-accent,#fff)}.sv-grid-filter-menu{width:260px}.sv-grid-choose-columns-menu{width:240px}.sv-grid-choose-columns-menu .sv-grid-facet-list{max-height:280px}.sv-grid-facet input[type=checkbox]{accent-color:var(--sg-accent,#2563eb);cursor:pointer;width:14px;height:14px}.sv-grid-menu-item-chevron{opacity:.55;margin-left:auto;transform:rotate(-90deg)}.sv-grid-menu-item.is-open .sv-grid-menu-item-chevron{opacity:1}.sv-grid-menu-search{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E\");background-position:8px;background-repeat:no-repeat;background-size:14px 14px;padding-left:28px}.sv-grid-menu-filter>*+*{margin-top:6px}.sv-grid-col-filter-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-row-number-column,.sv-grid-row-number-cell{border-right-color:var(--sg-header-bg,#f1f5f9)}.sv-grid-group-row>.sv-grid-cell{color:var(--sg-header-fg,#0f172a)}.sv-grid-filter-operator-btn{opacity:.85}.sv-grid-filter-operator-btn:hover{opacity:1;border-color:var(--sg-accent,#2563eb)}.sv-grid-filter-operator-btn.is-open{opacity:1}\n/*$vite$:1*/";document.head.appendChild(s)}catch(e){}})();