@deck9/ui 0.15.3 → 0.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/ui.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as A, computed as k, openBlock as R, createBlock as W, unref as _, mergeProps as ot, createCommentVNode as M, createElementBlock as L, normalizeClass as $, createElementVNode as T, toDisplayString as G, createVNode as F, ref as C, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as An, vModelText as $n, normalizeStyle as Nt, cloneVNode as Mn, h as Oe, inject as he, provide as ye, watchEffect as xe, nextTick as B, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as U, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Hn, isRef as Un, renderList as jt } from "vue";
1
+ import { defineComponent as A, computed as k, openBlock as R, createBlock as W, unref as _, mergeProps as ot, createCommentVNode as M, createElementBlock as T, normalizeClass as $, createElementVNode as L, toDisplayString as G, createVNode as F, ref as C, getCurrentInstance as In, onMounted as ee, watch as Q, Fragment as be, withDirectives as An, vModelText as $n, normalizeStyle as Nt, cloneVNode as Mn, h as Oe, inject as he, provide as ye, watchEffect as xe, nextTick as B, onUnmounted as Ne, toRaw as X, shallowRef as Vn, getCurrentScope as Fn, onScopeDispose as Nn, shallowReadonly as me, withCtx as U, renderSlot as ht, Teleport as Bn, Transition as Bt, normalizeProps as jn, guardReactiveProps as zn, resolveDynamicComponent as Hn, isRef as Un, renderList as jt } from "vue";
2
2
  import { FontAwesomeIcon as Wn } from "@fortawesome/vue-fontawesome";
3
3
  import { library as lt } from "@fortawesome/fontawesome-svg-core";
4
- import * as p from "@fortawesome/free-solid-svg-icons";
4
+ import * as d from "@fortawesome/free-solid-svg-icons";
5
5
  import * as Se from "@fortawesome/free-brands-svg-icons";
6
6
  var zt = "fas", Ht = "numeric-input", Ut = 512, Wt = 512, Ze = [], Kt = "", Gt = "m409.445 111 2.112.004c34.066.146 46.74 3.848 59.517 10.681 13.037 6.973 23.268 17.204 30.24 30.241l.415.782c6.705 12.782 10.271 25.9 10.271 60.847v72.002c-.15 34.066-3.852 46.74-10.685 59.517-6.973 13.037-17.204 23.268-30.241 30.24l-.782.415C457.51 382.434 444.392 386 409.445 386h-306.89l-2.112-.004c-34.066-.146-46.74-3.848-59.517-10.681-13.037-6.973-23.268-17.204-30.24-30.241l-.415-.782C3.566 331.51 0 318.392 0 283.445v-69.89c0-35.66 3.713-48.592 10.685-61.629 6.973-13.037 17.204-23.268 30.241-30.24l.782-.415C54.49 114.566 67.608 111 102.555 111h306.89Zm.806 36H102.555l-2.387.005c-22.69.089-31.789 1.488-39.667 5.128l-.523.246c-.696.332-1.385.683-2.074 1.052-6.764 3.617-11.856 8.71-15.473 15.473l-.282.533c-4.492 8.62-6.116 17.401-6.148 43.312v71.502l.012 3.09c.161 24.044 1.9 32.308 6.418 40.755 3.617 6.764 8.71 11.856 15.473 15.473l.533.282c8.62 4.492 17.401 6.116 43.312 6.149h307.696c27.078 0 35.763-1.677 44.651-6.43 6.764-3.618 11.856-8.71 15.473-15.474l.282-.533c4.492-8.62 6.116-17.401 6.149-43.312v-70.696c0-27.078-1.677-35.763-6.43-44.651-3.618-6.764-8.71-11.856-15.474-15.473l-.533-.282c-8.62-4.492-17.401-6.116-43.312-6.149Zm-164.715 19c11.682 0 22.013 1.976 30.994 5.929 8.98 3.952 16.005 9.38 21.074 16.284 5.07 6.904 7.578 14.797 7.527 23.677.103 8.829-2.92 16.066-9.07 21.713-6.15 5.646-13.935 8.983-23.353 10.01v1.231c12.764 1.386 22.362 5.274 28.794 11.665 6.433 6.39 9.598 14.411 9.496 24.061.051 9.24-2.715 17.427-8.299 24.562-5.584 7.135-13.33 12.73-23.236 16.785-9.907 4.055-21.319 6.083-34.236 6.083-12.454 0-23.506-2.143-33.156-6.43-9.65-4.285-17.227-10.201-22.734-17.747-5.506-7.545-8.286-16.22-8.337-26.025h43.23c.051 3.029.99 5.737 2.817 8.124 1.827 2.386 4.336 4.247 7.527 5.582 3.19 1.334 6.845 2.002 10.962 2.002 3.962 0 7.462-.706 10.498-2.118 3.037-1.411 5.404-3.375 7.102-5.89 1.699-2.515 2.522-5.39 2.47-8.623.052-3.183-.913-6.006-2.894-8.47-1.982-2.464-4.748-4.389-8.299-5.775-3.55-1.386-7.642-2.079-12.274-2.079h-16.057v-29.566h16.057c4.271 0 8.041-.693 11.31-2.08 3.267-1.385 5.815-3.31 7.642-5.774s2.714-5.287 2.663-8.47c.051-3.08-.695-5.8-2.239-8.161-1.544-2.361-3.692-4.21-6.446-5.544-2.753-1.334-5.93-2.002-9.533-2.002-3.912 0-7.398.693-10.46 2.08-3.063 1.385-5.468 3.31-7.218 5.774s-2.65 5.287-2.702 8.47h-41.068c.051-9.65 2.715-18.172 7.99-25.563 5.275-7.392 12.518-13.192 21.73-17.401 9.212-4.21 19.788-6.314 31.728-6.314Zm-133.074 0c12.615 0 23.55 2.017 32.807 6.05 9.257 4.033 16.41 9.698 21.462 16.994 5.051 7.296 7.577 15.851 7.577 25.665 0 6.063-1.257 12.087-3.77 18.073-2.512 5.986-7.025 12.601-13.538 19.846-6.513 7.245-15.77 15.877-27.77 25.896l-14.768 12.331v.925H176V326H55.077v-30.829l58.77-48.709c3.897-3.237 7.243-6.28 10.038-9.133 2.794-2.851 4.948-5.793 6.461-8.824 1.513-3.032 2.27-6.397 2.27-10.097 0-4.059-.86-7.527-2.578-10.404-1.717-2.877-4.09-5.1-7.115-6.667-3.026-1.567-6.513-2.35-10.461-2.35-3.95 0-7.424.796-10.424 2.389-3 1.593-5.32 3.93-6.961 7.013-1.641 3.083-2.462 6.834-2.462 11.253H52c0-11.099 2.487-20.655 7.462-28.67 4.974-8.016 12-14.182 21.076-18.498 9.077-4.316 19.718-6.474 31.924-6.474Z";
