@deck9/ui 0.11.4 → 0.12.1
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/index.es.js +179 -34
- package/dist/src/index.umd.js +4 -4
- package/dist/utils/useFormClasses.d.ts +1 -0
- package/package.json +3 -1
package/dist/src/index.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { defineComponent, computed as computed$2, unref, openBlock, createBlock, mergeProps, createCommentVNode, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, ref, cloneVNode, h as h$2, inject, provide,
|
|
32
|
+
import { defineComponent, computed as computed$2, unref, openBlock, createBlock, mergeProps, createCommentVNode, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, getCurrentInstance, onMounted, nextTick, ref, watch, Fragment, withDirectives, vModelText, normalizeStyle, cloneVNode, h as h$2, inject, provide, watchEffect, onUnmounted, toRaw as toRaw$1, withCtx, renderSlot, Teleport, Transition, normalizeProps, guardReactiveProps, isRef, renderList, createTextVNode } from "vue";
|
|
33
33
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
34
34
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
35
35
|
import * as fasIcons from "@fortawesome/free-solid-svg-icons";
|
|
@@ -87,7 +87,7 @@ var numericInput = {
|
|
|
87
87
|
svgPathData,
|
|
88
88
|
aliases
|
|
89
89
|
};
|
|
90
|
-
library.add(fasIcons.faAt, fasIcons.faBold, fasIcons.faBolt, fasIcons.faCalendar, fasIcons.faChartPie, fasIcons.faCheck, fasIcons.faCheckCircle, fasIcons.faChevronDown, fasIcons.faChevronLeft, fasIcons.faChevronRight, fasIcons.faChevronUp, fasIcons.faCircleCheck, fasIcons.faCircleNotch, fasIcons.faClipboard, fasIcons.faCloudDownload, fasIcons.faCloudUpload, fasIcons.faCog, fasIcons.faCrown, fasIcons.faDoorOpen, fasIcons.faDotCircle, fasIcons.faEllipsis, fasIcons.faEllipsisVertical, fasIcons.faEnvelope, fasIcons.faExclamationTriangle, fasIcons.faExternalLink, fasIcons.faEyeDropper, fasIcons.faFileLines, fasIcons.faFileUpload, fasIcons.faFingerprint, fasIcons.faGlobe, fasIcons.faGripHorizontal, fasIcons.faGripVertical, fasIcons.faHandPointRight, fasIcons.faHashtag, fasIcons.faHeart, fasIcons.faInfoCircle, fasIcons.faItalic, fasIcons.faLink, fasIcons.faMedal, fasIcons.faMessage, fasIcons.faPencilAlt, fasIcons.faPenToSquare, fasIcons.faPhone, fasIcons.faPlayCircle, fasIcons.faPlus, fasIcons.faPlusCircle, fasIcons.faPoo, fasIcons.faReply, fasIcons.faReplyAll, fasIcons.faRobot, fasIcons.faSave, fasIcons.faShield, fasIcons.faSignature, fasIcons.faSquareCheck, fasIcons.faStar, fasIcons.faTimes, fasIcons.faTrash, fasIcons.faTree, fasIcons.faTrophy, fasIcons.faTurnDown, fasIcons.faUpload, fasIcons.faUser, fasIcons.faUserShield, faTwitter, faInstagram, faGithub, faLinkedin, faFacebook, numericInput.definition);
|
|
90
|
+
library.add(fasIcons.faArrowUp19, fasIcons.faAt, fasIcons.faBold, fasIcons.faBolt, fasIcons.faCalendar, fasIcons.faChartPie, fasIcons.faCheck, fasIcons.faCheckCircle, fasIcons.faChevronDown, fasIcons.faChevronLeft, fasIcons.faChevronRight, fasIcons.faChevronUp, fasIcons.faCircleCheck, fasIcons.faCircleNotch, fasIcons.faClipboard, fasIcons.faCloudDownload, fasIcons.faCloudUpload, fasIcons.faCog, fasIcons.faCrown, fasIcons.faDoorOpen, fasIcons.faDotCircle, fasIcons.faEllipsis, fasIcons.faEllipsisVertical, fasIcons.faEnvelope, fasIcons.faExclamationTriangle, fasIcons.faExternalLink, fasIcons.faEyeDropper, fasIcons.faFileLines, fasIcons.faFileUpload, fasIcons.faFingerprint, fasIcons.faGlobe, fasIcons.faGripHorizontal, fasIcons.faGripVertical, fasIcons.faHandPointRight, fasIcons.faHashtag, fasIcons.faHeart, fasIcons.faInfoCircle, fasIcons.faItalic, fasIcons.faLink, fasIcons.faMedal, fasIcons.faMessage, fasIcons.faPencilAlt, fasIcons.faPenToSquare, fasIcons.faPhone, fasIcons.faPlayCircle, fasIcons.faPlus, fasIcons.faPlusCircle, fasIcons.faPoo, fasIcons.faReply, fasIcons.faReplyAll, fasIcons.faRobot, fasIcons.faSave, fasIcons.faShield, fasIcons.faSignature, fasIcons.faSquareCheck, fasIcons.faStar, fasIcons.faTimes, fasIcons.faTrash, fasIcons.faTree, fasIcons.faTrophy, fasIcons.faTurnDown, fasIcons.faUpload, fasIcons.faUser, fasIcons.faUserShield, faTwitter, faInstagram, faGithub, faLinkedin, faFacebook, numericInput.definition);
|
|
91
91
|
var icons = [...Object.keys(library.definitions.fas)].sort();
|
|
92
92
|
const brands = [...Object.keys(library.definitions.fab)].sort();
|
|
93
93
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
@@ -295,6 +295,102 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
+
var _a;
|
|
299
|
+
const isClient = typeof window !== "undefined";
|
|
300
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
301
|
+
function identity(arg) {
|
|
302
|
+
return arg;
|
|
303
|
+
}
|
|
304
|
+
function tryOnMounted(fn2, sync = true) {
|
|
305
|
+
if (getCurrentInstance())
|
|
306
|
+
onMounted(fn2);
|
|
307
|
+
else if (sync)
|
|
308
|
+
fn2();
|
|
309
|
+
else
|
|
310
|
+
nextTick(fn2);
|
|
311
|
+
}
|
|
312
|
+
isClient ? window : void 0;
|
|
313
|
+
isClient ? window.document : void 0;
|
|
314
|
+
isClient ? window.navigator : void 0;
|
|
315
|
+
isClient ? window.location : void 0;
|
|
316
|
+
function useSupported(callback, sync = false) {
|
|
317
|
+
const isSupported = ref();
|
|
318
|
+
const update = () => isSupported.value = Boolean(callback());
|
|
319
|
+
update();
|
|
320
|
+
tryOnMounted(update, sync);
|
|
321
|
+
return isSupported;
|
|
322
|
+
}
|
|
323
|
+
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
324
|
+
const globalKey = "__vueuse_ssr_handlers__";
|
|
325
|
+
_global[globalKey] = _global[globalKey] || {};
|
|
326
|
+
_global[globalKey];
|
|
327
|
+
function useEyeDropper(options = {}) {
|
|
328
|
+
const { initialValue = "" } = options;
|
|
329
|
+
const isSupported = useSupported(() => typeof window !== "undefined" && "EyeDropper" in window);
|
|
330
|
+
const sRGBHex = ref(initialValue);
|
|
331
|
+
async function open(openOptions) {
|
|
332
|
+
if (!isSupported.value)
|
|
333
|
+
return;
|
|
334
|
+
const eyeDropper = new window.EyeDropper();
|
|
335
|
+
const result = await eyeDropper.open(openOptions);
|
|
336
|
+
sRGBHex.value = result.sRGBHex;
|
|
337
|
+
return result;
|
|
338
|
+
}
|
|
339
|
+
return { isSupported, sRGBHex, open };
|
|
340
|
+
}
|
|
341
|
+
var SwipeDirection;
|
|
342
|
+
(function(SwipeDirection2) {
|
|
343
|
+
SwipeDirection2["UP"] = "UP";
|
|
344
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
345
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
346
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
347
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
348
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
349
|
+
var __defProp2 = Object.defineProperty;
|
|
350
|
+
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
351
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
352
|
+
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
353
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
354
|
+
var __spreadValues2 = (a2, b2) => {
|
|
355
|
+
for (var prop in b2 || (b2 = {}))
|
|
356
|
+
if (__hasOwnProp2.call(b2, prop))
|
|
357
|
+
__defNormalProp2(a2, prop, b2[prop]);
|
|
358
|
+
if (__getOwnPropSymbols2)
|
|
359
|
+
for (var prop of __getOwnPropSymbols2(b2)) {
|
|
360
|
+
if (__propIsEnum2.call(b2, prop))
|
|
361
|
+
__defNormalProp2(a2, prop, b2[prop]);
|
|
362
|
+
}
|
|
363
|
+
return a2;
|
|
364
|
+
};
|
|
365
|
+
const _TransitionPresets = {
|
|
366
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
367
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
368
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
369
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
370
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
371
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
372
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
373
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
374
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
375
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
376
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
377
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
378
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
379
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
380
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
381
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
382
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
383
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
384
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
385
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
386
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
387
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
388
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
389
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
390
|
+
};
|
|
391
|
+
__spreadValues2({
|
|
392
|
+
linear: identity
|
|
393
|
+
}, _TransitionPresets);
|
|
298
394
|
const NOOP = () => {
|
|
299
395
|
};
|
|
300
396
|
const NO = () => false;
|
|
@@ -483,13 +579,13 @@ class ComputedRefImpl {
|
|
|
483
579
|
this["__v_isReadonly"] = isReadonly;
|
|
484
580
|
}
|
|
485
581
|
get value() {
|
|
486
|
-
const
|
|
487
|
-
trackRefValue(
|
|
488
|
-
if (
|
|
489
|
-
|
|
490
|
-
|
|
582
|
+
const self2 = toRaw(this);
|
|
583
|
+
trackRefValue(self2);
|
|
584
|
+
if (self2._dirty || !self2._cacheable) {
|
|
585
|
+
self2._dirty = false;
|
|
586
|
+
self2._value = self2.effect.run();
|
|
491
587
|
}
|
|
492
|
-
return
|
|
588
|
+
return self2._value;
|
|
493
589
|
}
|
|
494
590
|
set value(newValue) {
|
|
495
591
|
this._setter(newValue);
|
|
@@ -541,8 +637,8 @@ function useFormClasses(props) {
|
|
|
541
637
|
"pl-3 pr-10 py-2": !props.icon && props.size === "small",
|
|
542
638
|
"pl-4 pr-10 py-3": !props.icon && props.size === "medium",
|
|
543
639
|
"pl-6 pr-10 py-3": !props.icon && props.size === "large",
|
|
544
|
-
"pl-10 pr-10 py-1": props.icon && props.size === "small",
|
|
545
|
-
"pl-12 pr-10 py-3": props.icon && (props.size === "medium" || props.size === "large"),
|
|
640
|
+
"pl-10 pr-10 py-1": (props.icon || props.type === "color") && props.size === "small",
|
|
641
|
+
"pl-12 pr-10 py-3": (props.icon || props.type === "color") && (props.size === "medium" || props.size === "large"),
|
|
546
642
|
"w-full block": props.block === true
|
|
547
643
|
};
|
|
548
644
|
});
|
|
@@ -564,8 +660,8 @@ function useFormClasses(props) {
|
|
|
564
660
|
textSizeClasses
|
|
565
661
|
};
|
|
566
662
|
}
|
|
567
|
-
const _hoisted_1$6 =
|
|
568
|
-
const _hoisted_2$4 =
|
|
663
|
+
const _hoisted_1$6 = ["placeholder", "type", "tabindex", "value"];
|
|
664
|
+
const _hoisted_2$4 = { class: "absolute inset-y-2 left-2 w-8 cursor-pointer" };
|
|
569
665
|
const __default__$1 = {
|
|
570
666
|
inheritAttrs: false
|
|
571
667
|
};
|
|
@@ -578,13 +674,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
578
674
|
size: { default: "medium" },
|
|
579
675
|
icon: null,
|
|
580
676
|
isDisabled: { type: Boolean, default: false },
|
|
581
|
-
block: { type: Boolean }
|
|
677
|
+
block: { type: Boolean },
|
|
678
|
+
showColorPicker: { type: Boolean }
|
|
582
679
|
},
|
|
583
680
|
emits: ["update:modelValue"],
|
|
584
681
|
setup(__props, { expose, emit }) {
|
|
682
|
+
var _a2;
|
|
585
683
|
const props = __props;
|
|
684
|
+
const localValue = ref((_a2 = props.modelValue) != null ? _a2 : "");
|
|
586
685
|
const { inputClasses, disabledClasses, textSizeClasses } = useFormClasses(props);
|
|
686
|
+
const resolvedInputType = computed$2(() => {
|
|
687
|
+
if (props.type === "color") {
|
|
688
|
+
return "text";
|
|
689
|
+
}
|
|
690
|
+
return props.type;
|
|
691
|
+
});
|
|
692
|
+
const {
|
|
693
|
+
isSupported: isColorPickerSupported,
|
|
694
|
+
open: openColorPicker,
|
|
695
|
+
sRGBHex
|
|
696
|
+
} = useEyeDropper();
|
|
697
|
+
const openPicker = () => {
|
|
698
|
+
openColorPicker();
|
|
699
|
+
};
|
|
700
|
+
watch(sRGBHex, (value) => {
|
|
701
|
+
localValue.value = value;
|
|
702
|
+
emit("update:modelValue", value);
|
|
703
|
+
});
|
|
587
704
|
const onInput = function(payload) {
|
|
705
|
+
localValue.value = (payload == null ? void 0 : payload.target).value;
|
|
588
706
|
emit("update:modelValue", (payload == null ? void 0 : payload.target).value);
|
|
589
707
|
};
|
|
590
708
|
const input = ref(null);
|
|
@@ -597,25 +715,52 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
597
715
|
focus
|
|
598
716
|
});
|
|
599
717
|
return (_ctx, _cache) => {
|
|
600
|
-
return openBlock(), createElementBlock("div",
|
|
718
|
+
return openBlock(), createElementBlock("div", {
|
|
719
|
+
class: normalizeClass(["relative", [__props.block ? "w-full block" : "inline-block"]])
|
|
720
|
+
}, [
|
|
601
721
|
createElementVNode("input", mergeProps({
|
|
602
|
-
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", [unref(inputClasses), unref(textSizeClasses), unref(disabledClasses)]],
|
|
722
|
+
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", [unref(inputClasses), unref(textSizeClasses), unref(disabledClasses)]],
|
|
603
723
|
placeholder: __props.placeholder,
|
|
604
|
-
type:
|
|
724
|
+
type: unref(resolvedInputType),
|
|
605
725
|
tabindex: __props.isDisabled ? "-1" : void 0,
|
|
606
|
-
value:
|
|
726
|
+
value: localValue.value
|
|
607
727
|
}, _ctx.$attrs, {
|
|
608
728
|
ref_key: "input",
|
|
609
729
|
ref: input,
|
|
610
730
|
onInput
|
|
611
|
-
}), null, 16,
|
|
612
|
-
__props.
|
|
613
|
-
|
|
731
|
+
}), null, 16, _hoisted_1$6),
|
|
732
|
+
__props.type === "color" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
733
|
+
createElementVNode("label", _hoisted_2$4, [
|
|
734
|
+
withDirectives(createElementVNode("input", {
|
|
735
|
+
class: "invisible",
|
|
736
|
+
type: "color",
|
|
737
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localValue.value = $event)
|
|
738
|
+
}, null, 512), [
|
|
739
|
+
[vModelText, localValue.value]
|
|
740
|
+
]),
|
|
741
|
+
createElementVNode("span", {
|
|
742
|
+
class: "border-1 absolute inset-0 block rounded border border-grey-600/25 bg-clip-border shadow",
|
|
743
|
+
style: normalizeStyle(`background-color: ${localValue.value}`)
|
|
744
|
+
}, null, 4)
|
|
745
|
+
]),
|
|
746
|
+
unref(isColorPickerSupported) && __props.showColorPicker ? (openBlock(), createElementBlock("button", {
|
|
747
|
+
key: 0,
|
|
748
|
+
type: "button",
|
|
749
|
+
class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
|
|
750
|
+
onClick: openPicker
|
|
751
|
+
}, [
|
|
752
|
+
createVNode(_sfc_main$b, {
|
|
753
|
+
size: "xs",
|
|
754
|
+
name: "eyedropper"
|
|
755
|
+
})
|
|
756
|
+
])) : createCommentVNode("", true)
|
|
757
|
+
], 64)) : __props.icon ? (openBlock(), createElementBlock("span", {
|
|
758
|
+
key: 1,
|
|
614
759
|
class: normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", unref(textSizeClasses)])
|
|
615
760
|
}, [
|
|
616
761
|
createVNode(_sfc_main$b, { name: __props.icon }, null, 8, ["name"])
|
|
617
762
|
], 2)) : createCommentVNode("", true)
|
|
618
|
-
]);
|
|
763
|
+
], 2);
|
|
619
764
|
};
|
|
620
765
|
}
|
|
621
766
|
}));
|
|
@@ -650,8 +795,8 @@ function u$2(r2, n2, ...a2) {
|
|
|
650
795
|
throw Error.captureStackTrace && Error.captureStackTrace(t2, u$2), t2;
|
|
651
796
|
}
|
|
652
797
|
var h$1 = ((t2) => (t2[t2.None = 0] = "None", t2[t2.RenderStrategy = 1] = "RenderStrategy", t2[t2.Static = 2] = "Static", t2))(h$1 || {}), b$2 = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(b$2 || {});
|
|
653
|
-
function k(
|
|
654
|
-
var _b =
|
|
798
|
+
function k(_a2) {
|
|
799
|
+
var _b = _a2, { visible: n2 = true, features: r2 = 0 } = _b, e2 = __objRest(_b, ["visible", "features"]);
|
|
655
800
|
var t2;
|
|
656
801
|
if (n2 || r2 & 2 && e2.props.static)
|
|
657
802
|
return i(e2);
|
|
@@ -667,7 +812,7 @@ function k(_a) {
|
|
|
667
812
|
}
|
|
668
813
|
function i({ props: n2, attrs: r2, slots: e2, slot: t2, name: a2 }) {
|
|
669
814
|
var c2;
|
|
670
|
-
let
|
|
815
|
+
let _a2 = R(n2, ["unmount", "static"]), { as: d } = _a2, s2 = __objRest(_a2, ["as"]), o2 = (c2 = e2.default) == null ? void 0 : c2.call(e2, t2), u2 = {};
|
|
671
816
|
if (d === "template") {
|
|
672
817
|
if (Object.keys(s2).length > 0 || Object.keys(r2).length > 0) {
|
|
673
818
|
let [p2, ...f2] = o2 != null ? o2 : [];
|
|
@@ -859,7 +1004,7 @@ function w(f2, a2, n2 = 1) {
|
|
|
859
1004
|
var a$1 = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable", e2[e2.Hidden = 4] = "Hidden", e2))(a$1 || {});
|
|
860
1005
|
let m = defineComponent({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(r2, { slots: t2, attrs: o2 }) {
|
|
861
1006
|
return () => {
|
|
862
|
-
let
|
|
1007
|
+
let _a2 = r2, { features: e2 } = _a2, d = __objRest(_a2, ["features"]), n2 = { "aria-hidden": (e2 & 2) === 2 ? true : void 0, style: __spreadValues({ position: "absolute", width: 1, height: 1, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" }, (e2 & 4) === 4 && (e2 & 2) !== 2 && { display: "none" }) };
|
|
863
1008
|
return k({ props: __spreadValues(__spreadValues({}, d), n2), slot: {}, attrs: o2, slots: t2, name: "Hidden" });
|
|
864
1009
|
};
|
|
865
1010
|
} });
|
|
@@ -971,7 +1116,7 @@ let we = defineComponent({ name: "Listbox", emits: { "update:modelValue": (i2) =
|
|
|
971
1116
|
var u2;
|
|
972
1117
|
e$12.value === 0 && (r2.closeListbox(), F(a2, M.Loose) || (o2.preventDefault(), (u2 = t$1(d)) == null || u2.focus()));
|
|
973
1118
|
}), provide(H, r2), c$1(computed$2(() => u$2(e$12.value, { [0]: l.Open, [1]: l.Closed }))), () => {
|
|
974
|
-
let
|
|
1119
|
+
let _a2 = i2, { name: o2, modelValue: a2, disabled: u2 } = _a2, f2 = __objRest(_a2, ["name", "modelValue", "disabled"]), g = { open: e$12.value === 0, disabled: u2 };
|
|
975
1120
|
return h$2(Fragment, [...o2 != null && a2 != null ? e({ [o2]: a2 }).map(([h2, V]) => h$2(m, S$1({ features: a$1.Hidden, key: h2, as: "input", type: "hidden", hidden: true, readOnly: true, name: h2, value: V }))) : [], k({ props: __spreadValues(__spreadValues({}, n2), R(f2, ["onUpdate:modelValue", "horizontal", "multiple", "by"])), slot: g, slots: x$1, attrs: n2, name: "Listbox" })]);
|
|
976
1121
|
};
|
|
977
1122
|
} });
|
|
@@ -1338,7 +1483,7 @@ function K({ slot: t2 = {}, name: n2 = "Label", props: i2 = {} } = {}) {
|
|
|
1338
1483
|
let T = defineComponent({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false } }, setup(t2, { slots: n2, attrs: i2 }) {
|
|
1339
1484
|
let e2 = a(), r2 = `headlessui-label-${t$2()}`;
|
|
1340
1485
|
return onMounted(() => onUnmounted(e2.register(r2))), () => {
|
|
1341
|
-
let { name: o2 = "Label", slot: l2 = {}, props: p2 = {} } = e2,
|
|
1486
|
+
let { name: o2 = "Label", slot: l2 = {}, props: p2 = {} } = e2, _a2 = t2, { passive: d } = _a2, c2 = __objRest(_a2, ["passive"]), f2 = __spreadProps(__spreadValues({}, Object.entries(p2).reduce((m2, [b2, g]) => Object.assign(m2, { [b2]: unref(g) }), {})), { id: r2 }), s2 = __spreadValues(__spreadValues({}, c2), f2);
|
|
1342
1487
|
return d && delete s2.onClick, k({ props: s2, slot: l2, attrs: i2, slots: n2, name: o2 });
|
|
1343
1488
|
};
|
|
1344
1489
|
} });
|
|
@@ -1366,7 +1511,7 @@ let Y = defineComponent({ name: "Switch", emits: { "update:modelValue": (l2) =>
|
|
|
1366
1511
|
e2.preventDefault();
|
|
1367
1512
|
}
|
|
1368
1513
|
return () => {
|
|
1369
|
-
let
|
|
1514
|
+
let _a2 = l2, { name: e2, value: R2, modelValue: o2 } = _a2, k$1 = __objRest(_a2, ["name", "value", "modelValue"]), D2 = { checked: o2 }, K2 = { id: p$12, ref: r2, role: "switch", type: S2.value, tabIndex: 0, "aria-checked": o2, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick: w2, onKeyup: v, onKeypress: g };
|
|
1370
1515
|
return h$2(Fragment, [e2 != null && o2 != null ? h$2(m, S$1({ features: a$1.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: o2, name: e2, value: R2 })) : null, k({ props: __spreadValues(__spreadValues(__spreadValues({}, i2), k$1), K2), slot: D2, attrs: i2, slots: n2, name: "Switch" })]);
|
|
1371
1516
|
};
|
|
1372
1517
|
} });
|
|
@@ -2259,10 +2404,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2259
2404
|
const selected = props.modelValue ? ref(props.modelValue) : ref(void 0);
|
|
2260
2405
|
const { inputClasses, disabledClasses, textSizeClasses } = useFormClasses(props);
|
|
2261
2406
|
watch(() => props.modelValue, (value) => {
|
|
2262
|
-
var
|
|
2407
|
+
var _a2;
|
|
2263
2408
|
if (!value)
|
|
2264
2409
|
return;
|
|
2265
|
-
if (value.id !== ((
|
|
2410
|
+
if (value.id !== ((_a2 = selected.value) == null ? void 0 : _a2.id)) {
|
|
2266
2411
|
selected.value = value;
|
|
2267
2412
|
}
|
|
2268
2413
|
});
|
|
@@ -2284,11 +2429,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2284
2429
|
class: normalizeClass(["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", [unref(inputClasses), unref(textSizeClasses), unref(disabledClasses)]])
|
|
2285
2430
|
}, {
|
|
2286
2431
|
default: withCtx(() => {
|
|
2287
|
-
var
|
|
2432
|
+
var _a2, _b;
|
|
2288
2433
|
return [
|
|
2289
2434
|
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_2$2, [
|
|
2290
2435
|
createVNode(_sfc_main$b, {
|
|
2291
|
-
name: (_b = (
|
|
2436
|
+
name: (_b = (_a2 = unref(selected)) == null ? void 0 : _a2.icon) != null ? _b : __props.icon
|
|
2292
2437
|
}, null, 8, ["name"])
|
|
2293
2438
|
])) : createCommentVNode("", true),
|
|
2294
2439
|
unref(selected) ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(unref(selected).label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(__props.placeholder), 1)),
|
|
@@ -2506,12 +2651,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
2506
2651
|
focus
|
|
2507
2652
|
});
|
|
2508
2653
|
return (_ctx, _cache) => {
|
|
2509
|
-
var
|
|
2654
|
+
var _a2;
|
|
2510
2655
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2511
2656
|
createElementVNode("textarea", mergeProps({
|
|
2512
2657
|
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", [unref(inputClasses), unref(textSizeClasses), unref(disabledClasses)]],
|
|
2513
2658
|
tabindex: __props.isDisabled ? "-1" : void 0,
|
|
2514
|
-
value: (
|
|
2659
|
+
value: (_a2 = __props.modelValue) != null ? _a2 : ""
|
|
2515
2660
|
}, _ctx.$attrs, {
|
|
2516
2661
|
ref_key: "input",
|
|
2517
2662
|
ref: input,
|
package/dist/src/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(w,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue"),require("@fortawesome/vue-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons")):typeof define=="function"&&define.amd?define(["exports","vue","@fortawesome/vue-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons"],t):(w=typeof globalThis!="undefined"?globalThis:w||self,t(w.ui={},w.Vue,w.vueFontawesome,w.fontawesomeSvgCore,w.fasIcons))})(this,function(w,t,B,N,Dt){"use strict";var Ia=Object.defineProperty,Ra=Object.defineProperties;var Ta=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable;var Tt=(w,t,B)=>t in w?Ia(w,t,{enumerable:!0,configurable:!0,writable:!0,value:B}):w[t]=B,k=(w,t)=>{for(var B in t||(t={}))Vt.call(t,B)&&Tt(w,B,t[B]);if(de)for(var B of de(t))Bt.call(t,B)&&Tt(w,B,t[B]);return w},H=(w,t)=>Ra(w,Ta(t));var G=(w,t)=>{var B={};for(var N in w)Vt.call(w,N)&&t.indexOf(N)<0&&(B[N]=w[N]);if(w!=null&&de)for(var N of de(w))t.indexOf(N)<0&&Bt.call(w,N)&&(B[N]=w[N]);return B};function Nt(e){if(e&&e.__esModule)return e;var n={__proto__:null,[Symbol.toStringTag]:"Module"};return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var b=Nt(Dt);/*!
|
|
2
2
|
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
3
3
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
4
4
|
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/var Rt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},Dt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},Vt={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Tt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Bt={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]},De="fas",Ve="numeric-input",Te=512,Be=512,de=[],Ne="",Ie="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";const Le={prefix:De,iconName:Ve,icon:[Te,Be,de,Ne,Ie]};var Nt={definition:Le,faAlignJustify:Le,prefix:De,iconName:Ve,width:Te,height:Be,ligatures:de,unicode:Ne,svgPathData:Ie,aliases:de};I.library.add(m.faAt,m.faBold,m.faBolt,m.faCalendar,m.faChartPie,m.faCheck,m.faCheckCircle,m.faChevronDown,m.faChevronLeft,m.faChevronRight,m.faChevronUp,m.faCircleCheck,m.faCircleNotch,m.faClipboard,m.faCloudDownload,m.faCloudUpload,m.faCog,m.faCrown,m.faDoorOpen,m.faDotCircle,m.faEllipsis,m.faEllipsisVertical,m.faEnvelope,m.faExclamationTriangle,m.faExternalLink,m.faEyeDropper,m.faFileLines,m.faFileUpload,m.faFingerprint,m.faGlobe,m.faGripHorizontal,m.faGripVertical,m.faHandPointRight,m.faHashtag,m.faHeart,m.faInfoCircle,m.faItalic,m.faLink,m.faMedal,m.faMessage,m.faPencilAlt,m.faPenToSquare,m.faPhone,m.faPlayCircle,m.faPlus,m.faPlusCircle,m.faPoo,m.faReply,m.faReplyAll,m.faRobot,m.faSave,m.faShield,m.faSignature,m.faSquareCheck,m.faStar,m.faTimes,m.faTrash,m.faTree,m.faTrophy,m.faTurnDown,m.faUpload,m.faUser,m.faUserShield,Bt,Vt,Dt,Tt,Rt,Nt.definition);var $e=[...Object.keys(I.library.definitions.fas)].sort();const fe=[...Object.keys(I.library.definitions.fab)].sort(),L=t.defineComponent({__name:"Icon",props:{name:{default:"user"}},setup(e){const n=e,a=t.computed(()=>fe.includes(n.name)?"fab":"fas"),r=t.computed(()=>$e.includes(n.name)||fe.includes(n.name)?!0:(console.warn("could not load icon, because it is not available",n.name),!1));return(o,l)=>t.unref(r)?(t.openBlock(),t.createBlock(t.unref(B.FontAwesomeIcon),t.mergeProps({key:0,icon:[t.unref(a),e.name]},o.$attrs),null,16,["icon"])):t.createCommentVNode("",!0)}}),It=["aria-label","tabindex"],Lt={key:0,class:"absolute inset-0 flex items-center justify-center"},$t=t.defineComponent({__name:"Button",props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:n}){const a=e,r=t.computed(()=>{const i={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":a.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":a.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":a.color==="dark","text-red-50 bg-red-500 border-transparent hover:bg-red-600 active:bg-red-600 ring-red-400 dark:ring-red-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-red-900":a.color==="danger"},d={"pointer-events-none opacity-75 cursor-not-allowed":a.isDisabled},c={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":a.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":a.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":a.size==="large"};return k(k(k({},i),d),c)}),o=t.computed(()=>{const i={"mr-2 -ml-1":["small","medium"].includes(a.size)&&a.iconPosition==="left","mr-4 -ml-2":["large"].includes(a.size)&&a.iconPosition==="left"},d={"ml-3 -mr-1":["small","medium"].includes(a.size)&&a.iconPosition==="right","ml-3 -mr-3":["large"].includes(a.size)&&a.iconPosition==="right"},c={"text-white":a.color==="primary","text-blue-600":a.color==="light","text-grey-50":a.color==="dark"};return k(k(k({},i),d),c)});function l(){a.isDisabled||n("onClick")}return(i,d)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",t.unref(r)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:l},[t.createElementVNode("div",{class:t.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(t.openBlock(),t.createBlock(L,{key:0,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(t.openBlock(),t.createBlock(L,{key:1,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0)],2),e.isLoading?(t.openBlock(),t.createElementBlock("span",Lt,[t.createVNode(L,{class:"animate-spin",name:"circle-notch"})])):t.createCommentVNode("",!0)],10,It))}});var Z,Pt=new Uint8Array(16);function Mt(){if(!Z&&(Z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Z))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Z(Pt)}var jt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function zt(e){return typeof e=="string"&&jt.test(e)}for(var V=[],pe=0;pe<256;++pe)V.push((pe+256).toString(16).substr(1));function At(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(V[e[n+0]]+V[e[n+1]]+V[e[n+2]]+V[e[n+3]]+"-"+V[e[n+4]]+V[e[n+5]]+"-"+V[e[n+6]]+V[e[n+7]]+"-"+V[e[n+8]]+V[e[n+9]]+"-"+V[e[n+10]]+V[e[n+11]]+V[e[n+12]]+V[e[n+13]]+V[e[n+14]]+V[e[n+15]]).toLowerCase();if(!zt(a))throw TypeError("Stringified UUID is invalid");return a}function Pe(e,n,a){e=e||{};var r=e.random||(e.rng||Mt)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=r[o];return n}return At(r)}const _t={class:"relative flex items-start"},Ft={class:"flex items-center h-5"},Ht=["checked","id"],Ut={class:"ml-2 text-sm leading-5"},Wt=["for"],qt={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},Yt=t.defineComponent({__name:"Checkbox",props:{id:{default:Pe()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r.target.checked)};return(r,o)=>(t.openBlock(),t.createElementBlock("div",_t,[t.createElementVNode("div",Ft,[t.createElementVNode("input",{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",type:"checkbox",checked:e.modelValue,onChange:a,id:e.id},null,40,Ht)]),t.createElementVNode("div",Ut,[t.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},t.toDisplayString(e.label),9,Wt),e.description?(t.openBlock(),t.createElementBlock("p",qt,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])]))}}),Gt=()=>{},Kt=()=>!1,Xt=Array.isArray,Qt=e=>typeof e=="function";let Zt;function Jt(e,n=Zt){n&&n.active&&n.effects.push(e)}const en=e=>{const n=new Set(e);return n.w=0,n.n=0,n},Me=e=>(e.w&_)>0,je=e=>(e.n&_)>0,tn=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=_},nn=e=>{const{deps:n}=e;if(n.length){let a=0;for(let r=0;r<n.length;r++){const o=n[r];Me(o)&&!je(o)?o.delete(e):n[a++]=o,o.w&=~_,o.n&=~_}n.length=a}};let G=0,_=1;const me=30;let M;class on{constructor(n,a=null,r){this.fn=n,this.scheduler=a,this.active=!0,this.deps=[],this.parent=void 0,Jt(this,r)}run(){if(!this.active)return this.fn();let n=M,a=J;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=M,M=this,J=!0,_=1<<++G,G<=me?tn(this):ze(this),this.fn()}finally{G<=me&&nn(this),_=1<<--G,M=this.parent,J=a,this.parent=void 0,this.deferStop&&this.stop()}}stop(){M===this?this.deferStop=!0:this.active&&(ze(this),this.onStop&&this.onStop(),this.active=!1)}}function ze(e){const{deps:n}=e;if(n.length){for(let a=0;a<n.length;a++)n[a].delete(e);n.length=0}}let J=!0;function an(e,n){let a=!1;G<=me?je(e)||(e.n|=_,a=!Me(e)):a=!e.has(M),a&&(e.add(M),M.deps.push(e))}function rn(e,n){const a=Xt(e)?e:[...e];for(const r of a)r.computed&&Ae(r);for(const r of a)r.computed||Ae(r)}function Ae(e,n){(e!==M||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ee(e){const n=e&&e.__v_raw;return n?ee(n):e}function ln(e){J&&M&&(e=ee(e),an(e.dep||(e.dep=en())))}function sn(e,n){e=ee(e),e.dep&&rn(e.dep)}class cn{constructor(n,a,r,o){this._setter=a,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new on(n,()=>{this._dirty||(this._dirty=!0,sn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const n=ee(this);return ln(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function un(e,n,a=!1){let r,o;const l=Qt(e);return l?(r=e,o=Gt):(r=e.get,o=e.set),new cn(r,o,l||!o,a)}function dn(){return{app:null,config:{isNativeTag:Kt,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}dn();let fn=!1;const be=(e,n)=>un(e,n,fn);function ge(e){const n=be(()=>({"pl-3 pr-10 py-2":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":e.icon&&e.size==="small","pl-12 pr-10 py-3":e.icon&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),a=be(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),r=be(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:n,disabledClasses:a,textSizeClasses:r}}const pn={class:"relative"},mn=["placeholder","type","tabindex","value"],bn={inheritAttrs:!1},gn=t.defineComponent(H(k({},bn),{__name:"Input",props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){const r=e,{inputClasses:o,disabledClasses:l,textSizeClasses:i}=ge(r),d=function(s){a("update:modelValue",(s==null?void 0:s.target).value)},c=t.ref(null);return n({focus:()=>{r.isDisabled||c.value.focus()}}),(s,u)=>(t.openBlock(),t.createElementBlock("div",pn,[t.createElementVNode("input",t.mergeProps({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",[t.unref(o),t.unref(i),t.unref(l)]],placeholder:e.placeholder,type:e.type,tabindex:e.isDisabled?"-1":void 0,value:e.modelValue},s.$attrs,{ref_key:"input",ref:c,onInput:d}),null,16,mn),e.icon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",t.unref(i)])},[t.createVNode(L,{name:e.icon},null,8,["name"])],2)):t.createCommentVNode("",!0)]))}})),hn={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},vn=["for"],yn={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},xn=t.defineComponent({__name:"Label",props:{id:null,label:null,description:null},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("span",hn,[t.createElementVNode("label",{for:e.id},t.toDisplayString(e.label),9,vn),e.description?(t.openBlock(),t.createElementBlock("span",yn,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)]))}});function $(e,n,...a){if(e in n){let o=n[e];return typeof o=="function"?o(...a):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$),r}var K=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(K||{}),wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wn||{});function N(r){var o=r,{visible:e=!0,features:n=0}=o,a=q(o,["visible","features"]);var l;if(e||n&2&&a.props.static)return he(a);if(n&1){let i=(l=a.props.unmount)==null||l?0:1;return $(i,{[0](){return null},[1](){return he(H(k({},a),{props:H(k({},a.props),{hidden:!0,style:{display:"none"}})}))}})}return he(a)}function he({props:e,attrs:n,slots:a,slot:r,name:o}){var l;let s=ve(e,["unmount","static"]),{as:i}=s,d=q(s,["as"]),c=(l=a.default)==null?void 0:l.call(a,r),f={};if(i==="template"){if(Object.keys(d).length>0||Object.keys(n).length>0){let[u,...v]=c!=null?c:[];if(!kn(u)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(d).concat(Object.keys(n)).map(p=>` - ${p}`).join(`
|
|
5
|
+
*/var Pt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},Lt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},$t={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Mt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},jt={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]},Be="fas",De="numeric-input",Ne=512,Pe=512,fe=[],Le="",$e="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";const Me={prefix:Be,iconName:De,icon:[Ne,Pe,fe,Le,$e]};var zt={definition:Me,faAlignJustify:Me,prefix:Be,iconName:De,width:Ne,height:Pe,ligatures:fe,unicode:Le,svgPathData:$e,aliases:fe};N.library.add(b.faArrowUp19,b.faAt,b.faBold,b.faBolt,b.faCalendar,b.faChartPie,b.faCheck,b.faCheckCircle,b.faChevronDown,b.faChevronLeft,b.faChevronRight,b.faChevronUp,b.faCircleCheck,b.faCircleNotch,b.faClipboard,b.faCloudDownload,b.faCloudUpload,b.faCog,b.faCrown,b.faDoorOpen,b.faDotCircle,b.faEllipsis,b.faEllipsisVertical,b.faEnvelope,b.faExclamationTriangle,b.faExternalLink,b.faEyeDropper,b.faFileLines,b.faFileUpload,b.faFingerprint,b.faGlobe,b.faGripHorizontal,b.faGripVertical,b.faHandPointRight,b.faHashtag,b.faHeart,b.faInfoCircle,b.faItalic,b.faLink,b.faMedal,b.faMessage,b.faPencilAlt,b.faPenToSquare,b.faPhone,b.faPlayCircle,b.faPlus,b.faPlusCircle,b.faPoo,b.faReply,b.faReplyAll,b.faRobot,b.faSave,b.faShield,b.faSignature,b.faSquareCheck,b.faStar,b.faTimes,b.faTrash,b.faTree,b.faTrophy,b.faTurnDown,b.faUpload,b.faUser,b.faUserShield,jt,$t,Lt,Mt,Pt,zt.definition);var je=[...Object.keys(N.library.definitions.fas)].sort();const pe=[...Object.keys(N.library.definitions.fab)].sort(),P=t.defineComponent({__name:"Icon",props:{name:{default:"user"}},setup(e){const n=e,a=t.computed(()=>pe.includes(n.name)?"fab":"fas"),r=t.computed(()=>je.includes(n.name)||pe.includes(n.name)?!0:(console.warn("could not load icon, because it is not available",n.name),!1));return(o,l)=>t.unref(r)?(t.openBlock(),t.createBlock(t.unref(B.FontAwesomeIcon),t.mergeProps({key:0,icon:[t.unref(a),e.name]},o.$attrs),null,16,["icon"])):t.createCommentVNode("",!0)}}),_t=["aria-label","tabindex"],At={key:0,class:"absolute inset-0 flex items-center justify-center"},Ft=t.defineComponent({__name:"Button",props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:n}){const a=e,r=t.computed(()=>{const i={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":a.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":a.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":a.color==="dark","text-red-50 bg-red-500 border-transparent hover:bg-red-600 active:bg-red-600 ring-red-400 dark:ring-red-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-red-900":a.color==="danger"},u={"pointer-events-none opacity-75 cursor-not-allowed":a.isDisabled},c={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":a.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":a.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":a.size==="large"};return k(k(k({},i),u),c)}),o=t.computed(()=>{const i={"mr-2 -ml-1":["small","medium"].includes(a.size)&&a.iconPosition==="left","mr-4 -ml-2":["large"].includes(a.size)&&a.iconPosition==="left"},u={"ml-3 -mr-1":["small","medium"].includes(a.size)&&a.iconPosition==="right","ml-3 -mr-3":["large"].includes(a.size)&&a.iconPosition==="right"},c={"text-white":a.color==="primary","text-blue-600":a.color==="light","text-grey-50":a.color==="dark"};return k(k(k({},i),u),c)});function l(){a.isDisabled||n("onClick")}return(i,u)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",t.unref(r)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:l},[t.createElementVNode("div",{class:t.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(t.openBlock(),t.createBlock(P,{key:0,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(t.openBlock(),t.createBlock(P,{key:1,name:e.icon,class:t.normalizeClass(t.unref(o))},null,8,["name","class"])):t.createCommentVNode("",!0)],2),e.isLoading?(t.openBlock(),t.createElementBlock("span",At,[t.createVNode(P,{class:"animate-spin",name:"circle-notch"})])):t.createCommentVNode("",!0)],10,_t))}});var J,Ht=new Uint8Array(16);function Ut(){if(!J&&(J=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!J))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(Ht)}var Wt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gt(e){return typeof e=="string"&&Wt.test(e)}for(var T=[],me=0;me<256;++me)T.push((me+256).toString(16).substr(1));function qt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(T[e[n+0]]+T[e[n+1]]+T[e[n+2]]+T[e[n+3]]+"-"+T[e[n+4]]+T[e[n+5]]+"-"+T[e[n+6]]+T[e[n+7]]+"-"+T[e[n+8]]+T[e[n+9]]+"-"+T[e[n+10]]+T[e[n+11]]+T[e[n+12]]+T[e[n+13]]+T[e[n+14]]+T[e[n+15]]).toLowerCase();if(!Gt(a))throw TypeError("Stringified UUID is invalid");return a}function ze(e,n,a){e=e||{};var r=e.random||(e.rng||Ut)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=r[o];return n}return qt(r)}const Kt={class:"relative flex items-start"},Qt={class:"flex items-center h-5"},Yt=["checked","id"],Xt={class:"ml-2 text-sm leading-5"},Zt=["for"],Jt={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},en=t.defineComponent({__name:"Checkbox",props:{id:{default:ze()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r.target.checked)};return(r,o)=>(t.openBlock(),t.createElementBlock("div",Kt,[t.createElementVNode("div",Qt,[t.createElementVNode("input",{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",type:"checkbox",checked:e.modelValue,onChange:a,id:e.id},null,40,Yt)]),t.createElementVNode("div",Xt,[t.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},t.toDisplayString(e.label),9,Zt),e.description?(t.openBlock(),t.createElementBlock("p",Jt,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])]))}});var _e;const K=typeof window!="undefined";K&&((_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tn(e){return e}function nn(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}K&&window.document,K&&window.navigator,K&&window.location;function on(e,n=!1){const a=t.ref(),r=()=>a.value=Boolean(e());return r(),nn(r,n),a}const be=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ge="__vueuse_ssr_handlers__";be[ge]=be[ge]||{},be[ge];function an(e={}){const{initialValue:n=""}=e,a=on(()=>typeof window!="undefined"&&"EyeDropper"in window),r=t.ref(n);async function o(l){if(!a.value)return;const u=await new window.EyeDropper().open(l);return r.value=u.sRGBHex,u}return{isSupported:a,sRGBHex:r,open:o}}var Ae;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ae||(Ae={}));var rn=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,He=(e,n,a)=>n in e?rn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,cn=(e,n)=>{for(var a in n||(n={}))ln.call(n,a)&&He(e,a,n[a]);if(Fe)for(var a of Fe(n))sn.call(n,a)&&He(e,a,n[a]);return e};cn({linear:tn},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const un=()=>{},dn=()=>!1,fn=Array.isArray,pn=e=>typeof e=="function";let mn;function bn(e,n=mn){n&&n.active&&n.effects.push(e)}const gn=e=>{const n=new Set(e);return n.w=0,n.n=0,n},Ue=e=>(e.w&A)>0,We=e=>(e.n&A)>0,hn=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=A},yn=e=>{const{deps:n}=e;if(n.length){let a=0;for(let r=0;r<n.length;r++){const o=n[r];Ue(o)&&!We(o)?o.delete(e):n[a++]=o,o.w&=~A,o.n&=~A}n.length=a}};let Q=0,A=1;const he=30;let M;class vn{constructor(n,a=null,r){this.fn=n,this.scheduler=a,this.active=!0,this.deps=[],this.parent=void 0,bn(this,r)}run(){if(!this.active)return this.fn();let n=M,a=ee;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=M,M=this,ee=!0,A=1<<++Q,Q<=he?hn(this):Ge(this),this.fn()}finally{Q<=he&&yn(this),A=1<<--Q,M=this.parent,ee=a,this.parent=void 0,this.deferStop&&this.stop()}}stop(){M===this?this.deferStop=!0:this.active&&(Ge(this),this.onStop&&this.onStop(),this.active=!1)}}function Ge(e){const{deps:n}=e;if(n.length){for(let a=0;a<n.length;a++)n[a].delete(e);n.length=0}}let ee=!0;function wn(e,n){let a=!1;Q<=he?We(e)||(e.n|=A,a=!Ue(e)):a=!e.has(M),a&&(e.add(M),M.deps.push(e))}function xn(e,n){const a=fn(e)?e:[...e];for(const r of a)r.computed&&qe(r);for(const r of a)r.computed||qe(r)}function qe(e,n){(e!==M||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function te(e){const n=e&&e.__v_raw;return n?te(n):e}function kn(e){ee&&M&&(e=te(e),wn(e.dep||(e.dep=gn())))}function Sn(e,n){e=te(e),e.dep&&xn(e.dep)}class On{constructor(n,a,r,o){this._setter=a,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new vn(n,()=>{this._dirty||(this._dirty=!0,Sn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const n=te(this);return kn(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function Cn(e,n,a=!1){let r,o;const l=pn(e);return l?(r=e,o=un):(r=e.get,o=e.set),new On(r,o,l||!o,a)}function En(){return{app:null,config:{isNativeTag:dn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}En();let In=!1;const ye=(e,n)=>Cn(e,n,In);function ve(e){const n=ye(()=>({"pl-3 pr-10 py-2":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":(e.icon||e.type==="color")&&e.size==="small","pl-12 pr-10 py-3":(e.icon||e.type==="color")&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),a=ye(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),r=ye(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:n,disabledClasses:a,textSizeClasses:r}}const Rn=["placeholder","type","tabindex","value"],Tn={class:"absolute inset-y-2 left-2 w-8 cursor-pointer"},Vn={inheritAttrs:!1},Bn=t.defineComponent(H(k({},Vn),{__name:"Input",props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean},showColorPicker:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){var m;const r=e,o=t.ref((m=r.modelValue)!=null?m:""),{inputClasses:l,disabledClasses:i,textSizeClasses:u}=ve(r),c=t.computed(()=>r.type==="color"?"text":r.type),{isSupported:f,open:s,sRGBHex:d}=an(),v=()=>{s()};t.watch(d,h=>{o.value=h,a("update:modelValue",h)});const p=function(h){o.value=(h==null?void 0:h.target).value,a("update:modelValue",(h==null?void 0:h.target).value)},y=t.ref(null);return n({focus:()=>{r.isDisabled||y.value.focus()}}),(h,x)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["relative",[e.block?"w-full block":"inline-block"]])},[t.createElementVNode("input",t.mergeProps({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",[t.unref(l),t.unref(u),t.unref(i)]],placeholder:e.placeholder,type:t.unref(c),tabindex:e.isDisabled?"-1":void 0,value:o.value},h.$attrs,{ref_key:"input",ref:y,onInput:p}),null,16,Rn),e.type==="color"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("label",Tn,[t.withDirectives(t.createElementVNode("input",{class:"invisible",type:"color","onUpdate:modelValue":x[0]||(x[0]=S=>o.value=S)},null,512),[[t.vModelText,o.value]]),t.createElementVNode("span",{class:"border-1 absolute inset-0 block rounded border border-grey-600/25 bg-clip-border shadow",style:t.normalizeStyle(`background-color: ${o.value}`)},null,4)]),t.unref(f)&&e.showColorPicker?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",onClick:v},[t.createVNode(P,{size:"xs",name:"eyedropper"})])):t.createCommentVNode("",!0)],64)):e.icon?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",t.unref(u)])},[t.createVNode(P,{name:e.icon},null,8,["name"])],2)):t.createCommentVNode("",!0)],2))}})),Dn={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},Nn=["for"],Pn={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},Ln=t.defineComponent({__name:"Label",props:{id:null,label:null,description:null},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("span",Dn,[t.createElementVNode("label",{for:e.id},t.toDisplayString(e.label),9,Nn),e.description?(t.openBlock(),t.createElementBlock("span",Pn,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)]))}});function L(e,n,...a){if(e in n){let o=n[e];return typeof o=="function"?o(...a):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var Y=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Y||{}),$n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))($n||{});function D(r){var o=r,{visible:e=!0,features:n=0}=o,a=G(o,["visible","features"]);var l;if(e||n&2&&a.props.static)return we(a);if(n&1){let i=(l=a.props.unmount)==null||l?0:1;return L(i,{[0](){return null},[1](){return we(H(k({},a),{props:H(k({},a.props),{hidden:!0,style:{display:"none"}})}))}})}return we(a)}function we({props:e,attrs:n,slots:a,slot:r,name:o}){var l;let s=xe(e,["unmount","static"]),{as:i}=s,u=G(s,["as"]),c=(l=a.default)==null?void 0:l.call(a,r),f={};if(i==="template"){if(Object.keys(u).length>0||Object.keys(n).length>0){let[d,...v]=c!=null?c:[];if(!Mn(d)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(n)).map(p=>` - ${p}`).join(`
|
|
6
6
|
`),"","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(p=>` - ${p}`).join(`
|
|
7
7
|
`)].join(`
|
|
8
|
-
`));return t.cloneVNode(u,Object.assign({},d,f))}return Array.isArray(c)&&c.length===1?c[0]:c}return t.h(i,Object.assign({},d,f),c)}function _e(e){let n=Object.assign({},e);for(let a in n)n[a]===void 0&&delete n[a];return n}function ve(e,n=[]){let a=Object.assign({},e);for(let r of n)r in a&&delete a[r];return a}function kn(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let Sn=0;function Cn(){return++Sn}function j(){return Cn()}var S=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(S||{});function On(e){throw new Error("Unexpected object: "+e)}var R=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(R||{});function Fe(e,n){let a=n.resolveItems();if(a.length<=0)return null;let r=n.resolveActiveIndex(),o=r!=null?r:-1,l=(()=>{switch(e.focus){case 0:return a.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=a.slice().reverse().findIndex((d,c,f)=>o!==-1&&f.length-c-1>=o?!1:!n.resolveDisabled(d));return i===-1?i:a.length-1-i}case 2:return a.findIndex((i,d)=>d<=o?!1:!n.resolveDisabled(i));case 3:{let i=a.slice().reverse().findIndex(d=>!n.resolveDisabled(d));return i===-1?i:a.length-1-i}case 4:return a.findIndex(i=>n.resolveId(i)===e.id);case 5:return null;default:On(e)}})();return l===-1?r:l}function C(e){return e==null||e.value==null?null:"$el"in e.value?e.value.$el:e.value}let He=Symbol("Context");var U=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(U||{});function Ue(){return t.inject(He,null)}function We(e){t.provide(He,e)}function qe(e,n){if(e)return e;let a=n!=null?n:"button";if(typeof a=="string"&&a.toLowerCase()==="button")return"button"}function ye(e,n){let a=t.ref(qe(e.value.type,e.value.as));return t.onMounted(()=>{a.value=qe(e.value.type,e.value.as)}),t.watchEffect(()=>{var r;a.value||!C(n)||C(n)instanceof HTMLButtonElement&&!((r=C(n))!=null&&r.hasAttribute("type"))&&(a.value="button")}),a}function Ye(e){if(typeof window=="undefined")return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=C(e);if(n)return n.ownerDocument}return document}function En({container:e,accept:n,walk:a,enabled:r}){t.watchEffect(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let l=Ye(e);if(!l)return;let i=Object.assign(c=>n(c),{acceptNode:n}),d=l.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;d.nextNode();)a(d.currentNode)})}let Ge=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Rn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Rn||{}),Dn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Dn||{}),Vn=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Vn||{}),xe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xe||{});function Ke(e,n=0){var a;return e===((a=Ye(e))==null?void 0:a.body)?!1:$(n,{[0](){return e.matches(Ge)},[1](){let r=e;for(;r!==null;){if(r.matches(Ge))return!0;r=r.parentElement}return!1}})}function Xe(e,n=a=>a){return e.slice().sort((a,r)=>{let o=n(a),l=n(r);if(o===null||l===null)return 0;let i=o.compareDocumentPosition(l);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Qe(e,n,a){typeof window!="undefined"&&t.watchEffect(r=>{window.addEventListener(e,n,a),r(()=>window.removeEventListener(e,n,a))})}function Tn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}var Bn=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(Bn||{});function Ze(e,n,a=1){let r=!1;function o(l){if(r)return;r=!0,Tn(()=>{r=!1});let i=l.target;if(!i.ownerDocument.documentElement.contains(i))return;let d=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);if((a&2)===2){let c=20,f=i.ownerDocument.documentElement;if(l.clientX>f.clientWidth-c||l.clientX<c||l.clientY>f.clientHeight-c||l.clientY<c)return}for(let c of d){if(c===null)continue;let f=c instanceof HTMLElement?c:C(c);if(f!=null&&f.contains(i))return}n(l,i)}Qe("pointerdown",o),Qe("mousedown",o)}var we=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(we||{});let Je=t.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:a}){return()=>{let i=e,{features:r}=i,o=q(i,["features"]),l={"aria-hidden":(r&2)===2?!0:void 0,style:k({position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return N({props:k(k({},o),l),slot:{},attrs:a,slots:n,name:"Hidden"})}}});function et(e={},n=null,a=[]){for(let[r,o]of Object.entries(e))nt(a,tt(n,r),o);return a}function tt(e,n){return e?e+"["+n+"]":n}function nt(e,n,a){if(Array.isArray(a))for(let[r,o]of a.entries())nt(e,tt(n,r.toString()),o);else a instanceof Date?e.push([n,a.toISOString()]):typeof a=="boolean"?e.push([n,a?"1":"0"]):typeof a=="string"?e.push([n,a]):typeof a=="number"?e.push([n,`${a}`]):a==null?e.push([n,""]):et(a,n,e)}function Nn(e){var n;let a=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(a){for(let r of a.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let ot=Symbol("DescriptionContext");function In(){let e=t.inject(ot,null);if(e===null)throw new Error("Missing parent");return e}function Ln({slot:e=t.ref({}),name:n="Description",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(ot,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let $n=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},setup(e,{attrs:n,slots:a}){let r=In(),o=`headlessui-description-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Description",slot:i=t.ref({}),props:d={}}=r,c=e,f=H(k({},Object.entries(d).reduce((s,[u,v])=>Object.assign(s,{[u]:t.unref(v)}),{})),{id:o});return N({props:k(k({},c),f),slot:i.value,attrs:n,slots:a,name:l})}}});var Pn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Pn||{}),Mn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Mn||{}),jn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(jn||{});function zn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let at=Symbol("ListboxContext");function X(e){let n=t.inject(at,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,X),a}return n}let An=t.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:n,attrs:a,emit:r}){let o=t.ref(1),l=t.ref(null),i=t.ref(null),d=t.ref(null),c=t.ref([]),f=t.ref(""),s=t.ref(null),u=t.ref(1);function v(g=y=>y){let y=s.value!==null?c.value[s.value]:null,w=Xe(g(c.value.slice()),E=>C(E.dataRef.domRef)),O=y?w.indexOf(y):null;return O===-1&&(O=null),{options:w,activeOptionIndex:O}}let p=t.computed(()=>e.modelValue),h=t.computed(()=>e.multiple?1:0),b={listboxState:o,value:p,mode:h,compare(g,y){return g===y},orientation:t.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:l,buttonRef:i,optionsRef:d,disabled:t.computed(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:s,activationTrigger:u,closeListbox(){e.disabled||o.value!==1&&(o.value=1,s.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(g,y,w){if(e.disabled||o.value===1)return;let O=v(),E=Fe(g===R.Specific?{focus:R.Specific,id:y}:{focus:g},{resolveItems:()=>O.options,resolveActiveIndex:()=>O.activeOptionIndex,resolveId:D=>D.id,resolveDisabled:D=>D.dataRef.disabled});f.value="",s.value=E,u.value=w!=null?w:1,c.value=O.options},search(g){if(e.disabled||o.value===1)return;let y=f.value!==""?0:1;f.value+=g.toLowerCase();let w=(s.value!==null?c.value.slice(s.value+y).concat(c.value.slice(0,s.value+y)):c.value).find(E=>E.dataRef.textValue.startsWith(f.value)&&!E.dataRef.disabled),O=w?c.value.indexOf(w):-1;O===-1||O===s.value||(s.value=O,u.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(g,y){let w=v(O=>[...O,{id:g,dataRef:y}]);c.value=w.options,s.value=w.activeOptionIndex},unregisterOption(g){let y=v(w=>{let O=w.findIndex(E=>E.id===g);return O!==-1&&w.splice(O,1),w});c.value=y.options,s.value=y.activeOptionIndex,u.value=1},select(g){e.disabled||r("update:modelValue",$(h.value,{[0]:()=>g,[1]:()=>{let y=t.toRaw(b.value.value).slice(),w=t.toRaw(g),O=y.findIndex(E=>b.compare(w,t.toRaw(E)));return O===-1?y.push(w):y.splice(O,1),y}}))}};return Ze([i,d],(g,y)=>{var w;o.value===0&&(b.closeListbox(),Ke(y,xe.Loose)||(g.preventDefault(),(w=C(i))==null||w.focus()))}),t.provide(at,b),We(t.computed(()=>$(o.value,{[0]:U.Open,[1]:U.Closed}))),()=>{let D=e,{name:g,modelValue:y,disabled:w}=D,O=q(D,["name","modelValue","disabled"]),E={open:o.value===0,disabled:w};return t.h(t.Fragment,[...g!=null&&y!=null?et({[g]:y}).map(([T,F])=>t.h(Je,_e({features:we.Hidden,key:T,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:T,value:F}))):[],N({props:k(k({},a),ve(O,["onUpdate:modelValue","horizontal","multiple","by"])),slot:E,slots:n,attrs:a,name:"Listbox"})])}}});t.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"}},setup(e,{attrs:n,slots:a}){let r=X("ListboxLabel"),o=`headlessui-listbox-label-${j()}`;function l(){var i;(i=C(r.buttonRef))==null||i.focus({preventScroll:!0})}return()=>{let i={open:r.listboxState.value===0,disabled:r.disabled.value},d={id:o,ref:r.labelRef,onClick:l};return N({props:k(k({},e),d),slot:i,attrs:n,slots:a,name:"ListboxLabel"})}}});let _n=t.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxButton"),l=`headlessui-listbox-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case S.Space:case S.Enter:case S.ArrowDown:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var u;(u=C(o.optionsRef))==null||u.focus({preventScroll:!0}),o.value.value||o.goToOption(R.First)});break;case S.ArrowUp:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var u;(u=C(o.optionsRef))==null||u.focus({preventScroll:!0}),o.value.value||o.goToOption(R.Last)});break}}function d(s){switch(s.key){case S.Space:s.preventDefault();break}}function c(s){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(s.preventDefault(),o.openListbox(),zn(()=>{var u;return(u=C(o.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}let f=ye(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s,u;let v={open:o.listboxState.value===0,disabled:o.disabled.value},p={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.optionsRef))==null?void 0:s.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(u=C(o.labelRef))==null?void 0:u.id,l].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:i,onKeyup:d,onClick:c};return N({props:k(k({},e),p),slot:v,attrs:n,slots:a,name:"ListboxButton"})}}}),Fn=t.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxOptions"),l=`headlessui-listbox-options-${j()}`,i=t.ref(null);r({el:o.optionsRef,$el:o.optionsRef});function d(s){switch(i.value&&clearTimeout(i.value),s.key){case S.Space:if(o.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),o.search(s.key);case S.Enter:if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex.value!==null){let u=o.options.value[o.activeOptionIndex.value];o.select(u.dataRef.value)}o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})}));break;case $(o.orientation.value,{vertical:S.ArrowDown,horizontal:S.ArrowRight}):return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Next);case $(o.orientation.value,{vertical:S.ArrowUp,horizontal:S.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Previous);case S.Home:case S.PageUp:return s.preventDefault(),s.stopPropagation(),o.goToOption(R.First);case S.End:case S.PageDown:return s.preventDefault(),s.stopPropagation(),o.goToOption(R.Last);case S.Escape:s.preventDefault(),s.stopPropagation(),o.closeListbox(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case S.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(o.search(s.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}let c=Ue(),f=t.computed(()=>c!==null?c.value===U.Open:o.listboxState.value===0);return()=>{var s,u,v,p;let h={open:o.listboxState.value===0},b={"aria-activedescendant":o.activeOptionIndex.value===null||(s=o.options.value[o.activeOptionIndex.value])==null?void 0:s.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(p=(u=C(o.labelRef))==null?void 0:u.id)!=null?p:(v=C(o.buttonRef))==null?void 0:v.id,"aria-orientation":o.orientation.value,id:l,onKeydown:d,role:"listbox",tabIndex:0,ref:o.optionsRef};return N({props:k(k({},e),b),slot:h,attrs:n,slots:a,features:K.RenderStrategy|K.Static,visible:f.value,name:"ListboxOptions"})}}}),Hn=t.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=X("ListboxOption"),l=`headlessui-listbox-option-${j()}`,i=t.ref(null);r({el:i,$el:i});let d=t.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===l:!1),c=t.computed(()=>$(o.mode.value,{[0]:()=>o.compare(t.toRaw(o.value.value),t.toRaw(e.value)),[1]:()=>t.toRaw(o.value.value).some(b=>o.compare(t.toRaw(b),t.toRaw(e.value)))})),f=t.computed(()=>$(o.mode.value,{[1]:()=>{var b;let g=t.toRaw(o.value.value);return((b=o.options.value.find(y=>g.some(w=>o.compare(t.toRaw(w),t.toRaw(y.dataRef.value)))))==null?void 0:b.id)===l},[0]:()=>c.value})),s=t.computed(()=>({disabled:e.disabled,value:e.value,textValue:"",domRef:i}));t.onMounted(()=>{var b,g;let y=(g=(b=C(i))==null?void 0:b.textContent)==null?void 0:g.toLowerCase().trim();y!==void 0&&(s.value.textValue=y)}),t.onMounted(()=>o.registerOption(l,s)),t.onUnmounted(()=>o.unregisterOption(l)),t.onMounted(()=>{t.watch([o.listboxState,c],()=>{o.listboxState.value===0&&(!c.value||$(o.mode.value,{[1]:()=>{f.value&&o.goToOption(R.Specific,l)},[0]:()=>{o.goToOption(R.Specific,l)}}))},{immediate:!0})}),t.watchEffect(()=>{o.listboxState.value===0&&(!d.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var b,g;return(g=(b=C(i))==null?void 0:b.scrollIntoView)==null?void 0:g.call(b,{block:"nearest"})}))});function u(b){if(e.disabled)return b.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var g;return(g=C(o.buttonRef))==null?void 0:g.focus({preventScroll:!0})}))}function v(){if(e.disabled)return o.goToOption(R.Nothing);o.goToOption(R.Specific,l)}function p(){e.disabled||d.value||o.goToOption(R.Specific,l,0)}function h(){e.disabled||!d.value||o.goToOption(R.Nothing)}return()=>{let{disabled:b}=e,g={active:d.value,selected:c.value,disabled:b},y={id:l,ref:i,role:"option",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,"aria-selected":c.value===!0?c.value:void 0,disabled:void 0,onClick:u,onFocus:v,onPointermove:p,onMousemove:p,onPointerleave:h,onMouseleave:h};return N({props:k(k({},ve(e,["value","disabled"])),y),slot:g,attrs:a,slots:n,name:"ListboxOption"})}}});var Un=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Un||{}),Wn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Wn||{});function qn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let rt=Symbol("MenuContext");function te(e){let n=t.inject(rt,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,te),a}return n}let Yn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(1),o=t.ref(null),l=t.ref(null),i=t.ref([]),d=t.ref(""),c=t.ref(null),f=t.ref(1);function s(v=p=>p){let p=c.value!==null?i.value[c.value]:null,h=Xe(v(i.value.slice()),g=>C(g.dataRef.domRef)),b=p?h.indexOf(p):null;return b===-1&&(b=null),{items:h,activeItemIndex:b}}let u={menuState:r,buttonRef:o,itemsRef:l,items:i,searchQuery:d,activeItemIndex:c,activationTrigger:f,closeMenu:()=>{r.value=1,c.value=null},openMenu:()=>r.value=0,goToItem(v,p,h){let b=s(),g=Fe(v===R.Specific?{focus:R.Specific,id:p}:{focus:v},{resolveItems:()=>b.items,resolveActiveIndex:()=>b.activeItemIndex,resolveId:y=>y.id,resolveDisabled:y=>y.dataRef.disabled});d.value="",c.value=g,f.value=h!=null?h:1,i.value=b.items},search(v){let p=d.value!==""?0:1;d.value+=v.toLowerCase();let h=(c.value!==null?i.value.slice(c.value+p).concat(i.value.slice(0,c.value+p)):i.value).find(g=>g.dataRef.textValue.startsWith(d.value)&&!g.dataRef.disabled),b=h?i.value.indexOf(h):-1;b===-1||b===c.value||(c.value=b,f.value=1)},clearSearch(){d.value=""},registerItem(v,p){let h=s(b=>[...b,{id:v,dataRef:p}]);i.value=h.items,c.value=h.activeItemIndex,f.value=1},unregisterItem(v){let p=s(h=>{let b=h.findIndex(g=>g.id===v);return b!==-1&&h.splice(b,1),h});i.value=p.items,c.value=p.activeItemIndex,f.value=1}};return Ze([o,l],(v,p)=>{var h;r.value===0&&(u.closeMenu(),Ke(p,xe.Loose)||(v.preventDefault(),(h=C(o))==null||h.focus()))}),t.provide(rt,u),We(t.computed(()=>$(r.value,{[0]:U.Open,[1]:U.Closed}))),()=>{let v={open:r.value===0};return N({props:e,slot:v,slots:n,attrs:a,name:"Menu"})}}}),Gn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=te("MenuButton"),l=`headlessui-menu-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case S.Space:case S.Enter:case S.ArrowDown:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var u;(u=C(o.itemsRef))==null||u.focus({preventScroll:!0}),o.goToItem(R.First)});break;case S.ArrowUp:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var u;(u=C(o.itemsRef))==null||u.focus({preventScroll:!0}),o.goToItem(R.Last)});break}}function d(s){switch(s.key){case S.Space:s.preventDefault();break}}function c(s){e.disabled||(o.menuState.value===0?(o.closeMenu(),t.nextTick(()=>{var u;return(u=C(o.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(s.preventDefault(),s.stopPropagation(),o.openMenu(),qn(()=>{var u;return(u=C(o.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}let f=ye(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s;let u={open:o.menuState.value===0},v={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.itemsRef))==null?void 0:s.id,"aria-expanded":e.disabled?void 0:o.menuState.value===0,onKeydown:i,onKeyup:d,onClick:c};return N({props:k(k({},e),v),slot:u,attrs:n,slots:a,name:"MenuButton"})}}}),Kn=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=te("MenuItems"),l=`headlessui-menu-items-${j()}`,i=t.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),En({container:t.computed(()=>C(o.itemsRef)),enabled:t.computed(()=>o.menuState.value===0),accept(u){return u.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}});function d(u){var v;switch(i.value&&clearTimeout(i.value),u.key){case S.Space:if(o.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),o.search(u.key);case S.Enter:if(u.preventDefault(),u.stopPropagation(),o.activeItemIndex.value!==null){let p=o.items.value[o.activeItemIndex.value];(v=C(p.dataRef.domRef))==null||v.click()}o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case S.ArrowDown:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Next);case S.ArrowUp:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Previous);case S.Home:case S.PageUp:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.First);case S.End:case S.PageDown:return u.preventDefault(),u.stopPropagation(),o.goToItem(R.Last);case S.Escape:u.preventDefault(),u.stopPropagation(),o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case S.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(o.search(u.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}function c(u){switch(u.key){case S.Space:u.preventDefault();break}}let f=Ue(),s=t.computed(()=>f!==null?f.value===U.Open:o.menuState.value===0);return()=>{var u,v;let p={open:o.menuState.value===0},h={"aria-activedescendant":o.activeItemIndex.value===null||(u=o.items.value[o.activeItemIndex.value])==null?void 0:u.id,"aria-labelledby":(v=C(o.buttonRef))==null?void 0:v.id,id:l,onKeydown:d,onKeyup:c,role:"menu",tabIndex:0,ref:o.itemsRef};return N({props:k(k({},e),h),slot:p,attrs:n,slots:a,features:K.RenderStrategy|K.Static,visible:s.value,name:"MenuItems"})}}}),Xn=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=te("MenuItem"),l=`headlessui-menu-item-${j()}`,i=t.ref(null);r({el:i,$el:i});let d=t.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===l:!1),c=t.computed(()=>({disabled:e.disabled,textValue:"",domRef:i}));t.onMounted(()=>{var p,h;let b=(h=(p=C(i))==null?void 0:p.textContent)==null?void 0:h.toLowerCase().trim();b!==void 0&&(c.value.textValue=b)}),t.onMounted(()=>o.registerItem(l,c)),t.onUnmounted(()=>o.unregisterItem(l)),t.watchEffect(()=>{o.menuState.value===0&&(!d.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var p,h;return(h=(p=C(i))==null?void 0:p.scrollIntoView)==null?void 0:h.call(p,{block:"nearest"})}))});function f(p){if(e.disabled)return p.preventDefault();o.closeMenu(),t.nextTick(()=>{var h;return(h=C(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function s(){if(e.disabled)return o.goToItem(R.Nothing);o.goToItem(R.Specific,l)}function u(){e.disabled||d.value||o.goToItem(R.Specific,l,0)}function v(){e.disabled||!d.value||o.goToItem(R.Nothing)}return()=>{let{disabled:p}=e,h={active:d.value,disabled:p};return N({props:H(k({},e),{id:l,ref:i,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:s,onPointermove:u,onMousemove:u,onPointerleave:v,onMouseleave:v}),slot:h,attrs:a,slots:n,name:"MenuItem"})}}}),lt=Symbol("LabelContext");function it(){let e=t.inject(lt,null);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,it),n}return e}function Qn({slot:e={},name:n="Label",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(lt,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Zn=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},setup(e,{slots:n,attrs:a}){let r=it(),o=`headlessui-label-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Label",slot:i={},props:d={}}=r,v=e,{passive:c}=v,f=q(v,["passive"]),s=H(k({},Object.entries(d).reduce((p,[h,b])=>Object.assign(p,{[h]:t.unref(b)}),{})),{id:o}),u=k(k({},f),s);return c&&delete u.onClick,N({props:u,slot:i,attrs:a,slots:n,name:l})}}}),st=Symbol("GroupContext");t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(null),o=Qn({name:"SwitchLabel",props:{onClick(){!r.value||(r.value.click(),r.value.focus({preventScroll:!0}))}}}),l=Ln({name:"SwitchDescription"});return t.provide(st,{switchRef:r,labelledby:o,describedby:l}),()=>N({props:e,slot:{},slots:n,attrs:a,name:"SwitchGroup"})}});let Jn=t.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1},name:{type:String,optional:!0},value:{type:String,optional:!0}},inheritAttrs:!1,setup(e,{emit:n,attrs:a,slots:r,expose:o}){let l=t.inject(st,null),i=`headlessui-switch-${j()}`;function d(){n("update:modelValue",!e.modelValue)}let c=t.ref(null),f=l===null?c:l.switchRef,s=ye(t.computed(()=>({as:e.as,type:a.type})),f);o({el:f,$el:f});function u(h){h.preventDefault(),d()}function v(h){h.key===S.Space?(h.preventDefault(),d()):h.key===S.Enter&&Nn(h.currentTarget)}function p(h){h.preventDefault()}return()=>{let E=e,{name:h,value:b,modelValue:g}=E,y=q(E,["name","value","modelValue"]),w={checked:g},O={id:i,ref:f,role:"switch",type:s.value,tabIndex:0,"aria-checked":g,"aria-labelledby":l==null?void 0:l.labelledby.value,"aria-describedby":l==null?void 0:l.describedby.value,onClick:u,onKeyup:v,onKeypress:p};return t.h(t.Fragment,[h!=null&&g!=null?t.h(Je,_e({features:we.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:g,name:h,value:b})):null,N({props:k(k(k({},a),y),O),slot:w,attrs:a,slots:r,name:"Switch"})])}}});function z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function ct(e){var n=z(e).Element;return e instanceof n||e instanceof Element}function P(e){var n=z(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function ut(e){if(typeof ShadowRoot=="undefined")return!1;var n=z(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}var Y=Math.round;function ne(e,n){n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,o=1;if(P(e)&&n){var l=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Y(a.width)/i||1),l>0&&(o=Y(a.height)/l||1)}return{width:a.width/r,height:a.height/o,top:a.top/o,right:a.right/r,bottom:a.bottom/o,left:a.left/r,x:a.left/r,y:a.top/o}}function dt(e){var n=z(e),a=n.pageXOffset,r=n.pageYOffset;return{scrollLeft:a,scrollTop:r}}function eo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function to(e){return e===z(e)||!P(e)?dt(e):eo(e)}function A(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){return((ct(e)?e.ownerDocument:e.document)||window.document).documentElement}function no(e){return ne(oe(e)).left+dt(e).scrollLeft}function W(e){return z(e).getComputedStyle(e)}function ke(e){var n=W(e),a=n.overflow,r=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+r)}function oo(e){var n=e.getBoundingClientRect(),a=Y(n.width)/e.offsetWidth||1,r=Y(n.height)/e.offsetHeight||1;return a!==1||r!==1}function ao(e,n,a){a===void 0&&(a=!1);var r=P(n),o=P(n)&&oo(n),l=oe(n),i=ne(e,o),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!a)&&((A(n)!=="body"||ke(l))&&(d=to(n)),P(n)?(c=ne(n,!0),c.x+=n.clientLeft,c.y+=n.clientTop):l&&(c.x=no(l))),{x:i.left+d.scrollLeft-c.x,y:i.top+d.scrollTop-c.y,width:i.width,height:i.height}}function ro(e){var n=ne(e),a=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-a)<=1&&(a=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:r}}function Se(e){return A(e)==="html"?e:e.assignedSlot||e.parentNode||(ut(e)?e.host:null)||oe(e)}function ft(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:P(e)&&ke(e)?e:ft(Se(e))}function ae(e,n){var a;n===void 0&&(n=[]);var r=ft(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),l=z(r),i=o?[l].concat(l.visualViewport||[],ke(r)?r:[]):r,d=n.concat(i);return o?d:d.concat(ae(Se(i)))}function lo(e){return["table","td","th"].indexOf(A(e))>=0}function pt(e){return!P(e)||W(e).position==="fixed"?null:e.offsetParent}function io(e){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,a=navigator.userAgent.indexOf("Trident")!==-1;if(a&&P(e)){var r=W(e);if(r.position==="fixed")return null}var o=Se(e);for(ut(o)&&(o=o.host);P(o)&&["html","body"].indexOf(A(o))<0;){var l=W(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||n&&l.willChange==="filter"||n&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function mt(e){for(var n=z(e),a=pt(e);a&&lo(a)&&W(a).position==="static";)a=pt(a);return a&&(A(a)==="html"||A(a)==="body"&&W(a).position==="static")?n:a||io(e)||n}var re="top",Ce="bottom",Oe="right",le="left",so="start",Ee="end",co="beforeRead",uo="read",fo="afterRead",po="beforeMain",mo="main",bo="afterMain",go="beforeWrite",ho="write",vo="afterWrite",yo=[co,uo,fo,po,mo,bo,go,ho,vo];function xo(e){var n=new Map,a=new Set,r=[];e.forEach(function(l){n.set(l.name,l)});function o(l){a.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(d){if(!a.has(d)){var c=n.get(d);c&&o(c)}}),r.push(l)}return e.forEach(function(l){a.has(l.name)||o(l)}),r}function wo(e){var n=xo(e);return yo.reduce(function(a,r){return a.concat(n.filter(function(o){return o.phase===r}))},[])}function ko(e){var n;return function(){return n||(n=new Promise(function(a){Promise.resolve().then(function(){n=void 0,a(e())})})),n}}function bt(e){return e.split("-")[0]}function So(e){var n=e.reduce(function(a,r){var o=a[r.name];return a[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,a},{});return Object.keys(n).map(function(a){return n[a]})}function gt(e){return e.split("-")[1]}function Co(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e){var n=e.reference,a=e.element,r=e.placement,o=r?bt(r):null,l=r?gt(r):null,i=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,c;switch(o){case re:c={x:i,y:n.y-a.height};break;case Ce:c={x:i,y:n.y+n.height};break;case Oe:c={x:n.x+n.width,y:d};break;case le:c={x:n.x-a.width,y:d};break;default:c={x:n.x,y:n.y}}var f=o?Co(o):null;if(f!=null){var s=f==="y"?"height":"width";switch(l){case so:c[f]=c[f]-(n[s]/2-a[s]/2);break;case Ee:c[f]=c[f]+(n[s]/2-a[s]/2);break}}return c}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return!n.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Eo(e){e===void 0&&(e={});var n=e,a=n.defaultModifiers,r=a===void 0?[]:a,o=n.defaultOptions,l=o===void 0?ht:o;return function(d,c,f){f===void 0&&(f=l);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ht,l),modifiersData:{},elements:{reference:d,popper:c},attributes:{},styles:{}},u=[],v=!1,p={state:s,setOptions:function(y){var w=typeof y=="function"?y(s.options):y;b(),s.options=Object.assign({},l,s.options,w),s.scrollParents={reference:ct(d)?ae(d):d.contextElement?ae(d.contextElement):[],popper:ae(c)};var O=wo(So([].concat(r,s.options.modifiers)));return s.orderedModifiers=O.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!v){var y=s.elements,w=y.reference,O=y.popper;if(!!vt(w,O)){s.rects={reference:ao(w,mt(O),s.options.strategy==="fixed"),popper:ro(O)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(ce){return s.modifiersData[ce.name]=Object.assign({},ce.data)});for(var E=0;E<s.orderedModifiers.length;E++){if(s.reset===!0){s.reset=!1,E=-1;continue}var D=s.orderedModifiers[E],T=D.fn,F=D.options,se=F===void 0?{}:F,Re=D.name;typeof T=="function"&&(s=T({state:s,options:se,name:Re,instance:p})||s)}}}},update:ko(function(){return new Promise(function(g){p.forceUpdate(),g(s)})}),destroy:function(){b(),v=!0}};if(!vt(d,c))return p;p.setOptions(f).then(function(g){!v&&f.onFirstUpdate&&f.onFirstUpdate(g)});function h(){s.orderedModifiers.forEach(function(g){var y=g.name,w=g.options,O=w===void 0?{}:w,E=g.effect;if(typeof E=="function"){var D=E({state:s,name:y,instance:p,options:O}),T=function(){};u.push(D||T)}})}function b(){u.forEach(function(g){return g()}),u=[]}return p}}var ie={passive:!0};function Ro(e){var n=e.state,a=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,i=r.resize,d=i===void 0?!0:i,c=z(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return l&&f.forEach(function(s){s.addEventListener("scroll",a.update,ie)}),d&&c.addEventListener("resize",a.update,ie),function(){l&&f.forEach(function(s){s.removeEventListener("scroll",a.update,ie)}),d&&c.removeEventListener("resize",a.update,ie)}}var Do={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ro,data:{}};function Vo(e){var n=e.state,a=e.name;n.modifiersData[a]=Oo({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var To={name:"popperOffsets",enabled:!0,phase:"read",fn:Vo,data:{}},Bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function No(e){var n=e.x,a=e.y,r=window,o=r.devicePixelRatio||1;return{x:Y(n*o)/o||0,y:Y(a*o)/o||0}}function yt(e){var n,a=e.popper,r=e.popperRect,o=e.placement,l=e.variation,i=e.offsets,d=e.position,c=e.gpuAcceleration,f=e.adaptive,s=e.roundOffsets,u=e.isFixed,v=i.x,p=v===void 0?0:v,h=i.y,b=h===void 0?0:h,g=typeof s=="function"?s({x:p,y:b}):{x:p,y:b};p=g.x,b=g.y;var y=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),O=le,E=re,D=window;if(f){var T=mt(a),F="clientHeight",se="clientWidth";if(T===z(a)&&(T=oe(a),W(T).position!=="static"&&d==="absolute"&&(F="scrollHeight",se="scrollWidth")),T=T,o===re||(o===le||o===Oe)&&l===Ee){E=Ce;var Re=u&&T===D&&D.visualViewport?D.visualViewport.height:T[F];b-=Re-r.height,b*=c?1:-1}if(o===le||(o===re||o===Ce)&&l===Ee){O=Oe;var ce=u&&T===D&&D.visualViewport?D.visualViewport.width:T[se];p-=ce-r.width,p*=c?1:-1}}var xt=Object.assign({position:d},f&&Bo),wt=s===!0?No({x:p,y:b}):{x:p,y:b};if(p=wt.x,b=wt.y,c){var Q;return Object.assign({},xt,(Q={},Q[E]=w?"0":"",Q[O]=y?"0":"",Q.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",Q))}return Object.assign({},xt,(n={},n[E]=w?b+"px":"",n[O]=y?p+"px":"",n.transform="",n))}function Io(e){var n=e.state,a=e.options,r=a.gpuAcceleration,o=r===void 0?!0:r,l=a.adaptive,i=l===void 0?!0:l,d=a.roundOffsets,c=d===void 0?!0:d,f={placement:bt(n.placement),variation:gt(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,yt(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:c})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,yt(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var Lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Io,data:{}};function $o(e){var n=e.state;Object.keys(n.elements).forEach(function(a){var r=n.styles[a]||{},o=n.attributes[a]||{},l=n.elements[a];!P(l)||!A(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(i){var d=o[i];d===!1?l.removeAttribute(i):l.setAttribute(i,d===!0?"":d)}))})}function Po(e){var n=e.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],l=n.attributes[r]||{},i=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:a[r]),d=i.reduce(function(c,f){return c[f]="",c},{});!P(o)||!A(o)||(Object.assign(o.style,d),Object.keys(l).forEach(function(c){o.removeAttribute(c)}))})}}var Mo={name:"applyStyles",enabled:!0,phase:"write",fn:$o,effect:Po,requires:["computeStyles"]},jo=[Do,To,Lo,Mo],zo=Eo({defaultModifiers:jo});function Ao(e){const n=t.ref(null),a=t.ref(null);return t.onMounted(()=>{t.watchEffect(r=>{if(!a.value||!n.value)return;const o=a.value.el||a.value,l=n.value.el||n.value;if(!(l instanceof HTMLElement)||!(o instanceof HTMLElement))return;const{destroy:i}=zo(l,o,e);r(i)})}),[n,a]}const _o=t.defineComponent({__name:"MenuContainer",props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const a=e.position==="left"?"bottom-end":"bottom-start",[r,o]=Ao({placement:a});return(l,i)=>(t.openBlock(),t.createBlock(t.unref(Yn),{as:"div",class:"relative inline-block text-left"},{default:t.withCtx(()=>[t.createVNode(t.unref(Gn),{class:"focus:outline-none",ref_key:"button",ref:r},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{},()=>[t.createVNode(t.unref(L),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(t.openBlock(),t.createBlock(t.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[t.createElementVNode("div",{ref_key:"container",ref:o,class:"w-56"},[t.createVNode(t.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Kn),{class:t.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),Fo={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},Ho=t.defineComponent({__name:"MenuLink",props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(Xn),t.normalizeProps(t.guardReactiveProps({disabled:e.disabled})),{default:t.withCtx(({active:r})=>[t.createElementVNode("span",t.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[r?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},n.$attrs),[t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.meta?(t.openBlock(),t.createElementBlock("span",Fo,t.toDisplayString(e.meta),1)):t.createCommentVNode("",!0)],16)]),_:1},16))}}),Uo={class:"relative"},Wo={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},qo={key:1,class:"block truncate"},Yo={key:2,class:"text-grey-500 truncate"},Go={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Ko={class:"absolute right-2 inset-y-0 flex items-center"},Xo={key:0,class:"bg-grey-500 text-grey-100 rounded text-xs px-2 py-1"},Qo=t.defineComponent({__name:"Select",props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null,disabledBadge:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,r=a.modelValue?t.ref(a.modelValue):t.ref(void 0),{inputClasses:o,disabledClasses:l,textSizeClasses:i}=ge(a);return t.watch(()=>a.modelValue,d=>{var c;!d||d.id!==((c=r.value)==null?void 0:c.id)&&(r.value=d)}),t.watch(r,d=>{d&&n("update:modelValue",d)}),(d,c)=>(t.openBlock(),t.createBlock(t.unref(An),{as:"div",modelValue:t.unref(r),"onUpdate:modelValue":c[0]||(c[0]=f=>t.isRef(r)?r.value=f:null),disabled:e.isDisabled},{default:t.withCtx(()=>[t.createElementVNode("div",Uo,[t.createVNode(t.unref(_n),{class:t.normalizeClass(["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",[t.unref(o),t.unref(i),t.unref(l)]])},{default:t.withCtx(()=>{var f,s;return[e.icon?(t.openBlock(),t.createElementBlock("span",Wo,[t.createVNode(L,{name:(s=(f=t.unref(r))==null?void 0:f.icon)!=null?s:e.icon},null,8,["name"])])):t.createCommentVNode("",!0),t.unref(r)?(t.openBlock(),t.createElementBlock("span",qo,t.toDisplayString(t.unref(r).label),1)):(t.openBlock(),t.createElementBlock("span",Yo,t.toDisplayString(e.placeholder),1)),t.createElementVNode("span",Go,[t.createVNode(L,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),t.createVNode(t.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Fn),{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"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,f=>(t.openBlock(),t.createBlock(t.unref(Hn),{as:"template",key:f.id,value:f,disabled:f.disabled},{default:t.withCtx(({active:s,selected:u})=>[t.createElementVNode("li",{class:t.normalizeClass([s?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-12",{"opacity-50 bg-grey-100":f.disabled}])},[t.createElementVNode("div",Ko,[f.disabled&&e.disabledBadge?(t.openBlock(),t.createElementBlock("span",Xo,t.toDisplayString(e.disabledBadge),1)):t.createCommentVNode("",!0)]),t.createElementVNode("span",{class:t.normalizeClass([u?"font-semibold":"font-normal","block truncate"])},[f.icon?(t.openBlock(),t.createBlock(L,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.label),1)],2),u?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([s?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[t.createVNode(L,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):t.createCommentVNode("",!0)],2)]),_:2},1032,["value","disabled"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),Zo={class:"animate-pulse"},Jo={class:"flex items-center justify-between space-x-4"},ea={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},ta={key:1,class:"w-full h-8 bg-current rounded-lg"},na={key:0,class:"mt-6 space-y-2"},oa={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},aa=t.defineComponent({__name:"Skeleton",props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const n=e,a=new Array(n.lines).fill(void 0).map(()=>{const r=[4,5,6,8,10,16,24,32];return{margin:`mr-${r[Math.floor(Math.random()*r.length)]}`}});return(r,o)=>(t.openBlock(),t.createElementBlock("div",Zo,[t.createElementVNode("div",Jo,[e.avatar?(t.openBlock(),t.createElementBlock("div",ea)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",ta)):t.createCommentVNode("",!0)]),e.lines>0?(t.openBlock(),t.createElementBlock("div",na,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["h-4 bg-current rounded-lg",l.margin]),key:i},null,2))),128))])):t.createCommentVNode("",!0),e.footer?(t.openBlock(),t.createElementBlock("div",oa)):t.createCommentVNode("",!0)]))}}),ra=t.defineComponent({__name:"Spinner",setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(L),{class:"animate-spin",name:"circle-notch"}))}}),la={class:"sr-only"},ia=t.defineComponent({__name:"Switch",props:{id:{default:Pe()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r),n("change",r)};return(r,o)=>(t.openBlock(),t.createBlock(t.unref(Jn),{modelValue:e.modelValue,label:e.label,class:t.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":a},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},t.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),t.createElementVNode("span",la,t.toDisplayString(e.label),1),t.createElementVNode("span",{class:t.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),sa={class:"relative"},ca=["tabindex","value"],ua={inheritAttrs:!1},da=t.defineComponent(H(k({},ua),{__name:"Textarea",props:{modelValue:null,size:{default:"medium"},isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){const r=e,{inputClasses:o,disabledClasses:l,textSizeClasses:i}=ge(r),d=function(s){a("update:modelValue",(s==null?void 0:s.target).value)},c=t.ref(null);return n({focus:()=>{r.isDisabled||c.value.focus()}}),(s,u)=>{var v;return t.openBlock(),t.createElementBlock("div",sa,[t.createElementVNode("textarea",t.mergeProps({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",[t.unref(o),t.unref(i),t.unref(l)]],tabindex:e.isDisabled?"-1":void 0,value:(v=e.modelValue)!=null?v:""},s.$attrs,{ref_key:"input",ref:c,cols:"56",rows:"8",onInput:d}),`
|
|
9
|
-
`,16,
|
|
8
|
+
`));return t.cloneVNode(d,Object.assign({},u,f))}return Array.isArray(c)&&c.length===1?c[0]:c}return t.h(i,Object.assign({},u,f),c)}function Ke(e){let n=Object.assign({},e);for(let a in n)n[a]===void 0&&delete n[a];return n}function xe(e,n=[]){let a=Object.assign({},e);for(let r of n)r in a&&delete a[r];return a}function Mn(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let jn=0;function zn(){return++jn}function j(){return zn()}var O=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(O||{});function _n(e){throw new Error("Unexpected object: "+e)}var I=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(I||{});function Qe(e,n){let a=n.resolveItems();if(a.length<=0)return null;let r=n.resolveActiveIndex(),o=r!=null?r:-1,l=(()=>{switch(e.focus){case 0:return a.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=a.slice().reverse().findIndex((u,c,f)=>o!==-1&&f.length-c-1>=o?!1:!n.resolveDisabled(u));return i===-1?i:a.length-1-i}case 2:return a.findIndex((i,u)=>u<=o?!1:!n.resolveDisabled(i));case 3:{let i=a.slice().reverse().findIndex(u=>!n.resolveDisabled(u));return i===-1?i:a.length-1-i}case 4:return a.findIndex(i=>n.resolveId(i)===e.id);case 5:return null;default:_n(e)}})();return l===-1?r:l}function C(e){return e==null||e.value==null?null:"$el"in e.value?e.value.$el:e.value}let Ye=Symbol("Context");var U=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(U||{});function Xe(){return t.inject(Ye,null)}function Ze(e){t.provide(Ye,e)}function Je(e,n){if(e)return e;let a=n!=null?n:"button";if(typeof a=="string"&&a.toLowerCase()==="button")return"button"}function ke(e,n){let a=t.ref(Je(e.value.type,e.value.as));return t.onMounted(()=>{a.value=Je(e.value.type,e.value.as)}),t.watchEffect(()=>{var r;a.value||!C(n)||C(n)instanceof HTMLButtonElement&&!((r=C(n))!=null&&r.hasAttribute("type"))&&(a.value="button")}),a}function et(e){if(typeof window=="undefined")return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=C(e);if(n)return n.ownerDocument}return document}function An({container:e,accept:n,walk:a,enabled:r}){t.watchEffect(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let l=et(e);if(!l)return;let i=Object.assign(c=>n(c),{acceptNode:n}),u=l.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;u.nextNode();)a(u.currentNode)})}let tt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fn||{}),Hn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Hn||{}),Un=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Un||{}),Se=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Se||{});function nt(e,n=0){var a;return e===((a=et(e))==null?void 0:a.body)?!1:L(n,{[0](){return e.matches(tt)},[1](){let r=e;for(;r!==null;){if(r.matches(tt))return!0;r=r.parentElement}return!1}})}function ot(e,n=a=>a){return e.slice().sort((a,r)=>{let o=n(a),l=n(r);if(o===null||l===null)return 0;let i=o.compareDocumentPosition(l);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function at(e,n,a){typeof window!="undefined"&&t.watchEffect(r=>{window.addEventListener(e,n,a),r(()=>window.removeEventListener(e,n,a))})}function Wn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}var Gn=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(Gn||{});function rt(e,n,a=1){let r=!1;function o(l){if(r)return;r=!0,Wn(()=>{r=!1});let i=l.target;if(!i.ownerDocument.documentElement.contains(i))return;let u=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);if((a&2)===2){let c=20,f=i.ownerDocument.documentElement;if(l.clientX>f.clientWidth-c||l.clientX<c||l.clientY>f.clientHeight-c||l.clientY<c)return}for(let c of u){if(c===null)continue;let f=c instanceof HTMLElement?c:C(c);if(f!=null&&f.contains(i))return}n(l,i)}at("pointerdown",o),at("mousedown",o)}var Oe=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oe||{});let lt=t.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:a}){return()=>{let i=e,{features:r}=i,o=G(i,["features"]),l={"aria-hidden":(r&2)===2?!0:void 0,style:k({position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return D({props:k(k({},o),l),slot:{},attrs:a,slots:n,name:"Hidden"})}}});function it(e={},n=null,a=[]){for(let[r,o]of Object.entries(e))ct(a,st(n,r),o);return a}function st(e,n){return e?e+"["+n+"]":n}function ct(e,n,a){if(Array.isArray(a))for(let[r,o]of a.entries())ct(e,st(n,r.toString()),o);else a instanceof Date?e.push([n,a.toISOString()]):typeof a=="boolean"?e.push([n,a?"1":"0"]):typeof a=="string"?e.push([n,a]):typeof a=="number"?e.push([n,`${a}`]):a==null?e.push([n,""]):it(a,n,e)}function qn(e){var n;let a=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(a){for(let r of a.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let ut=Symbol("DescriptionContext");function Kn(){let e=t.inject(ut,null);if(e===null)throw new Error("Missing parent");return e}function Qn({slot:e=t.ref({}),name:n="Description",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(ut,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Yn=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},setup(e,{attrs:n,slots:a}){let r=Kn(),o=`headlessui-description-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Description",slot:i=t.ref({}),props:u={}}=r,c=e,f=H(k({},Object.entries(u).reduce((s,[d,v])=>Object.assign(s,{[d]:t.unref(v)}),{})),{id:o});return D({props:k(k({},c),f),slot:i.value,attrs:n,slots:a,name:l})}}});var Xn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Xn||{}),Zn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Zn||{}),Jn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Jn||{});function eo(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let dt=Symbol("ListboxContext");function X(e){let n=t.inject(dt,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,X),a}return n}let to=t.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:n,attrs:a,emit:r}){let o=t.ref(1),l=t.ref(null),i=t.ref(null),u=t.ref(null),c=t.ref([]),f=t.ref(""),s=t.ref(null),d=t.ref(1);function v(m=h=>h){let h=s.value!==null?c.value[s.value]:null,x=ot(m(c.value.slice()),E=>C(E.dataRef.domRef)),S=h?x.indexOf(h):null;return S===-1&&(S=null),{options:x,activeOptionIndex:S}}let p=t.computed(()=>e.modelValue),y=t.computed(()=>e.multiple?1:0),g={listboxState:o,value:p,mode:y,compare(m,h){return m===h},orientation:t.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:l,buttonRef:i,optionsRef:u,disabled:t.computed(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:s,activationTrigger:d,closeListbox(){e.disabled||o.value!==1&&(o.value=1,s.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(m,h,x){if(e.disabled||o.value===1)return;let S=v(),E=Qe(m===I.Specific?{focus:I.Specific,id:h}:{focus:m},{resolveItems:()=>S.options,resolveActiveIndex:()=>S.activeOptionIndex,resolveId:R=>R.id,resolveDisabled:R=>R.dataRef.disabled});f.value="",s.value=E,d.value=x!=null?x:1,c.value=S.options},search(m){if(e.disabled||o.value===1)return;let h=f.value!==""?0:1;f.value+=m.toLowerCase();let x=(s.value!==null?c.value.slice(s.value+h).concat(c.value.slice(0,s.value+h)):c.value).find(E=>E.dataRef.textValue.startsWith(f.value)&&!E.dataRef.disabled),S=x?c.value.indexOf(x):-1;S===-1||S===s.value||(s.value=S,d.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(m,h){let x=v(S=>[...S,{id:m,dataRef:h}]);c.value=x.options,s.value=x.activeOptionIndex},unregisterOption(m){let h=v(x=>{let S=x.findIndex(E=>E.id===m);return S!==-1&&x.splice(S,1),x});c.value=h.options,s.value=h.activeOptionIndex,d.value=1},select(m){e.disabled||r("update:modelValue",L(y.value,{[0]:()=>m,[1]:()=>{let h=t.toRaw(g.value.value).slice(),x=t.toRaw(m),S=h.findIndex(E=>g.compare(x,t.toRaw(E)));return S===-1?h.push(x):h.splice(S,1),h}}))}};return rt([i,u],(m,h)=>{var x;o.value===0&&(g.closeListbox(),nt(h,Se.Loose)||(m.preventDefault(),(x=C(i))==null||x.focus()))}),t.provide(dt,g),Ze(t.computed(()=>L(o.value,{[0]:U.Open,[1]:U.Closed}))),()=>{let R=e,{name:m,modelValue:h,disabled:x}=R,S=G(R,["name","modelValue","disabled"]),E={open:o.value===0,disabled:x};return t.h(t.Fragment,[...m!=null&&h!=null?it({[m]:h}).map(([V,F])=>t.h(lt,Ke({features:Oe.Hidden,key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:V,value:F}))):[],D({props:k(k({},a),xe(S,["onUpdate:modelValue","horizontal","multiple","by"])),slot:E,slots:n,attrs:a,name:"Listbox"})])}}});t.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"}},setup(e,{attrs:n,slots:a}){let r=X("ListboxLabel"),o=`headlessui-listbox-label-${j()}`;function l(){var i;(i=C(r.buttonRef))==null||i.focus({preventScroll:!0})}return()=>{let i={open:r.listboxState.value===0,disabled:r.disabled.value},u={id:o,ref:r.labelRef,onClick:l};return D({props:k(k({},e),u),slot:i,attrs:n,slots:a,name:"ListboxLabel"})}}});let no=t.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxButton"),l=`headlessui-listbox-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case O.Space:case O.Enter:case O.ArrowDown:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var d;(d=C(o.optionsRef))==null||d.focus({preventScroll:!0}),o.value.value||o.goToOption(I.First)});break;case O.ArrowUp:s.preventDefault(),o.openListbox(),t.nextTick(()=>{var d;(d=C(o.optionsRef))==null||d.focus({preventScroll:!0}),o.value.value||o.goToOption(I.Last)});break}}function u(s){switch(s.key){case O.Space:s.preventDefault();break}}function c(s){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),t.nextTick(()=>{var d;return(d=C(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})})):(s.preventDefault(),o.openListbox(),eo(()=>{var d;return(d=C(o.optionsRef))==null?void 0:d.focus({preventScroll:!0})})))}let f=ke(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s,d;let v={open:o.listboxState.value===0,disabled:o.disabled.value},p={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.optionsRef))==null?void 0:s.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(d=C(o.labelRef))==null?void 0:d.id,l].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:i,onKeyup:u,onClick:c};return D({props:k(k({},e),p),slot:v,attrs:n,slots:a,name:"ListboxButton"})}}}),oo=t.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=X("ListboxOptions"),l=`headlessui-listbox-options-${j()}`,i=t.ref(null);r({el:o.optionsRef,$el:o.optionsRef});function u(s){switch(i.value&&clearTimeout(i.value),s.key){case O.Space:if(o.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),o.search(s.key);case O.Enter:if(s.preventDefault(),s.stopPropagation(),o.activeOptionIndex.value!==null){let d=o.options.value[o.activeOptionIndex.value];o.select(d.dataRef.value)}o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var d;return(d=C(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})}));break;case L(o.orientation.value,{vertical:O.ArrowDown,horizontal:O.ArrowRight}):return s.preventDefault(),s.stopPropagation(),o.goToOption(I.Next);case L(o.orientation.value,{vertical:O.ArrowUp,horizontal:O.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),o.goToOption(I.Previous);case O.Home:case O.PageUp:return s.preventDefault(),s.stopPropagation(),o.goToOption(I.First);case O.End:case O.PageDown:return s.preventDefault(),s.stopPropagation(),o.goToOption(I.Last);case O.Escape:s.preventDefault(),s.stopPropagation(),o.closeListbox(),t.nextTick(()=>{var d;return(d=C(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})});break;case O.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(o.search(s.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}let c=Xe(),f=t.computed(()=>c!==null?c.value===U.Open:o.listboxState.value===0);return()=>{var s,d,v,p;let y={open:o.listboxState.value===0},g={"aria-activedescendant":o.activeOptionIndex.value===null||(s=o.options.value[o.activeOptionIndex.value])==null?void 0:s.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(p=(d=C(o.labelRef))==null?void 0:d.id)!=null?p:(v=C(o.buttonRef))==null?void 0:v.id,"aria-orientation":o.orientation.value,id:l,onKeydown:u,role:"listbox",tabIndex:0,ref:o.optionsRef};return D({props:k(k({},e),g),slot:y,attrs:n,slots:a,features:Y.RenderStrategy|Y.Static,visible:f.value,name:"ListboxOptions"})}}}),ao=t.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=X("ListboxOption"),l=`headlessui-listbox-option-${j()}`,i=t.ref(null);r({el:i,$el:i});let u=t.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===l:!1),c=t.computed(()=>L(o.mode.value,{[0]:()=>o.compare(t.toRaw(o.value.value),t.toRaw(e.value)),[1]:()=>t.toRaw(o.value.value).some(g=>o.compare(t.toRaw(g),t.toRaw(e.value)))})),f=t.computed(()=>L(o.mode.value,{[1]:()=>{var g;let m=t.toRaw(o.value.value);return((g=o.options.value.find(h=>m.some(x=>o.compare(t.toRaw(x),t.toRaw(h.dataRef.value)))))==null?void 0:g.id)===l},[0]:()=>c.value})),s=t.computed(()=>({disabled:e.disabled,value:e.value,textValue:"",domRef:i}));t.onMounted(()=>{var g,m;let h=(m=(g=C(i))==null?void 0:g.textContent)==null?void 0:m.toLowerCase().trim();h!==void 0&&(s.value.textValue=h)}),t.onMounted(()=>o.registerOption(l,s)),t.onUnmounted(()=>o.unregisterOption(l)),t.onMounted(()=>{t.watch([o.listboxState,c],()=>{o.listboxState.value===0&&(!c.value||L(o.mode.value,{[1]:()=>{f.value&&o.goToOption(I.Specific,l)},[0]:()=>{o.goToOption(I.Specific,l)}}))},{immediate:!0})}),t.watchEffect(()=>{o.listboxState.value===0&&(!u.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var g,m;return(m=(g=C(i))==null?void 0:g.scrollIntoView)==null?void 0:m.call(g,{block:"nearest"})}))});function d(g){if(e.disabled)return g.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),t.nextTick(()=>{var m;return(m=C(o.buttonRef))==null?void 0:m.focus({preventScroll:!0})}))}function v(){if(e.disabled)return o.goToOption(I.Nothing);o.goToOption(I.Specific,l)}function p(){e.disabled||u.value||o.goToOption(I.Specific,l,0)}function y(){e.disabled||!u.value||o.goToOption(I.Nothing)}return()=>{let{disabled:g}=e,m={active:u.value,selected:c.value,disabled:g},h={id:l,ref:i,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":c.value===!0?c.value:void 0,disabled:void 0,onClick:d,onFocus:v,onPointermove:p,onMousemove:p,onPointerleave:y,onMouseleave:y};return D({props:k(k({},xe(e,["value","disabled"])),h),slot:m,attrs:a,slots:n,name:"ListboxOption"})}}});var ro=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ro||{}),lo=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(lo||{});function io(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ft=Symbol("MenuContext");function ne(e){let n=t.inject(ft,null);if(n===null){let a=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,ne),a}return n}let so=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(1),o=t.ref(null),l=t.ref(null),i=t.ref([]),u=t.ref(""),c=t.ref(null),f=t.ref(1);function s(v=p=>p){let p=c.value!==null?i.value[c.value]:null,y=ot(v(i.value.slice()),m=>C(m.dataRef.domRef)),g=p?y.indexOf(p):null;return g===-1&&(g=null),{items:y,activeItemIndex:g}}let d={menuState:r,buttonRef:o,itemsRef:l,items:i,searchQuery:u,activeItemIndex:c,activationTrigger:f,closeMenu:()=>{r.value=1,c.value=null},openMenu:()=>r.value=0,goToItem(v,p,y){let g=s(),m=Qe(v===I.Specific?{focus:I.Specific,id:p}:{focus:v},{resolveItems:()=>g.items,resolveActiveIndex:()=>g.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.disabled});u.value="",c.value=m,f.value=y!=null?y:1,i.value=g.items},search(v){let p=u.value!==""?0:1;u.value+=v.toLowerCase();let y=(c.value!==null?i.value.slice(c.value+p).concat(i.value.slice(0,c.value+p)):i.value).find(m=>m.dataRef.textValue.startsWith(u.value)&&!m.dataRef.disabled),g=y?i.value.indexOf(y):-1;g===-1||g===c.value||(c.value=g,f.value=1)},clearSearch(){u.value=""},registerItem(v,p){let y=s(g=>[...g,{id:v,dataRef:p}]);i.value=y.items,c.value=y.activeItemIndex,f.value=1},unregisterItem(v){let p=s(y=>{let g=y.findIndex(m=>m.id===v);return g!==-1&&y.splice(g,1),y});i.value=p.items,c.value=p.activeItemIndex,f.value=1}};return rt([o,l],(v,p)=>{var y;r.value===0&&(d.closeMenu(),nt(p,Se.Loose)||(v.preventDefault(),(y=C(o))==null||y.focus()))}),t.provide(ft,d),Ze(t.computed(()=>L(r.value,{[0]:U.Open,[1]:U.Closed}))),()=>{let v={open:r.value===0};return D({props:e,slot:v,slots:n,attrs:a,name:"Menu"})}}}),co=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},setup(e,{attrs:n,slots:a,expose:r}){let o=ne("MenuButton"),l=`headlessui-menu-button-${j()}`;r({el:o.buttonRef,$el:o.buttonRef});function i(s){switch(s.key){case O.Space:case O.Enter:case O.ArrowDown:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var d;(d=C(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(I.First)});break;case O.ArrowUp:s.preventDefault(),s.stopPropagation(),o.openMenu(),t.nextTick(()=>{var d;(d=C(o.itemsRef))==null||d.focus({preventScroll:!0}),o.goToItem(I.Last)});break}}function u(s){switch(s.key){case O.Space:s.preventDefault();break}}function c(s){e.disabled||(o.menuState.value===0?(o.closeMenu(),t.nextTick(()=>{var d;return(d=C(o.buttonRef))==null?void 0:d.focus({preventScroll:!0})})):(s.preventDefault(),s.stopPropagation(),o.openMenu(),io(()=>{var d;return(d=C(o.itemsRef))==null?void 0:d.focus({preventScroll:!0})})))}let f=ke(t.computed(()=>({as:e.as,type:n.type})),o.buttonRef);return()=>{var s;let d={open:o.menuState.value===0},v={ref:o.buttonRef,id:l,type:f.value,"aria-haspopup":!0,"aria-controls":(s=C(o.itemsRef))==null?void 0:s.id,"aria-expanded":e.disabled?void 0:o.menuState.value===0,onKeydown:i,onKeyup:u,onClick:c};return D({props:k(k({},e),v),slot:d,attrs:n,slots:a,name:"MenuButton"})}}}),uo=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:n,slots:a,expose:r}){let o=ne("MenuItems"),l=`headlessui-menu-items-${j()}`,i=t.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),An({container:t.computed(()=>C(o.itemsRef)),enabled:t.computed(()=>o.menuState.value===0),accept(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function u(d){var v;switch(i.value&&clearTimeout(i.value),d.key){case O.Space:if(o.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),o.search(d.key);case O.Enter:if(d.preventDefault(),d.stopPropagation(),o.activeItemIndex.value!==null){let p=o.items.value[o.activeItemIndex.value];(v=C(p.dataRef.domRef))==null||v.click()}o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case O.ArrowDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(I.Next);case O.ArrowUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(I.Previous);case O.Home:case O.PageUp:return d.preventDefault(),d.stopPropagation(),o.goToItem(I.First);case O.End:case O.PageDown:return d.preventDefault(),d.stopPropagation(),o.goToItem(I.Last);case O.Escape:d.preventDefault(),d.stopPropagation(),o.closeMenu(),t.nextTick(()=>{var p;return(p=C(o.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case O.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(o.search(d.key),i.value=setTimeout(()=>o.clearSearch(),350));break}}function c(d){switch(d.key){case O.Space:d.preventDefault();break}}let f=Xe(),s=t.computed(()=>f!==null?f.value===U.Open:o.menuState.value===0);return()=>{var d,v;let p={open:o.menuState.value===0},y={"aria-activedescendant":o.activeItemIndex.value===null||(d=o.items.value[o.activeItemIndex.value])==null?void 0:d.id,"aria-labelledby":(v=C(o.buttonRef))==null?void 0:v.id,id:l,onKeydown:u,onKeyup:c,role:"menu",tabIndex:0,ref:o.itemsRef};return D({props:k(k({},e),y),slot:p,attrs:n,slots:a,features:Y.RenderStrategy|Y.Static,visible:s.value,name:"MenuItems"})}}}),fo=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup(e,{slots:n,attrs:a,expose:r}){let o=ne("MenuItem"),l=`headlessui-menu-item-${j()}`,i=t.ref(null);r({el:i,$el:i});let u=t.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===l:!1),c=t.computed(()=>({disabled:e.disabled,textValue:"",domRef:i}));t.onMounted(()=>{var p,y;let g=(y=(p=C(i))==null?void 0:p.textContent)==null?void 0:y.toLowerCase().trim();g!==void 0&&(c.value.textValue=g)}),t.onMounted(()=>o.registerItem(l,c)),t.onUnmounted(()=>o.unregisterItem(l)),t.watchEffect(()=>{o.menuState.value===0&&(!u.value||o.activationTrigger.value!==0&&t.nextTick(()=>{var p,y;return(y=(p=C(i))==null?void 0:p.scrollIntoView)==null?void 0:y.call(p,{block:"nearest"})}))});function f(p){if(e.disabled)return p.preventDefault();o.closeMenu(),t.nextTick(()=>{var y;return(y=C(o.buttonRef))==null?void 0:y.focus({preventScroll:!0})})}function s(){if(e.disabled)return o.goToItem(I.Nothing);o.goToItem(I.Specific,l)}function d(){e.disabled||u.value||o.goToItem(I.Specific,l,0)}function v(){e.disabled||!u.value||o.goToItem(I.Nothing)}return()=>{let{disabled:p}=e,y={active:u.value,disabled:p};return D({props:H(k({},e),{id:l,ref:i,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:s,onPointermove:d,onMousemove:d,onPointerleave:v,onMouseleave:v}),slot:y,attrs:a,slots:n,name:"MenuItem"})}}}),pt=Symbol("LabelContext");function mt(){let e=t.inject(pt,null);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,mt),n}return e}function po({slot:e={},name:n="Label",props:a={}}={}){let r=t.ref([]);function o(l){return r.value.push(l),()=>{let i=r.value.indexOf(l);i!==-1&&r.value.splice(i,1)}}return t.provide(pt,{register:o,slot:e,name:n,props:a}),t.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let mo=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},setup(e,{slots:n,attrs:a}){let r=mt(),o=`headlessui-label-${j()}`;return t.onMounted(()=>t.onUnmounted(r.register(o))),()=>{let{name:l="Label",slot:i={},props:u={}}=r,v=e,{passive:c}=v,f=G(v,["passive"]),s=H(k({},Object.entries(u).reduce((p,[y,g])=>Object.assign(p,{[y]:t.unref(g)}),{})),{id:o}),d=k(k({},f),s);return c&&delete d.onClick,D({props:d,slot:i,attrs:a,slots:n,name:l})}}}),bt=Symbol("GroupContext");t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:n,attrs:a}){let r=t.ref(null),o=po({name:"SwitchLabel",props:{onClick(){!r.value||(r.value.click(),r.value.focus({preventScroll:!0}))}}}),l=Qn({name:"SwitchDescription"});return t.provide(bt,{switchRef:r,labelledby:o,describedby:l}),()=>D({props:e,slot:{},slots:n,attrs:a,name:"SwitchGroup"})}});let bo=t.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1},name:{type:String,optional:!0},value:{type:String,optional:!0}},inheritAttrs:!1,setup(e,{emit:n,attrs:a,slots:r,expose:o}){let l=t.inject(bt,null),i=`headlessui-switch-${j()}`;function u(){n("update:modelValue",!e.modelValue)}let c=t.ref(null),f=l===null?c:l.switchRef,s=ke(t.computed(()=>({as:e.as,type:a.type})),f);o({el:f,$el:f});function d(y){y.preventDefault(),u()}function v(y){y.key===O.Space?(y.preventDefault(),u()):y.key===O.Enter&&qn(y.currentTarget)}function p(y){y.preventDefault()}return()=>{let E=e,{name:y,value:g,modelValue:m}=E,h=G(E,["name","value","modelValue"]),x={checked:m},S={id:i,ref:f,role:"switch",type:s.value,tabIndex:0,"aria-checked":m,"aria-labelledby":l==null?void 0:l.labelledby.value,"aria-describedby":l==null?void 0:l.describedby.value,onClick:d,onKeyup:v,onKeypress:p};return t.h(t.Fragment,[y!=null&&m!=null?t.h(lt,Ke({features:Oe.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:m,name:y,value:g})):null,D({props:k(k(k({},a),h),S),slot:x,attrs:a,slots:r,name:"Switch"})])}}});function z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function gt(e){var n=z(e).Element;return e instanceof n||e instanceof Element}function $(e){var n=z(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function ht(e){if(typeof ShadowRoot=="undefined")return!1;var n=z(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}var q=Math.round;function oe(e,n){n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,o=1;if($(e)&&n){var l=e.offsetHeight,i=e.offsetWidth;i>0&&(r=q(a.width)/i||1),l>0&&(o=q(a.height)/l||1)}return{width:a.width/r,height:a.height/o,top:a.top/o,right:a.right/r,bottom:a.bottom/o,left:a.left/r,x:a.left/r,y:a.top/o}}function yt(e){var n=z(e),a=n.pageXOffset,r=n.pageYOffset;return{scrollLeft:a,scrollTop:r}}function go(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ho(e){return e===z(e)||!$(e)?yt(e):go(e)}function _(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){return((gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function yo(e){return oe(ae(e)).left+yt(e).scrollLeft}function W(e){return z(e).getComputedStyle(e)}function Ce(e){var n=W(e),a=n.overflow,r=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+r)}function vo(e){var n=e.getBoundingClientRect(),a=q(n.width)/e.offsetWidth||1,r=q(n.height)/e.offsetHeight||1;return a!==1||r!==1}function wo(e,n,a){a===void 0&&(a=!1);var r=$(n),o=$(n)&&vo(n),l=ae(n),i=oe(e,o),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!a)&&((_(n)!=="body"||Ce(l))&&(u=ho(n)),$(n)?(c=oe(n,!0),c.x+=n.clientLeft,c.y+=n.clientTop):l&&(c.x=yo(l))),{x:i.left+u.scrollLeft-c.x,y:i.top+u.scrollTop-c.y,width:i.width,height:i.height}}function xo(e){var n=oe(e),a=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-a)<=1&&(a=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:r}}function Ee(e){return _(e)==="html"?e:e.assignedSlot||e.parentNode||(ht(e)?e.host:null)||ae(e)}function vt(e){return["html","body","#document"].indexOf(_(e))>=0?e.ownerDocument.body:$(e)&&Ce(e)?e:vt(Ee(e))}function re(e,n){var a;n===void 0&&(n=[]);var r=vt(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),l=z(r),i=o?[l].concat(l.visualViewport||[],Ce(r)?r:[]):r,u=n.concat(i);return o?u:u.concat(re(Ee(i)))}function ko(e){return["table","td","th"].indexOf(_(e))>=0}function wt(e){return!$(e)||W(e).position==="fixed"?null:e.offsetParent}function So(e){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,a=navigator.userAgent.indexOf("Trident")!==-1;if(a&&$(e)){var r=W(e);if(r.position==="fixed")return null}var o=Ee(e);for(ht(o)&&(o=o.host);$(o)&&["html","body"].indexOf(_(o))<0;){var l=W(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||n&&l.willChange==="filter"||n&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function xt(e){for(var n=z(e),a=wt(e);a&&ko(a)&&W(a).position==="static";)a=wt(a);return a&&(_(a)==="html"||_(a)==="body"&&W(a).position==="static")?n:a||So(e)||n}var le="top",Ie="bottom",Re="right",ie="left",Oo="start",Te="end",Co="beforeRead",Eo="read",Io="afterRead",Ro="beforeMain",To="main",Vo="afterMain",Bo="beforeWrite",Do="write",No="afterWrite",Po=[Co,Eo,Io,Ro,To,Vo,Bo,Do,No];function Lo(e){var n=new Map,a=new Set,r=[];e.forEach(function(l){n.set(l.name,l)});function o(l){a.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(u){if(!a.has(u)){var c=n.get(u);c&&o(c)}}),r.push(l)}return e.forEach(function(l){a.has(l.name)||o(l)}),r}function $o(e){var n=Lo(e);return Po.reduce(function(a,r){return a.concat(n.filter(function(o){return o.phase===r}))},[])}function Mo(e){var n;return function(){return n||(n=new Promise(function(a){Promise.resolve().then(function(){n=void 0,a(e())})})),n}}function kt(e){return e.split("-")[0]}function jo(e){var n=e.reduce(function(a,r){var o=a[r.name];return a[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,a},{});return Object.keys(n).map(function(a){return n[a]})}function St(e){return e.split("-")[1]}function zo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _o(e){var n=e.reference,a=e.element,r=e.placement,o=r?kt(r):null,l=r?St(r):null,i=n.x+n.width/2-a.width/2,u=n.y+n.height/2-a.height/2,c;switch(o){case le:c={x:i,y:n.y-a.height};break;case Ie:c={x:i,y:n.y+n.height};break;case Re:c={x:n.x+n.width,y:u};break;case ie:c={x:n.x-a.width,y:u};break;default:c={x:n.x,y:n.y}}var f=o?zo(o):null;if(f!=null){var s=f==="y"?"height":"width";switch(l){case Oo:c[f]=c[f]-(n[s]/2-a[s]/2);break;case Te:c[f]=c[f]+(n[s]/2-a[s]/2);break}}return c}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return!n.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ao(e){e===void 0&&(e={});var n=e,a=n.defaultModifiers,r=a===void 0?[]:a,o=n.defaultOptions,l=o===void 0?Ot:o;return function(u,c,f){f===void 0&&(f=l);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,l),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},d=[],v=!1,p={state:s,setOptions:function(h){var x=typeof h=="function"?h(s.options):h;g(),s.options=Object.assign({},l,s.options,x),s.scrollParents={reference:gt(u)?re(u):u.contextElement?re(u.contextElement):[],popper:re(c)};var S=$o(jo([].concat(r,s.options.modifiers)));return s.orderedModifiers=S.filter(function(E){return E.enabled}),y(),p.update()},forceUpdate:function(){if(!v){var h=s.elements,x=h.reference,S=h.popper;if(!!Ct(x,S)){s.rects={reference:wo(x,xt(S),s.options.strategy==="fixed"),popper:xo(S)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(ue){return s.modifiersData[ue.name]=Object.assign({},ue.data)});for(var E=0;E<s.orderedModifiers.length;E++){if(s.reset===!0){s.reset=!1,E=-1;continue}var R=s.orderedModifiers[E],V=R.fn,F=R.options,ce=F===void 0?{}:F,Ve=R.name;typeof V=="function"&&(s=V({state:s,options:ce,name:Ve,instance:p})||s)}}}},update:Mo(function(){return new Promise(function(m){p.forceUpdate(),m(s)})}),destroy:function(){g(),v=!0}};if(!Ct(u,c))return p;p.setOptions(f).then(function(m){!v&&f.onFirstUpdate&&f.onFirstUpdate(m)});function y(){s.orderedModifiers.forEach(function(m){var h=m.name,x=m.options,S=x===void 0?{}:x,E=m.effect;if(typeof E=="function"){var R=E({state:s,name:h,instance:p,options:S}),V=function(){};d.push(R||V)}})}function g(){d.forEach(function(m){return m()}),d=[]}return p}}var se={passive:!0};function Fo(e){var n=e.state,a=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,i=r.resize,u=i===void 0?!0:i,c=z(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return l&&f.forEach(function(s){s.addEventListener("scroll",a.update,se)}),u&&c.addEventListener("resize",a.update,se),function(){l&&f.forEach(function(s){s.removeEventListener("scroll",a.update,se)}),u&&c.removeEventListener("resize",a.update,se)}}var Ho={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fo,data:{}};function Uo(e){var n=e.state,a=e.name;n.modifiersData[a]=_o({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var Wo={name:"popperOffsets",enabled:!0,phase:"read",fn:Uo,data:{}},Go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qo(e){var n=e.x,a=e.y,r=window,o=r.devicePixelRatio||1;return{x:q(n*o)/o||0,y:q(a*o)/o||0}}function Et(e){var n,a=e.popper,r=e.popperRect,o=e.placement,l=e.variation,i=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,s=e.roundOffsets,d=e.isFixed,v=i.x,p=v===void 0?0:v,y=i.y,g=y===void 0?0:y,m=typeof s=="function"?s({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var h=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),S=ie,E=le,R=window;if(f){var V=xt(a),F="clientHeight",ce="clientWidth";if(V===z(a)&&(V=ae(a),W(V).position!=="static"&&u==="absolute"&&(F="scrollHeight",ce="scrollWidth")),V=V,o===le||(o===ie||o===Re)&&l===Te){E=Ie;var Ve=d&&V===R&&R.visualViewport?R.visualViewport.height:V[F];g-=Ve-r.height,g*=c?1:-1}if(o===ie||(o===le||o===Ie)&&l===Te){S=Re;var ue=d&&V===R&&R.visualViewport?R.visualViewport.width:V[ce];p-=ue-r.width,p*=c?1:-1}}var It=Object.assign({position:u},f&&Go),Rt=s===!0?qo({x:p,y:g}):{x:p,y:g};if(p=Rt.x,g=Rt.y,c){var Z;return Object.assign({},It,(Z={},Z[E]=x?"0":"",Z[S]=h?"0":"",Z.transform=(R.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Z))}return Object.assign({},It,(n={},n[E]=x?g+"px":"",n[S]=h?p+"px":"",n.transform="",n))}function Ko(e){var n=e.state,a=e.options,r=a.gpuAcceleration,o=r===void 0?!0:r,l=a.adaptive,i=l===void 0?!0:l,u=a.roundOffsets,c=u===void 0?!0:u,f={placement:kt(n.placement),variation:St(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Et(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:c})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Et(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var Qo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ko,data:{}};function Yo(e){var n=e.state;Object.keys(n.elements).forEach(function(a){var r=n.styles[a]||{},o=n.attributes[a]||{},l=n.elements[a];!$(l)||!_(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(i){var u=o[i];u===!1?l.removeAttribute(i):l.setAttribute(i,u===!0?"":u)}))})}function Xo(e){var n=e.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],l=n.attributes[r]||{},i=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:a[r]),u=i.reduce(function(c,f){return c[f]="",c},{});!$(o)||!_(o)||(Object.assign(o.style,u),Object.keys(l).forEach(function(c){o.removeAttribute(c)}))})}}var Zo={name:"applyStyles",enabled:!0,phase:"write",fn:Yo,effect:Xo,requires:["computeStyles"]},Jo=[Ho,Wo,Qo,Zo],ea=Ao({defaultModifiers:Jo});function ta(e){const n=t.ref(null),a=t.ref(null);return t.onMounted(()=>{t.watchEffect(r=>{if(!a.value||!n.value)return;const o=a.value.el||a.value,l=n.value.el||n.value;if(!(l instanceof HTMLElement)||!(o instanceof HTMLElement))return;const{destroy:i}=ea(l,o,e);r(i)})}),[n,a]}const na=t.defineComponent({__name:"MenuContainer",props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const a=e.position==="left"?"bottom-end":"bottom-start",[r,o]=ta({placement:a});return(l,i)=>(t.openBlock(),t.createBlock(t.unref(so),{as:"div",class:"relative inline-block text-left"},{default:t.withCtx(()=>[t.createVNode(t.unref(co),{class:"focus:outline-none",ref_key:"button",ref:r},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{},()=>[t.createVNode(t.unref(P),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(t.openBlock(),t.createBlock(t.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[t.createElementVNode("div",{ref_key:"container",ref:o,class:"w-56"},[t.createVNode(t.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(uo),{class:t.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),oa={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},aa=t.defineComponent({__name:"MenuLink",props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(fo),t.normalizeProps(t.guardReactiveProps({disabled:e.disabled})),{default:t.withCtx(({active:r})=>[t.createElementVNode("span",t.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[r?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},n.$attrs),[t.createElementVNode("span",null,t.toDisplayString(e.label),1),e.meta?(t.openBlock(),t.createElementBlock("span",oa,t.toDisplayString(e.meta),1)):t.createCommentVNode("",!0)],16)]),_:1},16))}}),ra={class:"relative"},la={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},ia={key:1,class:"block truncate"},sa={key:2,class:"text-grey-500 truncate"},ca={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},ua={class:"absolute right-2 inset-y-0 flex items-center"},da={key:0,class:"bg-grey-500 text-grey-100 rounded text-xs px-2 py-1"},fa=t.defineComponent({__name:"Select",props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null,disabledBadge:null},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,r=a.modelValue?t.ref(a.modelValue):t.ref(void 0),{inputClasses:o,disabledClasses:l,textSizeClasses:i}=ve(a);return t.watch(()=>a.modelValue,u=>{var c;!u||u.id!==((c=r.value)==null?void 0:c.id)&&(r.value=u)}),t.watch(r,u=>{u&&n("update:modelValue",u)}),(u,c)=>(t.openBlock(),t.createBlock(t.unref(to),{as:"div",modelValue:t.unref(r),"onUpdate:modelValue":c[0]||(c[0]=f=>t.isRef(r)?r.value=f:null),disabled:e.isDisabled},{default:t.withCtx(()=>[t.createElementVNode("div",ra,[t.createVNode(t.unref(no),{class:t.normalizeClass(["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",[t.unref(o),t.unref(i),t.unref(l)]])},{default:t.withCtx(()=>{var f,s;return[e.icon?(t.openBlock(),t.createElementBlock("span",la,[t.createVNode(P,{name:(s=(f=t.unref(r))==null?void 0:f.icon)!=null?s:e.icon},null,8,["name"])])):t.createCommentVNode("",!0),t.unref(r)?(t.openBlock(),t.createElementBlock("span",ia,t.toDisplayString(t.unref(r).label),1)):(t.openBlock(),t.createElementBlock("span",sa,t.toDisplayString(e.placeholder),1)),t.createElementVNode("span",ca,[t.createVNode(P,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),t.createVNode(t.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(oo),{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"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,f=>(t.openBlock(),t.createBlock(t.unref(ao),{as:"template",key:f.id,value:f,disabled:f.disabled},{default:t.withCtx(({active:s,selected:d})=>[t.createElementVNode("li",{class:t.normalizeClass([s?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-12",{"opacity-50 bg-grey-100":f.disabled}])},[t.createElementVNode("div",ua,[f.disabled&&e.disabledBadge?(t.openBlock(),t.createElementBlock("span",da,t.toDisplayString(e.disabledBadge),1)):t.createCommentVNode("",!0)]),t.createElementVNode("span",{class:t.normalizeClass([d?"font-semibold":"font-normal","block truncate"])},[f.icon?(t.openBlock(),t.createBlock(P,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.label),1)],2),d?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([s?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[t.createVNode(P,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):t.createCommentVNode("",!0)],2)]),_:2},1032,["value","disabled"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),pa={class:"animate-pulse"},ma={class:"flex items-center justify-between space-x-4"},ba={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},ga={key:1,class:"w-full h-8 bg-current rounded-lg"},ha={key:0,class:"mt-6 space-y-2"},ya={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},va=t.defineComponent({__name:"Skeleton",props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const n=e,a=new Array(n.lines).fill(void 0).map(()=>{const r=[4,5,6,8,10,16,24,32];return{margin:`mr-${r[Math.floor(Math.random()*r.length)]}`}});return(r,o)=>(t.openBlock(),t.createElementBlock("div",pa,[t.createElementVNode("div",ma,[e.avatar?(t.openBlock(),t.createElementBlock("div",ba)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",ga)):t.createCommentVNode("",!0)]),e.lines>0?(t.openBlock(),t.createElementBlock("div",ha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["h-4 bg-current rounded-lg",l.margin]),key:i},null,2))),128))])):t.createCommentVNode("",!0),e.footer?(t.openBlock(),t.createElementBlock("div",ya)):t.createCommentVNode("",!0)]))}}),wa=t.defineComponent({__name:"Spinner",setup(e){return(n,a)=>(t.openBlock(),t.createBlock(t.unref(P),{class:"animate-spin",name:"circle-notch"}))}}),xa={class:"sr-only"},ka=t.defineComponent({__name:"Switch",props:{id:{default:ze()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=r=>{n("update:modelValue",r),n("change",r)};return(r,o)=>(t.openBlock(),t.createBlock(t.unref(bo),{modelValue:e.modelValue,label:e.label,class:t.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":a},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},t.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),t.createElementVNode("span",xa,t.toDisplayString(e.label),1),t.createElementVNode("span",{class:t.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),Sa={class:"relative"},Oa=["tabindex","value"],Ca={inheritAttrs:!1},Ea=t.defineComponent(H(k({},Ca),{__name:"Textarea",props:{modelValue:null,size:{default:"medium"},isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:n,emit:a}){const r=e,{inputClasses:o,disabledClasses:l,textSizeClasses:i}=ve(r),u=function(s){a("update:modelValue",(s==null?void 0:s.target).value)},c=t.ref(null);return n({focus:()=>{r.isDisabled||c.value.focus()}}),(s,d)=>{var v;return t.openBlock(),t.createElementBlock("div",Sa,[t.createElementVNode("textarea",t.mergeProps({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",[t.unref(o),t.unref(i),t.unref(l)]],tabindex:e.isDisabled?"-1":void 0,value:(v=e.modelValue)!=null?v:""},s.$attrs,{ref_key:"input",ref:c,cols:"56",rows:"8",onInput:u}),`
|
|
9
|
+
`,16,Oa)])}}}));w.D9Button=Ft,w.D9Checkbox=en,w.D9Icon=P,w.D9Input=Bn,w.D9Label=Ln,w.D9Menu=na,w.D9MenuLink=aa,w.D9Select=fa,w.D9Skeleton=va,w.D9Spinner=wa,w.D9Switch=ka,w.D9Textarea=Ea,w.brands=pe,w.icons=je,Object.defineProperty(w,"__esModule",{value:!0}),w[Symbol.toStringTag]="Module"});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deck9/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "The UI components used in deck9 software applications.",
|
|
5
5
|
"author": "Philipp Reinking <philipp@deck9.co> (https://deck9.co)",
|
|
6
6
|
"scripts": {
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"@popperjs/core": "^2.11.5",
|
|
30
30
|
"@tailwindcss/forms": "^0.5.2",
|
|
31
31
|
"@tailwindcss/typography": "^0.5.2",
|
|
32
|
+
"@types/web-bluetooth": "^0.0.16",
|
|
33
|
+
"@vueuse/core": "^9.6.0",
|
|
32
34
|
"tailwindcss": "^3.1.3",
|
|
33
35
|
"uuid": "^8.3.2",
|
|
34
36
|
"vue": "^3.2.37"
|