@aminnausin/cedar-ui 0.0.12 → 0.0.14

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/cedar-ui.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  var Xe = Object.defineProperty;
2
2
  var Ze = (e, t, o) => t in e ? Xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var E = (e, t, o) => Ze(e, typeof t != "symbol" ? t + "" : t, o);
4
- import { ref as y, computed as ue, onMounted as Qe, watch as J, nextTick as et, reactive as se, onBeforeUnmount as tt, shallowRef as ge, readonly as Pe } from "vue";
4
+ import { ref as y, computed as oe, onMounted as Qe, watch as J, nextTick as et, reactive as ue, onBeforeUnmount as tt, shallowRef as ge, readonly as De } from "vue";
5
5
  function Xt(e, t, o) {
6
6
  var ee;
7
- const r = y(!1), s = y(((ee = e.model) == null ? void 0 : ee.value) ?? e.defaultDate ?? ""), n = y("F d, Y"), a = y(0), i = y(0), l = y(0), f = y([]), p = y([]), g = y("bottom"), M = [
7
+ const s = y(!1), r = y(((ee = e.model) == null ? void 0 : ee.value) ?? e.defaultDate ?? ""), n = y("F d, Y"), a = y(0), i = y(0), l = y(0), f = y([]), p = y([]), g = y("bottom"), M = [
8
8
  "January",
9
9
  "February",
10
10
  "March",
@@ -17,24 +17,24 @@ function Xt(e, t, o) {
17
17
  "October",
18
18
  "November",
19
19
  "December"
20
- ], F = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = y("D"), A = ue(() => {
20
+ ], F = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = y("D"), A = oe(() => {
21
21
  let h = Math.max(a.value, 0);
22
22
  return h >= M.length && (h = 0), M[h];
23
- }), N = ue(() => {
23
+ }), N = oe(() => {
24
24
  const h = Math.floor(i.value / 10) * 10;
25
25
  return Array.from({ length: 10 }, (I, x) => h + x);
26
26
  });
27
27
  function z(h) {
28
- r.value = h ?? !r.value, k.value = "D";
28
+ s.value = h ?? !s.value, k.value = "D";
29
29
  }
30
30
  function G(h = "D") {
31
31
  k.value = h;
32
32
  }
33
33
  function L(h) {
34
- const I = F[h.getDay()], x = ("0" + h.getDate()).slice(-2), P = M[h.getMonth()], m = P.substring(0, 3), U = ("0" + (h.getMonth() + 1)).slice(-2), R = h.getFullYear();
34
+ const I = F[h.getDay()], x = ("0" + h.getDate()).slice(-2), D = M[h.getMonth()], m = D.substring(0, 3), U = ("0" + (h.getMonth() + 1)).slice(-2), R = h.getFullYear();
35
35
  switch (n.value) {
36
36
  case "F d, Y":
37
- return `${P} ${x}, ${R}`;
37
+ return `${D} ${x}, ${R}`;
38
38
  case "d M, Y":
39
39
  return `${x} ${m}, ${R}`;
40
40
  case "Y M d":
@@ -48,7 +48,7 @@ function Xt(e, t, o) {
48
48
  case "D d M, Y":
49
49
  return `${I} ${x} ${m} ${R}`;
50
50
  default:
51
- return `${P} ${x}, ${R}`;
51
+ return `${D} ${x}, ${R}`;
52
52
  }
53
53
  }
54
54
  function _(h) {
@@ -60,7 +60,7 @@ function Xt(e, t, o) {
60
60
  a.value = h, k.value = "D", v();
61
61
  break;
62
62
  default:
63
- l.value = h, s.value = L(new Date(i.value, a.value, h)), r.value = !1, e.model && (e.model.value = s.value);
63
+ l.value = h, r.value = L(new Date(i.value, a.value, h)), s.value = !1, e.model && (e.model.value = r.value);
64
64
  break;
65
65
  }
66
66
  }
@@ -92,7 +92,7 @@ function Xt(e, t, o) {
92
92
  }
93
93
  function w(h) {
94
94
  const I = new Date(i.value, a.value, h);
95
- return s.value === L(I);
95
+ return r.value === L(I);
96
96
  }
97
97
  function c(h) {
98
98
  const I = /* @__PURE__ */ new Date(), x = new Date(i.value, a.value, h);
@@ -100,24 +100,24 @@ function Xt(e, t, o) {
100
100
  }
101
101
  function v() {
102
102
  const h = new Date(i.value, a.value + 1, 0).getDate(), I = new Date(i.value, a.value).getDay();
103
- p.value = Array.from({ length: I }, (x, P) => P + 1), f.value = Array.from({ length: h }, (x, P) => P + 1);
103
+ p.value = Array.from({ length: I }, (x, D) => D + 1), f.value = Array.from({ length: h }, (x, D) => D + 1);
104
104
  }
105
105
  function O() {
106
- if (!t.value || !o.value || !r.value) return;
106
+ if (!t.value || !o.value || !s.value) return;
107
107
  const h = t.value.getBoundingClientRect(), I = o.value.offsetHeight, x = h.top + h.height + I;
108
108
  g.value = x > window.innerHeight ? "top" : "bottom";
109
109
  }
110
110
  function Q(h, I = !0) {
111
- a.value = h.getMonth(), i.value = h.getFullYear(), l.value = h.getDate(), I && (s.value = L(h)), v();
111
+ a.value = h.getMonth(), i.value = h.getFullYear(), l.value = h.getDate(), I && (r.value = L(h)), v();
112
112
  }
113
113
  function j() {
114
- if (s.value)
115
- return Q(new Date(Date.parse(s.value)));
114
+ if (r.value)
115
+ return Q(new Date(Date.parse(r.value)));
116
116
  Q(/* @__PURE__ */ new Date(), e.useDefaultDate);
117
117
  }
118
118
  return Qe(() => {
119
119
  j();
120
- }), J(r, async (h) => {
120
+ }), J(s, async (h) => {
121
121
  if (!h) {
122
122
  window.removeEventListener("resize", O);
123
123
  return;
@@ -126,8 +126,8 @@ function Xt(e, t, o) {
126
126
  }), {
127
127
  datePickerInput: t,
128
128
  datePickerCalendar: o,
129
- datePickerOpen: r,
130
- datePickerValue: s,
129
+ datePickerOpen: s,
130
+ datePickerValue: r,
131
131
  datePickerPanel: k,
132
132
  datePickerFormat: n,
133
133
  datePickerMonth: a,
@@ -150,7 +150,7 @@ function Xt(e, t, o) {
150
150
  };
151
151
  }
152
152
  function Zt({ options: e, defaultItems: t }, o) {
153
- const r = se({
153
+ const s = ue({
154
154
  selectOpen: !1,
155
155
  selectedItems: t,
156
156
  selectableItems: e,
@@ -201,23 +201,23 @@ function Zt({ options: e, defaultItems: t }, o) {
201
201
  setOptions(n) {
202
202
  Array.isArray(n) && (this.selectableItems = n);
203
203
  }
204
- }), s = () => {
205
- r.selectOpen && r.selectPositionUpdate();
204
+ }), r = () => {
205
+ s.selectOpen && s.selectPositionUpdate();
206
206
  };
207
207
  return J(
208
- () => r.selectOpen,
208
+ () => s.selectOpen,
209
209
  function(n) {
210
- if (r.selectedItems ? r.selectableItemActive = r.selectedItem : r.selectableItemActive = r.selectableItems[0], !n) {
211
- window.removeEventListener("resize", s);
210
+ if (s.selectedItems ? s.selectableItemActive = s.selectedItem : s.selectableItemActive = s.selectableItems[0], !n) {
211
+ window.removeEventListener("resize", r);
212
212
  return;
213
213
  }
214
- s(), window.addEventListener("resize", s);
214
+ r(), window.addEventListener("resize", r);
215
215
  },
216
216
  { immediate: !1 }
217
- ), r;
217
+ ), s;
218
218
  }
219
219
  function Qt(e, t) {
220
- const o = se({
220
+ const o = ue({
221
221
  selectOpen: !1,
222
222
  selectedItem: "",
223
223
  selectableItems: e,
@@ -229,31 +229,31 @@ function Qt(e, t) {
229
229
  selectDropdownPosition: "bottom",
230
230
  selectableItemsList: t.selectableItemsList,
231
231
  selectButton: t.selectButton,
232
- toggleSelect(s) {
233
- s !== void 0 ? this.selectOpen = s === !0 : this.selectOpen = !this.selectOpen;
232
+ toggleSelect(r) {
233
+ r !== void 0 ? this.selectOpen = r === !0 : this.selectOpen = !this.selectOpen;
234
234
  },
235
- updateRefs(s) {
236
- this.selectButton = s.selectButton, this.selectableItemsList = s.selectableItemsList;
235
+ updateRefs(r) {
236
+ this.selectButton = r.selectButton, this.selectableItemsList = r.selectableItemsList;
237
237
  },
238
- selectableItemIsActive(s) {
239
- return this.selectableItemActive && this.selectableItemActive.value == s.value;
238
+ selectableItemIsActive(r) {
239
+ return this.selectableItemActive && this.selectableItemActive.value == r.value;
240
240
  },
241
241
  selectableItemActiveNext() {
242
- let s = this.selectableItems.indexOf(this.selectableItemActive);
243
- s < this.selectableItems.length - 1 && (this.selectableItemActive = this.selectableItems[s + 1], this.selectScrollToActiveItem());
242
+ let r = this.selectableItems.indexOf(this.selectableItemActive);
243
+ r < this.selectableItems.length - 1 && (this.selectableItemActive = this.selectableItems[r + 1], this.selectScrollToActiveItem());
244
244
  },
245
245
  selectableItemActivePrevious() {
246
- let s = this.selectableItems.indexOf(this.selectableItemActive);
247
- s > 0 && (this.selectableItemActive = this.selectableItems[s - 1], this.selectScrollToActiveItem());
246
+ let r = this.selectableItems.indexOf(this.selectableItemActive);
247
+ r > 0 && (this.selectableItemActive = this.selectableItems[r - 1], this.selectScrollToActiveItem());
248
248
  },
249
249
  selectScrollToActiveItem() {
250
250
  if (!this.selectableItemActive) return;
251
- let s = document.getElementById(this.selectableItemActive.value + "-" + this.selectId);
252
- s && s.focus();
251
+ let r = document.getElementById(this.selectableItemActive.value + "-" + this.selectId);
252
+ r && r.focus();
253
253
  },
254
- selectKeydown(s) {
255
- if (s.keyCode >= 65 && s.keyCode <= 90) {
256
- this.selectKeydownValue += s.key;
254
+ selectKeydown(r) {
255
+ if (r.keyCode >= 65 && r.keyCode <= 90) {
256
+ this.selectKeydownValue += r.key;
257
257
  let n = this.selectItemsFindBestMatch();
258
258
  n && (this.selectOpen ? (this.selectableItemActive = n, this.selectScrollToActiveItem()) : this.selectedItem = this.selectableItemActive === n), this.selectKeydownValue != "" && (clearTimeout(this.selectKeydownClearTimeout), this.selectKeydownClearTimeout = window.setTimeout(() => {
259
259
  this.selectKeydownValue = "";
@@ -261,9 +261,9 @@ function Qt(e, t) {
261
261
  }
262
262
  },
263
263
  selectItemsFindBestMatch() {
264
- let s = this.selectKeydownValue.toLowerCase(), n = null, a = -1;
264
+ let r = this.selectKeydownValue.toLowerCase(), n = null, a = -1;
265
265
  for (const i of this.selectableItems) {
266
- let f = i.title.toLowerCase().indexOf(s);
266
+ let f = i.title.toLowerCase().indexOf(r);
267
267
  f > -1 && (a == -1 || f < a) && !i.disabled && (n = i, a = f);
268
268
  }
269
269
  return n;
@@ -271,49 +271,54 @@ function Qt(e, t) {
271
271
  selectPositionUpdate() {
272
272
  var n;
273
273
  if (!this.selectableItemsList || !this.selectButton) return;
274
- let s = ((n = this.selectButton) == null ? void 0 : n.getBoundingClientRect().top) + this.selectButton.offsetHeight + parseInt(window.getComputedStyle(this.selectableItemsList).maxHeight);
275
- window.innerHeight < s ? this.selectDropdownPosition = "top" : this.selectDropdownPosition = "bottom";
274
+ let r = ((n = this.selectButton) == null ? void 0 : n.getBoundingClientRect().top) + this.selectButton.offsetHeight + parseInt(window.getComputedStyle(this.selectableItemsList).maxHeight);
275
+ window.innerHeight < r ? this.selectDropdownPosition = "top" : this.selectDropdownPosition = "bottom";
276
276
  }
277
- }), r = () => {
277
+ }), s = () => {
278
278
  o.selectOpen && o.selectPositionUpdate();
279
279
  };
280
280
  return J(
281
281
  () => o.selectOpen,
282
- function(s) {
283
- if (o.selectedItem ? o.selectableItemActive = o.selectedItem : o.selectableItemActive = o.selectableItems[0], !s) {
284
- window.removeEventListener("resize", r);
282
+ function(r) {
283
+ if (o.selectedItem ? o.selectableItemActive = o.selectedItem : o.selectableItemActive = o.selectableItems[0], !r) {
284
+ window.removeEventListener("resize", s);
285
285
  return;
286
286
  }
287
287
  window.setTimeout(function() {
288
288
  o.selectScrollToActiveItem();
289
- }, 10), r(), window.addEventListener("resize", r);
289
+ }, 10), s(), window.addEventListener("resize", s);
290
290
  },
291
291
  { immediate: !1 }
292
292
  ), o;
293
293
  }
294
294
  function eo(e) {
295
- const t = y(1), o = y(e.itemsPerPage ?? 10), r = se({
296
- filteredPage: ue(() => {
297
- const s = o.value * (t.value - 1), n = Math.min(o.value * t.value, e.data.length);
298
- return e.data.slice(s, n);
299
- }),
300
- props: e,
301
- fields: { currentPage: t, itemsPerPage: o },
302
- handlePageChange(s) {
303
- t.value = s;
304
- },
305
- handlePageReset() {
306
- t.value = 1;
307
- }
295
+ const t = y(e.itemsPerPage ?? 10), o = y(1), s = oe(() => Math.ceil(e.data.value.length / t.value)), r = oe(() => {
296
+ const i = (o.value - 1) * t.value;
297
+ return e.data.value.slice(i, i + t.value);
308
298
  });
299
+ function n(i) {
300
+ o.value = Math.min(Math.max(1, i), s.value);
301
+ }
302
+ function a() {
303
+ o.value = 1;
304
+ }
309
305
  return J(
310
- () => e.data,
311
- (s, n) => {
312
- var a, i;
313
- ((s == null ? void 0 : s.length) !== (n == null ? void 0 : n.length) || s[0] && n[0] && ((a = s[0]) == null ? void 0 : a.id) !== ((i = n[0]) == null ? void 0 : i.id)) && r.handlePageReset();
306
+ () => e.data.value,
307
+ () => {
308
+ e.resetOnDataChange !== !1 && a();
314
309
  },
315
310
  { immediate: !0 }
316
- ), r;
311
+ ), {
312
+ // state
313
+ currentPage: o,
314
+ itemsPerPage: t,
315
+ // derived
316
+ pageCount: s,
317
+ pageData: r,
318
+ // actions
319
+ setPage: n,
320
+ resetPage: a
321
+ };
317
322
  }
318
323
  function Fe(e = "pv_id_") {
319
324
  return e + Math.random().toString(16).slice(2);
@@ -334,20 +339,20 @@ class ot {
334
339
  this.publish(t), this.toasts = [...this.toasts, t];
335
340
  });
336
341
  E(this, "create", (t, o) => {
337
- const r = o.id ?? Fe("toast_");
338
- return this.toasts.find((n) => n.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({ ...n, ...o, id: r, title: t }), {
342
+ const s = o.id ?? Fe("toast_");
343
+ return this.toasts.find((n) => n.id === s) ? this.toasts = this.toasts.map((n) => n.id === s ? (this.publish({ ...n, ...o, id: s, title: t }), {
339
344
  ...n,
340
345
  ...o,
341
- id: r,
346
+ id: s,
342
347
  title: t
343
348
  }) : n) : this.addToast({
344
349
  title: t,
345
- id: r,
350
+ id: s,
346
351
  scale: 1,
347
352
  zIndex: 200,
348
353
  offsetY: 0,
349
354
  ...o
350
- }), r;
355
+ }), s;
351
356
  });
352
357
  E(this, "dismiss", (t) => {
353
358
  t ? (this.publish({ id: t, dismiss: !0 }), this.toasts = this.toasts.filter((o) => o.id !== t)) : (this.toasts.forEach((o) => {
@@ -384,8 +389,8 @@ function to(e) {
384
389
  await navigator.clipboard.writeText(e.value), t.value = !0, setTimeout(() => {
385
390
  t.value = !1;
386
391
  }, 3e3);
387
- } catch (r) {
388
- console.error(r), rt.error("Error", {
392
+ } catch (s) {
393
+ console.error(s), rt.error("Error", {
389
394
  description: "Unable to copy. Network is not secure."
390
395
  });
391
396
  }
@@ -395,27 +400,27 @@ function to(e) {
395
400
  function nt(e) {
396
401
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
397
402
  }
398
- var fe, Ce;
403
+ var fe, Pe;
399
404
  function at() {
400
- return Ce || (Ce = 1, fe = function e(t, o) {
405
+ return Pe || (Pe = 1, fe = function e(t, o) {
401
406
  if (t === o) return !0;
402
407
  if (t && o && typeof t == "object" && typeof o == "object") {
403
408
  if (t.constructor !== o.constructor) return !1;
404
- var r, s, n;
409
+ var s, r, n;
405
410
  if (Array.isArray(t)) {
406
- if (r = t.length, r != o.length) return !1;
407
- for (s = r; s-- !== 0; )
408
- if (!e(t[s], o[s])) return !1;
411
+ if (s = t.length, s != o.length) return !1;
412
+ for (r = s; r-- !== 0; )
413
+ if (!e(t[r], o[r])) return !1;
409
414
  return !0;
410
415
  }
411
416
  if (t.constructor === RegExp) return t.source === o.source && t.flags === o.flags;
412
417
  if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === o.valueOf();
413
418
  if (t.toString !== Object.prototype.toString) return t.toString() === o.toString();
414
- if (n = Object.keys(t), r = n.length, r !== Object.keys(o).length) return !1;
415
- for (s = r; s-- !== 0; )
416
- if (!Object.prototype.hasOwnProperty.call(o, n[s])) return !1;
417
- for (s = r; s-- !== 0; ) {
418
- var a = n[s];
419
+ if (n = Object.keys(t), s = n.length, s !== Object.keys(o).length) return !1;
420
+ for (r = s; r-- !== 0; )
421
+ if (!Object.prototype.hasOwnProperty.call(o, n[r])) return !1;
422
+ for (r = s; r-- !== 0; ) {
423
+ var a = n[r];
419
424
  if (!e(t[a], o[a])) return !1;
420
425
  }
421
426
  return !0;
@@ -427,7 +432,7 @@ var it = at();
427
432
  const lt = /* @__PURE__ */ nt(it);
428
433
  function oo(e) {
429
434
  let t = e, o;
430
- const r = se({
435
+ const s = ue({
431
436
  fields: structuredClone(e),
432
437
  errors: {},
433
438
  dirty: !1,
@@ -435,7 +440,7 @@ function oo(e) {
435
440
  processing: !1,
436
441
  wasSuccessful: !1,
437
442
  recentlySuccessful: !1,
438
- async submit(s, n = {}) {
443
+ async submit(r, n = {}) {
439
444
  if (this.processing) return;
440
445
  const a = {
441
446
  onBefore: async () => {
@@ -459,7 +464,7 @@ function oo(e) {
459
464
  };
460
465
  await a.onBefore();
461
466
  try {
462
- const i = await s(this.fields);
467
+ const i = await r(this.fields);
463
468
  await a.onSuccess(i);
464
469
  } catch (i) {
465
470
  await a.onError(i);
@@ -467,31 +472,31 @@ function oo(e) {
467
472
  await a.onFinish();
468
473
  }
469
474
  },
470
- reset(...s) {
475
+ reset(...r) {
471
476
  const n = structuredClone(t);
472
- s.length === 0 ? this.fields = n : s.forEach((a) => {
477
+ r.length === 0 ? this.fields = n : r.forEach((a) => {
473
478
  n[a] !== void 0 && (this.fields[a] = n[a]);
474
479
  });
475
480
  },
476
- clearErrors(...s) {
477
- s.length === 0 ? this.errors = {} : s.forEach((n) => delete this.errors[n]), this.hasErrors = Object.keys(this.errors).length > 0;
481
+ clearErrors(...r) {
482
+ r.length === 0 ? this.errors = {} : r.forEach((n) => delete this.errors[n]), this.hasErrors = Object.keys(this.errors).length > 0;
478
483
  },
479
- setErrors(s) {
480
- this.errors = { ...this.errors, ...s }, this.hasErrors = Object.keys(this.errors).length > 0;
484
+ setErrors(r) {
485
+ this.errors = { ...this.errors, ...r }, this.hasErrors = Object.keys(this.errors).length > 0;
481
486
  }
482
487
  });
483
488
  return J(
484
- () => r.fields,
489
+ () => s.fields,
485
490
  () => {
486
- r.dirty = !lt(r.fields, t);
491
+ s.dirty = !lt(s.fields, t);
487
492
  },
488
493
  { immediate: !0, deep: !0 }
489
- ), r;
494
+ ), s;
490
495
  }
491
- function so({ duration: e, isPaused: t, onTimeout: o, immediate: r = !0 }) {
492
- const s = y(), n = y(0), a = y(e);
496
+ function so({ duration: e, isPaused: t, onTimeout: o, immediate: s = !0 }) {
497
+ const r = y(), n = y(0), a = y(e);
493
498
  function i() {
494
- a.value === 1 / 0 || t() || (n.value = Date.now(), s.value = window.setTimeout(() => {
499
+ a.value === 1 / 0 || t() || (n.value = Date.now(), r.value = window.setTimeout(() => {
495
500
  o();
496
501
  }, a.value));
497
502
  }
@@ -501,7 +506,7 @@ function so({ duration: e, isPaused: t, onTimeout: o, immediate: r = !0 }) {
501
506
  a.value -= p;
502
507
  }
503
508
  function f() {
504
- s.value && (clearTimeout(s.value), s.value = null);
509
+ r.value && (clearTimeout(r.value), r.value = null);
505
510
  }
506
511
  return J(
507
512
  t,
@@ -512,14 +517,14 @@ function so({ duration: e, isPaused: t, onTimeout: o, immediate: r = !0 }) {
512
517
  }
513
518
  i();
514
519
  },
515
- { immediate: r }
520
+ { immediate: s }
516
521
  ), tt(() => {
517
522
  f();
518
523
  }), { cancel: f };
519
524
  }
520
- const ro = 3, no = "24px", ao = "16px", io = 0, lo = 3e3, co = 16, uo = 45, mo = 10, fo = 0.06, po = 16, De = 4, Ee = 6;
521
- function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElementSize: r, onSwipeOut: s }) {
522
- const n = y(!1), a = y({ x: 0, y: 0 }), i = y({ x: 0, y: 0 }), l = y({ x: 0, y: 0 }), f = y(), p = ue(() => A(e.value)), g = y(null);
525
+ const ro = 3, no = "24px", ao = "16px", io = 0, lo = 3e3, co = 16, uo = 45, mo = 10, fo = 0.06, po = 16, Ce = 4, Ee = 6;
526
+ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElementSize: s, onSwipeOut: r }) {
527
+ const n = y(!1), a = y({ x: 0, y: 0 }), i = y({ x: 0, y: 0 }), l = y({ x: 0, y: 0 }), f = y(), p = oe(() => A(e.value)), g = y(null);
523
528
  function M(w) {
524
529
  return 1 / (1.5 + Math.abs(w) / 20);
525
530
  }
@@ -544,7 +549,7 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
544
549
  return k(c) ? c : null;
545
550
  }
546
551
  function z(w) {
547
- return t.px ? t.px : w && t.percent && r ? r(w) * t.percent : 1 / 0;
552
+ return t.px ? t.px : w && t.percent && s ? s(w) * t.percent : 1 / 0;
548
553
  }
549
554
  function G(w) {
550
555
  w.target.closest("button, a, input, textarea, select") || (f.value = Date.now(), w.target.setPointerCapture(w.pointerId), i.value = { x: w.clientX, y: w.clientY }, n.value = !0);
@@ -552,7 +557,7 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
552
557
  function L(w) {
553
558
  if (!n.value) return;
554
559
  const c = { x: 0, y: 0 }, v = { x: w.clientX - i.value.x, y: w.clientY - i.value.y };
555
- if (l.value.x = Math.max(l.value.x, Math.abs(v.x)), l.value.y = Math.max(l.value.y, Math.abs(v.y)), !g.value && (Math.abs(v.x) > De || Math.abs(v.y) > De) && (g.value = N(v)), !!g.value) {
560
+ if (l.value.x = Math.max(l.value.x, Math.abs(v.x)), l.value.y = Math.max(l.value.y, Math.abs(v.y)), !g.value && (Math.abs(v.x) > Ce || Math.abs(v.y) > Ce) && (g.value = N(v)), !!g.value) {
556
561
  if (c[g.value] = F(v[g.value], p.value[g.value]), c[g.value] === 0 && v[g.value] !== 0) {
557
562
  const O = v[g.value] * M(v[g.value]);
558
563
  c[g.value] = Math.abs(O) < Math.abs(v[g.value]) ? O : v[g.value];
@@ -563,7 +568,7 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
563
568
  function _() {
564
569
  if (!n.value) return !1;
565
570
  const w = Date.now() - (f.value ?? 0), c = g.value ? a.value[g.value] : 0, v = Math.abs(c) / w, O = Math.abs(c) >= z(g.value) || v > (o ?? 0.11);
566
- return O && s(), n.value = !1, g.value = null, a.value = { x: 0, y: 0 }, O;
571
+ return O && r(), n.value = !1, g.value = null, a.value = { x: 0, y: 0 }, O;
567
572
  }
568
573
  function V() {
569
574
  n.value = !1, g.value = null, a.value = { x: 0, y: 0 };
@@ -581,40 +586,40 @@ function ho({ directions: e, swipeThreshold: t, velocityThreshold: o, getElement
581
586
  isTapGesture: B
582
587
  };
583
588
  }
584
- const bo = 45, go = 0.11, oe = y(!1), ke = y(!1), Ie = y(300), q = y(null), Ne = se({}), _e = ge(null);
589
+ const bo = 45, go = 0.11, se = y(!1), ke = y(!1), Ie = y(300), q = y(null), Ne = ue({}), _e = ge(null);
585
590
  function ct(e, t = {}) {
586
- q.value && clearTimeout(q.value), _e.value = e, Object.assign(Ne, t), ke.value = !0, oe.value = !0, q.value = window.setTimeout(() => {
587
- oe.value = !1;
591
+ q.value && clearTimeout(q.value), _e.value = e, Object.assign(Ne, t), ke.value = !0, se.value = !0, q.value = window.setTimeout(() => {
592
+ se.value = !1;
588
593
  }, Ie.value);
589
594
  }
590
595
  function ut() {
591
- q.value && clearTimeout(q.value), ke.value = !1, oe.value = !0, q.value = window.setTimeout(() => {
592
- oe.value = !1;
596
+ q.value && clearTimeout(q.value), ke.value = !1, se.value = !0, q.value = window.setTimeout(() => {
597
+ se.value = !1;
593
598
  }, Ie.value);
594
599
  }
595
600
  function vo() {
596
- return { isOpen: ke, isAnimating: oe, animationTime: Ie, props: Ne, component: _e, open: ct, close: ut };
601
+ return { isOpen: ke, isAnimating: se, animationTime: Ie, props: Ne, component: _e, open: ct, close: ut };
597
602
  }
598
603
  let pe = null;
599
604
  function dt() {
600
- const e = y(!1), t = y(!1), o = y(200), r = y(null), s = ge({}), n = ge(null);
605
+ const e = y(!1), t = y(!1), o = y(200), s = y(null), r = ge({}), n = ge(null);
601
606
  function a(l, f = {}) {
602
607
  var p, g;
603
608
  if (t.value) {
604
609
  i("programmatic");
605
610
  return;
606
611
  }
607
- r.value && clearTimeout(r.value), s.value = f, n.value = l, t.value = !0, e.value = !0, (g = (p = s.value) == null ? void 0 : p.onOpen) == null || g.call(p), r.value = window.setTimeout(() => {
612
+ s.value && clearTimeout(s.value), r.value = f, n.value = l, t.value = !0, e.value = !0, (g = (p = r.value) == null ? void 0 : p.onOpen) == null || g.call(p), s.value = window.setTimeout(() => {
608
613
  e.value = !1;
609
614
  }, o.value);
610
615
  }
611
616
  function i(l) {
612
617
  var f, p;
613
- t.value && (r.value && clearTimeout(r.value), !(l !== "programmatic" && s.value.preventClose) && (l === "escape" && !(s.value.closeOnEsc ?? !0) || l === "backdrop" && !(s.value.closeOnBackdrop ?? !0) || l === "swipe" && !(s.value.closeOnSwipe ?? !0) || (t.value = !1, e.value = !0, (p = (f = s.value) == null ? void 0 : f.onClose) == null || p.call(f, l), r.value = window.setTimeout(() => {
614
- e.value = !1, n.value = null, s.value = {};
618
+ t.value && (s.value && clearTimeout(s.value), !(l !== "programmatic" && r.value.preventClose) && (l === "escape" && !(r.value.closeOnEsc ?? !0) || l === "backdrop" && !(r.value.closeOnBackdrop ?? !0) || l === "swipe" && !(r.value.closeOnSwipe ?? !0) || (t.value = !1, e.value = !0, (p = (f = r.value) == null ? void 0 : f.onClose) == null || p.call(f, l), s.value = window.setTimeout(() => {
619
+ e.value = !1, n.value = null, r.value = {};
615
620
  }, o.value))));
616
621
  }
617
- return { isOpen: Pe(t), isAnimating: Pe(e), animationTime: o, props: s, component: n, open: a, close: i };
622
+ return { isOpen: De(t), isAnimating: De(e), animationTime: o, props: r, component: n, open: a, close: i };
618
623
  }
619
624
  function ve() {
620
625
  return pe || (pe = dt()), pe;
@@ -634,8 +639,8 @@ function Oe(e) {
634
639
  return String(e ?? "").toLowerCase().replace(/\s+/g, " ").trim();
635
640
  }
636
641
  function xo(e, t = 1, o = ["date", "date_released"]) {
637
- return (r, s) => {
638
- const n = r[e], a = s[e];
642
+ return (s, r) => {
643
+ const n = s[e], a = r[e];
639
644
  if (n instanceof Date && a instanceof Date || o.includes(String(e))) {
640
645
  const f = new Date(String(n));
641
646
  return (new Date(String(a)).getTime() - f.getTime()) * t;
@@ -645,26 +650,26 @@ function xo(e, t = 1, o = ["date", "date_released"]) {
645
650
  };
646
651
  }
647
652
  function ko(e, t = 1) {
648
- return (o, r) => {
649
- for (const { key: s, compareFn: n } of e) {
650
- const a = s ? o[s] ?? "" : void 0, i = s ? r[s] ?? "" : void 0;
653
+ return (o, s) => {
654
+ for (const { key: r, compareFn: n } of e) {
655
+ const a = r ? o[r] ?? "" : void 0, i = r ? s[r] ?? "" : void 0;
651
656
  let l;
652
- if (n ? l = s ? n(a, i) : n(o, r) : l = ft(a, i), l !== 0) return l * t;
657
+ if (n ? l = r ? n(a, i) : n(o, s) : l = ft(a, i), l !== 0) return l * t;
653
658
  }
654
659
  return 0;
655
660
  };
656
661
  }
657
662
  function ft(e, t) {
658
- const o = parseFloat(e), r = parseFloat(t);
659
- if (!isNaN(o) && !isNaN(r))
660
- return o - r;
661
- const s = new Date(e), n = new Date(t);
662
- return !isNaN(s.getTime()) && !isNaN(n.getTime()) ? s.getTime() - n.getTime() : mt.stringInsensitive(e, t);
663
+ const o = parseFloat(e), s = parseFloat(t);
664
+ if (!isNaN(o) && !isNaN(s))
665
+ return o - s;
666
+ const r = new Date(e), n = new Date(t);
667
+ return !isNaN(r.getTime()) && !isNaN(n.getTime()) ? r.getTime() - n.getTime() : mt.stringInsensitive(e, t);
663
668
  }
664
669
  const Te = "-", pt = (e) => {
665
670
  const t = bt(e), {
666
671
  conflictingClassGroups: o,
667
- conflictingClassGroupModifiers: r
672
+ conflictingClassGroupModifiers: s
668
673
  } = e;
669
674
  return {
670
675
  getClassGroupId: (a) => {
@@ -673,16 +678,16 @@ const Te = "-", pt = (e) => {
673
678
  },
674
679
  getConflictingClassGroupIds: (a, i) => {
675
680
  const l = o[a] || [];
676
- return i && r[a] ? [...l, ...r[a]] : l;
681
+ return i && s[a] ? [...l, ...s[a]] : l;
677
682
  }
678
683
  };
679
684
  }, Ve = (e, t) => {
680
685
  var a;
681
686
  if (e.length === 0)
682
687
  return t.classGroupId;
683
- const o = e[0], r = t.nextPart.get(o), s = r ? Ve(e.slice(1), r) : void 0;
684
- if (s)
685
- return s;
688
+ const o = e[0], s = t.nextPart.get(o), r = s ? Ve(e.slice(1), s) : void 0;
689
+ if (r)
690
+ return r;
686
691
  if (t.validators.length === 0)
687
692
  return;
688
693
  const n = e.join(Te);
@@ -699,42 +704,42 @@ const Te = "-", pt = (e) => {
699
704
  const {
700
705
  theme: t,
701
706
  classGroups: o
702
- } = e, r = {
707
+ } = e, s = {
703
708
  nextPart: /* @__PURE__ */ new Map(),
704
709
  validators: []
705
710
  };
706
- for (const s in o)
707
- we(o[s], r, s, t);
708
- return r;
709
- }, we = (e, t, o, r) => {
710
- e.forEach((s) => {
711
- if (typeof s == "string") {
712
- const n = s === "" ? t : Le(t, s);
711
+ for (const r in o)
712
+ we(o[r], s, r, t);
713
+ return s;
714
+ }, we = (e, t, o, s) => {
715
+ e.forEach((r) => {
716
+ if (typeof r == "string") {
717
+ const n = r === "" ? t : Le(t, r);
713
718
  n.classGroupId = o;
714
719
  return;
715
720
  }
716
- if (typeof s == "function") {
717
- if (gt(s)) {
718
- we(s(r), t, o, r);
721
+ if (typeof r == "function") {
722
+ if (gt(r)) {
723
+ we(r(s), t, o, s);
719
724
  return;
720
725
  }
721
726
  t.validators.push({
722
- validator: s,
727
+ validator: r,
723
728
  classGroupId: o
724
729
  });
725
730
  return;
726
731
  }
727
- Object.entries(s).forEach(([n, a]) => {
728
- we(a, Le(t, n), o, r);
732
+ Object.entries(r).forEach(([n, a]) => {
733
+ we(a, Le(t, n), o, s);
729
734
  });
730
735
  });
731
736
  }, Le = (e, t) => {
732
737
  let o = e;
733
- return t.split(Te).forEach((r) => {
734
- o.nextPart.has(r) || o.nextPart.set(r, {
738
+ return t.split(Te).forEach((s) => {
739
+ o.nextPart.has(s) || o.nextPart.set(s, {
735
740
  nextPart: /* @__PURE__ */ new Map(),
736
741
  validators: []
737
- }), o = o.nextPart.get(r);
742
+ }), o = o.nextPart.get(s);
738
743
  }), o;
739
744
  }, gt = (e) => e.isThemeGetter, vt = (e) => {
740
745
  if (e < 1)
@@ -744,20 +749,20 @@ const Te = "-", pt = (e) => {
744
749
  set: () => {
745
750
  }
746
751
  };
747
- let t = 0, o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
748
- const s = (n, a) => {
749
- o.set(n, a), t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ new Map());
752
+ let t = 0, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
753
+ const r = (n, a) => {
754
+ o.set(n, a), t++, t > e && (t = 0, s = o, o = /* @__PURE__ */ new Map());
750
755
  };
751
756
  return {
752
757
  get(n) {
753
758
  let a = o.get(n);
754
759
  if (a !== void 0)
755
760
  return a;
756
- if ((a = r.get(n)) !== void 0)
757
- return s(n, a), a;
761
+ if ((a = s.get(n)) !== void 0)
762
+ return r(n, a), a;
758
763
  },
759
764
  set(n, a) {
760
- o.has(n) ? o.set(n, a) : s(n, a);
765
+ o.has(n) ? o.set(n, a) : r(n, a);
761
766
  }
762
767
  };
763
768
  }, ye = "!", xe = ":", wt = xe.length, yt = (e) => {
@@ -765,14 +770,14 @@ const Te = "-", pt = (e) => {
765
770
  prefix: t,
766
771
  experimentalParseClassName: o
767
772
  } = e;
768
- let r = (s) => {
773
+ let s = (r) => {
769
774
  const n = [];
770
775
  let a = 0, i = 0, l = 0, f;
771
- for (let k = 0; k < s.length; k++) {
772
- let A = s[k];
776
+ for (let k = 0; k < r.length; k++) {
777
+ let A = r[k];
773
778
  if (a === 0 && i === 0) {
774
779
  if (A === xe) {
775
- n.push(s.slice(l, k)), l = k + wt;
780
+ n.push(r.slice(l, k)), l = k + wt;
776
781
  continue;
777
782
  }
778
783
  if (A === "/") {
@@ -782,7 +787,7 @@ const Te = "-", pt = (e) => {
782
787
  }
783
788
  A === "[" ? a++ : A === "]" ? a-- : A === "(" ? i++ : A === ")" && i--;
784
789
  }
785
- const p = n.length === 0 ? s : s.substring(l), g = xt(p), M = g !== p, F = f && f > l ? f - l : void 0;
790
+ const p = n.length === 0 ? r : r.substring(l), g = xt(p), M = g !== p, F = f && f > l ? f - l : void 0;
786
791
  return {
787
792
  modifiers: n,
788
793
  hasImportantModifier: M,
@@ -791,8 +796,8 @@ const Te = "-", pt = (e) => {
791
796
  };
792
797
  };
793
798
  if (t) {
794
- const s = t + xe, n = r;
795
- r = (a) => a.startsWith(s) ? n(a.substring(s.length)) : {
799
+ const r = t + xe, n = s;
800
+ s = (a) => a.startsWith(r) ? n(a.substring(r.length)) : {
796
801
  isExternal: !0,
797
802
  modifiers: [],
798
803
  hasImportantModifier: !1,
@@ -801,23 +806,23 @@ const Te = "-", pt = (e) => {
801
806
  };
802
807
  }
803
808
  if (o) {
804
- const s = r;
805
- r = (n) => o({
809
+ const r = s;
810
+ s = (n) => o({
806
811
  className: n,
807
- parseClassName: s
812
+ parseClassName: r
808
813
  });
809
814
  }
810
- return r;
815
+ return s;
811
816
  }, xt = (e) => e.endsWith(ye) ? e.substring(0, e.length - 1) : e.startsWith(ye) ? e.substring(1) : e, kt = (e) => {
812
- const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
813
- return (r) => {
814
- if (r.length <= 1)
815
- return r;
816
- const s = [];
817
+ const t = Object.fromEntries(e.orderSensitiveModifiers.map((s) => [s, !0]));
818
+ return (s) => {
819
+ if (s.length <= 1)
820
+ return s;
821
+ const r = [];
817
822
  let n = [];
818
- return r.forEach((a) => {
819
- a[0] === "[" || t[a] ? (s.push(...n.sort(), a), n = []) : n.push(a);
820
- }), s.push(...n.sort()), s;
823
+ return s.forEach((a) => {
824
+ a[0] === "[" || t[a] ? (r.push(...n.sort(), a), n = []) : n.push(a);
825
+ }), r.push(...n.sort()), r;
821
826
  };
822
827
  }, It = (e) => ({
823
828
  cache: vt(e.cacheSize),
@@ -827,8 +832,8 @@ const Te = "-", pt = (e) => {
827
832
  }), Tt = /\s+/, St = (e, t) => {
828
833
  const {
829
834
  parseClassName: o,
830
- getClassGroupId: r,
831
- getConflictingClassGroupIds: s,
835
+ getClassGroupId: s,
836
+ getConflictingClassGroupIds: r,
832
837
  sortModifiers: n
833
838
  } = t, a = [], i = e.trim().split(Tt);
834
839
  let l = "";
@@ -844,13 +849,13 @@ const Te = "-", pt = (e) => {
844
849
  l = p + (l.length > 0 ? " " + l : l);
845
850
  continue;
846
851
  }
847
- let N = !!A, z = r(N ? k.substring(0, A) : k);
852
+ let N = !!A, z = s(N ? k.substring(0, A) : k);
848
853
  if (!z) {
849
854
  if (!N) {
850
855
  l = p + (l.length > 0 ? " " + l : l);
851
856
  continue;
852
857
  }
853
- if (z = r(k), !z) {
858
+ if (z = s(k), !z) {
854
859
  l = p + (l.length > 0 ? " " + l : l);
855
860
  continue;
856
861
  }
@@ -860,7 +865,7 @@ const Te = "-", pt = (e) => {
860
865
  if (a.includes(_))
861
866
  continue;
862
867
  a.push(_);
863
- const V = s(z, N);
868
+ const V = r(z, N);
864
869
  for (let B = 0; B < V.length; ++B) {
865
870
  const w = V[B];
866
871
  a.push(L + w);
@@ -870,31 +875,31 @@ const Te = "-", pt = (e) => {
870
875
  return l;
871
876
  };
872
877
  function Mt() {
873
- let e = 0, t, o, r = "";
878
+ let e = 0, t, o, s = "";
874
879
  for (; e < arguments.length; )
875
- (t = arguments[e++]) && (o = $e(t)) && (r && (r += " "), r += o);
876
- return r;
880
+ (t = arguments[e++]) && (o = $e(t)) && (s && (s += " "), s += o);
881
+ return s;
877
882
  }
878
883
  const $e = (e) => {
879
884
  if (typeof e == "string")
880
885
  return e;
881
886
  let t, o = "";
882
- for (let r = 0; r < e.length; r++)
883
- e[r] && (t = $e(e[r])) && (o && (o += " "), o += t);
887
+ for (let s = 0; s < e.length; s++)
888
+ e[s] && (t = $e(e[s])) && (o && (o += " "), o += t);
884
889
  return o;
885
890
  };
886
891
  function At(e, ...t) {
887
- let o, r, s, n = a;
892
+ let o, s, r, n = a;
888
893
  function a(l) {
889
894
  const f = t.reduce((p, g) => g(p), e());
890
- return o = It(f), r = o.cache.get, s = o.cache.set, n = i, i(l);
895
+ return o = It(f), s = o.cache.get, r = o.cache.set, n = i, i(l);
891
896
  }
892
897
  function i(l) {
893
- const f = r(l);
898
+ const f = s(l);
894
899
  if (f)
895
900
  return f;
896
901
  const p = St(l, o);
897
- return s(l, p), p;
902
+ return r(l, p), p;
898
903
  }
899
904
  return function() {
900
905
  return n(Mt.apply(null, arguments));
@@ -903,19 +908,19 @@ function At(e, ...t) {
903
908
  const T = (e) => {
904
909
  const t = (o) => o[e] || [];
905
910
  return t.isThemeGetter = !0, t;
906
- }, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pt = /^\d+\/\d+$/, Ct = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Dt = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ot = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Pt.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && b(e.slice(0, -1)), $ = (e) => Ct.test(e), Lt = () => !0, Bt = (e) => (
911
+ }, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dt = /^\d+\/\d+$/, Pt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ot = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Dt.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), he = (e) => e.endsWith("%") && b(e.slice(0, -1)), $ = (e) => Pt.test(e), Lt = () => !0, Bt = (e) => (
907
912
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
908
913
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
909
914
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
910
- Dt.test(e) && !Et.test(e)
915
+ Ct.test(e) && !Et.test(e)
911
916
  ), je = () => !1, Rt = (e) => Ot.test(e), Ft = (e) => zt.test(e), Nt = (e) => !u(e) && !d(e), _t = (e) => X(e, Ue, je), u = (e) => Ge.test(e), K = (e) => X(e, We, Bt), be = (e) => X(e, jt, b), Be = (e) => X(e, Ke, je), Vt = (e) => X(e, He, Ft), le = (e) => X(e, qe, Rt), d = (e) => Ye.test(e), te = (e) => Z(e, We), $t = (e) => Z(e, Kt), Re = (e) => Z(e, Ke), Gt = (e) => Z(e, Ue), Yt = (e) => Z(e, He), ce = (e) => Z(e, qe, !0), X = (e, t, o) => {
912
- const r = Ge.exec(e);
913
- return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
917
+ const s = Ge.exec(e);
918
+ return s ? s[1] ? t(s[1]) : o(s[2]) : !1;
914
919
  }, Z = (e, t, o = !1) => {
915
- const r = Ye.exec(e);
916
- return r ? r[1] ? t(r[1]) : o : !1;
920
+ const s = Ye.exec(e);
921
+ return s ? s[1] ? t(s[1]) : o : !1;
917
922
  }, Ke = (e) => e === "position" || e === "percentage", He = (e) => e === "image" || e === "url", Ue = (e) => e === "length" || e === "size" || e === "bg-size", We = (e) => e === "length", jt = (e) => e === "number", Kt = (e) => e === "family-name", qe = (e) => e === "shadow", Ht = () => {
918
- const e = T("color"), t = T("font"), o = T("text"), r = T("font-weight"), s = T("tracking"), n = T("leading"), a = T("breakpoint"), i = T("container"), l = T("spacing"), f = T("radius"), p = T("shadow"), g = T("inset-shadow"), M = T("text-shadow"), F = T("drop-shadow"), k = T("blur"), A = T("perspective"), N = T("aspect"), z = T("ease"), G = T("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [
923
+ const e = T("color"), t = T("font"), o = T("text"), s = T("font-weight"), r = T("tracking"), n = T("leading"), a = T("breakpoint"), i = T("container"), l = T("spacing"), f = T("radius"), p = T("shadow"), g = T("inset-shadow"), M = T("text-shadow"), F = T("drop-shadow"), k = T("blur"), A = T("perspective"), N = T("aspect"), z = T("ease"), G = T("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [
919
924
  "center",
920
925
  "top",
921
926
  "bottom",
@@ -935,13 +940,13 @@ const T = (e) => {
935
940
  "left-bottom"
936
941
  ], V = () => [..._(), d, u], B = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], c = () => [d, u, l], v = () => [W, "full", "auto", ...c()], O = () => [Y, "none", "subgrid", d, u], Q = () => ["auto", {
937
942
  span: ["full", Y, d, u]
938
- }, Y, d, u], j = () => [Y, "auto", d, u], ee = () => ["auto", "min", "max", "fr", d, u], h = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...c()], P = () => [W, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], m = () => [e, d, u], U = () => [..._(), Re, Be, {
943
+ }, Y, d, u], j = () => [Y, "auto", d, u], ee = () => ["auto", "min", "max", "fr", d, u], h = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...c()], D = () => [W, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], m = () => [e, d, u], U = () => [..._(), Re, Be, {
939
944
  position: [d, u]
940
945
  }], R = () => ["no-repeat", {
941
946
  repeat: ["", "x", "y", "space", "round"]
942
947
  }], Se = () => ["auto", "cover", "contain", Gt, _t, {
943
948
  size: [d, u]
944
- }], de = () => [he, te, K], C = () => [
949
+ }], de = () => [he, te, K], P = () => [
945
950
  // Deprecated since Tailwind CSS v4.0.0
946
951
  "",
947
952
  "none",
@@ -949,7 +954,7 @@ const T = (e) => {
949
954
  f,
950
955
  d,
951
956
  u
952
- ], D = () => ["", b, te, K], re = () => ["solid", "dashed", "dotted", "double"], Me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [b, he, Re, Be], Ae = () => [
957
+ ], C = () => ["", b, te, K], re = () => ["solid", "dashed", "dotted", "double"], Me = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [b, he, Re, Be], Ae = () => [
953
958
  // Deprecated since Tailwind CSS v4.0.0
954
959
  "",
955
960
  "none",
@@ -1580,14 +1585,14 @@ const T = (e) => {
1580
1585
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1581
1586
  */
1582
1587
  size: [{
1583
- size: P()
1588
+ size: D()
1584
1589
  }],
1585
1590
  /**
1586
1591
  * Width
1587
1592
  * @see https://tailwindcss.com/docs/width
1588
1593
  */
1589
1594
  w: [{
1590
- w: [i, "screen", ...P()]
1595
+ w: [i, "screen", ...D()]
1591
1596
  }],
1592
1597
  /**
1593
1598
  * Min-Width
@@ -1599,7 +1604,7 @@ const T = (e) => {
1599
1604
  "screen",
1600
1605
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1601
1606
  "none",
1602
- ...P()
1607
+ ...D()
1603
1608
  ]
1604
1609
  }],
1605
1610
  /**
@@ -1617,7 +1622,7 @@ const T = (e) => {
1617
1622
  {
1618
1623
  screen: [a]
1619
1624
  },
1620
- ...P()
1625
+ ...D()
1621
1626
  ]
1622
1627
  }],
1623
1628
  /**
@@ -1625,21 +1630,21 @@ const T = (e) => {
1625
1630
  * @see https://tailwindcss.com/docs/height
1626
1631
  */
1627
1632
  h: [{
1628
- h: ["screen", "lh", ...P()]
1633
+ h: ["screen", "lh", ...D()]
1629
1634
  }],
1630
1635
  /**
1631
1636
  * Min-Height
1632
1637
  * @see https://tailwindcss.com/docs/min-height
1633
1638
  */
1634
1639
  "min-h": [{
1635
- "min-h": ["screen", "lh", "none", ...P()]
1640
+ "min-h": ["screen", "lh", "none", ...D()]
1636
1641
  }],
1637
1642
  /**
1638
1643
  * Max-Height
1639
1644
  * @see https://tailwindcss.com/docs/max-height
1640
1645
  */
1641
1646
  "max-h": [{
1642
- "max-h": ["screen", "lh", ...P()]
1647
+ "max-h": ["screen", "lh", ...D()]
1643
1648
  }],
1644
1649
  // ------------------
1645
1650
  // --- Typography ---
@@ -1666,7 +1671,7 @@ const T = (e) => {
1666
1671
  * @see https://tailwindcss.com/docs/font-weight
1667
1672
  */
1668
1673
  "font-weight": [{
1669
- font: [r, d, be]
1674
+ font: [s, d, be]
1670
1675
  }],
1671
1676
  /**
1672
1677
  * Font Stretch
@@ -1717,7 +1722,7 @@ const T = (e) => {
1717
1722
  * @see https://tailwindcss.com/docs/letter-spacing
1718
1723
  */
1719
1724
  tracking: [{
1720
- tracking: [s, d, u]
1725
+ tracking: [r, d, u]
1721
1726
  }],
1722
1727
  /**
1723
1728
  * Line Clamp
@@ -1994,175 +1999,175 @@ const T = (e) => {
1994
1999
  * @see https://tailwindcss.com/docs/border-radius
1995
2000
  */
1996
2001
  rounded: [{
1997
- rounded: C()
2002
+ rounded: P()
1998
2003
  }],
1999
2004
  /**
2000
2005
  * Border Radius Start
2001
2006
  * @see https://tailwindcss.com/docs/border-radius
2002
2007
  */
2003
2008
  "rounded-s": [{
2004
- "rounded-s": C()
2009
+ "rounded-s": P()
2005
2010
  }],
2006
2011
  /**
2007
2012
  * Border Radius End
2008
2013
  * @see https://tailwindcss.com/docs/border-radius
2009
2014
  */
2010
2015
  "rounded-e": [{
2011
- "rounded-e": C()
2016
+ "rounded-e": P()
2012
2017
  }],
2013
2018
  /**
2014
2019
  * Border Radius Top
2015
2020
  * @see https://tailwindcss.com/docs/border-radius
2016
2021
  */
2017
2022
  "rounded-t": [{
2018
- "rounded-t": C()
2023
+ "rounded-t": P()
2019
2024
  }],
2020
2025
  /**
2021
2026
  * Border Radius Right
2022
2027
  * @see https://tailwindcss.com/docs/border-radius
2023
2028
  */
2024
2029
  "rounded-r": [{
2025
- "rounded-r": C()
2030
+ "rounded-r": P()
2026
2031
  }],
2027
2032
  /**
2028
2033
  * Border Radius Bottom
2029
2034
  * @see https://tailwindcss.com/docs/border-radius
2030
2035
  */
2031
2036
  "rounded-b": [{
2032
- "rounded-b": C()
2037
+ "rounded-b": P()
2033
2038
  }],
2034
2039
  /**
2035
2040
  * Border Radius Left
2036
2041
  * @see https://tailwindcss.com/docs/border-radius
2037
2042
  */
2038
2043
  "rounded-l": [{
2039
- "rounded-l": C()
2044
+ "rounded-l": P()
2040
2045
  }],
2041
2046
  /**
2042
2047
  * Border Radius Start Start
2043
2048
  * @see https://tailwindcss.com/docs/border-radius
2044
2049
  */
2045
2050
  "rounded-ss": [{
2046
- "rounded-ss": C()
2051
+ "rounded-ss": P()
2047
2052
  }],
2048
2053
  /**
2049
2054
  * Border Radius Start End
2050
2055
  * @see https://tailwindcss.com/docs/border-radius
2051
2056
  */
2052
2057
  "rounded-se": [{
2053
- "rounded-se": C()
2058
+ "rounded-se": P()
2054
2059
  }],
2055
2060
  /**
2056
2061
  * Border Radius End End
2057
2062
  * @see https://tailwindcss.com/docs/border-radius
2058
2063
  */
2059
2064
  "rounded-ee": [{
2060
- "rounded-ee": C()
2065
+ "rounded-ee": P()
2061
2066
  }],
2062
2067
  /**
2063
2068
  * Border Radius End Start
2064
2069
  * @see https://tailwindcss.com/docs/border-radius
2065
2070
  */
2066
2071
  "rounded-es": [{
2067
- "rounded-es": C()
2072
+ "rounded-es": P()
2068
2073
  }],
2069
2074
  /**
2070
2075
  * Border Radius Top Left
2071
2076
  * @see https://tailwindcss.com/docs/border-radius
2072
2077
  */
2073
2078
  "rounded-tl": [{
2074
- "rounded-tl": C()
2079
+ "rounded-tl": P()
2075
2080
  }],
2076
2081
  /**
2077
2082
  * Border Radius Top Right
2078
2083
  * @see https://tailwindcss.com/docs/border-radius
2079
2084
  */
2080
2085
  "rounded-tr": [{
2081
- "rounded-tr": C()
2086
+ "rounded-tr": P()
2082
2087
  }],
2083
2088
  /**
2084
2089
  * Border Radius Bottom Right
2085
2090
  * @see https://tailwindcss.com/docs/border-radius
2086
2091
  */
2087
2092
  "rounded-br": [{
2088
- "rounded-br": C()
2093
+ "rounded-br": P()
2089
2094
  }],
2090
2095
  /**
2091
2096
  * Border Radius Bottom Left
2092
2097
  * @see https://tailwindcss.com/docs/border-radius
2093
2098
  */
2094
2099
  "rounded-bl": [{
2095
- "rounded-bl": C()
2100
+ "rounded-bl": P()
2096
2101
  }],
2097
2102
  /**
2098
2103
  * Border Width
2099
2104
  * @see https://tailwindcss.com/docs/border-width
2100
2105
  */
2101
2106
  "border-w": [{
2102
- border: D()
2107
+ border: C()
2103
2108
  }],
2104
2109
  /**
2105
2110
  * Border Width X
2106
2111
  * @see https://tailwindcss.com/docs/border-width
2107
2112
  */
2108
2113
  "border-w-x": [{
2109
- "border-x": D()
2114
+ "border-x": C()
2110
2115
  }],
2111
2116
  /**
2112
2117
  * Border Width Y
2113
2118
  * @see https://tailwindcss.com/docs/border-width
2114
2119
  */
2115
2120
  "border-w-y": [{
2116
- "border-y": D()
2121
+ "border-y": C()
2117
2122
  }],
2118
2123
  /**
2119
2124
  * Border Width Start
2120
2125
  * @see https://tailwindcss.com/docs/border-width
2121
2126
  */
2122
2127
  "border-w-s": [{
2123
- "border-s": D()
2128
+ "border-s": C()
2124
2129
  }],
2125
2130
  /**
2126
2131
  * Border Width End
2127
2132
  * @see https://tailwindcss.com/docs/border-width
2128
2133
  */
2129
2134
  "border-w-e": [{
2130
- "border-e": D()
2135
+ "border-e": C()
2131
2136
  }],
2132
2137
  /**
2133
2138
  * Border Width Top
2134
2139
  * @see https://tailwindcss.com/docs/border-width
2135
2140
  */
2136
2141
  "border-w-t": [{
2137
- "border-t": D()
2142
+ "border-t": C()
2138
2143
  }],
2139
2144
  /**
2140
2145
  * Border Width Right
2141
2146
  * @see https://tailwindcss.com/docs/border-width
2142
2147
  */
2143
2148
  "border-w-r": [{
2144
- "border-r": D()
2149
+ "border-r": C()
2145
2150
  }],
2146
2151
  /**
2147
2152
  * Border Width Bottom
2148
2153
  * @see https://tailwindcss.com/docs/border-width
2149
2154
  */
2150
2155
  "border-w-b": [{
2151
- "border-b": D()
2156
+ "border-b": C()
2152
2157
  }],
2153
2158
  /**
2154
2159
  * Border Width Left
2155
2160
  * @see https://tailwindcss.com/docs/border-width
2156
2161
  */
2157
2162
  "border-w-l": [{
2158
- "border-l": D()
2163
+ "border-l": C()
2159
2164
  }],
2160
2165
  /**
2161
2166
  * Divide Width X
2162
2167
  * @see https://tailwindcss.com/docs/border-width#between-children
2163
2168
  */
2164
2169
  "divide-x": [{
2165
- "divide-x": D()
2170
+ "divide-x": C()
2166
2171
  }],
2167
2172
  /**
2168
2173
  * Divide Width X Reverse
@@ -2174,7 +2179,7 @@ const T = (e) => {
2174
2179
  * @see https://tailwindcss.com/docs/border-width#between-children
2175
2180
  */
2176
2181
  "divide-y": [{
2177
- "divide-y": D()
2182
+ "divide-y": C()
2178
2183
  }],
2179
2184
  /**
2180
2185
  * Divide Width Y Reverse
@@ -2336,7 +2341,7 @@ const T = (e) => {
2336
2341
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2337
2342
  */
2338
2343
  "ring-w": [{
2339
- ring: D()
2344
+ ring: C()
2340
2345
  }],
2341
2346
  /**
2342
2347
  * Ring Width Inset
@@ -2375,7 +2380,7 @@ const T = (e) => {
2375
2380
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2376
2381
  */
2377
2382
  "inset-ring-w": [{
2378
- "inset-ring": D()
2383
+ "inset-ring": C()
2379
2384
  }],
2380
2385
  /**
2381
2386
  * Inset Ring Color
@@ -3386,17 +3391,17 @@ const T = (e) => {
3386
3391
  };
3387
3392
  }, Ut = /* @__PURE__ */ At(Ht);
3388
3393
  function Je(e) {
3389
- var t, o, r = "";
3390
- if (typeof e == "string" || typeof e == "number") r += e;
3394
+ var t, o, s = "";
3395
+ if (typeof e == "string" || typeof e == "number") s += e;
3391
3396
  else if (typeof e == "object") if (Array.isArray(e)) {
3392
- var s = e.length;
3393
- for (t = 0; t < s; t++) e[t] && (o = Je(e[t])) && (r && (r += " "), r += o);
3394
- } else for (o in e) e[o] && (r && (r += " "), r += o);
3395
- return r;
3397
+ var r = e.length;
3398
+ for (t = 0; t < r; t++) e[t] && (o = Je(e[t])) && (s && (s += " "), s += o);
3399
+ } else for (o in e) e[o] && (s && (s += " "), s += o);
3400
+ return s;
3396
3401
  }
3397
3402
  function Wt() {
3398
- for (var e, t, o = 0, r = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = Je(e)) && (r && (r += " "), r += t);
3399
- return r;
3403
+ for (var e, t, o = 0, s = "", r = arguments.length; o < r; o++) (e = arguments[o]) && (t = Je(e)) && (s && (s += " "), s += t);
3404
+ return s;
3400
3405
  }
3401
3406
  function Io(...e) {
3402
3407
  return Ut(Wt(e));