@tempots/beatui 0.87.3 → 0.88.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.
Files changed (177) hide show
  1. package/dist/{ar-DjMvIww5.js → ar-MUKILk4c.js} +1 -1
  2. package/dist/auth/index.cjs.js +1 -1
  3. package/dist/auth/index.es.js +1 -1
  4. package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
  5. package/dist/{auth-divider-BIefTDoO.js → auth-divider-DvVmqjnk.js} +101 -103
  6. package/dist/beatui.css +732 -671
  7. package/dist/beatui.tailwind.css +714 -662
  8. package/dist/better-auth/index.cjs.js +1 -1
  9. package/dist/better-auth/index.es.js +12 -12
  10. package/dist/{colors-BmLYKmoH.js → colors-BY0Ja_bf.js} +12 -12
  11. package/dist/{de-wChFYqM4.js → de-CEsW1rVX.js} +1 -1
  12. package/dist/deep-merge-Dgy9xj6w.cjs +1 -0
  13. package/dist/{deep-merge-BRqRzEQs.js → deep-merge-OvVqSLSN.js} +443 -429
  14. package/dist/{duration-input-BDEb1Bb7.js → duration-input-BCXujp0V.js} +5 -5
  15. package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-MJz6UO6E.cjs} +1 -1
  16. package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-Cnta0SOa.js} +6 -3
  17. package/dist/{es-CmPF3IGl.js → es-ChP-aFwC.js} +1 -1
  18. package/dist/{fa-D696e75R.js → fa-CNsrlIqh.js} +1 -1
  19. package/dist/{fr-B0jeX1Hx.js → fr-DgEFKpML.js} +1 -1
  20. package/dist/{he-SgAsIYJA.js → he-B4TqfISZ.js} +1 -1
  21. package/dist/{hi-s9oiIihq.js → hi-TSoDsngT.js} +1 -1
  22. package/dist/{index-KNk3k6NI.js → index-1JaBwDB-.js} +1 -1
  23. package/dist/index-B8cqD9ny.js +838 -0
  24. package/dist/index-CN10Cyqr.cjs +1 -0
  25. package/dist/{index-yMrXbIdg.cjs → index-CTcbhnPw.cjs} +1 -1
  26. package/dist/{index-CaWDj1Vg.cjs → index-D3QVPAme.cjs} +10 -10
  27. package/dist/{index-qa82MK4Z.cjs → index-D4ZFV8Rs.cjs} +1 -1
  28. package/dist/{index-anrXec7K.cjs → index-DF7RFzD9.cjs} +1 -1
  29. package/dist/{index-B0t-nt7i.js → index-DOc1_-Nm.js} +4 -4
  30. package/dist/{index-DdqGL9Jk.js → index-D_aTUfqS.js} +701 -684
  31. package/dist/{index-BFe-x3-z.js → index-DfPkCwdC.js} +2 -2
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.es.js +2285 -2260
  34. package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
  35. package/dist/{input-container-DhUiLmXE.js → input-container-BBWCDGTv.js} +1 -1
  36. package/dist/{it-Dc4IMciD.js → it-BrbebXg4.js} +1 -1
  37. package/dist/{ja-D2t2g5xj.js → ja-DcfOktrV.js} +1 -1
  38. package/dist/json-schema/index.cjs.js +1 -1
  39. package/dist/json-schema/index.es.js +97 -103
  40. package/dist/json-schema-display/index.cjs.js +1 -1
  41. package/dist/json-schema-display/index.es.js +15 -15
  42. package/dist/json-structure/index.cjs.js +1 -1
  43. package/dist/json-structure/index.es.js +349 -351
  44. package/dist/{ko-BRylA5JZ.js → ko-73e6t369.js} +1 -1
  45. package/dist/lexical/index.cjs.js +5 -12
  46. package/dist/lexical/index.es.js +57 -87
  47. package/dist/lexical.css +24 -23
  48. package/dist/markdown/index.cjs.js +1 -1
  49. package/dist/markdown/index.es.js +1 -1
  50. package/dist/markdown.css +7 -7
  51. package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
  52. package/dist/{modal-Dkje8L_l.js → modal-BBJWY7NB.js} +5 -5
  53. package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
  54. package/dist/monaco/index.es.js +1 -1
  55. package/dist/{nl-Dh7LUWAn.js → nl-Bq-1-ulc.js} +1 -1
  56. package/dist/notice-9lpZ-VDn.cjs +1 -0
  57. package/dist/{notice-BmkckDsD.js → notice-AUVH8Lho.js} +26 -28
  58. package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-BQnRjp9P.js} +1740 -1734
  59. package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
  60. package/dist/{pl-XEG-p1Q9.js → pl-Du9-VCfW.js} +1 -1
  61. package/dist/prosemirror/index.cjs.js +1 -1
  62. package/dist/prosemirror/index.es.js +1 -1
  63. package/dist/prosemirror.css +7 -7
  64. package/dist/{pt-DYsDA2sZ.js → pt-B2UqqSAB.js} +1 -1
  65. package/dist/{ru-BTKBykp-.js → ru-DiWa2inw.js} +1 -1
  66. package/dist/stack-4VUGISn6.cjs +1 -0
  67. package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
  68. package/dist/styles-url-4g2WnNJ8.js +4 -0
  69. package/dist/{styles-url-DZhZ-9Bf.js → styles-url-CJYy5nML.js} +1 -1
  70. package/dist/{styles-url-YAJ6Q1GS.cjs → styles-url-D8nVwSmZ.cjs} +1 -1
  71. package/dist/{styles-url-BSUFsmMD.cjs → styles-url-evUdl8tK.cjs} +1 -1
  72. package/dist/{styles-url-BvcVGpBJ.js → styles-url-hKxIOumK.js} +1 -1
  73. package/dist/styles-url-mlDYoWbF.cjs +1 -0
  74. package/dist/tailwind/preset.cjs.js +1 -1
  75. package/dist/tailwind/preset.es.js +2 -2
  76. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  77. package/dist/tailwind/vite-plugin.es.js +1 -1
  78. package/dist/{text-input-BZmAB3_o.js → text-input-6FD7p7hN.js} +5 -5
  79. package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
  80. package/dist/{toolbar-Pdj-F80l.js → toolbar-Cr0JGj5h.js} +1 -1
  81. package/dist/{tr-Cp8ZCUic.js → tr-Culcm2Zb.js} +1 -1
  82. package/dist/{translations-jUYta1_1.js → translations-Cttn6w0G.js} +1 -1
  83. package/dist/{translations-BGblCUBj.js → translations-uEUkO6gJ.js} +30 -30
  84. package/dist/types/auth-i18n/translations.d.ts +2 -2
  85. package/dist/types/beatui-i18n/translations.d.ts +2 -2
  86. package/dist/types/better-auth/components/authenticated.d.ts +2 -2
  87. package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
  88. package/dist/types/better-auth/i18n/translations.d.ts +2 -2
  89. package/dist/types/better-auth/provider.d.ts +2 -2
  90. package/dist/types/components/auth/auth-container.d.ts +1 -1
  91. package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
  92. package/dist/types/components/beatui.d.ts +1 -1
  93. package/dist/types/components/button/button.d.ts +1 -1
  94. package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
  95. package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
  96. package/dist/types/components/data/icon.d.ts +1 -1
  97. package/dist/types/components/data/page-drop-zone.d.ts +1 -1
  98. package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
  99. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
  100. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
  101. package/dist/types/components/form/control/control.d.ts +2 -2
  102. package/dist/types/components/form/control/ensure-control.d.ts +1 -1
  103. package/dist/types/components/form/control/list-control.d.ts +1 -1
  104. package/dist/types/components/form/controller/color-controller.d.ts +4 -4
  105. package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
  106. package/dist/types/components/form/input/base64-input.d.ts +1 -1
  107. package/dist/types/components/form/input/base64s-input.d.ts +1 -1
  108. package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
  109. package/dist/types/components/form/input/email-input.d.ts +1 -1
  110. package/dist/types/components/form/input/file-input.d.ts +1 -1
  111. package/dist/types/components/form/input/files-input.d.ts +1 -1
  112. package/dist/types/components/form/input/input-options.d.ts +1 -1
  113. package/dist/types/components/form/input/list-input.d.ts +1 -1
  114. package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
  115. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
  116. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
  117. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
  118. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
  119. package/dist/types/components/form/input/password-input.d.ts +1 -1
  120. package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
  121. package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
  122. package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
  123. package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
  124. package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
  125. package/dist/types/components/form/input/step-utils.d.ts +5 -0
  126. package/dist/types/components/form/use-form.d.ts +3 -3
  127. package/dist/types/components/i18n/locale-direction.d.ts +1 -1
  128. package/dist/types/components/i18n/locale-selector.d.ts +1 -1
  129. package/dist/types/components/i18n/locale.d.ts +1 -1
  130. package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
  131. package/dist/types/components/layout/app-shell.d.ts +1 -1
  132. package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
  133. package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
  134. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
  135. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
  136. package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
  137. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
  138. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
  139. package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
  140. package/dist/types/components/misc/notification-provider.d.ts +2 -2
  141. package/dist/types/components/navigation/link/button-link.d.ts +1 -1
  142. package/dist/types/components/navigation/link/link.d.ts +1 -1
  143. package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
  144. package/dist/types/components/navigation/pagination.d.ts +1 -1
  145. package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
  146. package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
  147. package/dist/types/components/prosemirror/link-control.d.ts +1 -1
  148. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
  149. package/dist/types/components/prosemirror/utils.d.ts +2 -2
  150. package/dist/types/components/theme/theme.d.ts +2 -2
  151. package/dist/types/i18n/translate.d.ts +1 -1
  152. package/dist/types/tailwind/preset.d.ts +1 -1
  153. package/dist/types/tailwind/vite-plugin.d.ts +1 -1
  154. package/dist/types/tokens/borders.d.ts +104 -0
  155. package/dist/types/tokens/controls.d.ts +127 -0
  156. package/dist/types/tokens/index.d.ts +2 -0
  157. package/dist/types/tokens/radius.d.ts +14 -14
  158. package/dist/types/tokens/typography.d.ts +33 -33
  159. package/dist/types/utils/delay-signal.d.ts +1 -1
  160. package/dist/types/utils/use-animated-toggle.d.ts +22 -22
  161. package/dist/{ur-DkIYJxsF.js → ur-Deb-uH6b.js} +1 -1
  162. package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
  163. package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
  164. package/dist/{use-form-BSvvERhX.js → use-form-lg6-7Brc.js} +14 -13
  165. package/dist/{vi-DKw6PBja.js → vi-CUsCVh3n.js} +1 -1
  166. package/dist/widget-customization-BLvD4Lqt.cjs +1 -0
  167. package/dist/{widget-customization-DFr3ycD7.js → widget-customization-CDD72zYs.js} +29 -29
  168. package/dist/{zh-CaKHseXJ.js → zh-Dil2Jft8.js} +1 -1
  169. package/package.json +35 -31
  170. package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
  171. package/dist/index-BywbRDsb.cjs +0 -1
  172. package/dist/index-D2_J_-XS.js +0 -671
  173. package/dist/notice-DMK7dx9a.cjs +0 -1
  174. package/dist/stack-DcZ_u50f.cjs +0 -1
  175. package/dist/styles-url-CCopc5pG.js +0 -4
  176. package/dist/styles-url-CEDSZTyZ.cjs +0 -1
  177. package/dist/widget-customization-BASfRpF7.cjs +0 -1