7
7
  const yt = {
@@ -21,106 +21,114 @@ const yt = {
21
21
  aliases: Ze
22
22
  };
23
23
  lt.add(
24
- p.faAlignCenter,
25
- p.faAlignLeft,
26
- p.faAlignRight,
27
- p.faArrowUp19,
28
- p.faAsterisk,
29
- p.faAt,
30
- p.faBold,
31
- p.faBolt,
32
- p.faCalendar,
33
- p.faChartPie,
34
- p.faCheck,
35
- p.faCheckCircle,
36
- p.faChevronDown,
37
- p.faChevronLeft,
38
- p.faChevronRight,
39
- p.faChevronUp,
40
- p.faCircleCheck,
41
- p.faCircleNodes,
42
- p.faCircleNotch,
43
- p.faClipboard,
44
- p.faCloudDownload,
45
- p.faCloudUpload,
46
- p.faCode,
47
- p.faCodeBranch,
48
- p.faCodeFork,
49
- p.faCog,
50
- p.faCrown,
51
- p.faDiagramProject,
52
- p.faDoorOpen,
53
- p.faDotCircle,
54
- p.faEllipsis,
55
- p.faEllipsisVertical,
56
- p.faEnvelope,
57
- p.faExclamationTriangle,
58
- p.faExternalLink,
59
- p.faEyeDropper,
60
- p.faFileLines,
61
- p.faFilePdf,
62
- p.faFileUpload,
63
- p.faFileVideo,
64
- p.faFileWaveform,
65
- p.faFilter,
66
- p.faFilter,
67
- p.faFingerprint,
68
- p.faFont,
69
- p.faGears,
70
- p.faGlobe,
71
- p.faGripHorizontal,
72
- p.faGripVertical,
73
- p.faHandPointRight,
74
- p.faHashtag,
75
- p.faHeading,
76
- p.faHeart,
77
- p.faImage,
78
- p.faInfoCircle,
79
- p.faItalic,
80
- p.faLink,
81
- p.faLinkSlash,
82
- p.faList,
83
- p.faListOl,
84
- p.faListUl,
85
- p.faLock,
86
- p.faLockOpen,
87
- p.faMedal,
88
- p.faMessage,
89
- p.faMicrochip,
90
- p.faPencilAlt,
91
- p.faPenToSquare,
92
- p.faPhone,
93
- p.faPlayCircle,
94
- p.faPlus,
95
- p.faPlusCircle,
96
- p.faPoo,
97
- p.faPuzzlePiece,
98
- p.faQuestion,
99
- p.faQuoteLeft,
100
- p.faQuoteRight,
101
- p.faReply,
102
- p.faReplyAll,
103
- p.faRobot,
104
- p.faSave,
105
- p.faShield,
106
- p.faSignal,
107
- p.faSignature,
108
- p.faSignature,
109
- p.faSquareCheck,
110
- p.faStar,
111
- p.faStrikethrough,
112
- p.faTerminal,
113
- p.faTextSlash,
114
- p.faTimes,
115
- p.faTrash,
116
- p.faTree,
117
- p.faTrophy,
118
- p.faTurnDown,
119
- p.faUnderline,
120
- p.faUpload,
121
- p.faUser,
122
- p.faUserShield,
123
- p.faWandMagicSparkles,
24
+ d.faAlignCenter,
25
+ d.faAlignLeft,
26
+ d.faAlignRight,
27
+ d.faArrowRight,
28
+ d.faArrowUp19,
29
+ d.faAsterisk,
30
+ d.faAt,
31
+ d.faBold,
32
+ d.faBolt,
33
+ d.faCalendar,
34
+ d.faChartPie,
35
+ d.faCheck,
36
+ d.faCheckCircle,
37
+ d.faChevronDown,
38
+ d.faChevronLeft,
39
+ d.faChevronRight,
40
+ d.faChevronUp,
41
+ d.faCircleCheck,
42
+ d.faCircleNodes,
43
+ d.faCircleNotch,
44
+ d.faClipboard,
45
+ d.faCloudDownload,
46
+ d.faCloudUpload,
47
+ d.faCode,
48
+ d.faCodeBranch,
49
+ d.faCodeFork,
50
+ d.faCog,
51
+ d.faCompass,
52
+ d.faCrown,
53
+ d.faDiagramProject,
54
+ d.faDoorOpen,
55
+ d.faDotCircle,
56
+ d.faEllipsis,
57
+ d.faEllipsisVertical,
58
+ d.faEnvelope,
59
+ d.faExclamationTriangle,
60
+ d.faExternalLink,
61
+ d.faEye,
62
+ d.faEyeDropper,
63
+ d.faEyeSlash,
64
+ d.faFileLines,
65
+ d.faFilePdf,
66
+ d.faFileUpload,
67
+ d.faFileVideo,
68
+ d.faFileWaveform,
69
+ d.faFilter,
70
+ d.faFilter,
71
+ d.faFingerprint,
72
+ d.faFont,
73
+ d.faGears,
74
+ d.faGlobe,
75
+ d.faGripHorizontal,
76
+ d.faGripVertical,
77
+ d.faHandPointRight,
78
+ d.faHandPointRight,
79
+ d.faHashtag,
80
+ d.faHeading,
81
+ d.faHeart,
82
+ d.faImage,
83
+ d.faInfoCircle,
84
+ d.faItalic,
85
+ d.faLink,
86
+ d.faLinkSlash,
87
+ d.faList,
88
+ d.faListOl,
89
+ d.faListUl,
90
+ d.faLocationArrow,
91
+ d.faLocationCrosshairs,
92
+ d.faLock,
93
+ d.faLockOpen,
94
+ d.faMedal,
95
+ d.faMessage,
96
+ d.faMicrochip,
97
+ d.faPencilAlt,
98
+ d.faPenToSquare,
99
+ d.faPhone,
100
+ d.faPlayCircle,
101
+ d.faPlus,
102
+ d.faPlusCircle,
103
+ d.faPoo,
104
+ d.faPuzzlePiece,
105
+ d.faQuestion,
106
+ d.faQuoteLeft,
107
+ d.faQuoteRight,
108
+ d.faReply,
109
+ d.faReplyAll,
110
+ d.faRightLong,
111
+ d.faRobot,
112
+ d.faSave,
113
+ d.faShield,
114
+ d.faSignal,
115
+ d.faSignature,
116
+ d.faSignature,
117
+ d.faSquareCheck,
118
+ d.faStar,
119
+ d.faStrikethrough,
120
+ d.faTerminal,
121
+ d.faTextSlash,
122
+ d.faTimes,
123
+ d.faTrash,
124
+ d.faTree,
125
+ d.faTrophy,
126
+ d.faTurnDown,
127
+ d.faUnderline,
128
+ d.faUpload,
129
+ d.faUser,
130
+ d.faUserShield,
131
+ d.faWandMagicSparkles,
124
132
  // Brands
125
133
  Se.faTwitter,
126
134
  Se.faInstagram,
@@ -200,14 +208,14 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
200
208
  function i() {
201
209
  o.isDisabled || l("onClick");
202
210
  }
203
- return (u, c) => (R(), L("button", {
211
+ return (u, c) => (R(), T("button", {
204
212
  class: $(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out", n.value]),
205
213
  type: "button",
206
214
  "aria-label": u.label,
207
215
  tabindex: u.isDisabled ? "-1" : void 0,
208
216
  onClick: i
209
217
  }, [
210
- T("div", {
218
+ L("div", {
211
219
  class: $(!u.isLoading || "invisible")
212
220
  }, [
213
221
  u.icon && u.iconPosition === "left" ? (R(), W(z, {
@@ -215,14 +223,14 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
215
223
  name: u.icon,
216
224
  class: $(r.value)
217
225
  }, null, 8, ["name", "class"])) : M("", !0),
218
- T("span", null, G(u.label), 1),
226
+ L("span", null, G(u.label), 1),
219
227
  u.icon && u.iconPosition === "right" ? (R(), W(z, {
220
228
  key: 1,
221
229
  name: u.icon,
222
230
  class: $(r.value)
223
231
  }, null, 8, ["name", "class"])) : M("", !0)
224
232
  ], 2),
225
- u.isLoading ? (R(), L("span", Xn, [
233
+ u.isLoading ? (R(), T("span", Xn, [
226
234
  F(z, {
227
235
  class: "animate-spin",
228
236
  name: "circle-notch"
@@ -231,12 +239,12 @@ const Gn = [...Object.keys(lt.definitions.fas)].sort(), xt = [...Object.keys(lt.
231
239
  ], 10, qn));
232
240
  }
233
241
  });
234
- let Te;
242
+ let Le;
235
243
  const Yn = new Uint8Array(16);
236
244
  function Qn() {
237
- if (!Te && (Te = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Te))
245
+ if (!Le && (Le = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Le))
238
246
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
239
- return Te(Yn);
247
+ return Le(Yn);
240
248
  }
241
249
  const V = [];
242
250
  for (let e = 0; e < 256; ++e)
@@ -276,9 +284,9 @@ const eo = { class: "relative flex items-start" }, to = { class: "flex items-cen
276
284
  const l = t, o = (n) => {
277
285
  l("update:modelValue", n.target.checked);
278
286
  };
279
- return (n, r) => (R(), L("div", eo, [
280
- T("div", to, [
281
- T("input", {
287
+ return (n, r) => (R(), T("div", eo, [
288
+ L("div", to, [
289
+ L("input", {
282
290
  class: "h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",
283
291
  type: "checkbox",
284
292
  checked: n.modelValue,
@@ -286,12 +294,12 @@ const eo = { class: "relative flex items-start" }, to = { class: "flex items-cen
286
294
  id: n.id
287
295
  }, null, 40, no)
288
296
  ]),
289
- T("div", oo, [
290
- T("label", {
297
+ L("div", oo, [
298
+ L("label", {
291
299
  for: n.id,
292
300
  class: "font-medium text-grey-700 dark:text-grey-200 casual-25"
293
301
  }, G(n.label), 9, lo),
294
- n.description ? (R(), L("p", ro, G(n.description), 1)) : M("", !0)
302
+ n.description ? (R(), T("p", ro, G(n.description), 1)) : M("", !0)
295
303
  ])
296
304
  ]));
297
305
  }
@@ -477,13 +485,13 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
477
485
  }
478
486
  );
479
487
  const i = l, { inputClasses: u, disabledClasses: c, textSizeClasses: a } = rt(o), s = k(() => o.type === "color" ? "text" : o.type), {
480
- isSupported: d,
488
+ isSupported: f,
481
489
  open: v,
482
- sRGBHex: f
490
+ sRGBHex: p
483
491
  } = so(), g = () => {
484
492
  v();
485
493
  };
486
- Q(f, (y) => {
494
+ Q(p, (y) => {
487
495
  r.value = y, i("update:modelValue", y);
488
496
  });
489
497
  const m = function(y) {
@@ -502,10 +510,10 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
502
510
  focus: () => {
503
511
  o.isDisabled || h.value.focus();
504
512
  }
505
- }), (y, x) => (R(), L("div", {
513
+ }), (y, x) => (R(), T("div", {
506
514
  class: $(["relative", [y.block ? "w-full block" : "inline-block"]])
507
515
  }, [
508
- T("input", ot({
516
+ L("input", ot({
509
517
  class: ["relative mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(u), _(a), _(c)]],
510
518
  placeholder: y.placeholder,
511
519
  type: s.value,
@@ -516,9 +524,9 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
516
524
  ref: n,
517
525
  onInput: m
518
526
  }), null, 16, Eo),
519
- y.type === "color" ? (R(), L(be, { key: 0 }, [
520
- T("label", Do, [
521
- An(T("input", {
527
+ y.type === "color" ? (R(), T(be, { key: 0 }, [
528
+ L("label", Do, [
529
+ An(L("input", {
522
530
  class: "invisible",
523
531
  type: "color",
524
532
  "onUpdate:modelValue": x[0] || (x[0] = (w) => r.value = w),
@@ -526,12 +534,12 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
526
534
  }, null, 544), [
527
535
  [$n, r.value]
528
536
  ]),
529
- T("span", {
537
+ L("span", {
530
538
  class: "border-1 absolute inset-0 block rounded border border-grey-600/25 bg-clip-border shadow",
531
539
  style: Nt(`background-color: ${r.value}`)
532
540
  }, null, 4)
533
541
  ]),
534
- _(d) && y.showColorPicker ? (R(), L("button", {
542
+ _(f) && y.showColorPicker ? (R(), T("button", {
535
543
  key: 0,
536
544
  type: "button",
537
545
  class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
@@ -542,7 +550,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
542
550
  name: "eyedropper"
543
551
  })
544
552
  ])) : M("", !0)
545
- ], 64)) : y.icon ? (R(), L("span", {
553
+ ], 64)) : y.icon ? (R(), T("span", {
546
554
  key: 1,
547
555
  class: $(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", _(a)])
548
556
  }, [
@@ -550,7 +558,7 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
550
558
  ], 2)) : M("", !0)
551
559
  ], 2));
552
560
  }
553
- }), Po = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, To = ["for"], Lo = {
561
+ }), Po = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, Lo = ["for"], To = {
554
562
  key: 0,
555
563
  class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
556
564
  }, Pr = /* @__PURE__ */ A({
@@ -561,9 +569,9 @@ const Eo = ["placeholder", "type", "tabindex", "value"], Do = { class: "absolute
561
569
  description: {}
562
570
  },
563
571
  setup(e) {
564
- return (t, l) => (R(), L("span", Po, [
565
- T("label", { for: t.id }, G(t.label), 9, To),
566
- t.description ? (R(), L("span", Lo, G(t.description), 1)) : M("", !0)
572
+ return (t, l) => (R(), T("span", Po, [
573
+ L("label", { for: t.id }, G(t.label), 9, Lo),
574
+ t.description ? (R(), T("span", To, G(t.description), 1)) : M("", !0)
567
575
  ]));
568
576
  }
569
577
  });
@@ -595,22 +603,22 @@ function Qe({ props: e, attrs: t, slots: l, slot: o, name: n }) {
595
603
  var r, i;
596
604
  let { as: u, ...c } = it(e, ["unmount", "static"]), a = (r = l.default) == null ? void 0 : r.call(l, o), s = {};
597
605
  if (o) {
598
- let d = !1, v = [];
599
- for (let [f, g] of Object.entries(o))
600
- typeof g == "boolean" && (d = !0), g === !0 && v.push(f);
601
- d && (s["data-headlessui-state"] = v.join(" "));
606
+ let f = !1, v = [];
607
+ for (let [p, g] of Object.entries(o))
608
+ typeof g == "boolean" && (f = !0), g === !0 && v.push(p);
609
+ f && (s["data-headlessui-state"] = v.join(" "));
602
610
  }
603
611
  if (u === "template") {
604
612
  if (a = Qt(a ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
605
- let [d, ...v] = a ?? [];
606
- if (!Ao(d) || v.length > 0)
613
+ let [f, ...v] = a ?? [];
614
+ if (!Ao(f) || v.length > 0)
607
615
  throw new Error(['Passing props on "template"!', "", `The current component <${n} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((m) => m.trim()).filter((m, h, b) => b.indexOf(m) === h).sort((m, h) => m.localeCompare(h)).map((m) => ` - ${m}`).join(`
608
616
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
609
617
  `)].join(`
610
618
  `));
611
- let f = Zt((i = d.props) != null ? i : {}, c), g = Mn(d, f);
612
- for (let m in f)
613
- m.startsWith("on") && (g.props || (g.props = {}), g.props[m] = f[m]);
619
+ let p = Zt((i = f.props) != null ? i : {}, c), g = Mn(f, p);
620
+ for (let m in p)
621
+ m.startsWith("on") && (g.props || (g.props = {}), g.props[m] = p[m]);
614
622
  return g;
615
623
  }
616
624
  return Array.isArray(a) && a.length === 1 ? a[0] : a;
@@ -847,11 +855,11 @@ function Xo(e, t, { sorted: l = !0, relativeTo: o = null, skipElements: n = [] }
847
855
  if (t & 8)
848
856
  return u.length - 1;
849
857
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
850
- })(), s = t & 32 ? { preventScroll: !0 } : {}, d = 0, v = u.length, f;
858
+ })(), s = t & 32 ? { preventScroll: !0 } : {}, f = 0, v = u.length, p;
851
859
  do {
852
- if (d >= v || d + v <= 0)
860
+ if (f >= v || f + v <= 0)
853
861
  return 0;
854
- let g = a + d;
862
+ let g = a + f;
855
863
  if (t & 16)
856
864
  g = (g + v) % v;
857
865
  else {
@@ -860,11 +868,11 @@ function Xo(e, t, { sorted: l = !0, relativeTo: o = null, skipElements: n = [] }
860
868
  if (g >= v)
861
869
  return 1;
862
870
  }
863
- f = u[g], f == null || f.focus(s), d += c;
864
- } while (f !== i.activeElement);
865
- return t & 6 && Go(f) && f.select(), 2;
871
+ p = u[g], p == null || p.focus(s), f += c;
872
+ } while (p !== i.activeElement);
873
+ return t & 6 && Go(p) && p.select(), 2;
866
874
  }
867
- function Le(e, t, l) {
875
+ function Te(e, t, l) {
868
876
  st.isServer || xe((o) => {
869
877
  document.addEventListener(e, t, l), o(() => document.removeEventListener(e, t, l));
870
878
  });
@@ -894,15 +902,15 @@ function an(e, t, l = k(() => !0)) {
894
902
  return !ze(u, je.Loose) && u.tabIndex !== -1 && r.preventDefault(), t(r, u);
895
903
  }
896
904
  let n = C(null);
897
- Le("pointerdown", (r) => {
905
+ Te("pointerdown", (r) => {
898
906
  var i, u;
899
907
  l.value && (n.value = ((u = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : u[0]) || r.target);
900
- }, !0), Le("mousedown", (r) => {
908
+ }, !0), Te("mousedown", (r) => {
901
909
  var i, u;
902
910
  l.value && (n.value = ((u = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : u[0]) || r.target);
903
- }, !0), Le("click", (r) => {
911
+ }, !0), Te("click", (r) => {
904
912
  n.value && (o(r, () => n.value), n.value = null);
905
- }, !0), Le("touchend", (r) => o(r, () => r.target instanceof HTMLElement ? r.target : null), !0), Yo("blur", (r) => o(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
913
+ }, !0), Te("touchend", (r) => o(r, () => r.target instanceof HTMLElement ? r.target : null), !0), Yo("blur", (r) => o(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
906
914
  }
907
915
  var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
908
916
  let sn = A({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: l }) {
@@ -976,12 +984,12 @@ function Jo({ slot: e = C({}), name: t = "Description", props: l = {} } = {}) {
976
984
  A({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${J()}` } }, setup(e, { attrs: t, slots: l }) {
977
985
  let o = Zo();
978
986
  return ee(() => Ne(o.register(e.id))), () => {
979
- let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [d, v]) => Object.assign(s, { [d]: _(v) }), {}), id: u };
987
+ let { name: n = "Description", slot: r = C({}), props: i = {} } = o, { id: u, ...c } = e, a = { ...Object.entries(i).reduce((s, [f, v]) => Object.assign(s, { [f]: _(v) }), {}), id: u };
980
988
  return j({ ourProps: a, theirProps: c, slot: r.value, attrs: t, slots: l, name: n });
981
989
  };
982
990
  } });
983
991
  let Pt = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
984
- function Tt(e) {
992
+ function Lt(e) {
985
993
  var t, l;
986
994
  let o = (t = e.innerText) != null ? t : "", n = e.cloneNode(!0);
987
995
  if (!(n instanceof HTMLElement))
@@ -1002,14 +1010,14 @@ function el(e) {
1002
1010
  let r = document.getElementById(n);
1003
1011
  if (r) {
1004
1012
  let i = r.getAttribute("aria-label");
1005
- return typeof i == "string" ? i.trim() : Tt(r).trim();
1013
+ return typeof i == "string" ? i.trim() : Lt(r).trim();
1006
1014
  }
1007
1015
  return null;
1008
1016
  }).filter(Boolean);
1009
1017
  if (o.length > 0)
1010
1018
  return o.join(", ");
1011
1019
  }
1012
- return Tt(e).trim();
1020
+ return Lt(e).trim();
1013
1021
  }
1014
1022
  function vn(e) {
1015
1023
  let t = C(""), l = C("");
@@ -1041,18 +1049,18 @@ function De(e) {
1041
1049
  return t;
1042
1050
  }
1043
1051
  let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => tl }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: l, emit: o }) {
1044
- let n = C(1), r = C(null), i = C(null), u = C(null), c = C([]), a = C(""), s = C(null), d = C(1);
1052
+ let n = C(1), r = C(null), i = C(null), u = C(null), c = C([]), a = C(""), s = C(null), f = C(1);
1045
1053
  function v(x = (w) => w) {
1046
1054
  let w = s.value !== null ? c.value[s.value] : null, S = ct(x(c.value.slice()), (O) => E(O.dataRef.domRef)), P = w ? S.indexOf(w) : null;
1047
1055
  return P === -1 && (P = null), { options: S, activeOptionIndex: P };
1048
1056
  }
1049
- let f = k(() => e.multiple ? 1 : 0), [g, m] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => g.value === void 0 ? K(f.value, { 1: [], 0: void 0 }) : g.value), b = { listboxState: n, value: h, mode: f, compare(x, w) {
1057
+ let p = k(() => e.multiple ? 1 : 0), [g, m] = fn(k(() => e.modelValue), (x) => o("update:modelValue", x), k(() => e.defaultValue)), h = k(() => g.value === void 0 ? K(p.value, { 1: [], 0: void 0 }) : g.value), b = { listboxState: n, value: h, mode: p, compare(x, w) {
1050
1058
  if (typeof e.by == "string") {
1051
1059
  let S = e.by;
1052
1060
  return (x == null ? void 0 : x[S]) === (w == null ? void 0 : w[S]);
1053
1061
  }
1054
1062
  return e.by(x, w);
1055
- }, orientation: k(() => e.horizontal ? "horizontal" : "vertical"), labelRef: r, buttonRef: i, optionsRef: u, disabled: k(() => e.disabled), options: c, searchQuery: a, activeOptionIndex: s, activationTrigger: d, closeListbox() {
1063
+ }, orientation: k(() => e.horizontal ? "horizontal" : "vertical"), labelRef: r, buttonRef: i, optionsRef: u, disabled: k(() => e.disabled), options: c, searchQuery: a, activeOptionIndex: s, activationTrigger: f, closeListbox() {
1056
1064
  e.disabled || n.value !== 1 && (n.value = 1, s.value = null);
1057
1065
  }, openListbox() {
1058
1066
  e.disabled || n.value !== 0 && (n.value = 0);
@@ -1060,14 +1068,14 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1060
1068
  if (e.disabled || n.value === 1)
1061
1069
  return;
1062
1070
  let P = v(), O = en(x === I.Specific ? { focus: I.Specific, id: w } : { focus: x }, { resolveItems: () => P.options, resolveActiveIndex: () => P.activeOptionIndex, resolveId: (N) => N.id, resolveDisabled: (N) => N.dataRef.disabled });
1063
- a.value = "", s.value = O, d.value = S ?? 1, c.value = P.options;
1071
+ a.value = "", s.value = O, f.value = S ?? 1, c.value = P.options;
1064
1072
  }, search(x) {
1065
1073
  if (e.disabled || n.value === 1)
1066
1074
  return;
1067
1075
  let w = a.value !== "" ? 0 : 1;
1068
1076
  a.value += x.toLowerCase();
1069
1077
  let S = (s.value !== null ? c.value.slice(s.value + w).concat(c.value.slice(0, s.value + w)) : c.value).find((O) => O.dataRef.textValue.startsWith(a.value) && !O.dataRef.disabled), P = S ? c.value.indexOf(S) : -1;
1070
- P === -1 || P === s.value || (s.value = P, d.value = 1);
1078
+ P === -1 || P === s.value || (s.value = P, f.value = 1);
1071
1079
  }, clearSearch() {
1072
1080
  e.disabled || n.value !== 1 && a.value !== "" && (a.value = "");
1073
1081
  }, registerOption(x, w) {
@@ -1078,11 +1086,11 @@ let il = A({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
1078
1086
  let P = S.findIndex((O) => O.id === x);
1079
1087
  return P !== -1 && S.splice(P, 1), S;
1080
1088
  });
1081
- c.value = w.options, s.value = w.activeOptionIndex, d.value = 1;
1089
+ c.value = w.options, s.value = w.activeOptionIndex, f.value = 1;
1082
1090
  }, theirOnChange(x) {
1083
1091
  e.disabled || m(x);
1084
1092
  }, select(x) {
1085
- e.disabled || m(K(f.value, { 0: () => x, 1: () => {
1093
+ e.disabled || m(K(p.value, { 0: () => x, 1: () => {
1086
1094
  let w = X(b.value.value).slice(), S = X(x), P = w.findIndex((O) => b.compare(S, X(O)));
1087
1095
  return P === -1 ? w.push(S) : w.splice(P, 1), w;
1088
1096
  } }));
@@ -1163,8 +1171,8 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1163
1171
  let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
1164
1172
  return () => {
1165
1173
  var a, s;
1166
- let d = { open: n.listboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: v, ...f } = e, g = { ref: n.buttonRef, id: v, type: c.value, "aria-haspopup": "listbox", "aria-controls": (a = E(n.optionsRef)) == null ? void 0 : a.id, "aria-expanded": n.listboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(s = E(n.labelRef)) == null ? void 0 : s.id, v].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: r, onKeyup: i, onClick: u };
1167
- return j({ ourProps: g, theirProps: f, slot: d, attrs: t, slots: l, name: "ListboxButton" });
1174
+ let f = { open: n.listboxState.value === 0, disabled: n.disabled.value, value: n.value.value }, { id: v, ...p } = e, g = { ref: n.buttonRef, id: v, type: c.value, "aria-haspopup": "listbox", "aria-controls": (a = E(n.optionsRef)) == null ? void 0 : a.id, "aria-expanded": n.listboxState.value === 0, "aria-labelledby": n.labelRef.value ? [(s = E(n.labelRef)) == null ? void 0 : s.id, v].join(" ") : void 0, disabled: n.disabled.value === !0 ? !0 : void 0, onKeydown: r, onKeyup: i, onClick: u };
1175
+ return j({ ourProps: g, theirProps: p, slot: f, attrs: t, slots: l, name: "ListboxButton" });
1168
1176
  };
1169
1177
  } }), sl = A({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-listbox-options-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
1170
1178
  let n = De("ListboxOptions"), r = C(null);
@@ -1210,9 +1218,9 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1210
1218
  }
1211
1219
  let u = nn(), c = k(() => u !== null ? (u.value & te.Open) === te.Open : n.listboxState.value === 0);
1212
1220
  return () => {
1213
- var a, s, d, v;
1214
- let f = { open: n.listboxState.value === 0 }, { id: g, ...m } = e, h = { "aria-activedescendant": n.activeOptionIndex.value === null || (a = n.options.value[n.activeOptionIndex.value]) == null ? void 0 : a.id, "aria-multiselectable": n.mode.value === 1 ? !0 : void 0, "aria-labelledby": (v = (s = E(n.labelRef)) == null ? void 0 : s.id) != null ? v : (d = E(n.buttonRef)) == null ? void 0 : d.id, "aria-orientation": n.orientation.value, id: g, onKeydown: i, role: "listbox", tabIndex: 0, ref: n.optionsRef };
1215
- return j({ ourProps: h, theirProps: m, slot: f, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: c.value, name: "ListboxOptions" });
1221
+ var a, s, f, v;
1222
+ let p = { open: n.listboxState.value === 0 }, { id: g, ...m } = e, h = { "aria-activedescendant": n.activeOptionIndex.value === null || (a = n.options.value[n.activeOptionIndex.value]) == null ? void 0 : a.id, "aria-multiselectable": n.mode.value === 1 ? !0 : void 0, "aria-labelledby": (v = (s = E(n.labelRef)) == null ? void 0 : s.id) != null ? v : (f = E(n.buttonRef)) == null ? void 0 : f.id, "aria-orientation": n.orientation.value, id: g, onKeydown: i, role: "listbox", tabIndex: 0, ref: n.optionsRef };
1223
+ return j({ ourProps: h, theirProps: m, slot: p, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: c.value, name: "ListboxOptions" });
1216
1224
  };
1217
1225
  } }), ul = A({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-listbox.option-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
1218
1226
  let n = De("ListboxOption"), r = C(null);
@@ -1238,7 +1246,7 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1238
1246
  return (y = (b = E(r)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
1239
1247
  });
1240
1248
  });
1241
- function d(b) {
1249
+ function f(b) {
1242
1250
  if (e.disabled)
1243
1251
  return b.preventDefault();
1244
1252
  n.select(e.value), n.mode.value === 0 && (n.closeListbox(), B(() => {
@@ -1251,18 +1259,18 @@ let al = A({ name: "ListboxButton", props: { as: { type: [Object, String], defau
1251
1259
  return n.goToOption(I.Nothing);
1252
1260
  n.goToOption(I.Specific, e.id);
1253
1261
  }
1254
- let f = pn();
1262
+ let p = pn();
1255
1263
  function g(b) {
1256
- f.update(b);
1264
+ p.update(b);
1257
1265
  }
1258
1266
  function m(b) {
1259
- f.wasMoved(b) && (e.disabled || i.value || n.goToOption(I.Specific, e.id, 0));
1267
+ p.wasMoved(b) && (e.disabled || i.value || n.goToOption(I.Specific, e.id, 0));
1260
1268
  }
1261
1269
  function h(b) {
1262
- f.wasMoved(b) && (e.disabled || i.value && n.goToOption(I.Nothing));
1270
+ p.wasMoved(b) && (e.disabled || i.value && n.goToOption(I.Nothing));
1263
1271
  }
1264
1272
  return () => {
1265
- let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ...P } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: d, onFocus: v, onPointerenter: g, onMouseenter: g, onPointermove: m, onMousemove: m, onPointerleave: h, onMouseleave: h };
1273
+ let { disabled: b } = e, y = { active: i.value, selected: u.value, disabled: b }, { id: x, value: w, disabled: S, ...P } = e, O = { id: x, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: f, onFocus: v, onPointerenter: g, onMouseenter: g, onPointermove: m, onMousemove: m, onPointerleave: h, onMouseleave: h };
1266
1274
  return j({ ourProps: O, theirProps: P, slot: y, attrs: l, slots: t, name: "ListboxOption" });
1267
1275
  };
1268
1276
  } });
@@ -1281,37 +1289,37 @@ function He(e) {
1281
1289
  }
1282
1290
  let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: l }) {
1283
1291
  let o = C(1), n = C(null), r = C(null), i = C([]), u = C(""), c = C(null), a = C(1);
1284
- function s(v = (f) => f) {
1285
- let f = c.value !== null ? i.value[c.value] : null, g = ct(v(i.value.slice()), (h) => E(h.dataRef.domRef)), m = f ? g.indexOf(f) : null;
1292
+ function s(v = (p) => p) {
1293
+ let p = c.value !== null ? i.value[c.value] : null, g = ct(v(i.value.slice()), (h) => E(h.dataRef.domRef)), m = p ? g.indexOf(p) : null;
1286
1294
  return m === -1 && (m = null), { items: g, activeItemIndex: m };
1287
1295
  }
1288
- let d = { menuState: o, buttonRef: n, itemsRef: r, items: i, searchQuery: u, activeItemIndex: c, activationTrigger: a, closeMenu: () => {
1296
+ let f = { menuState: o, buttonRef: n, itemsRef: r, items: i, searchQuery: u, activeItemIndex: c, activationTrigger: a, closeMenu: () => {
1289
1297
  o.value = 1, c.value = null;
1290
- }, openMenu: () => o.value = 0, goToItem(v, f, g) {
1291
- let m = s(), h = en(v === I.Specific ? { focus: I.Specific, id: f } : { focus: v }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
1298
+ }, openMenu: () => o.value = 0, goToItem(v, p, g) {
1299
+ let m = s(), h = en(v === I.Specific ? { focus: I.Specific, id: p } : { focus: v }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
1292
1300
  u.value = "", c.value = h, a.value = g ?? 1, i.value = m.items;
1293
1301
  }, search(v) {
1294
- let f = u.value !== "" ? 0 : 1;
1302
+ let p = u.value !== "" ? 0 : 1;
1295
1303
  u.value += v.toLowerCase();
1296
- let g = (c.value !== null ? i.value.slice(c.value + f).concat(i.value.slice(0, c.value + f)) : i.value).find((h) => h.dataRef.textValue.startsWith(u.value) && !h.dataRef.disabled), m = g ? i.value.indexOf(g) : -1;
1304
+ let g = (c.value !== null ? i.value.slice(c.value + p).concat(i.value.slice(0, c.value + p)) : i.value).find((h) => h.dataRef.textValue.startsWith(u.value) && !h.dataRef.disabled), m = g ? i.value.indexOf(g) : -1;
1297
1305
  m === -1 || m === c.value || (c.value = m, a.value = 1);
1298
1306
  }, clearSearch() {
1299
1307
  u.value = "";
1300
- }, registerItem(v, f) {
1301
- let g = s((m) => [...m, { id: v, dataRef: f }]);
1308
+ }, registerItem(v, p) {
1309
+ let g = s((m) => [...m, { id: v, dataRef: p }]);
1302
1310
  i.value = g.items, c.value = g.activeItemIndex, a.value = 1;
1303
1311
  }, unregisterItem(v) {
1304
- let f = s((g) => {
1312
+ let p = s((g) => {
1305
1313
  let m = g.findIndex((h) => h.id === v);
1306
1314
  return m !== -1 && g.splice(m, 1), g;
1307
1315
  });
1308
- i.value = f.items, c.value = f.activeItemIndex, a.value = 1;
1316
+ i.value = p.items, c.value = p.activeItemIndex, a.value = 1;
1309
1317
  } };
1310
- return an([n, r], (v, f) => {
1318
+ return an([n, r], (v, p) => {
1311
1319
  var g;
1312
- d.closeMenu(), ze(f, je.Loose) || (v.preventDefault(), (g = E(n)) == null || g.focus());
1313
- }, k(() => o.value === 0)), ye(bn, d), on(k(() => K(o.value, { 0: te.Open, 1: te.Closed }))), () => {
1314
- let v = { open: o.value === 0, close: d.closeMenu };
1320
+ f.closeMenu(), ze(p, je.Loose) || (v.preventDefault(), (g = E(n)) == null || g.focus());
1321
+ }, k(() => o.value === 0)), ye(bn, f), on(k(() => K(o.value, { 0: te.Open, 1: te.Closed }))), () => {
1322
+ let v = { open: o.value === 0, close: f.closeMenu };
1315
1323
  return j({ ourProps: {}, theirProps: e, slot: v, slots: t, attrs: l, name: "Menu" });
1316
1324
  };
1317
1325
  } }), ml = A({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
@@ -1354,8 +1362,8 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1354
1362
  let c = at(k(() => ({ as: e.as, type: t.type })), n.buttonRef);
1355
1363
  return () => {
1356
1364
  var a;
1357
- let s = { open: n.menuState.value === 0 }, { id: d, ...v } = e, f = { ref: n.buttonRef, id: d, type: c.value, "aria-haspopup": "menu", "aria-controls": (a = E(n.itemsRef)) == null ? void 0 : a.id, "aria-expanded": n.menuState.value === 0, onKeydown: r, onKeyup: i, onClick: u };
1358
- return j({ ourProps: f, theirProps: v, slot: s, attrs: t, slots: l, name: "MenuButton" });
1365
+ let s = { open: n.menuState.value === 0 }, { id: f, ...v } = e, p = { ref: n.buttonRef, id: f, type: c.value, "aria-haspopup": "menu", "aria-controls": (a = E(n.itemsRef)) == null ? void 0 : a.id, "aria-expanded": n.menuState.value === 0, onKeydown: r, onKeyup: i, onClick: u };
1366
+ return j({ ourProps: p, theirProps: v, slot: s, attrs: t, slots: l, name: "MenuButton" });
1359
1367
  };
1360
1368
  } }), vl = A({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${J()}` } }, setup(e, { attrs: t, slots: l, expose: o }) {
1361
1369
  let n = He("MenuItems"), r = C(null);
@@ -1365,7 +1373,7 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1365
1373
  s.setAttribute("role", "none");
1366
1374
  } });
1367
1375
  function i(s) {
1368
- var d;
1376
+ var f;
1369
1377
  switch (r.value && clearTimeout(r.value), s.key) {
1370
1378
  case D.Space:
1371
1379
  if (n.searchQuery.value !== "")
@@ -1373,7 +1381,7 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1373
1381
  case D.Enter:
1374
1382
  if (s.preventDefault(), s.stopPropagation(), n.activeItemIndex.value !== null) {
1375
1383
  let v = n.items.value[n.activeItemIndex.value];
1376
- (d = E(v.dataRef.domRef)) == null || d.click();
1384
+ (f = E(v.dataRef.domRef)) == null || f.click();
1377
1385
  }
1378
1386
  n.closeMenu(), rn(E(n.buttonRef));
1379
1387
  break;
@@ -1410,8 +1418,8 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1410
1418
  }
1411
1419
  let c = nn(), a = k(() => c !== null ? (c.value & te.Open) === te.Open : n.menuState.value === 0);
1412
1420
  return () => {
1413
- var s, d;
1414
- let v = { open: n.menuState.value === 0 }, { id: f, ...g } = e, m = { "aria-activedescendant": n.activeItemIndex.value === null || (s = n.items.value[n.activeItemIndex.value]) == null ? void 0 : s.id, "aria-labelledby": (d = E(n.buttonRef)) == null ? void 0 : d.id, id: f, onKeydown: i, onKeyup: u, role: "menu", tabIndex: 0, ref: n.itemsRef };
1421
+ var s, f;
1422
+ let v = { open: n.menuState.value === 0 }, { id: p, ...g } = e, m = { "aria-activedescendant": n.activeItemIndex.value === null || (s = n.items.value[n.activeItemIndex.value]) == null ? void 0 : s.id, "aria-labelledby": (f = E(n.buttonRef)) == null ? void 0 : f.id, id: p, onKeydown: i, onKeyup: u, role: "menu", tabIndex: 0, ref: n.itemsRef };
1415
1423
  return j({ ourProps: m, theirProps: g, slot: v, attrs: t, slots: l, features: Re.RenderStrategy | Re.Static, visible: a.value, name: "MenuItems" });
1416
1424
  };
1417
1425
  } }), gl = A({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${J()}` } }, setup(e, { slots: t, attrs: l, expose: o }) {
@@ -1436,19 +1444,19 @@ let pl = A({ name: "Menu", props: { as: { type: [Object, String], default: "temp
1436
1444
  return n.goToItem(I.Nothing);
1437
1445
  n.goToItem(I.Specific, e.id);
1438
1446
  }
1439
- let d = pn();
1447
+ let f = pn();
1440
1448
  function v(m) {
1441
- d.update(m);
1449
+ f.update(m);
1442
1450
  }
1443
- function f(m) {
1444
- d.wasMoved(m) && (e.disabled || i.value || n.goToItem(I.Specific, e.id, 0));
1451
+ function p(m) {
1452
+ f.wasMoved(m) && (e.disabled || i.value || n.goToItem(I.Specific, e.id, 0));
1445
1453
  }
1446
1454
  function g(m) {
1447
- d.wasMoved(m) && (e.disabled || i.value && n.goToItem(I.Nothing));
1455
+ f.wasMoved(m) && (e.disabled || i.value && n.goToItem(I.Nothing));
1448
1456
  }
1449
1457
  return () => {
1450
1458
  let { disabled: m } = e, h = { active: i.value, disabled: m, close: n.closeMenu }, { id: b, ...y } = e;
1451
- return j({ ourProps: { id: b, ref: r, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: v, onMouseenter: v, onPointermove: f, onMousemove: f, onPointerleave: g, onMouseleave: g }, theirProps: { ...l, ...y }, slot: h, attrs: l, slots: t, name: "MenuItem" });
1459
+ return j({ ourProps: { id: b, ref: r, role: "menuitem", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, disabled: void 0, onClick: a, onFocus: s, onPointerenter: v, onMouseenter: v, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...l, ...y }, slot: h, attrs: l, slots: t, name: "MenuItem" });
1452
1460
  };
1453
1461
  } }), hn = Symbol("LabelContext");
1454
1462
  function yn() {
@@ -1472,7 +1480,7 @@ function bl({ slot: e = {}, name: t = "Label", props: l = {} } = {}) {
1472
1480
  A({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${J()}` } }, setup(e, { slots: t, attrs: l }) {
1473
1481
  let o = yn();
1474
1482
  return ee(() => Ne(o.register(e.id))), () => {
1475
- let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((d, [v, f]) => Object.assign(d, { [v]: _(f) }), {}), id: u };
1483
+ let { name: n = "Label", slot: r = {}, props: i = {} } = o, { id: u, passive: c, ...a } = e, s = { ...Object.entries(i).reduce((f, [v, p]) => Object.assign(f, { [v]: _(p) }), {}), id: u };
1476
1484
  return c && (delete s.onClick, delete s.htmlFor, delete a.onClick), j({ ourProps: s, theirProps: a, slot: r, attrs: l, slots: t, name: n });
1477
1485
  };
1478
1486
  } });
@@ -1491,12 +1499,12 @@ let hl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: {
1491
1499
  function c() {
1492
1500
  u(!i.value);
1493
1501
  }
1494
- let a = C(null), s = r === null ? a : r.switchRef, d = at(k(() => ({ as: e.as, type: l.type })), s);
1502
+ let a = C(null), s = r === null ? a : r.switchRef, f = at(k(() => ({ as: e.as, type: l.type })), s);
1495
1503
  n({ el: s, $el: s });
1496
1504
  function v(h) {
1497
1505
  h.preventDefault(), c();
1498
1506
  }
1499
- function f(h) {
1507
+ function p(h) {
1500
1508
  h.key === D.Space ? (h.preventDefault(), c()) : h.key === D.Enter && Qo(h.currentTarget);
1501
1509
  }
1502
1510
  function g(h) {
@@ -1519,7 +1527,7 @@ let hl = A({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: {
1519
1527
  };
1520
1528
  }, { immediate: !0 });
1521
1529
  }), () => {
1522
- let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, P = { id: h, ref: s, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: v, onKeyup: f, onKeypress: g };
1530
+ let { id: h, name: b, value: y, form: x, ...w } = e, S = { checked: i.value }, P = { id: h, ref: s, role: "switch", type: f.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": r == null ? void 0 : r.labelledby.value, "aria-describedby": r == null ? void 0 : r.describedby.value, onClick: v, onKeyup: p, onKeypress: g };
1523
1531
  return Oe(be, [b != null && i.value != null ? Oe(sn, Jt({ features: dt.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: x, name: b, value: y })) : null, j({ ourProps: P, theirProps: { ...l, ...it(w, ["modelValue", "defaultChecked"]) }, slot: S, attrs: l, slots: o, name: "Switch" })]);
1524
1532
  };
1525
1533
  } });
@@ -1535,7 +1543,7 @@ const $e = Math.min, ue = Math.max, Me = Math.round, Ie = Math.floor, ae = (e) =
1535
1543
  start: "end",
1536
1544
  end: "start"
1537
1545
  };
1538
- function Lt(e, t, l) {
1546
+ function Tt(e, t, l) {
1539
1547
  return ue(e, $e(t, l));
1540
1548
  }
1541
1549
  function Ue(e, t) {
@@ -1624,48 +1632,48 @@ function It(e, t, l) {
1624
1632
  reference: o,
1625
1633
  floating: n
1626
1634
  } = e;
1627
- const r = Ke(t), i = Sn(t), u = kn(i), c = ce(t), a = r === "y", s = o.x + o.width / 2 - n.width / 2, d = o.y + o.height / 2 - n.height / 2, v = o[u] / 2 - n[u] / 2;
1628
- let f;
1635
+ const r = Ke(t), i = Sn(t), u = kn(i), c = ce(t), a = r === "y", s = o.x + o.width / 2 - n.width / 2, f = o.y + o.height / 2 - n.height / 2, v = o[u] / 2 - n[u] / 2;
1636
+ let p;
1629
1637
  switch (c) {
1630
1638
  case "top":
1631
- f = {
1639
+ p = {
1632
1640
  x: s,
1633
1641
  y: o.y - n.height
1634
1642
  };
1635
1643
  break;
1636
1644
  case "bottom":
1637
- f = {
1645
+ p = {
1638
1646
  x: s,
1639
1647
  y: o.y + o.height
1640
1648
  };
1641
1649
  break;
1642
1650
  case "right":
1643
- f = {
1651
+ p = {
1644
1652
  x: o.x + o.width,
1645
- y: d
1653
+ y: f
1646
1654
  };
1647
1655
  break;
1648
1656
  case "left":
1649
- f = {
1657
+ p = {
1650
1658
  x: o.x - n.width,
1651
- y: d
1659
+ y: f
1652
1660
  };
1653
1661
  break;
1654
1662
  default:
1655
- f = {
1663
+ p = {
1656
1664
  x: o.x,
1657
1665
  y: o.y
1658
1666
  };
1659
1667
  }
1660
1668
  switch (We(t)) {
1661
1669
  case "start":
1662
- f[i] -= v * (l && a ? -1 : 1);
1670
+ p[i] -= v * (l && a ? -1 : 1);
1663
1671
  break;
1664
1672
  case "end":
1665
- f[i] += v * (l && a ? -1 : 1);
1673
+ p[i] += v * (l && a ? -1 : 1);
1666
1674
  break;
1667
1675
  }
1668
- return f;
1676
+ return p;
1669
1677
  }
1670
1678
  const El = async (e, t, l) => {
1671
1679
  const {
@@ -1680,8 +1688,8 @@ const El = async (e, t, l) => {
1680
1688
  strategy: n
1681
1689
  }), {
1682
1690
  x: s,
1683
- y: d
1684
- } = It(a, o, c), v = o, f = {}, g = 0;
1691
+ y: f
1692
+ } = It(a, o, c), v = o, p = {}, g = 0;
1685
1693
  for (let m = 0; m < u.length; m++) {
1686
1694
  const {
1687
1695
  name: h,
@@ -1693,11 +1701,11 @@ const El = async (e, t, l) => {
1693
1701
  reset: S
1694
1702
  } = await b({
1695
1703
  x: s,
1696
- y: d,
1704
+ y: f,
1697
1705
  initialPlacement: o,
1698
1706
  placement: v,
1699
1707
  strategy: n,
1700
- middlewareData: f,
1708
+ middlewareData: p,
1701
1709
  rects: a,
1702
1710
  platform: i,
1703
1711
  elements: {
@@ -1705,10 +1713,10 @@ const El = async (e, t, l) => {
1705
1713
  floating: t
1706
1714
  }
1707
1715
  });
1708
- if (s = y ?? s, d = x ?? d, f = {
1709
- ...f,
1716
+ if (s = y ?? s, f = x ?? f, p = {
1717
+ ...p,
1710
1718
  [h]: {
1711
- ...f[h],
1719
+ ...p[h],
1712
1720
  ...w
1713
1721
  }
1714
1722
  }, S && g <= 50) {
@@ -1718,17 +1726,17 @@ const El = async (e, t, l) => {
1718
1726
  strategy: n
1719
1727
  }) : S.rects), {
1720
1728
  x: s,
1721
- y: d
1729
+ y: f
1722
1730
  } = It(a, v, c)), m = -1;
1723
1731
  continue;
1724
1732
  }
1725
1733
  }
1726
1734
  return {
1727
1735
  x: s,
1728
- y: d,
1736
+ y: f,
1729
1737
  placement: v,
1730
1738
  strategy: n,
1731
- middlewareData: f
1739
+ middlewareData: p
1732
1740
  };
1733
1741
  };
1734
1742
  async function Cn(e, t) {
@@ -1744,15 +1752,15 @@ async function Cn(e, t) {
1744
1752
  } = e, {
1745
1753
  boundary: a = "clippingAncestors",
1746
1754
  rootBoundary: s = "viewport",
1747
- elementContext: d = "floating",
1755
+ elementContext: f = "floating",
1748
1756
  altBoundary: v = !1,
1749
- padding: f = 0
1750
- } = Ue(t, e), g = Rl(f), h = u[v ? d === "floating" ? "reference" : "floating" : d], b = Fe(await r.getClippingRect({
1757
+ padding: p = 0
1758
+ } = Ue(t, e), g = Rl(p), h = u[v ? f === "floating" ? "reference" : "floating" : f], b = Fe(await r.getClippingRect({
1751
1759
  element: (l = await (r.isElement == null ? void 0 : r.isElement(h))) == null || l ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(u.floating)),
1752
1760
  boundary: a,
1753
1761
  rootBoundary: s,
1754
1762
  strategy: c
1755
- })), y = d === "floating" ? {
1763
+ })), y = f === "floating" ? {
1756
1764
  ...i.floating,
1757
1765
  x: o,
1758
1766
  y: n
@@ -1789,9 +1797,9 @@ const Dl = function(e) {
1789
1797
  elements: a
1790
1798
  } = t, {
1791
1799
  mainAxis: s = !0,
1792
- crossAxis: d = !0,
1800
+ crossAxis: f = !0,
1793
1801
  fallbackPlacements: v,
1794
- fallbackStrategy: f = "bestFit",
1802
+ fallbackStrategy: p = "bestFit",
1795
1803
  fallbackAxisSideDirection: g = "none",
1796
1804
  flipAlignment: m = !0,
1797
1805
  ...h
@@ -1802,7 +1810,7 @@ const Dl = function(e) {
1802
1810
  !v && g !== "none" && w.push(...Cl(u, m, g, x));
1803
1811
  const S = [u, ...w], P = await Cn(t, h), O = [];
1804
1812
  let N = ((o = r.flip) == null ? void 0 : o.overflows) || [];
1805
- if (s && O.push(P[b]), d) {
1813
+ if (s && O.push(P[b]), f) {
1806
1814
  const se = wl(n, i, x);
1807
1815
  O.push(P[se[0]], P[se[1]]);
1808
1816
  }
@@ -1824,10 +1832,10 @@ const Dl = function(e) {
1824
1832
  };
1825
1833
  let we = (Pe = N.filter((fe) => fe.overflows[0] <= 0).sort((fe, pe) => fe.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : Pe.placement;
1826
1834
  if (!we)
1827
- switch (f) {
1835
+ switch (p) {
1828
1836
  case "bestFit": {
1829
1837
  var gt;
1830
- const fe = (gt = N.map((pe) => [pe.placement, pe.overflows.filter((ke) => ke > 0).reduce((ke, Ln) => ke + Ln, 0)]).sort((pe, ke) => pe[1] - ke[1])[0]) == null ? void 0 : gt[0];
1838
+ const fe = (gt = N.map((pe) => [pe.placement, pe.overflows.filter((ke) => ke > 0).reduce((ke, Tn) => ke + Tn, 0)]).sort((pe, ke) => pe[1] - ke[1])[0]) == null ? void 0 : gt[0];
1831
1839
  fe && (we = fe);
1832
1840
  break;
1833
1841
  }
@@ -1851,27 +1859,27 @@ async function _l(e, t) {
1851
1859
  placement: l,
1852
1860
  platform: o,
1853
1861
  elements: n
1854
- } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), i = ce(l), u = We(l), c = Ke(l) === "y", a = ["left", "top"].includes(i) ? -1 : 1, s = r && c ? -1 : 1, d = Ue(t, e);
1862
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), i = ce(l), u = We(l), c = Ke(l) === "y", a = ["left", "top"].includes(i) ? -1 : 1, s = r && c ? -1 : 1, f = Ue(t, e);
1855
1863
  let {
1856
1864
  mainAxis: v,
1857
- crossAxis: f,
1865
+ crossAxis: p,
1858
1866
  alignmentAxis: g
1859
- } = typeof d == "number" ? {
1860
- mainAxis: d,
1867
+ } = typeof f == "number" ? {
1868
+ mainAxis: f,
1861
1869
  crossAxis: 0,
1862
1870
  alignmentAxis: null
1863
1871
  } : {
1864
1872
  mainAxis: 0,
1865
1873
  crossAxis: 0,
1866
1874
  alignmentAxis: null,
1867
- ...d
1875
+ ...f
1868
1876
  };
1869
- return u && typeof g == "number" && (f = u === "end" ? g * -1 : g), c ? {
1870
- x: f * s,
1877
+ return u && typeof g == "number" && (p = u === "end" ? g * -1 : g), c ? {
1878
+ x: p * s,
1871
1879
  y: v * a
1872
1880
  } : {
1873
1881
  x: v * a,
1874
- y: f * s
1882
+ y: p * s
1875
1883
  };
1876
1884
  }
1877
1885
  const Pl = function(e) {
@@ -1896,7 +1904,7 @@ const Pl = function(e) {
1896
1904
  };
1897
1905
  }
1898
1906
  };
1899
- }, Tl = function(e) {
1907
+ }, Ll = function(e) {
1900
1908
  return e === void 0 && (e = {}), {
1901
1909
  name: "shift",
1902
1910
  options: e,
@@ -1924,20 +1932,20 @@ const Pl = function(e) {
1924
1932
  } = Ue(e, t), a = {
1925
1933
  x: l,
1926
1934
  y: o
1927
- }, s = await Cn(t, c), d = Ke(ce(n)), v = wn(d);
1928
- let f = a[v], g = a[d];
1935
+ }, s = await Cn(t, c), f = Ke(ce(n)), v = wn(f);
1936
+ let p = a[v], g = a[f];
1929
1937
  if (r) {
1930
- const h = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y = f + s[h], x = f - s[b];
1931
- f = Lt(y, f, x);
1938
+ const h = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y = p + s[h], x = p - s[b];
1939
+ p = Tt(y, p, x);
1932
1940
  }
1933
1941
  if (i) {
1934
- const h = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", y = g + s[h], x = g - s[b];
1935
- g = Lt(y, g, x);
1942
+ const h = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", y = g + s[h], x = g - s[b];
1943
+ g = Tt(y, g, x);
1936
1944
  }
1937
1945
  const m = u.fn({
1938
1946
  ...t,
1939
- [v]: f,
1940
- [d]: g
1947
+ [v]: p,
1948
+ [f]: g
1941
1949
  });
1942
1950
  return {
1943
1951
  ...m,
@@ -1981,7 +1989,7 @@ function _e(e) {
1981
1989
  } = q(e);
1982
1990
  return /auto|scroll|overlay|hidden|clip/.test(t + o + l) && !["inline", "contents"].includes(n);
1983
1991
  }
1984
- function Ll(e) {
1992
+ function Tl(e) {
1985
1993
  return ["table", "td", "th"].includes(ne(e));
1986
1994
  }
1987
1995
  function pt(e) {
@@ -2082,18 +2090,18 @@ function de(e, t, l, o) {
2082
2090
  let i = ae(1);
2083
2091
  t && (o ? oe(o) && (i = ve(o)) : i = ve(e));
2084
2092
  const u = $l(r, l, o) ? En(r) : ae(0);
2085
- let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x, d = n.height / i.y;
2093
+ let c = (n.left + u.x) / i.x, a = (n.top + u.y) / i.y, s = n.width / i.x, f = n.height / i.y;
2086
2094
  if (r) {
2087
- const v = H(r), f = o && oe(o) ? H(o) : o;
2095
+ const v = H(r), p = o && oe(o) ? H(o) : o;
2088
2096
  let g = v.frameElement;
2089
- for (; g && o && f !== v; ) {
2097
+ for (; g && o && p !== v; ) {
2090
2098
  const m = ve(g), h = g.getBoundingClientRect(), b = q(g), y = h.left + (g.clientLeft + parseFloat(b.paddingLeft)) * m.x, x = h.top + (g.clientTop + parseFloat(b.paddingTop)) * m.y;
2091
- c *= m.x, a *= m.y, s *= m.x, d *= m.y, c += y, a += x, g = H(g).frameElement;
2099
+ c *= m.x, a *= m.y, s *= m.x, f *= m.y, c += y, a += x, g = H(g).frameElement;
2092
2100
  }
2093
2101
  }
2094
2102
  return Fe({
2095
2103
  width: s,
2096
- height: d,
2104
+ height: f,
2097
2105
  x: c,
2098
2106
  y: a
2099
2107
  });
@@ -2207,8 +2215,8 @@ function zl(e) {
2207
2215
  strategy: n
2208
2216
  } = e;
2209
2217
  const i = [...l === "clippingAncestors" ? jl(t, this._c) : [].concat(l), o], u = i[0], c = i.reduce((a, s) => {
2210
- const d = $t(t, s, n);
2211
- return a.top = ue(d.top, a.top), a.right = $e(d.right, a.right), a.bottom = $e(d.bottom, a.bottom), a.left = ue(d.left, a.left), a;
2218
+ const f = $t(t, s, n);
2219
+ return a.top = ue(f.top, a.top), a.right = $e(f.right, a.right), a.bottom = $e(f.bottom, a.bottom), a.left = ue(f.left, a.left), a;
2212
2220
  }, $t(t, u, n));
2213
2221
  return {
2214
2222
  width: c.right - c.left,
@@ -2255,7 +2263,7 @@ function Pn(e, t) {
2255
2263
  if (!Z(e))
2256
2264
  return l;
2257
2265
  let o = Mt(e, t);
2258
- for (; o && Ll(o) && q(o).position === "static"; )
2266
+ for (; o && Tl(o) && q(o).position === "static"; )
2259
2267
  o = Mt(o, t);
2260
2268
  return o && (ne(o) === "html" || ne(o) === "body" && q(o).position === "static" && !pt(o)) ? l : o || Il(e) || l;
2261
2269
  }
@@ -2301,13 +2309,13 @@ function ql(e, t) {
2301
2309
  const {
2302
2310
  left: a,
2303
2311
  top: s,
2304
- width: d,
2312
+ width: f,
2305
2313
  height: v
2306
2314
  } = e.getBoundingClientRect();
2307
- if (u || t(), !d || !v)
2315
+ if (u || t(), !f || !v)
2308
2316
  return;
2309
- const f = Ie(s), g = Ie(n.clientWidth - (a + d)), m = Ie(n.clientHeight - (s + v)), h = Ie(a), y = {
2310
- rootMargin: -f + "px " + -g + "px " + -m + "px " + -h + "px",
2317
+ const p = Ie(s), g = Ie(n.clientWidth - (a + f)), m = Ie(n.clientHeight - (s + v)), h = Ie(a), y = {
2318
+ rootMargin: -p + "px " + -g + "px " + -m + "px " + -h + "px",
2311
2319
  threshold: ue(0, $e(1, c)) || 1
2312
2320
  };
2313
2321
  let x = !0;
@@ -2349,14 +2357,14 @@ function Xl(e, t, l, o) {
2349
2357
  passive: !0
2350
2358
  }), r && b.addEventListener("resize", l);
2351
2359
  });
2352
- const d = a && u ? ql(a, l) : null;
2353
- let v = -1, f = null;
2354
- i && (f = new ResizeObserver((b) => {
2360
+ const f = a && u ? ql(a, l) : null;
2361
+ let v = -1, p = null;
2362
+ i && (p = new ResizeObserver((b) => {
2355
2363
  let [y] = b;
2356
- y && y.target === a && f && (f.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
2357
- f && f.observe(t);
2364
+ y && y.target === a && p && (p.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
2365
+ p && p.observe(t);
2358
2366
  })), l();
2359
- }), a && !c && f.observe(a), f.observe(t));
2367
+ }), a && !c && p.observe(a), p.observe(t));
2360
2368
  let g, m = c ? de(e) : null;
2361
2369
  c && h();
2362
2370
  function h() {
@@ -2366,10 +2374,10 @@ function Xl(e, t, l, o) {
2366
2374
  return l(), () => {
2367
2375
  s.forEach((b) => {
2368
2376
  n && b.removeEventListener("scroll", l), r && b.removeEventListener("resize", l);
2369
- }), d && d(), f && f.disconnect(), f = null, c && cancelAnimationFrame(g);
2377
+ }), f && f(), p && p.disconnect(), p = null, c && cancelAnimationFrame(g);
2370
2378
  };
2371
2379
  }
2372
- const Yl = Tl, Ql = Dl, Zl = (e, t, l) => {
2380
+ const Yl = Ll, Ql = Dl, Zl = (e, t, l) => {
2373
2381
  const o = /* @__PURE__ */ new Map(), n = {
2374
2382
  platform: Gl,
2375
2383
  ...l
@@ -2392,11 +2400,11 @@ function Vt(e) {
2392
2400
  }
2393
2401
  return e;
2394
2402
  }
2395
- function Tn(e) {
2403
+ function Ln(e) {
2396
2404
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2397
2405
  }
2398
2406
  function Ft(e, t) {
2399
- const l = Tn(e);
2407
+ const l = Ln(e);
2400
2408
  return Math.round(t * l) / l;
2401
2409
  }
2402
2410
  function er(e, t, l) {
@@ -2413,23 +2421,23 @@ function er(e, t, l) {
2413
2421
  }), c = k(() => {
2414
2422
  var O;
2415
2423
  return (O = _(l.transform)) != null ? O : !0;
2416
- }), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), d = C(0), v = C(0), f = C(u.value), g = C(i.value), m = Vn({}), h = C(!1), b = k(() => {
2424
+ }), a = k(() => Vt(e.value)), s = k(() => Vt(t.value)), f = C(0), v = C(0), p = C(u.value), g = C(i.value), m = Vn({}), h = C(!1), b = k(() => {
2417
2425
  const O = {
2418
- position: f.value,
2426
+ position: p.value,
2419
2427
  left: "0",
2420
2428
  top: "0"
2421
2429
  };
2422
2430
  if (!s.value)
2423
2431
  return O;
2424
- const N = Ft(s.value, d.value), re = Ft(s.value, v.value);
2432
+ const N = Ft(s.value, f.value), re = Ft(s.value, v.value);
2425
2433
  return c.value ? {
2426
2434
  ...O,
2427
2435
  transform: "translate(" + N + "px, " + re + "px)",
2428
- ...Tn(s.value) >= 1.5 && {
2436
+ ...Ln(s.value) >= 1.5 && {
2429
2437
  willChange: "transform"
2430
2438
  }
2431
2439
  } : {
2432
- position: f.value,
2440
+ position: p.value,
2433
2441
  left: N + "px",
2434
2442
  top: re + "px"
2435
2443
  };
@@ -2441,7 +2449,7 @@ function er(e, t, l) {
2441
2449
  placement: i.value,
2442
2450
  strategy: u.value
2443
2451
  }).then((O) => {
2444
- d.value = O.x, v.value = O.y, f.value = O.strategy, g.value = O.placement, m.value = O.middlewareData, h.value = !0;
2452
+ f.value = O.x, v.value = O.y, p.value = O.strategy, g.value = O.placement, m.value = O.middlewareData, h.value = !0;
2445
2453
  });
2446
2454
  }
2447
2455
  function w() {
@@ -2467,9 +2475,9 @@ function er(e, t, l) {
2467
2475
  }), Q(n, P, {
2468
2476
  flush: "sync"
2469
2477
  }), Fn() && Nn(w), {
2470
- x: me(d),
2478
+ x: me(f),
2471
2479
  y: me(v),
2472
- strategy: me(f),
2480
+ strategy: me(p),
2473
2481
  placement: me(g),
2474
2482
  middlewareData: me(m),
2475
2483
  isPositioned: me(h),
@@ -2477,7 +2485,7 @@ function er(e, t, l) {
2477
2485
  update: x
2478
2486
  };
2479
2487
  }
2480
- const Tr = /* @__PURE__ */ A({
2488
+ const Lr = /* @__PURE__ */ A({
2481
2489
  __name: "MenuContainer",
2482
2490
  props: {
2483
2491
  position: { default: "left" },
@@ -2513,7 +2521,7 @@ const Tr = /* @__PURE__ */ A({
2513
2521
  to: typeof i.usePortal == "string" ? i.usePortal : "body",
2514
2522
  disabled: !i.usePortal
2515
2523
  }, [
2516
- T("div", {
2524
+ L("div", {
2517
2525
  class: "w-56 z-20",
2518
2526
  style: Nt(_(r)),
2519
2527
  ref_key: "floating",
@@ -2550,7 +2558,7 @@ const Tr = /* @__PURE__ */ A({
2550
2558
  }), tr = {
2551
2559
  key: 0,
2552
2560
  class: "bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"
2553
- }, Lr = /* @__PURE__ */ A({
2561
+ }, Tr = /* @__PURE__ */ A({
2554
2562
  __name: "MenuLink",
2555
2563
  props: {
2556
2564
  label: {},
@@ -2568,8 +2576,8 @@ const Tr = /* @__PURE__ */ A({
2568
2576
  ]])
2569
2577
  }, {
2570
2578
  default: U(() => [
2571
- T("span", null, G(t.label), 1),
2572
- t.meta ? (R(), L("span", tr, G(t.meta), 1)) : M("", !0)
2579
+ L("span", null, G(t.label), 1),
2580
+ t.meta ? (R(), T("span", tr, G(t.meta), 1)) : M("", !0)
2573
2581
  ]),
2574
2582
  _: 2
2575
2583
  }, 1032, ["class"]))
@@ -2618,24 +2626,24 @@ const Tr = /* @__PURE__ */ A({
2618
2626
  disabled: c.isDisabled
2619
2627
  }, {
2620
2628
  default: U(() => [
2621
- T("div", nr, [
2629
+ L("div", nr, [
2622
2630
  F(_(al), {
2623
2631
  class: $(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [_(r), _(u), _(i)]])
2624
2632
  }, {
2625
2633
  default: U(() => {
2626
2634
  var s;
2627
2635
  return [
2628
- c.icon ? (R(), L("span", or, [
2636
+ c.icon ? (R(), T("span", or, [
2629
2637
  F(z, {
2630
2638
  name: ((s = _(o)) == null ? void 0 : s.icon) ?? c.icon
2631
2639
  }, null, 8, ["name"])
2632
2640
  ])) : M("", !0),
2633
- _(o) ? (R(), L("span", lr, [
2634
- T("span", {
2641
+ _(o) ? (R(), T("span", lr, [
2642
+ L("span", {
2635
2643
  innerHTML: _(o).label
2636
2644
  }, null, 8, rr)
2637
- ])) : (R(), L("span", ir, G(c.placeholder), 1)),
2638
- T("span", ar, [
2645
+ ])) : (R(), T("span", ir, G(c.placeholder), 1)),
2646
+ L("span", ar, [
2639
2647
  F(z, {
2640
2648
  class: "text-grey-400",
2641
2649
  name: "chevron-down",
@@ -2654,24 +2662,24 @@ const Tr = /* @__PURE__ */ A({
2654
2662
  default: U(() => [
2655
2663
  F(_(sl), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
2656
2664
  default: U(() => [
2657
- (R(!0), L(be, null, jt(c.options, (s) => (R(), W(_(ul), {
2665
+ (R(!0), T(be, null, jt(c.options, (s) => (R(), W(_(ul), {
2658
2666
  as: "template",
2659
2667
  key: s.id,
2660
2668
  value: s,
2661
2669
  disabled: s.disabled
2662
2670
  }, {
2663
- default: U(({ active: d, selected: v }) => [
2664
- T("li", {
2671
+ default: U(({ active: f, selected: v }) => [
2672
+ L("li", {
2665
2673
  class: $([
2666
- d ? "text-white bg-blue-500" : "text-grey-900 dark:text-grey-50",
2674
+ f ? "text-white bg-blue-500" : "text-grey-900 dark:text-grey-50",
2667
2675
  "cursor-default select-none relative py-2 pl-3 pr-12",
2668
2676
  { "opacity-50 bg-grey-100": s.disabled }
2669
2677
  ])
2670
2678
  }, [
2671
- T("div", sr, [
2672
- s.disabled && c.disabledBadge ? (R(), L("span", ur, G(c.disabledBadge), 1)) : M("", !0)
2679
+ L("div", sr, [
2680
+ s.disabled && c.disabledBadge ? (R(), T("span", ur, G(c.disabledBadge), 1)) : M("", !0)
2673
2681
  ]),
2674
- T("span", {
2682
+ L("span", {
2675
2683
  class: $([
2676
2684
  v ? "font-semibold" : "font-normal",
2677
2685
  "block truncate"
@@ -2682,14 +2690,14 @@ const Tr = /* @__PURE__ */ A({
2682
2690
  class: "inline-block mr-1",
2683
2691
  name: s.icon
2684
2692
  }, null, 8, ["name"])) : M("", !0),
2685
- T("span", {
2693
+ L("span", {
2686
2694
  innerHTML: s.label
2687
2695
  }, null, 8, cr)
2688
2696
  ], 2),
2689
- v ? (R(), L("span", {
2697
+ v ? (R(), T("span", {
2690
2698
  key: 0,
2691
2699
  class: $([
2692
- d ? "text-blue-100" : "text-blue-500",
2700
+ f ? "text-blue-100" : "text-blue-500",
2693
2701
  "absolute inset-y-0 right-0 flex items-center pr-4"
2694
2702
  ])
2695
2703
  }, [
@@ -2741,18 +2749,18 @@ const Tr = /* @__PURE__ */ A({
2741
2749
  margin: `mr-${o[Math.floor(Math.random() * o.length)]}`
2742
2750
  };
2743
2751
  });
2744
- return (o, n) => (R(), L("div", dr, [
2745
- T("div", fr, [
2746
- o.avatar ? (R(), L("div", pr)) : M("", !0),
2747
- o.title ? (R(), L("div", mr)) : M("", !0)
2752
+ return (o, n) => (R(), T("div", dr, [
2753
+ L("div", fr, [
2754
+ o.avatar ? (R(), T("div", pr)) : M("", !0),
2755
+ o.title ? (R(), T("div", mr)) : M("", !0)
2748
2756
  ]),
2749
- o.lines > 0 ? (R(), L("div", vr, [
2750
- (R(!0), L(be, null, jt(_(l), (r, i) => (R(), L("div", {
2757
+ o.lines > 0 ? (R(), T("div", vr, [
2758
+ (R(!0), T(be, null, jt(_(l), (r, i) => (R(), T("div", {
2751
2759
  class: $(["h-4 bg-current rounded-lg", r.margin]),
2752
2760
  key: i
2753
2761
  }, null, 2))), 128))
2754
2762
  ])) : M("", !0),
2755
- o.footer ? (R(), L("div", gr)) : M("", !0)
2763
+ o.footer ? (R(), T("div", gr)) : M("", !0)
2756
2764
  ]));
2757
2765
  }
2758
2766
  }), $r = /* @__PURE__ */ A({
@@ -2788,12 +2796,12 @@ const Tr = /* @__PURE__ */ A({
2788
2796
  "px-4 py-1 text-xs leading-5 mono-100": o.size === "small",
2789
2797
  "px-5 py-2 text-sm leading-4 font-medium": o.size === "medium",
2790
2798
  "px-8 pr-4 py-3 text-base leading-6 font-medium": o.size === "large"
2791
- }, d = {
2799
+ }, f = {
2792
2800
  "pointer-events-none opacity-75 cursor-not-allowed": o.isDisabled
2793
2801
  };
2794
2802
  return {
2795
2803
  ...a,
2796
- ...d,
2804
+ ...f,
2797
2805
  ...s
2798
2806
  };
2799
2807
  }), r = k(() => {
@@ -2824,27 +2832,27 @@ const Tr = /* @__PURE__ */ A({
2824
2832
  function c() {
2825
2833
  o.isDisabled || l("onClickSplit");
2826
2834
  }
2827
- return (a, s) => (R(), L("div", br, [
2828
- T("button", {
2835
+ return (a, s) => (R(), T("div", br, [
2836
+ L("button", {
2829
2837
  type: "button",
2830
2838
  "aria-label": a.label,
2831
2839
  tabindex: a.isDisabled ? "-1" : void 0,
2832
2840
  class: $(["relative transition duration-150 ease-in-out rounded-l-lg", n.value]),
2833
2841
  onClick: u
2834
2842
  }, [
2835
- T("div", {
2843
+ L("div", {
2836
2844
  class: $(!a.isLoading || "invisible")
2837
2845
  }, [
2838
- T("span", null, G(a.label), 1)
2846
+ L("span", null, G(a.label), 1)
2839
2847
  ], 2),
2840
- a.isLoading ? (R(), L("span", yr, [
2848
+ a.isLoading ? (R(), T("span", yr, [
2841
2849
  F(z, {
2842
2850
  class: "ml-3 animate-spin",
2843
2851
  name: "circle-notch"
2844
2852
  })
2845
2853
  ])) : M("", !0)
2846
2854
  ], 10, hr),
2847
- T("button", {
2855
+ L("button", {
2848
2856
  type: "button",
2849
2857
  class: $(["border-l-white/50 border-l transition duration-150 ease-in-out rounded-r-lg", [n.value, r.value]]),
2850
2858
  onClick: c
@@ -2878,11 +2886,11 @@ const Tr = /* @__PURE__ */ A({
2878
2886
  "onUpdate:modelValue": o
2879
2887
  }, {
2880
2888
  default: U(() => [
2881
- T("span", {
2889
+ L("span", {
2882
2890
  class: $(["absolute text-xs text-center text-white inset-x-2", n.modelValue ? "pr-3" : "pl-3"])
2883
2891
  }, G(n.modelValue === !0 ? n.onLabel : n.offLabel), 3),
2884
- T("span", xr, G(n.label), 1),
2885
- T("span", {
2892
+ L("span", xr, G(n.label), 1),
2893
+ L("span", {
2886
2894
  class: $([n.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
2887
2895
  }, null, 2)
2888
2896
  ]),
@@ -2902,19 +2910,19 @@ const Tr = /* @__PURE__ */ A({
2902
2910
  },
2903
2911
  emits: ["update:modelValue"],
2904
2912
  setup(e, { expose: t, emit: l }) {
2905
- const o = e, n = l, { inputClasses: r, disabledClasses: i, textSizeClasses: u } = rt(o), c = function(d) {
2906
- n("update:modelValue", (d == null ? void 0 : d.target).value);
2913
+ const o = e, n = l, { inputClasses: r, disabledClasses: i, textSizeClasses: u } = rt(o), c = function(f) {
2914
+ n("update:modelValue", (f == null ? void 0 : f.target).value);
2907
2915
  }, a = C(null);
2908
2916
  return t({
2909
2917
  focus: () => {
2910
2918
  o.isDisabled || a.value.focus();
2911
2919
  }
2912
- }), (d, v) => (R(), L("div", wr, [
2913
- T("textarea", ot({
2920
+ }), (f, v) => (R(), T("div", wr, [
2921
+ L("textarea", ot({
2914
2922
  class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [_(r), _(u), _(i)]],
2915
- tabindex: d.isDisabled ? "-1" : void 0,
2916
- value: d.modelValue ?? ""
2917
- }, d.$attrs, {
2923
+ tabindex: f.isDisabled ? "-1" : void 0,
2924
+ value: f.modelValue ?? ""
2925
+ }, f.$attrs, {
2918
2926
  ref_key: "input",
2919
2927
  ref: a,
2920
2928
  cols: "56",
@@ -2931,8 +2939,8 @@ export {
2931
2939
  z as D9Icon,
2932
2940
  _r as D9Input,
2933
2941
  Pr as D9Label,
2934
- Tr as D9Menu,
2935
- Lr as D9MenuLink,
2942
+ Lr as D9Menu,
2943
+ Tr as D9MenuLink,
2936
2944
  Ir as D9Select,
2937
2945
  Ar as D9Skeleton,
2938
2946
  $r as D9Spinner,