@vtable-guild/vtable-guild 2.9.0-alpha.7 → 2.9.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { reactive as Yr, inject as be, computed as k, unref as lt, defineComponent as le, ref as $, shallowRef as ie, watch as Q, nextTick as Ze, onMounted as it, onBeforeUnmount as We, createVNode as p, Fragment as Je, Teleport as Kn, Transition as Io, h as at, provide as go, cloneVNode as Or, isVNode as Ct, onUnmounted as yr, markRaw as Fa, toRaw as Ba, onScopeDispose as Lt, Comment as _a, mergeProps as ze, useId as zo, Text as Na, createTextVNode as mo, onUpdated as Va, getCurrentScope as Ot, resolveDynamicComponent as qn, shallowReactive as Ha, onBeforeUpdate as $a, getCurrentInstance as Un, createBlock as Gt, openBlock as Yt, createSlots as xr, withCtx as Re, renderSlot as Ie, normalizeProps as Fe, guardReactiveProps as Be, toValue as Ee } from "vue";
1
+ import { reactive as Yr, inject as be, computed as k, unref as lt, defineComponent as le, ref as $, shallowRef as ie, watch as ee, nextTick as Ze, onMounted as it, onBeforeUnmount as We, createVNode as p, Fragment as Je, Teleport as Kn, Transition as Io, h as at, provide as go, cloneVNode as Or, isVNode as Ct, onUnmounted as yr, markRaw as Fa, toRaw as Ba, onScopeDispose as Lt, Comment as _a, mergeProps as ze, useId as zo, Text as Na, createTextVNode as mo, onUpdated as Va, getCurrentScope as Ot, resolveDynamicComponent as qn, shallowReactive as Ha, onBeforeUpdate as $a, getCurrentInstance as Un, createBlock as Gt, openBlock as Yt, createSlots as xr, withCtx as Re, renderSlot as Ie, normalizeProps as Fe, guardReactiveProps as Be, toValue as Ee } from "vue";
2
2
  var Wa = /\s+/g, Ka = (e) => typeof e != "string" || !e ? e : e.replace(Wa, " ").trim(), Br = (...e) => {
3
3
  const t = [], r = (o) => {
4
4
  if (!o && o !== 0 && o !== 0n) return;
@@ -170,7 +170,7 @@ var xt = Ya(), Xa = (e) => {
170
170
  ...x,
171
171
  ...U
172
172
  };
173
- }, H = (q = [], U) => {
173
+ }, V = (q = [], U) => {
174
174
  const x = [], T = q.length;
175
175
  for (let S = 0; S < T; S++) {
176
176
  const { class: D, className: N, ...z } = q[S];
@@ -196,7 +196,7 @@ var xt = Ya(), Xa = (e) => {
196
196
  }
197
197
  return x;
198
198
  }, W = (q) => {
199
- const U = H(b, q);
199
+ const U = V(b, q);
200
200
  if (!Array.isArray(U)) return U;
201
201
  const x = {}, T = e;
202
202
  for (let S = 0; S < U.length; S++) {
@@ -208,7 +208,7 @@ var xt = Ya(), Xa = (e) => {
208
208
  x[N] = T(x[N], D[N])(g);
209
209
  }
210
210
  return x;
211
- }, Y = (q) => {
211
+ }, X = (q) => {
212
212
  if (d.length < 1) return null;
213
213
  const U = {}, x = j(null, q);
214
214
  for (let T = 0; T < d.length; T++) {
@@ -242,7 +242,7 @@ var xt = Ya(), Xa = (e) => {
242
242
  const U = e;
243
243
  for (const x in y)
244
244
  q[x] = (T) => {
245
- const S = W(T), D = Y(T);
245
+ const S = W(T), D = X(T);
246
246
  return U(
247
247
  y[x],
248
248
  B(x, T),
@@ -258,7 +258,7 @@ var xt = Ya(), Xa = (e) => {
258
258
  return e(
259
259
  f,
260
260
  O(),
261
- H(b),
261
+ V(b),
262
262
  A?.class,
263
263
  A?.className
264
264
  )(g);
@@ -547,12 +547,12 @@ const Za = (e, t) => {
547
547
  }, hi = [], je = (e) => {
548
548
  const t = (r) => r[e] || hi;
549
549
  return t.isThemeGetter = !0, t;
550
- }, el = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, tl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bi = /^\d+\/\d+$/, yi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Si = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ci = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Vt = (e) => bi.test(e), ue = (e) => !!e && !Number.isNaN(Number(e)), Et = (e) => !!e && Number.isInteger(Number(e)), no = (e) => e.endsWith("%") && ue(e.slice(0, -1)), bt = (e) => yi.test(e), ki = () => !0, Ti = (e) => (
550
+ }, el = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, tl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bi = /^\d+\/\d+$/, yi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Si = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ci = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Vt = (e) => bi.test(e), de = (e) => !!e && !Number.isNaN(Number(e)), Et = (e) => !!e && Number.isInteger(Number(e)), no = (e) => e.endsWith("%") && de(e.slice(0, -1)), bt = (e) => yi.test(e), ki = () => !0, Ti = (e) => (
551
551
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
552
552
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
553
553
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
554
554
  xi.test(e) && !wi.test(e)
555
- ), rl = () => !1, Ei = (e) => Si.test(e), Ri = (e) => Ci.test(e), Ii = (e) => !re(e) && !oe(e), zi = (e) => Xt(e, ll, rl), re = (e) => el.test(e), At = (e) => Xt(e, al, Ti), lo = (e) => Xt(e, Oi, ue), tn = (e) => Xt(e, ol, rl), Di = (e) => Xt(e, nl, Ri), zr = (e) => Xt(e, il, Ei), oe = (e) => tl.test(e), ar = (e) => Zt(e, al), Mi = (e) => Zt(e, Li), rn = (e) => Zt(e, ol), Ai = (e) => Zt(e, ll), Pi = (e) => Zt(e, nl), Dr = (e) => Zt(e, il, !0), Xt = (e, t, r) => {
555
+ ), rl = () => !1, Ei = (e) => Si.test(e), Ri = (e) => Ci.test(e), Ii = (e) => !re(e) && !oe(e), zi = (e) => Xt(e, ll, rl), re = (e) => el.test(e), At = (e) => Xt(e, al, Ti), lo = (e) => Xt(e, Oi, de), tn = (e) => Xt(e, ol, rl), Di = (e) => Xt(e, nl, Ri), zr = (e) => Xt(e, il, Ei), oe = (e) => tl.test(e), ar = (e) => Zt(e, al), Mi = (e) => Zt(e, Li), rn = (e) => Zt(e, ol), Ai = (e) => Zt(e, ll), Pi = (e) => Zt(e, nl), Dr = (e) => Zt(e, il, !0), Xt = (e, t, r) => {
556
556
  const o = el.exec(e);
557
557
  return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
558
558
  }, Zt = (e, t, r = !1) => {
@@ -577,9 +577,9 @@ const Za = (e, t) => {
577
577
  "bottom-left",
578
578
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
579
579
  "left-bottom"
580
- ], A = () => [...I(), oe, re], E = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], B = () => [oe, re, c], P = () => [Vt, "full", "auto", ...B()], j = () => [Et, "none", "subgrid", oe, re], H = () => ["auto", {
580
+ ], A = () => [...I(), oe, re], E = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], B = () => [oe, re, c], P = () => [Vt, "full", "auto", ...B()], j = () => [Et, "none", "subgrid", oe, re], V = () => ["auto", {
581
581
  span: ["full", Et, oe, re]
582
- }, Et, oe, re], W = () => [Et, "auto", oe, re], Y = () => ["auto", "min", "max", "fr", oe, re], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...B()], T = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], S = () => [e, oe, re], D = () => [...I(), rn, tn, {
582
+ }, Et, oe, re], W = () => [Et, "auto", oe, re], X = () => ["auto", "min", "max", "fr", oe, re], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...B()], T = () => [Vt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], S = () => [e, oe, re], D = () => [...I(), rn, tn, {
583
583
  position: [oe, re]
584
584
  }], N = () => ["no-repeat", {
585
585
  repeat: ["", "x", "y", "space", "round"]
@@ -593,14 +593,14 @@ const Za = (e, t) => {
593
593
  d,
594
594
  oe,
595
595
  re
596
- ], M = () => ["", ue, ar, At], L = () => ["solid", "dashed", "dotted", "double"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [ue, no, rn, tn], K = () => [
596
+ ], M = () => ["", de, ar, At], L = () => ["solid", "dashed", "dotted", "double"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [de, no, rn, tn], K = () => [
597
597
  // Deprecated since Tailwind CSS v4.0.0
598
598
  "",
599
599
  "none",
600
600
  h,
601
601
  oe,
602
602
  re
603
- ], X = () => ["none", ue, oe, re], ee = () => ["none", ue, oe, re], Z = () => [ue, oe, re], ve = () => [Vt, "full", ...B()];
603
+ ], Y = () => ["none", de, oe, re], J = () => ["none", de, oe, re], Z = () => [de, oe, re], ue = () => [Vt, "full", ...B()];
604
604
  return {
605
605
  cacheSize: 500,
606
606
  theme: {
@@ -619,7 +619,7 @@ const Za = (e, t) => {
619
619
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
620
620
  radius: [bt],
621
621
  shadow: [bt],
622
- spacing: ["px", ue],
622
+ spacing: ["px", de],
623
623
  text: [bt],
624
624
  "text-shadow": [bt],
625
625
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -646,7 +646,7 @@ const Za = (e, t) => {
646
646
  * @see https://tailwindcss.com/docs/columns
647
647
  */
648
648
  columns: [{
649
- columns: [ue, re, oe, s]
649
+ columns: [de, re, oe, s]
650
650
  }],
651
651
  /**
652
652
  * Break After
@@ -877,21 +877,21 @@ const Za = (e, t) => {
877
877
  * @see https://tailwindcss.com/docs/flex
878
878
  */
879
879
  flex: [{
880
- flex: [ue, Vt, "auto", "initial", "none", re]
880
+ flex: [de, Vt, "auto", "initial", "none", re]
881
881
  }],
882
882
  /**
883
883
  * Flex Grow
884
884
  * @see https://tailwindcss.com/docs/flex-grow
885
885
  */
886
886
  grow: [{
887
- grow: ["", ue, oe, re]
887
+ grow: ["", de, oe, re]
888
888
  }],
889
889
  /**
890
890
  * Flex Shrink
891
891
  * @see https://tailwindcss.com/docs/flex-shrink
892
892
  */
893
893
  shrink: [{
894
- shrink: ["", ue, oe, re]
894
+ shrink: ["", de, oe, re]
895
895
  }],
896
896
  /**
897
897
  * Order
@@ -912,7 +912,7 @@ const Za = (e, t) => {
912
912
  * @see https://tailwindcss.com/docs/grid-column
913
913
  */
914
914
  "col-start-end": [{
915
- col: H()
915
+ col: V()
916
916
  }],
917
917
  /**
918
918
  * Grid Column Start
@@ -940,7 +940,7 @@ const Za = (e, t) => {
940
940
  * @see https://tailwindcss.com/docs/grid-row
941
941
  */
942
942
  "row-start-end": [{
943
- row: H()
943
+ row: V()
944
944
  }],
945
945
  /**
946
946
  * Grid Row Start
@@ -968,14 +968,14 @@ const Za = (e, t) => {
968
968
  * @see https://tailwindcss.com/docs/grid-auto-columns
969
969
  */
970
970
  "auto-cols": [{
971
- "auto-cols": Y()
971
+ "auto-cols": X()
972
972
  }],
973
973
  /**
974
974
  * Grid Auto Rows
975
975
  * @see https://tailwindcss.com/docs/grid-auto-rows
976
976
  */
977
977
  "auto-rows": [{
978
- "auto-rows": Y()
978
+ "auto-rows": X()
979
979
  }],
980
980
  /**
981
981
  * Gap
@@ -1368,7 +1368,7 @@ const Za = (e, t) => {
1368
1368
  * @see https://tailwindcss.com/docs/line-clamp
1369
1369
  */
1370
1370
  "line-clamp": [{
1371
- "line-clamp": [ue, "none", oe, lo]
1371
+ "line-clamp": [de, "none", oe, lo]
1372
1372
  }],
1373
1373
  /**
1374
1374
  * Line Height
@@ -1441,7 +1441,7 @@ const Za = (e, t) => {
1441
1441
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1442
1442
  */
1443
1443
  "text-decoration-thickness": [{
1444
- decoration: [ue, "from-font", "auto", oe, At]
1444
+ decoration: [de, "from-font", "auto", oe, At]
1445
1445
  }],
1446
1446
  /**
1447
1447
  * Text Decoration Color
@@ -1455,7 +1455,7 @@ const Za = (e, t) => {
1455
1455
  * @see https://tailwindcss.com/docs/text-underline-offset
1456
1456
  */
1457
1457
  "underline-offset": [{
1458
- "underline-offset": [ue, "auto", oe, re]
1458
+ "underline-offset": [de, "auto", oe, re]
1459
1459
  }],
1460
1460
  /**
1461
1461
  * Text Transform
@@ -1921,14 +1921,14 @@ const Za = (e, t) => {
1921
1921
  * @see https://tailwindcss.com/docs/outline-offset
1922
1922
  */
1923
1923
  "outline-offset": [{
1924
- "outline-offset": [ue, oe, re]
1924
+ "outline-offset": [de, oe, re]
1925
1925
  }],
1926
1926
  /**
1927
1927
  * Outline Width
1928
1928
  * @see https://tailwindcss.com/docs/outline-width
1929
1929
  */
1930
1930
  "outline-w": [{
1931
- outline: ["", ue, ar, At]
1931
+ outline: ["", de, ar, At]
1932
1932
  }],
1933
1933
  /**
1934
1934
  * Outline Color
@@ -2003,7 +2003,7 @@ const Za = (e, t) => {
2003
2003
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2004
2004
  */
2005
2005
  "ring-offset-w": [{
2006
- "ring-offset": [ue, At]
2006
+ "ring-offset": [de, At]
2007
2007
  }],
2008
2008
  /**
2009
2009
  * Ring Offset Color
@@ -2047,7 +2047,7 @@ const Za = (e, t) => {
2047
2047
  * @see https://tailwindcss.com/docs/opacity
2048
2048
  */
2049
2049
  opacity: [{
2050
- opacity: [ue, oe, re]
2050
+ opacity: [de, oe, re]
2051
2051
  }],
2052
2052
  /**
2053
2053
  * Mix Blend Mode
@@ -2082,13 +2082,13 @@ const Za = (e, t) => {
2082
2082
  * @see https://tailwindcss.com/docs/mask-image
2083
2083
  */
2084
2084
  "mask-image-linear-pos": [{
2085
- "mask-linear": [ue]
2085
+ "mask-linear": [de]
2086
2086
  }],
2087
2087
  "mask-image-linear-from-pos": [{
2088
- "mask-linear-from": V()
2088
+ "mask-linear-from": H()
2089
2089
  }],
2090
2090
  "mask-image-linear-to-pos": [{
2091
- "mask-linear-to": V()
2091
+ "mask-linear-to": H()
2092
2092
  }],
2093
2093
  "mask-image-linear-from-color": [{
2094
2094
  "mask-linear-from": S()
@@ -2097,10 +2097,10 @@ const Za = (e, t) => {
2097
2097
  "mask-linear-to": S()
2098
2098
  }],
2099
2099
  "mask-image-t-from-pos": [{
2100
- "mask-t-from": V()
2100
+ "mask-t-from": H()
2101
2101
  }],
2102
2102
  "mask-image-t-to-pos": [{
2103
- "mask-t-to": V()
2103
+ "mask-t-to": H()
2104
2104
  }],
2105
2105
  "mask-image-t-from-color": [{
2106
2106
  "mask-t-from": S()
@@ -2109,10 +2109,10 @@ const Za = (e, t) => {
2109
2109
  "mask-t-to": S()
2110
2110
  }],
2111
2111
  "mask-image-r-from-pos": [{
2112
- "mask-r-from": V()
2112
+ "mask-r-from": H()
2113
2113
  }],
2114
2114
  "mask-image-r-to-pos": [{
2115
- "mask-r-to": V()
2115
+ "mask-r-to": H()
2116
2116
  }],
2117
2117
  "mask-image-r-from-color": [{
2118
2118
  "mask-r-from": S()
@@ -2121,10 +2121,10 @@ const Za = (e, t) => {
2121
2121
  "mask-r-to": S()
2122
2122
  }],
2123
2123
  "mask-image-b-from-pos": [{
2124
- "mask-b-from": V()
2124
+ "mask-b-from": H()
2125
2125
  }],
2126
2126
  "mask-image-b-to-pos": [{
2127
- "mask-b-to": V()
2127
+ "mask-b-to": H()
2128
2128
  }],
2129
2129
  "mask-image-b-from-color": [{
2130
2130
  "mask-b-from": S()
@@ -2133,10 +2133,10 @@ const Za = (e, t) => {
2133
2133
  "mask-b-to": S()
2134
2134
  }],
2135
2135
  "mask-image-l-from-pos": [{
2136
- "mask-l-from": V()
2136
+ "mask-l-from": H()
2137
2137
  }],
2138
2138
  "mask-image-l-to-pos": [{
2139
- "mask-l-to": V()
2139
+ "mask-l-to": H()
2140
2140
  }],
2141
2141
  "mask-image-l-from-color": [{
2142
2142
  "mask-l-from": S()
@@ -2145,10 +2145,10 @@ const Za = (e, t) => {
2145
2145
  "mask-l-to": S()
2146
2146
  }],
2147
2147
  "mask-image-x-from-pos": [{
2148
- "mask-x-from": V()
2148
+ "mask-x-from": H()
2149
2149
  }],
2150
2150
  "mask-image-x-to-pos": [{
2151
- "mask-x-to": V()
2151
+ "mask-x-to": H()
2152
2152
  }],
2153
2153
  "mask-image-x-from-color": [{
2154
2154
  "mask-x-from": S()
@@ -2157,10 +2157,10 @@ const Za = (e, t) => {
2157
2157
  "mask-x-to": S()
2158
2158
  }],
2159
2159
  "mask-image-y-from-pos": [{
2160
- "mask-y-from": V()
2160
+ "mask-y-from": H()
2161
2161
  }],
2162
2162
  "mask-image-y-to-pos": [{
2163
- "mask-y-to": V()
2163
+ "mask-y-to": H()
2164
2164
  }],
2165
2165
  "mask-image-y-from-color": [{
2166
2166
  "mask-y-from": S()
@@ -2172,10 +2172,10 @@ const Za = (e, t) => {
2172
2172
  "mask-radial": [oe, re]
2173
2173
  }],
2174
2174
  "mask-image-radial-from-pos": [{
2175
- "mask-radial-from": V()
2175
+ "mask-radial-from": H()
2176
2176
  }],
2177
2177
  "mask-image-radial-to-pos": [{
2178
- "mask-radial-to": V()
2178
+ "mask-radial-to": H()
2179
2179
  }],
2180
2180
  "mask-image-radial-from-color": [{
2181
2181
  "mask-radial-from": S()
@@ -2196,13 +2196,13 @@ const Za = (e, t) => {
2196
2196
  "mask-radial-at": I()
2197
2197
  }],
2198
2198
  "mask-image-conic-pos": [{
2199
- "mask-conic": [ue]
2199
+ "mask-conic": [de]
2200
2200
  }],
2201
2201
  "mask-image-conic-from-pos": [{
2202
- "mask-conic-from": V()
2202
+ "mask-conic-from": H()
2203
2203
  }],
2204
2204
  "mask-image-conic-to-pos": [{
2205
- "mask-conic-to": V()
2205
+ "mask-conic-to": H()
2206
2206
  }],
2207
2207
  "mask-image-conic-from-color": [{
2208
2208
  "mask-conic-from": S()
@@ -2287,14 +2287,14 @@ const Za = (e, t) => {
2287
2287
  * @see https://tailwindcss.com/docs/brightness
2288
2288
  */
2289
2289
  brightness: [{
2290
- brightness: [ue, oe, re]
2290
+ brightness: [de, oe, re]
2291
2291
  }],
2292
2292
  /**
2293
2293
  * Contrast
2294
2294
  * @see https://tailwindcss.com/docs/contrast
2295
2295
  */
2296
2296
  contrast: [{
2297
- contrast: [ue, oe, re]
2297
+ contrast: [de, oe, re]
2298
2298
  }],
2299
2299
  /**
2300
2300
  * Drop Shadow
@@ -2322,35 +2322,35 @@ const Za = (e, t) => {
2322
2322
  * @see https://tailwindcss.com/docs/grayscale
2323
2323
  */
2324
2324
  grayscale: [{
2325
- grayscale: ["", ue, oe, re]
2325
+ grayscale: ["", de, oe, re]
2326
2326
  }],
2327
2327
  /**
2328
2328
  * Hue Rotate
2329
2329
  * @see https://tailwindcss.com/docs/hue-rotate
2330
2330
  */
2331
2331
  "hue-rotate": [{
2332
- "hue-rotate": [ue, oe, re]
2332
+ "hue-rotate": [de, oe, re]
2333
2333
  }],
2334
2334
  /**
2335
2335
  * Invert
2336
2336
  * @see https://tailwindcss.com/docs/invert
2337
2337
  */
2338
2338
  invert: [{
2339
- invert: ["", ue, oe, re]
2339
+ invert: ["", de, oe, re]
2340
2340
  }],
2341
2341
  /**
2342
2342
  * Saturate
2343
2343
  * @see https://tailwindcss.com/docs/saturate
2344
2344
  */
2345
2345
  saturate: [{
2346
- saturate: [ue, oe, re]
2346
+ saturate: [de, oe, re]
2347
2347
  }],
2348
2348
  /**
2349
2349
  * Sepia
2350
2350
  * @see https://tailwindcss.com/docs/sepia
2351
2351
  */
2352
2352
  sepia: [{
2353
- sepia: ["", ue, oe, re]
2353
+ sepia: ["", de, oe, re]
2354
2354
  }],
2355
2355
  /**
2356
2356
  * Backdrop Filter
@@ -2377,56 +2377,56 @@ const Za = (e, t) => {
2377
2377
  * @see https://tailwindcss.com/docs/backdrop-brightness
2378
2378
  */
2379
2379
  "backdrop-brightness": [{
2380
- "backdrop-brightness": [ue, oe, re]
2380
+ "backdrop-brightness": [de, oe, re]
2381
2381
  }],
2382
2382
  /**
2383
2383
  * Backdrop Contrast
2384
2384
  * @see https://tailwindcss.com/docs/backdrop-contrast
2385
2385
  */
2386
2386
  "backdrop-contrast": [{
2387
- "backdrop-contrast": [ue, oe, re]
2387
+ "backdrop-contrast": [de, oe, re]
2388
2388
  }],
2389
2389
  /**
2390
2390
  * Backdrop Grayscale
2391
2391
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2392
2392
  */
2393
2393
  "backdrop-grayscale": [{
2394
- "backdrop-grayscale": ["", ue, oe, re]
2394
+ "backdrop-grayscale": ["", de, oe, re]
2395
2395
  }],
2396
2396
  /**
2397
2397
  * Backdrop Hue Rotate
2398
2398
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2399
2399
  */
2400
2400
  "backdrop-hue-rotate": [{
2401
- "backdrop-hue-rotate": [ue, oe, re]
2401
+ "backdrop-hue-rotate": [de, oe, re]
2402
2402
  }],
2403
2403
  /**
2404
2404
  * Backdrop Invert
2405
2405
  * @see https://tailwindcss.com/docs/backdrop-invert
2406
2406
  */
2407
2407
  "backdrop-invert": [{
2408
- "backdrop-invert": ["", ue, oe, re]
2408
+ "backdrop-invert": ["", de, oe, re]
2409
2409
  }],
2410
2410
  /**
2411
2411
  * Backdrop Opacity
2412
2412
  * @see https://tailwindcss.com/docs/backdrop-opacity
2413
2413
  */
2414
2414
  "backdrop-opacity": [{
2415
- "backdrop-opacity": [ue, oe, re]
2415
+ "backdrop-opacity": [de, oe, re]
2416
2416
  }],
2417
2417
  /**
2418
2418
  * Backdrop Saturate
2419
2419
  * @see https://tailwindcss.com/docs/backdrop-saturate
2420
2420
  */
2421
2421
  "backdrop-saturate": [{
2422
- "backdrop-saturate": [ue, oe, re]
2422
+ "backdrop-saturate": [de, oe, re]
2423
2423
  }],
2424
2424
  /**
2425
2425
  * Backdrop Sepia
2426
2426
  * @see https://tailwindcss.com/docs/backdrop-sepia
2427
2427
  */
2428
2428
  "backdrop-sepia": [{
2429
- "backdrop-sepia": ["", ue, oe, re]
2429
+ "backdrop-sepia": ["", de, oe, re]
2430
2430
  }],
2431
2431
  // --------------
2432
2432
  // --- Tables ---
@@ -2495,7 +2495,7 @@ const Za = (e, t) => {
2495
2495
  * @see https://tailwindcss.com/docs/transition-duration
2496
2496
  */
2497
2497
  duration: [{
2498
- duration: [ue, "initial", oe, re]
2498
+ duration: [de, "initial", oe, re]
2499
2499
  }],
2500
2500
  /**
2501
2501
  * Transition Timing Function
@@ -2509,7 +2509,7 @@ const Za = (e, t) => {
2509
2509
  * @see https://tailwindcss.com/docs/transition-delay
2510
2510
  */
2511
2511
  delay: [{
2512
- delay: [ue, oe, re]
2512
+ delay: [de, oe, re]
2513
2513
  }],
2514
2514
  /**
2515
2515
  * Animation
@@ -2547,56 +2547,56 @@ const Za = (e, t) => {
2547
2547
  * @see https://tailwindcss.com/docs/rotate
2548
2548
  */
2549
2549
  rotate: [{
2550
- rotate: X()
2550
+ rotate: Y()
2551
2551
  }],
2552
2552
  /**
2553
2553
  * Rotate X
2554
2554
  * @see https://tailwindcss.com/docs/rotate
2555
2555
  */
2556
2556
  "rotate-x": [{
2557
- "rotate-x": X()
2557
+ "rotate-x": Y()
2558
2558
  }],
2559
2559
  /**
2560
2560
  * Rotate Y
2561
2561
  * @see https://tailwindcss.com/docs/rotate
2562
2562
  */
2563
2563
  "rotate-y": [{
2564
- "rotate-y": X()
2564
+ "rotate-y": Y()
2565
2565
  }],
2566
2566
  /**
2567
2567
  * Rotate Z
2568
2568
  * @see https://tailwindcss.com/docs/rotate
2569
2569
  */
2570
2570
  "rotate-z": [{
2571
- "rotate-z": X()
2571
+ "rotate-z": Y()
2572
2572
  }],
2573
2573
  /**
2574
2574
  * Scale
2575
2575
  * @see https://tailwindcss.com/docs/scale
2576
2576
  */
2577
2577
  scale: [{
2578
- scale: ee()
2578
+ scale: J()
2579
2579
  }],
2580
2580
  /**
2581
2581
  * Scale X
2582
2582
  * @see https://tailwindcss.com/docs/scale
2583
2583
  */
2584
2584
  "scale-x": [{
2585
- "scale-x": ee()
2585
+ "scale-x": J()
2586
2586
  }],
2587
2587
  /**
2588
2588
  * Scale Y
2589
2589
  * @see https://tailwindcss.com/docs/scale
2590
2590
  */
2591
2591
  "scale-y": [{
2592
- "scale-y": ee()
2592
+ "scale-y": J()
2593
2593
  }],
2594
2594
  /**
2595
2595
  * Scale Z
2596
2596
  * @see https://tailwindcss.com/docs/scale
2597
2597
  */
2598
2598
  "scale-z": [{
2599
- "scale-z": ee()
2599
+ "scale-z": J()
2600
2600
  }],
2601
2601
  /**
2602
2602
  * Scale 3D
@@ -2650,28 +2650,28 @@ const Za = (e, t) => {
2650
2650
  * @see https://tailwindcss.com/docs/translate
2651
2651
  */
2652
2652
  translate: [{
2653
- translate: ve()
2653
+ translate: ue()
2654
2654
  }],
2655
2655
  /**
2656
2656
  * Translate X
2657
2657
  * @see https://tailwindcss.com/docs/translate
2658
2658
  */
2659
2659
  "translate-x": [{
2660
- "translate-x": ve()
2660
+ "translate-x": ue()
2661
2661
  }],
2662
2662
  /**
2663
2663
  * Translate Y
2664
2664
  * @see https://tailwindcss.com/docs/translate
2665
2665
  */
2666
2666
  "translate-y": [{
2667
- "translate-y": ve()
2667
+ "translate-y": ue()
2668
2668
  }],
2669
2669
  /**
2670
2670
  * Translate Z
2671
2671
  * @see https://tailwindcss.com/docs/translate
2672
2672
  */
2673
2673
  "translate-z": [{
2674
- "translate-z": ve()
2674
+ "translate-z": ue()
2675
2675
  }],
2676
2676
  /**
2677
2677
  * Translate None
@@ -2953,7 +2953,7 @@ const Za = (e, t) => {
2953
2953
  * @see https://tailwindcss.com/docs/stroke-width
2954
2954
  */
2955
2955
  "stroke-w": [{
2956
- stroke: [ue, ar, At, lo]
2956
+ stroke: [de, ar, At, lo]
2957
2957
  }],
2958
2958
  /**
2959
2959
  * Stroke
@@ -3420,9 +3420,9 @@ const Xi = {
3420
3420
  i.value = gl(o.value);
3421
3421
  }
3422
3422
  function v() {
3423
- const W = o.value, Y = n.value;
3424
- if (!W || !Y) return;
3425
- const q = W.getBoundingClientRect(), U = Y.getBoundingClientRect(), x = i.value, T = x?.getBoundingClientRect(), S = x && T ? x.scrollLeft - T.left - x.clientLeft : window.scrollX, D = x && T ? x.scrollTop - T.top - x.clientTop : window.scrollY;
3423
+ const W = o.value, X = n.value;
3424
+ if (!W || !X) return;
3425
+ const q = W.getBoundingClientRect(), U = X.getBoundingClientRect(), x = i.value, T = x?.getBoundingClientRect(), S = x && T ? x.scrollLeft - T.left - x.clientLeft : window.scrollX, D = x && T ? x.scrollTop - T.top - x.clientTop : window.scrollY;
3426
3426
  let N = 0, z = 0;
3427
3427
  const C = 8, R = {
3428
3428
  top: q.top,
@@ -3466,7 +3466,7 @@ const Xi = {
3466
3466
  function A() {
3467
3467
  a && (clearTimeout(a), a = null), s && (clearTimeout(s), s = null);
3468
3468
  }
3469
- Q(c, (W) => {
3469
+ ee(c, (W) => {
3470
3470
  W && (A(), l.value = !1);
3471
3471
  });
3472
3472
  function E() {
@@ -3479,9 +3479,9 @@ const Xi = {
3479
3479
  l.value = !1;
3480
3480
  }, e.mouseLeaveDelay * 1e3));
3481
3481
  }
3482
- Q(d, (W) => {
3482
+ ee(d, (W) => {
3483
3483
  W ? (m(), w(), Ze(() => y())) : I();
3484
- }), Q(() => e.placement, (W) => {
3484
+ }), ee(() => e.placement, (W) => {
3485
3485
  f.value = W, d.value && Ze(() => y());
3486
3486
  }), it(() => {
3487
3487
  d.value && (m(), w(), Ze(() => y()));
@@ -3619,12 +3619,12 @@ const Xi = {
3619
3619
  borderTop: `7px solid ${W}`
3620
3620
  };
3621
3621
  }
3622
- }), H = k(() => e.destroyOnHide ? d.value : !0);
3622
+ }), V = k(() => e.destroyOnHide ? d.value : !0);
3623
3623
  return () => {
3624
3624
  const W = t.title?.() ?? e.title;
3625
3625
  if (W == null)
3626
3626
  return t.default?.();
3627
- const Y = p("span", {
3627
+ const X = p("span", {
3628
3628
  ref: o,
3629
3629
  onMouseenter: E,
3630
3630
  onMouseleave: O,
@@ -3639,7 +3639,7 @@ const Xi = {
3639
3639
  background: e.color,
3640
3640
  borderColor: e.color
3641
3641
  } : void 0;
3642
- return p(Je, null, [Y, p(Kn, {
3642
+ return p(Je, null, [X, p(Kn, {
3643
3643
  to: i.value ?? "body"
3644
3644
  }, {
3645
3645
  default: () => [p(Io, {
@@ -3648,7 +3648,7 @@ const Xi = {
3648
3648
  enterFromClass: "vtg-tooltip-enter-from",
3649
3649
  leaveToClass: "vtg-tooltip-leave-to"
3650
3650
  }, {
3651
- default: () => [H.value && d.value && p("div", {
3651
+ default: () => [V.value && d.value && p("div", {
3652
3652
  ref: n,
3653
3653
  role: "tooltip",
3654
3654
  onMouseenter: E,
@@ -4550,7 +4550,7 @@ function cs(e, t, r, o, n, l, a) {
4550
4550
  }
4551
4551
  function us(e, t, r, o) {
4552
4552
  let n = /* @__PURE__ */ new Map(), l = [];
4553
- return Q([e, () => r.id.value, o], () => {
4553
+ return ee([e, () => r.id.value, o], () => {
4554
4554
  n = /* @__PURE__ */ new Map(), l = [];
4555
4555
  }), (s, c = s) => {
4556
4556
  let d = n.get(s), u = n.get(c);
@@ -4674,7 +4674,7 @@ function gs(e, t, r) {
4674
4674
  }, h = () => {
4675
4675
  i(), u(), s && (clearInterval(s), s = null);
4676
4676
  };
4677
- yr(h), Q(
4677
+ yr(h), ee(
4678
4678
  [e, t],
4679
4679
  ([m, v]) => {
4680
4680
  m && v ? (c = v, v.addEventListener("touchstart", f, { passive: !0 })) : h();
@@ -4710,7 +4710,7 @@ function ps(e, t, r) {
4710
4710
  }, i = () => {
4711
4711
  o && (o.removeEventListener("mousedown", g), o = null), n && (n.removeEventListener("mouseup", u), n.removeEventListener("mousemove", f), n.removeEventListener("dragend", u), n = null), u();
4712
4712
  };
4713
- yr(i), Q(
4713
+ yr(i), ee(
4714
4714
  [e, t],
4715
4715
  ([h, m]) => {
4716
4716
  h && m ? (o = m, n = m.ownerDocument, o.addEventListener("mousedown", g), n.addEventListener("mouseup", u), n.addEventListener("mousemove", f), n.addEventListener("dragend", u)) : i();
@@ -4729,7 +4729,7 @@ function bs(e, t, r, o, n, l, a, s, c) {
4729
4729
  }
4730
4730
  return i;
4731
4731
  };
4732
- return Q(
4732
+ return ee(
4733
4733
  d,
4734
4734
  () => {
4735
4735
  if (d.value && d.value.times < hs) {
@@ -4749,20 +4749,20 @@ function bs(e, t, r, o, n, l, a, s, c) {
4749
4749
  E = B * P, O = E + P;
4750
4750
  } else {
4751
4751
  let P = 0;
4752
- for (let H = 0; H <= B; H += 1) {
4753
- const W = n(t.value[H], H);
4752
+ for (let V = 0; V <= B; V += 1) {
4753
+ const W = n(t.value[V], V);
4754
4754
  E = P;
4755
- const Y = r.get(W);
4756
- O = E + (Y === void 0 ? o.value ?? 0 : Y), P = O;
4755
+ const X = r.get(W);
4756
+ O = E + (X === void 0 ? o.value ?? 0 : X), P = O;
4757
4757
  }
4758
4758
  let j = A === "top" ? v : y - v;
4759
- for (let H = B; H >= 0; H -= 1) {
4760
- const W = n(t.value[H], H), Y = r.get(W);
4761
- if (Y === void 0) {
4759
+ for (let V = B; V >= 0; V -= 1) {
4760
+ const W = n(t.value[V], V), X = r.get(W);
4761
+ if (X === void 0) {
4762
4762
  b = !0;
4763
4763
  break;
4764
4764
  }
4765
- if (j -= Y, j <= 0) break;
4765
+ if (j -= X, j <= 0) break;
4766
4766
  }
4767
4767
  }
4768
4768
  switch (A) {
@@ -4887,7 +4887,7 @@ const vn = /* @__PURE__ */ le({
4887
4887
  pageY: n.value,
4888
4888
  startTop: l.value
4889
4889
  });
4890
- Q([m, r, n, l], () => {
4890
+ ee([m, r, n, l], () => {
4891
4891
  v.value = {
4892
4892
  top: m.value,
4893
4893
  dragging: r.value,
@@ -4911,19 +4911,19 @@ const vn = /* @__PURE__ */ le({
4911
4911
  }), yr(() => {
4912
4912
  I.removeEventListener("touchstart", w), A.removeEventListener("touchstart", b);
4913
4913
  }));
4914
- }), Q(r, (w, I, A) => {
4914
+ }), ee(r, (w, I, A) => {
4915
4915
  if (w) {
4916
4916
  let E = null;
4917
4917
  const O = (P) => {
4918
4918
  const {
4919
4919
  dragging: j,
4920
- pageY: H,
4920
+ pageY: V,
4921
4921
  startTop: W
4922
4922
  } = v.value;
4923
4923
  E !== null && cancelAnimationFrame(E);
4924
- const Y = s.value.getBoundingClientRect(), q = e.containerSize / (e.horizontal ? Y.width : Y.height);
4924
+ const X = s.value.getBoundingClientRect(), q = e.containerSize / (e.horizontal ? X.width : X.height);
4925
4925
  if (j) {
4926
- const U = (fn(P, e.horizontal || !1) - (H || 0)) * q;
4926
+ const U = (fn(P, e.horizontal || !1) - (V || 0)) * q;
4927
4927
  let x = W || 0;
4928
4928
  !a.value && e.horizontal ? x -= U : x += U;
4929
4929
  const T = i.value, S = h.value, D = S ? x / S : 0;
@@ -4947,7 +4947,7 @@ const vn = /* @__PURE__ */ le({
4947
4947
  window.removeEventListener("mousemove", O), window.removeEventListener("touchmove", O), window.removeEventListener("mouseup", B), window.removeEventListener("touchend", B), E !== null && cancelAnimationFrame(E);
4948
4948
  });
4949
4949
  }
4950
- }), Q(() => e.scrollOffset, (w, I, A) => {
4950
+ }), ee(() => e.scrollOffset, (w, I, A) => {
4951
4951
  g(), A(() => {
4952
4952
  u && clearTimeout(u);
4953
4953
  });
@@ -5153,20 +5153,20 @@ const Cs = /* @__PURE__ */ le({
5153
5153
  }) {
5154
5154
  const n = k(() => e.itemHeight);
5155
5155
  let l = e.itemKey;
5156
- Q(() => e.itemKey, (te) => {
5156
+ ee(() => e.itemKey, (te) => {
5157
5157
  l = te;
5158
5158
  });
5159
5159
  const a = (te, ae) => {
5160
5160
  const ce = l;
5161
5161
  return typeof ce == "function" ? ce(te, ae) : te?.[ce];
5162
5162
  }, [s, c, d, u] = vs(a, void 0, void 0, () => e.disableHeightMeasure), g = ie(e?.data || mn);
5163
- Q(() => e.data, () => {
5163
+ ee(() => e.data, () => {
5164
5164
  g.value = e?.data || mn;
5165
5165
  });
5166
5166
  const f = k(() => !!(e.virtual !== !1 && e.height && e.itemHeight)), i = k(() => {
5167
5167
  const te = g.value;
5168
5168
  return f.value && te && (e.itemHeight * te.length > e.height || !!e.scrollWidth);
5169
- }), h = $(), m = $(), v = $(), y = $(!1), b = ie(), w = ie(), I = $(0), A = $(0), E = $(!1), O = $(0), B = $(0), P = $(e.scrollWidth || 0), j = $(0), H = $(0), W = $(0), Y = $(void 0);
5169
+ }), h = $(), m = $(), v = $(), y = $(!1), b = ie(), w = ie(), I = $(0), A = $(0), E = $(!1), O = $(0), B = $(0), P = $(e.scrollWidth || 0), j = $(0), V = $(0), W = $(0), X = $(void 0);
5170
5170
  function q(te) {
5171
5171
  const ae = j.value - e.height;
5172
5172
  return Math.max(0, Math.min(te, ae || 0));
@@ -5178,46 +5178,46 @@ const Cs = /* @__PURE__ */ le({
5178
5178
  h.value && (h.value.scrollTop = ce), I.value = ce;
5179
5179
  }
5180
5180
  const x = new hl();
5181
- Q([i, f, I, g, u, () => e.height, () => e.itemHeight], ([, , , te, ae, , ce], xe) => {
5181
+ ee([i, f, I, g, u, () => e.height, () => e.itemHeight], ([, , , te, ae, , ce], xe) => {
5182
5182
  if (!xe)
5183
5183
  x.markAllDirty();
5184
5184
  else {
5185
5185
  const [, , , Oe, ye, , He] = xe;
5186
- te !== Oe || ce !== He ? x.markAllDirty() : ae !== ye && x.markDirtyFrom(H.value);
5186
+ te !== Oe || ce !== He ? x.markAllDirty() : ae !== ye && x.markDirtyFrom(V.value);
5187
5187
  }
5188
5188
  if (!f.value) {
5189
- j.value = 0, H.value = 0, W.value = g.value.length - 1, Y.value = void 0;
5189
+ j.value = 0, V.value = 0, W.value = g.value.length - 1, X.value = void 0;
5190
5190
  return;
5191
5191
  }
5192
5192
  if (!i.value) {
5193
- j.value = m.value?.offsetHeight || 0, H.value = 0, W.value = g.value.length - 1, Y.value = void 0;
5193
+ j.value = m.value?.offsetHeight || 0, V.value = 0, W.value = g.value.length - 1, X.value = void 0;
5194
5194
  return;
5195
5195
  }
5196
5196
  const {
5197
5197
  itemHeight: Ue,
5198
5198
  height: st
5199
- } = e, J = g.value.length;
5200
- if (!J) {
5201
- j.value = 0, H.value = 0, W.value = -1, Y.value = 0;
5199
+ } = e, Q = g.value.length;
5200
+ if (!Q) {
5201
+ j.value = 0, V.value = 0, W.value = -1, X.value = 0;
5202
5202
  return;
5203
5203
  }
5204
5204
  if (lt(d.id) === 0) {
5205
5205
  const Oe = Ue, ye = st, He = Math.max(0, Math.floor(I.value / Oe)), rt = He * Oe;
5206
5206
  let et = He + Math.ceil(ye / Oe);
5207
- et = Math.min(et + 1, J - 1), j.value = J * Oe, H.value = He, W.value = et, Y.value = rt;
5207
+ et = Math.min(et + 1, Q - 1), j.value = Q * Oe, V.value = He, W.value = et, X.value = rt;
5208
5208
  return;
5209
5209
  }
5210
5210
  const he = Ba(g.value);
5211
- x.sync(J, (Oe) => d.get(a(he[Oe], Oe)), Ue);
5212
- const Me = Ss(x, J, I.value, st);
5213
- j.value = Me.scrollHeight, H.value = Me.start, W.value = Me.end, Y.value = Me.offset;
5211
+ x.sync(Q, (Oe) => d.get(a(he[Oe], Oe)), Ue);
5212
+ const Me = Ss(x, Q, I.value, st);
5213
+ j.value = Me.scrollHeight, V.value = Me.start, W.value = Me.end, X.value = Me.offset;
5214
5214
  }, {
5215
5215
  immediate: !0
5216
- }), Q(j, () => {
5216
+ }), ee(j, () => {
5217
5217
  const te = d.getRecord();
5218
5218
  if (te.size === 1) {
5219
- const ae = Array.from(te.keys())[0], ce = te.get(ae), xe = g.value[H.value];
5220
- if (xe && ce === void 0 && a(xe, H.value) === ae) {
5219
+ const ae = Array.from(te.keys())[0], ce = te.get(ae), xe = g.value[V.value];
5220
+ if (xe && ce === void 0 && a(xe, V.value) === ae) {
5221
5221
  const Ue = d.get(ae) - e.itemHeight;
5222
5222
  U((st) => st + Ue);
5223
5223
  }
@@ -5259,17 +5259,17 @@ const Cs = /* @__PURE__ */ le({
5259
5259
  };
5260
5260
  (ae || R.value.x !== ce.x || R.value.y !== ce.y) && (e.onVirtualScroll(ce), R.value = ce);
5261
5261
  }
5262
- }, L = k(() => Math.max(0, (P.value || 0) - T.value.width)), F = k(() => I.value === 0), V = k(() => I.value + e.height >= j.value), K = k(() => A.value === 0), X = k(() => A.value >= L.value), ee = (te) => Math.max(0, Math.min(te, L.value));
5263
- Q(L, () => {
5264
- A.value = ee(A.value), M(void 0, !0);
5262
+ }, L = k(() => Math.max(0, (P.value || 0) - T.value.width)), F = k(() => I.value === 0), H = k(() => I.value + e.height >= j.value), K = k(() => A.value === 0), Y = k(() => A.value >= L.value), J = (te) => Math.max(0, Math.min(te, L.value));
5263
+ ee(L, () => {
5264
+ A.value = J(A.value), M(void 0, !0);
5265
5265
  }, {
5266
5266
  flush: "post"
5267
5267
  });
5268
5268
  const Z = () => {
5269
5269
  b.value?.delayHidden(), w.value?.delayHidden();
5270
- }, [ve] = cs(i, F, V, K, X, L.value > 0, (te, ae) => {
5270
+ }, [ue] = cs(i, F, H, K, Y, L.value > 0, (te, ae) => {
5271
5271
  if (ae) {
5272
- const ce = ee(z.value ? A.value - te : A.value + te);
5272
+ const ce = J(z.value ? A.value - te : A.value + te);
5273
5273
  A.value = ce, M({
5274
5274
  x: z.value ? -ce : ce
5275
5275
  });
@@ -5278,7 +5278,7 @@ const Cs = /* @__PURE__ */ le({
5278
5278
  });
5279
5279
  gs(i, h, (te, ae, ce) => {
5280
5280
  if (te) {
5281
- const xe = ee(z.value ? A.value - ae : A.value + ae), Ue = xe !== A.value;
5281
+ const xe = J(z.value ? A.value - ae : A.value + ae), Ue = xe !== A.value;
5282
5282
  return A.value = xe, M({
5283
5283
  x: z.value ? -xe : xe
5284
5284
  }), ce ? Ue : !0;
@@ -5289,7 +5289,7 @@ const Cs = /* @__PURE__ */ le({
5289
5289
  }), ps(i, h, (te) => {
5290
5290
  U((ae) => ae + te);
5291
5291
  });
5292
- const fe = (te, ae) => {
5292
+ const ve = (te, ae) => {
5293
5293
  ae ? (A.value = te, M({
5294
5294
  x: z.value ? -te : te
5295
5295
  })) : U(te);
@@ -5298,16 +5298,16 @@ const Cs = /* @__PURE__ */ le({
5298
5298
  }, ge = () => {
5299
5299
  E.value = !1;
5300
5300
  };
5301
- Q([() => e.height, j, i, () => T.value.height], () => {
5301
+ ee([() => e.height, j, i, () => T.value.height], () => {
5302
5302
  i.value && e.height && j.value && (O.value = gn(T.value.height, j.value));
5303
5303
  }, {
5304
5304
  immediate: !0
5305
- }), Q([() => T.value.width, P], () => {
5305
+ }), ee([() => T.value.width, P], () => {
5306
5306
  i.value && P.value && (B.value = gn(T.value.width, P.value));
5307
5307
  }, {
5308
5308
  immediate: !0
5309
- }), Q(() => e.scrollWidth, (te) => {
5310
- P.value = te ?? T.value.width, A.value = ee(A.value);
5309
+ }), ee(() => e.scrollWidth, (te) => {
5310
+ P.value = te ?? T.value.width, A.value = J(A.value);
5311
5311
  }, {
5312
5312
  immediate: !0
5313
5313
  });
@@ -5327,17 +5327,17 @@ const Cs = /* @__PURE__ */ le({
5327
5327
  function ae(ce) {
5328
5328
  return ce && typeof ce == "object" && ("left" in ce || "top" in ce);
5329
5329
  }
5330
- ae(te) ? (te.left !== void 0 && (A.value = ee(te.left)), Pe(te.top)) : Pe(te);
5330
+ ae(te) ? (te.left !== void 0 && (A.value = J(te.left)), Pe(te.top)) : Pe(te);
5331
5331
  }
5332
- }), Q([H, W, g], () => {
5332
+ }), ee([V, W, g], () => {
5333
5333
  if (e.onVisibleChange) {
5334
- const te = g.value.slice(H.value, W.value + 1);
5334
+ const te = g.value.slice(V.value, W.value + 1);
5335
5335
  e.onVisibleChange(te, g.value);
5336
5336
  }
5337
5337
  }, {
5338
5338
  flush: "post"
5339
5339
  });
5340
- const Ne = us(g, a, d, n), Ce = is(g, H, W, P, A, s, (te, ae, ce) => o.default?.({
5340
+ const Ne = us(g, a, d, n), Ce = is(g, V, W, P, A, s, (te, ae, ce) => o.default?.({
5341
5341
  item: te,
5342
5342
  index: ae,
5343
5343
  ...ce
@@ -5348,11 +5348,11 @@ const Cs = /* @__PURE__ */ le({
5348
5348
  const te = {};
5349
5349
  e.height && (te[e.fullHeight ? "height" : "maxHeight"] = `${e.height}px`, Object.assign(te, xs), i.value && (te.overflowY = "hidden", L.value > 0 && (te.overflowX = "hidden"), E.value && (te.pointerEvents = "none")));
5350
5350
  const ae = e.extraRender?.({
5351
- start: H.value,
5351
+ start: V.value,
5352
5352
  end: W.value,
5353
5353
  virtual: i.value,
5354
5354
  offsetX: A.value,
5355
- offsetY: Y.value || 0,
5355
+ offsetY: X.value || 0,
5356
5356
  rtl: z.value,
5357
5357
  getSize: Ne
5358
5358
  }), ce = e.component;
@@ -5380,14 +5380,14 @@ const Cs = /* @__PURE__ */ le({
5380
5380
  h.value = xe?.$el ?? xe, N(xe?.$el ?? xe);
5381
5381
  },
5382
5382
  onScroll: we,
5383
- onWheel: ve,
5383
+ onWheel: ue,
5384
5384
  onMouseenter: Z
5385
5385
  }, {
5386
5386
  default: () => [p(os, {
5387
5387
  prefixCls: e.prefixCls,
5388
5388
  height: j.value,
5389
5389
  offsetX: A.value,
5390
- offsetY: Y.value,
5390
+ offsetY: X.value,
5391
5391
  scrollWidth: P.value,
5392
5392
  onInnerResize: c,
5393
5393
  ref: m,
@@ -5403,7 +5403,7 @@ const Cs = /* @__PURE__ */ le({
5403
5403
  scrollOffset: I.value,
5404
5404
  scrollRange: j.value,
5405
5405
  rtl: z.value,
5406
- onScroll: fe,
5406
+ onScroll: ve,
5407
5407
  onStartMove: se,
5408
5408
  onStopMove: ge,
5409
5409
  spinSize: O.value,
@@ -5418,7 +5418,7 @@ const Cs = /* @__PURE__ */ le({
5418
5418
  scrollOffset: A.value,
5419
5419
  scrollRange: P.value,
5420
5420
  rtl: z.value,
5421
- onScroll: fe,
5421
+ onScroll: ve,
5422
5422
  onStartMove: se,
5423
5423
  onStopMove: ge,
5424
5424
  spinSize: B.value,
@@ -6299,27 +6299,34 @@ const ko = {
6299
6299
  }, Lr = {
6300
6300
  slots: {
6301
6301
  root: "flex min-w-0 flex-wrap items-start gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] rounded-[var(--vtg-query-radius,6px)] bg-[color:var(--color-surface)] p-[var(--vtg-query-padding,24px)] font-[family-name:var(--font-family-base)] text-[length:var(--vtg-table-font-size)] text-[color:var(--color-on-surface)]",
6302
- fields: "grid min-w-[min(100%,calc(var(--vtg-query-field-min-width,240px)*2_+_var(--vtg-query-column-gap,24px)))] flex-1 gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] [grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vtg-query-field-min-width,240px)),1fr))]",
6302
+ fields: "",
6303
6303
  field: "flex min-w-0 items-start gap-[var(--vtg-query-label-gap,12px)]",
6304
- label: "flex h-[var(--vtg-query-control-height,32px)] w-[var(--vtg-query-label-width,80px)] shrink-0 items-center justify-end",
6305
- control: "min-w-0 flex-1 [&>*]:w-full",
6304
+ label: "flex h-[var(--vtg-query-control-height,32px)] shrink-0 items-center",
6305
+ control: "min-w-0",
6306
6306
  error: "mt-1 text-[color:var(--vtg-cell-error)] text-[length:var(--vtg-query-error-font-size,12px)]",
6307
- actions: "ml-auto flex min-h-[var(--vtg-query-control-height,32px)] max-w-full flex-wrap items-center justify-end gap-[var(--vtg-query-action-gap,8px)]",
6307
+ actions: "flex min-h-[var(--vtg-query-control-height,32px)] max-w-full flex-wrap items-center gap-[var(--vtg-query-action-gap,8px)]",
6308
6308
  feedback: "w-full text-[color:var(--vtg-cell-error)]",
6309
6309
  collapse: "inline-flex items-center gap-1"
6310
6310
  },
6311
6311
  variants: {
6312
6312
  layout: {
6313
- form: {},
6313
+ form: {
6314
+ fields: "grid min-w-[min(100%,calc(var(--vtg-query-field-min-width,240px)*2_+_var(--vtg-query-column-gap,24px)))] flex-1 gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] [grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vtg-query-field-min-width,240px)),1fr))]",
6315
+ label: "w-[var(--vtg-query-label-width,80px)] justify-end",
6316
+ control: "flex-1 [&>*]:w-full",
6317
+ actions: "ml-auto justify-end"
6318
+ },
6314
6319
  light: {
6315
6320
  root: "p-[var(--vtg-query-light-padding,16px)]",
6316
- fields: "flex flex-wrap items-start gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)]",
6317
- field: "w-[var(--vtg-query-light-field-width,240px)] max-w-full",
6318
- label: "w-auto justify-start"
6321
+ fields: "contents",
6322
+ field: "w-[var(--vtg-query-light-field-width,auto)] max-w-full",
6323
+ label: "w-auto justify-start",
6324
+ control: "flex-initial",
6325
+ actions: "ml-0 justify-start"
6319
6326
  }
6320
6327
  }
6321
6328
  },
6322
- defaultVariants: { layout: "form" }
6329
+ defaultVariants: { layout: "light" }
6323
6330
  }, Ds = {
6324
6331
  ...Lr,
6325
6332
  slots: {
@@ -7234,7 +7241,7 @@ function nc(e) {
7234
7241
  E.has(O) || delete n[O];
7235
7242
  });
7236
7243
  }
7237
- Q([() => t(), () => r?.()], () => d(), {
7244
+ ee([() => t(), () => r?.()], () => d(), {
7238
7245
  immediate: !0,
7239
7246
  deep: !0
7240
7247
  });
@@ -7247,10 +7254,10 @@ function nc(e) {
7247
7254
  if (!P.sorter) return;
7248
7255
  const j = ke(P);
7249
7256
  if (j === void 0) return;
7250
- const H = E && String(j) === String(E.columnKey) ? E.order : u(P);
7251
- H && O.push({
7257
+ const V = E && String(j) === String(E.columnKey) ? E.order : u(P);
7258
+ V && O.push({
7252
7259
  columnKey: j,
7253
- order: H,
7260
+ order: V,
7254
7261
  column: P,
7255
7262
  multiplePriority: so(P)
7256
7263
  });
@@ -7280,8 +7287,8 @@ function nc(e) {
7280
7287
  if (!E.sorter) return;
7281
7288
  const O = ke(E);
7282
7289
  if (O === void 0) return;
7283
- const B = i(E), P = tc(E, r?.()), j = rc(B, P), H = so(E);
7284
- l(E) || (H === !1 ? h() : h((Y) => so(Y) === !1), s(E, j ?? void 0));
7290
+ const B = i(E), P = tc(E, r?.()), j = rc(B, P), V = so(E);
7291
+ l(E) || (V === !1 ? h() : h((X) => so(X) === !1), s(E, j ?? void 0));
7285
7292
  const W = g({
7286
7293
  columnKey: O,
7287
7294
  order: j
@@ -7320,9 +7327,9 @@ function nc(e) {
7320
7327
  );
7321
7328
  return O.length === 0 ? E : [...E].sort((B, P) => {
7322
7329
  for (const j of O) {
7323
- const H = j.compareFn(B, P) * j.multiplier;
7324
- if (H !== 0)
7325
- return H;
7330
+ const V = j.compareFn(B, P) * j.multiplier;
7331
+ if (V !== 0)
7332
+ return V;
7326
7333
  }
7327
7334
  return 0;
7328
7335
  });
@@ -7448,7 +7455,7 @@ function uc(e) {
7448
7455
  }
7449
7456
  function dc(e) {
7450
7457
  const { rowSelection: t, getRowKey: r, data: o, visibleData: n, childrenColumnName: l, onSelectionChange: a } = e, s = $(/* @__PURE__ */ new Set()), c = $(!1), d = $(null), u = /* @__PURE__ */ new Map();
7451
- Q(
7458
+ ee(
7452
7459
  () => t()?.defaultSelectedRowKeys,
7453
7460
  (z) => {
7454
7461
  c.value || !z?.length || (s.value = new Set(z), c.value = !0);
@@ -7476,7 +7483,7 @@ function dc(e) {
7476
7483
  const z = /* @__PURE__ */ new Map();
7477
7484
  return f.value.forEach((C) => z.set(C.key, C)), z;
7478
7485
  });
7479
- Q(
7486
+ ee(
7480
7487
  [
7481
7488
  f,
7482
7489
  () => t()?.preserveSelectedRowKeys,
@@ -7493,7 +7500,7 @@ function dc(e) {
7493
7500
  z.has(C.key) && u.set(C.key, C.record);
7494
7501
  },
7495
7502
  { immediate: !0, flush: "sync" }
7496
- ), Q(
7503
+ ), ee(
7497
7504
  () => n(),
7498
7505
  () => {
7499
7506
  d.value = null;
@@ -7512,12 +7519,12 @@ function dc(e) {
7512
7519
  const z = i.value, C = /* @__PURE__ */ new Map(), R = f.value;
7513
7520
  for (let M = R.length - 1; M >= 0; M -= 1) {
7514
7521
  const L = R[M], F = [];
7515
- for (const V of L.childrenKeys) {
7516
- const K = z.get(V);
7522
+ for (const H of L.childrenKeys) {
7523
+ const K = z.get(H);
7517
7524
  if (!K || m(K.record)) continue;
7518
- F.push(V);
7519
- const X = C.get(V);
7520
- X && F.push(...X);
7525
+ F.push(H);
7526
+ const Y = C.get(H);
7527
+ Y && F.push(...Y);
7521
7528
  }
7522
7529
  C.set(L.key, F);
7523
7530
  }
@@ -7531,9 +7538,9 @@ function dc(e) {
7531
7538
  L.forEach(R);
7532
7539
  const F = i.value.get(M);
7533
7540
  if (!F || m(F.record)) return;
7534
- const V = L.map((X) => i.value.get(X)).filter((X) => !!X && !m(X.record));
7535
- if (V.length === 0) return;
7536
- V.every((X) => C.has(X.key)) ? C.add(M) : C.delete(M);
7541
+ const H = L.map((Y) => i.value.get(Y)).filter((Y) => !!Y && !m(Y.record));
7542
+ if (H.length === 0) return;
7543
+ H.every((Y) => C.has(Y.key)) ? C.add(M) : C.delete(M);
7537
7544
  };
7538
7545
  return h.value.forEach(R), C;
7539
7546
  }
@@ -7541,7 +7548,7 @@ function dc(e) {
7541
7548
  const z = t(), C = z?.selectedRowKeys !== void 0 ? new Set(z.selectedRowKeys) : s.value;
7542
7549
  return b(C);
7543
7550
  });
7544
- Q(
7551
+ ee(
7545
7552
  [f, () => t()?.preserveSelectedRowKeys],
7546
7553
  () => {
7547
7554
  if (g() || t()?.preserveSelectedRowKeys || s.value.size === 0) return;
@@ -7589,14 +7596,14 @@ function dc(e) {
7589
7596
  indeterminate: !1,
7590
7597
  disabled: L
7591
7598
  };
7592
- const V = F.filter((K) => w.value.has(K)).length;
7599
+ const H = F.filter((K) => w.value.has(K)).length;
7593
7600
  return {
7594
7601
  checked: M,
7595
- indeterminate: V > 0 && V < F.length,
7602
+ indeterminate: H > 0 && H < F.length,
7596
7603
  disabled: L
7597
7604
  };
7598
7605
  }
7599
- function H(z, C) {
7606
+ function V(z, C) {
7600
7607
  const R = b(z);
7601
7608
  if (t()?.preserveSelectedRowKeys) {
7602
7609
  if (!g())
@@ -7616,39 +7623,39 @@ function dc(e) {
7616
7623
  if (!L || m(L.record)) return;
7617
7624
  const F = C.has(z);
7618
7625
  R ? C.add(z) : C.delete(z), F !== R && M.push(L.record), v(z).forEach(
7619
- (V) => W(V, C, R, M)
7626
+ (H) => W(H, C, R, M)
7620
7627
  );
7621
7628
  }
7622
- function Y(z, C, R) {
7629
+ function X(z, C, R) {
7623
7630
  const M = t();
7624
7631
  if (!M) return;
7625
7632
  const L = r(z, C), F = !I(L);
7626
7633
  if (M.type !== "radio" && R?.shiftKey && d.value !== null && t()?.checkStrictly !== !1) {
7627
- const K = O(), X = K.findIndex((Z) => Z.key === L), ee = K.findIndex(
7634
+ const K = O(), Y = K.findIndex((Z) => Z.key === L), J = K.findIndex(
7628
7635
  (Z) => Z.key === d.value
7629
7636
  );
7630
- if (X !== -1 && ee !== -1) {
7631
- const [Z, ve] = X > ee ? [ee, X] : [X, ee], fe = new Set(w.value), se = [];
7632
- K.slice(Z, ve + 1).forEach((ge) => {
7633
- const we = fe.has(ge.key);
7634
- F ? fe.add(ge.key) : fe.delete(ge.key), we !== F && se.push(ge.record);
7635
- }), H(fe), M.onSelectMultiple?.(F, A(fe), se), d.value = L;
7637
+ if (Y !== -1 && J !== -1) {
7638
+ const [Z, ue] = Y > J ? [J, Y] : [Y, J], ve = new Set(w.value), se = [];
7639
+ K.slice(Z, ue + 1).forEach((ge) => {
7640
+ const we = ve.has(ge.key);
7641
+ F ? ve.add(ge.key) : ve.delete(ge.key), we !== F && se.push(ge.record);
7642
+ }), V(ve), M.onSelectMultiple?.(F, A(ve), se), d.value = L;
7636
7643
  return;
7637
7644
  }
7638
7645
  }
7639
7646
  if (M.type === "radio") {
7640
7647
  const K = F ? /* @__PURE__ */ new Set([L]) : /* @__PURE__ */ new Set();
7641
- H(K), M.onSelect?.(z, F, A(K)), d.value = L;
7648
+ V(K), M.onSelect?.(z, F, A(K)), d.value = L;
7642
7649
  return;
7643
7650
  }
7644
- const V = new Set(w.value);
7645
- F ? V.add(L) : V.delete(L), H(V), M.onSelect?.(z, F, A(V)), d.value = L;
7651
+ const H = new Set(w.value);
7652
+ F ? H.add(L) : H.delete(L), V(H), M.onSelect?.(z, F, A(H)), d.value = L;
7646
7653
  }
7647
7654
  function q(z, C) {
7648
7655
  const R = t();
7649
7656
  if (!R) return;
7650
7657
  const M = r(z, C), L = !I(M), F = new Set(w.value);
7651
- W(M, F, L, []), H(F), R.onSelect?.(z, L, A(F)), d.value = M;
7658
+ W(M, F, L, []), V(F), R.onSelect?.(z, L, A(F)), d.value = M;
7652
7659
  }
7653
7660
  function U(z, C, R) {
7654
7661
  if (m(z)) return;
@@ -7658,21 +7665,21 @@ function dc(e) {
7658
7665
  q(z, C);
7659
7666
  return;
7660
7667
  }
7661
- Y(z, C, R);
7668
+ X(z, C, R);
7662
7669
  }
7663
7670
  }
7664
7671
  function x(z, C = !1) {
7665
7672
  const R = t();
7666
7673
  if (!R) return;
7667
7674
  const M = P(C), L = new Set(w.value), F = [];
7668
- M.forEach((V) => {
7675
+ M.forEach((H) => {
7669
7676
  if (R.checkStrictly === !1) {
7670
- W(V.key, L, z, F);
7677
+ W(H.key, L, z, F);
7671
7678
  return;
7672
7679
  }
7673
- const K = L.has(V.key);
7674
- z ? L.add(V.key) : L.delete(V.key), K !== z && F.push(V.record);
7675
- }), H(L), R.onSelectAll?.(z, A(L), F);
7680
+ const K = L.has(H.key);
7681
+ z ? L.add(H.key) : L.delete(H.key), K !== z && F.push(H.record);
7682
+ }), V(L), R.onSelectAll?.(z, A(L), F);
7676
7683
  }
7677
7684
  const T = k(() => {
7678
7685
  const z = P();
@@ -7686,11 +7693,11 @@ function dc(e) {
7686
7693
  const C = O(), R = new Set(w.value);
7687
7694
  C.forEach((M) => {
7688
7695
  R.has(M.key) ? R.delete(M.key) : R.add(M.key);
7689
- }), H(R), z.onSelectInvert?.(Array.from(b(R)));
7696
+ }), V(R), z.onSelectInvert?.(Array.from(b(R)));
7690
7697
  }
7691
7698
  function D() {
7692
7699
  const z = t();
7693
- z && (H(/* @__PURE__ */ new Set()), z.onSelectNone?.());
7700
+ z && (V(/* @__PURE__ */ new Set()), z.onSelectNone?.());
7694
7701
  }
7695
7702
  function N() {
7696
7703
  return O().map((z) => z.key);
@@ -7814,7 +7821,7 @@ function pc(e) {
7814
7821
  const u = r.value;
7815
7822
  u && a(u.scrollLeft, u.scrollWidth - u.clientWidth);
7816
7823
  }
7817
- Q(r, () => {
7824
+ ee(r, () => {
7818
7825
  Ze(c);
7819
7826
  });
7820
7827
  const d = k(() => {
@@ -7916,7 +7923,7 @@ function xc(e) {
7916
7923
  }
7917
7924
  return g(d), u;
7918
7925
  }
7919
- Q(
7926
+ ee(
7920
7927
  () => e.expandable(),
7921
7928
  (d) => {
7922
7929
  r || !d || (r = !0, d.defaultExpandAllRows ? (t.value = e.initializeNewRows?.() ? n(e.data()) : e.data().map((u, g) => e.getRowKey(u, g)), t.value.forEach((u) => o.add(u))) : d.defaultExpandedRowKeys && (t.value = [...d.defaultExpandedRowKeys]));
@@ -7924,7 +7931,7 @@ function xc(e) {
7924
7931
  { immediate: !0 }
7925
7932
  );
7926
7933
  const l = k(() => e.expandable()?.expandedRowKeys !== void 0);
7927
- Q(
7934
+ ee(
7928
7935
  () => e.initializeNewRows?.() && e.expandable()?.defaultExpandAllRows ? e.data() : null,
7929
7936
  (d) => {
7930
7937
  if (!d || l.value) return;
@@ -7998,7 +8005,7 @@ function Sc(e) {
7998
8005
  const I = ke(y) ?? String(b);
7999
8006
  n = String(I), l = w.clientX, a = wc(w) ?? Ae(t[n]) ?? vt(y.width) ?? Math.max(Ae(y.minWidth) ?? 50, 100), s = !1, c = document.body.style.cursor, d = document.body.style.userSelect, r.value = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("pointermove", i), document.addEventListener("pointerup", h), document.addEventListener("pointercancel", m);
8000
8007
  }
8001
- return e.columns && Q(
8008
+ return e.columns && ee(
8002
8009
  () => e.columns().map((y, b) => ({
8003
8010
  column: y,
8004
8011
  key: String(ke(y) ?? b),
@@ -8260,7 +8267,7 @@ function Ac(e) {
8260
8267
  const u = e.enabled() && e.hasHeader() ? e.headerEl() : null, g = u?.querySelector("table") ?? null;
8261
8268
  u === n && g === l || (o && n && o.unobserve(n), o && l && o.unobserve(l), n = u, l = g, u && (!o && typeof ResizeObserver < "u" && (o = new ResizeObserver(c)), o?.observe(u), g && o?.observe(g)));
8262
8269
  }
8263
- return Q(
8270
+ return ee(
8264
8271
  [
8265
8272
  () => e.enabled(),
8266
8273
  () => e.hasHeader(),
@@ -8338,7 +8345,7 @@ function nt(e, t) {
8338
8345
  function jc(e) {
8339
8346
  const t = k(() => !!e.pagination()), r = k(() => e.pagination() || {}), o = $(1), n = $(10);
8340
8347
  let l = !1;
8341
- Q(
8348
+ ee(
8342
8349
  t,
8343
8350
  (g) => {
8344
8351
  !g || l || (l = !0, n.value = nt(r.value.defaultPageSize, 10), o.value = nt(r.value.defaultCurrent, 1));
@@ -8352,7 +8359,7 @@ function jc(e) {
8352
8359
  Math.max(1, Math.ceil(i / f))
8353
8360
  ), pageSize: f, total: i };
8354
8361
  });
8355
- Q(
8362
+ ee(
8356
8363
  () => a.value.current,
8357
8364
  (g) => {
8358
8365
  t.value && r.value.current === void 0 && (o.value = g);
@@ -8365,7 +8372,7 @@ function jc(e) {
8365
8372
  const { current: f, pageSize: i, total: h } = a.value;
8366
8373
  return g.length < h && g.length <= i ? g : g.slice((f - 1) * i, f * i);
8367
8374
  });
8368
- Q(
8375
+ ee(
8369
8376
  () => [t.value, e.data().length, a.value.total, a.value.pageSize],
8370
8377
  ([g, f, i, h]) => {
8371
8378
  g && !e.manual?.() && f < i && f > h;
@@ -8688,10 +8695,10 @@ const Cr = /* @__PURE__ */ le({
8688
8695
  const u = d.getBoundingClientRect(), g = n.value, f = typeof g != "string" && g !== document.body ? g : void 0, i = f?.getBoundingClientRect(), h = f ? getComputedStyle(f) : void 0, m = /^(auto|scroll|hidden|clip|overlay)$/, v = m.test(h?.overflowX ?? ""), y = m.test(h?.overflowY ?? ""), b = e.clipToAnchorAncestors ? Qc(d) : void 0, w = y && f && i ? {
8689
8696
  top: Math.max(i.top + f.clientTop, b?.top ?? 0),
8690
8697
  bottom: Math.min(i.top + f.clientTop + f.clientHeight, b?.bottom ?? window.innerHeight)
8691
- } : b, I = (i?.left ?? 0) + (f?.clientLeft ?? 0), A = v ? Math.max(0, I) : 0, E = v && f ? Math.min(window.innerWidth, I + f.clientWidth) : window.innerWidth, O = Math.max(0, E - A), B = a.value?.offsetWidth ?? 0, P = e.matchTriggerWidth ? u.width : 0, j = Math.max(B, P, e.alignmentWidth), H = e.align === "end" || u.left + j > E, W = e.align === "end" && !f ? Math.min(8, O / 2) : 0, Y = Math.max(0, O - 2 * W), q = Math.min(Y, Math.max(B, P)), U = H ? u.right - q : u.left, x = a.value ? a.value.scrollHeight + a.value.offsetHeight - a.value.clientHeight : void 0, T = eu(u, g, j, x, w);
8698
+ } : b, I = (i?.left ?? 0) + (f?.clientLeft ?? 0), A = v ? Math.max(0, I) : 0, E = v && f ? Math.min(window.innerWidth, I + f.clientWidth) : window.innerWidth, O = Math.max(0, E - A), B = a.value?.offsetWidth ?? 0, P = e.matchTriggerWidth ? u.width : 0, j = Math.max(B, P, e.alignmentWidth), V = e.align === "end" || u.left + j > E, W = e.align === "end" && !f ? Math.min(8, O / 2) : 0, X = Math.max(0, O - 2 * W), q = Math.min(X, Math.max(B, P)), U = V ? u.right - q : u.left, x = a.value ? a.value.scrollHeight + a.value.offsetHeight - a.value.clientHeight : void 0, T = eu(u, g, j, x, w);
8692
8699
  delete T.right;
8693
8700
  const S = Math.max(A + W, Math.min(U, E - W - q));
8694
- T.left = `${S - I + (f?.scrollLeft ?? 0)}px`, f && (T.top = `${parseFloat(T.top) - f.clientTop}px`), T.maxWidth = `${Y}px`, e.matchTriggerWidth && (T.minWidth = `${Math.min(P, Y)}px`), e.zIndex && (T.zIndex = e.zIndex), l.value = T;
8701
+ T.left = `${S - I + (f?.scrollLeft ?? 0)}px`, f && (T.top = `${parseFloat(T.top) - f.clientTop}px`), T.maxWidth = `${X}px`, e.matchTriggerWidth && (T.minWidth = `${Math.min(P, X)}px`), e.zIndex && (T.zIndex = e.zIndex), l.value = T;
8695
8702
  }
8696
8703
  function c(d) {
8697
8704
  if (!e.open || d.key !== "Escape" || d.defaultPrevented) return;
@@ -8699,11 +8706,11 @@ const Cr = /* @__PURE__ */ le({
8699
8706
  preventScroll: !0
8700
8707
  });
8701
8708
  }
8702
- return Q(a, (d, u, g) => {
8709
+ return ee(a, (d, u, g) => {
8703
8710
  e.panelRef?.(d), d?.addEventListener("keydown", c), g(() => d?.removeEventListener("keydown", c));
8704
8711
  }, {
8705
8712
  flush: "sync"
8706
- }), Q(() => [e.open, e.anchor, e.getPopupContainer, e.panelKey], async ([d, u, g], f, i) => {
8713
+ }), ee(() => [e.open, e.anchor, e.getPopupContainer, e.panelKey], async ([d, u, g], f, i) => {
8707
8714
  if (!d || !u || typeof document > "u") return;
8708
8715
  const h = u;
8709
8716
  let m = !0, v;
@@ -8810,7 +8817,7 @@ const ru = /* @__PURE__ */ le({
8810
8817
  c.value = v.key === "Home" ? 0 : v.key === "End" ? y : (c.value + (v.key === "ArrowDown" ? 1 : y)) % d.value.length, g();
8811
8818
  }
8812
8819
  }
8813
- return Q(() => e.disabled, (v) => {
8820
+ return ee(() => e.disabled, (v) => {
8814
8821
  v && u();
8815
8822
  }), () => {
8816
8823
  let v;
@@ -8977,7 +8984,7 @@ const lu = /* @__PURE__ */ le({
8977
8984
  }, {
8978
8985
  compatClasses: Zs
8979
8986
  }), f = k(() => Math.max(1, Math.ceil(e.state.total / e.state.pageSize))), i = $(""), h = $(!1), m = $(String(e.state.current));
8980
- Q(() => e.state.current, (b) => {
8987
+ ee(() => e.state.current, (b) => {
8981
8988
  m.value = String(b), i.value = "", h.value = !1;
8982
8989
  });
8983
8990
  function v(b = !1, w = 0) {
@@ -8989,12 +8996,12 @@ const lu = /* @__PURE__ */ le({
8989
8996
  i.value = "", h.value = !1, m.value = String(e.state.current);
8990
8997
  }
8991
8998
  function y(b, w, I, A) {
8992
- const E = e.config, O = w === "page", B = !!E.disabled || w === "prev" && e.state.current <= 1 || w === "next" && e.state.current >= f.value, P = e.locale, j = s.value - 2, H = (z) => {
8999
+ const E = e.config, O = w === "page", B = !!E.disabled || w === "prev" && e.state.current <= 1 || w === "next" && e.state.current >= f.value, P = e.locale, j = s.value - 2, V = (z) => {
8993
9000
  if (j === 3) return z === "prev" ? P.prev_3 : P.next_3;
8994
9001
  if (j === 5) return z === "prev" ? P.prev_5 : P.next_5;
8995
9002
  const C = z === "prev" ? "prev_pages" : "next_pages", R = Sr(o?.themePreset, o?.locale)?.pagination ?? Xr;
8996
9003
  return (P[C] ?? R[C]).replace(/\{count\}/g, String(j));
8997
- }, W = O ? `${P.page} ${b}` : w === "prev" ? P.prev_page : w === "next" ? P.next_page : H(w === "jump-prev" ? "prev" : "next"), Y = O ? b : w.startsWith("jump") ? p(Je, null, [p("span", {
9004
+ }, W = O ? `${P.page} ${b}` : w === "prev" ? P.prev_page : w === "next" ? P.next_page : V(w === "jump-prev" ? "prev" : "next"), X = O ? b : w.startsWith("jump") ? p(Je, null, [p("span", {
8998
9005
  "aria-hidden": "true",
8999
9006
  class: g.jumpEllipsis()
9000
9007
  }, [mo("•••")]), p("svg", {
@@ -9020,7 +9027,7 @@ const lu = /* @__PURE__ */ le({
9020
9027
  "aria-label": W,
9021
9028
  "aria-current": O && b === e.state.current ? "page" : void 0,
9022
9029
  class: x
9023
- }, [Y]), S = E.itemRender ? E.itemRender({
9030
+ }, [X]), S = E.itemRender ? E.itemRender({
9024
9031
  page: b,
9025
9032
  type: w,
9026
9033
  originalElement: T
@@ -9148,7 +9155,7 @@ const lu = /* @__PURE__ */ le({
9148
9155
  if (typeof M != "string") {
9149
9156
  if (!r.paginationItem)
9150
9157
  continue;
9151
- const V = r.paginationItem({
9158
+ const H = r.paginationItem({
9152
9159
  name: M.slot,
9153
9160
  current: w,
9154
9161
  pageSize: I,
@@ -9159,11 +9166,11 @@ const lu = /* @__PURE__ */ le({
9159
9166
  position: e.position,
9160
9167
  region: S
9161
9168
  });
9162
- if (!Kr(V)) continue;
9169
+ if (!Kr(H)) continue;
9163
9170
  R(), N.push(p("div", {
9164
9171
  key: `slot:${M.slot}`,
9165
9172
  class: g.extension()
9166
- }, [V]));
9173
+ }, [H]));
9167
9174
  continue;
9168
9175
  }
9169
9176
  const L = U[M]();
@@ -9456,7 +9463,7 @@ function mu(e) {
9456
9463
  for (const g of u) o?.observe(g);
9457
9464
  }
9458
9465
  }
9459
- return Q(
9466
+ return ee(
9460
9467
  [
9461
9468
  () => e.enabled(),
9462
9469
  () => e.wrapperEl(),
@@ -9528,13 +9535,13 @@ function pu(e) {
9528
9535
  function j(D) {
9529
9536
  return !!(D instanceof Element ? D : D.parentElement)?.closest("[inert]");
9530
9537
  }
9531
- function H(D) {
9538
+ function V(D) {
9532
9539
  return D instanceof Element && D.matches("img, video, iframe, object, embed, source, image");
9533
9540
  }
9534
9541
  function W(D) {
9535
- H(D.target) && !j(D.target) && T();
9542
+ V(D.target) && !j(D.target) && T();
9536
9543
  }
9537
- function Y() {
9544
+ function X() {
9538
9545
  for (const D of B)
9539
9546
  A?.removeEventListener(D, W, !0);
9540
9547
  }
@@ -9543,54 +9550,54 @@ function pu(e) {
9543
9550
  }
9544
9551
  function U(D, N, z) {
9545
9552
  const C = [...D.querySelectorAll("table[data-vtg-table]")].filter(
9546
- (V) => !V.parentElement?.closest("table[data-vtg-table]")
9553
+ (H) => !H.parentElement?.closest("table[data-vtg-table]")
9547
9554
  );
9548
9555
  if (!C.length) return null;
9549
9556
  const R = C[0].cloneNode(!1);
9550
9557
  R.removeAttribute("id"), R.style.tableLayout = "auto", R.style.width = `${z}px`, R.style.minWidth = `${f.value}px`;
9551
9558
  const M = document.createElement("colgroup");
9552
- for (let V = 0; V < u.value.length; V++) {
9553
- const K = document.createElement("col"), X = e.columns()[V], ee = u.value[V], Z = ee.resizedWidth ?? vt(X.width, z);
9554
- Z !== void 0 ? K.style.width = `${Math.max(Z, ee.effectiveMinWidth ?? 0)}px` : typeof X.width == "string" && !/content/.test(X.width) && (K.style.width = X.width), K.style.minWidth = `${g.value[V]}px`, M.append(K);
9559
+ for (let H = 0; H < u.value.length; H++) {
9560
+ const K = document.createElement("col"), Y = e.columns()[H], J = u.value[H], Z = J.resizedWidth ?? vt(Y.width, z);
9561
+ Z !== void 0 ? K.style.width = `${Math.max(Z, J.effectiveMinWidth ?? 0)}px` : typeof Y.width == "string" && !/content/.test(Y.width) && (K.style.width = Y.width), K.style.minWidth = `${g.value[H]}px`, M.append(K);
9555
9562
  }
9556
9563
  R.append(M);
9557
9564
  const L = document.createElement("tbody");
9558
9565
  L.dataset.vtgWidthRow = "";
9559
9566
  const F = L.insertRow();
9560
- g.value.forEach((V, K) => {
9561
- const X = F.insertCell();
9562
- X.dataset.vtgTrack = String(K), X.style.cssText = "padding:0;border:0;height:0;line-height:0;font-size:0";
9563
- const ee = document.createElement("div");
9564
- ee.style.cssText = `height:0;min-width:${V}px`, X.append(ee);
9567
+ g.value.forEach((H, K) => {
9568
+ const Y = F.insertCell();
9569
+ Y.dataset.vtgTrack = String(K), Y.style.cssText = "padding:0;border:0;height:0;line-height:0;font-size:0";
9570
+ const J = document.createElement("div");
9571
+ J.style.cssText = `height:0;min-width:${H}px`, Y.append(J);
9565
9572
  }), R.append(L);
9566
- for (const V of C)
9567
- for (const K of [...V.children]) {
9573
+ for (const H of C)
9574
+ for (const K of [...H.children]) {
9568
9575
  if (!["THEAD", "TBODY", "TFOOT"].includes(K.tagName) || K.hasAttribute("data-vtg-width-row"))
9569
9576
  continue;
9570
- const X = K.cloneNode(!0), ee = K.querySelectorAll("img");
9571
- X.querySelectorAll("img").forEach((Z, ve) => {
9572
- const fe = ee[ve];
9573
- if (!fe.naturalWidth || !fe.naturalHeight || Z.naturalWidth) return;
9574
- const se = getComputedStyle(fe);
9575
- /\b(?:size|inline-size|strict)\b/.test(se.contain) || (Z.style.contain = se.contain === "content" ? "strict" : `${se.contain && se.contain !== "none" ? `${se.contain} ` : ""}size`, Z.style.containIntrinsicSize = `${fe.naturalWidth}px ${fe.naturalHeight}px`, (!se.aspectRatio || /\bauto\b/.test(se.aspectRatio)) && (Z.style.aspectRatio = `auto ${fe.naturalWidth} / ${fe.naturalHeight}`));
9577
+ const Y = K.cloneNode(!0), J = K.querySelectorAll("img");
9578
+ Y.querySelectorAll("img").forEach((Z, ue) => {
9579
+ const ve = J[ue];
9580
+ if (!ve.naturalWidth || !ve.naturalHeight || Z.naturalWidth) return;
9581
+ const se = getComputedStyle(ve);
9582
+ /\b(?:size|inline-size|strict)\b/.test(se.contain) || (Z.style.contain = se.contain === "content" ? "strict" : `${se.contain && se.contain !== "none" ? `${se.contain} ` : ""}size`, Z.style.containIntrinsicSize = `${ve.naturalWidth}px ${ve.naturalHeight}px`, (!se.aspectRatio || /\bauto\b/.test(se.aspectRatio)) && (Z.style.aspectRatio = `auto ${ve.naturalWidth} / ${ve.naturalHeight}`));
9576
9583
  });
9577
- for (const Z of X.querySelectorAll("th,td")) {
9578
- const ve = Number(Z.dataset.vtgLeafCol ?? Z.dataset.vtgCol);
9579
- if (Z.style.removeProperty("width"), Z.style.removeProperty("min-width"), Z.style.removeProperty("max-width"), Z.style.removeProperty("position"), Z.style.removeProperty("left"), Z.style.removeProperty("right"), Number.isInteger(ve) && u.value[ve]) {
9580
- const fe = u.value[ve], se = e.columns()[ve], ge = fe.resizedWidth ?? vt(se.width, z);
9581
- ge !== void 0 ? Z.style.width = `${Math.max(ge, fe.effectiveMinWidth ?? 0)}px` : typeof se.width == "string" && !/content/.test(se.width) && (Z.style.width = se.width), Z.style.minWidth = `${g.value[ve]}px`;
9584
+ for (const Z of Y.querySelectorAll("th,td")) {
9585
+ const ue = Number(Z.dataset.vtgLeafCol ?? Z.dataset.vtgCol);
9586
+ if (Z.style.removeProperty("width"), Z.style.removeProperty("min-width"), Z.style.removeProperty("max-width"), Z.style.removeProperty("position"), Z.style.removeProperty("left"), Z.style.removeProperty("right"), Number.isInteger(ue) && u.value[ue]) {
9587
+ const ve = u.value[ue], se = e.columns()[ue], ge = ve.resizedWidth ?? vt(se.width, z);
9588
+ ge !== void 0 ? Z.style.width = `${Math.max(ge, ve.effectiveMinWidth ?? 0)}px` : typeof se.width == "string" && !/content/.test(se.width) && (Z.style.width = se.width), Z.style.minWidth = `${g.value[ue]}px`;
9582
9589
  }
9583
9590
  }
9584
- for (const Z of X.querySelectorAll("tr[data-vtg-virtual-row]")) {
9585
- const ve = [...Z.querySelectorAll("td[data-vtg-col]")];
9591
+ for (const Z of Y.querySelectorAll("tr[data-vtg-virtual-row]")) {
9592
+ const ue = [...Z.querySelectorAll("td[data-vtg-col]")];
9586
9593
  Z.replaceChildren(
9587
9594
  ...e.columns().map(
9588
- (fe, se) => ve.find((ge) => Number(ge.dataset.vtgCol) === se) ?? document.createElement("td")
9595
+ (ve, se) => ue.find((ge) => Number(ge.dataset.vtgCol) === se) ?? document.createElement("td")
9589
9596
  )
9590
9597
  );
9591
9598
  }
9592
- for (const Z of X.querySelectorAll("[id]")) Z.removeAttribute("id");
9593
- R.append(X);
9599
+ for (const Z of Y.querySelectorAll("[id]")) Z.removeAttribute("id");
9600
+ R.append(Y);
9594
9601
  }
9595
9602
  return N.append(R), R;
9596
9603
  }
@@ -9604,54 +9611,54 @@ function pu(e) {
9604
9611
  C && (r.value = z);
9605
9612
  let R = !1;
9606
9613
  const M = /* @__PURE__ */ new Set();
9607
- for (const K of [e.scrollX(), ...e.columns().map((X) => X.width)])
9614
+ for (const K of [e.scrollX(), ...e.columns().map((Y) => Y.width)])
9608
9615
  typeof K == "string" && K !== "auto" && vt(K, z) === void 0 && M.add(K);
9609
9616
  const L = e.layout() === "auto" && e.split() || [...M].some((K) => /content/.test(K)), F = document.createElement("div");
9610
9617
  F.inert = !0, F.setAttribute("aria-hidden", "true"), F.style.cssText = `position:absolute;visibility:hidden;pointer-events:none;overflow:hidden;height:0;width:${z}px;contain:layout style;`, D.append(F);
9611
- let V = null;
9618
+ let H = null;
9612
9619
  try {
9613
9620
  let K = function(ge, we) {
9614
9621
  if (!CSS.supports("width", ge)) return;
9615
9622
  F.style.width = `${we}px`;
9616
9623
  let Pe;
9617
9624
  if (ir(ge)) {
9618
- if (!V) return;
9619
- V.style.width = ge, Pe = V.getBoundingClientRect().width;
9625
+ if (!H) return;
9626
+ H.style.width = ge, Pe = H.getBoundingClientRect().width;
9620
9627
  } else {
9621
9628
  const Te = document.createElement("div");
9622
9629
  Te.style.width = ge, F.append(Te), Pe = Te.getBoundingClientRect().width, Te.remove();
9623
9630
  }
9624
- return X[`${we}:${ge}`] = Pe, Pe;
9631
+ return Y[`${we}:${ge}`] = Pe, Pe;
9625
9632
  };
9626
- const X = {}, ee = e.scrollX(), Z = Math.max(
9633
+ const Y = {}, J = e.scrollX(), Z = Math.max(
9627
9634
  z,
9628
- ir(ee) ? 0 : vt(ee, z, K) ?? 0
9635
+ ir(J) ? 0 : vt(J, z, K) ?? 0
9629
9636
  );
9630
- L && (V = U(D, F, Z));
9631
- const ve = vt(ee, z, K), fe = Math.max(z, ve ?? 0), se = e.columns().map((ge) => {
9637
+ L && (H = U(D, F, Z));
9638
+ const ue = vt(J, z, K), ve = Math.max(z, ue ?? 0), se = e.columns().map((ge) => {
9632
9639
  if (!ir(ge.width)) {
9633
- vt(ge.width, fe, K);
9640
+ vt(ge.width, ve, K);
9634
9641
  return;
9635
9642
  }
9636
9643
  });
9637
- if (V) {
9644
+ if (H) {
9638
9645
  const ge = new Set(
9639
9646
  e.columns().flatMap((we) => ir(we.width) ? [we.width] : [])
9640
9647
  );
9641
9648
  for (const we of ge) {
9642
- V.style.width = we;
9643
- const Pe = Rn(V, e.columns().length);
9649
+ H.style.width = we;
9650
+ const Pe = Rn(H, e.columns().length);
9644
9651
  e.columns().forEach((Te, Ne) => {
9645
9652
  Te.width === we && (se[Ne] = Pe?.widths[Ne]);
9646
9653
  });
9647
9654
  }
9648
9655
  }
9649
- if (JSON.stringify(se) !== JSON.stringify(n.value) && (n.value = se, C = !0), JSON.stringify(X) !== JSON.stringify(o.value) && (o.value = X, C = !0), e.layout() === "auto")
9656
+ if (JSON.stringify(se) !== JSON.stringify(n.value) && (n.value = se, C = !0), JSON.stringify(Y) !== JSON.stringify(o.value) && (o.value = Y, C = !0), e.layout() === "auto")
9650
9657
  if (!e.split() && C)
9651
9658
  R = !0;
9652
9659
  else {
9653
- V && (V.style.width = `${c.value}px`);
9654
- const ge = e.split() ? V : D.querySelector("table[data-vtg-table]"), we = ge ? Rn(ge, e.columns().length) : null;
9660
+ H && (H.style.width = `${c.value}px`);
9661
+ const ge = e.split() ? H : D.querySelector("table[data-vtg-table]"), we = ge ? Rn(ge, e.columns().length) : null;
9655
9662
  we && !q(a.value, we) && (a.value = we);
9656
9663
  }
9657
9664
  R || (s.value = Math.max(h.value?.total ?? 0, N.scrollWidth) > z + 1);
@@ -9669,14 +9676,14 @@ function pu(e) {
9669
9676
  }
9670
9677
  function S() {
9671
9678
  const D = t.value ? e.root() : null, N = t.value ? e.viewport() ?? D : null;
9672
- if (!(D === A && N === E) && (w?.disconnect(), I?.disconnect(), Y(), A = D, E = N, !!D)) {
9679
+ if (!(D === A && N === E) && (w?.disconnect(), I?.disconnect(), X(), A = D, E = N, !!D)) {
9673
9680
  w ??= typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(T), w?.observe(D), N && N !== D && w?.observe(N);
9674
9681
  for (const z of B) D.addEventListener(z, W, !0);
9675
9682
  I ??= new MutationObserver((z) => {
9676
9683
  z.some((C) => {
9677
9684
  if (j(C.target)) return !1;
9678
9685
  if (C.type === "attributes")
9679
- return H(C.target) && P.includes(C.attributeName ?? "");
9686
+ return V(C.target) && P.includes(C.attributeName ?? "");
9680
9687
  const R = [...C.addedNodes, ...C.removedNodes];
9681
9688
  return !R.length || R.some((M) => !j(M));
9682
9689
  }) && T();
@@ -9689,7 +9696,7 @@ function pu(e) {
9689
9696
  });
9690
9697
  }
9691
9698
  }
9692
- return Q(
9699
+ return ee(
9693
9700
  () => [
9694
9701
  e.columns().map((D) => [D.key, D.width, D.minWidth, D.maxWidth]),
9695
9702
  { ...e.columnWidths },
@@ -9701,7 +9708,7 @@ function pu(e) {
9701
9708
  a.value = null, t.value || (s.value = !1, o.value = {}, n.value = []), S(), T();
9702
9709
  },
9703
9710
  { deep: !0, flush: "post" }
9704
- ), Q(
9711
+ ), ee(
9705
9712
  () => e.columns().map((D) => [D.key, D.minWidth, D.maxWidth]),
9706
9713
  () => {
9707
9714
  for (const D of e.columns()) {
@@ -9715,7 +9722,7 @@ function pu(e) {
9715
9722
  }), Va(() => {
9716
9723
  S(), T();
9717
9724
  }), We(() => {
9718
- O = !0, b && cancelAnimationFrame(b), w?.disconnect(), I?.disconnect(), Y();
9725
+ O = !0, b && cancelAnimationFrame(b), w?.disconnect(), I?.disconnect(), X();
9719
9726
  }), {
9720
9727
  enabled: t,
9721
9728
  minimums: g,
@@ -9776,7 +9783,7 @@ function wu(e) {
9776
9783
  const t = k(() => e.childrenColumnName?.() ?? "children"), r = k(() => e.indentSize?.() ?? 15), o = (h) => e.hasChildren?.(h) ?? (Array.isArray(h[t.value]) && h[t.value].length > 0), n = k(() => e.data().some(o)), l = $(/* @__PURE__ */ new Set()), a = /* @__PURE__ */ new Set();
9777
9784
  let s = !1;
9778
9785
  const c = k(() => e.expandedRowKeys?.() !== void 0);
9779
- Q(
9786
+ ee(
9780
9787
  [
9781
9788
  () => e.data(),
9782
9789
  () => e.defaultExpandAllRows?.(),
@@ -9833,14 +9840,14 @@ function wu(e) {
9833
9840
  const m = t.value, v = [], y = d.value;
9834
9841
  function b(w, I, A) {
9835
9842
  w.forEach((E, O) => {
9836
- const B = E[m], P = o(E), j = e.getRowKey(E, v.length), H = P && y.has(j);
9843
+ const B = E[m], P = o(E), j = e.getRowKey(E, v.length), V = P && y.has(j);
9837
9844
  v.push({
9838
9845
  record: E,
9839
9846
  level: I,
9840
- expanded: H,
9847
+ expanded: V,
9841
9848
  hasChildren: P,
9842
9849
  parentKey: A
9843
- }), H && B && b(B, I + 1, j);
9850
+ }), V && B && b(B, I + 1, j);
9844
9851
  });
9845
9852
  }
9846
9853
  return b(h, 0), v;
@@ -9881,7 +9888,7 @@ function Su(e) {
9881
9888
  v && (y?.controller.abort(), y?.resolve(!1)), n.delete(m), o.value = new Set([...o.value].filter((b) => b !== m));
9882
9889
  }
9883
9890
  let u = c.value;
9884
- Q(
9891
+ ee(
9885
9892
  c,
9886
9893
  (m) => {
9887
9894
  const v = new Map(t.value);
@@ -9957,7 +9964,7 @@ function Su(e) {
9957
9964
  });
9958
9965
  return E.promise = Promise.race([B, A]), E.promise;
9959
9966
  }
9960
- return Q(
9967
+ return ee(
9961
9968
  [e.loadData, s],
9962
9969
  () => {
9963
9970
  for (const m of n.keys()) d(m);
@@ -10039,7 +10046,7 @@ function ku(e, t, r, o = ie(null), n = ie(null)) {
10039
10046
  s = requestAnimationFrame(d);
10040
10047
  }
10041
10048
  }
10042
- return Q(
10049
+ return ee(
10043
10050
  [e, t, r, o, n],
10044
10051
  ([f, i, h, m, v]) => {
10045
10052
  u(), a?.disconnect(), a = void 0, d(), !(!f || !i || !h || typeof ResizeObserver > "u") && (a = new ResizeObserver(g), a.observe(i), a.observe(h), m && a.observe(m), v && a.observe(v));
@@ -10205,7 +10212,7 @@ const Ru = /* @__PURE__ */ le({
10205
10212
  function i(x) {
10206
10213
  x.style.cssText = "";
10207
10214
  }
10208
- Q(() => e.selectedKeys, (x) => {
10215
+ ee(() => e.selectedKeys, (x) => {
10209
10216
  o.value = [...x];
10210
10217
  });
10211
10218
  function h(x, T) {
@@ -10242,16 +10249,16 @@ const Ru = /* @__PURE__ */ le({
10242
10249
  function B() {
10243
10250
  o.value = [], t("reset");
10244
10251
  }
10245
- const P = k(() => e.filterMode === "tree" && e.multiple), j = k(() => P.value ? Fr(v.value) : []), H = k(() => {
10252
+ const P = k(() => e.filterMode === "tree" && e.multiple), j = k(() => P.value ? Fr(v.value) : []), V = k(() => {
10246
10253
  const x = j.value.length;
10247
10254
  if (x === 0) return "none";
10248
10255
  const T = j.value.filter((S) => o.value.includes(S)).length;
10249
10256
  return T === 0 ? "none" : T === x ? "all" : "partial";
10250
10257
  });
10251
10258
  function W() {
10252
- H.value === "all" ? o.value = [] : o.value = [...j.value];
10259
+ V.value === "all" ? o.value = [] : o.value = [...j.value];
10253
10260
  }
10254
- function Y(x, T) {
10261
+ function X(x, T) {
10255
10262
  return e.multiple ? p(xo, {
10256
10263
  checked: x,
10257
10264
  indeterminate: T
@@ -10263,19 +10270,19 @@ const Ru = /* @__PURE__ */ le({
10263
10270
  const S = A(x.value), D = !!x.children?.length, N = s(x.value), z = !e.multiple && y.value, C = e.filterMode === "tree" && n.value.trim().length > 0 && h(x, n.value);
10264
10271
  let R = !1;
10265
10272
  if (P.value && D) {
10266
- const ee = Fr(x.children).some((Z) => o.value.includes(Z));
10267
- R = !S && ee;
10273
+ const J = Fr(x.children).some((Z) => o.value.includes(Z));
10274
+ R = !S && J;
10268
10275
  }
10269
10276
  const M = () => D ? p("span", {
10270
10277
  class: [r.subThemeSlots?.filterDropdownSwitcher(), N ? r.subThemeSlots?.filterDropdownSwitcherExpanded() : r.subThemeSlots?.filterDropdownSwitcherCollapsed()],
10271
- onClick: (X) => {
10272
- X.stopPropagation(), a(x.value);
10278
+ onClick: (Y) => {
10279
+ Y.stopPropagation(), a(x.value);
10273
10280
  },
10274
10281
  "aria-label": N ? "Collapse" : "Expand"
10275
10282
  }, [p(Hl, null, null)]) : p("span", {
10276
10283
  class: [r.subThemeSlots?.filterDropdownSwitcher(), r.subThemeSlots?.filterDropdownSwitcherNoop()],
10277
10284
  "aria-hidden": "true"
10278
- }, null), L = e.filterMode === "tree", F = L ? r.subThemeSlots?.filterDropdownTreeItem() : r.subThemeSlots?.filterDropdownItem(), V = L ? r.subThemeSlots?.filterDropdownTreeContentWrapper() : r.subThemeSlots?.filterDropdownContentWrapper(), K = L ? {
10285
+ }, null), L = e.filterMode === "tree", F = L ? r.subThemeSlots?.filterDropdownTreeItem() : r.subThemeSlots?.filterDropdownItem(), H = L ? r.subThemeSlots?.filterDropdownTreeContentWrapper() : r.subThemeSlots?.filterDropdownContentWrapper(), K = L ? {
10279
10286
  paddingLeft: `calc(var(--vtg-table-filter-tree-indent-size, 24px) * ${T})`
10280
10287
  } : void 0;
10281
10288
  return L ? p("li", {
@@ -10285,8 +10292,8 @@ const Ru = /* @__PURE__ */ le({
10285
10292
  onClick: () => E(x.value, x)
10286
10293
  }, [p(M, null, null), p("span", {
10287
10294
  class: r.vtgClass?.("mt-1 mr-2 shrink-0")
10288
- }, [Y(S, R)]), p("div", {
10289
- class: [V, S ? r.subThemeSlots?.filterDropdownTreeItemSelected() : r.subThemeSlots?.filterDropdownItemHover()]
10295
+ }, [X(S, R)]), p("div", {
10296
+ class: [H, S ? r.subThemeSlots?.filterDropdownTreeItemSelected() : r.subThemeSlots?.filterDropdownItemHover()]
10290
10297
  }, [p("span", {
10291
10298
  class: [r.vtgClass?.("text-[color:var(--color-on-surface)]"), C && r.subThemeSlots?.filterDropdownTreeItemMatched()]
10292
10299
  }, [x.text])])]) : p("li", {
@@ -10295,9 +10302,9 @@ const Ru = /* @__PURE__ */ le({
10295
10302
  "aria-checked": z ? S : void 0,
10296
10303
  class: [F, !e.multiple && y.value && r.vtgClass?.("gap-0")]
10297
10304
  }, [p("div", {
10298
- class: [V, S ? !e.multiple && r.subThemeSlots?.filterDropdownItemSelectedSingle?.() || r.subThemeSlots?.filterDropdownItemSelected() : r.subThemeSlots?.filterDropdownItemHover()],
10305
+ class: [H, S ? !e.multiple && r.subThemeSlots?.filterDropdownItemSelectedSingle?.() || r.subThemeSlots?.filterDropdownItemSelected() : r.subThemeSlots?.filterDropdownItemHover()],
10299
10306
  onClick: () => E(x.value, x)
10300
- }, [Y(S, R), p("span", {
10307
+ }, [X(S, R), p("span", {
10301
10308
  class: r.vtgClass?.("text-[color:var(--color-on-surface)]")
10302
10309
  }, [x.text])])]);
10303
10310
  }
@@ -10355,10 +10362,10 @@ const Ru = /* @__PURE__ */ le({
10355
10362
  }, [p("span", {
10356
10363
  class: r.vtgClass?.("mt-1 mr-2 shrink-0")
10357
10364
  }, [p(xo, {
10358
- checked: H.value === "all",
10359
- indeterminate: H.value === "partial"
10365
+ checked: V.value === "all",
10366
+ indeterminate: V.value === "partial"
10360
10367
  }, null)]), p("div", {
10361
- class: [S, H.value === "all" ? r.subThemeSlots?.filterDropdownTreeItemSelected() : r.subThemeSlots?.filterDropdownItemHover()]
10368
+ class: [S, V.value === "all" ? r.subThemeSlots?.filterDropdownTreeItemSelected() : r.subThemeSlots?.filterDropdownItemHover()]
10362
10369
  }, [p("span", {
10363
10370
  class: r.vtgClass?.("text-[color:var(--color-on-surface)]")
10364
10371
  }, [b.value?.selectAllText ?? "全选"])])]), p(Hr, {
@@ -10569,35 +10576,35 @@ const Mu = /* @__PURE__ */ le({
10569
10576
  setup(e) {
10570
10577
  const t = be(De, {}), r = k(() => e.cell.isLeaf ? e.cell.column : null), o = k(() => e.cell.leafIndex >= 0 ? String(e.cell.leafIndex) : void 0), n = k(() => e.cell.column.customHeaderCell?.(e.cell.column, e.index, r.value ?? void 0)), l = k(() => fr(n.value, "colSpan") ?? e.cell.colSpan), a = k(() => e.cell.rowSpan), s = k(() => {
10571
10578
  const {
10572
- onClick: J,
10579
+ onClick: Q,
10573
10580
  ...he
10574
10581
  } = jr(n.value);
10575
10582
  return he;
10576
10583
  }), c = k(() => r.value?.sorter ? t.getSortOrder?.(r.value) ?? null : null), d = k(() => !!r.value?.sorter), u = k(() => r.value?.showSorterTooltip ?? t.showSorterTooltip?.value ?? !0), g = k(() => !r.value || !d.value ? !1 : u.value !== !1), f = k(() => {
10577
- const J = r.value;
10578
- return J ? co(J).length > 0 || !!J.customFilterDropdown || !!J.filterDropdown : !1;
10584
+ const Q = r.value;
10585
+ return Q ? co(Q).length > 0 || !!Q.customFilterDropdown || !!Q.filterDropdown : !1;
10579
10586
  }), i = $(null), h = $(null), m = $(null), v = k(() => m.value?.$el ?? null), y = k(() => e.cell.column.align === "center" && (d.value || f.value) && t.presetConfig?.value.headerTitleCenter === "cell"), b = k(() => !r.value || !f.value ? [] : t.getFilteredValue?.(r.value) ?? []), w = k(() => {
10580
- const J = r.value;
10581
- return J ? J.filtered !== void 0 ? J.filtered : b.value.length > 0 : !1;
10587
+ const Q = r.value;
10588
+ return Q ? Q.filtered !== void 0 ? Q.filtered : b.value.length > 0 : !1;
10582
10589
  }), I = k(() => r.value?.filterDropdownOpen !== void 0), A = $(!1), E = k(() => I.value ? r.value?.filterDropdownOpen ?? !1 : A.value);
10583
- function O(J) {
10584
- I.value || (A.value = J), r.value?.onFilterDropdownOpenChange?.(J);
10590
+ function O(Q) {
10591
+ I.value || (A.value = Q), r.value?.onFilterDropdownOpenChange?.(Q);
10585
10592
  }
10586
10593
  const B = $(null), P = ku(y, i, h, B, v);
10587
10594
  function j() {
10588
10595
  O(!E.value);
10589
10596
  }
10590
- function H(J) {
10591
- J.key !== "Enter" && J.key !== " " || (J.preventDefault(), J.stopPropagation(), j());
10597
+ function V(Q) {
10598
+ Q.key !== "Enter" && Q.key !== " " || (Q.preventDefault(), Q.stopPropagation(), j());
10592
10599
  }
10593
- const W = $([]), Y = $(null);
10594
- Q(() => b.value, (J) => {
10595
- W.value = [...J];
10600
+ const W = $([]), X = $(null);
10601
+ ee(() => b.value, (Q) => {
10602
+ W.value = [...Q];
10596
10603
  }, {
10597
10604
  immediate: !0
10598
10605
  });
10599
- function q(J, he = !0) {
10600
- r.value && (t.confirmFilter?.(r.value, J), he && O(!1));
10606
+ function q(Q, he = !0) {
10607
+ r.value && (t.confirmFilter?.(r.value, Q), he && O(!1));
10601
10608
  }
10602
10609
  function U() {
10603
10610
  r.value && (t.resetFilter?.(r.value), O(!1));
@@ -10606,13 +10613,13 @@ const Mu = /* @__PURE__ */ le({
10606
10613
  O(!1);
10607
10614
  }
10608
10615
  const T = k(() => {
10609
- const J = e.cell.leafColumns;
10610
- if (!J.length) return null;
10611
- const he = J[0], Me = J[J.length - 1], Oe = ke(he) ?? e.cell.colStart, ye = ke(Me) ?? e.cell.colEnd, He = t.fixedOffsets?.value?.get(Oe), rt = t.fixedOffsets?.value?.get(ye);
10612
- return J.every((et) => et.fixed === "left") && He?.left !== void 0 ? {
10616
+ const Q = e.cell.leafColumns;
10617
+ if (!Q.length) return null;
10618
+ const he = Q[0], Me = Q[Q.length - 1], Oe = ke(he) ?? e.cell.colStart, ye = ke(Me) ?? e.cell.colEnd, He = t.fixedOffsets?.value?.get(Oe), rt = t.fixedOffsets?.value?.get(ye);
10619
+ return Q.every((et) => et.fixed === "left") && He?.left !== void 0 ? {
10613
10620
  left: He.left,
10614
10621
  isLastLeft: rt?.isLastLeft
10615
- } : J.every((et) => et.fixed === "right") && rt?.right !== void 0 ? {
10622
+ } : Q.every((et) => et.fixed === "right") && rt?.right !== void 0 ? {
10616
10623
  right: rt.right,
10617
10624
  isFirstRight: He?.isFirstRight
10618
10625
  } : null;
@@ -10622,49 +10629,49 @@ const Mu = /* @__PURE__ */ le({
10622
10629
  } = Oo({
10623
10630
  fixedInfo: () => T.value
10624
10631
  }), N = k(() => {
10625
- const J = t.themePreset?.value === "antdv", he = t.bordered?.value ?? !1;
10626
- return !J || he || e.cell.isLeaf ? "" : t.vtgClass?.("before:hidden border-b-0") ?? "";
10632
+ const Q = t.themePreset?.value === "antdv", he = t.bordered?.value ?? !1;
10633
+ return !Q || he || e.cell.isLeaf ? "" : t.vtgClass?.("before:hidden border-b-0") ?? "";
10627
10634
  }), z = k(() => {
10628
- const J = t.leafColumnCount?.value ?? 0;
10629
- return J > 0 && e.cell.colEnd < J - 1 ? t.bordered?.value ?? !1 ? t.vtgClass?.("last:border-r last:border-[color:var(--vtg-table-border-color)]") ?? "" : t.vtgClass?.("last:before:bg-[color:var(--vtg-table-header-split-color)]") ?? "" : "";
10635
+ const Q = t.leafColumnCount?.value ?? 0;
10636
+ return Q > 0 && e.cell.colEnd < Q - 1 ? t.bordered?.value ?? !1 ? t.vtgClass?.("last:border-r last:border-[color:var(--vtg-table-border-color)]") ?? "" : t.vtgClass?.("last:before:bg-[color:var(--vtg-table-header-split-color)]") ?? "" : "";
10630
10637
  }), C = k(() => t.getColumnTitle?.(e.cell.column) ?? e.cell.column.title ?? ""), R = k(() => {
10631
10638
  if (!e.cell.isLeaf) return !1;
10632
- const J = r.value;
10633
- return !J || !qr(J).enabled ? !1 : t.headerEllipsis?.value === !0;
10639
+ const Q = r.value;
10640
+ return !Q || !qr(Q).enabled ? !1 : t.headerEllipsis?.value === !0;
10634
10641
  }), M = k(() => {
10635
10642
  if (t.headerCell) {
10636
- const J = t.headerCell({
10643
+ const Q = t.headerCell({
10637
10644
  title: C.value,
10638
10645
  column: e.cell.column,
10639
10646
  index: e.index
10640
10647
  });
10641
- if (Lo(J) !== null)
10642
- return J;
10648
+ if (Lo(Q) !== null)
10649
+ return Q;
10643
10650
  }
10644
10651
  return C.value;
10645
10652
  }), L = k(() => {
10646
- const J = e.cell.column.align ? t.vtgClass?.(Ao[e.cell.column.align]) ?? "" : "", he = d.value ? t.subThemeSlots?.thSortable() : "", Me = c.value ? t.subThemeSlots?.thSorted() : "", Oe = r.value?.key === "__vtg_expand__";
10647
- return me(e.thClass, J, he, Me, N.value, e.cell.column.className, Oe ? t.vtgClass?.("before:hidden") : "", n.value?.class, n.value?.className, D.value, z.value, Oe ? t.compatClass?.("row-expand-icon-cell") : "", R.value ? t.compatClass?.("cell-ellipsis") : "");
10653
+ const Q = e.cell.column.align ? t.vtgClass?.(Ao[e.cell.column.align]) ?? "" : "", he = d.value ? t.subThemeSlots?.thSortable() : "", Me = c.value ? t.subThemeSlots?.thSorted() : "", Oe = r.value?.key === "__vtg_expand__";
10654
+ return me(e.thClass, Q, he, Me, N.value, e.cell.column.className, Oe ? t.vtgClass?.("before:hidden") : "", n.value?.class, n.value?.className, D.value, z.value, Oe ? t.compatClass?.("row-expand-icon-cell") : "", R.value ? t.compatClass?.("cell-ellipsis") : "");
10648
10655
  }), F = k(() => {
10649
- const J = {};
10656
+ const Q = {};
10650
10657
  if (r.value) {
10651
10658
  const ye = t.columnWidths?.[String(ke(r.value) ?? e.cell.leafIndex)] ?? r.value.width;
10652
- ye && (J.width = typeof ye == "number" ? `${ye}px` : ye);
10659
+ ye && (Q.width = typeof ye == "number" ? `${ye}px` : ye);
10653
10660
  }
10654
10661
  const he = n.value?.style, Me = S.value;
10655
10662
  return {
10656
- ...J,
10663
+ ...Q,
10657
10664
  ...Me ?? {},
10658
10665
  ...he ?? {},
10659
10666
  ...r.value ? t.columnLayout?.columnStyle(e.cell.leafIndex, l.value) : {}
10660
10667
  };
10661
- }), V = $(!1), K = $(!1), X = $(null), ee = $(null);
10668
+ }), H = $(!1), K = $(!1), Y = $(null), J = $(null);
10662
10669
  let Z = null;
10663
- function ve() {
10664
- Z && clearTimeout(Z), V.value = !0;
10670
+ function ue() {
10671
+ Z && clearTimeout(Z), H.value = !0;
10665
10672
  }
10666
- function fe(J) {
10667
- J.key !== "Enter" && J.key !== " " && J.key !== "ArrowDown" || (J.preventDefault(), J.stopPropagation(), K.value = !0, V.value && ee.value?.focusFirstItem(), ve());
10673
+ function ve(Q) {
10674
+ Q.key !== "Enter" && Q.key !== " " && Q.key !== "ArrowDown" || (Q.preventDefault(), Q.stopPropagation(), K.value = !0, H.value && J.value?.focusFirstItem(), ue());
10668
10675
  }
10669
10676
  function se() {
10670
10677
  Z && clearTimeout(Z), !K.value && (Z = setTimeout(we, 100));
@@ -10673,28 +10680,28 @@ const Mu = /* @__PURE__ */ le({
10673
10680
  Z && clearTimeout(Z);
10674
10681
  }
10675
10682
  function we() {
10676
- Z && clearTimeout(Z), V.value = !1, K.value = !1;
10683
+ Z && clearTimeout(Z), H.value = !1, K.value = !1;
10677
10684
  }
10678
10685
  const Pe = $(!1);
10679
10686
  let Te;
10680
10687
  We(() => {
10681
10688
  clearTimeout(Te), ge();
10682
10689
  });
10683
- function Ne(J) {
10690
+ function Ne(Q) {
10684
10691
  clearTimeout(Te);
10685
- const he = u.value, Me = typeof he == "object" ? J ? he.mouseEnterDelay : he.mouseLeaveDelay : 0;
10692
+ const he = u.value, Me = typeof he == "object" ? Q ? he.mouseEnterDelay : he.mouseLeaveDelay : 0;
10686
10693
  Me && Me > 0 ? Te = setTimeout(() => {
10687
- Pe.value = J;
10688
- }, Me * 1e3) : Pe.value = J;
10694
+ Pe.value = Q;
10695
+ }, Me * 1e3) : Pe.value = Q;
10689
10696
  }
10690
10697
  const Ce = $(!1), te = k(() => g.value && Pe.value && !Ce.value);
10691
- function ae(J) {
10698
+ function ae(Q) {
10692
10699
  const he = s.value.onMouseenter;
10693
- typeof he == "function" && he(J), g.value && Ne(!0);
10700
+ typeof he == "function" && he(Q), g.value && Ne(!0);
10694
10701
  }
10695
- function ce(J) {
10702
+ function ce(Q) {
10696
10703
  const he = s.value.onMouseleave;
10697
- typeof he == "function" && he(J), g.value && Ne(!1);
10704
+ typeof he == "function" && he(Q), g.value && Ne(!1);
10698
10705
  }
10699
10706
  function xe() {
10700
10707
  Ce.value = !0;
@@ -10702,14 +10709,14 @@ const Mu = /* @__PURE__ */ le({
10702
10709
  function Ue() {
10703
10710
  Ce.value = !1;
10704
10711
  }
10705
- function st(J) {
10712
+ function st(Q) {
10706
10713
  const he = n.value?.onClick;
10707
- typeof he == "function" && he(J), r.value && d.value && t.toggleSortOrder?.(r.value);
10714
+ typeof he == "function" && he(Q), r.value && d.value && t.toggleSortOrder?.(r.value);
10708
10715
  }
10709
10716
  return () => {
10710
10717
  if (l.value === 0 || a.value === 0)
10711
10718
  return null;
10712
- const J = l.value !== 1 ? l.value : void 0, he = a.value !== 1 ? a.value : void 0;
10719
+ const Q = l.value !== 1 ? l.value : void 0, he = a.value !== 1 ? a.value : void 0;
10713
10720
  if (r.value?.key === "__vtg_selection__") {
10714
10721
  const pe = t.rowSelection?.(), ht = pe?.type === "radio", Rr = pe?.hideSelectAll === !0, Bt = pe?.selections !== void 0 && pe.selections !== !1, ut = t.locale?.value, dt = pe?.columnTitle, Ir = dt !== void 0, tr = me(e.thClass, t.vtgClass?.(Ir ? "text-center before:hidden" : "text-center before:hidden leading-[0]"), r.value.className, n.value?.class, n.value?.className, D.value, t.compatClass?.("selection-column")), rr = F.value;
10715
10722
  let or = [];
@@ -10741,7 +10748,7 @@ const Mu = /* @__PURE__ */ le({
10741
10748
  return p("th", ze(s.value, {
10742
10749
  class: tr,
10743
10750
  style: rr,
10744
- colspan: J,
10751
+ colspan: Q,
10745
10752
  rowspan: he,
10746
10753
  "data-vtg-leaf-col": o.value,
10747
10754
  onClick: st
@@ -10752,7 +10759,7 @@ const Mu = /* @__PURE__ */ le({
10752
10759
  return p("th", ze(s.value, {
10753
10760
  class: tr,
10754
10761
  style: rr,
10755
- colspan: J,
10762
+ colspan: Q,
10756
10763
  rowspan: he,
10757
10764
  "data-vtg-leaf-col": o.value,
10758
10765
  onClick: st
@@ -10763,22 +10770,22 @@ const Mu = /* @__PURE__ */ le({
10763
10770
  indeterminate: Dt === "partial",
10764
10771
  onChange: (ot) => t.toggleAll?.(ot)
10765
10772
  }, null), Jr, Bt && p("span", {
10766
- ref: X,
10773
+ ref: Y,
10767
10774
  class: me(t.subThemeSlots?.selectionExtra(), t.vtgClass?.("absolute left-full top-1/2 -translate-y-1/2")),
10768
- onMouseenter: ve,
10775
+ onMouseenter: ue,
10769
10776
  onMouseleave: se,
10770
- onClick: ve,
10771
- onKeydown: fe,
10777
+ onClick: ue,
10778
+ onKeydown: ve,
10772
10779
  role: "button",
10773
10780
  tabindex: 0,
10774
10781
  "aria-label": nr,
10775
10782
  "aria-haspopup": "menu",
10776
- "aria-expanded": V.value
10783
+ "aria-expanded": H.value
10777
10784
  }, [p(Wl, null, null)])]), !Rr && Bt && p(Iu, {
10778
- ref: ee,
10785
+ ref: J,
10779
10786
  items: or,
10780
- anchorElement: X.value,
10781
- visible: V.value,
10787
+ anchorElement: Y.value,
10788
+ visible: H.value,
10782
10789
  label: nr,
10783
10790
  focusOnOpen: K.value,
10784
10791
  onClose: we,
@@ -10843,7 +10850,7 @@ const Mu = /* @__PURE__ */ le({
10843
10850
  }, [jt]), Qt = {
10844
10851
  tabindex: 0,
10845
10852
  "aria-expanded": E.value,
10846
- onKeydown: H
10853
+ onKeydown: V
10847
10854
  }, Ft = ye && (ye.filterIcon ? p("span", ze({
10848
10855
  "data-align": e.cell.column.align,
10849
10856
  class: me(t.subThemeSlots?.filterIconWrapper(), t.subThemeSlots?.filterIcon(), w.value && t.compatClass && "active"),
@@ -10922,20 +10929,20 @@ const Mu = /* @__PURE__ */ le({
10922
10929
  getPopupContainer: t.getPopupContainer,
10923
10930
  filterSearch: ye.filterSearch ?? !1,
10924
10931
  filterMode: ye.filterMode ?? "menu",
10925
- expandedKeys: Y.value,
10932
+ expandedKeys: X.value,
10926
10933
  visible: E.value,
10927
10934
  onConfirm: q,
10928
10935
  onReset: U,
10929
10936
  onClose: x,
10930
10937
  "onUpdate:expandedKeys": (ht) => {
10931
- Y.value = ht;
10938
+ X.value = ht;
10932
10939
  }
10933
10940
  }, null);
10934
10941
  })();
10935
10942
  return p("th", ze(s.value, {
10936
10943
  class: L.value,
10937
10944
  style: F.value,
10938
- colspan: J,
10945
+ colspan: Q,
10939
10946
  rowspan: he,
10940
10947
  "data-vtg-leaf-col": o.value,
10941
10948
  onClick: st,
@@ -11308,7 +11315,7 @@ const Mu = /* @__PURE__ */ le({
11308
11315
  ...jr(n.value.renderCellProps),
11309
11316
  ...jr(n.value.customCellProps)
11310
11317
  })), b = k(() => {
11311
- const P = e.column.align ? t.vtgClass?.(Ao[e.column.align]) ?? "" : "", j = t.subThemeSlots, H = g.value && t.hoverable?.value, W = t.isColumnSorted?.(e.column) && j ? j.tdSorted() : "", Y = u.value && j ? me(j.tdSelected(), H ? j.tdRowSelectedHover() : "") : "", q = H && j && !u.value ? j.tdRowHover() : "";
11318
+ const P = e.column.align ? t.vtgClass?.(Ao[e.column.align]) ?? "" : "", j = t.subThemeSlots, V = g.value && t.hoverable?.value, W = t.isColumnSorted?.(e.column) && j ? j.tdSorted() : "", X = u.value && j ? me(j.tdSelected(), V ? j.tdRowSelectedHover() : "") : "", q = V && j && !u.value ? j.tdRowHover() : "";
11312
11319
  return me(
11313
11320
  e.tdClass,
11314
11321
  P,
@@ -11318,7 +11325,7 @@ const Mu = /* @__PURE__ */ le({
11318
11325
  n.value.renderCellProps?.class,
11319
11326
  n.value.renderCellProps?.className,
11320
11327
  W,
11321
- Y,
11328
+ X,
11322
11329
  q,
11323
11330
  s.value,
11324
11331
  f.value,
@@ -11326,8 +11333,8 @@ const Mu = /* @__PURE__ */ le({
11326
11333
  c.value
11327
11334
  );
11328
11335
  }), w = k(() => {
11329
- const P = {}, j = t.columnWidths?.[String(ke(e.column) ?? e.colIndex)], H = e.widthOverride ?? j ?? e.column.width;
11330
- return H && (P.width = typeof H == "number" ? `${H}px` : H), {
11336
+ const P = {}, j = t.columnWidths?.[String(ke(e.column) ?? e.colIndex)], V = e.widthOverride ?? j ?? e.column.width;
11337
+ return V && (P.width = typeof V == "number" ? `${V}px` : V), {
11331
11338
  ...P,
11332
11339
  ...a.value ?? {},
11333
11340
  ...n.value.customCellProps?.style ?? {},
@@ -11336,8 +11343,8 @@ const Mu = /* @__PURE__ */ le({
11336
11343
  };
11337
11344
  }), I = k(() => t.isTreeData?.value ? t.getFlattenRow?.(e.record) ?? null : null), A = k(() => t.isTreeData?.value ? t.treeIndentColumnIndex ? e.colIndex === t.treeIndentColumnIndex.value : e.column.key !== "__vtg_selection__" && e.column.key !== "__vtg_expand__" && e.colIndex <= 2 ? (() => {
11338
11345
  const P = t.rowSelection?.(), j = t.expandable?.();
11339
- let H = 0;
11340
- return P && (H += 1), j && j.showExpandColumn !== !1 && (H += 1), e.colIndex === H;
11346
+ let V = 0;
11347
+ return P && (V += 1), j && j.showExpandColumn !== !1 && (V += 1), e.colIndex === V;
11341
11348
  })() : !1 : !1);
11342
11349
  function E(P) {
11343
11350
  return {
@@ -11366,16 +11373,16 @@ const Mu = /* @__PURE__ */ le({
11366
11373
  checked: d.value.checked,
11367
11374
  indeterminate: d.value.indeterminate,
11368
11375
  disabled: d.value.disabled,
11369
- onChange: (K, X) => t.toggleRow?.(e.record, e.rowIndex, X)
11376
+ onChange: (K, Y) => t.toggleRow?.(e.record, e.rowIndex, Y)
11370
11377
  }, null);
11371
11378
  let R = C, M;
11372
11379
  if (N?.renderCell) {
11373
11380
  const K = N.renderCell(d.value.checked, e.record, e.rowIndex, C);
11374
11381
  Fo(K) ? (R = K.children, M = K.props) : R = K;
11375
11382
  }
11376
- const L = !!N?.renderCell, F = g.value && t.hoverable?.value, V = me(e.tdClass, t.vtgClass?.(L ? "text-center" : "text-center leading-[0]"), e.column.className, M?.class, M?.className, u.value && t.subThemeSlots ? me(t.subThemeSlots.tdSelected(), F ? t.subThemeSlots.tdRowSelectedHover() : "") : F && t.subThemeSlots ? t.subThemeSlots.tdRowHover() : "", s.value, f.value, t.compatClass?.("selection-column"));
11383
+ const L = !!N?.renderCell, F = g.value && t.hoverable?.value, H = me(e.tdClass, t.vtgClass?.(L ? "text-center" : "text-center leading-[0]"), e.column.className, M?.class, M?.className, u.value && t.subThemeSlots ? me(t.subThemeSlots.tdSelected(), F ? t.subThemeSlots.tdRowSelectedHover() : "") : F && t.subThemeSlots ? t.subThemeSlots.tdRowHover() : "", s.value, f.value, t.compatClass?.("selection-column"));
11377
11384
  return p("td", ze(jr(M), {
11378
- class: V,
11385
+ class: H,
11379
11386
  style: E(M?.style),
11380
11387
  "data-vtg-col": e.colIndex,
11381
11388
  colspan: P,
@@ -11385,9 +11392,9 @@ const Mu = /* @__PURE__ */ le({
11385
11392
  }), [R]);
11386
11393
  }
11387
11394
  if (e.column.key === "__vtg_expand__") {
11388
- const N = t.expandable?.(), z = t.getRowKey?.(e.record, e.rowIndex), C = z !== void 0 && (t.isExpanded?.(z) ?? !1), R = t.isRowExpandable?.(e.record) ?? !1, M = t.subThemeSlots, L = g.value && t.hoverable?.value, F = t.isColumnSorted?.(e.column) && M ? M.tdSorted() : "", V = u.value && M ? me(M.tdSelected(), L ? M.tdRowSelectedHover() : "") : "", K = L && M && !u.value ? M.tdRowHover() : "", X = me(e.tdClass, t.vtgClass?.("text-center"), e.column.className, F, V, K, s.value, f.value, t.compatClass?.("row-expand-icon-cell"));
11395
+ const N = t.expandable?.(), z = t.getRowKey?.(e.record, e.rowIndex), C = z !== void 0 && (t.isExpanded?.(z) ?? !1), R = t.isRowExpandable?.(e.record) ?? !1, M = t.subThemeSlots, L = g.value && t.hoverable?.value, F = t.isColumnSorted?.(e.column) && M ? M.tdSorted() : "", H = u.value && M ? me(M.tdSelected(), L ? M.tdRowSelectedHover() : "") : "", K = L && M && !u.value ? M.tdRowHover() : "", Y = me(e.tdClass, t.vtgClass?.("text-center"), e.column.className, F, H, K, s.value, f.value, t.compatClass?.("row-expand-icon-cell"));
11389
11396
  return N?.expandIcon ? p("td", {
11390
- class: X,
11397
+ class: Y,
11391
11398
  style: w.value,
11392
11399
  "data-vtg-col": e.colIndex,
11393
11400
  colspan: P,
@@ -11398,11 +11405,11 @@ const Mu = /* @__PURE__ */ le({
11398
11405
  expanded: C,
11399
11406
  record: e.record,
11400
11407
  expandable: R,
11401
- onExpand: (ee, Z) => {
11408
+ onExpand: (J, Z) => {
11402
11409
  Z.stopPropagation(), R && t.toggleExpand?.(e.record, e.rowIndex);
11403
11410
  }
11404
11411
  })]) : p("td", {
11405
- class: X,
11412
+ class: Y,
11406
11413
  style: w.value,
11407
11414
  "data-vtg-col": e.colIndex,
11408
11415
  colspan: P,
@@ -11418,18 +11425,18 @@ const Mu = /* @__PURE__ */ le({
11418
11425
  }
11419
11426
  }, null)]);
11420
11427
  }
11421
- const H = I.value, W = A.value && H, Y = W ? t.getRowKey?.(e.record, e.rowIndex) : void 0, q = W ? p("span", {
11422
- class: t.compatClass ? `${t.compatClass("row-indent")} indent-level-${H.level}` : void 0,
11428
+ const V = I.value, W = A.value && V, X = W ? t.getRowKey?.(e.record, e.rowIndex) : void 0, q = W ? p("span", {
11429
+ class: t.compatClass ? `${t.compatClass("row-indent")} indent-level-${V.level}` : void 0,
11423
11430
  style: {
11424
11431
  display: "inline-block",
11425
- width: `${H.level * (t.treeIndentSize?.value ?? 15)}px`
11432
+ width: `${V.level * (t.treeIndentSize?.value ?? 15)}px`
11426
11433
  }
11427
- }, null) : null, U = W && H.hasChildren ? p(fo, {
11428
- expanded: H.expanded,
11434
+ }, null) : null, U = W && V.hasChildren ? p(fo, {
11435
+ expanded: V.expanded,
11429
11436
  expandable: !0,
11430
11437
  variant: "tree",
11431
- loading: Y !== void 0 && t.isTreeLoading?.(Y),
11432
- error: Y !== void 0 && !!t.getTreeLoadError?.(Y),
11438
+ loading: X !== void 0 && t.isTreeLoading?.(X),
11439
+ error: X !== void 0 && !!t.getTreeLoadError?.(X),
11433
11440
  onClick: () => t.toggleTreeExpand?.(e.record, e.rowIndex)
11434
11441
  }, null) : W ? p(fo, {
11435
11442
  expanded: !1,
@@ -11888,8 +11895,8 @@ const Lu = /* @__PURE__ */ le({
11888
11895
  if (!f.value)
11889
11896
  return Array.from({
11890
11897
  length: E
11891
- }, (j, H) => ({
11892
- index: H
11898
+ }, (j, V) => ({
11899
+ index: V
11893
11900
  }));
11894
11901
  const {
11895
11902
  leftFixedCount: O,
@@ -11923,7 +11930,7 @@ const Lu = /* @__PURE__ */ le({
11923
11930
  }
11924
11931
  return We(() => {
11925
11932
  w?.disconnect(), w = null, I = null;
11926
- }), Q(() => o.value, (E) => {
11933
+ }), ee(() => o.value, (E) => {
11927
11934
  if (E) {
11928
11935
  const O = E.getScrollInfo();
11929
11936
  a(O), E.nativeElement, A(E.nativeElement);
@@ -11962,10 +11969,10 @@ const Lu = /* @__PURE__ */ le({
11962
11969
  index: O
11963
11970
  }) => {
11964
11971
  let B;
11965
- const P = O, j = s(E, P), H = r.expandable?.(), W = r.isExpanded?.(j) ?? !1, Y = H?.expandRowByClick ?? !1, q = r.isRowExpandable?.(E) ?? !1, U = r.getRowClassName?.(E, P), x = r.getRowProps?.(E, P), T = r.rowDrag?.enabled.value ? r.rowDrag.getBindings(E, P, x) : void 0, S = {
11972
+ const P = O, j = s(E, P), V = r.expandable?.(), W = r.isExpanded?.(j) ?? !1, X = V?.expandRowByClick ?? !1, q = r.isRowExpandable?.(E) ?? !1, U = r.getRowClassName?.(E, P), x = r.getRowProps?.(E, P), T = r.rowDrag?.enabled.value ? r.rowDrag.getBindings(E, P, x) : void 0, S = {
11966
11973
  ...x,
11967
11974
  ...T
11968
- }, D = Bl(r.rowDrag, j, r.subThemeSlots), z = (r.isTreeData?.value ? r.getFlattenRow?.(E) : void 0)?.level ?? 0, C = typeof H?.expandedRowClassName == "function" ? H.expandedRowClassName(E, P, z) : H?.expandedRowClassName, R = Y ? () => {
11975
+ }, D = Bl(r.rowDrag, j, r.subThemeSlots), z = (r.isTreeData?.value ? r.getFlattenRow?.(E) : void 0)?.level ?? 0, C = typeof V?.expandedRowClassName == "function" ? V.expandedRowClassName(E, P, z) : V?.expandedRowClassName, R = X ? () => {
11969
11976
  q && r.toggleExpand?.(E, P);
11970
11977
  } : void 0, M = y.value, L = e.columnMetrics?.widths;
11971
11978
  return p("table", {
@@ -11985,22 +11992,22 @@ const Lu = /* @__PURE__ */ le({
11985
11992
  rowClass: me(e.rowClass, U, D, Fl(r, E, P, z)) ?? "",
11986
11993
  rowProps: S,
11987
11994
  onClick: R
11988
- }, Ou(B = M.map((F, V) => {
11995
+ }, Ou(B = M.map((F, H) => {
11989
11996
  if (F.spacer !== void 0)
11990
11997
  return p("td", {
11991
- key: `__vtg_spacer_${V}`,
11998
+ key: `__vtg_spacer_${H}`,
11992
11999
  style: {
11993
12000
  width: `${F.spacer}px`,
11994
12001
  padding: "0"
11995
12002
  },
11996
12003
  "aria-hidden": "true"
11997
12004
  }, null);
11998
- const K = F.index, X = e.columns[K];
12005
+ const K = F.index, Y = e.columns[K];
11999
12006
  return p(aa, {
12000
- key: X.key ?? String(X.dataIndex ?? K),
12007
+ key: Y.key ?? String(Y.dataIndex ?? K),
12001
12008
  record: E,
12002
12009
  rowIndex: P,
12003
- column: X,
12010
+ column: Y,
12004
12011
  colIndex: K,
12005
12012
  widthOverride: L?.[K],
12006
12013
  tdClass: e.tdClass,
@@ -12008,7 +12015,7 @@ const Lu = /* @__PURE__ */ le({
12008
12015
  }, null);
12009
12016
  })) ? B : {
12010
12017
  default: () => [B]
12011
- }), W && H?.expandedRowRender ? p(sa, {
12018
+ }), W && V?.expandedRowRender ? p(sa, {
12012
12019
  key: `${j}-expanded`,
12013
12020
  record: E,
12014
12021
  rowIndex: P,
@@ -12018,7 +12025,7 @@ const Lu = /* @__PURE__ */ le({
12018
12025
  rowClassName: U,
12019
12026
  expandedRowClassName: C,
12020
12027
  tdClass: e.tdClass,
12021
- expandedRowRender: H.expandedRowRender
12028
+ expandedRowRender: V.expandedRowRender
12022
12029
  }, null) : null])]);
12023
12030
  }
12024
12031
  });
@@ -12332,7 +12339,7 @@ const Fu = /* @__PURE__ */ le({
12332
12339
  }) {
12333
12340
  const n = $(!1);
12334
12341
  let l;
12335
- Q(() => {
12342
+ ee(() => {
12336
12343
  const _ = e.loading;
12337
12344
  return [_ === !0 || typeof _ == "object" && _ !== null && _.spinning !== !1, typeof _ == "object" && _ !== null ? _.delay : 0];
12338
12345
  }, ([_, G]) => {
@@ -12405,9 +12412,9 @@ const Fu = /* @__PURE__ */ le({
12405
12412
  getSortOrder: B,
12406
12413
  toggleSortOrder: P,
12407
12414
  sortData: j,
12408
- sorterState: H,
12415
+ sorterState: V,
12409
12416
  sorterResult: W,
12410
- sortColumns: Y
12417
+ sortColumns: X
12411
12418
  } = nc({
12412
12419
  columns: () => O.value,
12413
12420
  tableSortDirections: () => e.sortDirections,
@@ -12476,7 +12483,7 @@ const Fu = /* @__PURE__ */ le({
12476
12483
  Tt.value ? L.value?.scrollToTop() : ct.value && (ct.value.scrollTop = 0);
12477
12484
  });
12478
12485
  }
12479
- function V(_) {
12486
+ function H(_) {
12480
12487
  if (!C.enabled.value || C.state.value.total === 0) return null;
12481
12488
  const ne = (C.config.value.position ?? ["bottomRight"]).find((_e) => _e !== "none" && _e.startsWith(_));
12482
12489
  if (!ne) return null;
@@ -12501,11 +12508,11 @@ const Fu = /* @__PURE__ */ le({
12501
12508
  return e.rowKey === void 0 || typeof e.rowKey == "string" && e.rowKey in _, ne;
12502
12509
  }
12503
12510
  const {
12504
- flattenData: X,
12505
- rowMetaMap: ee,
12511
+ flattenData: Y,
12512
+ rowMetaMap: J,
12506
12513
  isTreeData: Z,
12507
- toggleTreeExpand: ve,
12508
- isTreeExpanded: fe,
12514
+ toggleTreeExpand: ue,
12515
+ isTreeExpanded: ve,
12509
12516
  indentSize: se
12510
12517
  } = wu({
12511
12518
  data: () => z.value,
@@ -12527,9 +12534,9 @@ const Fu = /* @__PURE__ */ le({
12527
12534
  D.load(_, G);
12528
12535
  return;
12529
12536
  }
12530
- ve(_, G);
12537
+ ue(_, G);
12531
12538
  }
12532
- Q(() => e.loadData ? X.value : void 0, (_) => {
12539
+ ee(() => e.loadData ? Y.value : void 0, (_) => {
12533
12540
  _?.forEach((G, ne) => {
12534
12541
  G.expanded && !D.getError(K(G.record, ne)) && D.load(G.record, ne);
12535
12542
  });
@@ -12548,14 +12555,14 @@ const Fu = /* @__PURE__ */ le({
12548
12555
  onDrop(_, G) {
12549
12556
  r("rowDragEnd", _, G);
12550
12557
  }
12551
- }), Ce = k(() => Z.value ? X.value.map((_) => _.record) : C.pageData.value), {
12558
+ }), Ce = k(() => Z.value ? Y.value.map((_) => _.record) : C.pageData.value), {
12552
12559
  isSelected: te,
12553
12560
  isDisabled: ae,
12554
12561
  getSelectionState: ce,
12555
12562
  toggleRow: xe,
12556
12563
  toggleAll: Ue,
12557
12564
  allCheckedState: st,
12558
- invertSelection: J,
12565
+ invertSelection: Q,
12559
12566
  clearSelection: he,
12560
12567
  getChangeableRowKeys: Me
12561
12568
  } = dc({
@@ -12702,10 +12709,10 @@ const Fu = /* @__PURE__ */ le({
12702
12709
  th: i.groupedHeaderTh(),
12703
12710
  td: i.groupedHeaderTd()
12704
12711
  }), lr = k(() => me(i.table(), Qr.value.table) ?? ""), No = k(() => kt.enabled.value ? i.widthLayoutCell() : void 0), Vo = k(() => me(i.th(), Qr.value.th, No.value) ?? ""), eo = k(() => me(i.td(), Qr.value.td, No.value) ?? "");
12705
- Q([Tt, _o], ([_, G]) => {
12712
+ ee([Tt, _o], ([_, G]) => {
12706
12713
  }, {
12707
12714
  immediate: !0
12708
- }), Q([() => e.virtual, Sa], ([_, G]) => {
12715
+ }), ee([() => e.virtual, Sa], ([_, G]) => {
12709
12716
  if (!_) return;
12710
12717
  const ne = String(e.scroll?.y);
12711
12718
  G.kind === "compat-px" ? (`${ne}${G.value}`, void 0) : G.kind === "invalid-string" || G.kind === "invalid-number" && e.scroll?.y && `${Zl}`;
@@ -12713,9 +12720,9 @@ const Fu = /* @__PURE__ */ le({
12713
12720
  immediate: !0
12714
12721
  });
12715
12722
  const Ho = $(null), $o = $(null);
12716
- Q(() => Ho.value?.wrapRef, (_) => {
12723
+ ee(() => Ho.value?.wrapRef, (_) => {
12717
12724
  _ && (ct.value = _);
12718
- }), Q(() => $o.value?.wrapRef, (_) => {
12725
+ }), ee(() => $o.value?.wrapRef, (_) => {
12719
12726
  _ && (ct.value = _);
12720
12727
  });
12721
12728
  let to = !1;
@@ -12762,7 +12769,7 @@ const Fu = /* @__PURE__ */ le({
12762
12769
  getTreeLoadError: D.getError
12763
12770
  });
12764
12771
  const ka = k(() => Nl(Le.value)), Wo = k(() => e.virtualColumn ? Tt.value ? _o.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : ka.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), ro = k(() => e.virtualColumn && Wo.value === null);
12765
- Q(Wo, (_) => {
12772
+ ee(Wo, (_) => {
12766
12773
  }, {
12767
12774
  immediate: !0
12768
12775
  });
@@ -12775,13 +12782,13 @@ const Fu = /* @__PURE__ */ le({
12775
12782
  columnWidths: Ft,
12776
12783
  hasHeader: () => e.showHeader !== !1
12777
12784
  }), Ko = k(() => kt.metrics.value ?? Ta.value);
12778
- Q([ro, Ko], ([_, G]) => {
12785
+ ee([ro, Ko], ([_, G]) => {
12779
12786
  !_ || G || e.showHeader !== !1 || kt.enabled.value;
12780
12787
  }, {
12781
12788
  immediate: !0
12782
12789
  });
12783
12790
  function Ea(_) {
12784
- return Z.value ? ee.value.get(_)?.level ?? 0 : 0;
12791
+ return Z.value ? J.value.get(_)?.level ?? 0 : 0;
12785
12792
  }
12786
12793
  function Ra(_, G) {
12787
12794
  return e.rowClassName ? typeof e.rowClassName == "function" ? e.rowClassName(_, G, Ea(_)) : e.rowClassName : "";
@@ -12795,10 +12802,10 @@ const Fu = /* @__PURE__ */ le({
12795
12802
  function Da(_) {
12796
12803
  if (typeof _.title != "function")
12797
12804
  return _.title ?? "";
12798
- const G = _, ne = Y.value.filter((Se) => !!Se.column);
12805
+ const G = _, ne = X.value.filter((Se) => !!Se.column);
12799
12806
  return _.title({
12800
12807
  sortOrder: G.sorter ? B(G) ?? void 0 : void 0,
12801
- sortColumn: H.value.column,
12808
+ sortColumn: V.value.column,
12802
12809
  sortColumns: ne.length > 0 ? ne : void 0,
12803
12810
  filters: T()
12804
12811
  });
@@ -12958,7 +12965,7 @@ const Fu = /* @__PURE__ */ le({
12958
12965
  toggleAll: Ue,
12959
12966
  allCheckedState: () => st.value,
12960
12967
  getRowKey: K,
12961
- invertSelection: J,
12968
+ invertSelection: Q,
12962
12969
  clearSelection: he,
12963
12970
  getChangeableRowKeys: Me,
12964
12971
  fixedOffsets: ht,
@@ -12999,10 +13006,10 @@ const Fu = /* @__PURE__ */ le({
12999
13006
  }) => ne.key !== "__vtg_selection__" && ne.key !== "__vtg_expand__"), G = e.expandable?.expandIconColumnIndex ?? 0;
13000
13007
  return _[Math.max(0, Math.min(_.length - 1, Math.floor(Number.isFinite(G) ? G : 0)))]?.index ?? -1;
13001
13008
  }),
13002
- treeFlattenData: X,
13003
- getFlattenRow: (_) => ee.value.get(_),
13009
+ treeFlattenData: Y,
13010
+ getFlattenRow: (_) => J.value.get(_),
13004
13011
  toggleTreeExpand: ge,
13005
- isTreeExpanded: fe,
13012
+ isTreeExpanded: ve,
13006
13013
  treeIndentSize: se,
13007
13014
  hoverRange: we,
13008
13015
  setHoverRange: Pe,
@@ -13122,14 +13129,14 @@ const Fu = /* @__PURE__ */ le({
13122
13129
  return p("div", {
13123
13130
  ref: Mt,
13124
13131
  class: me(i.root(), dt.value && i.rootAutoHeight(), ut.value, a.value)
13125
- }, [V("top"), G && p("div", {
13132
+ }, [H("top"), G && p("div", {
13126
13133
  class: i.title()
13127
13134
  }, [G]), p("div", {
13128
13135
  ref: nr,
13129
13136
  class: me(i.wrapper(), dt.value && i.wrapperAutoHeight(), E.value && It("overflow-clip", d.value, u.value))
13130
13137
  }, [Pa, Oa, La, ja, Yo]), ne && p("div", {
13131
13138
  class: i.footer()
13132
- }, [ne]), V("bottom")]);
13139
+ }, [ne]), H("bottom")]);
13133
13140
  }
13134
13141
  const oo = p(Je, null, [p("table", {
13135
13142
  "data-vtg-table": "",
@@ -13158,7 +13165,7 @@ const Fu = /* @__PURE__ */ le({
13158
13165
  return p("div", {
13159
13166
  ref: Mt,
13160
13167
  class: me(i.root(), ut.value, a.value)
13161
- }, [V("top"), G && p("div", {
13168
+ }, [H("top"), G && p("div", {
13162
13169
  class: i.title()
13163
13170
  }, [G]), p(Hr, {
13164
13171
  ref: $o,
@@ -13169,7 +13176,7 @@ const Fu = /* @__PURE__ */ le({
13169
13176
  default: () => [oo]
13170
13177
  }), ne && p("div", {
13171
13178
  class: i.footer()
13172
- }, [ne]), V("bottom")]);
13179
+ }, [ne]), H("bottom")]);
13173
13180
  };
13174
13181
  }
13175
13182
  }), Bu = /* @__PURE__ */ le({
@@ -13442,7 +13449,7 @@ const Fu = /* @__PURE__ */ le({
13442
13449
  slots: t
13443
13450
  }) {
13444
13451
  const r = be(De, {});
13445
- return Q(() => e.fixed, (o) => {
13452
+ return ee(() => e.fixed, (o) => {
13446
13453
  r.registerSummaryFixed?.(o ?? !1);
13447
13454
  }, {
13448
13455
  immediate: !0
@@ -13594,8 +13601,8 @@ const ga = /* @__PURE__ */ le({
13594
13601
  function R(M, L = !0) {
13595
13602
  for (const F of M) {
13596
13603
  if (wt(F.column, "checkbox")) continue;
13597
- const V = L && F.column.visible !== !1;
13598
- mr(F) || C.push(V), R(F.children, V);
13604
+ const H = L && F.column.visible !== !1;
13605
+ mr(F) || C.push(H), R(F.children, H);
13599
13606
  }
13600
13607
  }
13601
13608
  return R(v.value), {
@@ -13607,7 +13614,7 @@ const ga = /* @__PURE__ */ le({
13607
13614
  for (const R of C)
13608
13615
  A.has(R.id) || A.set(R.id, R.column.visible), O(R.children);
13609
13616
  }
13610
- Q(v, O, {
13617
+ ee(v, O, {
13611
13618
  immediate: !0,
13612
13619
  flush: "sync"
13613
13620
  });
@@ -13623,20 +13630,20 @@ const ga = /* @__PURE__ */ le({
13623
13630
  if (e.disabled || !v.value.length) return;
13624
13631
  const R = C.target, M = /* @__PURE__ */ new Map();
13625
13632
  function L(F) {
13626
- for (const V of F)
13627
- wt(V.column, "checkbox") || (mr(V) || M.set(V.id, R.checked), L(V.children));
13633
+ for (const H of F)
13634
+ wt(H.column, "checkbox") || (mr(H) || M.set(H.id, R.checked), L(H.children));
13628
13635
  }
13629
13636
  L(v.value), t("update:columns", hr(e.columns, M)), R.checked = E.value.all, R.indeterminate = E.value.partial;
13630
13637
  }
13631
- function H(C = h.value) {
13638
+ function V(C = h.value) {
13632
13639
  return C === "density" ? g.value : u.value;
13633
13640
  }
13634
13641
  function W(C = !1) {
13635
- const R = H();
13642
+ const R = V();
13636
13643
  h.value = null, C && R?.focus();
13637
13644
  }
13638
- function Y(C) {
13639
- const R = H(C);
13645
+ function X(C) {
13646
+ const R = V(C);
13640
13647
  if (!(e.disabled || !R)) {
13641
13648
  if (h.value === C) return W();
13642
13649
  m.value = C, h.value = C;
@@ -13659,9 +13666,9 @@ const ga = /* @__PURE__ */ le({
13659
13666
  (C.shiftKey && C.target === R[0] || !C.shiftKey && C.target === R[R.length - 1]) && (W(!0), C.shiftKey && C.preventDefault());
13660
13667
  }
13661
13668
  }
13662
- Q(() => e.disabled, (C) => {
13669
+ ee(() => e.disabled, (C) => {
13663
13670
  C && W();
13664
- }), Q(() => e.getPopupContainer, () => W()), Q(() => [e.options?.density, e.options?.setting], () => {
13671
+ }), ee(() => e.getPopupContainer, () => W()), ee(() => [e.options?.density, e.options?.setting], () => {
13665
13672
  (h.value === "density" && e.options?.density === !1 || h.value === "columns" && e.options?.setting === !1) && W();
13666
13673
  });
13667
13674
  function U(C, R) {
@@ -13673,8 +13680,8 @@ const ga = /* @__PURE__ */ le({
13673
13680
  R.preventDefault(), R.stopPropagation();
13674
13681
  const M = y.value, L = w.value;
13675
13682
  if (y.value = null, w.value = null, S(), !M || e.disabled || e.options?.draggable === !1) return;
13676
- const F = L?.id === C.id ? L.position : void 0, V = va(e.columns, M, L?.id ?? C.id, F);
13677
- V !== e.columns && t("update:columns", V);
13683
+ const F = L?.id === C.id ? L.position : void 0, H = va(e.columns, M, L?.id ?? C.id, F);
13684
+ H !== e.columns && t("update:columns", H);
13678
13685
  }
13679
13686
  function T(C) {
13680
13687
  I && clearTimeout(I), I = setTimeout(() => {
@@ -13689,37 +13696,37 @@ const ga = /* @__PURE__ */ le({
13689
13696
  }
13690
13697
  function N(C, R = !1, M = !1) {
13691
13698
  return C.map((L) => {
13692
- const F = L.column, V = r.columnLabel?.({
13699
+ const F = L.column, H = r.columnLabel?.({
13693
13700
  column: F
13694
- }) ?? (typeof F.title == "function" ? void 0 : F.title) ?? String(F.key ?? ("dataIndex" in F ? F.dataIndex ?? "" : "")), K = !M && e.options?.draggable !== !1, X = !e.disabled && !wt(F, "order") && $e(F) !== "mixed";
13701
+ }) ?? (typeof F.title == "function" ? void 0 : F.title) ?? String(F.key ?? ("dataIndex" in F ? F.dataIndex ?? "" : "")), K = !M && e.options?.draggable !== !1, Y = !e.disabled && !wt(F, "order") && $e(F) !== "mixed";
13695
13702
  return p("li", {
13696
13703
  key: L.id,
13697
13704
  class: a.item(),
13698
13705
  "data-column-setting": L.id,
13699
- onDragover: (ee) => {
13706
+ onDragover: (J) => {
13700
13707
  if (!y.value || M) return;
13701
- if (ee.preventDefault(), ee.dataTransfer && (ee.dataTransfer.dropEffect = "move"), y.value === L.id) {
13708
+ if (J.preventDefault(), J.dataTransfer && (J.dataTransfer.dropEffect = "move"), y.value === L.id) {
13702
13709
  w.value = null;
13703
13710
  return;
13704
13711
  }
13705
- const Z = ee.currentTarget?.getBoundingClientRect(), ve = Z && ee.clientY >= Z.top + Z.height / 2 ? "after" : "before", fe = w.value;
13706
- (!fe || fe.id !== L.id || fe.position !== ve) && (w.value = {
13712
+ const Z = J.currentTarget?.getBoundingClientRect(), ue = Z && J.clientY >= Z.top + Z.height / 2 ? "after" : "before", ve = w.value;
13713
+ (!ve || ve.id !== L.id || ve.position !== ue) && (w.value = {
13707
13714
  id: L.id,
13708
- position: ve
13715
+ position: ue
13709
13716
  });
13710
13717
  },
13711
13718
  onDragleave: () => {
13712
13719
  y.value !== null && w.value?.id === L.id && (w.value = null);
13713
13720
  },
13714
- onDrop: M ? void 0 : (ee) => x(L, ee)
13721
+ onDrop: M ? void 0 : (J) => x(L, J)
13715
13722
  }, [p("div", {
13716
13723
  class: D(L.id),
13717
13724
  "data-dragging": b.value === L.id || void 0,
13718
13725
  "data-drop-target": w.value?.id === L.id ? w.value.position : void 0,
13719
- draggable: K ? X : void 0,
13720
- onDragstart: K ? (ee) => {
13721
- if (e.disabled || wt(F, "order")) return ee.preventDefault();
13722
- y.value = L.id, T(L.id), ee.dataTransfer?.setData("text/plain", L.id), ee.dataTransfer && (ee.dataTransfer.effectAllowed = "move");
13726
+ draggable: K ? Y : void 0,
13727
+ onDragstart: K ? (J) => {
13728
+ if (e.disabled || wt(F, "order")) return J.preventDefault();
13729
+ y.value = L.id, T(L.id), J.dataTransfer?.setData("text/plain", L.id), J.dataTransfer && (J.dataTransfer.effectAllowed = "move");
13723
13730
  } : void 0,
13724
13731
  onDragend: K ? () => {
13725
13732
  y.value = null, w.value = null, S();
@@ -13742,16 +13749,16 @@ const ga = /* @__PURE__ */ le({
13742
13749
  class: a.checkbox(),
13743
13750
  checked: F.visible !== !1,
13744
13751
  disabled: e.disabled || R || mr(L),
13745
- onChange: (ee) => B(L, ee)
13752
+ onChange: (J) => B(L, J)
13746
13753
  }, null), F.visible !== !1 && p("span", {
13747
13754
  class: a.checkMark(),
13748
13755
  "aria-hidden": "true"
13749
13756
  }, null)]), p("span", {
13750
13757
  class: a.labelText()
13751
- }, [V])]), !M && e.options?.fixed !== !1 && p("span", {
13758
+ }, [H])]), !M && e.options?.fixed !== !1 && p("span", {
13752
13759
  class: a.pinActions()
13753
- }, [["left", void 0, "right"].map((ee) => {
13754
- const Z = ee === "left" ? c.value.fixedLeft : ee === "right" ? c.value.fixedRight : c.value.unfixed;
13760
+ }, [["left", void 0, "right"].map((J) => {
13761
+ const Z = J === "left" ? c.value.fixedLeft : J === "right" ? c.value.fixedRight : c.value.unfixed;
13755
13762
  return p(zt, {
13756
13763
  title: Z
13757
13764
  }, {
@@ -13759,10 +13766,10 @@ const ga = /* @__PURE__ */ le({
13759
13766
  type: "button",
13760
13767
  class: a.pinAction(),
13761
13768
  disabled: e.disabled || !Ro(L),
13762
- "aria-label": `${String(typeof V == "string" || typeof V == "number" ? V : F.key ?? "")}: ${Z}`,
13763
- "aria-pressed": $e(F) === ee,
13764
- "data-column-pin": ee ?? "none",
13765
- onClick: () => U(L, ee)
13769
+ "aria-label": `${String(typeof H == "string" || typeof H == "number" ? H : F.key ?? "")}: ${Z}`,
13770
+ "aria-pressed": $e(F) === J,
13771
+ "data-column-pin": J ?? "none",
13772
+ onClick: () => U(L, J)
13766
13773
  }, [p("svg", {
13767
13774
  class: a.pinIcon(),
13768
13775
  viewBox: "0 0 16 16",
@@ -13775,11 +13782,11 @@ const ga = /* @__PURE__ */ le({
13775
13782
  height: "10",
13776
13783
  rx: "1",
13777
13784
  stroke: "currentColor"
13778
- }, null), ee ? p(Je, null, [p("path", {
13779
- d: ee === "left" ? "M6 3v10" : "M10 3v10",
13785
+ }, null), J ? p(Je, null, [p("path", {
13786
+ d: J === "left" ? "M6 3v10" : "M10 3v10",
13780
13787
  stroke: "currentColor"
13781
13788
  }, null), p("rect", {
13782
- x: ee === "left" ? "2" : "10",
13789
+ x: J === "left" ? "2" : "10",
13783
13790
  y: "3",
13784
13791
  width: "4",
13785
13792
  height: "10",
@@ -13826,7 +13833,7 @@ const ga = /* @__PURE__ */ le({
13826
13833
  "aria-haspopup": "menu",
13827
13834
  "aria-expanded": h.value === "density",
13828
13835
  "aria-controls": h.value === "density" ? `${d}-density` : void 0,
13829
- onClick: () => Y("density")
13836
+ onClick: () => X("density")
13830
13837
  }, [p(Gc, null, null)])]
13831
13838
  }), e.options?.setting !== !1 && p(zt, {
13832
13839
  title: c.value.title,
@@ -13841,11 +13848,11 @@ const ga = /* @__PURE__ */ le({
13841
13848
  "aria-haspopup": "dialog",
13842
13849
  "aria-expanded": h.value === "columns",
13843
13850
  "aria-controls": h.value === "columns" ? `${d}-columns` : void 0,
13844
- onClick: () => Y("columns")
13851
+ onClick: () => X("columns")
13845
13852
  }, [p(Uc, null, null)])]
13846
13853
  }), p(Cr, {
13847
13854
  open: h.value !== null,
13848
- anchor: H(m.value),
13855
+ anchor: V(m.value),
13849
13856
  getPopupContainer: e.getPopupContainer,
13850
13857
  preset: n.value,
13851
13858
  align: "end",
@@ -13998,14 +14005,14 @@ const ga = /* @__PURE__ */ le({
13998
14005
  ...o?.localeOverrides.toolbar,
13999
14006
  ...e.locale
14000
14007
  })), d = k(() => {
14001
- const j = e.options !== !1, H = e.options === !1 ? void 0 : e.options;
14008
+ const j = e.options !== !1, V = e.options === !1 ? void 0 : e.options;
14002
14009
  return {
14003
- reload: j && H?.reload !== !1,
14004
- density: j && H?.density !== !1,
14005
- setting: j && H?.setting !== !1,
14006
- fixed: j && H?.fixed !== !1,
14007
- draggable: j && H?.draggable !== !1,
14008
- fullScreen: j && H?.fullScreen === !0
14010
+ reload: j && V?.reload !== !1,
14011
+ density: j && V?.density !== !1,
14012
+ setting: j && V?.setting !== !1,
14013
+ fixed: j && V?.fixed !== !1,
14014
+ draggable: j && V?.draggable !== !1,
14015
+ fullScreen: j && V?.fullScreen === !0
14009
14016
  };
14010
14017
  }), u = $(!1), g = ie(null), f = $(!1);
14011
14018
  function i() {
@@ -14017,15 +14024,15 @@ const ga = /* @__PURE__ */ le({
14017
14024
  }
14018
14025
  it(() => {
14019
14026
  u.value = !0, v(), document.addEventListener("fullscreenchange", v);
14020
- }), Q(() => u.value && d.value.fullScreen && !e.fullscreenTarget && !n?.rootElement, (j) => {
14027
+ }), ee(() => u.value && d.value.fullScreen && !e.fullscreenTarget && !n?.rootElement, (j) => {
14021
14028
  }), We(() => {
14022
14029
  u.value && document.removeEventListener("fullscreenchange", v);
14023
- }), Q(h, (j) => t("fullscreenChange", j));
14030
+ }), ee(h, (j) => t("fullscreenChange", j));
14024
14031
  function y() {
14025
14032
  !e.disabled && !e.loading && t("reload");
14026
14033
  }
14027
14034
  const b = $(e.searchValue ?? "");
14028
- Q(() => e.searchValue, (j) => {
14035
+ ee(() => e.searchValue, (j) => {
14029
14036
  j !== void 0 && (b.value = j);
14030
14037
  });
14031
14038
  const w = k(() => e.searchValue ?? b.value);
@@ -14041,7 +14048,7 @@ const ga = /* @__PURE__ */ le({
14041
14048
  function O(j) {
14042
14049
  if (r.search) return r.search(j);
14043
14050
  if (!e.search) return null;
14044
- const H = typeof e.search == "object" ? e.search : void 0;
14051
+ const V = typeof e.search == "object" ? e.search : void 0;
14045
14052
  return p("div", {
14046
14053
  class: a.searchGroup(),
14047
14054
  "data-vtg-search-group": ""
@@ -14051,8 +14058,8 @@ const ga = /* @__PURE__ */ le({
14051
14058
  }, [p(pl, {
14052
14059
  bare: !0,
14053
14060
  value: w.value,
14054
- placeholder: H?.placeholder ?? c.value.searchPlaceholder,
14055
- "aria-label": H?.placeholder ?? c.value.searchPlaceholder,
14061
+ placeholder: V?.placeholder ?? c.value.searchPlaceholder,
14062
+ "aria-label": V?.placeholder ?? c.value.searchPlaceholder,
14056
14063
  disabled: e.disabled,
14057
14064
  ui: {
14058
14065
  root: a.searchInput()
@@ -14061,7 +14068,7 @@ const ga = /* @__PURE__ */ le({
14061
14068
  onPressEnter: (W) => {
14062
14069
  W.isComposing || (W.preventDefault(), A());
14063
14070
  }
14064
- }, null), H?.clearable !== !1 && w.value && p("button", {
14071
+ }, null), V?.clearable !== !1 && w.value && p("button", {
14065
14072
  type: "button",
14066
14073
  class: a.searchClear(),
14067
14074
  "aria-label": c.value.clearSearch,
@@ -14096,15 +14103,15 @@ const ga = /* @__PURE__ */ le({
14096
14103
  f.value = !0;
14097
14104
  try {
14098
14105
  document.fullscreenElement === j ? await document.exitFullscreen() : await j.requestFullscreen(), v();
14099
- } catch (H) {
14100
- t("fullscreenError", H);
14106
+ } catch (V) {
14107
+ t("fullscreenError", V);
14101
14108
  } finally {
14102
14109
  f.value = !1;
14103
14110
  }
14104
14111
  }
14105
14112
  }
14106
14113
  function P() {
14107
- const j = d.value.setting && e.columns !== void 0, H = d.value.density;
14114
+ const j = d.value.setting && e.columns !== void 0, V = d.value.density;
14108
14115
  return p(Je, null, [d.value.reload && p(zt, {
14109
14116
  title: c.value.reload
14110
14117
  }, {
@@ -14118,11 +14125,11 @@ const ga = /* @__PURE__ */ le({
14118
14125
  }, [p(Kl, {
14119
14126
  class: e.loading ? a.loadingIcon() : a.icon()
14120
14127
  }, null)])]
14121
- }), (j || H) && p(ga, ze(e.columnSettings, {
14128
+ }), (j || V) && p(ga, ze(e.columnSettings, {
14122
14129
  columns: e.columns ?? [],
14123
14130
  size: s.value,
14124
14131
  options: {
14125
- density: H,
14132
+ density: V,
14126
14133
  setting: j,
14127
14134
  fixed: d.value.fixed,
14128
14135
  draggable: d.value.draggable
@@ -14166,7 +14173,7 @@ const ga = /* @__PURE__ */ le({
14166
14173
  updateSearchValue: I,
14167
14174
  submitSearch: A,
14168
14175
  clearSearch: E
14169
- }, H = r.settings || d.value.reload || d.value.density || d.value.setting && e.columns !== void 0 || d.value.fullScreen;
14176
+ }, V = r.settings || d.value.reload || d.value.density || d.value.setting && e.columns !== void 0 || d.value.fullScreen;
14170
14177
  return p("div", {
14171
14178
  role: "group",
14172
14179
  "aria-label": c.value.label,
@@ -14182,7 +14189,7 @@ const ga = /* @__PURE__ */ le({
14182
14189
  class: a.filter()
14183
14190
  }, [r.filter(j)]), r.actions && p("div", {
14184
14191
  class: a.actions()
14185
- }, [r.actions(j)]), H && p("div", {
14192
+ }, [r.actions(j)]), V && p("div", {
14186
14193
  class: a.settings()
14187
14194
  }, [r.settings ? r.settings(j) : P()])]), r.filter && e.multipleLine && p("div", {
14188
14195
  class: a.extra()
@@ -14419,7 +14426,7 @@ const ga = /* @__PURE__ */ le({
14419
14426
  ]), 1040));
14420
14427
  }
14421
14428
  });
14422
- function de(e, t = /* @__PURE__ */ new WeakMap()) {
14429
+ function fe(e, t = /* @__PURE__ */ new WeakMap()) {
14423
14430
  if (!e || typeof e != "object") return e;
14424
14431
  if (t.has(e)) return t.get(e);
14425
14432
  if (e instanceof Date) {
@@ -14429,7 +14436,7 @@ function de(e, t = /* @__PURE__ */ new WeakMap()) {
14429
14436
  if (Array.isArray(e)) {
14430
14437
  const r = new Array(e.length);
14431
14438
  return t.set(e, r), e.forEach((o, n) => {
14432
- r[n] = de(o, t);
14439
+ r[n] = fe(o, t);
14433
14440
  }), r;
14434
14441
  }
14435
14442
  if (Object.getPrototypeOf(e) === Object.prototype) {
@@ -14437,7 +14444,7 @@ function de(e, t = /* @__PURE__ */ new WeakMap()) {
14437
14444
  t.set(e, r);
14438
14445
  for (const [o, n] of Object.entries(e))
14439
14446
  Object.defineProperty(r, o, {
14440
- value: de(n, t),
14447
+ value: fe(n, t),
14441
14448
  enumerable: !0,
14442
14449
  configurable: !0,
14443
14450
  writable: !0
@@ -14468,16 +14475,16 @@ function Ku(e) {
14468
14475
  return Object.fromEntries(t);
14469
14476
  }
14470
14477
  function id(e) {
14471
- const t = de(e.defaultParams ?? {}), r = ie(de(t)), o = ie({}), n = ie({}), l = $(nt(e.initialPagination?.current, 1)), a = $(nt(e.initialPagination?.pageSize, 10)), s = $(Math.max(0, e.initialPagination?.total ?? 0)), c = ie([]), d = $(!1), u = $(!1), g = $(!1), f = ie(null), i = Object.freeze({ sort: !0, filter: !0, pagination: !0 });
14478
+ const t = fe(e.defaultParams ?? {}), r = ie(fe(t)), o = ie({}), n = ie({}), l = $(nt(e.initialPagination?.current, 1)), a = $(nt(e.initialPagination?.pageSize, 10)), s = $(Math.max(0, e.initialPagination?.total ?? 0)), c = ie([]), d = $(!1), u = $(!1), g = $(!1), f = ie(null), i = Object.freeze({ sort: !0, filter: !0, pagination: !0 });
14472
14479
  let h = !1, m = 0, v, y, b, w, I = Promise.resolve(), A, E, O = !1, B = !1, P = !1;
14473
14480
  const j = !!Ot();
14474
- function H() {
14481
+ function V() {
14475
14482
  clearTimeout(A), clearTimeout(E), A = void 0, E = void 0;
14476
14483
  }
14477
14484
  function W() {
14478
14485
  return j && typeof document < "u" && !h && O && !g.value && (e.pollingWhenHidden || document.visibilityState !== "hidden");
14479
14486
  }
14480
- function Y(M) {
14487
+ function X(M) {
14481
14488
  f.value = M instanceof Error ? M : new Error(String(M));
14482
14489
  try {
14483
14490
  e.onError?.(f.value);
@@ -14486,13 +14493,13 @@ function id(e) {
14486
14493
  }
14487
14494
  }
14488
14495
  function q() {
14489
- if (H(), !W() || y || f.value && !e.pollingOnError) return;
14496
+ if (V(), !W() || y || f.value && !e.pollingOnError) return;
14490
14497
  const M = lt(e.polling);
14491
14498
  let L;
14492
14499
  try {
14493
- L = typeof M == "function" ? M(de(c.value)) : M;
14500
+ L = typeof M == "function" ? M(fe(c.value)) : M;
14494
14501
  } catch (F) {
14495
- Y(F);
14502
+ X(F);
14496
14503
  return;
14497
14504
  }
14498
14505
  typeof L != "number" || !Number.isFinite(L) || L <= 0 || (A = setTimeout(
@@ -14503,39 +14510,39 @@ function id(e) {
14503
14510
  ));
14504
14511
  }
14505
14512
  function U() {
14506
- H(), m++, v !== void 0 && clearTimeout(v), v = void 0, y?.abort(), y = void 0, b?.(), b = void 0, d.value = !1, u.value = !1, w = void 0;
14513
+ V(), m++, v !== void 0 && clearTimeout(v), v = void 0, y?.abort(), y = void 0, b?.(), b = void 0, d.value = !1, u.value = !1, w = void 0;
14507
14514
  }
14508
14515
  function x() {
14509
- g.value = !0, H(), y && P && U();
14516
+ g.value = !0, V(), y && P && U();
14510
14517
  }
14511
14518
  function T() {
14512
14519
  g.value = !0, U();
14513
14520
  }
14514
- function S(M = !1, L = !1, F = !1, V = !1) {
14521
+ function S(M = !1, L = !1, F = !1, H = !1) {
14515
14522
  if (h) return Promise.resolve();
14516
14523
  let K;
14517
14524
  try {
14518
- const se = de({ ...t, ...r.value, ...Ee(e.params) });
14525
+ const se = fe({ ...t, ...r.value, ...Ee(e.params) });
14519
14526
  K = {
14520
14527
  ...e.beforeSearchSubmit?.(se) ?? se,
14521
14528
  current: l.value,
14522
14529
  pageSize: a.value
14523
14530
  };
14524
14531
  } catch (se) {
14525
- return U(), Y(se), Promise.resolve();
14532
+ return U(), X(se), Promise.resolve();
14526
14533
  }
14527
- const X = de(o.value), ee = de(n.value), Z = de({ params: K, sort: X, filters: ee });
14528
- if (V && y && v === void 0 && gt(w, Z) || !M && w !== void 0 && gt(w, Z)) return I;
14534
+ const Y = fe(o.value), J = fe(n.value), Z = fe({ params: K, sort: Y, filters: J });
14535
+ if (H && y && v === void 0 && gt(w, Z) || !M && w !== void 0 && gt(w, Z)) return I;
14529
14536
  U(), O = !0, P = F, w = Z;
14530
- const ve = m, fe = new AbortController();
14531
- return y = fe, u.value = F && B, d.value = !u.value, f.value = null, I = new Promise((se) => {
14537
+ const ue = m, ve = new AbortController();
14538
+ return y = ve, u.value = F && B, d.value = !u.value, f.value = null, I = new Promise((se) => {
14532
14539
  b = se;
14533
14540
  const ge = async () => {
14534
14541
  v = void 0;
14535
14542
  try {
14536
14543
  for (let Pe = 0; Pe < 2; Pe++) {
14537
- const Te = await e.request(K, X, ee, { signal: fe.signal });
14538
- if (h || ve !== m || fe.signal.aborted) return;
14544
+ const Te = await e.request(K, Y, J, { signal: ve.signal });
14545
+ if (h || ue !== m || ve.signal.aborted) return;
14539
14546
  if (Te.success === !1) throw new Error("Table request was unsuccessful");
14540
14547
  if (!Array.isArray(Te.data))
14541
14548
  throw new Error("Table request data must be an array");
@@ -14548,13 +14555,13 @@ function id(e) {
14548
14555
  }
14549
14556
  const Ce = e.postData ? e.postData(Te.data) : Te.data;
14550
14557
  if (!Array.isArray(Ce)) throw new Error("Table postData must return an array");
14551
- l.value = Math.min(K.current, Ne), s.value = Te.total, c.value = Ce, B = !0, w = de({ params: { ...K, current: l.value }, sort: X, filters: ee }), e.onLoad?.(Ce, Te);
14558
+ l.value = Math.min(K.current, Ne), s.value = Te.total, c.value = Ce, B = !0, w = fe({ params: { ...K, current: l.value }, sort: Y, filters: J }), e.onLoad?.(Ce, Te);
14552
14559
  break;
14553
14560
  }
14554
14561
  } catch (Pe) {
14555
- !h && ve === m && !fe.signal.aborted && (w = void 0, Y(Pe));
14562
+ !h && ue === m && !ve.signal.aborted && (w = void 0, X(Pe));
14556
14563
  } finally {
14557
- ve === m && (d.value = !1, u.value = !1, y = void 0, b = void 0, q()), se();
14564
+ ue === m && (d.value = !1, u.value = !1, y = void 0, b = void 0, q()), se();
14558
14565
  }
14559
14566
  }, we = L ? 0 : Math.max(0, e.debounceTime ?? 0);
14560
14567
  we > 0 ? v = setTimeout(() => {
@@ -14564,22 +14571,22 @@ function id(e) {
14564
14571
  }
14565
14572
  const D = (M, L, F) => {
14566
14573
  if (F.action === "select") return;
14567
- const V = nt(F.pagination?.pageSize, a.value), K = V !== a.value;
14568
- o.value = Ku(L), n.value = de(M), l.value = F.action !== "paginate" || K && e.resetOnPageSizeChange !== !1 ? 1 : nt(F.pagination?.current, l.value), a.value = V, S();
14574
+ const H = nt(F.pagination?.pageSize, a.value), K = H !== a.value;
14575
+ o.value = Ku(L), n.value = fe(M), l.value = F.action !== "paginate" || K && e.resetOnPageSizeChange !== !1 ? 1 : nt(F.pagination?.current, l.value), a.value = H, S();
14569
14576
  };
14570
- let N = de(Ee(e.params));
14571
- const z = Q(
14577
+ let N = fe(Ee(e.params));
14578
+ const z = ee(
14572
14579
  () => Ee(e.params),
14573
14580
  (M) => {
14574
- gt(N, M) || (N = de(M), l.value = 1, S());
14581
+ gt(N, M) || (N = fe(M), l.value = 1, S());
14575
14582
  },
14576
14583
  { deep: !0 }
14577
- ), C = Q(
14584
+ ), C = ee(
14578
14585
  () => [lt(e.polling), Ee(e.revalidateOnFocus)],
14579
14586
  q
14580
14587
  );
14581
14588
  function R() {
14582
- H(), W() && (document.visibilityState === "visible" && Ee(e.revalidateOnFocus) ? E = setTimeout(() => {
14589
+ V(), W() && (document.visibilityState === "visible" && Ee(e.revalidateOnFocus) ? E = setTimeout(() => {
14583
14590
  E = void 0, W() && !y && S(!0, !0, !0, !0);
14584
14591
  }, 0) : q());
14585
14592
  }
@@ -14606,10 +14613,10 @@ function id(e) {
14606
14613
  return M && (l.value = 1), S(!0, !0, !1, !0);
14607
14614
  },
14608
14615
  submit(M = {}) {
14609
- return r.value = de(M), l.value = 1, S(!0);
14616
+ return r.value = fe(M), l.value = 1, S(!0);
14610
14617
  },
14611
14618
  reset(M = t) {
14612
- return r.value = de(M), o.value = {}, n.value = {}, l.value = 1, S(!0);
14619
+ return r.value = fe(M), o.value = {}, n.value = {}, l.value = 1, S(!0);
14613
14620
  },
14614
14621
  cancel: T,
14615
14622
  pause: x,
@@ -14657,10 +14664,10 @@ function sd(e) {
14657
14664
  let u = t.find(
14658
14665
  (i) => i.keyword === c && gt(i.params, a)
14659
14666
  );
14660
- if (u?.result && !d) return Promise.resolve(de(u.result));
14667
+ if (u?.result && !d) return Promise.resolve(fe(u.result));
14661
14668
  if (!u?.pending) {
14662
14669
  u && n(u);
14663
- const i = new AbortController(), h = de(a), m = {
14670
+ const i = new AbortController(), h = fe(a), m = {
14664
14671
  params: h,
14665
14672
  keyword: c,
14666
14673
  expires: 0,
@@ -14669,7 +14676,7 @@ function sd(e) {
14669
14676
  users: /* @__PURE__ */ new Set(),
14670
14677
  task: Promise.resolve().then(() => {
14671
14678
  if (i.signal.aborted) throw sr();
14672
- return e.request(de(h), { signal: i.signal, keyword: c });
14679
+ return e.request(fe(h), { signal: i.signal, keyword: c });
14673
14680
  }).then((v) => {
14674
14681
  if (i.signal.aborted) throw sr();
14675
14682
  const y = qu(v, c);
@@ -14690,7 +14697,7 @@ function sd(e) {
14690
14697
  }
14691
14698
  s.addEventListener("abort", v, { once: !0 }), g.task.then(
14692
14699
  (y) => {
14693
- m(), s.aborted ? h(sr()) : i(de(y));
14700
+ m(), s.aborted ? h(sr()) : i(fe(y));
14694
14701
  },
14695
14702
  (y) => {
14696
14703
  m(), h(y);
@@ -14702,7 +14709,7 @@ function sd(e) {
14702
14709
  }
14703
14710
  function cd(e) {
14704
14711
  const t = $(e.defaultKeyword ?? ""), r = ie([]), o = ie(/* @__PURE__ */ new Map()), n = $(!1), l = $(!1), a = ie(null);
14705
- let s = de(Ee(e.params) ?? {}), c = !1, d = 0, u, g, f, i, h = Promise.resolve(!1);
14712
+ let s = fe(Ee(e.params) ?? {}), c = !1, d = 0, u, g, f, i, h = Promise.resolve(!1);
14706
14713
  function m() {
14707
14714
  d++, clearTimeout(g), g = void 0, u?.abort(), u = void 0, i = void 0, f?.(!1), f = void 0, l.value = !1;
14708
14715
  }
@@ -14713,25 +14720,25 @@ function cd(e) {
14713
14720
  m();
14714
14721
  const I = d, A = new AbortController();
14715
14722
  u = A;
14716
- const E = de(s), O = t.value;
14723
+ const E = fe(s), O = t.value;
14717
14724
  return i = { params: E, keyword: O }, l.value = !0, n.value = !1, a.value = null, h = new Promise((B) => {
14718
14725
  f = B;
14719
14726
  const P = async () => {
14720
14727
  g = void 0;
14721
14728
  try {
14722
- const H = await e.dictionary.load(E, {
14729
+ const V = await e.dictionary.load(E, {
14723
14730
  keyword: O,
14724
14731
  signal: A.signal,
14725
14732
  force: w
14726
14733
  });
14727
14734
  if (c || I !== d) return;
14728
- r.value = H.options, n.value = H.complete;
14729
- const W = H.complete ? /* @__PURE__ */ new Map() : new Map(o.value);
14730
- for (const Y of H.options) W.set(Y.value, Y);
14735
+ r.value = V.options, n.value = V.complete;
14736
+ const W = V.complete ? /* @__PURE__ */ new Map() : new Map(o.value);
14737
+ for (const X of V.options) W.set(X.value, X);
14731
14738
  o.value = W, B(!0);
14732
- } catch (H) {
14739
+ } catch (V) {
14733
14740
  if (!c && I === d && !A.signal.aborted) {
14734
- a.value = H instanceof Error ? H : new Error(String(H));
14741
+ a.value = V instanceof Error ? V : new Error(String(V));
14735
14742
  try {
14736
14743
  e.onError?.(a.value);
14737
14744
  } catch (W) {
@@ -14748,10 +14755,10 @@ function cd(e) {
14748
14755
  }, j) : P();
14749
14756
  }), h;
14750
14757
  }
14751
- const y = Q(
14758
+ const y = ee(
14752
14759
  () => Ee(e.params),
14753
14760
  (b) => {
14754
- gt(s, b ?? {}) || (s = de(b ?? {}), t.value = "", o.value = /* @__PURE__ */ new Map(), r.value = [], v());
14761
+ gt(s, b ?? {}) || (s = fe(b ?? {}), t.value = "", o.value = /* @__PURE__ */ new Map(), r.value = [], v());
14755
14762
  },
14756
14763
  { deep: !0 }
14757
14764
  );
@@ -14780,7 +14787,7 @@ function cd(e) {
14780
14787
  };
14781
14788
  }
14782
14789
  function Uu(e) {
14783
- const t = ie(/* @__PURE__ */ new Map()), r = ie(/* @__PURE__ */ new Map()), o = ie(/* @__PURE__ */ new Map()), n = ie(/* @__PURE__ */ new Map()), l = ie(), a = ie(), s = e.clone ?? ((x) => de(x));
14790
+ const t = ie(/* @__PURE__ */ new Map()), r = ie(/* @__PURE__ */ new Map()), o = ie(/* @__PURE__ */ new Map()), n = ie(/* @__PURE__ */ new Map()), l = ie(), a = ie(), s = e.clone ?? ((x) => fe(x));
14784
14791
  let c = !1;
14785
14792
  function d(x) {
14786
14793
  const T = typeof e.rowKey == "function" ? e.rowKey(x) : x[e.rowKey];
@@ -14968,7 +14975,7 @@ function Uu(e) {
14968
14975
  if (d(D) !== x) throw new Error("Editing a row key is unsupported");
14969
14976
  return f(), w(x), I(x), y(x), t.value = new Map(t.value).set(x, { ...S, draft: s(D) }), !0;
14970
14977
  }
14971
- function H(x) {
14978
+ function V(x) {
14972
14979
  const T = o.value.get(x);
14973
14980
  if (T) return T.promise;
14974
14981
  const S = t.value.get(x);
@@ -14990,35 +14997,35 @@ function Uu(e) {
14990
14997
  return (async () => {
14991
14998
  let L = "validation";
14992
14999
  try {
14993
- const F = s(S.draft), V = await e.validate?.(s(F), R);
15000
+ const F = s(S.draft), H = await e.validate?.(s(F), R);
14994
15001
  if (!C()) return;
14995
- if (V?.message || Object.keys(V?.fields ?? {}).length > 0) {
15002
+ if (H?.message || Object.keys(H?.fields ?? {}).length > 0) {
14996
15003
  M({
14997
- ...V,
15004
+ ...H,
14998
15005
  type: "validation",
14999
- message: V?.message ?? "Validation failed"
15006
+ message: H?.message ?? "Validation failed"
15000
15007
  });
15001
15008
  return;
15002
15009
  }
15003
15010
  L = "save";
15004
- const K = m(x, { ...S, draft: F }, R.signal), X = await e.onSave?.(s(K), R);
15005
- if (!C() || X === !1) return;
15006
- const ee = X === !0 ? K : X ?? K;
15007
- if (!S.isNew && d(ee) !== x)
15011
+ const K = m(x, { ...S, draft: F }, R.signal), Y = await e.onSave?.(s(K), R);
15012
+ if (!C() || Y === !1) return;
15013
+ const J = Y === !0 ? K : Y ?? K;
15014
+ if (!S.isNew && d(J) !== x)
15008
15015
  throw new Error("Saving an existing row cannot change its key");
15009
- const Z = s(ee), ve = d(Z);
15010
- if (ve !== x && t.value.has(ve))
15016
+ const Z = s(J), ue = d(Z);
15017
+ if (ue !== x && t.value.has(ue))
15011
15018
  throw new Error("Saving a new row cannot duplicate another draft row key");
15012
15019
  if (e.dataSource !== void 0 && e.onChange) {
15013
15020
  const se = u().map(s);
15014
- if (S.isNew && se.some((we) => d(we) === x || d(we) === ve))
15021
+ if (S.isNew && se.some((we) => d(we) === x || d(we) === ue))
15015
15022
  throw new Error("Saving a new row cannot duplicate a source row key");
15016
15023
  const ge = se.findIndex((we) => d(we) === x);
15017
15024
  if (ge >= 0 ? se[ge] = s(Z) : S.position === "top" ? se.unshift(s(Z)) : se.push(s(Z)), g(se), !C()) return;
15018
15025
  }
15019
15026
  f();
15020
- const fe = new Map(t.value);
15021
- fe.delete(x), t.value = fe, y(x), z.resolve(Z);
15027
+ const ve = new Map(t.value);
15028
+ ve.delete(x), t.value = ve, y(x), z.resolve(Z);
15022
15029
  } catch (F) {
15023
15030
  M({
15024
15031
  type: L,
@@ -15062,14 +15069,14 @@ function Uu(e) {
15062
15069
  try {
15063
15070
  if (F.entry?.isNew && T.has(F.key))
15064
15071
  throw new Error("A cached new row duplicates a source row key");
15065
- const V = F.entry ?? {
15072
+ const H = F.entry ?? {
15066
15073
  original: s(F.record),
15067
15074
  draft: h(F.record, F.key, F.record, !1),
15068
15075
  isNew: !1,
15069
15076
  position: "bottom"
15070
15077
  }, K = await e.validate?.(
15071
- s(V.draft),
15072
- i(F.key, V, z.controller.signal)
15078
+ s(H.draft),
15079
+ i(F.key, H, z.controller.signal)
15073
15080
  );
15074
15081
  if (!C()) return;
15075
15082
  (K?.message || Object.keys(K?.fields ?? {}).length) && R.set(F.key, {
@@ -15077,12 +15084,12 @@ function Uu(e) {
15077
15084
  type: "validation",
15078
15085
  message: K?.message ?? "Validation failed"
15079
15086
  });
15080
- } catch (V) {
15087
+ } catch (H) {
15081
15088
  if (!C()) return;
15082
15089
  R.set(F.key, {
15083
15090
  type: "validation",
15084
- message: V instanceof Error ? V.message : String(V),
15085
- cause: V
15091
+ message: H instanceof Error ? H.message : String(H),
15092
+ cause: H
15086
15093
  });
15087
15094
  }
15088
15095
  }
@@ -15093,22 +15100,22 @@ function Uu(e) {
15093
15100
  M.push(
15094
15101
  F.entry ? m(F.key, F.entry, z.controller.signal) : s(F.record)
15095
15102
  );
15096
- } catch (V) {
15103
+ } catch (H) {
15097
15104
  R.set(F.key, {
15098
15105
  type: "validation",
15099
- message: V instanceof Error ? V.message : String(V),
15100
- cause: V
15106
+ message: H instanceof Error ? H.message : String(H),
15107
+ cause: H
15101
15108
  });
15102
15109
  }
15103
15110
  if (!C()) return;
15104
15111
  }
15105
15112
  if (!C()) return;
15106
15113
  const L = new Map([...r.value].filter(([, F]) => F.type !== "validation"));
15107
- for (const [F, V] of R) L.set(F, V);
15114
+ for (const [F, H] of R) L.set(F, H);
15108
15115
  r.value = L;
15109
- for (const [F, V] of R) {
15116
+ for (const [F, H] of R) {
15110
15117
  try {
15111
- e.onError?.(de(V), F);
15118
+ e.onError?.(fe(H), F);
15112
15119
  } catch {
15113
15120
  }
15114
15121
  if (!C()) return;
@@ -15120,14 +15127,14 @@ function Uu(e) {
15120
15127
  });
15121
15128
  })(), N;
15122
15129
  }
15123
- function Y() {
15130
+ function X() {
15124
15131
  f(), a.value = void 0;
15125
15132
  for (const x of o.value.keys()) w(x);
15126
15133
  for (const x of n.value.keys()) I(x);
15127
15134
  t.value = /* @__PURE__ */ new Map(), r.value = /* @__PURE__ */ new Map();
15128
15135
  }
15129
15136
  let q = Ee(e.dataSource)?.map(s);
15130
- const U = e.dataSource === void 0 ? void 0 : Q(
15137
+ const U = e.dataSource === void 0 ? void 0 : ee(
15131
15138
  () => Ee(e.dataSource),
15132
15139
  (x) => {
15133
15140
  a.value && (a.value = void 0, f()), !gt(q, x) && (q = x?.map(s), f());
@@ -15135,7 +15142,7 @@ function Uu(e) {
15135
15142
  { deep: !0, flush: "sync" }
15136
15143
  );
15137
15144
  return Ot() && Lt(() => {
15138
- c = !0, U?.(), Y();
15145
+ c = !0, U?.(), X();
15139
15146
  }), {
15140
15147
  records: k(() => v(!1)),
15141
15148
  validating: k(() => !!l.value),
@@ -15164,11 +15171,11 @@ function Uu(e) {
15164
15171
  getDrafts: () => new Map([...t.value].map(([x, T]) => [x, s(T.draft)])),
15165
15172
  getValues: () => v(!0),
15166
15173
  validateAll: W,
15167
- reset: Y,
15174
+ reset: X,
15168
15175
  start: (x) => B(x, !1),
15169
15176
  add: P,
15170
15177
  setDraft: j,
15171
- save: H,
15178
+ save: V,
15172
15179
  cancel: E,
15173
15180
  cancelAll: O
15174
15181
  };
@@ -15235,7 +15242,7 @@ function pa(e) {
15235
15242
  );
15236
15243
  }
15237
15244
  function ud(e) {
15238
- const t = e.clone ?? de, r = () => pa(Ee(e.columns)).filter(
15245
+ const t = e.clone ?? fe, r = () => pa(Ee(e.columns)).filter(
15239
15246
  (c) => c.editor && c.dataIndex !== void 0
15240
15247
  );
15241
15248
  function o(c, d, u) {
@@ -15383,7 +15390,7 @@ const dd = /* @__PURE__ */ le({
15383
15390
  },
15384
15391
  layout: {
15385
15392
  type: String,
15386
- default: "form"
15393
+ default: "light"
15387
15394
  },
15388
15395
  autoSubmit: Boolean,
15389
15396
  debounceTime: {
@@ -15434,10 +15441,10 @@ const dd = /* @__PURE__ */ le({
15434
15441
  function j() {
15435
15442
  clearTimeout(g), g = void 0;
15436
15443
  }
15437
- Q(() => [e.layout, e.autoSubmit, e.disabled], j, {
15444
+ ee(() => [e.layout, e.autoSubmit, e.disabled], j, {
15438
15445
  flush: "sync"
15439
15446
  });
15440
- function H() {
15447
+ function V() {
15441
15448
  j(), i++, f?.abort(), y?.(!1), y = void 0, f = void 0, d.value = !1, m = void 0, v = void 0;
15442
15449
  }
15443
15450
  function W() {
@@ -15445,13 +15452,13 @@ const dd = /* @__PURE__ */ le({
15445
15452
  omitFields: b.value.filter(I).map((x) => x.name)
15446
15453
  } : void 0;
15447
15454
  }
15448
- function Y(x) {
15455
+ function X(x) {
15449
15456
  if (h || e.disabled) return Promise.resolve(!1);
15450
15457
  if (j(), v && m === x) return v;
15451
- H();
15458
+ V();
15452
15459
  const T = i, S = new AbortController();
15453
15460
  f = S, m = x, u.value = void 0, x === "reset" && e.query.resetFields();
15454
- const D = de(e.query.draft.value), N = W();
15461
+ const D = fe(e.query.draft.value), N = W();
15455
15462
  d.value = !0;
15456
15463
  let z;
15457
15464
  return v = new Promise((C) => {
@@ -15477,50 +15484,51 @@ const dd = /* @__PURE__ */ le({
15477
15484
  x = b.value.find((C) => C.name === x.name) ?? x;
15478
15485
  const S = w(x), D = typeof x.disabled == "function" ? x.disabled(S) : x.disabled, N = typeof x.readonly == "function" ? x.readonly(S) : x.readonly;
15479
15486
  if (e.disabled || e.query.submitting.value || D || N || gt(e.query.draft.value[x.name], T)) return;
15480
- H(), u.value = void 0;
15487
+ V(), u.value = void 0;
15481
15488
  const z = e.query.draft;
15482
15489
  z.value = {
15483
15490
  ...z.value,
15484
- [x.name]: de(T)
15491
+ [x.name]: fe(T)
15485
15492
  }, e.layout === "light" && e.autoSubmit && (g = setTimeout(() => {
15486
- g = void 0, !h && e.layout === "light" && e.autoSubmit && !e.disabled && Y("submit");
15493
+ g = void 0, !h && e.layout === "light" && e.autoSubmit && !e.disabled && X("submit");
15487
15494
  }, Math.max(0, e.debounceTime)));
15488
15495
  }
15489
15496
  We(() => {
15490
- h = !0, H();
15497
+ h = !0, V();
15491
15498
  });
15492
15499
  const U = {
15493
- submit: () => Y("submit"),
15494
- reset: () => Y("reset"),
15495
- cancel: H
15500
+ submit: () => X("submit"),
15501
+ reset: () => X("reset"),
15502
+ cancel: V
15496
15503
  };
15497
15504
  return n(U), () => {
15498
15505
  const x = e.rootTag;
15499
15506
  return p(x, ze(t, {
15500
15507
  class: a.root(),
15508
+ "data-query-layout": e.layout,
15501
15509
  "aria-label": s.value.label,
15502
15510
  onSubmit: (T) => {
15503
- T.preventDefault(), Y("submit");
15511
+ T.preventDefault(), X("submit");
15504
15512
  }
15505
15513
  }), {
15506
15514
  default: () => [p("div", {
15507
15515
  class: a.fields()
15508
15516
  }, [B.value.map((T) => {
15509
15517
  const S = w(T), D = `${c}-${T.name}`, N = e.errors?.[T.name] ?? Ee(T.dictionary?.error)?.message, z = typeof T.readonly == "function" ? T.readonly(S) : !!T.readonly, C = e.disabled || e.query.submitting.value || (typeof T.disabled == "function" ? T.disabled(S) : !!T.disabled), R = [...Ee(T.options) ?? Ee(T.dictionary?.options) ?? []], M = e.query.draft.value[T.name];
15510
- for (const V of Array.isArray(M) ? M : [M]) {
15511
- if (!T.dictionary || !["string", "number", "boolean"].includes(typeof V) || R.some((ee) => Object.is(ee.value, V))) continue;
15512
- const K = Ee(T.dictionary.valueEnum).get(V), X = typeof K == "string" ? K : K?.text;
15513
- typeof X == "string" && R.push({
15514
- value: V,
15515
- label: X,
15516
- ...typeof K == "object" ? {
15517
- status: K.status
15518
+ for (const Y of Array.isArray(M) ? M : [M]) {
15519
+ if (!T.dictionary || !["string", "number", "boolean"].includes(typeof Y) || R.some((ue) => Object.is(ue.value, Y))) continue;
15520
+ const J = Ee(T.dictionary.valueEnum).get(Y), Z = typeof J == "string" ? J : J?.text;
15521
+ typeof Z == "string" && R.push({
15522
+ value: Y,
15523
+ label: Z,
15524
+ ...typeof J == "object" ? {
15525
+ status: J.status
15518
15526
  } : {}
15519
15527
  });
15520
15528
  }
15521
15529
  const L = {
15522
15530
  value: M,
15523
- onChange: (V) => q(T, V),
15531
+ onChange: (Y) => q(T, Y),
15524
15532
  fieldProps: typeof T.fieldProps == "function" ? T.fieldProps(S) : T.fieldProps ?? {},
15525
15533
  options: R,
15526
15534
  disabled: C,
@@ -15530,10 +15538,10 @@ const dd = /* @__PURE__ */ le({
15530
15538
  id: D,
15531
15539
  name: T.name,
15532
15540
  mode: "query",
15533
- onSearch: T.dictionary ? (V) => {
15534
- T.dictionary.search(V);
15541
+ onSearch: T.dictionary ? (Y) => {
15542
+ T.dictionary.search(Y);
15535
15543
  } : void 0
15536
- }, F = e.controls[T.valueType ?? "text"] ?? e.controls.text;
15544
+ }, F = T.valueType ?? "text", H = Object.prototype.hasOwnProperty.call(e.controls, F) ? e.controls[F] : void 0, K = H ?? e.controls.text;
15537
15545
  return p("div", {
15538
15546
  key: T.name,
15539
15547
  class: a.field(),
@@ -15542,12 +15550,13 @@ const dd = /* @__PURE__ */ le({
15542
15550
  class: a.label(),
15543
15551
  for: D
15544
15552
  }, [T.label ?? T.name]), p("div", {
15545
- class: a.control()
15553
+ class: a.control(),
15554
+ "data-query-value-type": H ? F : "text"
15546
15555
  }, [r.field?.({
15547
15556
  field: T,
15548
15557
  values: e.query.draft.value,
15549
15558
  control: L
15550
- }) ?? F?.(L), N ? p("div", {
15559
+ }) ?? K?.(L), N ? p("div", {
15551
15560
  class: a.error(),
15552
15561
  role: "alert",
15553
15562
  id: `${D}-error`
@@ -15563,7 +15572,7 @@ const dd = /* @__PURE__ */ le({
15563
15572
  htmlType: "button",
15564
15573
  disabled: P.value,
15565
15574
  onClick: (T) => {
15566
- T.preventDefault(), Y("reset");
15575
+ T.preventDefault(), X("reset");
15567
15576
  }
15568
15577
  }, {
15569
15578
  default: () => [s.value.reset]
@@ -15572,7 +15581,7 @@ const dd = /* @__PURE__ */ le({
15572
15581
  htmlType: e.rootTag === "form" ? "submit" : "button",
15573
15582
  disabled: P.value,
15574
15583
  onClick: (T) => {
15575
- T.preventDefault(), Y("submit");
15584
+ T.preventDefault(), X("submit");
15576
15585
  }
15577
15586
  }, {
15578
15587
  default: () => [s.value.submit]
@@ -15773,9 +15782,9 @@ function md(e) {
15773
15782
  return ha(e, !0);
15774
15783
  }
15775
15784
  function pd(e) {
15776
- const t = de(e.defaultValues), r = $(de(t)), o = ie(), n = ie(), l = e.collapsed ?? $(e.defaultCollapsed ?? !0), a = $(!1), s = ie(null);
15785
+ const t = fe(e.defaultValues), r = $(fe(t)), o = ie(), n = ie(), l = e.collapsed ?? $(e.defaultCollapsed ?? !0), a = $(!1), s = ie(null);
15777
15786
  let c = 0, d = !1;
15778
- const u = e.onCollapse ? Q(l, (i) => e.onCollapse?.(i), { flush: "sync" }) : void 0;
15787
+ const u = e.onCollapse ? ee(l, (i) => e.onCollapse?.(i), { flush: "sync" }) : void 0;
15779
15788
  function g(i, h) {
15780
15789
  const m = e.fieldTransforms, v = new Set(h?.omitFields ?? []), y = {};
15781
15790
  for (const [w, I] of Object.entries(i))
@@ -15785,15 +15794,15 @@ function pd(e) {
15785
15794
  I && !v.has(w) && Object.assign(y, I(i[w], i));
15786
15795
  }
15787
15796
  const b = y;
15788
- return de(e.transform?.(b, i) ?? b);
15797
+ return fe(e.transform?.(b, i) ?? b);
15789
15798
  }
15790
15799
  async function f(i, h) {
15791
15800
  if (d) return !1;
15792
15801
  const m = ++c;
15793
15802
  a.value = !0, s.value = null;
15794
15803
  try {
15795
- const v = de(r.value), y = g(v, h);
15796
- return o.value = de(v), n.value = de(y), await (i ? e.onReset ?? e.onSubmit : e.onSubmit)?.(de(y), de(v)), !d && m === c;
15804
+ const v = fe(r.value), y = g(v, h);
15805
+ return o.value = fe(v), n.value = fe(y), await (i ? e.onReset ?? e.onSubmit : e.onSubmit)?.(fe(y), fe(v)), !d && m === c;
15797
15806
  } catch (v) {
15798
15807
  return !d && m === c && (s.value = v instanceof Error ? v : new Error(String(v))), !1;
15799
15808
  } finally {
@@ -15804,17 +15813,17 @@ function pd(e) {
15804
15813
  d = !0, c++, a.value = !1, u?.();
15805
15814
  }), {
15806
15815
  draft: r,
15807
- submitted: k(() => o.value && de(o.value)),
15808
- params: k(() => n.value && de(n.value)),
15816
+ submitted: k(() => o.value && fe(o.value)),
15817
+ params: k(() => n.value && fe(n.value)),
15809
15818
  collapsed: l,
15810
15819
  submitting: k(() => a.value),
15811
15820
  error: s,
15812
15821
  submit: (i) => f(!1, i),
15813
15822
  reset(i) {
15814
- return d ? Promise.resolve(!1) : (r.value = de(t), f(!0, i));
15823
+ return d ? Promise.resolve(!1) : (r.value = fe(t), f(!0, i));
15815
15824
  },
15816
15825
  resetFields() {
15817
- d || (r.value = de(t));
15826
+ d || (r.value = fe(t));
15818
15827
  },
15819
15828
  toggleCollapsed() {
15820
15829
  l.value = !l.value;
@@ -15850,7 +15859,7 @@ function cr(e) {
15850
15859
  }
15851
15860
  function hd(e, t = {}) {
15852
15861
  const r = ie(cr(t.defaultValue)), o = {};
15853
- Q(
15862
+ ee(
15854
15863
  () => vo(Ee(e)),
15855
15864
  (f) => {
15856
15865
  for (const [i, h] of Object.entries(f))
@@ -15921,7 +15930,7 @@ function hd(e, t = {}) {
15921
15930
  function g() {
15922
15931
  r.value = { ...o, ...cr(t.defaultValue) }, c();
15923
15932
  }
15924
- return Un() ? it(d) : d(), Q(a, c, { deep: !0 }), { columns: l, state: a, setState: u, reset: g, restore: d, save: c };
15933
+ return Un() ? it(d) : d(), ee(a, c, { deep: !0 }), { columns: l, state: a, setState: u, reset: g, restore: d, save: c };
15925
15934
  }
15926
15935
  const bd = Object.assign(Bu, {
15927
15936
  SELECTION_ALL: Jl,