@@ -1,26 +1,26 @@
1
- import { Task as xe, Use as F, Value as f, prop as ce, html as h, attr as l, on as C, WithElement as ee, Empty as T, aria as G, bind as re, computedOf as V, style as ye, OnDispose as te, When as U, NotEmpty as Fe, Fragment as E, ForEach as K, coalesce as Re, Ensure as Ne, OneOfType as Pe, Repeat as je, signal as we, input as ne, emitValue as P, emitValueAsNumber as _e } from "@tempots/dom";
2
- import { B as R, b as ke, f as Ce, I as O, d as oe } from "./translations-BGblCUBj.js";
3
- import { l as We } from "./colors-BmLYKmoH.js";
4
- import { g as Ze } from "./timer-Rd2sKnvH.js";
5
- import { ElementRect as He } from "@tempots/ui";
6
- import { I as W, a as qe, g as Ye, B as me } from "./input-container-DhUiLmXE.js";
7
- import { C as ie, m as Ge, c as Je, I as Be, d as ue, O as Q, e as De } from "./use-form-BSvvERhX.js";
8
- import { C as q } from "./text-input-BZmAB3_o.js";
9
- import { S as Ve } from "./stack-BJgsPJ9A.js";
10
- let fe = null;
11
- async function be() {
1
+ import { Task as ye, Use as O, Value as f, prop as ae, html as h, attr as l, on as C, WithElement as te, Empty as S, aria as J, bind as ie, computedOf as V, style as we, OnDispose as ne, When as U, NotEmpty as Re, Fragment as N, ForEach as ee, coalesce as Ne, Ensure as Pe, OneOfType as je, Repeat as We, signal as _e, input as se, emitValue as P, emitValueAsNumber as ke } from "@tempots/dom";
2
+ import { B as F, b as Ce, f as De, I as E, d as ce } from "./translations-uEUkO6gJ.js";
3
+ import { l as Ze } from "./colors-BY0Ja_bf.js";
4
+ import { g as He } from "./timer-Rd2sKnvH.js";
5
+ import { ElementRect as qe } from "@tempots/ui";
6
+ import { I as W, a as Ye, g as Ge, B as be } from "./input-container-BBWCDGTv.js";
7
+ import { C as oe, I as Ve, m as Je, c as Xe, d as fe, O as K, e as Ie } from "./use-form-lg6-7Brc.js";
8
+ import { C as q } from "./text-input-6FD7p7hN.js";
9
+ import { S as Ae } from "./stack-Bm-UZosx.js";
10
+ let pe = null;
11
+ async function he() {
12
12
  const t = globalThis;
13
- return t.Temporal ? t.Temporal : (fe || (fe = import("./index.esm-ChUrm4xR.js").then((e) => {
13
+ return t.Temporal ? t.Temporal : (pe || (pe = import("./index.esm-By0m3ki1.js").then((e) => {
14
14
  const n = e.Temporal;
15
15
  return t.Temporal || (t.Temporal = n), n;
16
- })), fe);
16
+ })), pe);
17
17
  }
18
- const Xe = (t, e) => e ? xe(be, {
18
+ const Qe = (t, e) => e ? ye(he, {
19
19
  then: t,
20
20
  pending: e.pending,
21
21
  error: e.error
22
- }) : xe(be, t);
23
- function pe({
22
+ }) : ye(he, t);
23
+ function de({
24
24
  onChange: t,
25
25
  value: e,
26
26
  accept: n = "*/*",
@@ -29,8 +29,8 @@ function pe({
29
29
  disabled: b = !1,
30
30
  allowMultiple: i
31
31
  }) {
32
- return F(R, (g) => {
33
- const p = f.deriveProp(e ?? []), v = ce(!1), d = (u) => {
32
+ return O(F, (g) => {
33
+ const p = f.deriveProp(e ?? []), v = ae(!1), d = (u) => {
34
34
  u.preventDefault(), u.stopPropagation(), v.value = !0;
35
35
  }, m = (u) => {
36
36
  u.preventDefault(), u.stopPropagation(), (!u.currentTarget || !u.currentTarget.contains(u.relatedTarget)) && (v.value = !1);
@@ -48,7 +48,7 @@ function pe({
48
48
  if (a == null) return;
49
49
  const u = Array.from(a.files ?? []);
50
50
  u.length > 0 && (p.value = u, t(u, "click")), a.value = "";
51
- }, $ = (u) => {
51
+ }, M = (u) => {
52
52
  f.get(s) && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), o(u));
53
53
  };
54
54
  return h.div(
@@ -61,7 +61,7 @@ function pe({
61
61
  C.dragleave(m),
62
62
  C.drop(y),
63
63
  C.click(o),
64
- C.keydown($),
64
+ C.keydown(M),
65
65
  // Hidden file input
66
66
  h.input(
67
67
  l.type("file"),
@@ -72,34 +72,34 @@ function pe({
72
72
  "position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
73
73
  ),
74
74
  C.change(D),
75
- ee((u) => (a = u, p.on((x) => {
76
- const M = globalThis.DataTransfer;
77
- if (M != null) {
78
- const I = new M();
75
+ te((u) => (a = u, p.on((x) => {
76
+ const $ = globalThis.DataTransfer;
77
+ if ($ != null) {
78
+ const I = new $();
79
79
  x.forEach((A) => I.items.add(A)), u.files = I.files;
80
80
  }
81
- }), T))
81
+ }), S))
82
82
  ),
83
83
  // Screen reader instructions
84
- G.label(re(g.$.dropZoneInstructions)(s)),
84
+ J.label(ie(g.$.dropZoneInstructions)(s)),
85
85
  // Content
86
86
  r({ files: p, clear: () => p.value = [], change: p.set })
87
87
  );
88
88
  });
89
89
  }
90
- function Qe(t, e) {
90
+ function Ke(t, e) {
91
91
  return t.length === e.length && t.every((n, s) => n === e[s]);
92
92
  }
93
- function Ke(t, e, n) {
93
+ function et(t, e, n) {
94
94
  const s = ["bc-segmented-input", `bc-segmented-input--size-${t}`];
95
95
  return n === "squared" && s.push("bc-segmented-input--squared"), e && s.push("bc-segmented-input--disabled"), s.join(" ");
96
96
  }
97
- function et(t) {
97
+ function tt(t) {
98
98
  if (t == null) return "";
99
- const e = /* @__PURE__ */ new Map(), n = ke(t, "solid", "light"), s = ke(t, "solid", "dark");
99
+ const e = /* @__PURE__ */ new Map(), n = Ce(t, "solid", "light"), s = Ce(t, "solid", "dark");
100
100
  return e.set("--si-indicator-bg", n.backgroundColor), e.set("--si-active-text", n.textColor), e.set("--si-indicator-bg-dark", s.backgroundColor), e.set("--si-active-text-dark", s.textColor), Array.from(e.entries()).map(([r, b]) => `${r}: ${b}`).join("; ");
101
101
  }
102
- function It({
102
+ function Mt({
103
103
  options: t,
104
104
  value: e,
105
105
  onChange: n,
@@ -108,16 +108,16 @@ function It({
108
108
  variant: b = "pill",
109
109
  color: i
110
110
  }, ...g) {
111
- const p = We(t).map(([v, d]) => ({
111
+ const p = Ze(t).map(([v, d]) => ({
112
112
  key: v,
113
113
  label: d
114
114
  }));
115
- return ee(() => {
115
+ return te(() => {
116
116
  const v = Object.fromEntries(
117
117
  p.map((m, y) => [m.key, y])
118
- ), d = ce(
118
+ ), d = ae(
119
119
  p.map(() => ({ left: 0, width: 0 })),
120
- Qe
120
+ Ke
121
121
  );
122
122
  return h.div(
123
123
  l.class(
@@ -126,7 +126,7 @@ function It({
126
126
  r,
127
127
  b
128
128
  )(
129
- (m, y, o) => Ke(
129
+ (m, y, o) => et(
130
130
  m ?? "md",
131
131
  y ?? !1,
132
132
  o ?? "pill"
@@ -134,13 +134,13 @@ function It({
134
134
  )
135
135
  ),
136
136
  l.style(
137
- i != null ? f.map(i, (m) => et(m)) : ""
137
+ i != null ? f.map(i, (m) => tt(m)) : ""
138
138
  ),
139
139
  h.div(
140
140
  l.class("bc-segmented-input__container"),
141
141
  h.div(
142
142
  l.class("bc-segmented-input__indicator"),
143
- ye.width(
143
+ we.width(
144
144
  V(
145
145
  e,
146
146
  d
@@ -149,7 +149,7 @@ function It({
149
149
  return `${o}px`;
150
150
  })
151
151
  ),
152
- ye.left(
152
+ we.left(
153
153
  V(
154
154
  e,
155
155
  d
@@ -170,7 +170,7 @@ function It({
170
170
  l.class(
171
171
  f.map(e, (a) => a === y ? "bc-segmented-input__segment--active" : "bc-segmented-input__segment--inactive")
172
172
  ),
173
- He((a) => {
173
+ qe((a) => {
174
174
  function D() {
175
175
  d.update((u) => {
176
176
  const x = [...u];
@@ -180,8 +180,8 @@ function It({
180
180
  }, x;
181
181
  });
182
182
  }
183
- const $ = Ze(D);
184
- return te($, a.on(D));
183
+ const M = He(D);
184
+ return ne(M, a.on(D));
185
185
  }),
186
186
  m
187
187
  ))
@@ -190,25 +190,25 @@ function It({
190
190
  );
191
191
  });
192
192
  }
193
- function tt(t) {
193
+ function nt(t) {
194
194
  const e = t.type.toLowerCase();
195
195
  return e.startsWith("image/") && (e.includes("jpeg") || e.includes("jpg") || e.includes("png") || e.includes("gif") || e.includes("webp") || e.includes("svg"));
196
196
  }
197
- function nt(t) {
197
+ function st(t) {
198
198
  const e = t.type.toLowerCase();
199
199
  return e.startsWith("image/") ? "vscode-icons:file-type-image" : e.startsWith("video/") ? "vscode-icons:file-type-video" : e.startsWith("audio/") ? "vscode-icons:file-type-audio" : e.includes("pdf") ? "vscode-icons:file-type-pdf2" : e.includes("word") || e.includes("document") ? "vscode-icons:file-type-word" : e.includes("excel") || e.includes("spreadsheet") ? "vscode-icons:file-type-excel" : e.includes("powerpoint") || e.includes("presentation") ? "vscode-icons:file-type-powerpoint" : e.includes("zip") || e.includes("archive") ? "vscode-icons:file-type-zip" : e.includes("text") ? "vscode-icons:file-type-text" : e.includes("json") ? "vscode-icons:file-type-json-official" : e.includes("csv") ? "vscode-icons:file-type-csv" : e.includes("xml") ? "vscode-icons:file-type-xml" : e.includes("yaml") ? "vscode-icons:file-type-yaml-official" : "vscode-icons:file-type-binary";
200
200
  }
201
- function de(t) {
201
+ function me(t) {
202
202
  return U(
203
- t.map(tt),
203
+ t.map(nt),
204
204
  () => {
205
- const e = ce(null);
205
+ const e = ae(null);
206
206
  return t.on((n) => {
207
207
  e.value && URL.revokeObjectURL(e.value);
208
208
  const s = URL.createObjectURL(n);
209
209
  e.value = s;
210
210
  }), h.div(
211
- te(() => {
211
+ ne(() => {
212
212
  e.value && URL.revokeObjectURL(e.value);
213
213
  }),
214
214
  l.class("bc-file-input__thumbnail-container"),
@@ -219,12 +219,12 @@ function de(t) {
219
219
  )
220
220
  );
221
221
  },
222
- () => O({ icon: t.map(nt) })
222
+ () => E({ icon: t.map(st) })
223
223
  );
224
224
  }
225
- const $t = (t, ...e) => {
225
+ const St = (t, ...e) => {
226
226
  const {
227
- value: n = ce([]),
227
+ value: n = ae([]),
228
228
  accept: s = "*/*",
229
229
  maxFiles: r,
230
230
  maxFileSize: b,
@@ -235,7 +235,7 @@ const $t = (t, ...e) => {
235
235
  mode: d = "default",
236
236
  showFileList: m = !0,
237
237
  ...y
238
- } = t, o = n, a = f.map(d, (k) => k === "input"), D = f.map(d, (k) => k === "compact"), $ = (k) => {
238
+ } = t, o = n, a = f.map(d, (k) => k === "input"), D = f.map(d, (k) => k === "compact"), M = (k) => {
239
239
  let c = k;
240
240
  if (r != null) {
241
241
  const w = f.get(r);
@@ -243,54 +243,54 @@ const $t = (t, ...e) => {
243
243
  }
244
244
  if (b) {
245
245
  const w = f.get(b);
246
- c = c.filter((S) => S.size <= w);
246
+ c = c.filter((T) => T.size <= w);
247
247
  }
248
248
  i?.(c);
249
249
  }, u = (k) => {
250
- const w = o.value.filter((S, z) => z !== k);
250
+ const w = o.value.filter((T, z) => z !== k);
251
251
  i?.(w);
252
252
  }, x = () => {
253
253
  i?.([]);
254
- }, M = ({
254
+ }, $ = ({
255
255
  files: k,
256
256
  clear: c,
257
257
  change: w
258
- }) => F(
259
- R,
260
- (S) => h.div(
258
+ }) => O(
259
+ F,
260
+ (T) => h.div(
261
261
  l.class("bc-file-input__drop-zone"),
262
262
  h.div(
263
263
  l.class(
264
264
  "bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"
265
265
  ),
266
- O({ icon: "mdi:cloud-upload-outline", size: "xl" }),
266
+ E({ icon: "mdi:cloud-upload-outline", size: "xl" }),
267
267
  h.div(
268
268
  l.class("bc-file-input__drop-zone-text"),
269
- re(S.$.filesInputInstructions)(
269
+ ie(T.$.filesInputInstructions)(
270
270
  r,
271
271
  b,
272
- S.$.fileSizeUnits.value
272
+ T.$.fileSizeUnits.value
273
273
  )
274
274
  )
275
275
  )
276
276
  )
277
277
  ), I = ({
278
278
  files: k
279
- }) => F(
280
- R,
279
+ }) => O(
280
+ F,
281
281
  (c) => h.div(
282
282
  l.class("bc-file-input__compact-drop-zone"),
283
283
  U(
284
284
  k.map((w) => w.length > 0),
285
285
  () => h.div(
286
286
  l.class("bc-file-input__compact-file-list"),
287
- K(k, (w, S) => {
288
- const z = S.index;
287
+ ee(k, (w, T) => {
288
+ const z = T.index;
289
289
  return h.div(
290
290
  l.class("bc-file-input__compact-file-item"),
291
291
  h.div(
292
292
  l.class("bc-file-input__compact-file-icon"),
293
- de(w)
293
+ me(w)
294
294
  ),
295
295
  h.div(
296
296
  l.class("bc-file-input__compact-file-info"),
@@ -304,7 +304,7 @@ const $t = (t, ...e) => {
304
304
  V(
305
305
  w.$.size,
306
306
  c.$.fileSizeUnits
307
- )((_, B) => Ce(_, { units: B })),
307
+ )((_, B) => De(_, { units: B })),
308
308
  " • ",
309
309
  V(
310
310
  w.$.type,
@@ -312,7 +312,7 @@ const $t = (t, ...e) => {
312
312
  )((_, B) => _ || B)
313
313
  )
314
314
  ),
315
- ie(
315
+ oe(
316
316
  {
317
317
  size: "sm",
318
318
  label: c.$.removeFile,
@@ -326,10 +326,10 @@ const $t = (t, ...e) => {
326
326
  ),
327
327
  () => h.div(
328
328
  l.class("bc-file-input__compact-placeholder"),
329
- O({ icon: "mdi:cloud-upload-outline", size: "lg" }),
329
+ E({ icon: "mdi:cloud-upload-outline", size: "lg" }),
330
330
  h.div(
331
331
  l.class("bc-file-input__compact-placeholder-text"),
332
- re(c.$.filesInputInstructions)(
332
+ ie(c.$.filesInputInstructions)(
333
333
  r,
334
334
  b,
335
335
  c.$.fileSizeUnits.value
@@ -340,19 +340,19 @@ const $t = (t, ...e) => {
340
340
  )
341
341
  ), A = ({
342
342
  files: k
343
- }) => F(
344
- R,
343
+ }) => O(
344
+ F,
345
345
  (c) => h.div(
346
346
  l.class("bc-file-input__compact-input"),
347
347
  U(
348
348
  k.map((w) => w.length > 0),
349
349
  () => h.span(
350
350
  l.class("bc-file-input__compact-value"),
351
- K(
351
+ ee(
352
352
  k,
353
353
  (w) => h.span(
354
354
  l.class("bc-file-input__compact-value-item"),
355
- de(w),
355
+ me(w),
356
356
  h.span(
357
357
  l.class("bc-file-input__compact-value-item-name"),
358
358
  w.$.name
@@ -362,9 +362,9 @@ const $t = (t, ...e) => {
362
362
  ),
363
363
  () => h.span(
364
364
  l.class("bc-file-input__compact-placeholder"),
365
- O({ icon: "mdi:cloud-upload-outline", size: "md" }),
365
+ E({ icon: "mdi:cloud-upload-outline", size: "md" }),
366
366
  " ",
367
- re(c.$.filesInputInstructions)(
367
+ ie(c.$.filesInputInstructions)(
368
368
  r,
369
369
  b,
370
370
  c.$.fileSizeUnits.value
@@ -373,8 +373,8 @@ const $t = (t, ...e) => {
373
373
  )
374
374
  )
375
375
  );
376
- return F(
377
- R,
376
+ return O(
377
+ F,
378
378
  (k) => W(
379
379
  {
380
380
  baseContainer: f.map(a, (c) => !c),
@@ -384,7 +384,7 @@ const $t = (t, ...e) => {
384
384
  a,
385
385
  () => U(
386
386
  o.map(({ length: c }) => c > 0),
387
- () => ie(
387
+ () => oe(
388
388
  {
389
389
  size: "sm",
390
390
  label: k.$.clearAllFiles,
@@ -400,13 +400,13 @@ const $t = (t, ...e) => {
400
400
  a,
401
401
  () => h.div(
402
402
  l.class("bc-file-input bc-file-input--input"),
403
- pe({
403
+ de({
404
404
  value: o,
405
405
  accept: s,
406
406
  enableClick: !0,
407
407
  allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
408
408
  disabled: p,
409
- onChange: $,
409
+ onChange: M,
410
410
  content: A
411
411
  })
412
412
  ),
@@ -414,41 +414,41 @@ const $t = (t, ...e) => {
414
414
  D,
415
415
  () => h.div(
416
416
  l.class("bc-file-input bc-file-input--compact"),
417
- pe({
417
+ de({
418
418
  value: o,
419
419
  accept: s,
420
420
  enableClick: !0,
421
421
  allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
422
422
  disabled: p,
423
- onChange: $,
423
+ onChange: M,
424
424
  content: I
425
425
  })
426
426
  ),
427
427
  () => h.div(
428
428
  l.class("bc-file-input"),
429
- pe({
429
+ de({
430
430
  value: o,
431
431
  accept: s,
432
432
  enableClick: !0,
433
433
  allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
434
434
  disabled: p,
435
- onChange: $,
436
- content: M
435
+ onChange: M,
436
+ content: $
437
437
  }),
438
438
  U(
439
439
  m,
440
- () => Fe(
440
+ () => Re(
441
441
  o,
442
- () => E(
442
+ () => N(
443
443
  h.div(
444
444
  l.class("bc-file-input__file-list"),
445
- K(o, (c, w) => {
446
- const S = w.index;
445
+ ee(o, (c, w) => {
446
+ const T = w.index;
447
447
  return h.div(
448
448
  l.class("bc-file-input__file-item"),
449
449
  h.div(
450
450
  l.class("bc-file-input__file-icon"),
451
- de(c)
451
+ me(c)
452
452
  ),
453
453
  h.div(
454
454
  l.class("bc-file-input__file-info"),
@@ -463,7 +463,7 @@ const $t = (t, ...e) => {
463
463
  c.$.size,
464
464
  k.$.fileSizeUnits
465
465
  )(
466
- (z, _) => Ce(z, { units: _ })
466
+ (z, _) => De(z, { units: _ })
467
467
  ),
468
468
  " • ",
469
469
  V(
@@ -472,12 +472,12 @@ const $t = (t, ...e) => {
472
472
  )((z, _) => z || _)
473
473
  )
474
474
  ),
475
- ie(
475
+ oe(
476
476
  {
477
477
  size: "sm",
478
478
  label: k.$.removeFile,
479
479
  disabled: p,
480
- onClick: () => u(S)
480
+ onClick: () => u(T)
481
481
  },
482
482
  l.class("bc-file-input__remove-button")
483
483
  )
@@ -511,27 +511,27 @@ const $t = (t, ...e) => {
511
511
  ...e
512
512
  )
513
513
  );
514
- }, he = "$$tts-exp-", st = (t, e) => ee((n) => {
515
- const s = `${he}${t}`;
516
- return te(f.on(e, (r) => Reflect.set(n, s, r)));
517
- }), Mt = (t, e) => {
518
- const n = `${he}${t}`;
514
+ }, ge = "$$tts-exp-", lt = (t, e) => te((n) => {
515
+ const s = `${ge}${t}`;
516
+ return ne(f.on(e, (r) => Reflect.set(n, s, r)));
517
+ }), Tt = (t, e) => {
518
+ const n = `${ge}${t}`;
519
519
  return (s) => {
520
520
  e(Reflect.get(s.target, n));
521
521
  };
522
- }, lt = (t, e) => {
523
- const n = `${he}${t}`;
522
+ }, rt = (t, e) => {
523
+ const n = `${ge}${t}`;
524
524
  return (s) => {
525
525
  const r = s.target, b = r.selectedIndex, i = r.options[b];
526
526
  e(Reflect.get(i, n));
527
527
  };
528
528
  };
529
- function Ie(...t) {
529
+ function $e(...t) {
530
530
  return h.div(l.class("bc-group"), ...t);
531
531
  }
532
- const Ae = (t, e, n) => Ne(
532
+ const Le = (t, e, n) => Pe(
533
533
  t,
534
- (s) => Pe(s, {
534
+ (s) => je(s, {
535
535
  value: (r) => {
536
536
  const b = V(
537
537
  r,
@@ -539,15 +539,15 @@ const Ae = (t, e, n) => Ne(
539
539
  )((i, g) => e(i.value, g));
540
540
  return h.option(
541
541
  l.selected(b),
542
- st("value", r.$.value),
542
+ lt("value", r.$.value),
543
543
  r.$.label
544
544
  );
545
545
  },
546
546
  group: (r) => h.optgroup(
547
547
  l.label(r.$.group),
548
- K(
548
+ ee(
549
549
  r.$.options,
550
- (b) => Ae(
550
+ (b) => Le(
551
551
  b,
552
552
  e,
553
553
  n
@@ -556,7 +556,7 @@ const Ae = (t, e, n) => Ne(
556
556
  ),
557
557
  break: () => h.hr()
558
558
  })
559
- ), rt = (t) => {
559
+ ), it = (t) => {
560
560
  const {
561
561
  value: e,
562
562
  onBlur: n,
@@ -570,8 +570,8 @@ const Ae = (t, e, n) => Ne(
570
570
  return W(
571
571
  {
572
572
  ...t,
573
- after: E(
574
- qe({
573
+ after: N(
574
+ Ye({
575
575
  icon: "ph:caret-down-bold",
576
576
  color: "neutral",
577
577
  size: "sm"
@@ -579,26 +579,26 @@ const Ae = (t, e, n) => Ne(
579
579
  g
580
580
  ),
581
581
  input: h.select(
582
- ee((v) => {
582
+ te((v) => {
583
583
  p = v;
584
584
  const d = new MutationObserver((m) => {
585
585
  const { removedNodes: y } = m[0];
586
586
  y.length > 0 && (p.selectedIndex = 0);
587
587
  });
588
- return d.observe(v, { childList: !0 }), te(() => d.disconnect());
588
+ return d.observe(v, { childList: !0 }), ne(() => d.disconnect());
589
589
  }),
590
590
  q(t),
591
591
  l.class("bc-native-select bc-input"),
592
- F(
593
- R,
592
+ O(
593
+ F,
594
594
  (v) => h.option(
595
595
  l.hidden("hidden"),
596
- Re(b, v.$.selectOne)
596
+ Ne(b, v.$.selectOne)
597
597
  )
598
598
  ),
599
- K(r, (v) => Ae(v, i, e)),
600
- n != null ? C.blur(n) : T,
601
- s != null ? C.change(lt("value", (v) => s(v))) : T
599
+ ee(r, (v) => Le(v, i, e)),
600
+ n != null ? C.blur(n) : S,
601
+ s != null ? C.change(rt("value", (v) => s(v))) : S
602
602
  )
603
603
  },
604
604
  C.click(() => {
@@ -610,91 +610,89 @@ const Ae = (t, e, n) => Ne(
610
610
  })
611
611
  );
612
612
  };
613
- function it(t) {
613
+ function ot(t) {
614
614
  const { controller: e, onChange: n, onBlur: s, ...r } = t;
615
- return rt({
615
+ return it({
616
616
  ...r,
617
617
  value: e.signal,
618
- onChange: Je(e, n),
619
- onBlur: Ge(e, s)
618
+ onChange: Xe(e, n),
619
+ onBlur: Je(e, s)
620
620
  });
621
621
  }
622
- function Tt(t) {
623
- return Be({
622
+ function zt(t) {
623
+ return Ve({
624
624
  ...t,
625
- content: it(t)
625
+ content: ot(t)
626
626
  });
627
627
  }
628
- function ot(t, e, n) {
628
+ function ct(t, e, n) {
629
629
  const s = t.length.map((r) => r);
630
- return E(
631
- je(
632
- s,
633
- (r) => {
634
- const b = t.item(r.index), i = [];
635
- return E(
636
- te(() => {
637
- i.forEach((g) => g());
638
- }),
639
- e({
640
- list: t,
641
- item: b,
642
- position: r,
643
- remove: () => t.removeAt(r.index),
644
- move: (g) => {
630
+ return We(
631
+ s,
632
+ (r) => {
633
+ const b = t.item(r.index), i = [];
634
+ return N(
635
+ ne(() => {
636
+ i.forEach((g) => g());
637
+ }),
638
+ e({
639
+ list: t,
640
+ item: b,
641
+ position: r,
642
+ remove: () => t.removeAt(r.index),
643
+ move: (g) => {
644
+ switch (g) {
645
+ case "up":
646
+ if (r.index === 0) return;
647
+ t.move(r.index, r.index - 1);
648
+ break;
649
+ case "down":
650
+ if (r.index === t.length.value - 1) return;
651
+ t.move(r.index, r.index + 1);
652
+ break;
653
+ case "first":
654
+ t.move(r.index, 0);
655
+ break;
656
+ case "last":
657
+ t.move(r.index, t.length.value - 1);
658
+ }
659
+ },
660
+ canMove: (g) => {
661
+ const p = (() => {
645
662
  switch (g) {
646
663
  case "up":
647
- if (r.index === 0) return;
648
- t.move(r.index, r.index - 1);
649
- break;
664
+ return _e(r.index > 0);
650
665
  case "down":
651
- if (r.index === t.length.value - 1) return;
652
- t.move(r.index, r.index + 1);
653
- break;
654
- case "first":
655
- t.move(r.index, 0);
656
- break;
657
- case "last":
658
- t.move(r.index, t.length.value - 1);
666
+ return t.length.map((v) => r.index < v - 1);
659
667
  }
660
- },
661
- canMove: (g) => {
662
- const p = (() => {
663
- switch (g) {
664
- case "up":
665
- return we(r.index > 0);
666
- case "down":
667
- return t.length.map((v) => r.index < v - 1);
668
- }
669
- })();
670
- return i.push(() => p.dispose()), p;
671
- },
672
- cannotMove: (g) => {
673
- const p = (() => {
674
- switch (g) {
675
- case "up":
676
- return we(r.index === 0);
677
- case "down":
678
- return t.length.map((v) => r.index === v - 1);
679
- }
680
- })();
681
- return i.push(() => p.dispose()), p;
682
- }
683
- })
684
- );
685
- },
686
- n
687
- )
668
+ })();
669
+ return i.push(() => p.dispose()), p;
670
+ },
671
+ cannotMove: (g) => {
672
+ const p = (() => {
673
+ switch (g) {
674
+ case "up":
675
+ return _e(r.index === 0);
676
+ case "down":
677
+ return t.length.map((v) => r.index === v - 1);
678
+ }
679
+ })();
680
+ return i.push(() => p.dispose()), p;
681
+ }
682
+ })
683
+ );
684
+ },
685
+ n
688
686
  );
689
687
  }
690
- const $e = {
688
+ const Me = {
691
689
  9: { pattern: /^[0-9]$/ },
692
690
  A: { pattern: /^[A-Za-z]$/, transform: (t) => t.toUpperCase() },
693
691
  "*": { pattern: /^.$/ }
694
- }, ct = (t) => t instanceof RegExp;
695
- function Le(t, e, n) {
692
+ }, at = (t) => t instanceof RegExp;
693
+ function Ue(t, e, n) {
696
694
  if (t == null) return [];
697
- const s = n ? { ...$e, ...e } : e ?? $e, r = (i, g) => {
695
+ const s = n ? { ...Me, ...e } : e ?? Me, r = (i, g) => {
698
696
  const p = s[g];
699
697
  p ? i.push({ type: "pattern", name: g, ...p }) : i.push({ type: "literal", char: g });
700
698
  }, b = [];
@@ -706,10 +704,10 @@ function Le(t, e, n) {
706
704
  if (typeof i == "string")
707
705
  if (i.length <= 1) r(b, i);
708
706
  else for (const g of i) r(b, g);
709
- else ct(i) ? b.push({ type: "pattern", pattern: i }) : typeof i == "object" && i && b.push(i);
707
+ else at(i) ? b.push({ type: "pattern", pattern: i }) : typeof i == "object" && i && b.push(i);
710
708
  return b;
711
709
  }
712
- function at(t, e) {
710
+ function ut(t, e) {
713
711
  return (n) => {
714
712
  switch (t) {
715
713
  case "digits":
@@ -725,30 +723,30 @@ function at(t, e) {
725
723
  }
726
724
  };
727
725
  }
728
- function Me(t, e, n, s, r, b) {
726
+ function Se(t, e, n, s, r, b) {
729
727
  const i = {
730
728
  raw: t,
731
729
  previousConformed: e,
732
730
  cursor: r ?? t.length,
733
731
  completed: !1
734
- }, g = s.definitions ?? {}, p = typeof n == "function" ? n(t, i) : n, v = Le(
732
+ }, g = s.definitions ?? {}, p = typeof n == "function" ? n(t, i) : n, v = Ue(
735
733
  p,
736
734
  g,
737
735
  s.useDefaultDefinitions ?? !0
738
- ), d = at(s.allowMode, s.allow), m = /* @__PURE__ */ new Set();
736
+ ), d = ut(s.allowMode, s.allow), m = /* @__PURE__ */ new Set();
739
737
  for (const _ of v) _.type === "literal" && m.add(_.char);
740
738
  if (s.prefix) for (const _ of s.prefix) m.add(_);
741
739
  if (s.suffix) for (const _ of s.suffix) m.add(_);
742
740
  const y = Array.from(t).filter((_) => d(_) && !m.has(_));
743
741
  if (y.length === 0) return { value: "", cursor: 0, completed: !1 };
744
742
  const o = [], a = [];
745
- let D = 0, $ = 0, u = 0, x = -1;
743
+ let D = 0, M = 0, u = 0, x = -1;
746
744
  for (const _ of v) {
747
745
  if (_.type === "literal") {
748
746
  o.push(_.char), a.push({ kind: "literal", filled: !0 });
749
747
  continue;
750
748
  }
751
- $ += _.optional ? 0 : 1;
749
+ M += _.optional ? 0 : 1;
752
750
  const B = y[D];
753
751
  if (B == null)
754
752
  break;
@@ -759,14 +757,14 @@ function Me(t, e, n, s, r, b) {
759
757
  if (_.type === "pattern")
760
758
  if (_.pattern.test(B)) {
761
759
  u++;
762
- const N = _.transform ? _.transform(B) : B;
763
- o.push(N), a.push({ kind: "slot", filled: !0 }), x = a.length - 1, D++;
760
+ const R = _.transform ? _.transform(B) : B;
761
+ o.push(R), a.push({ kind: "slot", filled: !0 }), x = a.length - 1, D++;
764
762
  } else {
765
763
  D++;
766
764
  continue;
767
765
  }
768
766
  }
769
- const M = o.join(""), I = (s.prefix ?? "") + M + (s.suffix ?? "");
767
+ const $ = o.join(""), I = (s.prefix ?? "") + $ + (s.suffix ?? "");
770
768
  let k = (s.prefix ?? "").length;
771
769
  if (x >= 0) {
772
770
  let _ = x + 1;
@@ -774,15 +772,15 @@ function Me(t, e, n, s, r, b) {
774
772
  for (; _ < a.length && a[_].kind === "literal"; ) _++;
775
773
  k += _;
776
774
  }
777
- const c = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= u : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(I) : $ > 0 && u >= $, w = s.pipe?.(I, { ...i, completed: c });
778
- let S, z = k;
779
- return w === !1 ? (S = e, z = e.length) : typeof w == "string" ? (S = w, z = w.length) : typeof w == "object" && w ? (S = w.value, z = w.cursor ?? w.value.length) : S = I, { value: S, cursor: z, completed: c };
775
+ const c = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= u : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(I) : M > 0 && u >= M, w = s.pipe?.(I, { ...i, completed: c });
776
+ let T, z = k;
777
+ return w === !1 ? (T = e, z = e.length) : typeof w == "string" ? (T = w, z = w.length) : typeof w == "object" && w ? (T = w.value, z = w.cursor ?? w.value.length) : T = I, { value: T, cursor: z, completed: c };
780
778
  }
781
- function ut(t, e) {
779
+ function ft(t, e) {
782
780
  const n = e?.strategy ?? "none";
783
781
  return n === "custom" && e?.unmask ? e.unmask(t) : n === "strip" ? t.replace(/[^A-Za-z0-9]/g, "") : t;
784
782
  }
785
- const Ue = (t) => {
783
+ const Ee = (t) => {
786
784
  const {
787
785
  value: e,
788
786
  onBlur: n,
@@ -799,10 +797,10 @@ const Ue = (t) => {
799
797
  autofix: o,
800
798
  pipe: a,
801
799
  completion: D,
802
- unmask: $,
800
+ unmask: M,
803
801
  allowMode: u,
804
802
  allow: x,
805
- placeholder: M,
803
+ placeholder: $,
806
804
  placeholderOptions: I
807
805
  } = t, A = V(
808
806
  e,
@@ -814,124 +812,122 @@ const Ue = (t) => {
814
812
  y,
815
813
  o,
816
814
  D,
817
- $,
818
- u,
819
815
  M,
816
+ u,
817
+ $,
820
818
  I
821
- )((c, w, S, z, _, B, N, J, X, Y, Z, se, j) => w ? Me(c ?? "", "", w, {
822
- definitions: S ?? {},
819
+ )((c, w, T, z, _, B, R, X, Q, Y, Z, le, j) => w ? Se(c ?? "", "", w, {
820
+ definitions: T ?? {},
823
821
  useDefaultDefinitions: z ?? !0,
824
822
  extraLiterals: _ ?? [],
825
- autofix: J ?? "none",
826
- completion: X ?? { mode: "mask" },
823
+ autofix: X ?? "none",
824
+ completion: Q ?? { mode: "mask" },
827
825
  pipe: a ?? ((L) => L),
828
826
  unmask: Y ?? { strategy: "none" },
829
827
  allowMode: Z ?? "all",
830
828
  allow: x,
831
829
  prefix: B,
832
- suffix: N
830
+ suffix: R
833
831
  }).value : c ?? ""), k = (c, w) => {
834
- const S = c.value ?? "", z = f.get(e) ?? "", _ = g != null ? f.get(g) : null, B = p != null ? f.get(p) : void 0, N = v != null ? f.get(v) : void 0, J = d != null ? f.get(d) : void 0, X = o != null ? f.get(o) : void 0, Y = D != null ? f.get(D) : void 0, Z = $ != null ? f.get($) : void 0, se = u != null ? f.get(u) : void 0, j = m != null ? f.get(m) : void 0, L = y != null ? f.get(y) : void 0, {
832
+ const T = c.value ?? "", z = f.get(e) ?? "", _ = g != null ? f.get(g) : null, B = p != null ? f.get(p) : void 0, R = v != null ? f.get(v) : void 0, X = d != null ? f.get(d) : void 0, Q = o != null ? f.get(o) : void 0, Y = D != null ? f.get(D) : void 0, Z = M != null ? f.get(M) : void 0, le = u != null ? f.get(u) : void 0, j = m != null ? f.get(m) : void 0, L = y != null ? f.get(y) : void 0, {
835
833
  value: H,
836
- cursor: ae,
837
- completed: ge
838
- } = _ ? Me(
839
- S,
834
+ cursor: ue,
835
+ completed: ve
836
+ } = _ ? Se(
837
+ T,
840
838
  z,
841
839
  _,
842
840
  {
843
841
  definitions: B ?? {},
844
- useDefaultDefinitions: N ?? !0,
845
- extraLiterals: J ?? [],
846
- autofix: X ?? "none",
842
+ useDefaultDefinitions: R ?? !0,
843
+ extraLiterals: X ?? [],
844
+ autofix: Q ?? "none",
847
845
  completion: Y ?? { mode: "mask" },
848
- pipe: a ?? ((Oe) => Oe),
846
+ pipe: a ?? ((Fe) => Fe),
849
847
  unmask: Z ?? { strategy: "none" },
850
- allowMode: se ?? "all",
848
+ allowMode: le ?? "all",
851
849
  allow: x,
852
850
  prefix: j,
853
851
  suffix: L
854
852
  },
855
- c.selectionStart ?? S.length,
853
+ c.selectionStart ?? T.length,
856
854
  t.cursor ? f.get(t.cursor) : void 0
857
- ) : { value: S, cursor: S.length, completed: !0 };
858
- if (H !== S) {
855
+ ) : { value: T, cursor: T.length, completed: !0 };
856
+ if (H !== T) {
859
857
  c.value = H;
860
858
  try {
861
- c.setSelectionRange(ae, ae);
859
+ c.setSelectionRange(ue, ue);
862
860
  } catch {
863
861
  }
864
862
  }
865
- const ve = ut(H, Z);
863
+ const xe = ft(H, Z);
866
864
  b?.({
867
- raw: ve,
865
+ raw: xe,
868
866
  conformed: H,
869
- completed: ge,
870
- cursor: ae
871
- }), w === "input" ? r?.(H) : (s?.(H), ge && i?.({ raw: ve, conformed: H }));
867
+ completed: ve,
868
+ cursor: ue
869
+ }), w === "input" ? r?.(H) : (s?.(H), ve && i?.({ raw: xe, conformed: H }));
872
870
  };
873
- return E(
874
- W({
875
- ...t,
876
- input: ne.text(
877
- q(t),
878
- l.value(A),
879
- l.class("bc-input"),
880
- n != null ? C.blur(n) : T,
881
- ee(
882
- (c) => c instanceof HTMLInputElement ? E(
883
- C.input(() => k(c, "input")),
884
- C.change(() => k(c, "change")),
885
- C.keydown((w) => {
886
- if (w.key !== "Backspace" || !(t.cursor ? f.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
887
- const z = c.selectionStart ?? 0, _ = c.selectionEnd ?? z;
888
- if (z !== _ || z <= 0) return;
889
- const B = c.value ?? "", N = g != null ? f.get(g) : null;
890
- if (!N) return;
891
- const J = p != null ? f.get(p) : void 0, X = v != null ? f.get(v) : !0, Y = m != null ? f.get(m) : void 0, Z = y != null ? f.get(y) : void 0, se = Le(
892
- typeof N == "function" ? N(B, {
893
- raw: B,
894
- previousConformed: B,
895
- cursor: z,
896
- completed: !1
897
- }) : N,
898
- J ?? {},
899
- X ?? !0
900
- ), j = /* @__PURE__ */ new Set();
901
- for (const L of se)
902
- L.type === "literal" && j.add(L.char);
903
- if (Y) for (const L of Y) j.add(L);
904
- if (Z) for (const L of Z) j.add(L);
905
- if (j.has(B[z - 1])) {
906
- let L = z - 1;
907
- for (; L >= 0 && j.has(B[L]); ) L--;
908
- L >= 0 && (w.preventDefault(), w.stopPropagation(), c.value = B.slice(0, L) + B.slice(L + 1), k(c, "input"));
909
- }
910
- })
911
- ) : T
912
- )
871
+ return W({
872
+ ...t,
873
+ input: se.text(
874
+ q(t),
875
+ l.value(A),
876
+ l.class("bc-input"),
877
+ n != null ? C.blur(n) : S,
878
+ te(
879
+ (c) => c instanceof HTMLInputElement ? N(
880
+ C.input(() => k(c, "input")),
881
+ C.change(() => k(c, "change")),
882
+ C.keydown((w) => {
883
+ if (w.key !== "Backspace" || !(t.cursor ? f.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
884
+ const z = c.selectionStart ?? 0, _ = c.selectionEnd ?? z;
885
+ if (z !== _ || z <= 0) return;
886
+ const B = c.value ?? "", R = g != null ? f.get(g) : null;
887
+ if (!R) return;
888
+ const X = p != null ? f.get(p) : void 0, Q = v != null ? f.get(v) : !0, Y = m != null ? f.get(m) : void 0, Z = y != null ? f.get(y) : void 0, le = Ue(
889
+ typeof R == "function" ? R(B, {
890
+ raw: B,
891
+ previousConformed: B,
892
+ cursor: z,
893
+ completed: !1
894
+ }) : R,
895
+ X ?? {},
896
+ Q ?? !0
897
+ ), j = /* @__PURE__ */ new Set();
898
+ for (const L of le)
899
+ L.type === "literal" && j.add(L.char);
900
+ if (Y) for (const L of Y) j.add(L);
901
+ if (Z) for (const L of Z) j.add(L);
902
+ if (j.has(B[z - 1])) {
903
+ let L = z - 1;
904
+ for (; L >= 0 && j.has(B[L]); ) L--;
905
+ L >= 0 && (w.preventDefault(), w.stopPropagation(), c.value = B.slice(0, L) + B.slice(L + 1), k(c, "input"));
906
+ }
907
+ })
908
+ ) : S
913
909
  )
914
- })
915
- );
910
+ )
911
+ });
916
912
  };
917
- function Ee(t, e, n) {
913
+ function Oe(t, e, n) {
918
914
  const s = f.map(t, (i) => i != null), r = V(
919
915
  s,
920
916
  e ?? !1
921
- )((i, g) => !i || g), b = oe.clearValue;
917
+ )((i, g) => !i || g), b = ce.clearValue;
922
918
  return h.button(
923
919
  l.type("button"),
924
920
  l.class("bc-input-container__reset"),
925
- G.label(b),
921
+ J.label(b),
926
922
  l.title(b),
927
923
  l.disabled(r),
928
- O({ icon: "mdi:close", size: "sm" }),
924
+ E({ icon: "mdi:close", size: "sm" }),
929
925
  C.click((i) => {
930
926
  i.stopPropagation(), n?.(null);
931
927
  })
932
928
  );
933
929
  }
934
- const St = (t) => {
930
+ const Bt = (t) => {
935
931
  const { value: e, onBlur: n, onChange: s, onInput: r, rows: b } = t;
936
932
  return W({
937
933
  baseContainer: !0,
@@ -939,7 +935,7 @@ const St = (t) => {
939
935
  input: h.textarea(
940
936
  l.class(
941
937
  V(t.size ?? "md")(
942
- (i) => Ye(
938
+ (i) => Ge(
943
939
  !1,
944
940
  i ?? "md"
945
941
  )
@@ -949,16 +945,27 @@ const St = (t) => {
949
945
  l.rows(b ?? 3),
950
946
  l.value(e),
951
947
  l.class("bc-input"),
952
- n != null ? C.blur(P(n)) : T,
953
- s != null ? C.change(P(s)) : T,
954
- r != null ? C.input(P(r)) : T
948
+ n != null ? C.blur(P(n)) : S,
949
+ s != null ? C.change(P(s)) : S,
950
+ r != null ? C.input(P(r)) : S
955
951
  )
956
952
  });
957
- }, zt = (t) => {
953
+ };
954
+ function pt(t) {
955
+ const e = String(t), n = e.indexOf(".");
956
+ return n === -1 ? 0 : e.length - n - 1;
957
+ }
958
+ function G(t, e) {
959
+ const n = pt(e);
960
+ if (n === 0) return Math.round(t);
961
+ const s = Math.pow(10, n);
962
+ return Math.round(t * s) / s;
963
+ }
964
+ const Vt = (t) => {
958
965
  const { value: e, step: n, min: s, max: r, onBlur: b, onChange: i, onInput: g, after: p } = t, v = (y) => {
959
966
  const o = s != null ? f.get(s) : void 0, a = r != null ? f.get(r) : void 0;
960
967
  return o != null && y < o ? o : a != null && y > a ? a : y;
961
- }, d = n != null ? F(R, (y) => {
968
+ }, d = n != null ? O(F, (y) => {
962
969
  const o = V(
963
970
  e,
964
971
  s
@@ -966,19 +973,25 @@ const St = (t) => {
966
973
  e,
967
974
  r
968
975
  )((u, x) => x == null ? !0 : (u ?? 0) < x), D = (u) => {
969
- const x = f.get(e) ?? 0, M = f.get(n), I = u?.shiftKey ? 10 : 1, A = x - M * I, k = s != null ? f.get(s) : void 0;
976
+ const x = f.get(e) ?? 0, $ = f.get(n), I = u?.shiftKey ? 10 : 1, A = G(
977
+ x - $ * I,
978
+ $
979
+ ), k = s != null ? f.get(s) : void 0;
970
980
  if (k != null && A < k)
971
981
  return;
972
982
  const c = v(A);
973
983
  c !== x && i && i(c);
974
- }, $ = (u) => {
975
- const x = f.get(e) ?? 0, M = f.get(n), I = u?.shiftKey ? 10 : 1, A = x + M * I, k = r != null ? f.get(r) : void 0;
984
+ }, M = (u) => {
985
+ const x = f.get(e) ?? 0, $ = f.get(n), I = u?.shiftKey ? 10 : 1, A = G(
986
+ x + $ * I,
987
+ $
988
+ ), k = r != null ? f.get(r) : void 0;
976
989
  if (k != null && A > k)
977
990
  return;
978
991
  const c = v(A);
979
992
  c !== x && i && i(c);
980
993
  };
981
- return Ve(
994
+ return Ae(
982
995
  l.class("bc-number-input-steppers"),
983
996
  // Increment second
984
997
  h.button(
@@ -992,9 +1005,9 @@ const St = (t) => {
992
1005
  t.disabled ?? !1
993
1006
  )((u, x) => !u || x)
994
1007
  ),
995
- C.click((u) => $(u)),
996
- G.label(y.$.incrementValue),
997
- O({ icon: "line-md:plus", size: "xs" })
1008
+ C.click((u) => M(u)),
1009
+ J.label(y.$.incrementValue),
1010
+ E({ icon: "line-md:plus", size: "xs" })
998
1011
  ),
999
1012
  // Decrement first (matches tests expecting first button to be decrement)
1000
1013
  h.button(
@@ -1009,29 +1022,29 @@ const St = (t) => {
1009
1022
  )((u, x) => !u || x)
1010
1023
  ),
1011
1024
  C.click((u) => D(u)),
1012
- G.label(y.$.decrementValue),
1013
- O({ icon: "line-md:minus", size: "xs" })
1025
+ J.label(y.$.decrementValue),
1026
+ E({ icon: "line-md:minus", size: "xs" })
1014
1027
  )
1015
1028
  );
1016
- }) : null, m = p != null && d != null ? E(d, p) : p ?? d;
1029
+ }) : null, m = p != null && d != null ? N(d, p) : p ?? d;
1017
1030
  return W({
1018
1031
  ...t,
1019
- input: ne.number(
1020
- s != null ? l.min(s) : T,
1021
- r != null ? l.max(r) : T,
1032
+ input: se.number(
1033
+ s != null ? l.min(s) : S,
1034
+ r != null ? l.max(r) : S,
1022
1035
  q(t),
1023
1036
  l.valueAsNumber(e),
1024
1037
  l.step(n),
1025
1038
  l.class("bc-input bc-number-input"),
1026
- b != null ? C.blur(P(b)) : T,
1027
- i != null ? C.change(_e(i)) : T,
1028
- g != null ? C.input(_e(g)) : T,
1039
+ b != null ? C.blur(P(b)) : S,
1040
+ i != null ? C.change(ke(i)) : S,
1041
+ g != null ? C.input(ke(g)) : S,
1029
1042
  // Add wheel event support when step is defined
1030
1043
  n != null ? C.wheel((y) => {
1031
1044
  y.preventDefault();
1032
- const o = f.get(e) ?? 0, a = f.get(n), D = y.shiftKey ? 10 : 1, $ = y.deltaY < 0 ? a * D : -a * D, u = v(o + $);
1045
+ const o = f.get(e) ?? 0, a = f.get(n), D = y.shiftKey ? 10 : 1, M = y.deltaY < 0 ? a * D : -a * D, u = v(G(o + M, a));
1033
1046
  u !== o && i && i(u);
1034
- }) : T
1047
+ }) : S
1035
1048
  ),
1036
1049
  after: m
1037
1050
  });
@@ -1039,7 +1052,7 @@ const St = (t) => {
1039
1052
  if (t == null || t === "") return null;
1040
1053
  const e = Number(t);
1041
1054
  return Number.isNaN(e) ? null : e;
1042
- }, Bt = (t) => {
1055
+ }, At = (t) => {
1043
1056
  const { value: e, step: n, min: s, max: r, onBlur: b, onChange: i, onInput: g, after: p } = t, v = (o) => {
1044
1057
  const a = s != null ? f.get(s) : void 0, D = r != null ? f.get(r) : void 0;
1045
1058
  return a != null && o < a ? a : D != null && o > D ? D : o;
@@ -1048,27 +1061,27 @@ const St = (t) => {
1048
1061
  const o = V(
1049
1062
  e,
1050
1063
  s
1051
- )((x, M) => {
1064
+ )((x, $) => {
1052
1065
  const I = x ?? 0;
1053
- return M == null ? !0 : I > M;
1066
+ return $ == null ? !0 : I > $;
1054
1067
  }), a = V(
1055
1068
  e,
1056
1069
  r
1057
- )((x, M) => {
1070
+ )((x, $) => {
1058
1071
  const I = x ?? 0;
1059
- return M == null ? !0 : I < M;
1072
+ return $ == null ? !0 : I < $;
1060
1073
  }), D = (x) => {
1061
- const M = f.get(e) ?? 0, I = f.get(n), A = x?.shiftKey ? 10 : 1, k = M - I * A, c = s != null ? f.get(s) : void 0;
1074
+ const $ = f.get(e) ?? 0, I = f.get(n), A = x?.shiftKey ? 10 : 1, k = G($ - I * A, I), c = s != null ? f.get(s) : void 0;
1062
1075
  if (c != null && k < c) return;
1063
1076
  const w = v(k);
1064
- w !== M && i && i(w);
1065
- }, $ = (x) => {
1066
- const M = f.get(e) ?? 0, I = f.get(n), A = x?.shiftKey ? 10 : 1, k = M + I * A, c = r != null ? f.get(r) : void 0;
1077
+ w !== $ && i && i(w);
1078
+ }, M = (x) => {
1079
+ const $ = f.get(e) ?? 0, I = f.get(n), A = x?.shiftKey ? 10 : 1, k = G($ + I * A, I), c = r != null ? f.get(r) : void 0;
1067
1080
  if (c != null && k > c) return;
1068
1081
  const w = v(k);
1069
- w !== M && i && i(w);
1082
+ w !== $ && i && i(w);
1070
1083
  };
1071
- return ((x, M) => Ve(
1084
+ return ((x, $) => Ae(
1072
1085
  l.class("bc-number-input-steppers"),
1073
1086
  h.button(
1074
1087
  l.type("button"),
@@ -1081,9 +1094,9 @@ const St = (t) => {
1081
1094
  t.disabled ?? !1
1082
1095
  )((I, A) => !I || A)
1083
1096
  ),
1084
- C.click((I) => $(I)),
1085
- G.label(x),
1086
- O({ icon: "line-md:plus", size: "xs" })
1097
+ C.click((I) => M(I)),
1098
+ J.label(x),
1099
+ E({ icon: "line-md:plus", size: "xs" })
1087
1100
  ),
1088
1101
  h.button(
1089
1102
  l.type("button"),
@@ -1097,58 +1110,58 @@ const St = (t) => {
1097
1110
  )((I, A) => !I || A)
1098
1111
  ),
1099
1112
  C.click((I) => D(I)),
1100
- G.label(M),
1101
- O({ icon: "line-md:minus", size: "xs" })
1113
+ J.label($),
1114
+ E({ icon: "line-md:minus", size: "xs" })
1102
1115
  )
1103
1116
  ))(
1104
- oe.incrementValue,
1105
- oe.decrementValue
1117
+ ce.incrementValue,
1118
+ ce.decrementValue
1106
1119
  );
1107
- })(), m = Ee(
1120
+ })(), m = Oe(
1108
1121
  e,
1109
1122
  t.disabled,
1110
1123
  i ?? g
1111
- ), y = p != null && d != null ? E(d, m, p) : p != null ? E(m, p) : d != null ? E(d, m) : m;
1124
+ ), y = p != null && d != null ? N(d, m, p) : p != null ? N(m, p) : d != null ? N(d, m) : m;
1112
1125
  return W({
1113
1126
  ...t,
1114
- input: ne.number(
1127
+ input: se.number(
1115
1128
  // min/max attributes and reactive watchers (no forced correction)
1116
- s != null ? l.min(s) : T,
1117
- r != null ? l.max(r) : T,
1129
+ s != null ? l.min(s) : S,
1130
+ r != null ? l.max(r) : S,
1118
1131
  q(t),
1119
1132
  // Represent null as empty string so the field can be cleared
1120
1133
  l.value(f.map(e, (o) => o == null ? "" : String(o))),
1121
1134
  l.step(n),
1122
1135
  l.class("bc-input bc-number-input"),
1123
- b != null ? C.blur(P(b)) : T,
1136
+ b != null ? C.blur(P(b)) : S,
1124
1137
  i != null ? C.change(
1125
1138
  P((o) => {
1126
1139
  const a = Te(o);
1127
1140
  i(a);
1128
1141
  })
1129
- ) : T,
1142
+ ) : S,
1130
1143
  g != null ? C.input(
1131
1144
  P((o) => {
1132
1145
  const a = Te(o);
1133
1146
  g(a);
1134
1147
  })
1135
- ) : T,
1148
+ ) : S,
1136
1149
  // Wheel support when step is defined
1137
1150
  n != null ? C.wheel((o) => {
1138
1151
  o.preventDefault();
1139
- const a = f.get(e) ?? 0, D = f.get(n), $ = o.shiftKey ? 10 : 1, u = o.deltaY < 0 ? D * $ : -D * $, x = v(a + u);
1152
+ const a = f.get(e) ?? 0, D = f.get(n), M = o.shiftKey ? 10 : 1, u = o.deltaY < 0 ? D * M : -D * M, x = v(G(a + u, D));
1140
1153
  x !== a && i && i(x);
1141
- }) : T
1154
+ }) : S
1142
1155
  ),
1143
1156
  after: y
1144
1157
  });
1145
- }, Vt = (t) => {
1158
+ }, Lt = (t) => {
1146
1159
  const e = {
1147
1160
  type: "pattern",
1148
1161
  pattern: /[0-9A-Fa-f]/,
1149
1162
  transform: (s) => s.toLowerCase()
1150
1163
  };
1151
- return Ue({
1164
+ return Ee({
1152
1165
  ...t,
1153
1166
  mask: [
1154
1167
  e,
@@ -1191,21 +1204,21 @@ const St = (t) => {
1191
1204
  // Sensible default placeholder; can be overridden via options.placeholder
1192
1205
  placeholder: t.placeholder ?? "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1193
1206
  });
1194
- }, ft = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, pt = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
1195
- function dt(t) {
1207
+ }, dt = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, mt = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
1208
+ function bt(t) {
1196
1209
  return {
1197
1210
  mask: null,
1198
1211
  allowMode: "custom",
1199
1212
  allow: (e) => /[0-9ptwdhms]/i.test(e),
1200
1213
  pipe: (e) => {
1201
1214
  const n = e.toUpperCase();
1202
- return n.length === 0 ? n : !n.startsWith("P") || !ft.test(n) ? !1 : n;
1215
+ return n.length === 0 ? n : !n.startsWith("P") || !dt.test(n) ? !1 : n;
1203
1216
  },
1204
1217
  completion: {
1205
1218
  mode: "custom",
1206
1219
  isComplete: (e) => {
1207
1220
  const n = e.toUpperCase();
1208
- if (!pt.test(n)) return !1;
1221
+ if (!mt.test(n)) return !1;
1209
1222
  try {
1210
1223
  return t(n), !0;
1211
1224
  } catch {
@@ -1215,25 +1228,25 @@ function dt(t) {
1215
1228
  }
1216
1229
  };
1217
1230
  }
1218
- const Se = (t, e) => {
1231
+ const ze = (t, e) => {
1219
1232
  if (t == null) return null;
1220
1233
  try {
1221
1234
  return t.Duration.from(e);
1222
1235
  } catch {
1223
1236
  return null;
1224
1237
  }
1225
- }, At = (t) => {
1238
+ }, Ut = (t) => {
1226
1239
  const { value: e, onChange: n, onInput: s, after: r, disabled: b, onBlur: i } = t, g = () => {
1227
- const d = Ee(e, b, n ?? s);
1228
- return r != null ? E(d, r) : d;
1229
- }, p = t.placeholder != null ? T : l.placeholder("P0DT0H0M0S");
1230
- return Xe(
1231
- (d) => Ue({
1240
+ const d = Oe(e, b, n ?? s);
1241
+ return r != null ? N(d, r) : d;
1242
+ }, p = t.placeholder != null ? S : l.placeholder("P0DT0H0M0S");
1243
+ return Qe(
1244
+ (d) => Ee({
1232
1245
  ...t,
1233
1246
  value: f.map(e, (m) => m?.toString() ?? ""),
1234
1247
  onChange: n ? (m) => n(m === "" ? null : d.Duration.from(m)) : void 0,
1235
1248
  onInput: void 0,
1236
- ...dt(d.Duration.from),
1249
+ ...bt(d.Duration.from),
1237
1250
  placeholder: "P0DT0H0M0S",
1238
1251
  after: g()
1239
1252
  }),
@@ -1244,47 +1257,47 @@ const Se = (t, e) => {
1244
1257
  m(null);
1245
1258
  return;
1246
1259
  }
1247
- const D = globalThis.Temporal, $ = Se(D, a);
1248
- if ($ != null) {
1249
- m($);
1260
+ const D = globalThis.Temporal, M = ze(D, a);
1261
+ if (M != null) {
1262
+ m(M);
1250
1263
  return;
1251
1264
  }
1252
- be().then((u) => {
1253
- const x = Se(u, a);
1265
+ he().then((u) => {
1266
+ const x = ze(u, a);
1254
1267
  x != null && m(x);
1255
1268
  }).catch(() => {
1256
1269
  });
1257
1270
  };
1258
1271
  return W({
1259
1272
  ...t,
1260
- input: ne.text(
1273
+ input: se.text(
1261
1274
  q(t),
1262
1275
  l.value(f.map(e, (m) => m?.toString() ?? "")),
1263
1276
  l.class("bc-input"),
1264
1277
  p,
1265
- i != null ? C.blur(() => i()) : T,
1266
- n != null ? C.change(d(n)) : T,
1267
- s != null ? C.input(d(s)) : T
1278
+ i != null ? C.blur(() => i()) : S,
1279
+ n != null ? C.change(d(n)) : S,
1280
+ s != null ? C.input(d(s)) : S
1268
1281
  ),
1269
1282
  after: g()
1270
1283
  });
1271
1284
  } }
1272
1285
  );
1273
- }, Lt = (t) => {
1286
+ }, Et = (t) => {
1274
1287
  const { value: e, onBlur: n, onChange: s, onInput: r } = t;
1275
1288
  return W({
1276
1289
  ...t,
1277
- input: ne.url(
1290
+ input: se.url(
1278
1291
  q(t),
1279
1292
  l.value(e),
1280
1293
  l.class("bc-input"),
1281
- n != null ? C.blur(P(n)) : T,
1282
- s != null ? C.change(P(s)) : T,
1283
- r != null ? C.input(P(r)) : T
1294
+ n != null ? C.blur(P(n)) : S,
1295
+ s != null ? C.change(P(s)) : S,
1296
+ r != null ? C.input(P(r)) : S
1284
1297
  )
1285
1298
  });
1286
1299
  };
1287
- function mt(t, e) {
1300
+ function ht(t, e) {
1288
1301
  const {
1289
1302
  onMove: n,
1290
1303
  cannotMoveUp: s,
@@ -1299,7 +1312,7 @@ function mt(t, e) {
1299
1312
  i,
1300
1313
  () => h.div(
1301
1314
  l.class("bc-list-item-controls__move"),
1302
- me(
1315
+ be(
1303
1316
  {
1304
1317
  size: "xs",
1305
1318
  roundedness: "full",
@@ -1307,16 +1320,16 @@ function mt(t, e) {
1307
1320
  onClick: () => n("up"),
1308
1321
  disabled: s
1309
1322
  },
1310
- F(
1311
- R,
1312
- (a) => O({
1323
+ O(
1324
+ F,
1325
+ (a) => E({
1313
1326
  size: "xs",
1314
1327
  icon: "line-md:arrow-up",
1315
1328
  title: a.$.incrementValue
1316
1329
  })
1317
1330
  )
1318
1331
  ),
1319
- me(
1332
+ be(
1320
1333
  {
1321
1334
  size: "xs",
1322
1335
  roundedness: "full",
@@ -1324,9 +1337,9 @@ function mt(t, e) {
1324
1337
  onClick: () => n("down"),
1325
1338
  disabled: r
1326
1339
  },
1327
- F(
1328
- R,
1329
- (a) => O({
1340
+ O(
1341
+ F,
1342
+ (a) => E({
1330
1343
  size: "xs",
1331
1344
  icon: "line-md:arrow-down",
1332
1345
  title: a.$.decrementValue
@@ -1336,9 +1349,9 @@ function mt(t, e) {
1336
1349
  )
1337
1350
  ), o = U(
1338
1351
  g,
1339
- () => F(
1340
- R,
1341
- (a) => ie({
1352
+ () => O(
1353
+ F,
1354
+ (a) => oe({
1342
1355
  size: "xs",
1343
1356
  label: f.map(a.$.removeItem, (D) => D.toLowerCase()),
1344
1357
  color: "danger",
@@ -1373,7 +1386,7 @@ function mt(t, e) {
1373
1386
  )
1374
1387
  );
1375
1388
  }
1376
- const bt = (t) => {
1389
+ const gt = (t) => {
1377
1390
  const {
1378
1391
  controller: e,
1379
1392
  element: n,
@@ -1388,11 +1401,11 @@ const bt = (t) => {
1388
1401
  addDisabled: m
1389
1402
  } = t, y = U(
1390
1403
  V(i, g)((o, a) => o && a != null),
1391
- () => Ie(
1404
+ () => $e(
1392
1405
  l.class(
1393
1406
  "bc-group--gap-2 bc-group--align-center bc-group--justify-center"
1394
1407
  ),
1395
- me(
1408
+ be(
1396
1409
  {
1397
1410
  size: "sm",
1398
1411
  variant: "filled",
@@ -1404,21 +1417,21 @@ const bt = (t) => {
1404
1417
  (o, a) => o || a
1405
1418
  )
1406
1419
  },
1407
- F(
1408
- R,
1409
- (o) => Ie(
1420
+ O(
1421
+ F,
1422
+ (o) => $e(
1410
1423
  l.class("bc-group--gap-2"),
1411
- O({ icon: "line-md:plus" }),
1424
+ E({ icon: "line-md:plus" }),
1412
1425
  p ?? o.$.addLabel
1413
1426
  )
1414
1427
  )
1415
1428
  )
1416
1429
  )
1417
1430
  );
1418
- return E(
1419
- ot(
1431
+ return N(
1432
+ ct(
1420
1433
  e,
1421
- (o) => mt(
1434
+ (o) => ht(
1422
1435
  {
1423
1436
  onMove: o.move,
1424
1437
  cannotMoveUp: o.cannotMove("up"),
@@ -1436,7 +1449,7 @@ const bt = (t) => {
1436
1449
  ),
1437
1450
  y
1438
1451
  );
1439
- }, Ut = (t, ...e) => {
1452
+ }, Ot = (t, ...e) => {
1440
1453
  const {
1441
1454
  controller: n,
1442
1455
  element: s,
@@ -1451,10 +1464,10 @@ const bt = (t) => {
1451
1464
  addDisabled: y,
1452
1465
  ...o
1453
1466
  } = t;
1454
- return Be(
1467
+ return Ve(
1455
1468
  {
1456
1469
  ...o,
1457
- content: bt({
1470
+ content: gt({
1458
1471
  controller: n,
1459
1472
  element: s,
1460
1473
  separator: r,
@@ -1471,7 +1484,7 @@ const bt = (t) => {
1471
1484
  ...e
1472
1485
  );
1473
1486
  };
1474
- class Et extends ue {
1487
+ class Ft extends fe {
1475
1488
  /** The immutable list of branch definitions for this union */
1476
1489
  branches;
1477
1490
  /** Reactive signal containing the key of the currently active branch */
@@ -1491,7 +1504,7 @@ class Et extends ue {
1491
1504
  * @param branches - Array of branch definitions describing the possible value types
1492
1505
  * @param equals - Optional equality function for comparing values. Defaults to `strictEqual`.
1493
1506
  */
1494
- constructor(e, n, s, r, b, i, g = Q) {
1507
+ constructor(e, n, s, r, b, i, g = K) {
1495
1508
  super(e, n, s, r, b, g), this.branches = i;
1496
1509
  const p = (d) => {
1497
1510
  for (const m of i)
@@ -1499,14 +1512,14 @@ class Et extends ue {
1499
1512
  return m.key;
1500
1513
  return i[0]?.key ?? "unknown";
1501
1514
  };
1502
- this.activeBranch = s.map(p, Q);
1515
+ this.activeBranch = s.map(p, K);
1503
1516
  const v = (d) => {
1504
1517
  if (this.#e.has(d))
1505
1518
  return this.#e.get(d);
1506
1519
  const m = i.find((o) => o.key === d);
1507
1520
  if (!m)
1508
1521
  throw new Error(`Unknown branch: ${d}`);
1509
- const y = new ue(
1522
+ const y = new fe(
1510
1523
  [...e, d],
1511
1524
  (o) => {
1512
1525
  this.change(o);
@@ -1515,7 +1528,7 @@ class Et extends ue {
1515
1528
  (o) => m.detect(o) ? o : m.defaultValue(),
1516
1529
  g
1517
1530
  ),
1518
- r.map(De([d])),
1531
+ r.map(Ie([d])),
1519
1532
  {
1520
1533
  disabled: this.disabled,
1521
1534
  validationMode: this.parent.validationMode
@@ -1526,7 +1539,7 @@ class Et extends ue {
1526
1539
  };
1527
1540
  this.#t = this.activeBranch.map(
1528
1541
  (d) => v(d),
1529
- Q
1542
+ K
1530
1543
  ), this.onDispose(() => {
1531
1544
  for (const d of this.#e.values())
1532
1545
  d.dispose();
@@ -1559,21 +1572,21 @@ class Et extends ue {
1559
1572
  throw new Error(`Unknown branch: ${e}`);
1560
1573
  if (this.#e.has(e))
1561
1574
  return this.#e.get(e);
1562
- const s = new ue(
1575
+ const s = new fe(
1563
1576
  [...this.path, e],
1564
1577
  (r) => {
1565
1578
  this.change(r);
1566
1579
  },
1567
1580
  this.signal.map(
1568
1581
  (r) => n.detect(r) ? r : n.defaultValue(),
1569
- Q
1582
+ K
1570
1583
  ),
1571
- this.status.map(De([e])),
1584
+ this.status.map(Ie([e])),
1572
1585
  {
1573
1586
  disabled: this.disabled,
1574
1587
  validationMode: this.parent.validationMode
1575
1588
  },
1576
- Q
1589
+ K
1577
1590
  );
1578
1591
  return this.#e.set(e, s), s;
1579
1592
  }
@@ -1603,7 +1616,7 @@ class Et extends ue {
1603
1616
  if (i.ok)
1604
1617
  return this.change(i.value), !0;
1605
1618
  }
1606
- if (n && typeof window == "object" && typeof window.confirm == "function" && !window.confirm(oe.changeTypeConfirmation))
1619
+ if (n && typeof window == "object" && typeof window.confirm == "function" && !window.confirm(ce.changeTypeConfirmation))
1607
1620
  return !1;
1608
1621
  const b = s.defaultValue();
1609
1622
  return this.change(b), !0;
@@ -1618,72 +1631,73 @@ class Et extends ue {
1618
1631
  return this.branches.find((n) => n.key === e);
1619
1632
  }
1620
1633
  }
1621
- function Ot(t) {
1634
+ function Rt(t) {
1622
1635
  return t.transform(
1623
1636
  (e) => e ?? null,
1624
1637
  (e) => e ?? void 0
1625
1638
  );
1626
1639
  }
1627
- function Ft(t) {
1640
+ function Nt(t) {
1628
1641
  return t.transform(
1629
1642
  (e) => e ?? "",
1630
1643
  (e) => e === "" ? void 0 : e
1631
1644
  );
1632
1645
  }
1633
- function Rt(t) {
1646
+ function Pt(t) {
1634
1647
  return t.transform(
1635
1648
  (e) => e ?? void 0,
1636
1649
  (e) => e ?? null
1637
1650
  );
1638
1651
  }
1639
- function le(t) {
1652
+ function re(t) {
1640
1653
  return t !== null && typeof t == "object" && !Array.isArray(t) && Object.prototype.toString.call(t) === "[object Object]";
1641
1654
  }
1642
- function ht(t, e) {
1655
+ function vt(t, e) {
1643
1656
  if (e == null)
1644
- return ze(t);
1657
+ return Be(t);
1645
1658
  if (t == null)
1646
1659
  return e;
1647
- if (le(t) && le(e)) {
1660
+ if (re(t) && re(e)) {
1648
1661
  const n = { ...e };
1649
1662
  for (const s of Object.keys(t))
1650
- n[s] === void 0 ? n[s] = ze(t[s]) : le(t[s]) && le(n[s]) && (n[s] = ht(t[s], n[s]));
1663
+ n[s] === void 0 ? n[s] = Be(t[s]) : re(t[s]) && re(n[s]) && (n[s] = vt(t[s], n[s]));
1651
1664
  return n;
1652
1665
  }
1653
1666
  return e;
1654
1667
  }
1655
- function ze(t) {
1668
+ function Be(t) {
1656
1669
  return typeof structuredClone == "function" ? structuredClone(t) : JSON.parse(JSON.stringify(t));
1657
1670
  }
1658
1671
  export {
1659
- bt as B,
1660
- st as E,
1661
- $t as F,
1662
- Ie as G,
1663
- Ut as L,
1664
- Ue as M,
1665
- Ee as N,
1666
- It as S,
1667
- St as T,
1668
- Vt as U,
1669
- Xe as W,
1670
- Lt as a,
1671
- rt as b,
1672
- At as c,
1673
- dt as d,
1674
- Ft as e,
1675
- Bt as f,
1676
- zt as g,
1677
- Tt as h,
1678
- Et as i,
1679
- ht as j,
1680
- pe as k,
1681
- mt as l,
1682
- Rt as m,
1683
- ot as n,
1684
- it as o,
1685
- Mt as p,
1686
- lt as q,
1687
- be as r,
1688
- Ot as t
1672
+ gt as B,
1673
+ lt as E,
1674
+ St as F,
1675
+ $e as G,
1676
+ Ot as L,
1677
+ Ee as M,
1678
+ Oe as N,
1679
+ Mt as S,
1680
+ Bt as T,
1681
+ Lt as U,
1682
+ Qe as W,
1683
+ Et as a,
1684
+ it as b,
1685
+ Ut as c,
1686
+ bt as d,
1687
+ Nt as e,
1688
+ At as f,
1689
+ Vt as g,
1690
+ zt as h,
1691
+ Ft as i,
1692
+ vt as j,
1693
+ ot as k,
1694
+ ct as l,
1695
+ ht as m,
1696
+ de as n,
1697
+ Tt as o,
1698
+ rt as p,
1699
+ he as q,
1700
+ G as r,
1701
+ Pt as s,
1702
+ Rt as t
1689
1703
  };