@aiquants/resize-panels 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import Vt, { createContext as Yt, useContext as qt, useCallback as fe, useMemo as de, useReducer as Xt, useState as ze, useRef as pe, useLayoutEffect as Ye, useEffect as ue, memo as nt, useSyncExternalStore as Et } from "react";
1
+ import Vt, { createContext as Yt, useContext as qt, useCallback as pe, useMemo as ue, useReducer as Xt, useState as Se, useRef as me, useLayoutEffect as Ye, useEffect as fe, memo as nt, useSyncExternalStore as Et } from "react";
2
2
  import { createPortal as Jt } from "react-dom";
3
3
  const Mt = Yt(null), it = () => {
4
4
  const e = qt(Mt);
@@ -10,10 +10,10 @@ const Mt = Yt(null), it = () => {
10
10
  return e;
11
11
  const r = 10 ** t, o = e * r, i = Math.floor(o), s = o - i, a = Number.EPSILON * Math.max(1, Math.abs(o));
12
12
  return s < 0.5 - a ? i / r : s > 0.5 + a ? (i + 1) / r : (i % 2 === 0 ? i : i + 1) / r;
13
- }, _t = 12, dt = 8, Zt = 8, Qt = 8, It = 0.05, At = 10, Kt = 0.05, er = 20, tr = 0.05, Xe = 0, ut = 0, Nt = 6, me = (e, t) => t <= 0 ? 0 : Rt(e / t * 100, Nt), Be = (e, t) => !e || t <= 0 ? 0 : e / 100 * t, Le = (e, t = "percentage") => {
13
+ }, _t = 12, dt = 8, Zt = 8, Qt = 8, It = 0.05, At = 10, Kt = 0.05, er = 20, tr = 0.05, Xe = 0, ut = 0, Nt = 6, ge = (e, t) => t <= 0 ? 0 : Rt(e / t * 100, Nt), Be = (e, t) => !e || t <= 0 ? 0 : e / 100 * t, Le = (e, t = "percentage") => {
14
14
  if (e !== void 0)
15
15
  return typeof e == "number" ? { value: e, unit: t } : e;
16
- }, ft = (e, t) => e ? e.unit === "percentage" ? e.value / 100 * t : e.value : 0, oe = (e, t, r) => e ? typeof e == "number" ? e / 100 * r : e.unit === "pixels" ? e.value : e.value / 100 * r : t, he = (e, t, r) => Math.min(Math.max(e, t), r), Ke = (e) => {
16
+ }, ft = (e, t) => e ? e.unit === "percentage" ? e.value / 100 * t : e.value : 0, se = (e, t, r) => e ? typeof e == "number" ? e / 100 * r : e.unit === "pixels" ? e.value : e.value / 100 * r : t, he = (e, t, r) => Math.min(Math.max(e, t), r), Ke = (e) => {
17
17
  if (!Number.isFinite(e) || e <= 0)
18
18
  return ut;
19
19
  const t = e * It, r = Math.min(_t, At, t);
@@ -25,8 +25,8 @@ const Mt = Yt(null), it = () => {
25
25
  if (o.length === 0)
26
26
  return t;
27
27
  const i = [...o].sort((l, c) => {
28
- const S = l.panel.pixelAdjustPriority ?? l.index + 1, b = c.panel.pixelAdjustPriority ?? c.index + 1;
29
- return S === b ? l.index - c.index : S - b;
28
+ const P = l.panel.pixelAdjustPriority ?? l.index + 1, z = c.panel.pixelAdjustPriority ?? c.index + 1;
29
+ return P === z ? l.index - c.index : P - z;
30
30
  });
31
31
  let s = t;
32
32
  return (() => {
@@ -36,41 +36,41 @@ const Mt = Yt(null), it = () => {
36
36
  const c = e[l];
37
37
  if (!c || c.collapsed)
38
38
  continue;
39
- const S = Le(c.minSize, "pixels"), b = Le(c.maxSize, "pixels"), d = S ? ft(S, r) : 0, u = b ? ft(b, r) : r;
39
+ const P = Le(c.minSize, "pixels"), z = Le(c.maxSize, "pixels"), f = P ? ft(P, r) : 0, d = z ? ft(z, r) : r;
40
40
  if (s > 0) {
41
41
  if (Math.abs(c.size) <= 0 && (c.percentageSize ?? 0) <= 0)
42
42
  continue;
43
- const w = Math.max(0, u - c.size);
44
- if (w <= 0)
43
+ const v = Math.max(0, d - c.size);
44
+ if (v <= 0)
45
45
  continue;
46
- const C = Math.min(w, s);
47
- if (C <= 0)
46
+ const w = Math.min(v, s);
47
+ if (w <= 0)
48
48
  continue;
49
- const v = c.size + C, p = me(v, r), m = c.collapsible ? v : c.sizeBeforeCollapse, R = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? v : c.measuredPixelSizeBeforeCollapse;
49
+ const C = c.size + w, p = ge(C, r), x = c.collapsible ? C : c.sizeBeforeCollapse, k = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? C : c.measuredPixelSizeBeforeCollapse;
50
50
  e[l] = {
51
51
  ...c,
52
- size: v,
52
+ size: C,
53
53
  percentageSize: p,
54
- originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : v,
55
- sizeBeforeCollapse: m,
56
- measuredPixelSizeBeforeCollapse: R
57
- }, s -= C;
54
+ originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : C,
55
+ sizeBeforeCollapse: x,
56
+ measuredPixelSizeBeforeCollapse: k
57
+ }, s -= w;
58
58
  } else {
59
- const h = Math.max(0, c.size - d);
59
+ const h = Math.max(0, c.size - f);
60
60
  if (h <= 0)
61
61
  continue;
62
- const w = Math.min(h, Math.abs(s));
63
- if (w <= 0)
62
+ const v = Math.min(h, Math.abs(s));
63
+ if (v <= 0)
64
64
  continue;
65
- const C = c.size - w, v = me(C, r), p = c.collapsible ? C : c.sizeBeforeCollapse, m = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? C : c.measuredPixelSizeBeforeCollapse;
65
+ const w = c.size - v, C = ge(w, r), p = c.collapsible ? w : c.sizeBeforeCollapse, x = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? w : c.measuredPixelSizeBeforeCollapse;
66
66
  e[l] = {
67
67
  ...c,
68
- size: C,
69
- percentageSize: v,
70
- originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : C,
68
+ size: w,
69
+ percentageSize: C,
70
+ originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : w,
71
71
  sizeBeforeCollapse: p,
72
- measuredPixelSizeBeforeCollapse: m
73
- }, s += w;
72
+ measuredPixelSizeBeforeCollapse: x
73
+ }, s += v;
74
74
  }
75
75
  }
76
76
  })(), s;
@@ -82,10 +82,10 @@ const Mt = Yt(null), it = () => {
82
82
  }, we = (e, t) => {
83
83
  const r = e.getBoundingClientRect(), o = typeof window < "u" ? window.getComputedStyle(e) : null, i = o ? Fe(o.borderLeftWidth) + Fe(o.borderRightWidth) : 0, s = o ? Fe(o.borderTopWidth) + Fe(o.borderBottomWidth) : 0;
84
84
  if (t === "horizontal") {
85
- const S = r.width > 0 ? r.width : e.offsetWidth, b = r.width > 0 ? Math.max(0, r.width - i) : e.clientWidth, d = e.offsetWidth > 0 ? e.offsetWidth : e.clientWidth + i;
85
+ const P = r.width > 0 ? r.width : e.offsetWidth, z = r.width > 0 ? Math.max(0, r.width - i) : e.clientWidth, f = e.offsetWidth > 0 ? e.offsetWidth : e.clientWidth + i;
86
86
  return {
87
- inner: b > 0 ? b : Math.max(0, e.clientWidth),
88
- outer: S > 0 ? S : Math.max(0, d)
87
+ inner: z > 0 ? z : Math.max(0, e.clientWidth),
88
+ outer: P > 0 ? P : Math.max(0, f)
89
89
  };
90
90
  }
91
91
  const a = r.height > 0 ? r.height : e.offsetHeight, l = r.height > 0 ? Math.max(0, r.height - s) : e.clientHeight, c = e.offsetHeight > 0 ? e.offsetHeight : e.clientHeight + s;
@@ -109,115 +109,115 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
109
109
  return console.warn("Failed to load panel layout:", t), null;
110
110
  }
111
111
  }, Je = (e, t) => {
112
- const r = e.map((u) => {
113
- if (u.collapsed)
112
+ const r = e.map((d) => {
113
+ if (d.collapsed)
114
114
  return {
115
- ...u,
115
+ ...d,
116
116
  size: 0,
117
117
  percentageSize: 0
118
118
  };
119
- if (u.sizeUnit === "pixels" || u.originalPixelSize !== void 0) {
120
- const h = oe(u.minSize, 0, t), w = oe(u.maxSize, t, t), C = he(u.size, h, w);
121
- let v = C, p = Math.abs(C - u.size) > Xe, m = u.size;
122
- if (u.originalPixelSize !== void 0 && Math.abs(u.size - u.originalPixelSize) <= Xe && (m = u.originalPixelSize), m !== void 0) {
123
- const R = he(m, h, w);
124
- R > v + Xe && (v = R, p = !0);
119
+ if (d.sizeUnit === "pixels" || d.originalPixelSize !== void 0) {
120
+ const h = se(d.minSize, 0, t), v = se(d.maxSize, t, t), w = he(d.size, h, v);
121
+ let C = w, p = Math.abs(w - d.size) > Xe, x = d.size;
122
+ if (d.originalPixelSize !== void 0 && Math.abs(d.size - d.originalPixelSize) <= Xe && (x = d.originalPixelSize), x !== void 0) {
123
+ const k = he(x, h, v);
124
+ k > C + Xe && (C = k, p = !0);
125
125
  }
126
126
  if (p) {
127
- const R = me(v, t), F = u.collapsible ? v : u.sizeBeforeCollapse, V = u.collapsible ? u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? v : u.measuredPixelSizeBeforeCollapse;
127
+ const k = ge(C, t), $ = d.collapsible ? C : d.sizeBeforeCollapse, J = d.collapsible ? d.measuredPixelSizeBeforeCollapse ?? d.measuredPixelSize ?? C : d.measuredPixelSizeBeforeCollapse;
128
128
  return {
129
- ...u,
130
- size: v,
131
- percentageSize: R,
132
- sizeBeforeCollapse: F,
133
- measuredPixelSizeBeforeCollapse: V
129
+ ...d,
130
+ size: C,
131
+ percentageSize: k,
132
+ sizeBeforeCollapse: $,
133
+ measuredPixelSizeBeforeCollapse: J
134
134
  };
135
135
  }
136
136
  }
137
- if (u.sizeUnit === "percentage" && (!u.percentageSize || u.percentageSize <= 0) && u.size > 0) {
138
- const h = me(u.size, t);
137
+ if (d.sizeUnit === "percentage" && (!d.percentageSize || d.percentageSize <= 0) && d.size > 0) {
138
+ const h = ge(d.size, t);
139
139
  return {
140
- ...u,
140
+ ...d,
141
141
  percentageSize: h
142
142
  };
143
143
  }
144
- return u;
145
- }), o = r.reduce((u, h) => h.collapsed ? u : h.sizeUnit === "pixels" || h.originalPixelSize !== void 0 ? u + h.size : u, 0), i = () => {
146
- const u = r.map((p, m) => ({ panel: p, index: m })).filter(({ panel: p }) => !p.collapsed && (p.sizeUnit === "pixels" || p.originalPixelSize !== void 0));
147
- if (u.length === 0)
144
+ return d;
145
+ }), o = r.reduce((d, h) => h.collapsed ? d : h.sizeUnit === "pixels" || h.originalPixelSize !== void 0 ? d + h.size : d, 0), i = () => {
146
+ const d = r.map((p, x) => ({ panel: p, index: x })).filter(({ panel: p }) => !p.collapsed && (p.sizeUnit === "pixels" || p.originalPixelSize !== void 0));
147
+ if (d.length === 0)
148
148
  return r;
149
- const h = u.reduce((p, { panel: m }) => p + m.size, 0), w = t - h;
150
- if (Math.abs(w) <= 0.1)
149
+ const h = d.reduce((p, { panel: x }) => p + x.size, 0), v = t - h;
150
+ if (Math.abs(v) <= 0.1)
151
151
  return r;
152
- const C = [...u].sort((p, m) => {
153
- const R = p.panel.pixelAdjustPriority ?? p.index + 1, F = m.panel.pixelAdjustPriority ?? m.index + 1;
154
- return R === F ? p.index - m.index : R - F;
152
+ const w = [...d].sort((p, x) => {
153
+ const k = p.panel.pixelAdjustPriority ?? p.index + 1, $ = x.panel.pixelAdjustPriority ?? x.index + 1;
154
+ return k === $ ? p.index - x.index : k - $;
155
155
  });
156
- let v = w;
157
- for (const { panel: p, index: m } of C) {
158
- if (Math.abs(v) <= 0.1)
156
+ let C = v;
157
+ for (const { panel: p, index: x } of w) {
158
+ if (Math.abs(C) <= 0.1)
159
159
  break;
160
- const R = oe(p.minSize, 0, t), F = oe(p.maxSize, t, t), V = p.size;
161
- if (v > 0) {
162
- const I = Math.max(0, F - V);
163
- if (I <= 0)
160
+ const k = se(p.minSize, 0, t), $ = se(p.maxSize, t, t), J = p.size;
161
+ if (C > 0) {
162
+ const H = Math.max(0, $ - J);
163
+ if (H <= 0)
164
164
  continue;
165
- const ee = Math.min(I, v), M = V + ee, $ = me(M, t), W = p.collapsible ? M : p.sizeBeforeCollapse, X = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? M : p.measuredPixelSizeBeforeCollapse;
166
- r[m] = {
165
+ const O = Math.min(H, C), E = J + O, q = ge(E, t), F = p.collapsible ? E : p.sizeBeforeCollapse, Y = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? E : p.measuredPixelSizeBeforeCollapse;
166
+ r[x] = {
167
167
  ...p,
168
- size: M,
169
- percentageSize: $,
170
- sizeBeforeCollapse: W,
171
- measuredPixelSizeBeforeCollapse: X
172
- }, v -= ee;
168
+ size: E,
169
+ percentageSize: q,
170
+ sizeBeforeCollapse: F,
171
+ measuredPixelSizeBeforeCollapse: Y
172
+ }, C -= O;
173
173
  } else {
174
- const I = Math.max(0, V - R);
175
- if (I <= 0)
174
+ const H = Math.max(0, J - k);
175
+ if (H <= 0)
176
176
  continue;
177
- const ee = Math.min(I, Math.abs(v)), M = V - ee, $ = me(M, t), W = p.collapsible ? M : p.sizeBeforeCollapse, X = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? M : p.measuredPixelSizeBeforeCollapse;
178
- r[m] = {
177
+ const O = Math.min(H, Math.abs(C)), E = J - O, q = ge(E, t), F = p.collapsible ? E : p.sizeBeforeCollapse, Y = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? E : p.measuredPixelSizeBeforeCollapse;
178
+ r[x] = {
179
179
  ...p,
180
- size: M,
181
- percentageSize: $,
182
- sizeBeforeCollapse: W,
183
- measuredPixelSizeBeforeCollapse: X
184
- }, v += ee;
180
+ size: E,
181
+ percentageSize: q,
182
+ sizeBeforeCollapse: F,
183
+ measuredPixelSizeBeforeCollapse: Y
184
+ }, C += O;
185
185
  }
186
186
  }
187
187
  return r;
188
- }, s = r.reduce((u, h, w) => (!h.collapsed && h.sizeUnit === "percentage" && h.originalPixelSize === void 0 && u.push(w), u), []);
188
+ }, s = r.reduce((d, h, v) => (!h.collapsed && h.sizeUnit === "percentage" && h.originalPixelSize === void 0 && d.push(v), d), []);
189
189
  if (s.length === 0)
190
190
  return i();
191
- const a = Math.max(0, t - o), l = s.map((u) => {
192
- const h = r[u];
191
+ const a = Math.max(0, t - o), l = s.map((d) => {
192
+ const h = r[d];
193
193
  return h.percentageSize !== void 0 && h.percentageSize > 0 ? Be(h.percentageSize, t) : h.size > 0 ? h.size : 0;
194
- }), c = l.reduce((u, h) => h > 0 ? u + h : u, 0);
194
+ }), c = l.reduce((d, h) => h > 0 ? d + h : d, 0);
195
195
  if (c <= 0)
196
196
  return i();
197
- const S = [...r];
198
- let b = 0;
199
- s.forEach((u, h) => {
200
- const w = S[u], C = l[h];
201
- let v;
202
- if (C > 0) {
203
- const I = C / c;
204
- v = a * I;
197
+ const P = [...r];
198
+ let z = 0;
199
+ s.forEach((d, h) => {
200
+ const v = P[d], w = l[h];
201
+ let C;
202
+ if (w > 0) {
203
+ const H = w / c;
204
+ C = a * H;
205
205
  } else
206
- v = w.size;
207
- const p = oe(w.minSize, 0, t), m = oe(w.maxSize, t, t);
208
- v = he(v, p, m), b += v;
209
- const R = me(v, t), F = w.collapsible ? v : w.sizeBeforeCollapse, V = w.collapsible ? w.measuredPixelSizeBeforeCollapse ?? w.measuredPixelSize ?? v : w.measuredPixelSizeBeforeCollapse;
210
- S[u] = {
211
- ...w,
212
- size: v,
213
- percentageSize: R,
214
- sizeBeforeCollapse: F,
215
- measuredPixelSizeBeforeCollapse: V
206
+ C = v.size;
207
+ const p = se(v.minSize, 0, t), x = se(v.maxSize, t, t);
208
+ C = he(C, p, x), z += C;
209
+ const k = ge(C, t), $ = v.collapsible ? C : v.sizeBeforeCollapse, J = v.collapsible ? v.measuredPixelSizeBeforeCollapse ?? v.measuredPixelSize ?? C : v.measuredPixelSizeBeforeCollapse;
210
+ P[d] = {
211
+ ...v,
212
+ size: C,
213
+ percentageSize: k,
214
+ sizeBeforeCollapse: $,
215
+ measuredPixelSizeBeforeCollapse: J
216
216
  };
217
217
  });
218
- const d = a - b;
219
- return Math.abs(d) > 0.1 && ot(S, d, t), Re(S);
220
- }, Re = (e) => {
218
+ const f = a - z;
219
+ return Math.abs(f) > 0.1 && ot(P, f, t), Me(P);
220
+ }, Me = (e) => {
221
221
  let t = 0;
222
222
  for (const i of e)
223
223
  i.collapsed || (t += Math.max(i.size, 0));
@@ -241,16 +241,16 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
241
241
  percentageSize: 0,
242
242
  measuredPercentageSize: i.measuredPercentageSize !== void 0 ? 0 : i.measuredPercentageSize
243
243
  }) : i;
244
- const s = me(i.size, t), a = i.measuredPercentageSize, S = (a !== void 0 ? Math.abs(a - s) : 1 / 0) < 1e-4 && a !== void 0 ? a : s, b = Rt(S, Nt), u = Math.abs((i.percentageSize ?? 0) - b) > 0 || i.percentageSize === void 0, h = i.sizeBeforeCollapse === void 0 || i.sizeBeforeCollapse !== i.size, w = i.collapsible && h, C = i.measuredPixelSize ?? i.size, v = i.collapsible && (i.measuredPixelSizeBeforeCollapse === void 0 || i.measuredPixelSizeBeforeCollapse !== C);
245
- if (!(u || w || v))
244
+ const s = ge(i.size, t), a = i.measuredPercentageSize, P = (a !== void 0 ? Math.abs(a - s) : 1 / 0) < 1e-4 && a !== void 0 ? a : s, z = Rt(P, Nt), d = Math.abs((i.percentageSize ?? 0) - z) > 0 || i.percentageSize === void 0, h = i.sizeBeforeCollapse === void 0 || i.sizeBeforeCollapse !== i.size, v = i.collapsible && h, w = i.measuredPixelSize ?? i.size, C = i.collapsible && (i.measuredPixelSizeBeforeCollapse === void 0 || i.measuredPixelSizeBeforeCollapse !== w);
245
+ if (!(d || v || C))
246
246
  return i;
247
247
  r = !0;
248
- const p = w ? i.size : i.sizeBeforeCollapse, m = v ? C : i.measuredPixelSizeBeforeCollapse;
248
+ const p = v ? i.size : i.sizeBeforeCollapse, x = C ? w : i.measuredPixelSizeBeforeCollapse;
249
249
  return {
250
250
  ...i,
251
- percentageSize: b,
251
+ percentageSize: z,
252
252
  sizeBeforeCollapse: p,
253
- measuredPixelSizeBeforeCollapse: m
253
+ measuredPixelSizeBeforeCollapse: x
254
254
  };
255
255
  });
256
256
  return r ? o : e;
@@ -259,9 +259,9 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
259
259
  return !1;
260
260
  const r = [];
261
261
  let o = 0;
262
- for (let b = 0; b < e.length; b += 1) {
263
- const d = e[b];
264
- !d || d.collapsed || (r.push(b), o += d.size);
262
+ for (let z = 0; z < e.length; z += 1) {
263
+ const f = e[z];
264
+ !f || f.collapsed || (r.push(z), o += f.size);
265
265
  }
266
266
  if (r.length === 0)
267
267
  return !1;
@@ -269,63 +269,63 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
269
269
  if (Math.abs(i) <= 0)
270
270
  return !1;
271
271
  let s = !1;
272
- const a = (b) => {
273
- const d = e[b], u = oe(d.minSize, 0, t), h = oe(d.maxSize, t, t), w = d.sizeUnit === "percentage" && d.originalPixelSize === void 0;
272
+ const a = (z) => {
273
+ const f = e[z], d = se(f.minSize, 0, t), h = se(f.maxSize, t, t), v = f.sizeUnit === "percentage" && f.originalPixelSize === void 0;
274
274
  return {
275
- index: b,
276
- minSize: u,
275
+ index: z,
276
+ minSize: d,
277
277
  maxSize: h,
278
- isFlexible: w
278
+ isFlexible: v
279
279
  };
280
- }, l = (b, d) => {
281
- if (!Number.isFinite(d) || Math.abs(d) <= 0)
280
+ }, l = (z, f) => {
281
+ if (!Number.isFinite(f) || Math.abs(f) <= 0)
282
282
  return;
283
- const u = e[b];
284
- if (!u)
283
+ const d = e[z];
284
+ if (!d)
285
285
  return;
286
- const h = Math.max(0, u.size + d);
287
- if (Math.abs(h - u.size) <= 0)
286
+ const h = Math.max(0, d.size + f);
287
+ if (Math.abs(h - d.size) <= 0)
288
288
  return;
289
- const w = me(h, t), C = u.collapsible ? h : u.sizeBeforeCollapse, v = u.collapsible ? u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? h : u.measuredPixelSizeBeforeCollapse;
290
- e[b] = {
291
- ...u,
289
+ const v = ge(h, t), w = d.collapsible ? h : d.sizeBeforeCollapse, C = d.collapsible ? d.measuredPixelSizeBeforeCollapse ?? d.measuredPixelSize ?? h : d.measuredPixelSizeBeforeCollapse;
290
+ e[z] = {
291
+ ...d,
292
292
  size: h,
293
- percentageSize: w,
294
- sizeBeforeCollapse: C,
295
- measuredPixelSizeBeforeCollapse: v,
293
+ percentageSize: v,
294
+ sizeBeforeCollapse: w,
295
+ measuredPixelSizeBeforeCollapse: C,
296
296
  measuredPixelSize: void 0,
297
297
  measuredPercentageSize: void 0
298
- }, i -= d, s = !0;
299
- }, c = (b) => {
300
- for (const d of b) {
298
+ }, i -= f, s = !0;
299
+ }, c = (z) => {
300
+ for (const f of z) {
301
301
  if (Math.abs(i) <= 0)
302
302
  break;
303
- const u = e[d.index];
304
- if (!u || u.collapsed)
303
+ const d = e[f.index];
304
+ if (!d || d.collapsed)
305
305
  continue;
306
- const h = u.size;
306
+ const h = d.size;
307
307
  if (i > 0) {
308
- const w = Math.max(0, d.maxSize - h);
309
- if (w <= 0)
308
+ const v = Math.max(0, f.maxSize - h);
309
+ if (v <= 0)
310
310
  continue;
311
- const C = Math.min(w, i);
312
- if (C <= 0)
311
+ const w = Math.min(v, i);
312
+ if (w <= 0)
313
313
  continue;
314
- l(d.index, C);
314
+ l(f.index, w);
315
315
  } else {
316
- const w = Math.max(0, h - d.minSize);
317
- if (w <= 0)
316
+ const v = Math.max(0, h - f.minSize);
317
+ if (v <= 0)
318
318
  continue;
319
- const C = Math.min(w, Math.abs(i));
320
- if (C <= 0)
319
+ const w = Math.min(v, Math.abs(i));
320
+ if (w <= 0)
321
321
  continue;
322
- l(d.index, -C);
322
+ l(f.index, -w);
323
323
  }
324
324
  }
325
- }, S = r.map((b) => a(b)).filter((b) => b.isFlexible);
326
- if (S.length > 0 && c(S), Math.abs(i) > 0) {
327
- const b = i;
328
- i = ot(e, i, t), Math.abs(i - b) > 0 && (s = !0);
325
+ }, P = r.map((z) => a(z)).filter((z) => z.isFlexible);
326
+ if (P.length > 0 && c(P), Math.abs(i) > 0) {
327
+ const z = i;
328
+ i = ot(e, i, t), Math.abs(i - z) > 0 && (s = !0);
329
329
  }
330
330
  return s;
331
331
  }, gt = (e, t, r) => {
@@ -359,73 +359,73 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
359
359
  case "UNREGISTER_PANEL": {
360
360
  console.log("UNREGISTER_PANEL", t.id);
361
361
  const r = e.filter((o) => o.id !== t.id);
362
- return Re(r);
362
+ return Me(r);
363
363
  }
364
364
  case "RESIZE_PANELS": {
365
365
  console.log("RESIZE_PANELS", t.leftId, t.rightId, t.leftSize, t.rightSize);
366
- const r = e.findIndex((A) => A.id === t.leftId), o = e.findIndex((A) => A.id === t.rightId);
366
+ const r = e.findIndex((_) => _.id === t.leftId), o = e.findIndex((_) => _.id === t.rightId);
367
367
  if (r === -1 || o === -1) return e;
368
368
  const i = [...e], s = i[r], a = i[o];
369
369
  if (s.collapsed || a.collapsed || t.leftSize === s.size && t.rightSize === a.size)
370
370
  return e;
371
- const l = t.containerSize ?? e.reduce((A, D) => A + D.size, 0), c = oe(s.minSize, 0, l), S = oe(s.maxSize, l, l), b = oe(a.minSize, 0, l), d = oe(a.maxSize, l, l), u = s.size + a.size, h = e.reduce((A, D) => D.collapsed ? A : A + D.size, 0), w = h - u, C = c + b, v = S + d, p = he(t.leftSize + t.rightSize, C, v);
372
- let m = l > 0 ? l - w : p;
373
- Number.isFinite(m) || (m = p);
374
- const R = he(Math.max(p, m), C, v), F = (A) => ({
375
- min: Math.max(c, A - d),
376
- max: Math.min(S, A - b)
377
- }), V = (A) => ({
378
- min: Math.max(b, A - S),
379
- max: Math.min(d, A - c)
380
- }), I = Math.abs(t.leftSize - s.size), ee = Math.abs(t.rightSize - a.size), M = I >= ee;
381
- let $ = s.size, W = a.size;
382
- if (M) {
383
- const A = F(R);
384
- if (A.min > A.max)
371
+ const l = t.containerSize ?? e.reduce((_, D) => _ + D.size, 0), c = se(s.minSize, 0, l), P = se(s.maxSize, l, l), z = se(a.minSize, 0, l), f = se(a.maxSize, l, l), d = s.size + a.size, h = e.reduce((_, D) => D.collapsed ? _ : _ + D.size, 0), v = h - d, w = c + z, C = P + f, p = he(t.leftSize + t.rightSize, w, C);
372
+ let x = l > 0 ? l - v : p;
373
+ Number.isFinite(x) || (x = p);
374
+ const k = he(Math.max(p, x), w, C), $ = (_) => ({
375
+ min: Math.max(c, _ - f),
376
+ max: Math.min(P, _ - z)
377
+ }), J = (_) => ({
378
+ min: Math.max(z, _ - P),
379
+ max: Math.min(f, _ - c)
380
+ }), H = Math.abs(t.leftSize - s.size), O = Math.abs(t.rightSize - a.size), E = H >= O;
381
+ let q = s.size, F = a.size;
382
+ if (E) {
383
+ const _ = $(k);
384
+ if (_.min > _.max)
385
385
  return e;
386
- const D = he(t.leftSize, A.min, A.max), k = R - D;
387
- if (k < b || k > d)
386
+ const D = he(t.leftSize, _.min, _.max), y = k - D;
387
+ if (y < z || y > f)
388
388
  return e;
389
- $ = D, W = k;
389
+ q = D, F = y;
390
390
  } else {
391
- const A = V(R);
392
- if (A.min > A.max)
391
+ const _ = J(k);
392
+ if (_.min > _.max)
393
393
  return e;
394
- const D = he(t.rightSize, A.min, A.max), k = R - D;
395
- if (k < c || k > S)
394
+ const D = he(t.rightSize, _.min, _.max), y = k - D;
395
+ if (y < c || y > P)
396
396
  return e;
397
- W = D, $ = k;
397
+ F = D, q = y;
398
398
  }
399
- const X = $ + W;
400
- if (R !== X)
399
+ const Y = q + F;
400
+ if (k !== Y)
401
401
  return e;
402
- const te = h - s.size - a.size + X, Y = l > 0 ? l : te, Z = Y > 0 ? me($, Y) : 0, H = Y > 0 ? me(W, Y) : 0;
402
+ const te = h - s.size - a.size + Y, V = l > 0 ? l : te, K = V > 0 ? ge(q, V) : 0, W = V > 0 ? ge(F, V) : 0;
403
403
  return i[r] = {
404
404
  ...s,
405
- size: $,
406
- percentageSize: Z,
407
- sizeBeforeCollapse: s.collapsible ? $ : s.sizeBeforeCollapse,
405
+ size: q,
406
+ percentageSize: K,
407
+ sizeBeforeCollapse: s.collapsible ? q : s.sizeBeforeCollapse,
408
408
  measuredPixelSize: void 0,
409
409
  measuredPercentageSize: void 0
410
410
  }, i[o] = {
411
411
  ...a,
412
- size: W,
413
- percentageSize: H,
414
- sizeBeforeCollapse: a.collapsible ? W : a.sizeBeforeCollapse,
412
+ size: F,
413
+ percentageSize: W,
414
+ sizeBeforeCollapse: a.collapsible ? F : a.sizeBeforeCollapse,
415
415
  measuredPixelSize: void 0,
416
416
  measuredPercentageSize: void 0
417
- }, l > 0 && He(i, l) ? Re(i) : i;
417
+ }, l > 0 && He(i, l) ? Me(i) : i;
418
418
  }
419
419
  case "SET_PANELS":
420
- return console.log("SET_PANELS", t.panels), Re(t.panels);
420
+ return console.log("SET_PANELS", t.panels), Me(t.panels);
421
421
  case "CONTAINER_RESIZED": {
422
422
  console.log("CONTAINER_RESIZED", t.containerSize);
423
423
  const r = Je(e, t.containerSize);
424
- return t.containerSize > 0 && He(r, t.containerSize) ? Re(r) : r;
424
+ return t.containerSize > 0 && He(r, t.containerSize) ? Me(r) : r;
425
425
  }
426
426
  case "COLLAPSE_PANEL": {
427
427
  console.log("COLLAPSE_PANEL", t.id);
428
- const r = e.findIndex((S) => S.id === t.id);
428
+ const r = e.findIndex((P) => P.id === t.id);
429
429
  if (r === -1)
430
430
  return e;
431
431
  const o = e[r];
@@ -443,296 +443,296 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
443
443
  }, l = [...e];
444
444
  l[r] = a;
445
445
  const c = Je(l, t.containerSize);
446
- return t.containerSize > 0 && He(c, t.containerSize) ? Re(c) : c;
446
+ return t.containerSize > 0 && He(c, t.containerSize) ? Me(c) : c;
447
447
  }
448
448
  case "EXPAND_PANEL": {
449
449
  console.log("EXPAND_PANEL", t.id, t.targetSize);
450
- const r = e.findIndex((v) => v.id === t.id);
450
+ const r = e.findIndex((C) => C.id === t.id);
451
451
  if (r === -1)
452
452
  return e;
453
453
  const o = t.containerSize, i = e[r];
454
454
  if (!(i.collapsible && i.collapsed))
455
455
  return e;
456
- const a = [t.targetSize, i.sizeBeforeCollapse, i.measuredPixelSizeBeforeCollapse, i.originalPixelSize].find((v) => v !== void 0) ?? 0, l = oe(i.minSize, 0, o), c = oe(i.maxSize, o, o), S = he(a, l, c), b = me(S, o), d = i.measuredPixelSizeBeforeCollapse ?? S, u = me(d, o), h = {
456
+ const a = [t.targetSize, i.sizeBeforeCollapse, i.measuredPixelSizeBeforeCollapse, i.originalPixelSize].find((C) => C !== void 0) ?? 0, l = se(i.minSize, 0, o), c = se(i.maxSize, o, o), P = he(a, l, c), z = ge(P, o), f = i.measuredPixelSizeBeforeCollapse ?? P, d = ge(f, o), h = {
457
457
  ...i,
458
458
  collapsed: !1,
459
- size: S,
460
- percentageSize: b,
461
- sizeBeforeCollapse: S,
462
- measuredPixelSize: S,
463
- measuredPixelSizeBeforeCollapse: d,
464
- measuredPercentageSize: u
465
- }, w = [...e];
466
- w[r] = h;
467
- const C = Je(w, o);
468
- return o > 0 && He(C, o) ? Re(C) : C;
459
+ size: P,
460
+ percentageSize: z,
461
+ sizeBeforeCollapse: P,
462
+ measuredPixelSize: P,
463
+ measuredPixelSizeBeforeCollapse: f,
464
+ measuredPercentageSize: d
465
+ }, v = [...e];
466
+ v[r] = h;
467
+ const w = Je(v, o);
468
+ return o > 0 && He(w, o) ? Me(w) : w;
469
469
  }
470
470
  default:
471
471
  return e;
472
472
  }
473
473
  }, ar = ({ direction: e, style: t, onLayout: r, autoSaveId: o, showDebugInfo: i = !1 }) => {
474
- const [s, a] = Xt(sr, []), [l, c] = ze({ width: 0, height: 0 }), [S, b] = ze(!1), [d, u] = ze(!1), [h, w] = ze(null), [C, v] = ze({}), [p, m] = ze({}), R = pe(null), F = pe(r), V = pe(!1), I = pe(0), ee = pe(l);
474
+ const [s, a] = Xt(sr, []), [l, c] = Se({ width: 0, height: 0 }), [P, z] = Se(!1), [f, d] = Se(!1), [h, v] = Se(null), [w, C] = Se({}), [p, x] = Se({}), k = me(null), $ = me(r), J = me(!1), H = me(0), O = me(l);
475
475
  Ye(() => {
476
- if (!R.current) return;
477
- const _ = new ResizeObserver((n) => {
478
- for (const z of n) {
479
- const E = z.target, N = E ? we(E, "horizontal") : null, U = E ? we(E, "vertical") : null, P = N ? N.inner : 0, x = U ? U.inner : 0, g = z.contentRect.width, y = z.contentRect.height, B = P > 0 ? P : g, j = x > 0 ? x : y;
480
- c((G) => (!S && B > 0 && j > 0 && b(!0), G.width === B && G.height === j ? G : { width: B, height: j }));
476
+ if (!k.current) return;
477
+ const M = new ResizeObserver((n) => {
478
+ for (const S of n) {
479
+ const R = S.target, A = R ? we(R, "horizontal") : null, ee = R ? we(R, "vertical") : null, m = A ? A.inner : 0, b = ee ? ee.inner : 0, B = S.contentRect.width, g = S.contentRect.height, I = m > 0 ? m : B, j = b > 0 ? b : g;
480
+ c((G) => (!P && I > 0 && j > 0 && z(!0), G.width === I && G.height === j ? G : { width: I, height: j }));
481
481
  }
482
482
  });
483
- return _.observe(R.current), () => _.disconnect();
484
- }, [S]), Ye(() => {
485
- const _ = ee.current, n = l, z = e === "horizontal" ? Math.abs(_.width - n.width) > 0 : Math.abs(_.height - n.height) > 0;
486
- if (d && z) {
487
- const E = e === "horizontal" ? n.width : n.height;
488
- a({ type: "CONTAINER_RESIZED", containerSize: E, direction: e });
483
+ return M.observe(k.current), () => M.disconnect();
484
+ }, [P]), Ye(() => {
485
+ const M = O.current, n = l, S = e === "horizontal" ? Math.abs(M.width - n.width) > 0 : Math.abs(M.height - n.height) > 0;
486
+ if (f && S) {
487
+ const R = e === "horizontal" ? n.width : n.height;
488
+ a({ type: "CONTAINER_RESIZED", containerSize: R, direction: e });
489
489
  }
490
- ee.current = n;
491
- }, [l, d, e]);
492
- const M = fe(() => {
490
+ O.current = n;
491
+ }, [l, f, e]);
492
+ const E = pe(() => {
493
493
  console.log("panels[0]?.id", s[0]?.id);
494
- const _ = s.some((f) => {
495
- if (f.collapsed || f.sizeUnit !== "percentage")
494
+ const M = s.some((u) => {
495
+ if (u.collapsed || u.sizeUnit !== "percentage")
496
496
  return !1;
497
- const q = f.collapsible ? f.sizeBeforeCollapse ?? f.measuredPixelSizeBeforeCollapse ?? f.originalPixelSize ?? f.measuredPixelSize ?? 0 : f.measuredPixelSize ?? f.originalPixelSize ?? f.size, ae = f.percentageSize !== void 0 && f.percentageSize > 0;
498
- return f.size <= 0 && (q > 0 || ae);
499
- }), n = e === "horizontal" ? l.width : l.height, z = n > 0;
500
- if (h || !z || !(s.length > 0 && (s.length !== I.current || !d || _)))
497
+ const U = u.collapsible ? u.sizeBeforeCollapse ?? u.measuredPixelSizeBeforeCollapse ?? u.originalPixelSize ?? u.measuredPixelSize ?? 0 : u.measuredPixelSize ?? u.originalPixelSize ?? u.size, le = u.percentageSize !== void 0 && u.percentageSize > 0;
498
+ return u.size <= 0 && (U > 0 || le);
499
+ }), n = e === "horizontal" ? l.width : l.height, S = n > 0;
500
+ if (h || !S || !(s.length > 0 && (s.length !== H.current || !f || M)))
501
501
  return;
502
- const U = s.filter((f) => !f.collapsed && (f.originalPixelSize !== void 0 || f.sizeUnit === "pixels")).reduce((f, q) => q.originalPixelSize !== void 0 ? f + q.originalPixelSize : f + q.size, 0), P = s.filter((f) => f.sizeUnit === "percentage" && !f.collapsed), x = P.map((f) => f.id), g = P.map((f) => f.percentageSize !== void 0 && f.percentageSize > 0 ? Be(f.percentageSize, n) : f.size > 0 ? f.size : 0), y = g.reduce((f, q) => f + q, 0), B = n - U, j = Math.max(0, B), G = j > 0, re = s.map((f) => {
503
- if (f.collapsed) {
504
- const q = f.sizeBeforeCollapse ?? f.measuredPixelSizeBeforeCollapse ?? f.originalPixelSize ?? (f.sizeUnit === "pixels" ? f.size : void 0), ae = f.sizeUnit === "percentage" && f.percentageSize !== void 0 ? Be(f.percentageSize, n) : void 0, ie = q ?? ae ?? 0, ce = f.measuredPixelSizeBeforeCollapse ?? f.measuredPixelSize ?? ie;
502
+ const ee = s.filter((u) => !u.collapsed && (u.originalPixelSize !== void 0 || u.sizeUnit === "pixels")).reduce((u, U) => U.originalPixelSize !== void 0 ? u + U.originalPixelSize : u + U.size, 0), m = s.filter((u) => u.sizeUnit === "percentage" && !u.collapsed), b = m.map((u) => u.id), B = m.map((u) => u.percentageSize !== void 0 && u.percentageSize > 0 ? Be(u.percentageSize, n) : u.size > 0 ? u.size : 0), g = B.reduce((u, U) => u + U, 0), I = n - ee, j = Math.max(0, I), G = j > 0, Q = s.map((u) => {
503
+ if (u.collapsed) {
504
+ const U = u.sizeBeforeCollapse ?? u.measuredPixelSizeBeforeCollapse ?? u.originalPixelSize ?? (u.sizeUnit === "pixels" ? u.size : void 0), le = u.sizeUnit === "percentage" && u.percentageSize !== void 0 ? Be(u.percentageSize, n) : void 0, oe = U ?? le ?? 0, ae = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? oe;
505
505
  return {
506
- ...f,
506
+ ...u,
507
507
  size: 0,
508
508
  percentageSize: 0,
509
- sizeBeforeCollapse: ie,
510
- measuredPixelSizeBeforeCollapse: ce
509
+ sizeBeforeCollapse: oe,
510
+ measuredPixelSizeBeforeCollapse: ae
511
511
  };
512
512
  }
513
- if (f.sizeUnit === "pixels" || f.originalPixelSize !== void 0) {
514
- const q = f.size, ae = n > 0 ? me(q, n) : 0, ie = {
515
- ...f,
516
- size: q,
517
- percentageSize: ae
513
+ if (u.sizeUnit === "pixels" || u.originalPixelSize !== void 0) {
514
+ const U = u.size, le = n > 0 ? ge(U, n) : 0, oe = {
515
+ ...u,
516
+ size: U,
517
+ percentageSize: le
518
518
  };
519
- if (f.collapsible) {
520
- const ce = f.sizeBeforeCollapse ?? q, be = f.measuredPixelSizeBeforeCollapse ?? f.measuredPixelSize ?? ce;
521
- ie.sizeBeforeCollapse = ce, ie.measuredPixelSizeBeforeCollapse = be;
519
+ if (u.collapsible) {
520
+ const ae = u.sizeBeforeCollapse ?? U, ze = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? ae;
521
+ oe.sizeBeforeCollapse = ae, oe.measuredPixelSizeBeforeCollapse = ze;
522
522
  }
523
- return ie;
523
+ return oe;
524
524
  }
525
- if (f.sizeUnit === "percentage") {
526
- const q = x.indexOf(f.id), ae = q !== -1 ? g[q] : 0, ie = oe(f.minSize, 0, n), ce = oe(f.maxSize, n, n), be = Math.max(
527
- ie,
528
- f.sizeBeforeCollapse ?? 0,
529
- f.measuredPixelSizeBeforeCollapse ?? 0,
530
- f.measuredPixelSize ?? 0,
531
- f.originalPixelSize ?? 0,
532
- f.size > 0 ? f.size : 0,
533
- f.percentageSize !== void 0 ? Be(f.percentageSize, n) : 0,
525
+ if (u.sizeUnit === "percentage") {
526
+ const U = b.indexOf(u.id), le = U !== -1 ? B[U] : 0, oe = se(u.minSize, 0, n), ae = se(u.maxSize, n, n), ze = Math.max(
527
+ oe,
528
+ u.sizeBeforeCollapse ?? 0,
529
+ u.measuredPixelSizeBeforeCollapse ?? 0,
530
+ u.measuredPixelSize ?? 0,
531
+ u.originalPixelSize ?? 0,
532
+ u.size > 0 ? u.size : 0,
533
+ u.percentageSize !== void 0 ? Be(u.percentageSize, n) : 0,
534
534
  1
535
- ), xe = ae > 0 ? ae : be;
536
- let ge;
535
+ ), xe = le > 0 ? le : ze;
536
+ let de;
537
537
  if (!G)
538
- ge = ie;
539
- else if (q !== -1 && y > 0) {
540
- const Pe = xe / y, Ce = j * Pe;
541
- ge = he(Ce, ie, ce);
538
+ de = oe;
539
+ else if (U !== -1 && g > 0) {
540
+ const Pe = xe / g, Ce = j * Pe;
541
+ de = he(Ce, oe, ae);
542
542
  } else {
543
- const Pe = f.percentageSize !== void 0 ? Be(f.percentageSize, n) : f.size, Ce = Pe > 0 ? Pe : xe;
544
- ge = he(Ce, ie, ce);
543
+ const Pe = u.percentageSize !== void 0 ? Be(u.percentageSize, n) : u.size, Ce = Pe > 0 ? Pe : xe;
544
+ de = he(Ce, oe, ae);
545
545
  }
546
- const Se = n > 0 ? me(ge, n) : 0, Ee = {
547
- ...f,
548
- size: ge,
549
- percentageSize: Se
546
+ const Re = n > 0 ? ge(de, n) : 0, be = {
547
+ ...u,
548
+ size: de,
549
+ percentageSize: Re
550
550
  };
551
- if (f.collapsible) {
552
- const Pe = f.sizeBeforeCollapse ?? ge, Ce = f.measuredPixelSizeBeforeCollapse ?? f.measuredPixelSize ?? Pe;
553
- Ee.sizeBeforeCollapse = Pe, Ee.measuredPixelSizeBeforeCollapse = Ce;
551
+ if (u.collapsible) {
552
+ const Pe = u.sizeBeforeCollapse ?? de, Ce = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? Pe;
553
+ be.sizeBeforeCollapse = Pe, be.measuredPixelSizeBeforeCollapse = Ce;
554
554
  }
555
- return Ee;
555
+ return be;
556
556
  }
557
- return f;
558
- }), K = [];
559
- for (let f = 0; f < re.length; f += 1) {
560
- const q = re[f];
561
- q.sizeUnit === "percentage" && !q.collapsed && K.push(f);
557
+ return u;
558
+ }), ie = [];
559
+ for (let u = 0; u < Q.length; u += 1) {
560
+ const U = Q[u];
561
+ U.sizeUnit === "percentage" && !U.collapsed && ie.push(u);
562
562
  }
563
- const Q = K.reduce((f, q) => f + re[q].size, 0), se = B - Q;
564
- Math.abs(se) > 0 && ot(re, se, n), a({ type: "SET_PANELS", panels: re }), I.current = s.length, u(!0);
565
- }, [s, e, l.width, l.height, d, h]);
566
- ue(() => {
567
- const _ = e === "horizontal" ? l.width : l.height, n = _ > 0, z = n && s.length > 0, E = z ? s.reduce((y, B) => {
568
- if (B.collapsed)
569
- return y;
570
- const j = oe(B.minSize, 0, _);
571
- return y + Math.max(0, j);
572
- }, 0) : null, N = z ? s.reduce((y, B) => {
573
- if (B.collapsed)
574
- return y;
575
- const j = oe(B.maxSize, _, _);
576
- return y + Math.max(0, j);
577
- }, 0) : null, U = E ?? h?.totalMinimumSize ?? null, P = N ?? h?.totalMaximumSize ?? null;
563
+ const Z = ie.reduce((u, U) => u + Q[U].size, 0), re = I - Z;
564
+ Math.abs(re) > 0 && ot(Q, re, n), a({ type: "SET_PANELS", panels: Q }), H.current = s.length, d(!0);
565
+ }, [s, e, l.width, l.height, f, h]);
566
+ fe(() => {
567
+ const M = e === "horizontal" ? l.width : l.height, n = M > 0, S = n && s.length > 0, R = S ? s.reduce((g, I) => {
568
+ if (I.collapsed)
569
+ return g;
570
+ const j = se(I.minSize, 0, M);
571
+ return g + Math.max(0, j);
572
+ }, 0) : null, A = S ? s.reduce((g, I) => {
573
+ if (I.collapsed)
574
+ return g;
575
+ const j = se(I.maxSize, M, M);
576
+ return g + Math.max(0, j);
577
+ }, 0) : null, ee = R ?? h?.totalMinimumSize ?? null, m = A ?? h?.totalMaximumSize ?? null;
578
578
  if (!n) {
579
- h && w((y) => !y || y.availableContainerSize === _ ? y : {
580
- reason: y.reason,
579
+ h && v((g) => !g || g.availableContainerSize === M ? g : {
580
+ reason: g.reason,
581
581
  // totalMinimumSize: previous.totalMinimumSize,
582
582
  // totalMaximumSize: previous.totalMaximumSize,
583
583
  totalMinimumSize: null,
584
584
  totalMaximumSize: null,
585
- availableContainerSize: _
585
+ availableContainerSize: M
586
586
  });
587
587
  return;
588
588
  }
589
- const x = U !== null && U - _ > Number.EPSILON, g = P !== null && _ - P > Number.EPSILON;
590
- if (x || g) {
591
- const B = {
592
- reason: x ? "minimum-exceeded" : "maximum-insufficient",
593
- totalMinimumSize: U,
594
- totalMaximumSize: P,
595
- availableContainerSize: _
589
+ const b = ee !== null && ee - M > Number.EPSILON, B = m !== null && M - m > Number.EPSILON;
590
+ if (b || B) {
591
+ const I = {
592
+ reason: b ? "minimum-exceeded" : "maximum-insufficient",
593
+ totalMinimumSize: ee,
594
+ totalMaximumSize: m,
595
+ availableContainerSize: M
596
596
  };
597
- w((j) => j && j.reason === B.reason && Math.abs((j.totalMinimumSize ?? 0) - (B.totalMinimumSize ?? 0)) <= Number.EPSILON && Math.abs((j.totalMaximumSize ?? 0) - (B.totalMaximumSize ?? 0)) <= Number.EPSILON && Math.abs(j.availableContainerSize - B.availableContainerSize) <= Number.EPSILON ? j : B);
597
+ v((j) => j && j.reason === I.reason && Math.abs((j.totalMinimumSize ?? 0) - (I.totalMinimumSize ?? 0)) <= Number.EPSILON && Math.abs((j.totalMaximumSize ?? 0) - (I.totalMaximumSize ?? 0)) <= Number.EPSILON && Math.abs(j.availableContainerSize - I.availableContainerSize) <= Number.EPSILON ? j : I);
598
598
  return;
599
599
  }
600
600
  if (h) {
601
- const y = h.reason === "minimum-exceeded", B = h.reason === "maximum-insufficient";
602
- (!y || U !== null) && (!B || P !== null) && !x && !g && w((Q) => Q && null);
601
+ const g = h.reason === "minimum-exceeded", I = h.reason === "maximum-insufficient";
602
+ (!g || ee !== null) && (!I || m !== null) && !b && !B && v((Z) => Z && null);
603
603
  }
604
- }, [s, e, l.width, l.height, h]), ue(() => {
605
- M();
606
- }, [M]), ue(() => {
607
- F.current = r;
604
+ }, [s, e, l.width, l.height, h]), fe(() => {
605
+ E();
606
+ }, [E]), fe(() => {
607
+ $.current = r;
608
608
  }, [r]);
609
- const $ = de(() => s.map((_) => _.size), [s]);
609
+ const q = ue(() => s.map((M) => M.size), [s]);
610
610
  Ye(() => {
611
- $.length > 0 && F.current && F.current($);
612
- }, [$]), ue(() => {
613
- if (o && $.length > 0) {
614
- const _ = setTimeout(() => {
615
- ir(o, $);
611
+ q.length > 0 && $.current && $.current(q);
612
+ }, [q]), fe(() => {
613
+ if (o && q.length > 0) {
614
+ const M = setTimeout(() => {
615
+ ir(o, q);
616
616
  }, 200);
617
- return () => clearTimeout(_);
617
+ return () => clearTimeout(M);
618
618
  }
619
- }, [o, $]), ue(() => {
620
- if (!o || s.length === 0 || V.current)
619
+ }, [o, q]), fe(() => {
620
+ if (!o || s.length === 0 || J.current)
621
621
  return;
622
- const _ = e === "horizontal" ? l.width : l.height;
623
- if (_ <= 0)
622
+ const M = e === "horizontal" ? l.width : l.height;
623
+ if (M <= 0)
624
624
  return;
625
625
  const n = or(o);
626
626
  if (n && n.length === s.length) {
627
- const z = s.map((E, N) => {
628
- const U = oe(E.minSize, 0, _), P = oe(E.maxSize, _, _), x = he(n[N], U, P), g = me(x, _);
627
+ const S = s.map((R, A) => {
628
+ const ee = se(R.minSize, 0, M), m = se(R.maxSize, M, M), b = he(n[A], ee, m), B = ge(b, M);
629
629
  return {
630
- ...E,
631
- size: x,
632
- percentageSize: g
630
+ ...R,
631
+ size: b,
632
+ percentageSize: B
633
633
  };
634
634
  });
635
- a({ type: "SET_PANELS", panels: z }), V.current = !0;
635
+ a({ type: "SET_PANELS", panels: S }), J.current = !0;
636
636
  }
637
637
  }, [o, s, l.width, l.height, e]);
638
- const W = fe((_) => {
639
- a({ type: "REGISTER_PANEL", panel: _ });
640
- }, []), X = fe((_) => {
641
- a({ type: "UNREGISTER_PANEL", id: _ }), v((n) => {
642
- if (!(_ in n))
638
+ const F = pe((M) => {
639
+ a({ type: "REGISTER_PANEL", panel: M });
640
+ }, []), Y = pe((M) => {
641
+ a({ type: "UNREGISTER_PANEL", id: M }), C((n) => {
642
+ if (!(M in n))
643
643
  return n;
644
- const z = { ...n };
645
- return delete z[_], z;
644
+ const S = { ...n };
645
+ return delete S[M], S;
646
646
  });
647
- }, []), te = fe(
648
- (_, n, z, E) => {
649
- const N = e === "horizontal" ? l.width : l.height, U = s.find((Q) => Q.id === _), P = s.find((Q) => Q.id === n);
650
- if (!(U && P)) {
651
- a({ type: "RESIZE_PANELS", leftId: _, rightId: n, leftSize: z, rightSize: E, containerSize: N });
647
+ }, []), te = pe(
648
+ (M, n, S, R) => {
649
+ const A = e === "horizontal" ? l.width : l.height, ee = s.find((Z) => Z.id === M), m = s.find((Z) => Z.id === n);
650
+ if (!(ee && m)) {
651
+ a({ type: "RESIZE_PANELS", leftId: M, rightId: n, leftSize: S, rightSize: R, containerSize: A });
652
652
  return;
653
653
  }
654
- if (U.collapsed || P.collapsed)
654
+ if (ee.collapsed || m.collapsed)
655
655
  return;
656
- const x = oe(U.minSize, 0, N), g = oe(U.maxSize, N, N), y = oe(P.minSize, 0, N), B = oe(P.maxSize, N, N);
657
- let j = he(z, x, g), G = he(E, y, B);
658
- const re = j + G, K = z + E;
659
- if (re !== K) {
660
- const Q = K - re;
661
- if (Q > 0) {
662
- const se = g - j, f = B - G, q = se + f;
663
- if (q > 0) {
664
- const ae = Math.min(Q * (se / q), se), ie = Math.min(Q - ae, f);
665
- j += ae, G += ie;
656
+ const b = se(ee.minSize, 0, A), B = se(ee.maxSize, A, A), g = se(m.minSize, 0, A), I = se(m.maxSize, A, A);
657
+ let j = he(S, b, B), G = he(R, g, I);
658
+ const Q = j + G, ie = S + R;
659
+ if (Q !== ie) {
660
+ const Z = ie - Q;
661
+ if (Z > 0) {
662
+ const re = B - j, u = I - G, U = re + u;
663
+ if (U > 0) {
664
+ const le = Math.min(Z * (re / U), re), oe = Math.min(Z - le, u);
665
+ j += le, G += oe;
666
666
  }
667
- } else if (Q < 0) {
668
- const se = Math.abs(Q), f = j - x, q = G - y, ae = f + q;
669
- if (ae > 0) {
670
- const ie = Math.min(se * (f / ae), f), ce = Math.min(se - ie, q);
671
- j -= ie, G -= ce;
667
+ } else if (Z < 0) {
668
+ const re = Math.abs(Z), u = j - b, U = G - g, le = u + U;
669
+ if (le > 0) {
670
+ const oe = Math.min(re * (u / le), u), ae = Math.min(re - oe, U);
671
+ j -= oe, G -= ae;
672
672
  }
673
673
  }
674
674
  }
675
- j = he(j, x, g), G = he(G, y, B), console.assert(j + G === K, "Total size after constraints should be close to the original total size.", { constrainedLeftSize: j, constrainedRightSize: G, originalTotalSize: K }), a({ type: "RESIZE_PANELS", leftId: _, rightId: n, leftSize: j, rightSize: G, containerSize: N });
675
+ j = he(j, b, B), G = he(G, g, I), console.assert(j + G === ie, "Total size after constraints should be close to the original total size.", { constrainedLeftSize: j, constrainedRightSize: G, originalTotalSize: ie }), a({ type: "RESIZE_PANELS", leftId: M, rightId: n, leftSize: j, rightSize: G, containerSize: A });
676
676
  },
677
677
  [e, l.width, l.height, s]
678
- ), Y = fe(
679
- (_) => {
678
+ ), V = pe(
679
+ (M) => {
680
680
  const n = e === "horizontal" ? l.width : l.height;
681
- a({ type: "COLLAPSE_PANEL", id: _, containerSize: n });
681
+ a({ type: "COLLAPSE_PANEL", id: M, containerSize: n });
682
682
  },
683
683
  [e, l.width, l.height]
684
- ), Z = fe(
685
- (_, n) => {
686
- const z = e === "horizontal" ? l.width : l.height;
687
- a({ type: "EXPAND_PANEL", id: _, containerSize: z, targetSize: n });
684
+ ), K = pe(
685
+ (M, n) => {
686
+ const S = e === "horizontal" ? l.width : l.height;
687
+ a({ type: "EXPAND_PANEL", id: M, containerSize: S, targetSize: n });
688
688
  },
689
689
  [e, l.width, l.height]
690
- ), H = fe(
691
- (_) => s.find((n) => n.id === _),
690
+ ), W = pe(
691
+ (M) => s.find((n) => n.id === M),
692
692
  [s]
693
- ), A = fe((_, n) => {
694
- v((z) => {
693
+ ), _ = pe((M, n) => {
694
+ C((S) => {
695
695
  if (n === null) {
696
- if (!(_ in z))
697
- return z;
698
- const N = { ...z };
699
- return delete N[_], N;
696
+ if (!(M in S))
697
+ return S;
698
+ const A = { ...S };
699
+ return delete A[M], A;
700
700
  }
701
- const E = z[_];
702
- return E && E.pixelSize === n.pixelSize && E.percentageSize === n.percentageSize ? z : {
703
- ...z,
704
- [_]: n
701
+ const R = S[M];
702
+ return R && R.pixelSize === n.pixelSize && R.percentageSize === n.percentageSize ? S : {
703
+ ...S,
704
+ [M]: n
705
705
  };
706
706
  });
707
- }, []), D = fe((_, n) => {
708
- m((z) => {
707
+ }, []), D = pe((M, n) => {
708
+ x((S) => {
709
709
  if (n === null) {
710
- if (!(_ in z))
711
- return z;
712
- const N = { ...z };
713
- return delete N[_], N;
710
+ if (!(M in S))
711
+ return S;
712
+ const A = { ...S };
713
+ return delete A[M], A;
714
714
  }
715
- const E = z[_];
716
- return E && Math.abs(E.thickness - n.thickness) <= 0.25 && E.visible === n.visible && E.direction === n.direction && E.startPanelId === n.startPanelId && E.endPanelId === n.endPanelId ? z : {
717
- ...z,
718
- [_]: n
715
+ const R = S[M];
716
+ return R && Math.abs(R.thickness - n.thickness) <= 0.25 && R.visible === n.visible && R.direction === n.direction && R.startPanelId === n.startPanelId && R.endPanelId === n.endPanelId ? S : {
717
+ ...S,
718
+ [M]: n
719
719
  };
720
720
  });
721
- }, []), k = de(
721
+ }, []), y = ue(
722
722
  () => ({
723
723
  direction: e,
724
724
  panels: s,
725
725
  containerSize: l,
726
- isContainerReady: S,
726
+ isContainerReady: P,
727
727
  showDebugInfo: i,
728
- registerPanel: W,
729
- unregisterPanel: X,
728
+ registerPanel: F,
729
+ unregisterPanel: Y,
730
730
  resizePanels: te,
731
- collapsePanel: Y,
732
- expandPanel: Z,
733
- getPanel: H,
734
- reportPanelMeasurement: A,
735
- panelMeasurements: C,
731
+ collapsePanel: V,
732
+ expandPanel: K,
733
+ getPanel: W,
734
+ reportPanelMeasurement: _,
735
+ panelMeasurements: w,
736
736
  reportHandleMeasurement: D,
737
737
  handleMeasurements: p,
738
738
  layoutConstraintViolation: h
@@ -741,21 +741,21 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
741
741
  e,
742
742
  s,
743
743
  l,
744
- S,
744
+ P,
745
745
  i,
746
- W,
747
- X,
748
- te,
746
+ F,
749
747
  Y,
750
- Z,
751
- H,
752
- A,
753
- C,
748
+ te,
749
+ V,
750
+ K,
751
+ W,
752
+ _,
753
+ w,
754
754
  D,
755
755
  p,
756
756
  h
757
757
  ]
758
- ), ne = de(
758
+ ), ne = ue(
759
759
  () => ({
760
760
  display: "flex",
761
761
  flexDirection: e === "horizontal" ? "row" : "column",
@@ -772,22 +772,22 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
772
772
  [e, t]
773
773
  );
774
774
  return {
775
- groupRef: R,
776
- contextValue: k,
775
+ groupRef: k,
776
+ contextValue: y,
777
777
  groupStyle: ne
778
778
  };
779
779
  }, nn = (e) => {
780
- const { getPanel: t, collapsePanel: r, expandPanel: o } = it(), i = t(e), s = fe(() => {
780
+ const { getPanel: t, collapsePanel: r, expandPanel: o } = it(), i = t(e), s = pe(() => {
781
781
  r(e);
782
- }, [r, e]), a = fe(
782
+ }, [r, e]), a = pe(
783
783
  (c) => {
784
784
  o(e, c);
785
785
  },
786
786
  [o, e]
787
- ), l = fe(() => {
787
+ ), l = pe(() => {
788
788
  i?.collapsed ? a() : s();
789
789
  }, [i?.collapsed, s, a]);
790
- return de(
790
+ return ue(
791
791
  () => ({
792
792
  panel: i,
793
793
  isCollapsed: i?.collapsed ?? !1,
@@ -830,7 +830,7 @@ function lr() {
830
830
  }
831
831
  return Te.Fragment = t, Te.jsx = r, Te.jsxs = r, Te;
832
832
  }
833
- var Oe = {};
833
+ var je = {};
834
834
  /**
835
835
  * @license React
836
836
  * react-jsx-runtime.development.js
@@ -846,41 +846,41 @@ function cr() {
846
846
  function e(n) {
847
847
  if (n == null) return null;
848
848
  if (typeof n == "function")
849
- return n.$$typeof === X ? null : n.displayName || n.name || null;
849
+ return n.$$typeof === Y ? null : n.displayName || n.name || null;
850
850
  if (typeof n == "string") return n;
851
851
  switch (n) {
852
- case v:
852
+ case C:
853
853
  return "Fragment";
854
- case m:
854
+ case x:
855
855
  return "Profiler";
856
856
  case p:
857
857
  return "StrictMode";
858
- case I:
858
+ case H:
859
859
  return "Suspense";
860
- case ee:
860
+ case O:
861
861
  return "SuspenseList";
862
- case W:
862
+ case F:
863
863
  return "Activity";
864
864
  }
865
865
  if (typeof n == "object")
866
866
  switch (typeof n.tag == "number" && console.error(
867
867
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
868
868
  ), n.$$typeof) {
869
- case C:
869
+ case w:
870
870
  return "Portal";
871
- case F:
871
+ case $:
872
872
  return n.displayName || "Context";
873
- case R:
873
+ case k:
874
874
  return (n._context.displayName || "Context") + ".Consumer";
875
- case V:
876
- var z = n.render;
877
- return n = n.displayName, n || (n = z.displayName || z.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
878
- case M:
879
- return z = n.displayName || null, z !== null ? z : e(n.type) || "Memo";
880
- case $:
881
- z = n._payload, n = n._init;
875
+ case J:
876
+ var S = n.render;
877
+ return n = n.displayName, n || (n = S.displayName || S.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
878
+ case E:
879
+ return S = n.displayName || null, S !== null ? S : e(n.type) || "Memo";
880
+ case q:
881
+ S = n._payload, n = n._init;
882
882
  try {
883
- return e(n(z));
883
+ return e(n(S));
884
884
  } catch {
885
885
  }
886
886
  }
@@ -892,27 +892,27 @@ function cr() {
892
892
  function r(n) {
893
893
  try {
894
894
  t(n);
895
- var z = !1;
895
+ var S = !1;
896
896
  } catch {
897
- z = !0;
897
+ S = !0;
898
898
  }
899
- if (z) {
900
- z = console;
901
- var E = z.error, N = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
902
- return E.call(
903
- z,
899
+ if (S) {
900
+ S = console;
901
+ var R = S.error, A = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
902
+ return R.call(
903
+ S,
904
904
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
905
- N
905
+ A
906
906
  ), t(n);
907
907
  }
908
908
  }
909
909
  function o(n) {
910
- if (n === v) return "<>";
911
- if (typeof n == "object" && n !== null && n.$$typeof === $)
910
+ if (n === C) return "<>";
911
+ if (typeof n == "object" && n !== null && n.$$typeof === q)
912
912
  return "<...>";
913
913
  try {
914
- var z = e(n);
915
- return z ? "<" + z + ">" : "<...>";
914
+ var S = e(n);
915
+ return S ? "<" + S + ">" : "<...>";
916
916
  } catch {
917
917
  return "<...>";
918
918
  }
@@ -925,21 +925,21 @@ function cr() {
925
925
  return Error("react-stack-top-frame");
926
926
  }
927
927
  function a(n) {
928
- if (Y.call(n, "key")) {
929
- var z = Object.getOwnPropertyDescriptor(n, "key").get;
930
- if (z && z.isReactWarning) return !1;
928
+ if (V.call(n, "key")) {
929
+ var S = Object.getOwnPropertyDescriptor(n, "key").get;
930
+ if (S && S.isReactWarning) return !1;
931
931
  }
932
932
  return n.key !== void 0;
933
933
  }
934
- function l(n, z) {
935
- function E() {
936
- A || (A = !0, console.error(
934
+ function l(n, S) {
935
+ function R() {
936
+ _ || (_ = !0, console.error(
937
937
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
938
- z
938
+ S
939
939
  ));
940
940
  }
941
- E.isReactWarning = !0, Object.defineProperty(n, "key", {
942
- get: E,
941
+ R.isReactWarning = !0, Object.defineProperty(n, "key", {
942
+ get: R,
943
943
  configurable: !0
944
944
  });
945
945
  }
@@ -949,15 +949,15 @@ function cr() {
949
949
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
950
950
  )), n = this.props.ref, n !== void 0 ? n : null;
951
951
  }
952
- function S(n, z, E, N, U, P) {
953
- var x = E.ref;
952
+ function P(n, S, R, A, ee, m) {
953
+ var b = R.ref;
954
954
  return n = {
955
- $$typeof: w,
955
+ $$typeof: v,
956
956
  type: n,
957
- key: z,
958
- props: E,
959
- _owner: N
960
- }, (x !== void 0 ? x : null) !== null ? Object.defineProperty(n, "ref", {
957
+ key: S,
958
+ props: R,
959
+ _owner: A
960
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(n, "ref", {
961
961
  enumerable: !1,
962
962
  get: c
963
963
  }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
@@ -974,69 +974,69 @@ function cr() {
974
974
  configurable: !1,
975
975
  enumerable: !1,
976
976
  writable: !0,
977
- value: U
977
+ value: ee
978
978
  }), Object.defineProperty(n, "_debugTask", {
979
979
  configurable: !1,
980
980
  enumerable: !1,
981
981
  writable: !0,
982
- value: P
982
+ value: m
983
983
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
984
984
  }
985
- function b(n, z, E, N, U, P) {
986
- var x = z.children;
987
- if (x !== void 0)
988
- if (N)
989
- if (Z(x)) {
990
- for (N = 0; N < x.length; N++)
991
- d(x[N]);
992
- Object.freeze && Object.freeze(x);
985
+ function z(n, S, R, A, ee, m) {
986
+ var b = S.children;
987
+ if (b !== void 0)
988
+ if (A)
989
+ if (K(b)) {
990
+ for (A = 0; A < b.length; A++)
991
+ f(b[A]);
992
+ Object.freeze && Object.freeze(b);
993
993
  } else
994
994
  console.error(
995
995
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
996
996
  );
997
- else d(x);
998
- if (Y.call(z, "key")) {
999
- x = e(n);
1000
- var g = Object.keys(z).filter(function(B) {
1001
- return B !== "key";
997
+ else f(b);
998
+ if (V.call(S, "key")) {
999
+ b = e(n);
1000
+ var B = Object.keys(S).filter(function(I) {
1001
+ return I !== "key";
1002
1002
  });
1003
- N = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", _[x + N] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
1003
+ A = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", M[b + A] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
1004
1004
  `A props object containing a "key" prop is being spread into JSX:
1005
1005
  let props = %s;
1006
1006
  <%s {...props} />
1007
1007
  React keys must be passed directly to JSX without using spread:
1008
1008
  let props = %s;
1009
1009
  <%s key={someKey} {...props} />`,
1010
- N,
1011
- x,
1012
- g,
1013
- x
1014
- ), _[x + N] = !0);
1010
+ A,
1011
+ b,
1012
+ B,
1013
+ b
1014
+ ), M[b + A] = !0);
1015
1015
  }
1016
- if (x = null, E !== void 0 && (r(E), x = "" + E), a(z) && (r(z.key), x = "" + z.key), "key" in z) {
1017
- E = {};
1018
- for (var y in z)
1019
- y !== "key" && (E[y] = z[y]);
1020
- } else E = z;
1021
- return x && l(
1022
- E,
1016
+ if (b = null, R !== void 0 && (r(R), b = "" + R), a(S) && (r(S.key), b = "" + S.key), "key" in S) {
1017
+ R = {};
1018
+ for (var g in S)
1019
+ g !== "key" && (R[g] = S[g]);
1020
+ } else R = S;
1021
+ return b && l(
1022
+ R,
1023
1023
  typeof n == "function" ? n.displayName || n.name || "Unknown" : n
1024
- ), S(
1024
+ ), P(
1025
1025
  n,
1026
- x,
1027
- E,
1026
+ b,
1027
+ R,
1028
1028
  i(),
1029
- U,
1030
- P
1029
+ ee,
1030
+ m
1031
1031
  );
1032
1032
  }
1033
- function d(n) {
1034
- u(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === $ && (n._payload.status === "fulfilled" ? u(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
1033
+ function f(n) {
1034
+ d(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === q && (n._payload.status === "fulfilled" ? d(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
1035
1035
  }
1036
- function u(n) {
1037
- return typeof n == "object" && n !== null && n.$$typeof === w;
1036
+ function d(n) {
1037
+ return typeof n == "object" && n !== null && n.$$typeof === v;
1038
1038
  }
1039
- var h = Vt, w = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), F = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), te = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, Z = Array.isArray, H = console.createTask ? console.createTask : function() {
1039
+ var h = Vt, v = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), J = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), te = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, K = Array.isArray, W = console.createTask ? console.createTask : function() {
1040
1040
  return null;
1041
1041
  };
1042
1042
  h = {
@@ -1044,32 +1044,32 @@ React keys must be passed directly to JSX without using spread:
1044
1044
  return n();
1045
1045
  }
1046
1046
  };
1047
- var A, D = {}, k = h.react_stack_bottom_frame.bind(
1047
+ var _, D = {}, y = h.react_stack_bottom_frame.bind(
1048
1048
  h,
1049
1049
  s
1050
- )(), ne = H(o(s)), _ = {};
1051
- Oe.Fragment = v, Oe.jsx = function(n, z, E) {
1052
- var N = 1e4 > te.recentlyCreatedOwnerStacks++;
1053
- return b(
1050
+ )(), ne = W(o(s)), M = {};
1051
+ je.Fragment = C, je.jsx = function(n, S, R) {
1052
+ var A = 1e4 > te.recentlyCreatedOwnerStacks++;
1053
+ return z(
1054
1054
  n,
1055
- z,
1056
- E,
1055
+ S,
1056
+ R,
1057
1057
  !1,
1058
- N ? Error("react-stack-top-frame") : k,
1059
- N ? H(o(n)) : ne
1058
+ A ? Error("react-stack-top-frame") : y,
1059
+ A ? W(o(n)) : ne
1060
1060
  );
1061
- }, Oe.jsxs = function(n, z, E) {
1062
- var N = 1e4 > te.recentlyCreatedOwnerStacks++;
1063
- return b(
1061
+ }, je.jsxs = function(n, S, R) {
1062
+ var A = 1e4 > te.recentlyCreatedOwnerStacks++;
1063
+ return z(
1064
1064
  n,
1065
- z,
1066
- E,
1065
+ S,
1066
+ R,
1067
1067
  !0,
1068
- N ? Error("react-stack-top-frame") : k,
1069
- N ? H(o(n)) : ne
1068
+ A ? Error("react-stack-top-frame") : y,
1069
+ A ? W(o(n)) : ne
1070
1070
  );
1071
1071
  };
1072
- })()), Oe;
1072
+ })()), je;
1073
1073
  }
1074
1074
  var bt;
1075
1075
  function dr() {
@@ -1181,26 +1181,26 @@ const st = "-", ur = (e) => {
1181
1181
  } = e;
1182
1182
  let o = (i) => {
1183
1183
  const s = [];
1184
- let a = 0, l = 0, c = 0, S;
1185
- for (let w = 0; w < i.length; w++) {
1186
- let C = i[w];
1184
+ let a = 0, l = 0, c = 0, P;
1185
+ for (let v = 0; v < i.length; v++) {
1186
+ let w = i[v];
1187
1187
  if (a === 0 && l === 0) {
1188
- if (C === rt) {
1189
- s.push(i.slice(c, w)), c = w + hr;
1188
+ if (w === rt) {
1189
+ s.push(i.slice(c, v)), c = v + hr;
1190
1190
  continue;
1191
1191
  }
1192
- if (C === "/") {
1193
- S = w;
1192
+ if (w === "/") {
1193
+ P = v;
1194
1194
  continue;
1195
1195
  }
1196
1196
  }
1197
- C === "[" ? a++ : C === "]" ? a-- : C === "(" ? l++ : C === ")" && l--;
1197
+ w === "[" ? a++ : w === "]" ? a-- : w === "(" ? l++ : w === ")" && l--;
1198
1198
  }
1199
- const b = s.length === 0 ? i : i.substring(c), d = br(b), u = d !== b, h = S && S > c ? S - c : void 0;
1199
+ const z = s.length === 0 ? i : i.substring(c), f = br(z), d = f !== z, h = P && P > c ? P - c : void 0;
1200
1200
  return {
1201
1201
  modifiers: s,
1202
- hasImportantModifier: u,
1203
- baseClassName: d,
1202
+ hasImportantModifier: d,
1203
+ baseClassName: f,
1204
1204
  maybePostfixModifierPosition: h
1205
1205
  };
1206
1206
  };
@@ -1246,90 +1246,90 @@ const st = "-", ur = (e) => {
1246
1246
  sortModifiers: s
1247
1247
  } = t, a = [], l = e.trim().split(Pr);
1248
1248
  let c = "";
1249
- for (let S = l.length - 1; S >= 0; S -= 1) {
1250
- const b = l[S], {
1251
- isExternal: d,
1252
- modifiers: u,
1249
+ for (let P = l.length - 1; P >= 0; P -= 1) {
1250
+ const z = l[P], {
1251
+ isExternal: f,
1252
+ modifiers: d,
1253
1253
  hasImportantModifier: h,
1254
- baseClassName: w,
1255
- maybePostfixModifierPosition: C
1256
- } = r(b);
1257
- if (d) {
1258
- c = b + (c.length > 0 ? " " + c : c);
1254
+ baseClassName: v,
1255
+ maybePostfixModifierPosition: w
1256
+ } = r(z);
1257
+ if (f) {
1258
+ c = z + (c.length > 0 ? " " + c : c);
1259
1259
  continue;
1260
1260
  }
1261
- let v = !!C, p = o(v ? w.substring(0, C) : w);
1261
+ let C = !!w, p = o(C ? v.substring(0, w) : v);
1262
1262
  if (!p) {
1263
- if (!v) {
1264
- c = b + (c.length > 0 ? " " + c : c);
1263
+ if (!C) {
1264
+ c = z + (c.length > 0 ? " " + c : c);
1265
1265
  continue;
1266
1266
  }
1267
- if (p = o(w), !p) {
1268
- c = b + (c.length > 0 ? " " + c : c);
1267
+ if (p = o(v), !p) {
1268
+ c = z + (c.length > 0 ? " " + c : c);
1269
1269
  continue;
1270
1270
  }
1271
- v = !1;
1271
+ C = !1;
1272
1272
  }
1273
- const m = s(u).join(":"), R = h ? m + tt : m, F = R + p;
1274
- if (a.includes(F))
1273
+ const x = s(d).join(":"), k = h ? x + tt : x, $ = k + p;
1274
+ if (a.includes($))
1275
1275
  continue;
1276
- a.push(F);
1277
- const V = i(p, v);
1278
- for (let I = 0; I < V.length; ++I) {
1279
- const ee = V[I];
1280
- a.push(R + ee);
1276
+ a.push($);
1277
+ const J = i(p, C);
1278
+ for (let H = 0; H < J.length; ++H) {
1279
+ const O = J[H];
1280
+ a.push(k + O);
1281
1281
  }
1282
- c = b + (c.length > 0 ? " " + c : c);
1282
+ c = z + (c.length > 0 ? " " + c : c);
1283
1283
  }
1284
1284
  return c;
1285
1285
  };
1286
1286
  function vr() {
1287
1287
  let e = 0, t, r, o = "";
1288
1288
  for (; e < arguments.length; )
1289
- (t = arguments[e++]) && (r = Ot(t)) && (o && (o += " "), o += r);
1289
+ (t = arguments[e++]) && (r = jt(t)) && (o && (o += " "), o += r);
1290
1290
  return o;
1291
1291
  }
1292
- const Ot = (e) => {
1292
+ const jt = (e) => {
1293
1293
  if (typeof e == "string")
1294
1294
  return e;
1295
1295
  let t, r = "";
1296
1296
  for (let o = 0; o < e.length; o++)
1297
- e[o] && (t = Ot(e[o])) && (r && (r += " "), r += t);
1297
+ e[o] && (t = jt(e[o])) && (r && (r += " "), r += t);
1298
1298
  return r;
1299
1299
  };
1300
1300
  function wr(e, ...t) {
1301
1301
  let r, o, i, s = a;
1302
1302
  function a(c) {
1303
- const S = t.reduce((b, d) => d(b), e());
1304
- return r = Sr(S), o = r.cache.get, i = r.cache.set, s = l, l(c);
1303
+ const P = t.reduce((z, f) => f(z), e());
1304
+ return r = Sr(P), o = r.cache.get, i = r.cache.set, s = l, l(c);
1305
1305
  }
1306
1306
  function l(c) {
1307
- const S = o(c);
1308
- if (S)
1309
- return S;
1310
- const b = yr(c, r);
1311
- return i(c, b), b;
1307
+ const P = o(c);
1308
+ if (P)
1309
+ return P;
1310
+ const z = yr(c, r);
1311
+ return i(c, z), z;
1312
1312
  }
1313
1313
  return function() {
1314
1314
  return s(vr.apply(null, arguments));
1315
1315
  };
1316
1316
  }
1317
- const le = (e) => {
1317
+ const ce = (e) => {
1318
1318
  const t = (r) => r[e] || [];
1319
1319
  return t.isThemeGetter = !0, t;
1320
- }, jt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cr = /^\d+\/\d+$/, kr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Er = /\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$/, Mr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Rr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _r = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => Cr.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => !!e && Number.isInteger(Number(e)), Ze = (e) => e.endsWith("%") && J(e.slice(0, -1)), ve = (e) => kr.test(e), Ir = () => !0, Ar = (e) => (
1320
+ }, Ot = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cr = /^\d+\/\d+$/, kr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Er = /\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$/, Mr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Rr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _r = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => Cr.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => !!e && Number.isInteger(Number(e)), Ze = (e) => e.endsWith("%") && X(e.slice(0, -1)), ve = (e) => kr.test(e), Ir = () => !0, Ar = (e) => (
1321
1321
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1322
1322
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1323
1323
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1324
1324
  Er.test(e) && !Mr.test(e)
1325
- ), Lt = () => !1, Nr = (e) => Rr.test(e), Tr = (e) => _r.test(e), Or = (e) => !T(e) && !O(e), jr = (e) => Ie(e, Ft, Lt), T = (e) => jt.test(e), Me = (e) => Ie(e, Ht, Ar), Qe = (e) => Ie(e, Fr, J), Pt = (e) => Ie(e, Dt, Lt), Br = (e) => Ie(e, Gt, Tr), We = (e) => Ie(e, $t, Nr), O = (e) => Bt.test(e), je = (e) => Ae(e, Ht), Lr = (e) => Ae(e, Hr), yt = (e) => Ae(e, Dt), Dr = (e) => Ae(e, Ft), Gr = (e) => Ae(e, Gt), Ue = (e) => Ae(e, $t, !0), Ie = (e, t, r) => {
1326
- const o = jt.exec(e);
1325
+ ), Lt = () => !1, Nr = (e) => Rr.test(e), Tr = (e) => _r.test(e), jr = (e) => !N(e) && !T(e), Or = (e) => Ie(e, Ft, Lt), N = (e) => Ot.test(e), Ee = (e) => Ie(e, Ht, Ar), Qe = (e) => Ie(e, Fr, X), Pt = (e) => Ie(e, Dt, Lt), Br = (e) => Ie(e, Gt, Tr), We = (e) => Ie(e, $t, Nr), T = (e) => Bt.test(e), Oe = (e) => Ae(e, Ht), Lr = (e) => Ae(e, Hr), yt = (e) => Ae(e, Dt), Dr = (e) => Ae(e, Ft), Gr = (e) => Ae(e, Gt), Ue = (e) => Ae(e, $t, !0), Ie = (e, t, r) => {
1326
+ const o = Ot.exec(e);
1327
1327
  return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
1328
1328
  }, Ae = (e, t, r = !1) => {
1329
1329
  const o = Bt.exec(e);
1330
1330
  return o ? o[1] ? t(o[1]) : r : !1;
1331
1331
  }, Dt = (e) => e === "position" || e === "percentage", Gt = (e) => e === "image" || e === "url", Ft = (e) => e === "length" || e === "size" || e === "bg-size", Ht = (e) => e === "length", Fr = (e) => e === "number", Hr = (e) => e === "family-name", $t = (e) => e === "shadow", $r = () => {
1332
- const e = le("color"), t = le("font"), r = le("text"), o = le("font-weight"), i = le("tracking"), s = le("leading"), a = le("breakpoint"), l = le("container"), c = le("spacing"), S = le("radius"), b = le("shadow"), d = le("inset-shadow"), u = le("text-shadow"), h = le("drop-shadow"), w = le("blur"), C = le("perspective"), v = le("aspect"), p = le("ease"), m = le("animate"), R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
1332
+ const e = ce("color"), t = ce("font"), r = ce("text"), o = ce("font-weight"), i = ce("tracking"), s = ce("leading"), a = ce("breakpoint"), l = ce("container"), c = ce("spacing"), P = ce("radius"), z = ce("shadow"), f = ce("inset-shadow"), d = ce("text-shadow"), h = ce("drop-shadow"), v = ce("blur"), w = ce("perspective"), C = ce("aspect"), p = ce("ease"), x = ce("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
1333
1333
  "center",
1334
1334
  "top",
1335
1335
  "bottom",
@@ -1347,30 +1347,30 @@ const le = (e) => {
1347
1347
  "bottom-left",
1348
1348
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1349
1349
  "left-bottom"
1350
- ], V = () => [...F(), O, T], I = () => ["auto", "hidden", "clip", "visible", "scroll"], ee = () => ["auto", "contain", "none"], M = () => [O, T, c], $ = () => [_e, "full", "auto", ...M()], W = () => [ke, "none", "subgrid", O, T], X = () => ["auto", {
1351
- span: ["full", ke, O, T]
1352
- }, ke, O, T], te = () => [ke, "auto", O, T], Y = () => ["auto", "min", "max", "fr", O, T], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...M()], D = () => [_e, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...M()], k = () => [e, O, T], ne = () => [...F(), yt, Pt, {
1353
- position: [O, T]
1354
- }], _ = () => ["no-repeat", {
1350
+ ], J = () => [...$(), T, N], H = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], E = () => [T, N, c], q = () => [_e, "full", "auto", ...E()], F = () => [ke, "none", "subgrid", T, N], Y = () => ["auto", {
1351
+ span: ["full", ke, T, N]
1352
+ }, ke, T, N], te = () => [ke, "auto", T, N], V = () => ["auto", "min", "max", "fr", T, N], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...E()], D = () => [_e, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], y = () => [e, T, N], ne = () => [...$(), yt, Pt, {
1353
+ position: [T, N]
1354
+ }], M = () => ["no-repeat", {
1355
1355
  repeat: ["", "x", "y", "space", "round"]
1356
- }], n = () => ["auto", "cover", "contain", Dr, jr, {
1357
- size: [O, T]
1358
- }], z = () => [Ze, je, Me], E = () => [
1356
+ }], n = () => ["auto", "cover", "contain", Dr, Or, {
1357
+ size: [T, N]
1358
+ }], S = () => [Ze, Oe, Ee], R = () => [
1359
1359
  // Deprecated since Tailwind CSS v4.0.0
1360
1360
  "",
1361
1361
  "none",
1362
1362
  "full",
1363
- S,
1364
- O,
1365
- T
1366
- ], N = () => ["", J, je, Me], U = () => ["solid", "dashed", "dotted", "double"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [J, Ze, yt, Pt], g = () => [
1363
+ P,
1364
+ T,
1365
+ N
1366
+ ], A = () => ["", X, Oe, Ee], ee = () => ["solid", "dashed", "dotted", "double"], m = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], b = () => [X, Ze, yt, Pt], B = () => [
1367
1367
  // Deprecated since Tailwind CSS v4.0.0
1368
1368
  "",
1369
1369
  "none",
1370
- w,
1371
- O,
1372
- T
1373
- ], y = () => ["none", J, O, T], B = () => ["none", J, O, T], j = () => [J, O, T], G = () => [_e, "full", ...M()];
1370
+ v,
1371
+ T,
1372
+ N
1373
+ ], g = () => ["none", X, T, N], I = () => ["none", X, T, N], j = () => [X, T, N], G = () => [_e, "full", ...E()];
1374
1374
  return {
1375
1375
  cacheSize: 500,
1376
1376
  theme: {
@@ -1382,14 +1382,14 @@ const le = (e) => {
1382
1382
  container: [ve],
1383
1383
  "drop-shadow": [ve],
1384
1384
  ease: ["in", "out", "in-out"],
1385
- font: [Or],
1385
+ font: [jr],
1386
1386
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1387
1387
  "inset-shadow": [ve],
1388
1388
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1389
1389
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1390
1390
  radius: [ve],
1391
1391
  shadow: [ve],
1392
- spacing: ["px", J],
1392
+ spacing: ["px", X],
1393
1393
  text: [ve],
1394
1394
  "text-shadow": [ve],
1395
1395
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -1403,7 +1403,7 @@ const le = (e) => {
1403
1403
  * @see https://tailwindcss.com/docs/aspect-ratio
1404
1404
  */
1405
1405
  aspect: [{
1406
- aspect: ["auto", "square", _e, T, O, v]
1406
+ aspect: ["auto", "square", _e, N, T, C]
1407
1407
  }],
1408
1408
  /**
1409
1409
  * Container
@@ -1416,21 +1416,21 @@ const le = (e) => {
1416
1416
  * @see https://tailwindcss.com/docs/columns
1417
1417
  */
1418
1418
  columns: [{
1419
- columns: [J, T, O, l]
1419
+ columns: [X, N, T, l]
1420
1420
  }],
1421
1421
  /**
1422
1422
  * Break After
1423
1423
  * @see https://tailwindcss.com/docs/break-after
1424
1424
  */
1425
1425
  "break-after": [{
1426
- "break-after": R()
1426
+ "break-after": k()
1427
1427
  }],
1428
1428
  /**
1429
1429
  * Break Before
1430
1430
  * @see https://tailwindcss.com/docs/break-before
1431
1431
  */
1432
1432
  "break-before": [{
1433
- "break-before": R()
1433
+ "break-before": k()
1434
1434
  }],
1435
1435
  /**
1436
1436
  * Break Inside
@@ -1494,49 +1494,49 @@ const le = (e) => {
1494
1494
  * @see https://tailwindcss.com/docs/object-position
1495
1495
  */
1496
1496
  "object-position": [{
1497
- object: V()
1497
+ object: J()
1498
1498
  }],
1499
1499
  /**
1500
1500
  * Overflow
1501
1501
  * @see https://tailwindcss.com/docs/overflow
1502
1502
  */
1503
1503
  overflow: [{
1504
- overflow: I()
1504
+ overflow: H()
1505
1505
  }],
1506
1506
  /**
1507
1507
  * Overflow X
1508
1508
  * @see https://tailwindcss.com/docs/overflow
1509
1509
  */
1510
1510
  "overflow-x": [{
1511
- "overflow-x": I()
1511
+ "overflow-x": H()
1512
1512
  }],
1513
1513
  /**
1514
1514
  * Overflow Y
1515
1515
  * @see https://tailwindcss.com/docs/overflow
1516
1516
  */
1517
1517
  "overflow-y": [{
1518
- "overflow-y": I()
1518
+ "overflow-y": H()
1519
1519
  }],
1520
1520
  /**
1521
1521
  * Overscroll Behavior
1522
1522
  * @see https://tailwindcss.com/docs/overscroll-behavior
1523
1523
  */
1524
1524
  overscroll: [{
1525
- overscroll: ee()
1525
+ overscroll: O()
1526
1526
  }],
1527
1527
  /**
1528
1528
  * Overscroll Behavior X
1529
1529
  * @see https://tailwindcss.com/docs/overscroll-behavior
1530
1530
  */
1531
1531
  "overscroll-x": [{
1532
- "overscroll-x": ee()
1532
+ "overscroll-x": O()
1533
1533
  }],
1534
1534
  /**
1535
1535
  * Overscroll Behavior Y
1536
1536
  * @see https://tailwindcss.com/docs/overscroll-behavior
1537
1537
  */
1538
1538
  "overscroll-y": [{
1539
- "overscroll-y": ee()
1539
+ "overscroll-y": O()
1540
1540
  }],
1541
1541
  /**
1542
1542
  * Position
@@ -1548,63 +1548,63 @@ const le = (e) => {
1548
1548
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1549
1549
  */
1550
1550
  inset: [{
1551
- inset: $()
1551
+ inset: q()
1552
1552
  }],
1553
1553
  /**
1554
1554
  * Right / Left
1555
1555
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1556
1556
  */
1557
1557
  "inset-x": [{
1558
- "inset-x": $()
1558
+ "inset-x": q()
1559
1559
  }],
1560
1560
  /**
1561
1561
  * Top / Bottom
1562
1562
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1563
1563
  */
1564
1564
  "inset-y": [{
1565
- "inset-y": $()
1565
+ "inset-y": q()
1566
1566
  }],
1567
1567
  /**
1568
1568
  * Start
1569
1569
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1570
1570
  */
1571
1571
  start: [{
1572
- start: $()
1572
+ start: q()
1573
1573
  }],
1574
1574
  /**
1575
1575
  * End
1576
1576
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1577
1577
  */
1578
1578
  end: [{
1579
- end: $()
1579
+ end: q()
1580
1580
  }],
1581
1581
  /**
1582
1582
  * Top
1583
1583
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1584
1584
  */
1585
1585
  top: [{
1586
- top: $()
1586
+ top: q()
1587
1587
  }],
1588
1588
  /**
1589
1589
  * Right
1590
1590
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1591
1591
  */
1592
1592
  right: [{
1593
- right: $()
1593
+ right: q()
1594
1594
  }],
1595
1595
  /**
1596
1596
  * Bottom
1597
1597
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1598
1598
  */
1599
1599
  bottom: [{
1600
- bottom: $()
1600
+ bottom: q()
1601
1601
  }],
1602
1602
  /**
1603
1603
  * Left
1604
1604
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1605
1605
  */
1606
1606
  left: [{
1607
- left: $()
1607
+ left: q()
1608
1608
  }],
1609
1609
  /**
1610
1610
  * Visibility
@@ -1616,7 +1616,7 @@ const le = (e) => {
1616
1616
  * @see https://tailwindcss.com/docs/z-index
1617
1617
  */
1618
1618
  z: [{
1619
- z: [ke, "auto", O, T]
1619
+ z: [ke, "auto", T, N]
1620
1620
  }],
1621
1621
  // ------------------------
1622
1622
  // --- Flexbox and Grid ---
@@ -1626,7 +1626,7 @@ const le = (e) => {
1626
1626
  * @see https://tailwindcss.com/docs/flex-basis
1627
1627
  */
1628
1628
  basis: [{
1629
- basis: [_e, "full", "auto", l, ...M()]
1629
+ basis: [_e, "full", "auto", l, ...E()]
1630
1630
  }],
1631
1631
  /**
1632
1632
  * Flex Direction
@@ -1647,42 +1647,42 @@ const le = (e) => {
1647
1647
  * @see https://tailwindcss.com/docs/flex
1648
1648
  */
1649
1649
  flex: [{
1650
- flex: [J, _e, "auto", "initial", "none", T]
1650
+ flex: [X, _e, "auto", "initial", "none", N]
1651
1651
  }],
1652
1652
  /**
1653
1653
  * Flex Grow
1654
1654
  * @see https://tailwindcss.com/docs/flex-grow
1655
1655
  */
1656
1656
  grow: [{
1657
- grow: ["", J, O, T]
1657
+ grow: ["", X, T, N]
1658
1658
  }],
1659
1659
  /**
1660
1660
  * Flex Shrink
1661
1661
  * @see https://tailwindcss.com/docs/flex-shrink
1662
1662
  */
1663
1663
  shrink: [{
1664
- shrink: ["", J, O, T]
1664
+ shrink: ["", X, T, N]
1665
1665
  }],
1666
1666
  /**
1667
1667
  * Order
1668
1668
  * @see https://tailwindcss.com/docs/order
1669
1669
  */
1670
1670
  order: [{
1671
- order: [ke, "first", "last", "none", O, T]
1671
+ order: [ke, "first", "last", "none", T, N]
1672
1672
  }],
1673
1673
  /**
1674
1674
  * Grid Template Columns
1675
1675
  * @see https://tailwindcss.com/docs/grid-template-columns
1676
1676
  */
1677
1677
  "grid-cols": [{
1678
- "grid-cols": W()
1678
+ "grid-cols": F()
1679
1679
  }],
1680
1680
  /**
1681
1681
  * Grid Column Start / End
1682
1682
  * @see https://tailwindcss.com/docs/grid-column
1683
1683
  */
1684
1684
  "col-start-end": [{
1685
- col: X()
1685
+ col: Y()
1686
1686
  }],
1687
1687
  /**
1688
1688
  * Grid Column Start
@@ -1703,14 +1703,14 @@ const le = (e) => {
1703
1703
  * @see https://tailwindcss.com/docs/grid-template-rows
1704
1704
  */
1705
1705
  "grid-rows": [{
1706
- "grid-rows": W()
1706
+ "grid-rows": F()
1707
1707
  }],
1708
1708
  /**
1709
1709
  * Grid Row Start / End
1710
1710
  * @see https://tailwindcss.com/docs/grid-row
1711
1711
  */
1712
1712
  "row-start-end": [{
1713
- row: X()
1713
+ row: Y()
1714
1714
  }],
1715
1715
  /**
1716
1716
  * Grid Row Start
@@ -1738,70 +1738,70 @@ const le = (e) => {
1738
1738
  * @see https://tailwindcss.com/docs/grid-auto-columns
1739
1739
  */
1740
1740
  "auto-cols": [{
1741
- "auto-cols": Y()
1741
+ "auto-cols": V()
1742
1742
  }],
1743
1743
  /**
1744
1744
  * Grid Auto Rows
1745
1745
  * @see https://tailwindcss.com/docs/grid-auto-rows
1746
1746
  */
1747
1747
  "auto-rows": [{
1748
- "auto-rows": Y()
1748
+ "auto-rows": V()
1749
1749
  }],
1750
1750
  /**
1751
1751
  * Gap
1752
1752
  * @see https://tailwindcss.com/docs/gap
1753
1753
  */
1754
1754
  gap: [{
1755
- gap: M()
1755
+ gap: E()
1756
1756
  }],
1757
1757
  /**
1758
1758
  * Gap X
1759
1759
  * @see https://tailwindcss.com/docs/gap
1760
1760
  */
1761
1761
  "gap-x": [{
1762
- "gap-x": M()
1762
+ "gap-x": E()
1763
1763
  }],
1764
1764
  /**
1765
1765
  * Gap Y
1766
1766
  * @see https://tailwindcss.com/docs/gap
1767
1767
  */
1768
1768
  "gap-y": [{
1769
- "gap-y": M()
1769
+ "gap-y": E()
1770
1770
  }],
1771
1771
  /**
1772
1772
  * Justify Content
1773
1773
  * @see https://tailwindcss.com/docs/justify-content
1774
1774
  */
1775
1775
  "justify-content": [{
1776
- justify: [...Z(), "normal"]
1776
+ justify: [...K(), "normal"]
1777
1777
  }],
1778
1778
  /**
1779
1779
  * Justify Items
1780
1780
  * @see https://tailwindcss.com/docs/justify-items
1781
1781
  */
1782
1782
  "justify-items": [{
1783
- "justify-items": [...H(), "normal"]
1783
+ "justify-items": [...W(), "normal"]
1784
1784
  }],
1785
1785
  /**
1786
1786
  * Justify Self
1787
1787
  * @see https://tailwindcss.com/docs/justify-self
1788
1788
  */
1789
1789
  "justify-self": [{
1790
- "justify-self": ["auto", ...H()]
1790
+ "justify-self": ["auto", ...W()]
1791
1791
  }],
1792
1792
  /**
1793
1793
  * Align Content
1794
1794
  * @see https://tailwindcss.com/docs/align-content
1795
1795
  */
1796
1796
  "align-content": [{
1797
- content: ["normal", ...Z()]
1797
+ content: ["normal", ...K()]
1798
1798
  }],
1799
1799
  /**
1800
1800
  * Align Items
1801
1801
  * @see https://tailwindcss.com/docs/align-items
1802
1802
  */
1803
1803
  "align-items": [{
1804
- items: [...H(), {
1804
+ items: [...W(), {
1805
1805
  baseline: ["", "last"]
1806
1806
  }]
1807
1807
  }],
@@ -1810,7 +1810,7 @@ const le = (e) => {
1810
1810
  * @see https://tailwindcss.com/docs/align-self
1811
1811
  */
1812
1812
  "align-self": [{
1813
- self: ["auto", ...H(), {
1813
+ self: ["auto", ...W(), {
1814
1814
  baseline: ["", "last"]
1815
1815
  }]
1816
1816
  }],
@@ -1819,21 +1819,21 @@ const le = (e) => {
1819
1819
  * @see https://tailwindcss.com/docs/place-content
1820
1820
  */
1821
1821
  "place-content": [{
1822
- "place-content": Z()
1822
+ "place-content": K()
1823
1823
  }],
1824
1824
  /**
1825
1825
  * Place Items
1826
1826
  * @see https://tailwindcss.com/docs/place-items
1827
1827
  */
1828
1828
  "place-items": [{
1829
- "place-items": [...H(), "baseline"]
1829
+ "place-items": [...W(), "baseline"]
1830
1830
  }],
1831
1831
  /**
1832
1832
  * Place Self
1833
1833
  * @see https://tailwindcss.com/docs/place-self
1834
1834
  */
1835
1835
  "place-self": [{
1836
- "place-self": ["auto", ...H()]
1836
+ "place-self": ["auto", ...W()]
1837
1837
  }],
1838
1838
  // Spacing
1839
1839
  /**
@@ -1841,133 +1841,133 @@ const le = (e) => {
1841
1841
  * @see https://tailwindcss.com/docs/padding
1842
1842
  */
1843
1843
  p: [{
1844
- p: M()
1844
+ p: E()
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Padding X
1848
1848
  * @see https://tailwindcss.com/docs/padding
1849
1849
  */
1850
1850
  px: [{
1851
- px: M()
1851
+ px: E()
1852
1852
  }],
1853
1853
  /**
1854
1854
  * Padding Y
1855
1855
  * @see https://tailwindcss.com/docs/padding
1856
1856
  */
1857
1857
  py: [{
1858
- py: M()
1858
+ py: E()
1859
1859
  }],
1860
1860
  /**
1861
1861
  * Padding Start
1862
1862
  * @see https://tailwindcss.com/docs/padding
1863
1863
  */
1864
1864
  ps: [{
1865
- ps: M()
1865
+ ps: E()
1866
1866
  }],
1867
1867
  /**
1868
1868
  * Padding End
1869
1869
  * @see https://tailwindcss.com/docs/padding
1870
1870
  */
1871
1871
  pe: [{
1872
- pe: M()
1872
+ pe: E()
1873
1873
  }],
1874
1874
  /**
1875
1875
  * Padding Top
1876
1876
  * @see https://tailwindcss.com/docs/padding
1877
1877
  */
1878
1878
  pt: [{
1879
- pt: M()
1879
+ pt: E()
1880
1880
  }],
1881
1881
  /**
1882
1882
  * Padding Right
1883
1883
  * @see https://tailwindcss.com/docs/padding
1884
1884
  */
1885
1885
  pr: [{
1886
- pr: M()
1886
+ pr: E()
1887
1887
  }],
1888
1888
  /**
1889
1889
  * Padding Bottom
1890
1890
  * @see https://tailwindcss.com/docs/padding
1891
1891
  */
1892
1892
  pb: [{
1893
- pb: M()
1893
+ pb: E()
1894
1894
  }],
1895
1895
  /**
1896
1896
  * Padding Left
1897
1897
  * @see https://tailwindcss.com/docs/padding
1898
1898
  */
1899
1899
  pl: [{
1900
- pl: M()
1900
+ pl: E()
1901
1901
  }],
1902
1902
  /**
1903
1903
  * Margin
1904
1904
  * @see https://tailwindcss.com/docs/margin
1905
1905
  */
1906
1906
  m: [{
1907
- m: A()
1907
+ m: _()
1908
1908
  }],
1909
1909
  /**
1910
1910
  * Margin X
1911
1911
  * @see https://tailwindcss.com/docs/margin
1912
1912
  */
1913
1913
  mx: [{
1914
- mx: A()
1914
+ mx: _()
1915
1915
  }],
1916
1916
  /**
1917
1917
  * Margin Y
1918
1918
  * @see https://tailwindcss.com/docs/margin
1919
1919
  */
1920
1920
  my: [{
1921
- my: A()
1921
+ my: _()
1922
1922
  }],
1923
1923
  /**
1924
1924
  * Margin Start
1925
1925
  * @see https://tailwindcss.com/docs/margin
1926
1926
  */
1927
1927
  ms: [{
1928
- ms: A()
1928
+ ms: _()
1929
1929
  }],
1930
1930
  /**
1931
1931
  * Margin End
1932
1932
  * @see https://tailwindcss.com/docs/margin
1933
1933
  */
1934
1934
  me: [{
1935
- me: A()
1935
+ me: _()
1936
1936
  }],
1937
1937
  /**
1938
1938
  * Margin Top
1939
1939
  * @see https://tailwindcss.com/docs/margin
1940
1940
  */
1941
1941
  mt: [{
1942
- mt: A()
1942
+ mt: _()
1943
1943
  }],
1944
1944
  /**
1945
1945
  * Margin Right
1946
1946
  * @see https://tailwindcss.com/docs/margin
1947
1947
  */
1948
1948
  mr: [{
1949
- mr: A()
1949
+ mr: _()
1950
1950
  }],
1951
1951
  /**
1952
1952
  * Margin Bottom
1953
1953
  * @see https://tailwindcss.com/docs/margin
1954
1954
  */
1955
1955
  mb: [{
1956
- mb: A()
1956
+ mb: _()
1957
1957
  }],
1958
1958
  /**
1959
1959
  * Margin Left
1960
1960
  * @see https://tailwindcss.com/docs/margin
1961
1961
  */
1962
1962
  ml: [{
1963
- ml: A()
1963
+ ml: _()
1964
1964
  }],
1965
1965
  /**
1966
1966
  * Space Between X
1967
1967
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1968
1968
  */
1969
1969
  "space-x": [{
1970
- "space-x": M()
1970
+ "space-x": E()
1971
1971
  }],
1972
1972
  /**
1973
1973
  * Space Between X Reverse
@@ -1979,7 +1979,7 @@ const le = (e) => {
1979
1979
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1980
1980
  */
1981
1981
  "space-y": [{
1982
- "space-y": M()
1982
+ "space-y": E()
1983
1983
  }],
1984
1984
  /**
1985
1985
  * Space Between Y Reverse
@@ -2063,7 +2063,7 @@ const le = (e) => {
2063
2063
  * @see https://tailwindcss.com/docs/font-size
2064
2064
  */
2065
2065
  "font-size": [{
2066
- text: ["base", r, je, Me]
2066
+ text: ["base", r, Oe, Ee]
2067
2067
  }],
2068
2068
  /**
2069
2069
  * Font Smoothing
@@ -2080,21 +2080,21 @@ const le = (e) => {
2080
2080
  * @see https://tailwindcss.com/docs/font-weight
2081
2081
  */
2082
2082
  "font-weight": [{
2083
- font: [o, O, Qe]
2083
+ font: [o, T, Qe]
2084
2084
  }],
2085
2085
  /**
2086
2086
  * Font Stretch
2087
2087
  * @see https://tailwindcss.com/docs/font-stretch
2088
2088
  */
2089
2089
  "font-stretch": [{
2090
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ze, T]
2090
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ze, N]
2091
2091
  }],
2092
2092
  /**
2093
2093
  * Font Family
2094
2094
  * @see https://tailwindcss.com/docs/font-family
2095
2095
  */
2096
2096
  "font-family": [{
2097
- font: [Lr, T, t]
2097
+ font: [Lr, N, t]
2098
2098
  }],
2099
2099
  /**
2100
2100
  * Font Variant Numeric
@@ -2131,14 +2131,14 @@ const le = (e) => {
2131
2131
  * @see https://tailwindcss.com/docs/letter-spacing
2132
2132
  */
2133
2133
  tracking: [{
2134
- tracking: [i, O, T]
2134
+ tracking: [i, T, N]
2135
2135
  }],
2136
2136
  /**
2137
2137
  * Line Clamp
2138
2138
  * @see https://tailwindcss.com/docs/line-clamp
2139
2139
  */
2140
2140
  "line-clamp": [{
2141
- "line-clamp": [J, "none", O, Qe]
2141
+ "line-clamp": [X, "none", T, Qe]
2142
2142
  }],
2143
2143
  /**
2144
2144
  * Line Height
@@ -2148,7 +2148,7 @@ const le = (e) => {
2148
2148
  leading: [
2149
2149
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2150
2150
  s,
2151
- ...M()
2151
+ ...E()
2152
2152
  ]
2153
2153
  }],
2154
2154
  /**
@@ -2156,7 +2156,7 @@ const le = (e) => {
2156
2156
  * @see https://tailwindcss.com/docs/list-style-image
2157
2157
  */
2158
2158
  "list-image": [{
2159
- "list-image": ["none", O, T]
2159
+ "list-image": ["none", T, N]
2160
2160
  }],
2161
2161
  /**
2162
2162
  * List Style Position
@@ -2170,7 +2170,7 @@ const le = (e) => {
2170
2170
  * @see https://tailwindcss.com/docs/list-style-type
2171
2171
  */
2172
2172
  "list-style-type": [{
2173
- list: ["disc", "decimal", "none", O, T]
2173
+ list: ["disc", "decimal", "none", T, N]
2174
2174
  }],
2175
2175
  /**
2176
2176
  * Text Alignment
@@ -2185,14 +2185,14 @@ const le = (e) => {
2185
2185
  * @see https://v3.tailwindcss.com/docs/placeholder-color
2186
2186
  */
2187
2187
  "placeholder-color": [{
2188
- placeholder: k()
2188
+ placeholder: y()
2189
2189
  }],
2190
2190
  /**
2191
2191
  * Text Color
2192
2192
  * @see https://tailwindcss.com/docs/text-color
2193
2193
  */
2194
2194
  "text-color": [{
2195
- text: k()
2195
+ text: y()
2196
2196
  }],
2197
2197
  /**
2198
2198
  * Text Decoration
@@ -2204,28 +2204,28 @@ const le = (e) => {
2204
2204
  * @see https://tailwindcss.com/docs/text-decoration-style
2205
2205
  */
2206
2206
  "text-decoration-style": [{
2207
- decoration: [...U(), "wavy"]
2207
+ decoration: [...ee(), "wavy"]
2208
2208
  }],
2209
2209
  /**
2210
2210
  * Text Decoration Thickness
2211
2211
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2212
2212
  */
2213
2213
  "text-decoration-thickness": [{
2214
- decoration: [J, "from-font", "auto", O, Me]
2214
+ decoration: [X, "from-font", "auto", T, Ee]
2215
2215
  }],
2216
2216
  /**
2217
2217
  * Text Decoration Color
2218
2218
  * @see https://tailwindcss.com/docs/text-decoration-color
2219
2219
  */
2220
2220
  "text-decoration-color": [{
2221
- decoration: k()
2221
+ decoration: y()
2222
2222
  }],
2223
2223
  /**
2224
2224
  * Text Underline Offset
2225
2225
  * @see https://tailwindcss.com/docs/text-underline-offset
2226
2226
  */
2227
2227
  "underline-offset": [{
2228
- "underline-offset": [J, "auto", O, T]
2228
+ "underline-offset": [X, "auto", T, N]
2229
2229
  }],
2230
2230
  /**
2231
2231
  * Text Transform
@@ -2249,14 +2249,14 @@ const le = (e) => {
2249
2249
  * @see https://tailwindcss.com/docs/text-indent
2250
2250
  */
2251
2251
  indent: [{
2252
- indent: M()
2252
+ indent: E()
2253
2253
  }],
2254
2254
  /**
2255
2255
  * Vertical Alignment
2256
2256
  * @see https://tailwindcss.com/docs/vertical-align
2257
2257
  */
2258
2258
  "vertical-align": [{
2259
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", O, T]
2259
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", T, N]
2260
2260
  }],
2261
2261
  /**
2262
2262
  * Whitespace
@@ -2291,7 +2291,7 @@ const le = (e) => {
2291
2291
  * @see https://tailwindcss.com/docs/content
2292
2292
  */
2293
2293
  content: [{
2294
- content: ["none", O, T]
2294
+ content: ["none", T, N]
2295
2295
  }],
2296
2296
  // -------------------
2297
2297
  // --- Backgrounds ---
@@ -2329,7 +2329,7 @@ const le = (e) => {
2329
2329
  * @see https://tailwindcss.com/docs/background-repeat
2330
2330
  */
2331
2331
  "bg-repeat": [{
2332
- bg: _()
2332
+ bg: M()
2333
2333
  }],
2334
2334
  /**
2335
2335
  * Background Size
@@ -2346,9 +2346,9 @@ const le = (e) => {
2346
2346
  bg: ["none", {
2347
2347
  linear: [{
2348
2348
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2349
- }, ke, O, T],
2350
- radial: ["", O, T],
2351
- conic: [ke, O, T]
2349
+ }, ke, T, N],
2350
+ radial: ["", T, N],
2351
+ conic: [ke, T, N]
2352
2352
  }, Gr, Br]
2353
2353
  }],
2354
2354
  /**
@@ -2356,49 +2356,49 @@ const le = (e) => {
2356
2356
  * @see https://tailwindcss.com/docs/background-color
2357
2357
  */
2358
2358
  "bg-color": [{
2359
- bg: k()
2359
+ bg: y()
2360
2360
  }],
2361
2361
  /**
2362
2362
  * Gradient Color Stops From Position
2363
2363
  * @see https://tailwindcss.com/docs/gradient-color-stops
2364
2364
  */
2365
2365
  "gradient-from-pos": [{
2366
- from: z()
2366
+ from: S()
2367
2367
  }],
2368
2368
  /**
2369
2369
  * Gradient Color Stops Via Position
2370
2370
  * @see https://tailwindcss.com/docs/gradient-color-stops
2371
2371
  */
2372
2372
  "gradient-via-pos": [{
2373
- via: z()
2373
+ via: S()
2374
2374
  }],
2375
2375
  /**
2376
2376
  * Gradient Color Stops To Position
2377
2377
  * @see https://tailwindcss.com/docs/gradient-color-stops
2378
2378
  */
2379
2379
  "gradient-to-pos": [{
2380
- to: z()
2380
+ to: S()
2381
2381
  }],
2382
2382
  /**
2383
2383
  * Gradient Color Stops From
2384
2384
  * @see https://tailwindcss.com/docs/gradient-color-stops
2385
2385
  */
2386
2386
  "gradient-from": [{
2387
- from: k()
2387
+ from: y()
2388
2388
  }],
2389
2389
  /**
2390
2390
  * Gradient Color Stops Via
2391
2391
  * @see https://tailwindcss.com/docs/gradient-color-stops
2392
2392
  */
2393
2393
  "gradient-via": [{
2394
- via: k()
2394
+ via: y()
2395
2395
  }],
2396
2396
  /**
2397
2397
  * Gradient Color Stops To
2398
2398
  * @see https://tailwindcss.com/docs/gradient-color-stops
2399
2399
  */
2400
2400
  "gradient-to": [{
2401
- to: k()
2401
+ to: y()
2402
2402
  }],
2403
2403
  // ---------------
2404
2404
  // --- Borders ---
@@ -2408,175 +2408,175 @@ const le = (e) => {
2408
2408
  * @see https://tailwindcss.com/docs/border-radius
2409
2409
  */
2410
2410
  rounded: [{
2411
- rounded: E()
2411
+ rounded: R()
2412
2412
  }],
2413
2413
  /**
2414
2414
  * Border Radius Start
2415
2415
  * @see https://tailwindcss.com/docs/border-radius
2416
2416
  */
2417
2417
  "rounded-s": [{
2418
- "rounded-s": E()
2418
+ "rounded-s": R()
2419
2419
  }],
2420
2420
  /**
2421
2421
  * Border Radius End
2422
2422
  * @see https://tailwindcss.com/docs/border-radius
2423
2423
  */
2424
2424
  "rounded-e": [{
2425
- "rounded-e": E()
2425
+ "rounded-e": R()
2426
2426
  }],
2427
2427
  /**
2428
2428
  * Border Radius Top
2429
2429
  * @see https://tailwindcss.com/docs/border-radius
2430
2430
  */
2431
2431
  "rounded-t": [{
2432
- "rounded-t": E()
2432
+ "rounded-t": R()
2433
2433
  }],
2434
2434
  /**
2435
2435
  * Border Radius Right
2436
2436
  * @see https://tailwindcss.com/docs/border-radius
2437
2437
  */
2438
2438
  "rounded-r": [{
2439
- "rounded-r": E()
2439
+ "rounded-r": R()
2440
2440
  }],
2441
2441
  /**
2442
2442
  * Border Radius Bottom
2443
2443
  * @see https://tailwindcss.com/docs/border-radius
2444
2444
  */
2445
2445
  "rounded-b": [{
2446
- "rounded-b": E()
2446
+ "rounded-b": R()
2447
2447
  }],
2448
2448
  /**
2449
2449
  * Border Radius Left
2450
2450
  * @see https://tailwindcss.com/docs/border-radius
2451
2451
  */
2452
2452
  "rounded-l": [{
2453
- "rounded-l": E()
2453
+ "rounded-l": R()
2454
2454
  }],
2455
2455
  /**
2456
2456
  * Border Radius Start Start
2457
2457
  * @see https://tailwindcss.com/docs/border-radius
2458
2458
  */
2459
2459
  "rounded-ss": [{
2460
- "rounded-ss": E()
2460
+ "rounded-ss": R()
2461
2461
  }],
2462
2462
  /**
2463
2463
  * Border Radius Start End
2464
2464
  * @see https://tailwindcss.com/docs/border-radius
2465
2465
  */
2466
2466
  "rounded-se": [{
2467
- "rounded-se": E()
2467
+ "rounded-se": R()
2468
2468
  }],
2469
2469
  /**
2470
2470
  * Border Radius End End
2471
2471
  * @see https://tailwindcss.com/docs/border-radius
2472
2472
  */
2473
2473
  "rounded-ee": [{
2474
- "rounded-ee": E()
2474
+ "rounded-ee": R()
2475
2475
  }],
2476
2476
  /**
2477
2477
  * Border Radius End Start
2478
2478
  * @see https://tailwindcss.com/docs/border-radius
2479
2479
  */
2480
2480
  "rounded-es": [{
2481
- "rounded-es": E()
2481
+ "rounded-es": R()
2482
2482
  }],
2483
2483
  /**
2484
2484
  * Border Radius Top Left
2485
2485
  * @see https://tailwindcss.com/docs/border-radius
2486
2486
  */
2487
2487
  "rounded-tl": [{
2488
- "rounded-tl": E()
2488
+ "rounded-tl": R()
2489
2489
  }],
2490
2490
  /**
2491
2491
  * Border Radius Top Right
2492
2492
  * @see https://tailwindcss.com/docs/border-radius
2493
2493
  */
2494
2494
  "rounded-tr": [{
2495
- "rounded-tr": E()
2495
+ "rounded-tr": R()
2496
2496
  }],
2497
2497
  /**
2498
2498
  * Border Radius Bottom Right
2499
2499
  * @see https://tailwindcss.com/docs/border-radius
2500
2500
  */
2501
2501
  "rounded-br": [{
2502
- "rounded-br": E()
2502
+ "rounded-br": R()
2503
2503
  }],
2504
2504
  /**
2505
2505
  * Border Radius Bottom Left
2506
2506
  * @see https://tailwindcss.com/docs/border-radius
2507
2507
  */
2508
2508
  "rounded-bl": [{
2509
- "rounded-bl": E()
2509
+ "rounded-bl": R()
2510
2510
  }],
2511
2511
  /**
2512
2512
  * Border Width
2513
2513
  * @see https://tailwindcss.com/docs/border-width
2514
2514
  */
2515
2515
  "border-w": [{
2516
- border: N()
2516
+ border: A()
2517
2517
  }],
2518
2518
  /**
2519
2519
  * Border Width X
2520
2520
  * @see https://tailwindcss.com/docs/border-width
2521
2521
  */
2522
2522
  "border-w-x": [{
2523
- "border-x": N()
2523
+ "border-x": A()
2524
2524
  }],
2525
2525
  /**
2526
2526
  * Border Width Y
2527
2527
  * @see https://tailwindcss.com/docs/border-width
2528
2528
  */
2529
2529
  "border-w-y": [{
2530
- "border-y": N()
2530
+ "border-y": A()
2531
2531
  }],
2532
2532
  /**
2533
2533
  * Border Width Start
2534
2534
  * @see https://tailwindcss.com/docs/border-width
2535
2535
  */
2536
2536
  "border-w-s": [{
2537
- "border-s": N()
2537
+ "border-s": A()
2538
2538
  }],
2539
2539
  /**
2540
2540
  * Border Width End
2541
2541
  * @see https://tailwindcss.com/docs/border-width
2542
2542
  */
2543
2543
  "border-w-e": [{
2544
- "border-e": N()
2544
+ "border-e": A()
2545
2545
  }],
2546
2546
  /**
2547
2547
  * Border Width Top
2548
2548
  * @see https://tailwindcss.com/docs/border-width
2549
2549
  */
2550
2550
  "border-w-t": [{
2551
- "border-t": N()
2551
+ "border-t": A()
2552
2552
  }],
2553
2553
  /**
2554
2554
  * Border Width Right
2555
2555
  * @see https://tailwindcss.com/docs/border-width
2556
2556
  */
2557
2557
  "border-w-r": [{
2558
- "border-r": N()
2558
+ "border-r": A()
2559
2559
  }],
2560
2560
  /**
2561
2561
  * Border Width Bottom
2562
2562
  * @see https://tailwindcss.com/docs/border-width
2563
2563
  */
2564
2564
  "border-w-b": [{
2565
- "border-b": N()
2565
+ "border-b": A()
2566
2566
  }],
2567
2567
  /**
2568
2568
  * Border Width Left
2569
2569
  * @see https://tailwindcss.com/docs/border-width
2570
2570
  */
2571
2571
  "border-w-l": [{
2572
- "border-l": N()
2572
+ "border-l": A()
2573
2573
  }],
2574
2574
  /**
2575
2575
  * Divide Width X
2576
2576
  * @see https://tailwindcss.com/docs/border-width#between-children
2577
2577
  */
2578
2578
  "divide-x": [{
2579
- "divide-x": N()
2579
+ "divide-x": A()
2580
2580
  }],
2581
2581
  /**
2582
2582
  * Divide Width X Reverse
@@ -2588,7 +2588,7 @@ const le = (e) => {
2588
2588
  * @see https://tailwindcss.com/docs/border-width#between-children
2589
2589
  */
2590
2590
  "divide-y": [{
2591
- "divide-y": N()
2591
+ "divide-y": A()
2592
2592
  }],
2593
2593
  /**
2594
2594
  * Divide Width Y Reverse
@@ -2600,112 +2600,112 @@ const le = (e) => {
2600
2600
  * @see https://tailwindcss.com/docs/border-style
2601
2601
  */
2602
2602
  "border-style": [{
2603
- border: [...U(), "hidden", "none"]
2603
+ border: [...ee(), "hidden", "none"]
2604
2604
  }],
2605
2605
  /**
2606
2606
  * Divide Style
2607
2607
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2608
2608
  */
2609
2609
  "divide-style": [{
2610
- divide: [...U(), "hidden", "none"]
2610
+ divide: [...ee(), "hidden", "none"]
2611
2611
  }],
2612
2612
  /**
2613
2613
  * Border Color
2614
2614
  * @see https://tailwindcss.com/docs/border-color
2615
2615
  */
2616
2616
  "border-color": [{
2617
- border: k()
2617
+ border: y()
2618
2618
  }],
2619
2619
  /**
2620
2620
  * Border Color X
2621
2621
  * @see https://tailwindcss.com/docs/border-color
2622
2622
  */
2623
2623
  "border-color-x": [{
2624
- "border-x": k()
2624
+ "border-x": y()
2625
2625
  }],
2626
2626
  /**
2627
2627
  * Border Color Y
2628
2628
  * @see https://tailwindcss.com/docs/border-color
2629
2629
  */
2630
2630
  "border-color-y": [{
2631
- "border-y": k()
2631
+ "border-y": y()
2632
2632
  }],
2633
2633
  /**
2634
2634
  * Border Color S
2635
2635
  * @see https://tailwindcss.com/docs/border-color
2636
2636
  */
2637
2637
  "border-color-s": [{
2638
- "border-s": k()
2638
+ "border-s": y()
2639
2639
  }],
2640
2640
  /**
2641
2641
  * Border Color E
2642
2642
  * @see https://tailwindcss.com/docs/border-color
2643
2643
  */
2644
2644
  "border-color-e": [{
2645
- "border-e": k()
2645
+ "border-e": y()
2646
2646
  }],
2647
2647
  /**
2648
2648
  * Border Color Top
2649
2649
  * @see https://tailwindcss.com/docs/border-color
2650
2650
  */
2651
2651
  "border-color-t": [{
2652
- "border-t": k()
2652
+ "border-t": y()
2653
2653
  }],
2654
2654
  /**
2655
2655
  * Border Color Right
2656
2656
  * @see https://tailwindcss.com/docs/border-color
2657
2657
  */
2658
2658
  "border-color-r": [{
2659
- "border-r": k()
2659
+ "border-r": y()
2660
2660
  }],
2661
2661
  /**
2662
2662
  * Border Color Bottom
2663
2663
  * @see https://tailwindcss.com/docs/border-color
2664
2664
  */
2665
2665
  "border-color-b": [{
2666
- "border-b": k()
2666
+ "border-b": y()
2667
2667
  }],
2668
2668
  /**
2669
2669
  * Border Color Left
2670
2670
  * @see https://tailwindcss.com/docs/border-color
2671
2671
  */
2672
2672
  "border-color-l": [{
2673
- "border-l": k()
2673
+ "border-l": y()
2674
2674
  }],
2675
2675
  /**
2676
2676
  * Divide Color
2677
2677
  * @see https://tailwindcss.com/docs/divide-color
2678
2678
  */
2679
2679
  "divide-color": [{
2680
- divide: k()
2680
+ divide: y()
2681
2681
  }],
2682
2682
  /**
2683
2683
  * Outline Style
2684
2684
  * @see https://tailwindcss.com/docs/outline-style
2685
2685
  */
2686
2686
  "outline-style": [{
2687
- outline: [...U(), "none", "hidden"]
2687
+ outline: [...ee(), "none", "hidden"]
2688
2688
  }],
2689
2689
  /**
2690
2690
  * Outline Offset
2691
2691
  * @see https://tailwindcss.com/docs/outline-offset
2692
2692
  */
2693
2693
  "outline-offset": [{
2694
- "outline-offset": [J, O, T]
2694
+ "outline-offset": [X, T, N]
2695
2695
  }],
2696
2696
  /**
2697
2697
  * Outline Width
2698
2698
  * @see https://tailwindcss.com/docs/outline-width
2699
2699
  */
2700
2700
  "outline-w": [{
2701
- outline: ["", J, je, Me]
2701
+ outline: ["", X, Oe, Ee]
2702
2702
  }],
2703
2703
  /**
2704
2704
  * Outline Color
2705
2705
  * @see https://tailwindcss.com/docs/outline-color
2706
2706
  */
2707
2707
  "outline-color": [{
2708
- outline: k()
2708
+ outline: y()
2709
2709
  }],
2710
2710
  // ---------------
2711
2711
  // --- Effects ---
@@ -2719,7 +2719,7 @@ const le = (e) => {
2719
2719
  // Deprecated since Tailwind CSS v4.0.0
2720
2720
  "",
2721
2721
  "none",
2722
- b,
2722
+ z,
2723
2723
  Ue,
2724
2724
  We
2725
2725
  ]
@@ -2729,28 +2729,28 @@ const le = (e) => {
2729
2729
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2730
2730
  */
2731
2731
  "shadow-color": [{
2732
- shadow: k()
2732
+ shadow: y()
2733
2733
  }],
2734
2734
  /**
2735
2735
  * Inset Box Shadow
2736
2736
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2737
2737
  */
2738
2738
  "inset-shadow": [{
2739
- "inset-shadow": ["none", d, Ue, We]
2739
+ "inset-shadow": ["none", f, Ue, We]
2740
2740
  }],
2741
2741
  /**
2742
2742
  * Inset Box Shadow Color
2743
2743
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2744
2744
  */
2745
2745
  "inset-shadow-color": [{
2746
- "inset-shadow": k()
2746
+ "inset-shadow": y()
2747
2747
  }],
2748
2748
  /**
2749
2749
  * Ring Width
2750
2750
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2751
2751
  */
2752
2752
  "ring-w": [{
2753
- ring: N()
2753
+ ring: A()
2754
2754
  }],
2755
2755
  /**
2756
2756
  * Ring Width Inset
@@ -2764,7 +2764,7 @@ const le = (e) => {
2764
2764
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2765
2765
  */
2766
2766
  "ring-color": [{
2767
- ring: k()
2767
+ ring: y()
2768
2768
  }],
2769
2769
  /**
2770
2770
  * Ring Offset Width
@@ -2773,7 +2773,7 @@ const le = (e) => {
2773
2773
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2774
2774
  */
2775
2775
  "ring-offset-w": [{
2776
- "ring-offset": [J, Me]
2776
+ "ring-offset": [X, Ee]
2777
2777
  }],
2778
2778
  /**
2779
2779
  * Ring Offset Color
@@ -2782,56 +2782,56 @@ const le = (e) => {
2782
2782
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2783
2783
  */
2784
2784
  "ring-offset-color": [{
2785
- "ring-offset": k()
2785
+ "ring-offset": y()
2786
2786
  }],
2787
2787
  /**
2788
2788
  * Inset Ring Width
2789
2789
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2790
2790
  */
2791
2791
  "inset-ring-w": [{
2792
- "inset-ring": N()
2792
+ "inset-ring": A()
2793
2793
  }],
2794
2794
  /**
2795
2795
  * Inset Ring Color
2796
2796
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2797
2797
  */
2798
2798
  "inset-ring-color": [{
2799
- "inset-ring": k()
2799
+ "inset-ring": y()
2800
2800
  }],
2801
2801
  /**
2802
2802
  * Text Shadow
2803
2803
  * @see https://tailwindcss.com/docs/text-shadow
2804
2804
  */
2805
2805
  "text-shadow": [{
2806
- "text-shadow": ["none", u, Ue, We]
2806
+ "text-shadow": ["none", d, Ue, We]
2807
2807
  }],
2808
2808
  /**
2809
2809
  * Text Shadow Color
2810
2810
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2811
2811
  */
2812
2812
  "text-shadow-color": [{
2813
- "text-shadow": k()
2813
+ "text-shadow": y()
2814
2814
  }],
2815
2815
  /**
2816
2816
  * Opacity
2817
2817
  * @see https://tailwindcss.com/docs/opacity
2818
2818
  */
2819
2819
  opacity: [{
2820
- opacity: [J, O, T]
2820
+ opacity: [X, T, N]
2821
2821
  }],
2822
2822
  /**
2823
2823
  * Mix Blend Mode
2824
2824
  * @see https://tailwindcss.com/docs/mix-blend-mode
2825
2825
  */
2826
2826
  "mix-blend": [{
2827
- "mix-blend": [...P(), "plus-darker", "plus-lighter"]
2827
+ "mix-blend": [...m(), "plus-darker", "plus-lighter"]
2828
2828
  }],
2829
2829
  /**
2830
2830
  * Background Blend Mode
2831
2831
  * @see https://tailwindcss.com/docs/background-blend-mode
2832
2832
  */
2833
2833
  "bg-blend": [{
2834
- "bg-blend": P()
2834
+ "bg-blend": m()
2835
2835
  }],
2836
2836
  /**
2837
2837
  * Mask Clip
@@ -2852,106 +2852,106 @@ const le = (e) => {
2852
2852
  * @see https://tailwindcss.com/docs/mask-image
2853
2853
  */
2854
2854
  "mask-image-linear-pos": [{
2855
- "mask-linear": [J]
2855
+ "mask-linear": [X]
2856
2856
  }],
2857
2857
  "mask-image-linear-from-pos": [{
2858
- "mask-linear-from": x()
2858
+ "mask-linear-from": b()
2859
2859
  }],
2860
2860
  "mask-image-linear-to-pos": [{
2861
- "mask-linear-to": x()
2861
+ "mask-linear-to": b()
2862
2862
  }],
2863
2863
  "mask-image-linear-from-color": [{
2864
- "mask-linear-from": k()
2864
+ "mask-linear-from": y()
2865
2865
  }],
2866
2866
  "mask-image-linear-to-color": [{
2867
- "mask-linear-to": k()
2867
+ "mask-linear-to": y()
2868
2868
  }],
2869
2869
  "mask-image-t-from-pos": [{
2870
- "mask-t-from": x()
2870
+ "mask-t-from": b()
2871
2871
  }],
2872
2872
  "mask-image-t-to-pos": [{
2873
- "mask-t-to": x()
2873
+ "mask-t-to": b()
2874
2874
  }],
2875
2875
  "mask-image-t-from-color": [{
2876
- "mask-t-from": k()
2876
+ "mask-t-from": y()
2877
2877
  }],
2878
2878
  "mask-image-t-to-color": [{
2879
- "mask-t-to": k()
2879
+ "mask-t-to": y()
2880
2880
  }],
2881
2881
  "mask-image-r-from-pos": [{
2882
- "mask-r-from": x()
2882
+ "mask-r-from": b()
2883
2883
  }],
2884
2884
  "mask-image-r-to-pos": [{
2885
- "mask-r-to": x()
2885
+ "mask-r-to": b()
2886
2886
  }],
2887
2887
  "mask-image-r-from-color": [{
2888
- "mask-r-from": k()
2888
+ "mask-r-from": y()
2889
2889
  }],
2890
2890
  "mask-image-r-to-color": [{
2891
- "mask-r-to": k()
2891
+ "mask-r-to": y()
2892
2892
  }],
2893
2893
  "mask-image-b-from-pos": [{
2894
- "mask-b-from": x()
2894
+ "mask-b-from": b()
2895
2895
  }],
2896
2896
  "mask-image-b-to-pos": [{
2897
- "mask-b-to": x()
2897
+ "mask-b-to": b()
2898
2898
  }],
2899
2899
  "mask-image-b-from-color": [{
2900
- "mask-b-from": k()
2900
+ "mask-b-from": y()
2901
2901
  }],
2902
2902
  "mask-image-b-to-color": [{
2903
- "mask-b-to": k()
2903
+ "mask-b-to": y()
2904
2904
  }],
2905
2905
  "mask-image-l-from-pos": [{
2906
- "mask-l-from": x()
2906
+ "mask-l-from": b()
2907
2907
  }],
2908
2908
  "mask-image-l-to-pos": [{
2909
- "mask-l-to": x()
2909
+ "mask-l-to": b()
2910
2910
  }],
2911
2911
  "mask-image-l-from-color": [{
2912
- "mask-l-from": k()
2912
+ "mask-l-from": y()
2913
2913
  }],
2914
2914
  "mask-image-l-to-color": [{
2915
- "mask-l-to": k()
2915
+ "mask-l-to": y()
2916
2916
  }],
2917
2917
  "mask-image-x-from-pos": [{
2918
- "mask-x-from": x()
2918
+ "mask-x-from": b()
2919
2919
  }],
2920
2920
  "mask-image-x-to-pos": [{
2921
- "mask-x-to": x()
2921
+ "mask-x-to": b()
2922
2922
  }],
2923
2923
  "mask-image-x-from-color": [{
2924
- "mask-x-from": k()
2924
+ "mask-x-from": y()
2925
2925
  }],
2926
2926
  "mask-image-x-to-color": [{
2927
- "mask-x-to": k()
2927
+ "mask-x-to": y()
2928
2928
  }],
2929
2929
  "mask-image-y-from-pos": [{
2930
- "mask-y-from": x()
2930
+ "mask-y-from": b()
2931
2931
  }],
2932
2932
  "mask-image-y-to-pos": [{
2933
- "mask-y-to": x()
2933
+ "mask-y-to": b()
2934
2934
  }],
2935
2935
  "mask-image-y-from-color": [{
2936
- "mask-y-from": k()
2936
+ "mask-y-from": y()
2937
2937
  }],
2938
2938
  "mask-image-y-to-color": [{
2939
- "mask-y-to": k()
2939
+ "mask-y-to": y()
2940
2940
  }],
2941
2941
  "mask-image-radial": [{
2942
- "mask-radial": [O, T]
2942
+ "mask-radial": [T, N]
2943
2943
  }],
2944
2944
  "mask-image-radial-from-pos": [{
2945
- "mask-radial-from": x()
2945
+ "mask-radial-from": b()
2946
2946
  }],
2947
2947
  "mask-image-radial-to-pos": [{
2948
- "mask-radial-to": x()
2948
+ "mask-radial-to": b()
2949
2949
  }],
2950
2950
  "mask-image-radial-from-color": [{
2951
- "mask-radial-from": k()
2951
+ "mask-radial-from": y()
2952
2952
  }],
2953
2953
  "mask-image-radial-to-color": [{
2954
- "mask-radial-to": k()
2954
+ "mask-radial-to": y()
2955
2955
  }],
2956
2956
  "mask-image-radial-shape": [{
2957
2957
  "mask-radial": ["circle", "ellipse"]
@@ -2963,22 +2963,22 @@ const le = (e) => {
2963
2963
  }]
2964
2964
  }],
2965
2965
  "mask-image-radial-pos": [{
2966
- "mask-radial-at": F()
2966
+ "mask-radial-at": $()
2967
2967
  }],
2968
2968
  "mask-image-conic-pos": [{
2969
- "mask-conic": [J]
2969
+ "mask-conic": [X]
2970
2970
  }],
2971
2971
  "mask-image-conic-from-pos": [{
2972
- "mask-conic-from": x()
2972
+ "mask-conic-from": b()
2973
2973
  }],
2974
2974
  "mask-image-conic-to-pos": [{
2975
- "mask-conic-to": x()
2975
+ "mask-conic-to": b()
2976
2976
  }],
2977
2977
  "mask-image-conic-from-color": [{
2978
- "mask-conic-from": k()
2978
+ "mask-conic-from": y()
2979
2979
  }],
2980
2980
  "mask-image-conic-to-color": [{
2981
- "mask-conic-to": k()
2981
+ "mask-conic-to": y()
2982
2982
  }],
2983
2983
  /**
2984
2984
  * Mask Mode
@@ -3006,7 +3006,7 @@ const le = (e) => {
3006
3006
  * @see https://tailwindcss.com/docs/mask-repeat
3007
3007
  */
3008
3008
  "mask-repeat": [{
3009
- mask: _()
3009
+ mask: M()
3010
3010
  }],
3011
3011
  /**
3012
3012
  * Mask Size
@@ -3027,7 +3027,7 @@ const le = (e) => {
3027
3027
  * @see https://tailwindcss.com/docs/mask-image
3028
3028
  */
3029
3029
  "mask-image": [{
3030
- mask: ["none", O, T]
3030
+ mask: ["none", T, N]
3031
3031
  }],
3032
3032
  // ---------------
3033
3033
  // --- Filters ---
@@ -3041,8 +3041,8 @@ const le = (e) => {
3041
3041
  // Deprecated since Tailwind CSS v3.0.0
3042
3042
  "",
3043
3043
  "none",
3044
- O,
3045
- T
3044
+ T,
3045
+ N
3046
3046
  ]
3047
3047
  }],
3048
3048
  /**
@@ -3050,21 +3050,21 @@ const le = (e) => {
3050
3050
  * @see https://tailwindcss.com/docs/blur
3051
3051
  */
3052
3052
  blur: [{
3053
- blur: g()
3053
+ blur: B()
3054
3054
  }],
3055
3055
  /**
3056
3056
  * Brightness
3057
3057
  * @see https://tailwindcss.com/docs/brightness
3058
3058
  */
3059
3059
  brightness: [{
3060
- brightness: [J, O, T]
3060
+ brightness: [X, T, N]
3061
3061
  }],
3062
3062
  /**
3063
3063
  * Contrast
3064
3064
  * @see https://tailwindcss.com/docs/contrast
3065
3065
  */
3066
3066
  contrast: [{
3067
- contrast: [J, O, T]
3067
+ contrast: [X, T, N]
3068
3068
  }],
3069
3069
  /**
3070
3070
  * Drop Shadow
@@ -3085,42 +3085,42 @@ const le = (e) => {
3085
3085
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
3086
3086
  */
3087
3087
  "drop-shadow-color": [{
3088
- "drop-shadow": k()
3088
+ "drop-shadow": y()
3089
3089
  }],
3090
3090
  /**
3091
3091
  * Grayscale
3092
3092
  * @see https://tailwindcss.com/docs/grayscale
3093
3093
  */
3094
3094
  grayscale: [{
3095
- grayscale: ["", J, O, T]
3095
+ grayscale: ["", X, T, N]
3096
3096
  }],
3097
3097
  /**
3098
3098
  * Hue Rotate
3099
3099
  * @see https://tailwindcss.com/docs/hue-rotate
3100
3100
  */
3101
3101
  "hue-rotate": [{
3102
- "hue-rotate": [J, O, T]
3102
+ "hue-rotate": [X, T, N]
3103
3103
  }],
3104
3104
  /**
3105
3105
  * Invert
3106
3106
  * @see https://tailwindcss.com/docs/invert
3107
3107
  */
3108
3108
  invert: [{
3109
- invert: ["", J, O, T]
3109
+ invert: ["", X, T, N]
3110
3110
  }],
3111
3111
  /**
3112
3112
  * Saturate
3113
3113
  * @see https://tailwindcss.com/docs/saturate
3114
3114
  */
3115
3115
  saturate: [{
3116
- saturate: [J, O, T]
3116
+ saturate: [X, T, N]
3117
3117
  }],
3118
3118
  /**
3119
3119
  * Sepia
3120
3120
  * @see https://tailwindcss.com/docs/sepia
3121
3121
  */
3122
3122
  sepia: [{
3123
- sepia: ["", J, O, T]
3123
+ sepia: ["", X, T, N]
3124
3124
  }],
3125
3125
  /**
3126
3126
  * Backdrop Filter
@@ -3131,8 +3131,8 @@ const le = (e) => {
3131
3131
  // Deprecated since Tailwind CSS v3.0.0
3132
3132
  "",
3133
3133
  "none",
3134
- O,
3135
- T
3134
+ T,
3135
+ N
3136
3136
  ]
3137
3137
  }],
3138
3138
  /**
@@ -3140,63 +3140,63 @@ const le = (e) => {
3140
3140
  * @see https://tailwindcss.com/docs/backdrop-blur
3141
3141
  */
3142
3142
  "backdrop-blur": [{
3143
- "backdrop-blur": g()
3143
+ "backdrop-blur": B()
3144
3144
  }],
3145
3145
  /**
3146
3146
  * Backdrop Brightness
3147
3147
  * @see https://tailwindcss.com/docs/backdrop-brightness
3148
3148
  */
3149
3149
  "backdrop-brightness": [{
3150
- "backdrop-brightness": [J, O, T]
3150
+ "backdrop-brightness": [X, T, N]
3151
3151
  }],
3152
3152
  /**
3153
3153
  * Backdrop Contrast
3154
3154
  * @see https://tailwindcss.com/docs/backdrop-contrast
3155
3155
  */
3156
3156
  "backdrop-contrast": [{
3157
- "backdrop-contrast": [J, O, T]
3157
+ "backdrop-contrast": [X, T, N]
3158
3158
  }],
3159
3159
  /**
3160
3160
  * Backdrop Grayscale
3161
3161
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3162
3162
  */
3163
3163
  "backdrop-grayscale": [{
3164
- "backdrop-grayscale": ["", J, O, T]
3164
+ "backdrop-grayscale": ["", X, T, N]
3165
3165
  }],
3166
3166
  /**
3167
3167
  * Backdrop Hue Rotate
3168
3168
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3169
3169
  */
3170
3170
  "backdrop-hue-rotate": [{
3171
- "backdrop-hue-rotate": [J, O, T]
3171
+ "backdrop-hue-rotate": [X, T, N]
3172
3172
  }],
3173
3173
  /**
3174
3174
  * Backdrop Invert
3175
3175
  * @see https://tailwindcss.com/docs/backdrop-invert
3176
3176
  */
3177
3177
  "backdrop-invert": [{
3178
- "backdrop-invert": ["", J, O, T]
3178
+ "backdrop-invert": ["", X, T, N]
3179
3179
  }],
3180
3180
  /**
3181
3181
  * Backdrop Opacity
3182
3182
  * @see https://tailwindcss.com/docs/backdrop-opacity
3183
3183
  */
3184
3184
  "backdrop-opacity": [{
3185
- "backdrop-opacity": [J, O, T]
3185
+ "backdrop-opacity": [X, T, N]
3186
3186
  }],
3187
3187
  /**
3188
3188
  * Backdrop Saturate
3189
3189
  * @see https://tailwindcss.com/docs/backdrop-saturate
3190
3190
  */
3191
3191
  "backdrop-saturate": [{
3192
- "backdrop-saturate": [J, O, T]
3192
+ "backdrop-saturate": [X, T, N]
3193
3193
  }],
3194
3194
  /**
3195
3195
  * Backdrop Sepia
3196
3196
  * @see https://tailwindcss.com/docs/backdrop-sepia
3197
3197
  */
3198
3198
  "backdrop-sepia": [{
3199
- "backdrop-sepia": ["", J, O, T]
3199
+ "backdrop-sepia": ["", X, T, N]
3200
3200
  }],
3201
3201
  // --------------
3202
3202
  // --- Tables ---
@@ -3213,21 +3213,21 @@ const le = (e) => {
3213
3213
  * @see https://tailwindcss.com/docs/border-spacing
3214
3214
  */
3215
3215
  "border-spacing": [{
3216
- "border-spacing": M()
3216
+ "border-spacing": E()
3217
3217
  }],
3218
3218
  /**
3219
3219
  * Border Spacing X
3220
3220
  * @see https://tailwindcss.com/docs/border-spacing
3221
3221
  */
3222
3222
  "border-spacing-x": [{
3223
- "border-spacing-x": M()
3223
+ "border-spacing-x": E()
3224
3224
  }],
3225
3225
  /**
3226
3226
  * Border Spacing Y
3227
3227
  * @see https://tailwindcss.com/docs/border-spacing
3228
3228
  */
3229
3229
  "border-spacing-y": [{
3230
- "border-spacing-y": M()
3230
+ "border-spacing-y": E()
3231
3231
  }],
3232
3232
  /**
3233
3233
  * Table Layout
@@ -3251,7 +3251,7 @@ const le = (e) => {
3251
3251
  * @see https://tailwindcss.com/docs/transition-property
3252
3252
  */
3253
3253
  transition: [{
3254
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", O, T]
3254
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", T, N]
3255
3255
  }],
3256
3256
  /**
3257
3257
  * Transition Behavior
@@ -3265,28 +3265,28 @@ const le = (e) => {
3265
3265
  * @see https://tailwindcss.com/docs/transition-duration
3266
3266
  */
3267
3267
  duration: [{
3268
- duration: [J, "initial", O, T]
3268
+ duration: [X, "initial", T, N]
3269
3269
  }],
3270
3270
  /**
3271
3271
  * Transition Timing Function
3272
3272
  * @see https://tailwindcss.com/docs/transition-timing-function
3273
3273
  */
3274
3274
  ease: [{
3275
- ease: ["linear", "initial", p, O, T]
3275
+ ease: ["linear", "initial", p, T, N]
3276
3276
  }],
3277
3277
  /**
3278
3278
  * Transition Delay
3279
3279
  * @see https://tailwindcss.com/docs/transition-delay
3280
3280
  */
3281
3281
  delay: [{
3282
- delay: [J, O, T]
3282
+ delay: [X, T, N]
3283
3283
  }],
3284
3284
  /**
3285
3285
  * Animation
3286
3286
  * @see https://tailwindcss.com/docs/animation
3287
3287
  */
3288
3288
  animate: [{
3289
- animate: ["none", m, O, T]
3289
+ animate: ["none", x, T, N]
3290
3290
  }],
3291
3291
  // ------------------
3292
3292
  // --- Transforms ---
@@ -3303,70 +3303,70 @@ const le = (e) => {
3303
3303
  * @see https://tailwindcss.com/docs/perspective
3304
3304
  */
3305
3305
  perspective: [{
3306
- perspective: [C, O, T]
3306
+ perspective: [w, T, N]
3307
3307
  }],
3308
3308
  /**
3309
3309
  * Perspective Origin
3310
3310
  * @see https://tailwindcss.com/docs/perspective-origin
3311
3311
  */
3312
3312
  "perspective-origin": [{
3313
- "perspective-origin": V()
3313
+ "perspective-origin": J()
3314
3314
  }],
3315
3315
  /**
3316
3316
  * Rotate
3317
3317
  * @see https://tailwindcss.com/docs/rotate
3318
3318
  */
3319
3319
  rotate: [{
3320
- rotate: y()
3320
+ rotate: g()
3321
3321
  }],
3322
3322
  /**
3323
3323
  * Rotate X
3324
3324
  * @see https://tailwindcss.com/docs/rotate
3325
3325
  */
3326
3326
  "rotate-x": [{
3327
- "rotate-x": y()
3327
+ "rotate-x": g()
3328
3328
  }],
3329
3329
  /**
3330
3330
  * Rotate Y
3331
3331
  * @see https://tailwindcss.com/docs/rotate
3332
3332
  */
3333
3333
  "rotate-y": [{
3334
- "rotate-y": y()
3334
+ "rotate-y": g()
3335
3335
  }],
3336
3336
  /**
3337
3337
  * Rotate Z
3338
3338
  * @see https://tailwindcss.com/docs/rotate
3339
3339
  */
3340
3340
  "rotate-z": [{
3341
- "rotate-z": y()
3341
+ "rotate-z": g()
3342
3342
  }],
3343
3343
  /**
3344
3344
  * Scale
3345
3345
  * @see https://tailwindcss.com/docs/scale
3346
3346
  */
3347
3347
  scale: [{
3348
- scale: B()
3348
+ scale: I()
3349
3349
  }],
3350
3350
  /**
3351
3351
  * Scale X
3352
3352
  * @see https://tailwindcss.com/docs/scale
3353
3353
  */
3354
3354
  "scale-x": [{
3355
- "scale-x": B()
3355
+ "scale-x": I()
3356
3356
  }],
3357
3357
  /**
3358
3358
  * Scale Y
3359
3359
  * @see https://tailwindcss.com/docs/scale
3360
3360
  */
3361
3361
  "scale-y": [{
3362
- "scale-y": B()
3362
+ "scale-y": I()
3363
3363
  }],
3364
3364
  /**
3365
3365
  * Scale Z
3366
3366
  * @see https://tailwindcss.com/docs/scale
3367
3367
  */
3368
3368
  "scale-z": [{
3369
- "scale-z": B()
3369
+ "scale-z": I()
3370
3370
  }],
3371
3371
  /**
3372
3372
  * Scale 3D
@@ -3399,14 +3399,14 @@ const le = (e) => {
3399
3399
  * @see https://tailwindcss.com/docs/transform
3400
3400
  */
3401
3401
  transform: [{
3402
- transform: [O, T, "", "none", "gpu", "cpu"]
3402
+ transform: [T, N, "", "none", "gpu", "cpu"]
3403
3403
  }],
3404
3404
  /**
3405
3405
  * Transform Origin
3406
3406
  * @see https://tailwindcss.com/docs/transform-origin
3407
3407
  */
3408
3408
  "transform-origin": [{
3409
- origin: V()
3409
+ origin: J()
3410
3410
  }],
3411
3411
  /**
3412
3412
  * Transform Style
@@ -3456,7 +3456,7 @@ const le = (e) => {
3456
3456
  * @see https://tailwindcss.com/docs/accent-color
3457
3457
  */
3458
3458
  accent: [{
3459
- accent: k()
3459
+ accent: y()
3460
3460
  }],
3461
3461
  /**
3462
3462
  * Appearance
@@ -3470,7 +3470,7 @@ const le = (e) => {
3470
3470
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3471
3471
  */
3472
3472
  "caret-color": [{
3473
- caret: k()
3473
+ caret: y()
3474
3474
  }],
3475
3475
  /**
3476
3476
  * Color Scheme
@@ -3484,7 +3484,7 @@ const le = (e) => {
3484
3484
  * @see https://tailwindcss.com/docs/cursor
3485
3485
  */
3486
3486
  cursor: [{
3487
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", O, T]
3487
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", T, N]
3488
3488
  }],
3489
3489
  /**
3490
3490
  * Field Sizing
@@ -3519,126 +3519,126 @@ const le = (e) => {
3519
3519
  * @see https://tailwindcss.com/docs/scroll-margin
3520
3520
  */
3521
3521
  "scroll-m": [{
3522
- "scroll-m": M()
3522
+ "scroll-m": E()
3523
3523
  }],
3524
3524
  /**
3525
3525
  * Scroll Margin X
3526
3526
  * @see https://tailwindcss.com/docs/scroll-margin
3527
3527
  */
3528
3528
  "scroll-mx": [{
3529
- "scroll-mx": M()
3529
+ "scroll-mx": E()
3530
3530
  }],
3531
3531
  /**
3532
3532
  * Scroll Margin Y
3533
3533
  * @see https://tailwindcss.com/docs/scroll-margin
3534
3534
  */
3535
3535
  "scroll-my": [{
3536
- "scroll-my": M()
3536
+ "scroll-my": E()
3537
3537
  }],
3538
3538
  /**
3539
3539
  * Scroll Margin Start
3540
3540
  * @see https://tailwindcss.com/docs/scroll-margin
3541
3541
  */
3542
3542
  "scroll-ms": [{
3543
- "scroll-ms": M()
3543
+ "scroll-ms": E()
3544
3544
  }],
3545
3545
  /**
3546
3546
  * Scroll Margin End
3547
3547
  * @see https://tailwindcss.com/docs/scroll-margin
3548
3548
  */
3549
3549
  "scroll-me": [{
3550
- "scroll-me": M()
3550
+ "scroll-me": E()
3551
3551
  }],
3552
3552
  /**
3553
3553
  * Scroll Margin Top
3554
3554
  * @see https://tailwindcss.com/docs/scroll-margin
3555
3555
  */
3556
3556
  "scroll-mt": [{
3557
- "scroll-mt": M()
3557
+ "scroll-mt": E()
3558
3558
  }],
3559
3559
  /**
3560
3560
  * Scroll Margin Right
3561
3561
  * @see https://tailwindcss.com/docs/scroll-margin
3562
3562
  */
3563
3563
  "scroll-mr": [{
3564
- "scroll-mr": M()
3564
+ "scroll-mr": E()
3565
3565
  }],
3566
3566
  /**
3567
3567
  * Scroll Margin Bottom
3568
3568
  * @see https://tailwindcss.com/docs/scroll-margin
3569
3569
  */
3570
3570
  "scroll-mb": [{
3571
- "scroll-mb": M()
3571
+ "scroll-mb": E()
3572
3572
  }],
3573
3573
  /**
3574
3574
  * Scroll Margin Left
3575
3575
  * @see https://tailwindcss.com/docs/scroll-margin
3576
3576
  */
3577
3577
  "scroll-ml": [{
3578
- "scroll-ml": M()
3578
+ "scroll-ml": E()
3579
3579
  }],
3580
3580
  /**
3581
3581
  * Scroll Padding
3582
3582
  * @see https://tailwindcss.com/docs/scroll-padding
3583
3583
  */
3584
3584
  "scroll-p": [{
3585
- "scroll-p": M()
3585
+ "scroll-p": E()
3586
3586
  }],
3587
3587
  /**
3588
3588
  * Scroll Padding X
3589
3589
  * @see https://tailwindcss.com/docs/scroll-padding
3590
3590
  */
3591
3591
  "scroll-px": [{
3592
- "scroll-px": M()
3592
+ "scroll-px": E()
3593
3593
  }],
3594
3594
  /**
3595
3595
  * Scroll Padding Y
3596
3596
  * @see https://tailwindcss.com/docs/scroll-padding
3597
3597
  */
3598
3598
  "scroll-py": [{
3599
- "scroll-py": M()
3599
+ "scroll-py": E()
3600
3600
  }],
3601
3601
  /**
3602
3602
  * Scroll Padding Start
3603
3603
  * @see https://tailwindcss.com/docs/scroll-padding
3604
3604
  */
3605
3605
  "scroll-ps": [{
3606
- "scroll-ps": M()
3606
+ "scroll-ps": E()
3607
3607
  }],
3608
3608
  /**
3609
3609
  * Scroll Padding End
3610
3610
  * @see https://tailwindcss.com/docs/scroll-padding
3611
3611
  */
3612
3612
  "scroll-pe": [{
3613
- "scroll-pe": M()
3613
+ "scroll-pe": E()
3614
3614
  }],
3615
3615
  /**
3616
3616
  * Scroll Padding Top
3617
3617
  * @see https://tailwindcss.com/docs/scroll-padding
3618
3618
  */
3619
3619
  "scroll-pt": [{
3620
- "scroll-pt": M()
3620
+ "scroll-pt": E()
3621
3621
  }],
3622
3622
  /**
3623
3623
  * Scroll Padding Right
3624
3624
  * @see https://tailwindcss.com/docs/scroll-padding
3625
3625
  */
3626
3626
  "scroll-pr": [{
3627
- "scroll-pr": M()
3627
+ "scroll-pr": E()
3628
3628
  }],
3629
3629
  /**
3630
3630
  * Scroll Padding Bottom
3631
3631
  * @see https://tailwindcss.com/docs/scroll-padding
3632
3632
  */
3633
3633
  "scroll-pb": [{
3634
- "scroll-pb": M()
3634
+ "scroll-pb": E()
3635
3635
  }],
3636
3636
  /**
3637
3637
  * Scroll Padding Left
3638
3638
  * @see https://tailwindcss.com/docs/scroll-padding
3639
3639
  */
3640
3640
  "scroll-pl": [{
3641
- "scroll-pl": M()
3641
+ "scroll-pl": E()
3642
3642
  }],
3643
3643
  /**
3644
3644
  * Scroll Snap Align
@@ -3706,7 +3706,7 @@ const le = (e) => {
3706
3706
  * @see https://tailwindcss.com/docs/will-change
3707
3707
  */
3708
3708
  "will-change": [{
3709
- "will-change": ["auto", "scroll", "contents", "transform", O, T]
3709
+ "will-change": ["auto", "scroll", "contents", "transform", T, N]
3710
3710
  }],
3711
3711
  // -----------
3712
3712
  // --- SVG ---
@@ -3716,21 +3716,21 @@ const le = (e) => {
3716
3716
  * @see https://tailwindcss.com/docs/fill
3717
3717
  */
3718
3718
  fill: [{
3719
- fill: ["none", ...k()]
3719
+ fill: ["none", ...y()]
3720
3720
  }],
3721
3721
  /**
3722
3722
  * Stroke Width
3723
3723
  * @see https://tailwindcss.com/docs/stroke-width
3724
3724
  */
3725
3725
  "stroke-w": [{
3726
- stroke: [J, je, Me, Qe]
3726
+ stroke: [X, Oe, Ee, Qe]
3727
3727
  }],
3728
3728
  /**
3729
3729
  * Stroke
3730
3730
  * @see https://tailwindcss.com/docs/stroke
3731
3731
  */
3732
3732
  stroke: [{
3733
- stroke: ["none", ...k()]
3733
+ stroke: ["none", ...y()]
3734
3734
  }],
3735
3735
  // ---------------------
3736
3736
  // --- Accessibility ---
@@ -3799,17 +3799,17 @@ const le = (e) => {
3799
3799
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3800
3800
  };
3801
3801
  }, De = /* @__PURE__ */ wr($r), Wr = ({ panel: e, isLastFlexiblePanel: t, measuredPixelSize: r, measuredPercentageSize: o, containerAxisSize: i, containerLabel: s }) => {
3802
- const a = e?.size, l = typeof a == "number" && Number.isFinite(a) ? `${a.toFixed(3)}px` : "-", c = e?.percentageSize !== void 0 ? `${e.percentageSize.toFixed(3)}%` : "-", S = Number.isFinite(r) ? `${r.toFixed(3)}px` : "-", b = Number.isFinite(o) ? `${o.toFixed(3)}%` : "-", d = Number.isFinite(i) ? `${i.toFixed(3)}px` : "-", u = `${l} / ${c}`, h = `${S} / ${b}`, w = `${e?.sizeUnit === "pixels" ? "Fixed" : "Flexible"}${t ? " (Grow)" : ""}`, C = [w, `${s}: ${d}`, `size (state): ${u}`, `size (measured): ${h}`];
3802
+ const a = e?.size, l = typeof a == "number" && Number.isFinite(a) ? `${a.toFixed(3)}px` : "-", c = e?.percentageSize !== void 0 ? `${e.percentageSize.toFixed(3)}%` : "-", P = Number.isFinite(r) ? `${r.toFixed(3)}px` : "-", z = Number.isFinite(o) ? `${o.toFixed(3)}%` : "-", f = Number.isFinite(i) ? `${i.toFixed(3)}px` : "-", d = `${l} / ${c}`, h = `${P} / ${z}`, v = `${e?.sizeUnit === "pixels" ? "Fixed" : "Flexible"}${t ? " (Grow)" : ""}`, w = [v, `${s}: ${f}`, `size (state): ${d}`, `size (measured): ${h}`];
3803
3803
  return {
3804
- stateValueDisplay: u,
3804
+ stateValueDisplay: d,
3805
3805
  measuredValueDisplay: h,
3806
- containerDisplay: d,
3807
- headlineLabel: w,
3808
- titleText: C.join(`
3806
+ containerDisplay: f,
3807
+ headlineLabel: v,
3808
+ titleText: w.join(`
3809
3809
  `)
3810
3810
  };
3811
3811
  }, Ur = nt(({ panel: e, isLastFlexiblePanel: t, measuredPixelSize: r, measuredPercentageSize: o, containerAxisSize: i, direction: s }) => {
3812
- const a = s === "horizontal" ? "container width" : "container height", { stateValueDisplay: l, measuredValueDisplay: c, containerDisplay: S, headlineLabel: b, titleText: d } = de(
3812
+ const a = s === "horizontal" ? "container width" : "container height", { stateValueDisplay: l, measuredValueDisplay: c, containerDisplay: P, headlineLabel: z, titleText: f } = ue(
3813
3813
  () => Wr({
3814
3814
  panel: e,
3815
3815
  isLastFlexiblePanel: t,
@@ -3819,7 +3819,7 @@ const le = (e) => {
3819
3819
  containerLabel: a
3820
3820
  }),
3821
3821
  [e, t, r, o, i, a]
3822
- ), u = {
3822
+ ), d = {
3823
3823
  position: "absolute",
3824
3824
  top: "2px",
3825
3825
  right: "4px",
@@ -3843,7 +3843,7 @@ const le = (e) => {
3843
3843
  gap: "1px",
3844
3844
  minWidth: "0",
3845
3845
  width: "100%"
3846
- }, w = {
3846
+ }, v = {
3847
3847
  display: "flex",
3848
3848
  justifyContent: "flex-start",
3849
3849
  alignItems: "center",
@@ -3855,7 +3855,7 @@ const le = (e) => {
3855
3855
  textOverflow: "ellipsis",
3856
3856
  minWidth: "0",
3857
3857
  width: "100%"
3858
- }, C = {
3858
+ }, w = {
3859
3859
  display: "flex",
3860
3860
  justifyContent: "space-between",
3861
3861
  alignItems: "center",
@@ -3865,171 +3865,171 @@ const le = (e) => {
3865
3865
  textOverflow: "ellipsis",
3866
3866
  minWidth: "0",
3867
3867
  width: "100%"
3868
- }, v = {
3868
+ }, C = {
3869
3869
  marginLeft: "auto",
3870
3870
  fontVariantNumeric: "tabular-nums",
3871
3871
  whiteSpace: "nowrap"
3872
3872
  };
3873
- return /* @__PURE__ */ L.jsx("div", { style: u, title: d, children: /* @__PURE__ */ L.jsxs("div", { style: h, children: [
3874
- /* @__PURE__ */ L.jsx("div", { style: w, children: /* @__PURE__ */ L.jsx("span", { children: b }) }),
3875
- /* @__PURE__ */ L.jsxs("div", { style: C, children: [
3873
+ return /* @__PURE__ */ L.jsx("div", { style: d, title: f, children: /* @__PURE__ */ L.jsxs("div", { style: h, children: [
3874
+ /* @__PURE__ */ L.jsx("div", { style: v, children: /* @__PURE__ */ L.jsx("span", { children: z }) }),
3875
+ /* @__PURE__ */ L.jsxs("div", { style: w, children: [
3876
3876
  /* @__PURE__ */ L.jsx("span", { children: a }),
3877
- /* @__PURE__ */ L.jsx("span", { style: v, children: S })
3877
+ /* @__PURE__ */ L.jsx("span", { style: C, children: P })
3878
3878
  ] }),
3879
- /* @__PURE__ */ L.jsxs("div", { style: C, children: [
3879
+ /* @__PURE__ */ L.jsxs("div", { style: w, children: [
3880
3880
  /* @__PURE__ */ L.jsx("span", { children: "size (state)" }),
3881
- /* @__PURE__ */ L.jsx("span", { style: v, children: l })
3881
+ /* @__PURE__ */ L.jsx("span", { style: C, children: l })
3882
3882
  ] }),
3883
- /* @__PURE__ */ L.jsxs("div", { style: C, children: [
3883
+ /* @__PURE__ */ L.jsxs("div", { style: w, children: [
3884
3884
  /* @__PURE__ */ L.jsx("span", { children: "size (measured)" }),
3885
- /* @__PURE__ */ L.jsx("span", { style: v, children: c })
3885
+ /* @__PURE__ */ L.jsx("span", { style: C, children: c })
3886
3886
  ] })
3887
3887
  ] }) });
3888
- }), on = nt(({ id: e, defaultSize: t = { value: 50, unit: "percentage" }, minSize: r, maxSize: o, className: i, style: s, children: a, order: l = 0, collapsible: c = !1, defaultCollapsed: S = !1, pixelAdjustPriority: b }) => {
3889
- const { direction: d, registerPanel: u, unregisterPanel: h, getPanel: w, showDebugInfo: C, panels: v, isContainerReady: p, reportPanelMeasurement: m, containerSize: R } = it(), F = pe(null), V = pe(e || rr()), I = w(V.current), ee = !!I?.collapsed, M = (I?.size ?? 0) <= 0, $ = ee || M, [W, X] = ze(() => {
3888
+ }), on = nt(({ id: e, defaultSize: t = { value: 50, unit: "percentage" }, minSize: r, maxSize: o, className: i, style: s, children: a, order: l = 0, collapsible: c = !1, defaultCollapsed: P = !1, pixelAdjustPriority: z, contentOverflow: f = "auto" }) => {
3889
+ const { direction: d, registerPanel: h, unregisterPanel: v, getPanel: w, showDebugInfo: C, panels: p, isContainerReady: x, reportPanelMeasurement: k, containerSize: $ } = it(), J = me(null), H = me(e || rr()), O = w(H.current), E = !!O?.collapsed, q = (O?.size ?? 0) <= 0, F = E || q, [Y, te] = Se(() => {
3890
3890
  const g = Le(t);
3891
- return g?.unit === "pixels" ? g.value : I?.size !== void 0 ? I.size : 0;
3892
- }), [te, Y] = ze(() => {
3891
+ return g?.unit === "pixels" ? g.value : O?.size !== void 0 ? O.size : 0;
3892
+ }), [V, K] = Se(() => {
3893
3893
  const g = Le(t);
3894
- return g?.unit === "percentage" ? g.value : I?.percentageSize !== void 0 ? I.percentageSize : 0;
3895
- }), Z = pe(te);
3896
- Z.current = te;
3897
- const H = pe(W);
3898
- H.current = W;
3899
- const A = fe((g) => {
3894
+ return g?.unit === "percentage" ? g.value : O?.percentageSize !== void 0 ? O.percentageSize : 0;
3895
+ }), W = me(V);
3896
+ W.current = V;
3897
+ const _ = me(Y);
3898
+ _.current = Y;
3899
+ const D = pe((g) => {
3900
3900
  if (!Number.isFinite(g))
3901
3901
  return;
3902
- const y = g < 0 ? 0 : g;
3903
- H.current !== y && (H.current = y, console.debug("[resize-panels] commit pixel", { panelId: V.current, pixel: y }), X(y));
3904
- }, []), D = fe((g) => {
3902
+ const I = g < 0 ? 0 : g;
3903
+ _.current !== I && (_.current = I, console.debug("[resize-panels] commit pixel", { panelId: H.current, pixel: I }), te(I));
3904
+ }, []), y = pe((g) => {
3905
3905
  if (!Number.isFinite(g))
3906
3906
  return;
3907
- const y = g < 0 ? 0 : g;
3908
- Z.current !== y && (Z.current = y, console.debug("[resize-panels] commit percentage", { panelId: V.current, percentage: y }), Y(y));
3907
+ const I = g < 0 ? 0 : g;
3908
+ W.current !== I && (W.current = I, console.debug("[resize-panels] commit percentage", { panelId: H.current, percentage: I }), K(I));
3909
3909
  }, []);
3910
- ue(() => {
3910
+ fe(() => {
3911
3911
  e || console.warn("Panel component should have an explicit 'id' prop to avoid hydration issues. Auto-generated ID may cause SSR/client mismatch.");
3912
- }, [e]), ue(() => {
3913
- if (!p)
3912
+ }, [e]), fe(() => {
3913
+ if (!x)
3914
3914
  return;
3915
- const g = Le(t), y = g?.unit === "pixels";
3916
- let B = 0;
3917
- if (y) {
3918
- let f = g.value;
3919
- r && typeof r == "object" && r.unit === "pixels" && (f = Math.max(f, r.value)), o && typeof o == "object" && o.unit === "pixels" && (f = Math.min(f, o.value)), B = f;
3915
+ const g = Le(t), I = g?.unit === "pixels";
3916
+ let j = 0;
3917
+ if (I) {
3918
+ let U = g.value;
3919
+ r && typeof r == "object" && r.unit === "pixels" && (U = Math.max(U, r.value)), o && typeof o == "object" && o.unit === "pixels" && (U = Math.min(U, o.value)), j = U;
3920
3920
  }
3921
- const j = y ? void 0 : g?.value, G = S, re = c && G && y ? B : void 0, K = c ? j : void 0, Q = {
3922
- id: V.current,
3923
- size: G ? 0 : B,
3924
- percentageSize: G ? 0 : j,
3921
+ const G = I ? void 0 : g?.value, Q = P, ie = c && Q && I ? j : void 0, Z = c ? G : void 0, re = {
3922
+ id: H.current,
3923
+ size: Q ? 0 : j,
3924
+ percentageSize: Q ? 0 : G,
3925
3925
  sizeUnit: g?.unit || "percentage",
3926
- originalPixelSize: y ? B : void 0,
3926
+ originalPixelSize: I ? j : void 0,
3927
3927
  minSize: r,
3928
3928
  maxSize: o,
3929
3929
  collapsible: c,
3930
- collapsed: G,
3931
- sizeBeforeCollapse: re,
3932
- percentageSizeBeforeCollapse: K,
3933
- pixelAdjustPriority: b
3930
+ collapsed: Q,
3931
+ sizeBeforeCollapse: ie,
3932
+ percentageSizeBeforeCollapse: Z,
3933
+ pixelAdjustPriority: z
3934
3934
  };
3935
- return u(Q), () => {
3936
- h(V.current), m(V.current, null);
3935
+ return h(re), () => {
3936
+ v(H.current), k(H.current, null);
3937
3937
  };
3938
- }, [t, r, o, u, h, c, S, b, m, p]);
3939
- const k = I?.size ?? 0;
3940
- ue(() => {
3941
- const g = F.current;
3938
+ }, [t, r, o, h, v, c, P, z, k, x]);
3939
+ const ne = O?.size ?? 0;
3940
+ fe(() => {
3941
+ const g = J.current;
3942
3942
  if (!g) return;
3943
- const y = () => {
3944
- if (!I)
3943
+ const I = () => {
3944
+ if (!O)
3945
3945
  return;
3946
- const K = g.parentElement;
3947
- if (!K) return;
3948
- const { width: Q, height: se } = g.getBoundingClientRect(), { inner: f } = we(K, "horizontal"), { inner: q } = we(K, "vertical"), ae = d === "horizontal" ? Q : se, ie = d === "horizontal" ? f : q, ce = Ke(ie);
3949
- if ($) {
3950
- H.current !== 0 && (H.current = 0, X(0)), Z.current !== 0 && (Z.current = 0, Y(0));
3946
+ const Z = g.parentElement;
3947
+ if (!Z) return;
3948
+ const { width: re, height: u } = g.getBoundingClientRect(), { inner: U } = we(Z, "horizontal"), { inner: le } = we(Z, "vertical"), oe = d === "horizontal" ? re : u, ae = d === "horizontal" ? U : le, ze = Ke(ae);
3949
+ if (F) {
3950
+ _.current !== 0 && (_.current = 0, te(0)), W.current !== 0 && (W.current = 0, K(0));
3951
3951
  return;
3952
3952
  }
3953
- const be = I?.size ?? 0, xe = Math.max(2, ce * 0.5);
3954
- if (!$ && be > ce && ae < xe) {
3953
+ const xe = O?.size ?? 0, de = Math.max(2, ze * 0.5);
3954
+ if (!F && xe > ze && oe < de) {
3955
3955
  console.debug("[resize-panels] skip noisy measurement", {
3956
- panelId: V.current,
3957
- expectedPanelSize: be,
3958
- measured: ae,
3959
- noiseThreshold: xe
3956
+ panelId: H.current,
3957
+ expectedPanelSize: xe,
3958
+ measured: oe,
3959
+ noiseThreshold: de
3960
3960
  });
3961
3961
  return;
3962
3962
  }
3963
- if (ae > 0) {
3964
- if (A(ae), ie > 0) {
3965
- const Se = ae / ie * 100;
3966
- D(Se);
3963
+ if (oe > 0) {
3964
+ if (D(oe), ae > 0) {
3965
+ const be = oe / ae * 100;
3966
+ y(be);
3967
3967
  }
3968
- } else if (I?.size !== void 0 && A(I.size), I?.percentageSize !== void 0) {
3969
- const Se = I.percentageSize;
3970
- D(Se);
3971
- } else if (I?.sizeUnit === "pixels" && I?.size !== void 0 && ie > 0) {
3972
- const Se = I.size / ie * 100;
3973
- D(Se);
3968
+ } else if (O?.size !== void 0 && D(O.size), O?.percentageSize !== void 0) {
3969
+ const be = O.percentageSize;
3970
+ y(be);
3971
+ } else if (O?.sizeUnit === "pixels" && O?.size !== void 0 && ae > 0) {
3972
+ const be = O.size / ae * 100;
3973
+ y(be);
3974
3974
  }
3975
- }, B = new ResizeObserver(() => {
3976
- y();
3975
+ }, j = new ResizeObserver(() => {
3976
+ I();
3977
3977
  });
3978
- B.observe(g), y();
3979
- const j = [], G = new MutationObserver(() => {
3978
+ j.observe(g), I();
3979
+ const G = [], Q = new MutationObserver(() => {
3980
3980
  (() => {
3981
- if (!F.current) return !1;
3982
- const Q = F.current.getBoundingClientRect();
3983
- return (d === "horizontal" ? Q.width : Q.height) !== H.current;
3984
- })() && setTimeout(y, 0);
3985
- }), re = g.parentElement;
3986
- return re && G.observe(re, {
3981
+ if (!J.current) return !1;
3982
+ const re = J.current.getBoundingClientRect();
3983
+ return (d === "horizontal" ? re.width : re.height) !== _.current;
3984
+ })() && setTimeout(I, 0);
3985
+ }), ie = g.parentElement;
3986
+ return ie && Q.observe(ie, {
3987
3987
  childList: !0,
3988
3988
  subtree: !0,
3989
3989
  attributes: !0,
3990
3990
  attributeFilter: ["style", "class"]
3991
3991
  }), () => {
3992
- B.disconnect(), G.disconnect();
3993
- for (const K of j)
3994
- clearTimeout(K);
3992
+ j.disconnect(), Q.disconnect();
3993
+ for (const Z of G)
3994
+ clearTimeout(Z);
3995
3995
  };
3996
- }, [d, I, $, A, D]);
3997
- const ne = I?.size, _ = I?.percentageSize, n = I?.sizeUnit;
3998
- ue(() => {
3999
- if (I) {
4000
- if ($) {
4001
- H.current !== 0 && (H.current = 0, X(0)), Z.current !== 0 && (Z.current = 0, Y(0));
3996
+ }, [d, O, F, D, y]);
3997
+ const M = O?.size, n = O?.percentageSize, S = O?.sizeUnit;
3998
+ fe(() => {
3999
+ if (O) {
4000
+ if (F) {
4001
+ _.current !== 0 && (_.current = 0, te(0)), W.current !== 0 && (W.current = 0, K(0));
4002
4002
  return;
4003
4003
  }
4004
- if (ne !== void 0 && A(ne), _ !== void 0)
4005
- D(_);
4006
- else if (n === "pixels" && ne !== void 0) {
4007
- const g = F.current, y = g?.parentElement;
4008
- if (g && y) {
4009
- const { width: B, height: j } = g.getBoundingClientRect(), G = y.clientWidth, re = y.clientHeight, K = d === "horizontal" ? B : j, Q = d === "horizontal" ? G : re;
4010
- if (K > 0 && Q > 0) {
4011
- const se = K / Q * 100;
4012
- D(se);
4004
+ if (M !== void 0 && D(M), n !== void 0)
4005
+ y(n);
4006
+ else if (S === "pixels" && M !== void 0) {
4007
+ const g = J.current, I = g?.parentElement;
4008
+ if (g && I) {
4009
+ const { width: j, height: G } = g.getBoundingClientRect(), Q = I.clientWidth, ie = I.clientHeight, Z = d === "horizontal" ? j : G, re = d === "horizontal" ? Q : ie;
4010
+ if (Z > 0 && re > 0) {
4011
+ const u = Z / re * 100;
4012
+ y(u);
4013
4013
  }
4014
4014
  }
4015
4015
  }
4016
4016
  }
4017
- }, [ne, _, n, d, $, A, D, I]), ue(() => {
4018
- m(V.current, {
4019
- pixelSize: W,
4020
- percentageSize: te
4017
+ }, [M, n, S, d, F, D, y, O]), fe(() => {
4018
+ k(H.current, {
4019
+ pixelSize: Y,
4020
+ percentageSize: V
4021
4021
  });
4022
- }, [m, W, te]);
4023
- const z = () => $ ? "0px" : I?.originalPixelSize !== void 0 ? `${k}px` : I?.percentageSize !== void 0 ? `${I.percentageSize}%` : `${k}px`, E = (() => {
4024
- if (!v || v.length === 0) return !1;
4025
- const g = v.filter((j) => j.sizeUnit === "percentage");
4026
- if (g.length === 0 || g[g.length - 1]?.id !== V.current) return !1;
4027
- const B = I?.percentageSize;
4028
- return !(B !== void 0 && g.filter((G) => Math.abs((G.percentageSize || 0) - B) < 0.01).length > 1);
4029
- })(), N = I?.sizeUnit === "percentage" && !I?.collapsed ? 1 : 0, U = {
4030
- flexBasis: z(),
4031
- flexGrow: E ? 1 : 0,
4032
- flexShrink: N,
4022
+ }, [k, Y, V]);
4023
+ const R = () => F ? "0px" : O?.originalPixelSize !== void 0 ? `${ne}px` : O?.percentageSize !== void 0 ? `${O.percentageSize}%` : `${ne}px`, A = (() => {
4024
+ if (!p || p.length === 0) return !1;
4025
+ const g = p.filter((G) => G.sizeUnit === "percentage");
4026
+ if (g.length === 0 || g[g.length - 1]?.id !== H.current) return !1;
4027
+ const j = O?.percentageSize;
4028
+ return !(j !== void 0 && g.filter((Q) => Math.abs((Q.percentageSize || 0) - j) < 0.01).length > 1);
4029
+ })(), ee = O?.sizeUnit === "percentage" && !O?.collapsed ? 1 : 0, m = {
4030
+ flexBasis: R(),
4031
+ flexGrow: A ? 1 : 0,
4032
+ flexShrink: ee,
4033
4033
  overflow: "hidden",
4034
4034
  position: "relative",
4035
4035
  boxSizing: "border-box",
@@ -4037,12 +4037,12 @@ const le = (e) => {
4037
4037
  minWidth: "0px",
4038
4038
  ...s
4039
4039
  };
4040
- d === "horizontal" ? (U.height = "100%", U.minWidth = 0) : (U.width = "100%", U.minHeight = 0), $ && (d === "horizontal" ? (U.width = "0px", U.minWidth = "0px") : (U.height = "0px", U.minHeight = "0px"), U.flexGrow = 0, U.flexShrink = 0, U.pointerEvents = "none", U.visibility = "hidden", ee && (U.display = "none"));
4041
- const P = d === "horizontal" ? R.width : R.height, x = de(
4040
+ d === "horizontal" ? (m.height = "100%", m.minWidth = 0) : (m.width = "100%", m.minHeight = 0), F && (d === "horizontal" ? (m.width = "0px", m.minWidth = "0px") : (m.height = "0px", m.minHeight = "0px"), m.flexGrow = 0, m.flexShrink = 0, m.pointerEvents = "none", m.visibility = "hidden", E && (m.display = "none"));
4041
+ const b = d === "horizontal" ? $.width : $.height, B = ue(
4042
4042
  () => ({
4043
4043
  position: "absolute",
4044
4044
  inset: "0px",
4045
- overflow: "auto",
4045
+ overflow: f,
4046
4046
  display: "flex",
4047
4047
  flexDirection: "column",
4048
4048
  width: "100%",
@@ -4050,25 +4050,25 @@ const le = (e) => {
4050
4050
  minWidth: "0px",
4051
4051
  minHeight: "0px"
4052
4052
  }),
4053
- []
4053
+ [f]
4054
4054
  );
4055
4055
  return /* @__PURE__ */ L.jsxs(
4056
4056
  "div",
4057
4057
  {
4058
- ref: F,
4058
+ ref: J,
4059
4059
  className: De("panel", i),
4060
- style: U,
4061
- "data-panel-id": V.current,
4062
- "data-panel-size": k,
4063
- "data-panel-size-unit": I?.sizeUnit || "percentage",
4064
- "data-panel-pixel-size": I?.sizeUnit === "pixels" ? I?.originalPixelSize : null,
4060
+ style: m,
4061
+ "data-panel-id": H.current,
4062
+ "data-panel-size": ne,
4063
+ "data-panel-size-unit": O?.sizeUnit || "percentage",
4064
+ "data-panel-pixel-size": O?.sizeUnit === "pixels" ? O?.originalPixelSize : null,
4065
4065
  "data-panel-order": l,
4066
4066
  "data-panel-collapsible": c,
4067
- "data-panel-collapsed": I?.collapsed,
4068
- "aria-hidden": $,
4067
+ "data-panel-collapsed": O?.collapsed,
4068
+ "aria-hidden": F,
4069
4069
  children: [
4070
- /* @__PURE__ */ L.jsx("div", { style: x, children: a }),
4071
- C && /* @__PURE__ */ L.jsx(Ur, { panel: I, isLastFlexiblePanel: E, measuredPixelSize: W, measuredPercentageSize: te, containerAxisSize: P, direction: d })
4070
+ /* @__PURE__ */ L.jsx("div", { style: B, children: a }),
4071
+ C && /* @__PURE__ */ L.jsx(Ur, { panel: O, isLastFlexiblePanel: A, measuredPixelSize: Y, measuredPercentageSize: V, containerAxisSize: b, direction: d })
4072
4072
  ]
4073
4073
  }
4074
4074
  );
@@ -4107,84 +4107,84 @@ const le = (e) => {
4107
4107
  const c = () => {
4108
4108
  for (const p of e)
4109
4109
  p();
4110
- }, S = () => {
4110
+ }, P = () => {
4111
4111
  s = !0, c();
4112
- }, b = () => {
4112
+ }, z = () => {
4113
4113
  const p = o;
4114
4114
  if (p && r.has(p))
4115
4115
  return !1;
4116
4116
  o = null;
4117
- const m = r.values().next();
4118
- return m.done || (o = m.value), p !== o;
4117
+ const x = r.values().next();
4118
+ return x.done || (o = x.value), p !== o;
4119
4119
  };
4120
4120
  return {
4121
4121
  subscribe: (p) => (e.add(p), () => {
4122
4122
  e.delete(p);
4123
4123
  }),
4124
- getSnapshot: () => (b() && (s = !0), s && (a = Array.from(t.values()).sort((m, R) => m.index - R.index).map(({ serializedPanels: m, serializedHandles: R, ...F }) => F), l = {
4124
+ getSnapshot: () => (z() && (s = !0), s && (a = Array.from(t.values()).sort((x, k) => x.index - k.index).map(({ serializedPanels: x, serializedHandles: k, ...$ }) => $), l = {
4125
4125
  ownerId: o,
4126
4126
  groups: a
4127
4127
  }, s = !1), l),
4128
- getOwnerId: () => (b() && (s = !0), o),
4128
+ getOwnerId: () => (z() && (s = !0), o),
4129
4129
  enableGroup: (p) => {
4130
- const m = r.size;
4131
- r.add(p), r.size !== m && b() && S();
4130
+ const x = r.size;
4131
+ r.add(p), r.size !== x && z() && P();
4132
4132
  },
4133
4133
  disableGroup: (p) => {
4134
- r.delete(p) && b() && S();
4134
+ r.delete(p) && z() && P();
4135
4135
  },
4136
- updateGroup: (p, m) => {
4137
- const R = t.get(p), F = R?.index ?? i++, V = Vr(m.panels), I = Yr(m.handles), ee = R?.displayName !== m.displayName, M = R?.direction !== m.direction, $ = R ? R.containerSize.width !== m.containerSize.width || R.containerSize.height !== m.containerSize.height : !0;
4138
- let W = R?.serializedPanels !== V;
4139
- if (!W && R)
4140
- if (R.panels.length !== m.panels.length)
4141
- W = !0;
4136
+ updateGroup: (p, x) => {
4137
+ const k = t.get(p), $ = k?.index ?? i++, J = Vr(x.panels), H = Yr(x.handles), O = k?.displayName !== x.displayName, E = k?.direction !== x.direction, q = k ? k.containerSize.width !== x.containerSize.width || k.containerSize.height !== x.containerSize.height : !0;
4138
+ let F = k?.serializedPanels !== J;
4139
+ if (!F && k)
4140
+ if (k.panels.length !== x.panels.length)
4141
+ F = !0;
4142
4142
  else
4143
- for (let H = 0; H < m.panels.length; H += 1) {
4144
- const A = R.panels[H], D = m.panels[H];
4145
- if (!(A && D)) {
4146
- W = !0;
4143
+ for (let W = 0; W < x.panels.length; W += 1) {
4144
+ const _ = k.panels[W], D = x.panels[W];
4145
+ if (!(_ && D)) {
4146
+ F = !0;
4147
4147
  break;
4148
4148
  }
4149
- if (A.id !== D.id || A.size !== D.size || A.percentageSize !== D.percentageSize || A.collapsed !== D.collapsed || A.measuredPixelSize !== D.measuredPixelSize || A.measuredPercentageSize !== D.measuredPercentageSize) {
4150
- W = !0;
4149
+ if (_.id !== D.id || _.size !== D.size || _.percentageSize !== D.percentageSize || _.collapsed !== D.collapsed || _.measuredPixelSize !== D.measuredPixelSize || _.measuredPercentageSize !== D.measuredPercentageSize) {
4150
+ F = !0;
4151
4151
  break;
4152
4152
  }
4153
4153
  }
4154
- let X = R?.serializedHandles !== I;
4155
- if (!X && R)
4156
- if (R.handles.length !== m.handles.length)
4157
- X = !0;
4154
+ let Y = k?.serializedHandles !== H;
4155
+ if (!Y && k)
4156
+ if (k.handles.length !== x.handles.length)
4157
+ Y = !0;
4158
4158
  else
4159
- for (let H = 0; H < m.handles.length; H += 1) {
4160
- const A = R.handles[H], D = m.handles[H];
4161
- if (!(A && D)) {
4162
- X = !0;
4159
+ for (let W = 0; W < x.handles.length; W += 1) {
4160
+ const _ = k.handles[W], D = x.handles[W];
4161
+ if (!(_ && D)) {
4162
+ Y = !0;
4163
4163
  break;
4164
4164
  }
4165
- if (A.id !== D.id || A.thickness !== D.thickness || A.visible !== D.visible || A.direction !== D.direction || A.startPanelId !== D.startPanelId || A.endPanelId !== D.endPanelId) {
4166
- X = !0;
4165
+ if (_.id !== D.id || _.thickness !== D.thickness || _.visible !== D.visible || _.direction !== D.direction || _.startPanelId !== D.startPanelId || _.endPanelId !== D.endPanelId) {
4166
+ Y = !0;
4167
4167
  break;
4168
4168
  }
4169
4169
  }
4170
- if (!R && m.panels.length === 0 && m.handles.length === 0 || R && !ee && !M && !$ && !W && !X)
4170
+ if (!k && x.panels.length === 0 && x.handles.length === 0 || k && !O && !E && !q && !F && !Y)
4171
4171
  return;
4172
- const te = m.panels.map((H) => ({ ...H })), Y = m.handles.map((H) => ({ ...H })), Z = { ...m.containerSize };
4172
+ const te = x.panels.map((W) => ({ ...W })), V = x.handles.map((W) => ({ ...W })), K = { ...x.containerSize };
4173
4173
  t.set(p, {
4174
4174
  groupId: p,
4175
- displayName: m.displayName,
4176
- direction: m.direction,
4177
- containerSize: Z,
4175
+ displayName: x.displayName,
4176
+ direction: x.direction,
4177
+ containerSize: K,
4178
4178
  panels: te,
4179
- handles: Y,
4180
- index: F,
4181
- serializedPanels: V,
4182
- serializedHandles: I
4183
- }), S();
4179
+ handles: V,
4180
+ index: $,
4181
+ serializedPanels: J,
4182
+ serializedHandles: H
4183
+ }), P();
4184
4184
  },
4185
4185
  removeGroup: (p) => {
4186
- const m = t.delete(p), R = r.delete(p), F = b();
4187
- (m || R || F) && S();
4186
+ const x = t.delete(p), k = r.delete(p), $ = z();
4187
+ (x || k || $) && P();
4188
4188
  }
4189
4189
  };
4190
4190
  }, ye = qr(), Xr = () => Et(ye.subscribe, ye.getOwnerId, ye.getOwnerId), Jr = () => Et(ye.subscribe, ye.getSnapshot, ye.getSnapshot), Zr = (e) => {
@@ -4198,88 +4198,88 @@ const le = (e) => {
4198
4198
  };
4199
4199
  let Ct = 0;
4200
4200
  const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "number" || !Number.isFinite(e) ? "—" : `${(e < 0 ? 0 : e).toFixed(8)}${t}`, Ve = (e) => Wt(e, "px"), kt = (e) => Wt(e, "%"), sn = (e) => {
4201
- const { id: t, className: r, style: o, children: i, direction: s } = e, { groupRef: a, contextValue: l, groupStyle: c } = ar(e), [S, b] = ze({ width: 0, height: 0 }), d = l.layoutConstraintViolation, u = !!d, h = u && d ? /* @__PURE__ */ L.jsxs(
4201
+ const { id: t, className: r, style: o, children: i, direction: s } = e, { groupRef: a, contextValue: l, groupStyle: c } = ar(e), [P, z] = Se({ width: 0, height: 0 }), f = l.layoutConstraintViolation, d = !!f, h = d && f ? /* @__PURE__ */ L.jsxs(
4202
4202
  "div",
4203
4203
  {
4204
4204
  className: "flex w-full flex-1 flex-col items-center justify-center gap-2 rounded-lg border border-slate-300 border-dashed bg-slate-100/70 px-6 py-8 text-center text-slate-600 text-sm dark:border-slate-600 dark:bg-slate-800/50 dark:text-slate-200",
4205
4205
  "data-panel-group-placeholder": "constraint-violation",
4206
4206
  children: [
4207
- /* @__PURE__ */ L.jsx("span", { children: d.reason === "minimum-exceeded" ? "Layout unavailable: minimum panel sizes exceed the container." : "Layout unavailable: panels cannot fill the container with their maximum sizes." }),
4208
- /* @__PURE__ */ L.jsx("span", { className: "text-slate-500 text-xs dark:text-slate-400", children: d.reason === "minimum-exceeded" ? `Min required: ${Math.ceil(d.totalMinimumSize ?? 0)}px | Available: ${Math.floor(d.availableContainerSize)}px` : `Max total: ${Math.floor(d.totalMaximumSize ?? 0)}px | Needed: ${Math.floor(d.availableContainerSize)}px` })
4207
+ /* @__PURE__ */ L.jsx("span", { children: f.reason === "minimum-exceeded" ? "Layout unavailable: minimum panel sizes exceed the container." : "Layout unavailable: panels cannot fill the container with their maximum sizes." }),
4208
+ /* @__PURE__ */ L.jsx("span", { className: "text-slate-500 text-xs dark:text-slate-400", children: f.reason === "minimum-exceeded" ? `Min required: ${Math.ceil(f.totalMinimumSize ?? 0)}px | Available: ${Math.floor(f.availableContainerSize)}px` : `Max total: ${Math.floor(f.totalMaximumSize ?? 0)}px | Needed: ${Math.floor(f.availableContainerSize)}px` })
4209
4209
  ]
4210
4210
  }
4211
- ) : null, C = pe(t ?? Kr()).current, v = t ?? C, p = l.showDebugInfo && l.panels.length > 0, m = p ? l.panels : [], R = p ? l.panelMeasurements : {}, F = de(() => {
4211
+ ) : null, w = me(t ?? Kr()).current, C = t ?? w, p = l.showDebugInfo && l.panels.length > 0, x = p ? l.panels : [], k = p ? l.panelMeasurements : {}, $ = ue(() => {
4212
4212
  if (!p)
4213
4213
  return [];
4214
- const X = Object.values(l.handleMeasurements);
4215
- return X.length <= 1 ? X : X.slice().sort((te, Y) => te.id.localeCompare(Y.id));
4216
- }, [l.handleMeasurements, p]), V = l.containerSize, I = S.width > 0 ? S.width : V.width, ee = S.height > 0 ? S.height : V.height, M = Xr(), $ = p && M === C;
4214
+ const Y = Object.values(l.handleMeasurements);
4215
+ return Y.length <= 1 ? Y : Y.slice().sort((te, V) => te.id.localeCompare(V.id));
4216
+ }, [l.handleMeasurements, p]), J = l.containerSize, H = P.width > 0 ? P.width : J.width, O = P.height > 0 ? P.height : J.height, E = Xr(), q = p && E === w;
4217
4217
  Ye(() => {
4218
4218
  if (!p) {
4219
- b({ width: 0, height: 0 });
4219
+ z({ width: 0, height: 0 });
4220
4220
  return;
4221
4221
  }
4222
4222
  if (typeof window > "u" || typeof ResizeObserver > "u")
4223
4223
  return;
4224
- const X = a.current;
4225
- if (!X)
4224
+ const Y = a.current;
4225
+ if (!Y)
4226
4226
  return;
4227
- const te = new ResizeObserver((k) => {
4228
- for (const ne of k) {
4229
- if (ne.target !== X)
4227
+ const te = new ResizeObserver((y) => {
4228
+ for (const ne of y) {
4229
+ if (ne.target !== Y)
4230
4230
  continue;
4231
- const _ = ne.target, n = _ ? we(_, "horizontal") : null, z = _ ? we(_, "vertical") : null, E = n ? n.inner : 0, N = z ? z.inner : 0, U = ne.contentRect.width, P = ne.contentRect.height, x = E > 0 ? E : U, g = N > 0 ? N : P;
4232
- b((y) => y.width === x && y.height === g ? y : { width: x, height: g });
4231
+ const M = ne.target, n = M ? we(M, "horizontal") : null, S = M ? we(M, "vertical") : null, R = n ? n.inner : 0, A = S ? S.inner : 0, ee = ne.contentRect.width, m = ne.contentRect.height, b = R > 0 ? R : ee, B = A > 0 ? A : m;
4232
+ z((g) => g.width === b && g.height === B ? g : { width: b, height: B });
4233
4233
  }
4234
4234
  });
4235
- te.observe(X);
4236
- const { inner: Y } = we(X, "horizontal"), { inner: Z } = we(X, "vertical"), H = X.getBoundingClientRect(), A = Y > 0 ? Y : H.width, D = Z > 0 ? Z : H.height;
4237
- return b({ width: A, height: D }), () => {
4235
+ te.observe(Y);
4236
+ const { inner: V } = we(Y, "horizontal"), { inner: K } = we(Y, "vertical"), W = Y.getBoundingClientRect(), _ = V > 0 ? V : W.width, D = K > 0 ? K : W.height;
4237
+ return z({ width: _, height: D }), () => {
4238
4238
  te.disconnect();
4239
4239
  };
4240
4240
  }, [a, p]);
4241
- const W = de(() => {
4242
- if (m.length === 0)
4243
- return m;
4244
- let X = !1;
4245
- const te = m.map((Y) => {
4246
- const Z = R[Y.id];
4247
- return !Z || Y.measuredPixelSize === Z.pixelSize && Y.measuredPercentageSize === Z.percentageSize ? Y : (X = !0, {
4248
- ...Y,
4249
- measuredPixelSize: Z.pixelSize,
4250
- measuredPercentageSize: Z.percentageSize
4241
+ const F = ue(() => {
4242
+ if (x.length === 0)
4243
+ return x;
4244
+ let Y = !1;
4245
+ const te = x.map((V) => {
4246
+ const K = k[V.id];
4247
+ return !K || V.measuredPixelSize === K.pixelSize && V.measuredPercentageSize === K.percentageSize ? V : (Y = !0, {
4248
+ ...V,
4249
+ measuredPixelSize: K.pixelSize,
4250
+ measuredPercentageSize: K.percentageSize
4251
4251
  });
4252
4252
  });
4253
- return X ? te : m;
4254
- }, [m, R]);
4255
- return ue(() => {
4253
+ return Y ? te : x;
4254
+ }, [x, k]);
4255
+ return fe(() => {
4256
4256
  if (!p) {
4257
- vt(C), wt(C);
4257
+ vt(w), wt(w);
4258
4258
  return;
4259
4259
  }
4260
- return Zr(C), () => {
4261
- vt(C), wt(C);
4260
+ return Zr(w), () => {
4261
+ vt(w), wt(w);
4262
4262
  };
4263
- }, [p, C]), ue(() => {
4264
- p && Qr(C, {
4265
- displayName: v,
4263
+ }, [p, w]), fe(() => {
4264
+ p && Qr(w, {
4265
+ displayName: C,
4266
4266
  direction: s,
4267
4267
  containerSize: {
4268
- width: I,
4269
- height: ee
4268
+ width: H,
4269
+ height: O
4270
4270
  },
4271
- panels: W,
4272
- handles: F
4271
+ panels: F,
4272
+ handles: $
4273
4273
  });
4274
- }, [p, C, v, s, I, ee, W, F]), /* @__PURE__ */ L.jsxs(Mt.Provider, { value: l, children: [
4275
- /* @__PURE__ */ L.jsx("div", { ref: a, className: De("panel-group", s === "horizontal" ? "flex-row" : "flex-col", r), style: { ...c, ...o }, "data-panel-group-id": t, "data-panel-group-direction": s, children: u ? h : i }),
4276
- $ && /* @__PURE__ */ L.jsx(en, {})
4274
+ }, [p, w, C, s, H, O, F, $]), /* @__PURE__ */ L.jsxs(Mt.Provider, { value: l, children: [
4275
+ /* @__PURE__ */ L.jsx("div", { ref: a, className: De("panel-group", s === "horizontal" ? "flex-row" : "flex-col", r), style: { ...c, ...o }, "data-panel-group-id": t, "data-panel-group-direction": s, children: d ? h : i }),
4276
+ q && /* @__PURE__ */ L.jsx(en, {})
4277
4277
  ] });
4278
4278
  }, en = () => {
4279
- const t = Jr().groups, [r, o] = ze(!0);
4279
+ const t = Jr().groups, [r, o] = Se(!0);
4280
4280
  if (t.length === 0 || typeof document > "u")
4281
4281
  return null;
4282
- const i = t.reduce((c, S) => c + S.panels.length, 0), s = t.reduce((c, S) => c + (S.handles?.length ?? 0), 0), a = () => {
4282
+ const i = t.reduce((c, P) => c + P.panels.length, 0), s = t.reduce((c, P) => c + (P.handles?.length ?? 0), 0), a = () => {
4283
4283
  o((c) => !c);
4284
4284
  }, l = /* @__PURE__ */ L.jsxs(
4285
4285
  "div",
@@ -4388,8 +4388,8 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4388
4388
  overflowY: "auto",
4389
4389
  paddingRight: "6px"
4390
4390
  },
4391
- children: t.map((c, S) => {
4392
- const b = c.direction === "horizontal" ? c.containerSize.width : c.containerSize.height;
4391
+ children: t.map((c, P) => {
4392
+ const z = c.direction === "horizontal" ? c.containerSize.width : c.containerSize.height;
4393
4393
  return /* @__PURE__ */ L.jsxs(
4394
4394
  "div",
4395
4395
  {
@@ -4426,7 +4426,7 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4426
4426
  },
4427
4427
  children: [
4428
4428
  "group ",
4429
- S + 1,
4429
+ P + 1,
4430
4430
  ": ",
4431
4431
  c.displayName
4432
4432
  ]
@@ -4451,8 +4451,8 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4451
4451
  gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
4452
4452
  gap: "10px"
4453
4453
  },
4454
- children: c.panels.map((d, u) => {
4455
- const h = d.measuredPixelSize ?? d.size, w = d.size, C = Ve(w), v = d.percentageSize ?? (b > 0 ? d.size / b * 100 : void 0), p = d.measuredPercentageSize !== void 0 ? d.measuredPercentageSize : b > 0 ? h / b * 100 : void 0, m = d.collapsed || h <= _t, R = d.collapsed ? "collapsed" : m ? "hidden" : "visible", F = kt(v), V = kt(p), I = Ve(h);
4454
+ children: c.panels.map((f, d) => {
4455
+ const h = f.measuredPixelSize ?? f.size, v = f.size, w = Ve(v), C = f.percentageSize ?? (z > 0 ? f.size / z * 100 : void 0), p = f.measuredPercentageSize !== void 0 ? f.measuredPercentageSize : z > 0 ? h / z * 100 : void 0, x = f.collapsed || h <= _t, k = f.collapsed ? "collapsed" : x ? "hidden" : "visible", $ = kt(C), J = kt(p), H = Ve(h);
4456
4456
  return /* @__PURE__ */ L.jsxs(
4457
4457
  "div",
4458
4458
  {
@@ -4476,7 +4476,7 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4476
4476
  gap: "6px"
4477
4477
  },
4478
4478
  children: [
4479
- /* @__PURE__ */ L.jsx("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis" }, children: d.id }),
4479
+ /* @__PURE__ */ L.jsx("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis" }, children: f.id }),
4480
4480
  /* @__PURE__ */ L.jsx(
4481
4481
  "span",
4482
4482
  {
@@ -4485,10 +4485,10 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4485
4485
  borderRadius: "9999px",
4486
4486
  fontSize: "10px",
4487
4487
  textTransform: "uppercase",
4488
- backgroundColor: d.collapsed ? "rgba(251, 113, 133, 0.25)" : m ? "rgba(250, 204, 21, 0.25)" : "rgba(74, 222, 128, 0.25)",
4489
- color: d.collapsed ? "#fecdd3" : m ? "#fef08a" : "#bbf7d0"
4488
+ backgroundColor: f.collapsed ? "rgba(251, 113, 133, 0.25)" : x ? "rgba(250, 204, 21, 0.25)" : "rgba(74, 222, 128, 0.25)",
4489
+ color: f.collapsed ? "#fecdd3" : x ? "#fef08a" : "#bbf7d0"
4490
4490
  },
4491
- children: R
4491
+ children: k
4492
4492
  }
4493
4493
  )
4494
4494
  ]
@@ -4505,27 +4505,27 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4505
4505
  },
4506
4506
  children: [
4507
4507
  /* @__PURE__ */ L.jsx("span", { children: "size (state):" }),
4508
- /* @__PURE__ */ L.jsx("span", { children: C }),
4508
+ /* @__PURE__ */ L.jsx("span", { children: w }),
4509
4509
  /* @__PURE__ */ L.jsx("span", { children: "size (measured):" }),
4510
- /* @__PURE__ */ L.jsx("span", { children: I }),
4510
+ /* @__PURE__ */ L.jsx("span", { children: H }),
4511
4511
  /* @__PURE__ */ L.jsx("span", { children: "percentage (state):" }),
4512
- /* @__PURE__ */ L.jsx("span", { children: F }),
4512
+ /* @__PURE__ */ L.jsx("span", { children: $ }),
4513
4513
  /* @__PURE__ */ L.jsx("span", { children: "percentage (measured):" }),
4514
- /* @__PURE__ */ L.jsx("span", { children: V }),
4514
+ /* @__PURE__ */ L.jsx("span", { children: J }),
4515
4515
  /* @__PURE__ */ L.jsx("span", { children: "unit:" }),
4516
- /* @__PURE__ */ L.jsx("span", { children: d.sizeUnit }),
4516
+ /* @__PURE__ */ L.jsx("span", { children: f.sizeUnit }),
4517
4517
  /* @__PURE__ */ L.jsx("span", { children: "min:" }),
4518
- /* @__PURE__ */ L.jsx("span", { children: d.minSize !== void 0 ? JSON.stringify(d.minSize) : "—" }),
4518
+ /* @__PURE__ */ L.jsx("span", { children: f.minSize !== void 0 ? JSON.stringify(f.minSize) : "—" }),
4519
4519
  /* @__PURE__ */ L.jsx("span", { children: "max:" }),
4520
- /* @__PURE__ */ L.jsx("span", { children: d.maxSize !== void 0 ? JSON.stringify(d.maxSize) : "—" }),
4520
+ /* @__PURE__ */ L.jsx("span", { children: f.maxSize !== void 0 ? JSON.stringify(f.maxSize) : "—" }),
4521
4521
  /* @__PURE__ */ L.jsx("span", { children: "priority:" }),
4522
- /* @__PURE__ */ L.jsx("span", { children: d.pixelAdjustPriority ?? "—" })
4522
+ /* @__PURE__ */ L.jsx("span", { children: f.pixelAdjustPriority ?? "—" })
4523
4523
  ]
4524
4524
  }
4525
4525
  )
4526
4526
  ]
4527
4527
  },
4528
- d.id || u
4528
+ f.id || d
4529
4529
  );
4530
4530
  })
4531
4531
  }
@@ -4542,264 +4542,264 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
4542
4542
  );
4543
4543
  return Jt(l, document.body);
4544
4544
  }, an = nt(({ id: e, disabled: t = !1, className: r, style: o, children: i, onDragging: s }) => {
4545
- const { direction: a, resizePanels: l, getPanel: c, collapsePanel: S, expandPanel: b, panels: d, reportHandleMeasurement: u, containerSize: h } = it(), [w, C] = ze(!1), v = pe(null), p = pe(null), m = pe(""), R = pe(""), [F, V] = ze({ left: null, right: null }), I = pe(e ?? nr()), ee = pe(null), M = e ?? I.current;
4546
- ue(() => {
4547
- if (v.current) {
4548
- const P = v.current.parentElement;
4549
- if (P) {
4550
- p.current = P;
4551
- const x = Array.from(P.children), g = v.current, y = x.indexOf(g);
4552
- if (y > 0 && y < x.length - 1) {
4553
- let B = null, j = null;
4554
- for (let G = y - 1; G >= 0; G -= 1) {
4555
- const re = x[G];
4556
- if (re.dataset.panelId) {
4557
- B = re;
4545
+ const { direction: a, resizePanels: l, getPanel: c, collapsePanel: P, expandPanel: z, panels: f, reportHandleMeasurement: d, containerSize: h } = it(), [v, w] = Se(!1), C = me(null), p = me(null), x = me(""), k = me(""), [$, J] = Se({ left: null, right: null }), H = me(e ?? nr()), O = me(null), E = e ?? H.current;
4546
+ fe(() => {
4547
+ if (C.current) {
4548
+ const m = C.current.parentElement;
4549
+ if (m) {
4550
+ p.current = m;
4551
+ const b = Array.from(m.children), B = C.current, g = b.indexOf(B);
4552
+ if (g > 0 && g < b.length - 1) {
4553
+ let I = null, j = null;
4554
+ for (let G = g - 1; G >= 0; G -= 1) {
4555
+ const Q = b[G];
4556
+ if (Q.dataset.panelId) {
4557
+ I = Q;
4558
4558
  break;
4559
4559
  }
4560
4560
  }
4561
- for (let G = y + 1; G < x.length; G += 1) {
4562
- const re = x[G];
4563
- if (re.dataset.panelId) {
4564
- j = re;
4561
+ for (let G = g + 1; G < b.length; G += 1) {
4562
+ const Q = b[G];
4563
+ if (Q.dataset.panelId) {
4564
+ j = Q;
4565
4565
  break;
4566
4566
  }
4567
4567
  }
4568
- m.current = B?.dataset.panelId || "", R.current = j?.dataset.panelId || "", V({
4569
- left: m.current || null,
4570
- right: R.current || null
4568
+ x.current = I?.dataset.panelId || "", k.current = j?.dataset.panelId || "", J({
4569
+ left: x.current || null,
4570
+ right: k.current || null
4571
4571
  });
4572
4572
  }
4573
4573
  }
4574
4574
  }
4575
- }, []), ue(() => {
4576
- if (M === I.current)
4575
+ }, []), fe(() => {
4576
+ if (E === H.current)
4577
4577
  return;
4578
- const P = I.current;
4579
- I.current = M, ee.current = null, P !== M && u(P, null);
4580
- }, [u, M]), ue(() => {
4581
- const P = I.current;
4578
+ const m = H.current;
4579
+ H.current = E, O.current = null, m !== E && d(m, null);
4580
+ }, [d, E]), fe(() => {
4581
+ const m = H.current;
4582
4582
  return () => {
4583
- u(P, null);
4583
+ d(m, null);
4584
4584
  };
4585
- }, [u]);
4586
- const $ = fe(
4587
- (P) => {
4585
+ }, [d]);
4586
+ const q = pe(
4587
+ (m) => {
4588
4588
  if (t || !p.current) return;
4589
- P.preventDefault(), P.stopPropagation();
4590
- const x = p.current, { inner: g } = we(x, a), y = { x: P.clientX, y: P.clientY }, B = c(m.current), j = c(R.current);
4591
- if (!(B && j)) return;
4592
- const G = B.size, re = j.size;
4593
- let K = 0;
4594
- const Q = Qt;
4595
- C(!0), s?.(!0), P.currentTarget.setPointerCapture(P.pointerId);
4596
- const se = (q) => {
4597
- if (!v.current) return;
4598
- q.preventDefault(), q.stopPropagation();
4599
- const ae = performance.now();
4600
- if (ae - K < Q) return;
4601
- K = ae;
4602
- const ie = a === "horizontal" ? q.clientX - y.x : q.clientY - y.y;
4603
- if (ie === 0)
4589
+ m.preventDefault(), m.stopPropagation();
4590
+ const b = p.current, { inner: B } = we(b, a), g = { x: m.clientX, y: m.clientY }, I = c(x.current), j = c(k.current);
4591
+ if (!(I && j)) return;
4592
+ const G = I.size, Q = j.size;
4593
+ let ie = 0;
4594
+ const Z = Qt;
4595
+ w(!0), s?.(!0), m.currentTarget.setPointerCapture(m.pointerId);
4596
+ const re = (U) => {
4597
+ if (!C.current) return;
4598
+ U.preventDefault(), U.stopPropagation();
4599
+ const le = performance.now();
4600
+ if (le - ie < Z) return;
4601
+ ie = le;
4602
+ const oe = a === "horizontal" ? U.clientX - g.x : U.clientY - g.y;
4603
+ if (oe === 0)
4604
4604
  return;
4605
- const ce = G + ie, be = re - ie, xe = c(m.current), ge = c(R.current);
4606
- if (xe && ge && m.current && R.current) {
4607
- const Se = oe(xe.minSize, 0, g), Ee = oe(ge.minSize, 0, g), Pe = Se, Ce = Ee, at = Math.min(g * It, At), lt = Math.min(g * Kt, er);
4608
- if (ge.collapsible && !ge.collapsed && be <= Math.max(Ee * 0.3, at)) {
4609
- S(R.current);
4605
+ const ae = G + oe, ze = Q - oe, xe = c(x.current), de = c(k.current);
4606
+ if (xe && de && x.current && k.current) {
4607
+ const Re = se(xe.minSize, 0, B), be = se(de.minSize, 0, B), Pe = Re, Ce = be, at = Math.min(B * It, At), lt = Math.min(B * Kt, er);
4608
+ if (de.collapsible && !de.collapsed && ze <= Math.max(be * 0.3, at)) {
4609
+ P(k.current);
4610
4610
  return;
4611
4611
  }
4612
- if (xe.collapsible && !xe.collapsed && ce <= Math.max(Se * 0.3, at)) {
4613
- S(m.current);
4612
+ if (xe.collapsible && !xe.collapsed && ae <= Math.max(Re * 0.3, at)) {
4613
+ P(x.current);
4614
4614
  return;
4615
4615
  }
4616
- if (ge.collapsed && be > Math.max(Ee * 0.3, lt)) {
4617
- b(R.current, be);
4616
+ if (de.collapsed && ze > Math.max(be * 0.3, lt)) {
4617
+ z(k.current, ze);
4618
4618
  return;
4619
4619
  }
4620
- if (xe.collapsed && ce > Math.max(Se * 0.3, lt)) {
4621
- b(m.current, ce);
4620
+ if (xe.collapsed && ae > Math.max(Re * 0.3, lt)) {
4621
+ z(x.current, ae);
4622
4622
  return;
4623
4623
  }
4624
- if (g > 0) {
4625
- const ct = xe.size + ge.size, Ge = Ke(g);
4624
+ if (B > 0) {
4625
+ const ct = xe.size + de.size, Ge = Ke(B);
4626
4626
  let qe = !1;
4627
- if (Pe <= Ge && ce <= Ge && G !== 0) {
4627
+ if (Pe <= Ge && ae <= Ge && G !== 0) {
4628
4628
  const Ne = Math.max(0, ct - 0);
4629
- Ne >= Ce && (l(m.current, R.current, 0, Ne), qe = !0);
4630
- } else if (Ce <= Ge && be <= Ge && re !== 0) {
4629
+ Ne >= Ce && (l(x.current, k.current, 0, Ne), qe = !0);
4630
+ } else if (Ce <= Ge && ze <= Ge && Q !== 0) {
4631
4631
  const Ne = Math.max(0, ct - 0);
4632
- Ne >= Pe && (l(m.current, R.current, Ne, 0), qe = !0);
4632
+ Ne >= Pe && (l(x.current, k.current, Ne, 0), qe = !0);
4633
4633
  }
4634
4634
  if (qe)
4635
4635
  return;
4636
4636
  }
4637
- if (xe.collapsed || ge.collapsed)
4637
+ if (xe.collapsed || de.collapsed)
4638
4638
  return;
4639
- l(m.current, R.current, ce, be);
4639
+ l(x.current, k.current, ae, ze);
4640
4640
  }
4641
- }, f = () => {
4642
- C(!1), s?.(!1), document.removeEventListener("pointermove", se), document.removeEventListener("pointerup", f);
4641
+ }, u = () => {
4642
+ w(!1), s?.(!1), document.removeEventListener("pointermove", re), document.removeEventListener("pointerup", u);
4643
4643
  };
4644
- document.addEventListener("pointermove", se), document.addEventListener("pointerup", f);
4644
+ document.addEventListener("pointermove", re), document.addEventListener("pointerup", u);
4645
4645
  },
4646
- [t, a, l, c, S, b, s]
4647
- ), W = a === "horizontal", te = De(
4646
+ [t, a, l, c, P, z, s]
4647
+ ), F = a === "horizontal", te = De(
4648
4648
  "group absolute z-20 flex select-none items-center justify-center border-none bg-transparent transition-colors duration-150 overflow-visible",
4649
- W ? "cursor-col-resize" : "cursor-row-resize",
4650
- W ? "h-full" : "w-full",
4649
+ F ? "cursor-col-resize" : "cursor-row-resize",
4650
+ F ? "h-full" : "w-full",
4651
4651
  !t && "hover:bg-gray-200/70 dark:hover:bg-gray-700/70",
4652
4652
  !t && "active:bg-blue-300/60 dark:active:bg-blue-700/60",
4653
- w && "bg-blue-200/80 dark:bg-blue-800/60",
4653
+ v && "bg-blue-200/80 dark:bg-blue-800/60",
4654
4654
  t && "cursor-not-allowed opacity-50",
4655
4655
  "focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50",
4656
4656
  r
4657
- ), Y = de(() => {
4658
- const P = (x) => {
4659
- if (!x)
4657
+ ), V = ue(() => {
4658
+ const m = (b) => {
4659
+ if (!b)
4660
4660
  return -1;
4661
- for (let g = 0; g < d.length; g += 1)
4662
- if (d[g].id === x)
4663
- return g;
4661
+ for (let B = 0; B < f.length; B += 1)
4662
+ if (f[B].id === b)
4663
+ return B;
4664
4664
  return -1;
4665
4665
  };
4666
4666
  return {
4667
- left: P(F.left),
4668
- right: P(F.right)
4667
+ left: m($.left),
4668
+ right: m($.right)
4669
4669
  };
4670
- }, [F.left, F.right, d]), Z = W ? h.width : h.height, H = de(() => {
4671
- const P = (x, g) => {
4672
- if (x > g)
4670
+ }, [$.left, $.right, f]), K = F ? h.width : h.height, W = ue(() => {
4671
+ const m = (b, B) => {
4672
+ if (b > B)
4673
4673
  return 0;
4674
- let y = 0;
4675
- for (let B = x; B <= g; B += 1) {
4676
- const j = d[B];
4674
+ let g = 0;
4675
+ for (let I = b; I <= B; I += 1) {
4676
+ const j = f[I];
4677
4677
  if (!j)
4678
4678
  continue;
4679
- const G = j.size ?? 0, re = Math.max(0, G);
4680
- y += j.collapsed ? 0 : re;
4679
+ const G = j.size ?? 0, Q = Math.max(0, G);
4680
+ g += j.collapsed ? 0 : Q;
4681
4681
  }
4682
- return y;
4682
+ return g;
4683
4683
  };
4684
- return Y.left >= 0 ? P(0, Y.left) : Y.right > 0 ? P(0, Y.right - 1) : 0;
4685
- }, [Y.left, Y.right, d]), A = de(() => !Number.isFinite(H) || H < 0 ? 0 : Z > 0 && H > Z ? Z : H, [H, Z]), D = de(() => {
4686
- const P = {
4684
+ return V.left >= 0 ? m(0, V.left) : V.right > 0 ? m(0, V.right - 1) : 0;
4685
+ }, [V.left, V.right, f]), _ = ue(() => !Number.isFinite(W) || W < 0 ? 0 : K > 0 && W > K ? K : W, [W, K]), D = ue(() => {
4686
+ const m = {
4687
4687
  position: "absolute",
4688
4688
  zIndex: 20,
4689
4689
  touchAction: "none"
4690
4690
  };
4691
- return W ? (P.top = 0, P.left = `${A}px`, P.transform = "translateX(-50%)", P.width = `${dt}px`, P.height = "100%") : (P.left = 0, P.top = `${A}px`, P.transform = "translateY(-50%)", P.height = `${dt}px`, P.width = "100%"), P;
4692
- }, [A, W]), k = de(() => {
4693
- const P = Ke(Z), x = (Q) => {
4694
- if (Q < 0 || Q >= d.length)
4691
+ return F ? (m.top = 0, m.left = `${_}px`, m.transform = "translateX(-50%)", m.width = `${dt}px`, m.height = "100%") : (m.left = 0, m.top = `${_}px`, m.transform = "translateY(-50%)", m.height = `${dt}px`, m.width = "100%"), m;
4692
+ }, [_, F]), y = ue(() => {
4693
+ const m = Ke(K), b = (Z) => {
4694
+ if (Z < 0 || Z >= f.length)
4695
4695
  return !1;
4696
- const se = d[Q];
4697
- return se ? se.collapsed ? !0 : se.size <= P : !1;
4698
- }, g = (Q, se) => {
4699
- if (!x(Q))
4696
+ const re = f[Z];
4697
+ return re ? re.collapsed ? !0 : re.size <= m : !1;
4698
+ }, B = (Z, re) => {
4699
+ if (!b(Z))
4700
4700
  return 0;
4701
- let f = 0;
4702
- for (let q = Q; q >= 0 && q < d.length && x(q); q += se)
4703
- f += 1;
4704
- return f;
4705
- }, y = Y.left, B = Y.right, j = y >= 0 ? g(y, -1) : 0, G = B >= 0 ? g(B, 1) : 0;
4701
+ let u = 0;
4702
+ for (let U = Z; U >= 0 && U < f.length && b(U); U += re)
4703
+ u += 1;
4704
+ return u;
4705
+ }, g = V.left, I = V.right, j = g >= 0 ? B(g, -1) : 0, G = I >= 0 ? B(I, 1) : 0;
4706
4706
  return {
4707
4707
  groupSize: j + G + 1,
4708
4708
  overlapIndex: j
4709
4709
  };
4710
- }, [Y.left, Y.right, d, Z]), ne = de(() => {
4711
- if (k.groupSize <= 1)
4710
+ }, [V.left, V.right, f, K]), ne = ue(() => {
4711
+ if (y.groupSize <= 1)
4712
4712
  return !1;
4713
- const P = k.groupSize - 1;
4714
- return k.overlapIndex > 0 && k.overlapIndex < P;
4715
- }, [k]), _ = de(() => {
4716
- if (k.groupSize <= 1 || ne)
4713
+ const m = y.groupSize - 1;
4714
+ return y.overlapIndex > 0 && y.overlapIndex < m;
4715
+ }, [y]), M = ue(() => {
4716
+ if (y.groupSize <= 1 || ne)
4717
4717
  return 0;
4718
- const P = k.groupSize > 1 ? 2 : 1;
4719
- if (P === 1)
4718
+ const m = y.groupSize > 1 ? 2 : 1;
4719
+ if (m === 1)
4720
4720
  return 0;
4721
- const x = k.overlapIndex === 0 ? 0 : P - 1, g = (P - 1) / 2;
4722
- return (x - g) * Zt;
4723
- }, [k, ne]), n = de(() => {
4721
+ const b = y.overlapIndex === 0 ? 0 : m - 1, B = (m - 1) / 2;
4722
+ return (b - B) * Zt;
4723
+ }, [y, ne]), n = ue(() => {
4724
4724
  if (ne)
4725
4725
  return { display: "none" };
4726
- if (_ !== 0)
4727
- return W ? { transform: `translateX(${_}px)` } : { transform: `translateY(${_}px)` };
4728
- }, [_, W, ne]), z = De(
4726
+ if (M !== 0)
4727
+ return F ? { transform: `translateX(${M}px)` } : { transform: `translateY(${M}px)` };
4728
+ }, [M, F, ne]), S = De(
4729
4729
  "flex items-center justify-center rounded-full bg-white text-slate-700 ring-1 ring-inset ring-white/80 backdrop-blur-sm transition-colors duration-150 shadow-[0_0_0_1px_rgba(255,255,255,0.85),0_1px_3px_rgba(15,23,42,0.18)]",
4730
4730
  "dark:bg-slate-800/95 dark:text-slate-200 dark:ring-slate-500/60 dark:shadow-[0_0_0_1px_rgba(148,163,184,0.45),0_1px_3px_rgba(2,6,23,0.55)]",
4731
- W ? "h-12 w-[6px] px-[2px]" : "h-[6px] w-20 py-[2px]",
4732
- w && "bg-blue-200/80 ring-blue-300 shadow-[0_0_0_1px_rgba(191,219,254,0.65),0_1px_4px_rgba(59,130,246,0.45)] dark:bg-blue-900/70 dark:ring-blue-400 dark:shadow-[0_0_0_1px_rgba(147,197,253,0.5),0_1px_4px_rgba(59,130,246,0.55)]"
4733
- ), E = De(
4731
+ F ? "h-12 w-[6px] px-[2px]" : "h-[6px] w-20 py-[2px]",
4732
+ v && "bg-blue-200/80 ring-blue-300 shadow-[0_0_0_1px_rgba(191,219,254,0.65),0_1px_4px_rgba(59,130,246,0.45)] dark:bg-blue-900/70 dark:ring-blue-400 dark:shadow-[0_0_0_1px_rgba(147,197,253,0.5),0_1px_4px_rgba(59,130,246,0.55)]"
4733
+ ), R = De(
4734
4734
  "rounded-full bg-slate-600 transition-colors duration-150 shadow-[0_0_0_1px_rgba(255,255,255,0.9)] dark:bg-slate-200 dark:shadow-[0_0_0_1px_rgba(15,23,42,0.55)]",
4735
- W ? "h-8 w-[2px]" : "h-[2px] w-16",
4736
- w && "bg-blue-500 dark:bg-blue-300",
4735
+ F ? "h-8 w-[2px]" : "h-[2px] w-16",
4736
+ v && "bg-blue-500 dark:bg-blue-300",
4737
4737
  !t && "group-hover:bg-slate-700 dark:group-hover:bg-slate-100"
4738
- ), N = fe(() => {
4739
- const P = v.current;
4740
- if (!P)
4738
+ ), A = pe(() => {
4739
+ const m = C.current;
4740
+ if (!m)
4741
4741
  return;
4742
- let x = 0;
4742
+ let b = 0;
4743
4743
  if (!ne) {
4744
- const B = a === "horizontal" ? P.offsetWidth : P.offsetHeight;
4744
+ const I = a === "horizontal" ? m.offsetWidth : m.offsetHeight;
4745
4745
  let j = 0, G = 0;
4746
4746
  if (typeof window < "u") {
4747
- const K = window.getComputedStyle(P);
4748
- a === "horizontal" ? (j = Number.parseFloat(K.marginLeft || "0"), G = Number.parseFloat(K.marginRight || "0")) : (j = Number.parseFloat(K.marginTop || "0"), G = Number.parseFloat(K.marginBottom || "0"));
4747
+ const ie = window.getComputedStyle(m);
4748
+ a === "horizontal" ? (j = Number.parseFloat(ie.marginLeft || "0"), G = Number.parseFloat(ie.marginRight || "0")) : (j = Number.parseFloat(ie.marginTop || "0"), G = Number.parseFloat(ie.marginBottom || "0"));
4749
4749
  }
4750
- x = [B, j, G].reduce((K, Q) => Number.isFinite(Q) ? K + Q : K, 0);
4750
+ b = [I, j, G].reduce((ie, Z) => Number.isFinite(Z) ? ie + Z : ie, 0);
4751
4751
  }
4752
- (!Number.isFinite(x) || x < 0) && (x = 0);
4753
- const g = {
4754
- id: M,
4755
- thickness: x,
4752
+ (!Number.isFinite(b) || b < 0) && (b = 0);
4753
+ const B = {
4754
+ id: E,
4755
+ thickness: b,
4756
4756
  direction: a,
4757
- visible: !ne && x > tr,
4758
- startPanelId: F.left,
4759
- endPanelId: F.right
4760
- }, y = ee.current;
4761
- y && Math.abs(y.thickness - g.thickness) <= 0.25 && y.visible === g.visible && y.direction === g.direction && y.startPanelId === g.startPanelId && y.endPanelId === g.endPanelId || (ee.current = g, u(M, g));
4762
- }, [a, F.left, F.right, u, M, ne]);
4763
- ue(() => {
4764
- N();
4765
- }, [N]), ue(() => {
4766
- const P = v.current;
4767
- if (!P)
4757
+ visible: !ne && b > tr,
4758
+ startPanelId: $.left,
4759
+ endPanelId: $.right
4760
+ }, g = O.current;
4761
+ g && Math.abs(g.thickness - B.thickness) <= 0.25 && g.visible === B.visible && g.direction === B.direction && g.startPanelId === B.startPanelId && g.endPanelId === B.endPanelId || (O.current = B, d(E, B));
4762
+ }, [a, $.left, $.right, d, E, ne]);
4763
+ fe(() => {
4764
+ A();
4765
+ }, [A]), fe(() => {
4766
+ const m = C.current;
4767
+ if (!m)
4768
4768
  return;
4769
4769
  if (typeof ResizeObserver > "u") {
4770
- N();
4770
+ A();
4771
4771
  return;
4772
4772
  }
4773
- const x = new ResizeObserver(() => {
4774
- N();
4773
+ const b = new ResizeObserver(() => {
4774
+ A();
4775
4775
  });
4776
- return x.observe(P), () => {
4777
- x.disconnect();
4776
+ return b.observe(m), () => {
4777
+ b.disconnect();
4778
4778
  };
4779
- }, [N]);
4780
- const U = de(() => {
4781
- const P = o ? { ...D, ...o } : D;
4779
+ }, [A]);
4780
+ const ee = ue(() => {
4781
+ const m = o ? { ...D, ...o } : D;
4782
4782
  return ne ? {
4783
- ...P,
4783
+ ...m,
4784
4784
  display: "none",
4785
4785
  pointerEvents: "none",
4786
4786
  visibility: "hidden"
4787
- } : P;
4787
+ } : m;
4788
4788
  }, [D, ne, o]);
4789
4789
  return /* @__PURE__ */ L.jsx(
4790
4790
  "button",
4791
4791
  {
4792
4792
  type: "button",
4793
- ref: v,
4793
+ ref: C,
4794
4794
  className: te,
4795
- style: U,
4796
- onPointerDown: $,
4795
+ style: ee,
4796
+ onPointerDown: q,
4797
4797
  disabled: t,
4798
4798
  "aria-hidden": ne || void 0,
4799
- "aria-label": `Resize ${W ? "columns" : "rows"} - Drag to collapse/expand panels`,
4800
- "data-resize-handle-id": M,
4801
- title: `ドラッグして${W ? "列" : "行"}をリサイズ、端まで移動して折りたたみ/展開`,
4802
- children: i || /* @__PURE__ */ L.jsx("div", { className: z, style: n, children: /* @__PURE__ */ L.jsx("span", { className: E }) })
4799
+ "aria-label": `Resize ${F ? "columns" : "rows"} - Drag to collapse/expand panels`,
4800
+ "data-resize-handle-id": E,
4801
+ title: `ドラッグして${F ? "列" : "行"}をリサイズ、端まで移動して折りたたみ/展開`,
4802
+ children: i || /* @__PURE__ */ L.jsx("div", { className: S, style: n, children: /* @__PURE__ */ L.jsx("span", { className: R }) })
4803
4803
  }
4804
4804
  );
4805
4805
  }), ln = (e) => document.querySelector(`[data-panel-id="${e}"]`), cn = (e) => document.querySelector(`[data-panel-group-id="${e}"]`), dn = (e) => document.querySelector(`[data-resize-handle-id="${e}"]`);
@@ -4810,7 +4810,7 @@ export {
4810
4810
  an as PanelResizeHandle,
4811
4811
  he as clamp,
4812
4812
  rr as generatePanelId,
4813
- oe as getConstraintInPixels,
4813
+ se as getConstraintInPixels,
4814
4814
  we as getContainerSize,
4815
4815
  ln as getPanelElement,
4816
4816
  cn as getPanelGroupElement,