@definable/ui 0.1.14 → 0.1.15
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/README.md +0 -7
- package/dist/components/alert-dialog.js +55 -2
- package/dist/components/alert.js +63 -2
- package/dist/components/avatar.js +41 -2
- package/dist/components/badge.js +26 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +49 -2
- package/dist/components/calendar.js +86 -2
- package/dist/components/card.js +61 -2
- package/dist/components/carousel.js +100 -2
- package/dist/components/checkbox.js +31 -2
- package/dist/components/collapse.js +49 -2
- package/dist/components/command-menu.js +89 -2
- package/dist/components/command.js +115 -2
- package/dist/components/confirmation-modal.js +44 -2
- package/dist/components/context-menu.js +185 -2
- package/dist/components/dialog.js +121 -2
- package/dist/components/dropdown-menu.js +48 -2
- package/dist/components/dropzone.js +44 -2
- package/dist/components/image-cropper-modal.js +250 -2
- package/dist/components/image-cropper.js +130 -2
- package/dist/components/input.js +21 -2
- package/dist/components/label.js +19 -2
- package/dist/components/loader.js +69 -2
- package/dist/components/loading-placeholder.js +24 -2
- package/dist/components/mention.js +153 -2
- package/dist/components/modal.js +135 -2
- package/dist/components/notification.js +25 -2
- package/dist/components/popover.js +23 -2
- package/dist/components/progress.js +34 -2
- package/dist/components/radio-group.js +47 -2
- package/dist/components/scroll-area.js +46 -2
- package/dist/components/select.js +130 -2
- package/dist/components/selection-bar.js +53 -2
- package/dist/components/separator.js +24 -2
- package/dist/components/sheet.js +128 -2
- package/dist/components/skeleton.js +17 -2
- package/dist/components/slider.js +32 -2
- package/dist/components/stepper/index.d.ts +4 -0
- package/dist/components/stepper/step-layout.d.ts +8 -0
- package/dist/components/stepper/stepper-modal.d.ts +26 -0
- package/dist/components/stepper/stepper.d.ts +7 -0
- package/dist/components/stepper/types.d.ts +6 -0
- package/dist/components/stepper.js +6 -2
- package/dist/components/switch.js +35 -2
- package/dist/components/table-empty.js +22 -2
- package/dist/components/table-mobile.js +91 -2
- package/dist/components/table.js +156 -2
- package/dist/components/tabs.js +46 -2
- package/dist/components/terminal.js +49 -2
- package/dist/components/textarea.js +20 -2
- package/dist/components/tooltip.js +75 -2
- package/dist/components/use-toast.js +64 -2
- package/dist/icons/icons.d.ts +8 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/providers/anthropic.d.ts +2 -0
- package/dist/icons/providers/claude.d.ts +2 -0
- package/dist/icons/providers/deepseek.d.ts +2 -0
- package/dist/icons/providers/gemini.d.ts +2 -0
- package/dist/icons/providers/grok.d.ts +2 -0
- package/dist/icons/providers/index.d.ts +6 -0
- package/dist/icons/providers/openai.d.ts +2 -0
- package/dist/icons/providers/types.d.ts +4 -0
- package/dist/index.d.ts +48 -962
- package/dist/index.js +444 -2
- package/dist/lib/icons.d.ts +14 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/utils.js +8 -2
- package/dist/{stepper-modal-SYU9mbXs.js → stepper-modal-JXpOXOV2.js} +90 -91
- package/dist/styles.css +1 -1
- package/package.json +180 -134
- package/dist/MonacoEditor-COZcVMEj.cjs +0 -8
- package/dist/MonacoEditor-COZcVMEj.cjs.map +0 -1
- package/dist/MonacoEditor-D3QSSKa4.js +0 -295
- package/dist/MonacoEditor-D3QSSKa4.js.map +0 -1
- package/dist/alert-dialog.d.ts +0 -18
- package/dist/alert.d.ts +0 -25
- package/dist/avatar.d.ts +0 -9
- package/dist/badge.d.ts +0 -15
- package/dist/button.d.ts +0 -16
- package/dist/calendar.d.ts +0 -21
- package/dist/card.d.ts +0 -15
- package/dist/carousel.d.ts +0 -18
- package/dist/charts.d.ts +0 -26
- package/dist/checkbox.d.ts +0 -6
- package/dist/collapse.d.ts +0 -15
- package/dist/command-menu.d.ts +0 -12
- package/dist/command.d.ts +0 -89
- package/dist/components/alert-dialog.esm.js +0 -59
- package/dist/components/alert-dialog.esm.js.map +0 -1
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/alert.esm.js +0 -64
- package/dist/components/alert.esm.js.map +0 -1
- package/dist/components/alert.js.map +0 -1
- package/dist/components/avatar.esm.js +0 -42
- package/dist/components/avatar.esm.js.map +0 -1
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/badge.esm.js +0 -27
- package/dist/components/badge.esm.js.map +0 -1
- package/dist/components/badge.js.map +0 -1
- package/dist/components/button.esm.js +0 -48
- package/dist/components/button.esm.js.map +0 -1
- package/dist/components/button.js.map +0 -1
- package/dist/components/calendar.esm.js +0 -5562
- package/dist/components/calendar.esm.js.map +0 -1
- package/dist/components/calendar.js.map +0 -1
- package/dist/components/card.esm.js +0 -62
- package/dist/components/card.esm.js.map +0 -1
- package/dist/components/card.js.map +0 -1
- package/dist/components/carousel.esm.js +0 -101
- package/dist/components/carousel.esm.js.map +0 -1
- package/dist/components/carousel.js.map +0 -1
- package/dist/components/charts.d.ts +0 -17
- package/dist/components/charts.esm.js +0 -48
- package/dist/components/charts.esm.js.map +0 -1
- package/dist/components/charts.js +0 -2
- package/dist/components/charts.js.map +0 -1
- package/dist/components/checkbox.esm.js +0 -32
- package/dist/components/checkbox.esm.js.map +0 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapse.esm.js +0 -50
- package/dist/components/collapse.esm.js.map +0 -1
- package/dist/components/collapse.js.map +0 -1
- package/dist/components/command-menu.esm.js +0 -90
- package/dist/components/command-menu.esm.js.map +0 -1
- package/dist/components/command-menu.js.map +0 -1
- package/dist/components/command.esm.js +0 -425
- package/dist/components/command.esm.js.map +0 -1
- package/dist/components/command.js.map +0 -1
- package/dist/components/confirmation-modal.esm.js +0 -46
- package/dist/components/confirmation-modal.esm.js.map +0 -1
- package/dist/components/confirmation-modal.js.map +0 -1
- package/dist/components/context-menu.esm.js +0 -186
- package/dist/components/context-menu.esm.js.map +0 -1
- package/dist/components/context-menu.js.map +0 -1
- package/dist/components/dialog.esm.js +0 -122
- package/dist/components/dialog.esm.js.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dropdown-menu.esm.js +0 -49
- package/dist/components/dropdown-menu.esm.js.map +0 -1
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/dropzone.esm.js +0 -45
- package/dist/components/dropzone.esm.js.map +0 -1
- package/dist/components/dropzone.js.map +0 -1
- package/dist/components/image-cropper-modal.esm.js +0 -251
- package/dist/components/image-cropper-modal.esm.js.map +0 -1
- package/dist/components/image-cropper-modal.js.map +0 -1
- package/dist/components/image-cropper.esm.js +0 -131
- package/dist/components/image-cropper.esm.js.map +0 -1
- package/dist/components/image-cropper.js.map +0 -1
- package/dist/components/input.esm.js +0 -22
- package/dist/components/input.esm.js.map +0 -1
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.esm.js +0 -20
- package/dist/components/label.esm.js.map +0 -1
- package/dist/components/label.js.map +0 -1
- package/dist/components/loader.esm.js +0 -70
- package/dist/components/loader.esm.js.map +0 -1
- package/dist/components/loader.js.map +0 -1
- package/dist/components/loading-placeholder.esm.js +0 -25
- package/dist/components/loading-placeholder.esm.js.map +0 -1
- package/dist/components/loading-placeholder.js.map +0 -1
- package/dist/components/markdown.d.ts +0 -2
- package/dist/components/markdown.esm.js +0 -12066
- package/dist/components/markdown.esm.js.map +0 -1
- package/dist/components/markdown.js +0 -18
- package/dist/components/markdown.js.map +0 -1
- package/dist/components/mention.esm.js +0 -154
- package/dist/components/mention.esm.js.map +0 -1
- package/dist/components/mention.js.map +0 -1
- package/dist/components/modal.esm.js +0 -136
- package/dist/components/modal.esm.js.map +0 -1
- package/dist/components/modal.js.map +0 -1
- package/dist/components/monaco-editor.d.ts +0 -2
- package/dist/components/monaco-editor.esm.js +0 -9
- package/dist/components/monaco-editor.esm.js.map +0 -1
- package/dist/components/monaco-editor.js +0 -2
- package/dist/components/monaco-editor.js.map +0 -1
- package/dist/components/notification.esm.js +0 -26
- package/dist/components/notification.esm.js.map +0 -1
- package/dist/components/notification.js.map +0 -1
- package/dist/components/popover.esm.js +0 -24
- package/dist/components/popover.esm.js.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.esm.js +0 -35
- package/dist/components/progress.esm.js.map +0 -1
- package/dist/components/progress.js.map +0 -1
- package/dist/components/radio-group.esm.js +0 -48
- package/dist/components/radio-group.esm.js.map +0 -1
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/scroll-area.esm.js +0 -47
- package/dist/components/scroll-area.esm.js.map +0 -1
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/select.esm.js +0 -131
- package/dist/components/select.esm.js.map +0 -1
- package/dist/components/select.js.map +0 -1
- package/dist/components/selection-bar.esm.js +0 -54
- package/dist/components/selection-bar.esm.js.map +0 -1
- package/dist/components/selection-bar.js.map +0 -1
- package/dist/components/separator.esm.js +0 -25
- package/dist/components/separator.esm.js.map +0 -1
- package/dist/components/separator.js.map +0 -1
- package/dist/components/sheet.esm.js +0 -129
- package/dist/components/sheet.esm.js.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/skeleton.esm.js +0 -18
- package/dist/components/skeleton.esm.js.map +0 -1
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/slider.esm.js +0 -33
- package/dist/components/slider.esm.js.map +0 -1
- package/dist/components/slider.js.map +0 -1
- package/dist/components/stepper.d.ts +0 -2
- package/dist/components/stepper.esm.js +0 -7
- package/dist/components/stepper.esm.js.map +0 -1
- package/dist/components/stepper.js.map +0 -1
- package/dist/components/switch.esm.js +0 -36
- package/dist/components/switch.esm.js.map +0 -1
- package/dist/components/switch.js.map +0 -1
- package/dist/components/table-empty.esm.js +0 -23
- package/dist/components/table-empty.esm.js.map +0 -1
- package/dist/components/table-empty.js.map +0 -1
- package/dist/components/table-mobile.esm.js +0 -92
- package/dist/components/table-mobile.esm.js.map +0 -1
- package/dist/components/table-mobile.js.map +0 -1
- package/dist/components/table.esm.js +0 -157
- package/dist/components/table.esm.js.map +0 -1
- package/dist/components/table.js.map +0 -1
- package/dist/components/tabs.esm.js +0 -47
- package/dist/components/tabs.esm.js.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/terminal.esm.js +0 -50
- package/dist/components/terminal.esm.js.map +0 -1
- package/dist/components/terminal.js.map +0 -1
- package/dist/components/textarea.esm.js +0 -21
- package/dist/components/textarea.esm.js.map +0 -1
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/tooltip.esm.js +0 -76
- package/dist/components/tooltip.esm.js.map +0 -1
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/use-toast.esm.js +0 -65
- package/dist/components/use-toast.esm.js.map +0 -1
- package/dist/components/use-toast.js.map +0 -1
- package/dist/confirmation-modal.d.ts +0 -16
- package/dist/context-menu.d.ts +0 -41
- package/dist/dialog.d.ts +0 -33
- package/dist/dropdown-menu.d.ts +0 -16
- package/dist/dropzone.d.ts +0 -16
- package/dist/image-cropper-modal.d.ts +0 -14
- package/dist/image-cropper.d.ts +0 -15
- package/dist/index-DACAHwoB.js +0 -35
- package/dist/index-DACAHwoB.js.map +0 -1
- package/dist/index-Deooizx8.cjs +0 -2
- package/dist/index-Deooizx8.cjs.map +0 -1
- package/dist/index.esm.js +0 -458
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/input.d.ts +0 -8
- package/dist/jsx-runtime-BYECrxsp.cjs +0 -31
- package/dist/jsx-runtime-BYECrxsp.cjs.map +0 -1
- package/dist/jsx-runtime-DGlMoOmv.js +0 -631
- package/dist/jsx-runtime-DGlMoOmv.js.map +0 -1
- package/dist/label.d.ts +0 -6
- package/dist/lib/utils.esm.js +0 -5
- package/dist/lib/utils.esm.js.map +0 -1
- package/dist/lib/utils.js.map +0 -1
- package/dist/loader.d.ts +0 -14
- package/dist/loading-placeholder.d.ts +0 -12
- package/dist/markdown.d.ts +0 -122
- package/dist/mention.d.ts +0 -29
- package/dist/modal.d.ts +0 -28
- package/dist/monaco-editor.d.ts +0 -76
- package/dist/notification.d.ts +0 -9
- package/dist/popover.d.ts +0 -10
- package/dist/progress.d.ts +0 -6
- package/dist/radio-group.d.ts +0 -8
- package/dist/scroll-area.d.ts +0 -8
- package/dist/select.d.ts +0 -31
- package/dist/selection-bar.d.ts +0 -15
- package/dist/separator.d.ts +0 -6
- package/dist/sheet.d.ts +0 -17
- package/dist/skeleton.d.ts +0 -5
- package/dist/slider.d.ts +0 -6
- package/dist/stepper-modal-CPlBpxWy.cjs +0 -2
- package/dist/stepper-modal-CPlBpxWy.cjs.map +0 -1
- package/dist/stepper-modal-SYU9mbXs.js.map +0 -1
- package/dist/stepper.d.ts +0 -75
- package/dist/switch.d.ts +0 -6
- package/dist/table-empty.d.ts +0 -13
- package/dist/table-mobile.d.ts +0 -37
- package/dist/table.d.ts +0 -37
- package/dist/tabs.d.ts +0 -12
- package/dist/terminal.d.ts +0 -47
- package/dist/textarea.d.ts +0 -8
- package/dist/tooltip.d.ts +0 -12
- package/dist/use-toast.d.ts +0 -28
- package/dist/utils-DSKoFOjv.cjs +0 -2
- package/dist/utils-DSKoFOjv.cjs.map +0 -1
- package/dist/utils-qaFjX9_3.js +0 -2279
- package/dist/utils-qaFjX9_3.js.map +0 -1
- package/dist/utils.d.ts +0 -5
package/README.md
CHANGED
|
@@ -25,13 +25,6 @@ pnpm add @definable/ui
|
|
|
25
25
|
|
|
26
26
|
## Setup
|
|
27
27
|
|
|
28
|
-
Add the import for the CSS file in your main entry file:
|
|
29
|
-
|
|
30
|
-
```jsx
|
|
31
|
-
// Next.js example (pages/_app.js or app/layout.js)
|
|
32
|
-
import '@definable/ui/dist/styles.css';
|
|
33
|
-
```
|
|
34
|
-
|
|
35
28
|
Make sure your tailwind.config.js extends the necessary theme values:
|
|
36
29
|
|
|
37
30
|
```js
|
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as l, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { Button as c } from "./button.js";
|
|
3
|
+
import { Modal as v } from "./modal.js";
|
|
4
|
+
const w = ({
|
|
5
|
+
open: e = !1,
|
|
6
|
+
onOpenChange: s,
|
|
7
|
+
title: i,
|
|
8
|
+
description: m,
|
|
9
|
+
cancelText: a = "Cancel",
|
|
10
|
+
actionText: f = "Continue",
|
|
11
|
+
onCancel: t,
|
|
12
|
+
onAction: r,
|
|
13
|
+
actionVariant: u = "default",
|
|
14
|
+
className: x
|
|
15
|
+
}) => /* @__PURE__ */ l(
|
|
16
|
+
v,
|
|
17
|
+
{
|
|
18
|
+
isOpen: e,
|
|
19
|
+
onClose: () => s == null ? void 0 : s(!1),
|
|
20
|
+
size: "sm",
|
|
21
|
+
className: x,
|
|
22
|
+
children: /* @__PURE__ */ d("div", { className: "space-y-4 p-6", children: [
|
|
23
|
+
/* @__PURE__ */ d("div", { className: "space-y-2", children: [
|
|
24
|
+
i && /* @__PURE__ */ l("h2", { className: "text-lg font-semibold", children: i }),
|
|
25
|
+
m && /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground", children: m })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 pt-4", children: [
|
|
28
|
+
/* @__PURE__ */ l(
|
|
29
|
+
c,
|
|
30
|
+
{
|
|
31
|
+
variant: "outline",
|
|
32
|
+
onClick: () => {
|
|
33
|
+
t == null || t(), s == null || s(!1);
|
|
34
|
+
},
|
|
35
|
+
className: "mt-2 sm:mt-0",
|
|
36
|
+
children: a
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ l(
|
|
40
|
+
c,
|
|
41
|
+
{
|
|
42
|
+
variant: u === "destructive" ? "destructive" : "default",
|
|
43
|
+
onClick: () => {
|
|
44
|
+
r == null || r(), s == null || s(!1);
|
|
45
|
+
},
|
|
46
|
+
children: f
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] })
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
export {
|
|
54
|
+
w as AlertDialog
|
|
55
|
+
};
|
package/dist/components/alert.js
CHANGED
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
|
+
import { cn as d } from "../lib/utils.js";
|
|
5
|
+
import { ConfirmationModal as v } from "./confirmation-modal.js";
|
|
6
|
+
const g = p(
|
|
7
|
+
"relative w-full rounded-lg border p-4",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-background text-foreground",
|
|
12
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
), b = i.forwardRef(({ className: t, variant: r, isOpen: e, onClose: o, onConfirm: l, title: s, description: n, confirmText: m, cancelText: c, ...f }, u) => e !== void 0 && o && l && s && n ? /* @__PURE__ */ a(
|
|
20
|
+
v,
|
|
21
|
+
{
|
|
22
|
+
isOpen: e,
|
|
23
|
+
onClose: o,
|
|
24
|
+
onConfirm: l,
|
|
25
|
+
title: s,
|
|
26
|
+
description: n,
|
|
27
|
+
confirmText: m,
|
|
28
|
+
cancelText: c,
|
|
29
|
+
type: r === "destructive" ? "danger" : "warning"
|
|
30
|
+
}
|
|
31
|
+
) : /* @__PURE__ */ a(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
ref: u,
|
|
35
|
+
role: "alert",
|
|
36
|
+
className: d(g({ variant: r }), t),
|
|
37
|
+
...f
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
b.displayName = "Alert";
|
|
41
|
+
const x = i.forwardRef(({ className: t, ...r }, e) => /* @__PURE__ */ a(
|
|
42
|
+
"h5",
|
|
43
|
+
{
|
|
44
|
+
ref: e,
|
|
45
|
+
className: d("mb-1 font-medium leading-none tracking-tight", t),
|
|
46
|
+
...r
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
x.displayName = "AlertTitle";
|
|
50
|
+
const A = i.forwardRef(({ className: t, ...r }, e) => /* @__PURE__ */ a(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
ref: e,
|
|
54
|
+
className: d("text-sm [&_p]:leading-relaxed", t),
|
|
55
|
+
...r
|
|
56
|
+
}
|
|
57
|
+
));
|
|
58
|
+
A.displayName = "AlertDescription";
|
|
59
|
+
export {
|
|
60
|
+
b as Alert,
|
|
61
|
+
A as AlertDescription,
|
|
62
|
+
x as AlertTitle
|
|
63
|
+
};
|
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { cn as f } from "../lib/utils.js";
|
|
4
|
+
const o = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ l(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
ref: r,
|
|
8
|
+
className: f(
|
|
9
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
10
|
+
a
|
|
11
|
+
),
|
|
12
|
+
...e
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
o.displayName = "Avatar";
|
|
16
|
+
const s = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ l(
|
|
17
|
+
"img",
|
|
18
|
+
{
|
|
19
|
+
ref: r,
|
|
20
|
+
className: f("aspect-square h-full w-full", a),
|
|
21
|
+
...e
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
s.displayName = "AvatarImage";
|
|
25
|
+
const m = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ l(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref: r,
|
|
29
|
+
className: f(
|
|
30
|
+
"flex h-full w-full items-center justify-center rounded-full bg-muted text-muted-foreground",
|
|
31
|
+
a
|
|
32
|
+
),
|
|
33
|
+
...e
|
|
34
|
+
}
|
|
35
|
+
));
|
|
36
|
+
m.displayName = "AvatarFallback";
|
|
37
|
+
export {
|
|
38
|
+
o as Avatar,
|
|
39
|
+
m as AvatarFallback,
|
|
40
|
+
s as AvatarImage
|
|
41
|
+
};
|
package/dist/components/badge.js
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { cn as a } from "../lib/utils.js";
|
|
4
|
+
const i = n(
|
|
5
|
+
"inline-flex items-center rounded-md px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
10
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
11
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
12
|
+
outline: "text-foreground"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
function c({ className: r, variant: e, ...t }) {
|
|
21
|
+
return /* @__PURE__ */ o("div", { className: a(i({ variant: e }), r), ...t });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
c as Badge,
|
|
25
|
+
i as badgeVariants
|
|
26
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LucideIcon } from 'lucide-react';
|
|
3
3
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: 'default' | 'secondary' | 'ghost' | 'destructive' | 'outline';
|
|
5
|
-
size?: 'sm' | 'md' | 'lg' | 'icon';
|
|
4
|
+
variant?: 'default' | 'secondary' | 'ghost' | 'destructive' | 'outline' | 'dark';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'icon';
|
|
6
6
|
icon?: LucideIcon;
|
|
7
7
|
iconPosition?: 'left' | 'right';
|
|
8
8
|
isLoading?: boolean;
|
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsxs as h, Fragment as v, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import l, { forwardRef as y } from "react";
|
|
3
|
+
import { Slot as w } from "@radix-ui/react-slot";
|
|
4
|
+
import { cn as n } from "../lib/utils.js";
|
|
5
|
+
const N = {
|
|
6
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90 rounded-md",
|
|
7
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 rounded-md",
|
|
8
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md",
|
|
9
|
+
ghost: "hover:bg-accent hover:text-accent-foreground rounded-md",
|
|
10
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 rounded-md",
|
|
11
|
+
dark: "bg-zinc-800 text-white shadow-lg hover:bg-zinc-700 rounded-md"
|
|
12
|
+
}, j = y(({
|
|
13
|
+
className: b,
|
|
14
|
+
variant: f = "default",
|
|
15
|
+
size: g = "md",
|
|
16
|
+
icon: t,
|
|
17
|
+
iconPosition: d = "left",
|
|
18
|
+
isLoading: o,
|
|
19
|
+
disabled: p,
|
|
20
|
+
asChild: a = !1,
|
|
21
|
+
children: e,
|
|
22
|
+
...m
|
|
23
|
+
}, i) => {
|
|
24
|
+
const u = a ? w : "button", c = /* @__PURE__ */ h(v, { children: [
|
|
25
|
+
o ? /* @__PURE__ */ r("div", { className: "mr-2 h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }) : t && (d === "left" || !e) ? /* @__PURE__ */ r(t, { className: n("h-4 w-4", e && "mr-2") }) : null,
|
|
26
|
+
e,
|
|
27
|
+
t && d === "right" && e && !o && /* @__PURE__ */ r(t, { className: "ml-2 h-4 w-4" })
|
|
28
|
+
] }), x = {
|
|
29
|
+
sm: "h-8 px-3 text-xs",
|
|
30
|
+
md: "h-9 px-4 text-sm",
|
|
31
|
+
lg: "h-10 px-5 text-base",
|
|
32
|
+
xl: "h-14 px-8 text-lg font-semibold",
|
|
33
|
+
icon: "h-6 w-6 p-0"
|
|
34
|
+
}, s = n(
|
|
35
|
+
"inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
36
|
+
N[f],
|
|
37
|
+
x[g],
|
|
38
|
+
!e && t && "px-2",
|
|
39
|
+
b
|
|
40
|
+
);
|
|
41
|
+
return a ? /* @__PURE__ */ r(u, { className: s, ref: i, ...m, children: l.isValidElement(e) ? l.cloneElement(e, {
|
|
42
|
+
className: n(s, e.props.className),
|
|
43
|
+
children: c
|
|
44
|
+
}) : e }) : /* @__PURE__ */ r(u, { className: s, ref: i, disabled: o || p, ...m, children: c });
|
|
45
|
+
});
|
|
46
|
+
j.displayName = "Button";
|
|
47
|
+
export {
|
|
48
|
+
j as Button
|
|
49
|
+
};
|
|
@@ -1,2 +1,86 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../jsx-runtime-BYECrxsp.cjs"),er=require("react"),mt=require("lucide-react"),yt=require("./button.js"),gt=require("../utils-DSKoFOjv.cjs");function tr(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const wt=tr(er);class Q extends Error{}class nr extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rr extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class sr extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class te extends Q{}class Jt extends Q{constructor(e){super(`Invalid unit ${e}`)}}class N extends Q{}class H extends Q{constructor(){super("Zone is an abstract class")}}const c="numeric",R="short",I="long",be={year:c,month:c,day:c},_t={year:c,month:R,day:c},ir={year:c,month:R,day:c,weekday:R},Bt={year:c,month:I,day:c},Qt={year:c,month:I,day:c,weekday:I},Kt={hour:c,minute:c},Xt={hour:c,minute:c,second:c},en={hour:c,minute:c,second:c,timeZoneName:R},tn={hour:c,minute:c,second:c,timeZoneName:I},nn={hour:c,minute:c,hourCycle:"h23"},rn={hour:c,minute:c,second:c,hourCycle:"h23"},sn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:R},an={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:I},on={year:c,month:c,day:c,hour:c,minute:c},un={year:c,month:c,day:c,hour:c,minute:c,second:c},ln={year:c,month:R,day:c,hour:c,minute:c},cn={year:c,month:R,day:c,hour:c,minute:c,second:c},ar={year:c,month:R,day:c,weekday:R,hour:c,minute:c},fn={year:c,month:I,day:c,hour:c,minute:c,timeZoneName:R},dn={year:c,month:I,day:c,hour:c,minute:c,second:c,timeZoneName:R},hn={year:c,month:I,day:c,weekday:I,hour:c,minute:c,timeZoneName:I},mn={year:c,month:I,day:c,weekday:I,hour:c,minute:c,second:c,timeZoneName:I};class we{get type(){throw new H}get name(){throw new H}get ianaName(){return this.name}get isUniversal(){throw new H}offsetName(e,t){throw new H}formatOffset(e,t){throw new H}offset(e){throw new H}equals(e){throw new H}get isValid(){throw new H}}let ze=null;class We extends we{static get instance(){return ze===null&&(ze=new We),ze}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Nn(e,t,r)}formatOffset(e,t){return ye(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const _e=new Map;function or(n){let e=_e.get(n);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),_e.set(n,e)),e}const ur={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function lr(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,i,a,o,u,l,f]=r;return[a,s,i,o,u,l,f]}function cr(n,e){const t=n.formatToParts(e),r=[];for(let s=0;s<t.length;s++){const{type:i,value:a}=t[s],o=ur[i];i==="era"?r[o]=a:m(o)||(r[o]=parseInt(a,10))}return r}const Ue=new Map;class q extends we{static create(e){let t=Ue.get(e);return t===void 0&&Ue.set(e,t=new q(e)),t}static resetCache(){Ue.clear(),_e.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=q.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Nn(e,t,r,this.name)}formatOffset(e,t){return ye(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const r=or(this.name);let[s,i,a,o,u,l,f]=r.formatToParts?cr(r,t):lr(r,t);o==="BC"&&(s=-Math.abs(s)+1);const T=$e({year:s,month:i,day:a,hour:u===24?0:u,minute:l,second:f,millisecond:0});let d=+t;const S=d%1e3;return d-=S>=0?S:1e3+S,(T-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let kt={};function fr(n,e={}){const t=JSON.stringify([n,e]);let r=kt[t];return r||(r=new Intl.ListFormat(n,e),kt[t]=r),r}const Be=new Map;function Qe(n,e={}){const t=JSON.stringify([n,e]);let r=Be.get(t);return r===void 0&&(r=new Intl.DateTimeFormat(n,e),Be.set(t,r)),r}const Ke=new Map;function dr(n,e={}){const t=JSON.stringify([n,e]);let r=Ke.get(t);return r===void 0&&(r=new Intl.NumberFormat(n,e),Ke.set(t,r)),r}const Xe=new Map;function hr(n,e={}){const{base:t,...r}=e,s=JSON.stringify([n,r]);let i=Xe.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(n,e),Xe.set(s,i)),i}let de=null;function mr(){return de||(de=new Intl.DateTimeFormat().resolvedOptions().locale,de)}const et=new Map;function yn(n){let e=et.get(n);return e===void 0&&(e=new Intl.DateTimeFormat(n).resolvedOptions(),et.set(n,e)),e}const tt=new Map;function yr(n){let e=tt.get(n);if(!e){const t=new Intl.Locale(n);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...gn,...e}),tt.set(n,e)}return e}function gr(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let r,s;try{r=Qe(n).resolvedOptions(),s=n}catch{const u=n.substring(0,t);r=Qe(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=r;return[s,i,a]}}function wr(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function kr(n){const e=[];for(let t=1;t<=12;t++){const r=h.utc(2009,t,1);e.push(n(r))}return e}function Tr(n){const e=[];for(let t=1;t<=7;t++){const r=h.utc(2016,11,13+t);e.push(n(r))}return e}function Oe(n,e,t,r){const s=n.listingMode();return s==="error"?null:s==="en"?t(e):r(e)}function pr(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||yn(n.locale).numberingSystem==="latn"}class Sr{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=dr(e,o)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):ct(e,3);return M(t,this.padTo)}}}class Or{constructor(e,t,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&q.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Qe(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:r}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class vr{constructor(e,t,r){this.opts={style:"long",...r},!t&&vn()&&(this.rtf=hr(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):Pr(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const gn={firstDay:1,minimalDays:4,weekend:[6,7]};class k{static fromOpts(e){return k.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,s,i=!1){const a=e||v.defaultLocale,o=a||(i?"en-US":mr()),u=t||v.defaultNumberingSystem,l=r||v.defaultOutputCalendar,f=rt(s)||v.defaultWeekSettings;return new k(o,u,l,f,a)}static resetCache(){de=null,Be.clear(),Ke.clear(),Xe.clear(),et.clear(),tt.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:s}={}){return k.create(e,t,r,s)}constructor(e,t,r,s,i){const[a,o,u]=gr(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=r||u||null,this.weekSettings=s,this.intl=wr(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=pr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:k.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,rt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Oe(this,e,Dn,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");t&=!r;const s=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const a=r?o=>this.dtFormatter(o,s).format():o=>this.extract(o,s,"month");this.monthsCache[i][e]=kr(a)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Oe(this,e,Fn,()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Tr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Oe(this,void 0,()=>Cn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[h.utc(2016,11,13,9),h.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Oe(this,e,Vn,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[h.utc(-40,1,1),h.utc(2017,1,1)].map(r=>this.extract(r,t,"era"))),this.eraCache[e]})}extract(e,t,r){const s=this.dtFormatter(e,t),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new Sr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Or(e,this.intl,t)}relFormatter(e={}){return new vr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return fr(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||yn(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Mn()?yr(this.locale):gn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let qe=null;class x extends we{static get utcInstance(){return qe===null&&(qe=new x(0)),qe}static instance(e){return e===0?x.utcInstance:new x(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new x(Ze(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ye(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ye(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ye(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Mr extends we{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function P(n,e){if(m(n)||n===null)return e;if(n instanceof we)return n;if(br(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?We.instance:t==="utc"||t==="gmt"?x.utcInstance:x.parseSpecifier(t)||q.create(n)}else return j(n)?x.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new Mr(n)}const at={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Tt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Nr=at.hanidec.replace(/[\[|\]]/g,"").split("");function Er(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t<n.length;t++){const r=n.charCodeAt(t);if(n[t].search(at.hanidec)!==-1)e+=Nr.indexOf(n[t]);else for(const s in Tt){const[i,a]=Tt[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}const nt=new Map;function xr(){nt.clear()}function L({numberingSystem:n},e=""){const t=n||"latn";let r=nt.get(t);r===void 0&&(r=new Map,nt.set(t,r));let s=r.get(e);return s===void 0&&(s=new RegExp(`${at[t]}${e}`),r.set(e,s)),s}let pt=()=>Date.now(),St="system",Ot=null,vt=null,Mt=null,Nt=60,Et,xt=null;class v{static get now(){return pt}static set now(e){pt=e}static set defaultZone(e){St=e}static get defaultZone(){return P(St,We.instance)}static get defaultLocale(){return Ot}static set defaultLocale(e){Ot=e}static get defaultNumberingSystem(){return vt}static set defaultNumberingSystem(e){vt=e}static get defaultOutputCalendar(){return Mt}static set defaultOutputCalendar(e){Mt=e}static get defaultWeekSettings(){return xt}static set defaultWeekSettings(e){xt=rt(e)}static get twoDigitCutoffYear(){return Nt}static set twoDigitCutoffYear(e){Nt=e%100}static get throwOnInvalid(){return Et}static set throwOnInvalid(e){Et=e}static resetCaches(){k.resetCache(),q.resetCache(),h.resetCache(),xr()}}class Z{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const wn=[0,31,59,90,120,151,181,212,243,273,304,334],kn=[0,31,60,91,121,152,182,213,244,274,305,335];function C(n,e){return new Z("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function ot(n,e,t){const r=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Tn(n,e,t){return t+(ke(n)?kn:wn)[e-1]}function pn(n,e){const t=ke(n)?kn:wn,r=t.findIndex(i=>i<e),s=e-t[r];return{month:r+1,day:s}}function ut(n,e){return(n-e+7)%7+1}function Fe(n,e=4,t=1){const{year:r,month:s,day:i}=n,a=Tn(r,s,i),o=ut(ot(r,s,i),t);let u=Math.floor((a-o+14-e)/7),l;return u<1?(l=r-1,u=ge(l,e,t)):u>ge(r,e,t)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...Re(n)}}function Dt(n,e=4,t=1){const{weekYear:r,weekNumber:s,weekday:i}=n,a=ut(ot(r,1,e),t),o=ne(r);let u=s*7+i-a-7+e,l;u<1?(l=r-1,u+=ne(l)):u>o?(l=r+1,u-=ne(r)):l=r;const{month:f,day:y}=pn(l,u);return{year:l,month:f,day:y,...Re(n)}}function He(n){const{year:e,month:t,day:r}=n,s=Tn(e,t,r);return{year:e,ordinal:s,...Re(n)}}function It(n){const{year:e,ordinal:t}=n,{month:r,day:s}=pn(e,t);return{year:e,month:r,day:s,...Re(n)}}function bt(n,e){if(!m(n.localWeekday)||!m(n.localWeekNumber)||!m(n.localWeekYear)){if(!m(n.weekday)||!m(n.weekNumber)||!m(n.weekYear))throw new te("Cannot mix locale-based week fields with ISO-based week fields");return m(n.localWeekday)||(n.weekday=n.localWeekday),m(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),m(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Dr(n,e=4,t=1){const r=Le(n.weekYear),s=V(n.weekNumber,1,ge(n.weekYear,e,t)),i=V(n.weekday,1,7);return r?s?i?!1:C("weekday",n.weekday):C("week",n.weekNumber):C("weekYear",n.weekYear)}function Ir(n){const e=Le(n.year),t=V(n.ordinal,1,ne(n.year));return e?t?!1:C("ordinal",n.ordinal):C("year",n.year)}function Sn(n){const e=Le(n.year),t=V(n.month,1,12),r=V(n.day,1,Ce(n.year,n.month));return e?t?r?!1:C("day",n.day):C("month",n.month):C("year",n.year)}function On(n){const{hour:e,minute:t,second:r,millisecond:s}=n,i=V(e,0,23)||e===24&&t===0&&r===0&&s===0,a=V(t,0,59),o=V(r,0,59),u=V(s,0,999);return i?a?o?u?!1:C("millisecond",s):C("second",r):C("minute",t):C("hour",e)}function m(n){return typeof n>"u"}function j(n){return typeof n=="number"}function Le(n){return typeof n=="number"&&n%1===0}function br(n){return typeof n=="string"}function Fr(n){return Object.prototype.toString.call(n)==="[object Date]"}function vn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Mn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Cr(n){return Array.isArray(n)?n:[n]}function Ft(n,e,t){if(n.length!==0)return n.reduce((r,s)=>{const i=[e(s),s];return r&&t(r[0],i[0])===r[0]?r:i},null)[1]}function Vr(n,e){return e.reduce((t,r)=>(t[r]=n[r],t),{})}function se(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function rt(n){if(n==null)return null;if(typeof n!="object")throw new N("Week settings must be an object");if(!V(n.firstDay,1,7)||!V(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(e=>!V(e,1,7)))throw new N("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function V(n,e,t){return Le(n)&&n>=e&&n<=t}function Wr(n,e){return n-e*Math.floor(n/e)}function M(n,e=2){const t=n<0;let r;return t?r="-"+(""+-n).padStart(e,"0"):r=(""+n).padStart(e,"0"),r}function Y(n){if(!(m(n)||n===null||n===""))return parseInt(n,10)}function J(n){if(!(m(n)||n===null||n===""))return parseFloat(n)}function lt(n){if(!(m(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function ct(n,e,t="round"){const r=10**e;switch(t){case"expand":return n>0?Math.ceil(n*r)/r:Math.floor(n*r)/r;case"trunc":return Math.trunc(n*r)/r;case"round":return Math.round(n*r)/r;case"floor":return Math.floor(n*r)/r;case"ceil":return Math.ceil(n*r)/r;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function ke(n){return n%4===0&&(n%100!==0||n%400===0)}function ne(n){return ke(n)?366:365}function Ce(n,e){const t=Wr(e-1,12)+1,r=n+(e-t)/12;return t===2?ke(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function $e(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function Ct(n,e,t){return-ut(ot(n,1,e),t)+e-1}function ge(n,e=4,t=1){const r=Ct(n,e,t),s=Ct(n+1,e,t);return(ne(n)-r+s)/7}function st(n){return n>99?n:n>v.twoDigitCutoffYear?1900+n:2e3+n}function Nn(n,e,t,r=null){const s=new Date(n),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(t,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Ze(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const r=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-r:r;return t*60+s}function En(n){const e=Number(n);if(typeof n=="boolean"||n===""||!Number.isFinite(e))throw new N(`Invalid unit value ${n}`);return e}function Ve(n,e){const t={};for(const r in n)if(se(n,r)){const s=n[r];if(s==null)continue;t[e(r)]=En(s)}return t}function ye(n,e){const t=Math.trunc(Math.abs(n/60)),r=Math.trunc(Math.abs(n%60)),s=n>=0?"+":"-";switch(e){case"short":return`${s}${M(t,2)}:${M(r,2)}`;case"narrow":return`${s}${t}${r>0?`:${r}`:""}`;case"techie":return`${s}${M(t,2)}${M(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Re(n){return Vr(n,["hour","minute","second","millisecond"])}const Lr=["January","February","March","April","May","June","July","August","September","October","November","December"],xn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$r=["J","F","M","A","M","J","J","A","S","O","N","D"];function Dn(n){switch(n){case"narrow":return[...$r];case"short":return[...xn];case"long":return[...Lr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const In=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],bn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Zr=["M","T","W","T","F","S","S"];function Fn(n){switch(n){case"narrow":return[...Zr];case"short":return[...bn];case"long":return[...In];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Cn=["AM","PM"],Rr=["Before Christ","Anno Domini"],Ar=["BC","AD"],zr=["B","A"];function Vn(n){switch(n){case"narrow":return[...zr];case"short":return[...Ar];case"long":return[...Rr];default:return null}}function Ur(n){return Cn[n.hour<12?0:1]}function qr(n,e){return Fn(e)[n.weekday-1]}function Hr(n,e){return Dn(e)[n.month-1]}function Yr(n,e){return Vn(e)[n.year<0?0:1]}function Pr(n,e,t="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&i){const y=n==="days";switch(e){case 1:return y?"tomorrow":`next ${s[n][0]}`;case-1:return y?"yesterday":`last ${s[n][0]}`;case 0:return y?"today":`this ${s[n][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[n],f=r?u?l[1]:l[2]||l[1]:u?s[n][0]:n;return a?`${o} ${f} ago`:`in ${o} ${f}`}function Vt(n,e){let t="";for(const r of n)r.literal?t+=r.val:t+=e(r.val);return t}const jr={D:be,DD:_t,DDD:Bt,DDDD:Qt,t:Kt,tt:Xt,ttt:en,tttt:tn,T:nn,TT:rn,TTT:sn,TTTT:an,f:on,ff:ln,fff:fn,ffff:hn,F:un,FF:cn,FFF:dn,FFFF:mn};class E{static create(e,t={}){return new E(e,t)}static parseFormat(e){let t=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((r.length>0||s)&&i.push({literal:s||/^\s+$/.test(r),val:r===""?"'":r}),t=null,r="",s=!s):s||o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return jr[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,r=void 0){if(this.opts.forceSimple)return M(e,t);const s={...this.opts};return t>0&&(s.padTo=t),r&&(s.signDisplay=r),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(d,S)=>this.loc.extract(e,d,S),a=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",o=()=>r?Ur(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(d,S)=>r?Hr(e,d):i(S?{month:d}:{month:d,day:"numeric"},"month"),l=(d,S)=>r?qr(e,d):i(S?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),f=d=>{const S=E.macroTokenToFormatOpts(d);return S?this.formatWithSystemDefault(e,S):d},y=d=>r?Yr(e,d):i({era:d},"era"),T=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(d)}};return Vt(E.parseFormat(t),T)}formatDurationFromString(e,t){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,s=f=>{switch(f[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(f,y)=>T=>{const d=s(T);if(d){const S=y.isNegativeDuration&&d!==y.largestUnit?r:1;let D;return this.opts.signMode==="negativeLargestOnly"&&d!==y.largestUnit?D="never":this.opts.signMode==="all"?D="always":D="auto",this.num(f.get(d)*S,T.length,D)}else return T},a=E.parseFormat(t),o=a.reduce((f,{literal:y,val:T})=>y?f:f.concat(T),[]),u=e.shiftTo(...o.map(s).filter(f=>f)),l={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Vt(a,i(u,l))}}const Wn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ie(...n){const e=n.reduce((t,r)=>t+r.source,"");return RegExp(`^${e}$`)}function ae(...n){return e=>n.reduce(([t,r,s],i)=>{const[a,o,u]=i(e,s);return[{...t,...a},o||r,u]},[{},null,1]).slice(0,2)}function oe(n,...e){if(n==null)return[null,null];for(const[t,r]of e){const s=t.exec(n);if(s)return r(s)}return[null,null]}function Ln(...n){return(e,t)=>{const r={};let s;for(s=0;s<n.length;s++)r[n[s]]=Y(e[t+s]);return[r,null,t+s]}}const $n=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Gr=`(?:${$n.source}?(?:\\[(${Wn.source})\\])?)?`,ft=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Zn=RegExp(`${ft.source}${Gr}`),dt=RegExp(`(?:[Tt]${Zn.source})?`),Jr=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_r=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Br=/(\d{4})-?(\d{3})/,Qr=Ln("weekYear","weekNumber","weekDay"),Kr=Ln("year","ordinal"),Xr=/(\d{4})-(\d\d)-(\d\d)/,Rn=RegExp(`${ft.source} ?(?:${$n.source}|(${Wn.source}))?`),es=RegExp(`(?: ${Rn.source})?`);function re(n,e,t){const r=n[e];return m(r)?t:Y(r)}function ts(n,e){return[{year:re(n,e),month:re(n,e+1,1),day:re(n,e+2,1)},null,e+3]}function ue(n,e){return[{hours:re(n,e,0),minutes:re(n,e+1,0),seconds:re(n,e+2,0),milliseconds:lt(n[e+3])},null,e+4]}function Te(n,e){const t=!n[e]&&!n[e+1],r=Ze(n[e+1],n[e+2]),s=t?null:x.instance(r);return[{},s,e+3]}function pe(n,e){const t=n[e]?q.create(n[e]):null;return[{},t,e+1]}const ns=RegExp(`^T?${ft.source}$`),rs=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ss(n){const[e,t,r,s,i,a,o,u,l]=n,f=e[0]==="-",y=u&&u[0]==="-",T=(d,S=!1)=>d!==void 0&&(S||d&&f)?-d:d;return[{years:T(J(t)),months:T(J(r)),weeks:T(J(s)),days:T(J(i)),hours:T(J(a)),minutes:T(J(o)),seconds:T(J(u),u==="-0"),milliseconds:T(lt(l),y)}]}const is={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ht(n,e,t,r,s,i,a){const o={year:e.length===2?st(Y(e)):Y(e),month:xn.indexOf(t)+1,day:Y(r),hour:Y(s),minute:Y(i)};return a&&(o.second=Y(a)),n&&(o.weekday=n.length>3?In.indexOf(n)+1:bn.indexOf(n)+1),o}const as=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function os(n){const[,e,t,r,s,i,a,o,u,l,f,y]=n,T=ht(e,s,r,t,i,a,o);let d;return u?d=is[u]:l?d=0:d=Ze(f,y),[T,new x(d)]}function us(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ls=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cs=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,fs=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Wt(n){const[,e,t,r,s,i,a,o]=n;return[ht(e,s,r,t,i,a,o),x.utcInstance]}function ds(n){const[,e,t,r,s,i,a,o]=n;return[ht(e,o,t,r,s,i,a),x.utcInstance]}const hs=ie(Jr,dt),ms=ie(_r,dt),ys=ie(Br,dt),gs=ie(Zn),An=ae(ts,ue,Te,pe),ws=ae(Qr,ue,Te,pe),ks=ae(Kr,ue,Te,pe),Ts=ae(ue,Te,pe);function ps(n){return oe(n,[hs,An],[ms,ws],[ys,ks],[gs,Ts])}function Ss(n){return oe(us(n),[as,os])}function Os(n){return oe(n,[ls,Wt],[cs,Wt],[fs,ds])}function vs(n){return oe(n,[rs,ss])}const Ms=ae(ue);function Ns(n){return oe(n,[ns,Ms])}const Es=ie(Xr,es),xs=ie(Rn),Ds=ae(ue,Te,pe);function Is(n){return oe(n,[Es,An],[xs,Ds])}const Lt="Invalid Duration",zn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bs={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...zn},F=146097/400,K=146097/4800,Fs={years:{quarters:4,months:12,weeks:F/7,days:F,hours:F*24,minutes:F*24*60,seconds:F*24*60*60,milliseconds:F*24*60*60*1e3},quarters:{months:3,weeks:F/28,days:F/4,hours:F*24/4,minutes:F*24*60/4,seconds:F*24*60*60/4,milliseconds:F*24*60*60*1e3/4},months:{weeks:K/7,days:K,hours:K*24,minutes:K*24*60,seconds:K*24*60*60,milliseconds:K*24*60*60*1e3},...zn},B=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cs=B.slice(0).reverse();function U(n,e,t=!1){const r={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new g(r)}function Un(n,e){let t=e.milliseconds??0;for(const r of Cs.slice(1))e[r]&&(t+=e[r]*n[r].milliseconds);return t}function $t(n,e){const t=Un(n,e)<0?-1:1;B.reduceRight((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]*t,a=n[s][r],o=Math.floor(i/a);e[s]+=o*t,e[r]-=o*a*t}return s},null),B.reduce((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*n[r][s]}return s},null)}function Zt(n){const e={};for(const[t,r]of Object.entries(n))r!==0&&(e[t]=r);return e}class g{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let r=t?Fs:bs;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||k.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return g.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new N(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new g({values:Ve(e,g.normalizeUnit),loc:k.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(j(e))return g.fromMillis(e);if(g.isDuration(e))return e;if(typeof e=="object")return g.fromObject(e);throw new N(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=vs(e);return r?g.fromObject(r,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=Ns(e);return r?g.fromObject(r,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new N("need to specify a reason the Duration is invalid");const r=e instanceof Z?e:new Z(e,t);if(v.throwOnInvalid)throw new sr(r);return new g({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new Jt(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?E.create(this.loc,r).formatDurationFromString(this,e):Lt}toHuman(e={}){if(!this.isValid)return Lt;const t=e.showZeros!==!1,r=B.map(s=>{const i=this.values[s];return m(i)||i===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},h.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Un(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e),r={};for(const s of B)(se(t.values,s)||se(this.values,s))&&(r[s]=t.get(s)+this.get(s));return U(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=En(e(this.values[r],r));return U(this,{values:t},!0)}get(e){return this[g.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...Ve(e,g.normalizeUnit)};return U(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:r};return U(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return $t(this.matrix,e),U(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Zt(this.normalize().shiftToAll().toObject());return U(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>g.normalizeUnit(a));const t={},r={},s=this.toObject();let i;for(const a of B)if(e.indexOf(a)>=0){i=a;let o=0;for(const l in r)o+=this.matrix[l][a]*r[l],r[l]=0;j(s[a])&&(o+=s[a]);const u=Math.trunc(o);t[a]=u,r[a]=(o*1e3-u*1e3)/1e3}else j(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(t[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return $t(this.matrix,t),U(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return U(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Zt(this.values);return U(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of B)if(!t(this.values[r],e.values[r]))return!1;return!0}}const X="Invalid Interval";function Vs(n,e){return!n||!n.isValid?O.invalid("missing or invalid start"):!e||!e.isValid?O.invalid("missing or invalid end"):e<n?O.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class O{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new N("need to specify a reason the Interval is invalid");const r=e instanceof Z?e:new Z(e,t);if(v.throwOnInvalid)throw new rr(r);return new O({invalid:r})}static fromDateTimes(e,t){const r=fe(e),s=fe(t),i=Vs(r,s);return i??new O({start:r,end:s})}static after(e,t){const r=g.fromDurationLike(t),s=fe(e);return O.fromDateTimes(s,s.plus(r))}static before(e,t){const r=g.fromDurationLike(t),s=fe(e);return O.fromDateTimes(s.minus(r),s)}static fromISO(e,t){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=h.fromISO(r,t),a=i.isValid}catch{a=!1}let o,u;try{o=h.fromISO(s,t),u=o.isValid}catch{u=!1}if(a&&u)return O.fromDateTimes(i,o);if(a){const l=g.fromISO(s,t);if(l.isValid)return O.after(i,l)}else if(u){const l=g.fromISO(r,t);if(l.isValid)return O.before(o,l)}}return O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let s;return t!=null&&t.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,t),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?O.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(fe).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const a=t[i]||this.e,o=+a>+this.e?this.e:a;r.push(O.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const t=g.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(t.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(O.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:O.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return O.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(const u of o)r+=u.type==="s"?1:-1,r===1?t=u.time:(t&&+t!=+u.time&&s.push(O.fromDateTimes(t,u.time)),t=null);return O.merge(s)}difference(...e){return O.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:X}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=be,t={}){return this.isValid?E.create(this.s.loc.clone(t),e).formatInterval(this):X}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:X}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:X}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:X}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:X}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):g.invalid(this.invalidReason)}mapEndpoints(e){return O.fromDateTimes(e(this.s),e(this.e))}}class ve{static hasDST(e=v.defaultZone){const t=h.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return q.isValidZone(e)}static normalizeZone(e){return P(e,v.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||k.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||k.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||k.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||k.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||k.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null}={}){return(s||k.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null}={}){return(s||k.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return k.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return k.create(t,null,"gregory").eras(e)}static features(){return{relative:vn(),localeWeek:Mn()}}}function Rt(n,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=t(e)-t(n);return Math.floor(g.fromMillis(r).as("days"))}function Ws(n,e,t){const r=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const f=Rt(u,l);return(f-f%7)/7}],["days",Rt]],s={},i=n;let a,o;for(const[u,l]of r)t.indexOf(u)>=0&&(a=u,s[u]=l(n,e),o=i.plus(s),o>e?(s[u]--,n=i.plus(s),n>e&&(o=n,s[u]--,n=i.plus(s))):n=o);return[n,s,o,a]}function Ls(n,e,t,r){let[s,i,a,o]=Ws(n,e,t);const u=e-s,l=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const f=g.fromObject(i,r);return l.length>0?g.fromMillis(u,r).shiftTo(...l).plus(f):f}const $s="missing Intl.DateTimeFormat.formatToParts support";function w(n,e=t=>t){return{regex:n,deser:([t])=>e(Er(t))}}const Zs=" ",qn=`[ ${Zs}]`,Hn=new RegExp(qn,"g");function Rs(n){return n.replace(/\./g,"\\.?").replace(Hn,qn)}function At(n){return n.replace(/\./g,"").replace(Hn," ").toLowerCase()}function $(n,e){return n===null?null:{regex:RegExp(n.map(Rs).join("|")),deser:([t])=>n.findIndex(r=>At(t)===At(r))+e}}function zt(n,e){return{regex:n,deser:([,t,r])=>Ze(t,r),groups:e}}function Me(n){return{regex:n,deser:([e])=>e}}function As(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function zs(n,e){const t=L(e),r=L(e,"{2}"),s=L(e,"{3}"),i=L(e,"{4}"),a=L(e,"{6}"),o=L(e,"{1,2}"),u=L(e,"{1,3}"),l=L(e,"{1,6}"),f=L(e,"{1,9}"),y=L(e,"{2,4}"),T=L(e,"{4,6}"),d=b=>({regex:RegExp(As(b.val)),deser:([z])=>z,literal:!0}),D=(b=>{if(n.literal)return d(b);switch(b.val){case"G":return $(e.eras("short"),0);case"GG":return $(e.eras("long"),0);case"y":return w(l);case"yy":return w(y,st);case"yyyy":return w(i);case"yyyyy":return w(T);case"yyyyyy":return w(a);case"M":return w(o);case"MM":return w(r);case"MMM":return $(e.months("short",!0),1);case"MMMM":return $(e.months("long",!0),1);case"L":return w(o);case"LL":return w(r);case"LLL":return $(e.months("short",!1),1);case"LLLL":return $(e.months("long",!1),1);case"d":return w(o);case"dd":return w(r);case"o":return w(u);case"ooo":return w(s);case"HH":return w(r);case"H":return w(o);case"hh":return w(r);case"h":return w(o);case"mm":return w(r);case"m":return w(o);case"q":return w(o);case"qq":return w(r);case"s":return w(o);case"ss":return w(r);case"S":return w(u);case"SSS":return w(s);case"u":return Me(f);case"uu":return Me(o);case"uuu":return w(t);case"a":return $(e.meridiems(),0);case"kkkk":return w(i);case"kk":return w(y,st);case"W":return w(o);case"WW":return w(r);case"E":case"c":return w(t);case"EEE":return $(e.weekdays("short",!1),1);case"EEEE":return $(e.weekdays("long",!1),1);case"ccc":return $(e.weekdays("short",!0),1);case"cccc":return $(e.weekdays("long",!0),1);case"Z":case"ZZ":return zt(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return zt(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Me(/[a-z_+-/]{1,256}?/i);case" ":return Me(/[^\S\n\r]/);default:return d(b)}})(n)||{invalidReason:$s};return D.token=n,D}const Us={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function qs(n,e,t){const{type:r,value:s}=n;if(r==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let o=Us[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Hs(n){return[`^${n.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,n]}function Ys(n,e,t){const r=n.match(e);if(r){const s={};let i=1;for(const a in t)if(se(t,a)){const o=t[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+u))),i+=u}return[r,s]}else return[r,{}]}function Ps(n){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,r;return m(n.z)||(t=q.create(n.z)),m(n.Z)||(t||(t=new x(n.Z)),r=n.Z),m(n.q)||(n.M=(n.q-1)*3+1),m(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),m(n.u)||(n.S=lt(n.u)),[Object.keys(n).reduce((i,a)=>{const o=e(a);return o&&(i[o]=n[a]),i},{}),t,r]}let Ye=null;function js(){return Ye||(Ye=h.fromMillis(1555555555555)),Ye}function Gs(n,e){if(n.literal)return n;const t=E.macroTokenToFormatOpts(n.val),r=Gn(t,e);return r==null||r.includes(void 0)?n:r}function Yn(n,e){return Array.prototype.concat(...n.map(t=>Gs(t,e)))}class Pn{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Yn(E.parseFormat(t),e),this.units=this.tokens.map(r=>zs(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,s]=Hs(this.units);this.regex=RegExp(r,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[t,r]=Ys(e,this.regex,this.handlers),[s,i,a]=r?Ps(r):[null,null,void 0];if(se(r,"a")&&se(r,"H"))throw new te("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:s,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function jn(n,e,t){return new Pn(n,t).explainFromTokens(e)}function Js(n,e,t){const{result:r,zone:s,specificOffset:i,invalidReason:a}=jn(n,e,t);return[r,s,i,a]}function Gn(n,e){if(!n)return null;const r=E.create(e,n).dtFormatter(js()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(a=>qs(a,n,i))}const Pe="Invalid DateTime",Ut=864e13;function he(n){return new Z("unsupported zone",`the zone "${n.name}" is not supported`)}function je(n){return n.weekData===null&&(n.weekData=Fe(n.c)),n.weekData}function Ge(n){return n.localWeekData===null&&(n.localWeekData=Fe(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function _(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new h({...t,...e,old:t})}function Jn(n,e,t){let r=n-e*60*1e3;const s=t.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=t.offset(r);return s===i?[r,s]:[n-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Ne(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function xe(n,e,t){return Jn($e(n),e,t)}function qt(n,e){const t=n.o,r=n.c.year+Math.trunc(e.years),s=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...n.c,year:r,month:s,day:Math.min(n.c.day,Ce(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=g.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=$e(i);let[u,l]=Jn(o,t,n.zone);return a!==0&&(u+=a,l=n.zone.offset(u)),{ts:u,o:l}}function ee(n,e,t,r,s,i){const{setZone:a,zone:o}=t;if(n&&Object.keys(n).length!==0||e){const u=e||o,l=h.fromObject(n,{...t,zone:u,specificOffset:i});return a?l:l.setZone(o)}else return h.invalid(new Z("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Ee(n,e,t=!0){return n.isValid?E.create(k.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function Je(n,e,t){const r=n.c.year>9999||n.c.year<0;let s="";if(r&&n.c.year>=0&&(s+="+"),s+=M(n.c.year,r?6:4),t==="year")return s;if(e){if(s+="-",s+=M(n.c.month),t==="month")return s;s+="-"}else if(s+=M(n.c.month),t==="month")return s;return s+=M(n.c.day),s}function Ht(n,e,t,r,s,i,a){let o=!t||n.c.millisecond!==0||n.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=M(n.c.hour),a==="hour")break;if(e){if(u+=":",u+=M(n.c.minute),a==="minute")break;o&&(u+=":",u+=M(n.c.second))}else{if(u+=M(n.c.minute),a==="minute")break;o&&(u+=M(n.c.second))}if(a==="second")break;o&&(!r||n.c.millisecond!==0)&&(u+=".",u+=M(n.c.millisecond,3))}return s&&(n.isOffsetFixed&&n.offset===0&&!i?u+="Z":n.o<0?(u+="-",u+=M(Math.trunc(-n.o/60)),u+=":",u+=M(Math.trunc(-n.o%60))):(u+="+",u+=M(Math.trunc(n.o/60)),u+=":",u+=M(Math.trunc(n.o%60)))),i&&(u+="["+n.zone.ianaName+"]"),u}const _n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},_s={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Bs={ordinal:1,hour:0,minute:0,second:0,millisecond:0},De=["year","month","day","hour","minute","second","millisecond"],Qs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ks=["year","ordinal","hour","minute","second","millisecond"];function Ie(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Jt(n);return e}function Yt(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ie(n)}}function Xs(n){if(me===void 0&&(me=v.now()),n.type!=="iana")return n.offset(me);const e=n.name;let t=it.get(e);return t===void 0&&(t=n.offset(me),it.set(e,t)),t}function Pt(n,e){const t=P(e.zone,v.defaultZone);if(!t.isValid)return h.invalid(he(t));const r=k.fromObject(e);let s,i;if(m(n.year))s=v.now();else{for(const u of De)m(n[u])&&(n[u]=_n[u]);const a=Sn(n)||On(n);if(a)return h.invalid(a);const o=Xs(t);[s,i]=xe(n,o,t)}return new h({ts:s,zone:t,loc:r,o:i})}function jt(n,e,t){const r=m(t.round)?!0:t.round,s=m(t.rounding)?"trunc":t.rounding,i=(o,u)=>(o=ct(o,r||t.calendary?0:2,t.calendary?"round":s),e.loc.clone(t).relFormatter(t).format(o,u)),a=o=>t.calendary?e.hasSame(n,o)?0:e.startOf(o).diff(n.startOf(o),o).get(o):e.diff(n,o).get(o);if(t.unit)return i(a(t.unit),t.unit);for(const o of t.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(n>e?-0:0,t.units[t.units.length-1])}function Gt(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let me;const it=new Map;class h{constructor(e){const t=e.zone||v.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Z("invalid input"):null)||(t.isValid?null:he(t));this.ts=m(e.ts)?v.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,i]=[e.old.c,e.old.o];else{const o=j(e.o)&&!e.old?e.o:t.offset(this.ts);s=Ne(this.ts,o),r=Number.isNaN(s.year)?new Z("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=t,this.loc=e.loc||k.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new h({})}static local(){const[e,t]=Gt(arguments),[r,s,i,a,o,u,l]=t;return Pt({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){const[e,t]=Gt(arguments),[r,s,i,a,o,u,l]=t;return e.zone=x.utcInstance,Pt({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,t={}){const r=Fr(e)?e.valueOf():NaN;if(Number.isNaN(r))return h.invalid("invalid input");const s=P(t.zone,v.defaultZone);return s.isValid?new h({ts:r,zone:s,loc:k.fromObject(t)}):h.invalid(he(s))}static fromMillis(e,t={}){if(j(e))return e<-Ut||e>Ut?h.invalid("Timestamp out of range"):new h({ts:e,zone:P(t.zone,v.defaultZone),loc:k.fromObject(t)});throw new N(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(j(e))return new h({ts:e*1e3,zone:P(t.zone,v.defaultZone),loc:k.fromObject(t)});throw new N("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=P(t.zone,v.defaultZone);if(!r.isValid)return h.invalid(he(r));const s=k.fromObject(t),i=Ve(e,Yt),{minDaysInFirstWeek:a,startOfWeek:o}=bt(i,s),u=v.now(),l=m(t.specificOffset)?r.offset(u):t.specificOffset,f=!m(i.ordinal),y=!m(i.year),T=!m(i.month)||!m(i.day),d=y||T,S=i.weekYear||i.weekNumber;if((d||f)&&S)throw new te("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(T&&f)throw new te("Can't mix ordinal dates with month/day");const D=S||i.weekday&&!d;let b,z,G=Ne(u,l);D?(b=Qs,z=_s,G=Fe(G,a,o)):f?(b=Ks,z=Bs,G=He(G)):(b=De,z=_n);let Se=!1;for(const ce of b){const Xn=i[ce];m(Xn)?Se?i[ce]=z[ce]:i[ce]=G[ce]:Se=!0}const p=D?Dr(i,a,o):f?Ir(i):Sn(i),A=p||On(i);if(A)return h.invalid(A);const Ae=D?Dt(i,a,o):f?It(i):i,[Qn,Kn]=xe(Ae,l,r),le=new h({ts:Qn,zone:r,o:Kn,loc:s});return i.weekday&&d&&e.weekday!==le.weekday?h.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${le.toISO()}`):le.isValid?le:h.invalid(le.invalid)}static fromISO(e,t={}){const[r,s]=ps(e);return ee(r,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,s]=Ss(e);return ee(r,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,s]=Os(e);return ee(r,s,t,"HTTP",t)}static fromFormat(e,t,r={}){if(m(e)||m(t))throw new N("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=k.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,l,f]=Js(a,e,t);return f?h.invalid(f):ee(o,u,r,`format ${t}`,e,l)}static fromString(e,t,r={}){return h.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,s]=Is(e);return ee(r,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new N("need to specify a reason the DateTime is invalid");const r=e instanceof Z?e:new Z(e,t);if(v.throwOnInvalid)throw new nr(r);return new h({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Gn(e,k.fromObject(t));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,t={}){return Yn(E.parseFormat(e),k.fromObject(t)).map(s=>s.val).join("")}static resetCache(){me=void 0,it.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?je(this).weekYear:NaN}get weekNumber(){return this.isValid?je(this).weekNumber:NaN}get weekday(){return this.isValid?je(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ge(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ge(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ge(this).weekYear:NaN}get ordinal(){return this.isValid?He(this.c).ordinal:NaN}get monthShort(){return this.isValid?ve.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ve.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ve.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ve.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=$e(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-s*t),o=this.zone.offset(r-i*t);if(a===o)return[this];const u=r-a*t,l=r-o*t,f=Ne(u,a),y=Ne(l,o);return f.hour===y.hour&&f.minute===y.minute&&f.second===y.second&&f.millisecond===y.millisecond?[_(this,{ts:u}),_(this,{ts:l})]:[this]}get isInLeapYear(){return ke(this.year)}get daysInMonth(){return Ce(this.year,this.month)}get daysInYear(){return this.isValid?ne(this.year):NaN}get weeksInWeekYear(){return this.isValid?ge(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ge(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:s}=E.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(x.instance(e),t)}toLocal(){return this.setZone(v.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if(e=P(e,v.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||r){const i=e.offset(this.ts),a=this.toObject();[s]=xe(a,i,e)}return _(this,{ts:s,zone:e})}else return h.invalid(he(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return _(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ve(e,Yt),{minDaysInFirstWeek:r,startOfWeek:s}=bt(t,this.loc),i=!m(t.weekYear)||!m(t.weekNumber)||!m(t.weekday),a=!m(t.ordinal),o=!m(t.year),u=!m(t.month)||!m(t.day),l=o||u,f=t.weekYear||t.weekNumber;if((l||a)&&f)throw new te("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new te("Can't mix ordinal dates with month/day");let y;i?y=Dt({...Fe(this.c,r,s),...t},r,s):m(t.ordinal)?(y={...this.toObject(),...t},m(t.day)&&(y.day=Math.min(Ce(y.year,y.month),y.day))):y=It({...He(this.c),...t});const[T,d]=xe(y,this.o,this.zone);return _(this,{ts:T,o:d})}plus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e);return _(this,qt(this,t))}minus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e).negate();return _(this,qt(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},s=g.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(t){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?E.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Pe}toLocaleString(e=be,t={}){return this.isValid?E.create(this.loc.clone(t),e).formatDateTime(this):Pe}toLocaleParts(e={}){return this.isValid?E.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Ie(a);const o=e==="extended";let u=Je(this,o,a);return De.indexOf(a)>=3&&(u+="T"),u+=Ht(this,o,t,r,s,i,a),u}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?Je(this,e==="extended",Ie(t)):null}toISOWeekDate(){return Ee(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Ie(o),(s&&De.indexOf(o)>=3?"T":"")+Ht(this,a==="extended",t,e,r,i,o)):null}toRFC2822(){return Ee(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ee(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Je(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(r&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Ee(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Pe}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return g.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Cr(t).map(g.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,l=Ls(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",t={}){return this.diff(h.now(),e,t)}until(e){return this.isValid?O.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=s&&s<=i.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||h.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),jt(t,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?jt(e.base||h.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(h.isDateTime))throw new N("min requires all arguments be DateTimes");return Ft(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(h.isDateTime))throw new N("max requires all arguments be DateTimes");return Ft(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=k.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return jn(a,e,t)}static fromStringExplain(e,t,r={}){return h.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:s=null}=t,i=k.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return new Pn(i,e)}static fromFormatParser(e,t,r={}){if(m(e)||m(t))throw new N("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=r,a=k.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new N(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:o,zone:u,specificOffset:l,invalidReason:f}=t.explainFromTokens(e);return f?h.invalid(f):ee(o,u,r,`format ${t.format}`,e,l)}static get DATE_SHORT(){return be}static get DATE_MED(){return _t}static get DATE_MED_WITH_WEEKDAY(){return ir}static get DATE_FULL(){return Bt}static get DATE_HUGE(){return Qt}static get TIME_SIMPLE(){return Kt}static get TIME_WITH_SECONDS(){return Xt}static get TIME_WITH_SHORT_OFFSET(){return en}static get TIME_WITH_LONG_OFFSET(){return tn}static get TIME_24_SIMPLE(){return nn}static get TIME_24_WITH_SECONDS(){return rn}static get TIME_24_WITH_SHORT_OFFSET(){return sn}static get TIME_24_WITH_LONG_OFFSET(){return an}static get DATETIME_SHORT(){return on}static get DATETIME_SHORT_WITH_SECONDS(){return un}static get DATETIME_MED(){return ln}static get DATETIME_MED_WITH_SECONDS(){return cn}static get DATETIME_MED_WITH_WEEKDAY(){return ar}static get DATETIME_FULL(){return fn}static get DATETIME_FULL_WITH_SECONDS(){return dn}static get DATETIME_HUGE(){return hn}static get DATETIME_HUGE_WITH_SECONDS(){return mn}}function fe(n){if(h.isDateTime(n))return n;if(n&&n.valueOf&&j(n.valueOf()))return h.fromJSDate(n);if(n&&typeof n=="object")return h.fromObject(n);throw new N(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const Bn=wt.forwardRef(({className:n,mode:e="single",selected:t,onSelect:r,disabled:s,fromDate:i,toDate:a,...o},u)=>{const[l,f]=wt.useState(()=>t&&!Array.isArray(t)?h.fromJSDate(t):h.local()),y=p=>t?Array.isArray(t)?t.some(A=>h.fromJSDate(A).hasSame(p,"day")):h.fromJSDate(t).hasSame(p,"day"):!1,T=p=>p.hasSame(h.local(),"day"),d=p=>s?s(p.toJSDate()):!!(i&&p<h.fromJSDate(i)||a&&p>h.fromJSDate(a)),S=()=>{f(p=>p.minus({months:1}))},D=()=>{f(p=>p.plus({months:1}))},b=p=>{d(p)||r==null||r(p.toJSDate())};l.daysInMonth;const z=l.startOf("month"),G=z.minus({days:z.weekday%7}),Se=Array.from({length:42},(p,A)=>G.plus({days:A}));return W.jsxRuntimeExports.jsxs("div",{ref:u,className:gt.cn("w-full p-3 space-y-4",n),...o,children:[W.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[W.jsxRuntimeExports.jsx(yt.Button,{variant:"outline",size:"icon",onClick:S,className:"h-7 w-7",children:W.jsxRuntimeExports.jsx(mt.ChevronLeft,{className:"h-4 w-4"})}),W.jsxRuntimeExports.jsx("div",{className:"font-medium",children:l.toFormat("MMMM yyyy")}),W.jsxRuntimeExports.jsx(yt.Button,{variant:"outline",size:"icon",onClick:D,className:"h-7 w-7",children:W.jsxRuntimeExports.jsx(mt.ChevronRight,{className:"h-4 w-4"})})]}),W.jsxRuntimeExports.jsx("div",{className:"grid grid-cols-7 text-center text-xs leading-6 text-muted-foreground",children:["Su","Mo","Tu","We","Th","Fr","Sa"].map((p,A)=>W.jsxRuntimeExports.jsx("div",{children:p},A))}),W.jsxRuntimeExports.jsx("div",{className:"grid grid-cols-7 text-center",children:Se.map((p,A)=>{const Ae=p.month===l.month;return W.jsxRuntimeExports.jsx("div",{className:gt.cn("h-9 w-9 p-0 font-normal flex items-center justify-center",!Ae&&"text-muted-foreground opacity-50",y(p)&&"bg-primary text-primary-foreground rounded-md",T(p)&&!y(p)&&"border border-primary rounded-md",d(p)?"text-muted-foreground opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-accent rounded-md"),onClick:()=>b(p),children:p.day},A)})})]})});Bn.displayName="Calendar";exports.Calendar=Bn;
|
|
2
|
-
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { ChevronLeft as k, ChevronRight as A } from "lucide-react";
|
|
4
|
+
import { DateTime as o } from "luxon";
|
|
5
|
+
import { Button as y } from "./button.js";
|
|
6
|
+
import { cn as g } from "../lib/utils.js";
|
|
7
|
+
const j = p.forwardRef(
|
|
8
|
+
({
|
|
9
|
+
className: x,
|
|
10
|
+
mode: T = "single",
|
|
11
|
+
selected: e,
|
|
12
|
+
onSelect: i,
|
|
13
|
+
disabled: s,
|
|
14
|
+
fromDate: m,
|
|
15
|
+
toDate: c,
|
|
16
|
+
...v
|
|
17
|
+
}, D) => {
|
|
18
|
+
const [a, u] = p.useState(() => e && !Array.isArray(e) ? o.fromJSDate(e) : o.local()), d = (r) => e ? Array.isArray(e) ? e.some(
|
|
19
|
+
(n) => o.fromJSDate(n).hasSame(r, "day")
|
|
20
|
+
) : o.fromJSDate(e).hasSame(r, "day") : !1, M = (r) => r.hasSame(o.local(), "day"), l = (r) => s ? s(r.toJSDate()) : !!(m && r < o.fromJSDate(m) || c && r > o.fromJSDate(c)), N = () => {
|
|
21
|
+
u((r) => r.minus({ months: 1 }));
|
|
22
|
+
}, w = () => {
|
|
23
|
+
u((r) => r.plus({ months: 1 }));
|
|
24
|
+
}, S = (r) => {
|
|
25
|
+
l(r) || i == null || i(r.toJSDate());
|
|
26
|
+
};
|
|
27
|
+
a.daysInMonth;
|
|
28
|
+
const f = a.startOf("month"), C = f.minus({ days: f.weekday % 7 }), J = Array.from({ length: 42 }, (r, n) => C.plus({ days: n }));
|
|
29
|
+
return /* @__PURE__ */ h(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref: D,
|
|
33
|
+
className: g("w-full p-3 space-y-4", x),
|
|
34
|
+
...v,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ h("div", { className: "flex items-center justify-between", children: [
|
|
37
|
+
/* @__PURE__ */ t(
|
|
38
|
+
y,
|
|
39
|
+
{
|
|
40
|
+
variant: "outline",
|
|
41
|
+
size: "icon",
|
|
42
|
+
onClick: N,
|
|
43
|
+
className: "h-7 w-7",
|
|
44
|
+
children: /* @__PURE__ */ t(k, { className: "h-4 w-4" })
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ t("div", { className: "font-medium", children: a.toFormat("MMMM yyyy") }),
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
y,
|
|
50
|
+
{
|
|
51
|
+
variant: "outline",
|
|
52
|
+
size: "icon",
|
|
53
|
+
onClick: w,
|
|
54
|
+
className: "h-7 w-7",
|
|
55
|
+
children: /* @__PURE__ */ t(A, { className: "h-4 w-4" })
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 text-center text-xs leading-6 text-muted-foreground", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((r, n) => /* @__PURE__ */ t("div", { children: r }, n)) }),
|
|
60
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 text-center", children: J.map((r, n) => {
|
|
61
|
+
const b = r.month === a.month;
|
|
62
|
+
return /* @__PURE__ */ t(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: g(
|
|
66
|
+
"h-9 w-9 p-0 font-normal flex items-center justify-center",
|
|
67
|
+
!b && "text-muted-foreground opacity-50",
|
|
68
|
+
d(r) && "bg-primary text-primary-foreground rounded-md",
|
|
69
|
+
M(r) && !d(r) && "border border-primary rounded-md",
|
|
70
|
+
l(r) ? "text-muted-foreground opacity-50 cursor-not-allowed" : "cursor-pointer hover:bg-accent rounded-md"
|
|
71
|
+
),
|
|
72
|
+
onClick: () => S(r),
|
|
73
|
+
children: r.day
|
|
74
|
+
},
|
|
75
|
+
n
|
|
76
|
+
);
|
|
77
|
+
}) })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
j.displayName = "Calendar";
|
|
84
|
+
export {
|
|
85
|
+
j as Calendar
|
|
86
|
+
};
|
package/dist/components/card.js
CHANGED
|
@@ -1,2 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as t } from "../lib/utils.js";
|
|
4
|
+
const s = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
ref: r,
|
|
8
|
+
className: t(
|
|
9
|
+
"rounded-lg border-border/50 bg-card text-card-foreground ",
|
|
10
|
+
e
|
|
11
|
+
),
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
s.displayName = "Card";
|
|
16
|
+
const i = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref: r,
|
|
20
|
+
className: t("flex flex-col space-y-1.5 p-6", e),
|
|
21
|
+
...a
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
i.displayName = "CardHeader";
|
|
25
|
+
const c = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d(
|
|
26
|
+
"h3",
|
|
27
|
+
{
|
|
28
|
+
ref: r,
|
|
29
|
+
className: t("text-lg font-semibold leading-none tracking-tight", e),
|
|
30
|
+
...a
|
|
31
|
+
}
|
|
32
|
+
));
|
|
33
|
+
c.displayName = "CardTitle";
|
|
34
|
+
const l = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d(
|
|
35
|
+
"p",
|
|
36
|
+
{
|
|
37
|
+
ref: r,
|
|
38
|
+
className: t("text-sm text-muted-foreground", e),
|
|
39
|
+
...a
|
|
40
|
+
}
|
|
41
|
+
));
|
|
42
|
+
l.displayName = "CardDescription";
|
|
43
|
+
const m = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", e), ...a }));
|
|
44
|
+
m.displayName = "CardContent";
|
|
45
|
+
const n = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ d(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref: r,
|
|
49
|
+
className: t("flex items-center p-6 pt-0", e),
|
|
50
|
+
...a
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
n.displayName = "CardFooter";
|
|
54
|
+
export {
|
|
55
|
+
s as Card,
|
|
56
|
+
m as CardContent,
|
|
57
|
+
l as CardDescription,
|
|
58
|
+
n as CardFooter,
|
|
59
|
+
i as CardHeader,
|
|
60
|
+
c as CardTitle
|
|
61
|
+
};
|