@squeletteapp/widget 0.3.5 → 0.3.6
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.
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { s as i, A as c, y as l, u as d } from "./index-DkloVS_W.js";
|
|
2
|
+
function m({
|
|
3
|
+
src: n,
|
|
4
|
+
title: o,
|
|
5
|
+
onLoaded: r,
|
|
6
|
+
onClose: a
|
|
7
|
+
}) {
|
|
8
|
+
const t = c(null);
|
|
9
|
+
return l(() => {
|
|
10
|
+
const e = t.current;
|
|
11
|
+
if (!e) return;
|
|
12
|
+
const s = () => {
|
|
13
|
+
e.dataset.ready = "true", r == null || r();
|
|
14
|
+
};
|
|
15
|
+
return e.addEventListener("load", s), () => e.removeEventListener("load", s);
|
|
16
|
+
}, [r]), l(() => {
|
|
17
|
+
const e = (s) => {
|
|
18
|
+
s.data.type === "close-feedback-widget" && (console.log("WidgetFrame closing widget as requested"), a());
|
|
19
|
+
};
|
|
20
|
+
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
21
|
+
}, [a]), /* @__PURE__ */ d(
|
|
22
|
+
"iframe",
|
|
23
|
+
{
|
|
24
|
+
ref: t,
|
|
25
|
+
class: "sq-frame",
|
|
26
|
+
part: "frame",
|
|
27
|
+
src: n,
|
|
28
|
+
title: o,
|
|
29
|
+
loading: "eager",
|
|
30
|
+
allow: "clipboard-write; clipboard-read; fullscreen;",
|
|
31
|
+
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
const p = i;
|
|
36
|
+
export {
|
|
37
|
+
m as WidgetFrame,
|
|
38
|
+
m as default,
|
|
39
|
+
p as stylesText
|
|
40
|
+
};
|
|
@@ -749,7 +749,7 @@ class Ko extends HTMLElement {
|
|
|
749
749
|
if (!(g(this, Ye) || g(this, He))) {
|
|
750
750
|
L(this, He, !0), this.render();
|
|
751
751
|
try {
|
|
752
|
-
(n = g(this, kt)) != null || L(this, kt, import("./app-
|
|
752
|
+
(n = g(this, kt)) != null || L(this, kt, import("./app-BYXHlSvt.js"));
|
|
753
753
|
const s = await g(this, kt), o = (r = s.WidgetFrame) != null ? r : s.default;
|
|
754
754
|
if (!o)
|
|
755
755
|
throw new Error("[SqueletteWidget] Widget app missing export");
|
|
@@ -1164,7 +1164,7 @@ function Xo(e, t) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return n;
|
|
1166
1166
|
}
|
|
1167
|
-
const Ui = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded
|
|
1167
|
+
const Ui = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.bg-black\\/40{background-color:#0006}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';
|
|
1168
1168
|
var Zo = Symbol.for("preact-signals");
|
|
1169
1169
|
function nn() {
|
|
1170
1170
|
if (Re > 1)
|
|
@@ -7357,7 +7357,7 @@ function cd({
|
|
|
7357
7357
|
"iframe",
|
|
7358
7358
|
{
|
|
7359
7359
|
ref: o,
|
|
7360
|
-
className: "w-full h-full border-none outline-none
|
|
7360
|
+
className: "w-full h-full border-none outline-none",
|
|
7361
7361
|
src: `${n}/widget/${e}/changelog/last?theme=${t}`,
|
|
7362
7362
|
onLoad: h
|
|
7363
7363
|
}
|
|
@@ -7367,15 +7367,15 @@ function cd({
|
|
|
7367
7367
|
"div",
|
|
7368
7368
|
{
|
|
7369
7369
|
ref: r,
|
|
7370
|
-
className: "fixed inset-0 bg-black/
|
|
7370
|
+
className: "fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center",
|
|
7371
7371
|
style: { pointerEvents: je.value ? "auto" : "none", opacity: 0 },
|
|
7372
7372
|
onClick: b,
|
|
7373
7373
|
children: /* @__PURE__ */ F(
|
|
7374
7374
|
"div",
|
|
7375
7375
|
{
|
|
7376
7376
|
ref: i,
|
|
7377
|
-
className: "
|
|
7378
|
-
style: { opacity: 0, transform: "translateY(-70px)", height:
|
|
7377
|
+
className: "rounded-[32px] shadow-lg max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",
|
|
7378
|
+
style: { opacity: 0, transform: "translateY(-70px)", height: 650 },
|
|
7379
7379
|
children: _
|
|
7380
7380
|
}
|
|
7381
7381
|
)
|
|
@@ -7801,7 +7801,7 @@ function ko() {
|
|
|
7801
7801
|
identify: Ho,
|
|
7802
7802
|
clearIdentity: Yo,
|
|
7803
7803
|
banner: yd,
|
|
7804
|
-
version: "0.3.
|
|
7804
|
+
version: "0.3.6",
|
|
7805
7805
|
cdn: Oo
|
|
7806
7806
|
});
|
|
7807
7807
|
}
|
package/dist/widget.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as a, g as r, S as s, c as d, e as i, b as l, d as g, a as n, f as c, i as W, r as o } from "./index-
|
|
1
|
+
import { h as a, g as r, S as s, c as d, e as i, b as l, d as g, a as n, f as c, i as W, r as o } from "./index-DkloVS_W.js";
|
|
2
2
|
export {
|
|
3
3
|
a as SqueletteBanner,
|
|
4
4
|
r as SqueletteBannerElement,
|
package/dist/widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var SqueletteWidgetBundle=function(q){"use strict";var vd=Object.defineProperty;var Eo=q=>{throw TypeError(q)};var wd=(q,B,T)=>B in q?vd(q,B,{enumerable:!0,configurable:!0,writable:!0,value:T}):q[B]=T;var Pt=(q,B,T)=>wd(q,typeof B!="symbol"?B+"":B,T),Vo=(q,B,T)=>B.has(q)||Eo("Cannot "+T);var g=(q,B,T)=>(Vo(q,B,"read from private field"),T?T.call(q):B.get(q)),ne=(q,B,T)=>B.has(q)?Eo("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(q):B.set(q,T),L=(q,B,T,ft)=>(Vo(q,B,"write to private field"),ft?ft.call(q,T):B.set(q,T),T);var N,$e,ct,de,qe,je,ut,Et,le,ge,be,oe,Vt,dt,Ve;var B,T,ft,Cr,Ne,Er,Vr,Pr,Rr,an,ln,cn,ht={},Fr=[],Po=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pt=Array.isArray;function Te(e,t){for(var n in t)e[n]=t[n];return e}function un(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function mt(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?B.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return Rt(e,o,r,i,null)}function Rt(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++ft:i,__i:-1,__u:0};return i==null&&T.vnode!=null&&T.vnode(s),s}function Ae(e){return e.children}function _e(e,t){this.props=e,this.context=t}function Ge(e,t){if(t==null)return e.__?Ge(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ge(e):null}function $r(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return $r(e)}}function qr(e){(!e.__d&&(e.__d=!0)&&Ne.push(e)&&!Ft.__r++||Er!=T.debounceRendering)&&((Er=T.debounceRendering)||Vr)(Ft)}function Ft(){for(var e,t,n,r,i,s,o,a=1;Ne.length;)Ne.length>a&&Ne.sort(Pr),e=Ne.shift(),a=Ne.length,e.__d&&(n=void 0,r=void 0,i=(r=(t=e).__v).__e,s=[],o=[],t.__P&&((n=Te({},r)).__v=r.__v+1,T.vnode&&T.vnode(n),dn(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,i==null?Ge(r):i,!!(32&r.__u),o),n.__v=r.__v,n.__.__k[n.__i]=n,Dr(s,n,o),r.__e=r.__=null,n.__e!=i&&$r(n)));Ft.__r=0}function Nr(e,t,n,r,i,s,o,a,l,c,d){var u,h,p,b,_,v,m,y=r&&r.__k||Fr,M=t.length;for(l=Ro(n,t,y,l,M),u=0;u<M;u++)(p=n.__k[u])!=null&&(h=p.__i==-1?ht:y[p.__i]||ht,p.__i=u,v=dn(e,p,h,i,s,o,a,l,c,d),b=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&hn(h.ref,null,p),d.push(p.ref,p.__c||b,p)),_==null&&b!=null&&(_=b),(m=!!(4&p.__u))||h.__k===p.__k?l=Ir(p,l,e,m):typeof p.type=="function"&&v!==void 0?l=v:b&&(l=b.nextSibling),p.__u&=-7);return n.__e=_,l}function Ro(e,t,n,r,i){var s,o,a,l,c,d=n.length,u=d,h=0;for(e.__k=new Array(i),s=0;s<i;s++)(o=t[s])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=s+h,(o=e.__k[s]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Rt(null,o,null,null,null):pt(o)?Rt(Ae,{children:o},null,null,null):o.constructor==null&&o.__b>0?Rt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,a=null,(c=o.__i=Fo(o,n,l,u))!=-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(i>d?h--:i<d&&h++),typeof o.type!="function"&&(o.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,o.__u|=4))):e.__k[s]=null;if(u)for(s=0;s<d;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Ge(a)),Br(a,a));return r}function Ir(e,t,n,r){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=Ir(i[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ge(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function $t(e,t){return t=t||[],e==null||typeof e=="boolean"||(pt(e)?e.some(function(n){$t(n,t)}):t.push(e)),t}function Fo(e,t,n,r){var i,s,o,a=e.key,l=e.type,c=t[n],d=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||d&&a==c.key&&l==c.type)return n;if(r>(d?1:0)){for(i=n-1,s=n+1;i>=0||s<t.length;)if((c=t[o=i>=0?i--:s++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return o}return-1}function Or(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Po.test(t)?n:n+"px"}function qt(e,t,n,r,i){var s,o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Or(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Or(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Rr,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=an,e.addEventListener(t,s?cn:ln,s)):e.removeEventListener(t,s?cn:ln,s);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Lr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=an++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function dn(e,t,n,r,i,s,o,a,l,c){var d,u,h,p,b,_,v,m,y,M,C,S,E,I,f,A,$,R=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=T.__b)&&d(t);e:if(typeof R=="function")try{if(m=t.props,y="prototype"in R&&R.prototype.render,M=(d=R.contextType)&&r[d.__c],C=d?M?M.props.value:d.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new R(m,C):(t.__c=u=new _e(m,C),u.constructor=R,u.render=qo),M&&M.sub(u),u.props=m,u.state||(u.state={}),u.context=C,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Te({},u.__s)),Te(u.__s,R.getDerivedStateFromProps(m,u.__s))),p=u.props,b=u.state,u.__v=t,h)y&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&R.getDerivedStateFromProps==null&&m!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,C),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,C)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=m,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,C),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,b,_)})}if(u.context=C,u.props=m,u.__P=e,u.__e=!1,E=T.__r,I=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),f=0;f<u._sb.length;f++)u.__h.push(u._sb[f]);u._sb=[]}else do u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++I<25);u.state=u.__s,u.getChildContext!=null&&(r=Te(Te({},r),u.getChildContext())),y&&!h&&u.getSnapshotBeforeUpdate!=null&&(_=u.getSnapshotBeforeUpdate(p,b)),A=d,d!=null&&d.type===Ae&&d.key==null&&(A=zr(d.props.children)),a=Nr(e,pt(A)?A:[A],t,n,r,i,s,o,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&o.push(u),v&&(u.__E=u.__=null)}catch(W){if(t.__v=null,l||s!=null)if(W.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for($=s.length;$--;)un(s[$]);fn(t)}else t.__e=n.__e,t.__k=n.__k,W.then||fn(t);T.__e(W,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=$o(n.__e,t,n,r,i,s,o,l,c);return(d=T.diffed)&&d(t),128&t.__u?void 0:a}function fn(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(fn)}function Dr(e,t,n){for(var r=0;r<n.length;r++)hn(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){T.__e(s,i.__v)}})}function zr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:pt(e)?e.map(zr):Te({},e)}function $o(e,t,n,r,i,s,o,a,l){var c,d,u,h,p,b,_,v=n.props,m=t.props,y=t.type;if(y=="svg"?i="http://www.w3.org/2000/svg":y=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((p=s[c])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,s[c]=null;break}}if(e==null){if(y==null)return document.createTextNode(m);e=document.createElementNS(i,y,m.is&&m),a&&(T.__m&&T.__m(t,s),a=!1),s=null}if(y==null)v===m||a&&e.data==m||(e.data=m);else{if(s=s&&B.call(e.childNodes),v=n.props||ht,!a&&s!=null)for(v={},c=0;c<e.attributes.length;c++)v[(p=e.attributes[c]).name]=p.value;for(c in v)if(p=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in m)){if(c=="value"&&"defaultValue"in m||c=="checked"&&"defaultChecked"in m)continue;qt(e,c,null,p,i)}}for(c in m)p=m[c],c=="children"?h=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?b=p:c=="checked"?_=p:a&&typeof p!="function"||v[c]===p||qt(e,c,p,v[c],i);if(d)a||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Nr(t.type=="template"?e.content:e,pt(h)?h:[h],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&Ge(n,0),a,l),s!=null)for(c=s.length;c--;)un(s[c]);a||(c="value",y=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[c]||y=="progress"&&!b||y=="option"&&b!=v[c])&&qt(e,c,b,v[c],i),c="checked",_!=null&&_!=e[c]&&qt(e,c,_,v[c],i))}return e}function hn(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){T.__e(i,n)}}function Br(e,t,n){var r,i;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||hn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){T.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Br(r[i],t,n||typeof e.type!="function");n||un(e.__e),e.__c=e.__=e.__e=void 0}function qo(e,t,n){return this.constructor(e,n)}function Ke(e,t,n){var r,i,s,o;t==document&&(t=document.documentElement),T.__&&T.__(e,t),i=(r=!1)?null:t.__k,s=[],o=[],dn(t,e=t.__k=mt(Ae,null,[e]),i||ht,ht,t.namespaceURI,i?null:t.firstChild?B.call(t.childNodes):null,s,i?i.__e:t.firstChild,r,o),Dr(s,e,o)}B=Fr.slice,T={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},ft=0,Cr=function(e){return e!=null&&e.constructor==null},_e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Te({},this.state),typeof e=="function"&&(e=e(Te({},n),this.props)),e&&Te(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qr(this))},_e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qr(this))},_e.prototype.render=Ae,Ne=[],Vr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pr=function(e,t){return e.__v.__b-t.__v.__b},Ft.__r=0,Rr=/(PointerCapture)$|Capture$/i,an=0,ln=Lr(!1),cn=Lr(!0);var No=0;function P(e,t,n,r,i,s){t||(t={});var o,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?o=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--No,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(o=e.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return T.vnode&&T.vnode(c),c}const Wr=`/*
|
|
1
|
+
var SqueletteWidgetBundle=function(F){"use strict";var vd=Object.defineProperty;var Eo=F=>{throw TypeError(F)};var wd=(F,B,T)=>B in F?vd(F,B,{enumerable:!0,configurable:!0,writable:!0,value:T}):F[B]=T;var Pt=(F,B,T)=>wd(F,typeof B!="symbol"?B+"":B,T),Vo=(F,B,T)=>B.has(F)||Eo("Cannot "+T);var g=(F,B,T)=>(Vo(F,B,"read from private field"),T?T.call(F):B.get(F)),ne=(F,B,T)=>B.has(F)?Eo("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(F):B.set(F,T),L=(F,B,T,ft)=>(Vo(F,B,"write to private field"),ft?ft.call(F,T):B.set(F,T),T);var N,qe,ct,de,Fe,je,ut,Et,le,ge,be,oe,Vt,dt,Ve;var B,T,ft,Cr,Ne,Er,Vr,Pr,Rr,an,ln,cn,ht={},$r=[],Po=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pt=Array.isArray;function Te(e,t){for(var n in t)e[n]=t[n];return e}function un(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function mt(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?B.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return Rt(e,o,r,i,null)}function Rt(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++ft:i,__i:-1,__u:0};return i==null&&T.vnode!=null&&T.vnode(s),s}function Ae(e){return e.children}function _e(e,t){this.props=e,this.context=t}function Ge(e,t){if(t==null)return e.__?Ge(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ge(e):null}function qr(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return qr(e)}}function Fr(e){(!e.__d&&(e.__d=!0)&&Ne.push(e)&&!$t.__r++||Er!=T.debounceRendering)&&((Er=T.debounceRendering)||Vr)($t)}function $t(){for(var e,t,n,r,i,s,o,a=1;Ne.length;)Ne.length>a&&Ne.sort(Pr),e=Ne.shift(),a=Ne.length,e.__d&&(n=void 0,r=void 0,i=(r=(t=e).__v).__e,s=[],o=[],t.__P&&((n=Te({},r)).__v=r.__v+1,T.vnode&&T.vnode(n),dn(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,i==null?Ge(r):i,!!(32&r.__u),o),n.__v=r.__v,n.__.__k[n.__i]=n,Dr(s,n,o),r.__e=r.__=null,n.__e!=i&&qr(n)));$t.__r=0}function Nr(e,t,n,r,i,s,o,a,l,c,d){var u,h,p,b,_,v,m,y=r&&r.__k||$r,M=t.length;for(l=Ro(n,t,y,l,M),u=0;u<M;u++)(p=n.__k[u])!=null&&(h=p.__i==-1?ht:y[p.__i]||ht,p.__i=u,v=dn(e,p,h,i,s,o,a,l,c,d),b=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&hn(h.ref,null,p),d.push(p.ref,p.__c||b,p)),_==null&&b!=null&&(_=b),(m=!!(4&p.__u))||h.__k===p.__k?l=Ir(p,l,e,m):typeof p.type=="function"&&v!==void 0?l=v:b&&(l=b.nextSibling),p.__u&=-7);return n.__e=_,l}function Ro(e,t,n,r,i){var s,o,a,l,c,d=n.length,u=d,h=0;for(e.__k=new Array(i),s=0;s<i;s++)(o=t[s])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=s+h,(o=e.__k[s]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Rt(null,o,null,null,null):pt(o)?Rt(Ae,{children:o},null,null,null):o.constructor==null&&o.__b>0?Rt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,a=null,(c=o.__i=$o(o,n,l,u))!=-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(i>d?h--:i<d&&h++),typeof o.type!="function"&&(o.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,o.__u|=4))):e.__k[s]=null;if(u)for(s=0;s<d;s++)(a=n[s])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Ge(a)),Br(a,a));return r}function Ir(e,t,n,r){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=Ir(i[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ge(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function qt(e,t){return t=t||[],e==null||typeof e=="boolean"||(pt(e)?e.some(function(n){qt(n,t)}):t.push(e)),t}function $o(e,t,n,r){var i,s,o,a=e.key,l=e.type,c=t[n],d=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||d&&a==c.key&&l==c.type)return n;if(r>(d?1:0)){for(i=n-1,s=n+1;i>=0||s<t.length;)if((c=t[o=i>=0?i--:s++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return o}return-1}function Or(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Po.test(t)?n:n+"px"}function Ft(e,t,n,r,i){var s,o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Or(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Or(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Rr,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=an,e.addEventListener(t,s?cn:ln,s)):e.removeEventListener(t,s?cn:ln,s);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Lr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=an++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function dn(e,t,n,r,i,s,o,a,l,c){var d,u,h,p,b,_,v,m,y,M,C,S,E,I,f,A,q,R=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=T.__b)&&d(t);e:if(typeof R=="function")try{if(m=t.props,y="prototype"in R&&R.prototype.render,M=(d=R.contextType)&&r[d.__c],C=d?M?M.props.value:d.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new R(m,C):(t.__c=u=new _e(m,C),u.constructor=R,u.render=Fo),M&&M.sub(u),u.props=m,u.state||(u.state={}),u.context=C,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Te({},u.__s)),Te(u.__s,R.getDerivedStateFromProps(m,u.__s))),p=u.props,b=u.state,u.__v=t,h)y&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&R.getDerivedStateFromProps==null&&m!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,C),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,C)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=m,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,C),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,b,_)})}if(u.context=C,u.props=m,u.__P=e,u.__e=!1,E=T.__r,I=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),f=0;f<u._sb.length;f++)u.__h.push(u._sb[f]);u._sb=[]}else do u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++I<25);u.state=u.__s,u.getChildContext!=null&&(r=Te(Te({},r),u.getChildContext())),y&&!h&&u.getSnapshotBeforeUpdate!=null&&(_=u.getSnapshotBeforeUpdate(p,b)),A=d,d!=null&&d.type===Ae&&d.key==null&&(A=zr(d.props.children)),a=Nr(e,pt(A)?A:[A],t,n,r,i,s,o,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&o.push(u),v&&(u.__E=u.__=null)}catch(W){if(t.__v=null,l||s!=null)if(W.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(q=s.length;q--;)un(s[q]);fn(t)}else t.__e=n.__e,t.__k=n.__k,W.then||fn(t);T.__e(W,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=qo(n.__e,t,n,r,i,s,o,l,c);return(d=T.diffed)&&d(t),128&t.__u?void 0:a}function fn(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(fn)}function Dr(e,t,n){for(var r=0;r<n.length;r++)hn(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){T.__e(s,i.__v)}})}function zr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:pt(e)?e.map(zr):Te({},e)}function qo(e,t,n,r,i,s,o,a,l){var c,d,u,h,p,b,_,v=n.props,m=t.props,y=t.type;if(y=="svg"?i="http://www.w3.org/2000/svg":y=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((p=s[c])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,s[c]=null;break}}if(e==null){if(y==null)return document.createTextNode(m);e=document.createElementNS(i,y,m.is&&m),a&&(T.__m&&T.__m(t,s),a=!1),s=null}if(y==null)v===m||a&&e.data==m||(e.data=m);else{if(s=s&&B.call(e.childNodes),v=n.props||ht,!a&&s!=null)for(v={},c=0;c<e.attributes.length;c++)v[(p=e.attributes[c]).name]=p.value;for(c in v)if(p=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in m)){if(c=="value"&&"defaultValue"in m||c=="checked"&&"defaultChecked"in m)continue;Ft(e,c,null,p,i)}}for(c in m)p=m[c],c=="children"?h=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?b=p:c=="checked"?_=p:a&&typeof p!="function"||v[c]===p||Ft(e,c,p,v[c],i);if(d)a||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Nr(t.type=="template"?e.content:e,pt(h)?h:[h],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&Ge(n,0),a,l),s!=null)for(c=s.length;c--;)un(s[c]);a||(c="value",y=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[c]||y=="progress"&&!b||y=="option"&&b!=v[c])&&Ft(e,c,b,v[c],i),c="checked",_!=null&&_!=e[c]&&Ft(e,c,_,v[c],i))}return e}function hn(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){T.__e(i,n)}}function Br(e,t,n){var r,i;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||hn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){T.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Br(r[i],t,n||typeof e.type!="function");n||un(e.__e),e.__c=e.__=e.__e=void 0}function Fo(e,t,n){return this.constructor(e,n)}function Ke(e,t,n){var r,i,s,o;t==document&&(t=document.documentElement),T.__&&T.__(e,t),i=(r=!1)?null:t.__k,s=[],o=[],dn(t,e=t.__k=mt(Ae,null,[e]),i||ht,ht,t.namespaceURI,i?null:t.firstChild?B.call(t.childNodes):null,s,i?i.__e:t.firstChild,r,o),Dr(s,e,o)}B=$r.slice,T={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},ft=0,Cr=function(e){return e!=null&&e.constructor==null},_e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Te({},this.state),typeof e=="function"&&(e=e(Te({},n),this.props)),e&&Te(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fr(this))},_e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fr(this))},_e.prototype.render=Ae,Ne=[],Vr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pr=function(e,t){return e.__v.__b-t.__v.__b},$t.__r=0,Rr=/(PointerCapture)$|Capture$/i,an=0,ln=Lr(!1),cn=Lr(!0);var No=0;function P(e,t,n,r,i,s){t||(t={});var o,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?o=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--No,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(o=e.defaultProps))for(a in o)l[a]===void 0&&(l[a]=o[a]);return T.vnode&&T.vnode(c),c}const Wr=`/*
|
|
2
2
|
* Scoped styles for the embedded iframe element. These live in the Shadow DOM
|
|
3
3
|
* and are injected using constructable style sheets when supported.
|
|
4
4
|
*/
|
|
@@ -160,9 +160,9 @@ var SqueletteWidgetBundle=function(q){"use strict";var vd=Object.defineProperty;
|
|
|
160
160
|
max-height: min(85vh, 720px);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`,ei=new Map,jo=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function zt(e,t){var r;if(!t)return;if(jo){let i=(r=ei.get(t))!=null?r:null;i||(i=new CSSStyleSheet,i.replaceSync(t),ei.set(t,i)),e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return}const n=document.createElement("style");n.textContent=t,e.appendChild(n)}function Go(e){zt(e,Uo)}function Ko(e,t,n){n?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function ti(e){return e?e.toLowerCase():"en"}function ni(e){return e==="light"||e==="dark"?e:"auto"}function Bt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function ri(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const n=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${n}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Ho(e,t){const n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{e.dataset.theme=i?"dark":"light"};if(t==="auto"){r(n.matches);const i=s=>r(s.matches);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}return e.dataset.theme=t,()=>{}}const wn={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},xn={width:400,height:540};function kn(e,t){var i;const{width:n,height:r}=(i=wn[t])!=null?i:xn;e.style.setProperty("--sq-panel-width",`${n}px`),e.style.setProperty("--sq-panel-height",`${r}px`)}function Yo(e){const t=document.body.style;{const n={overflow:t.overflow,paddingRight:t.paddingRight},r=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",r>0&&(t.paddingRight=`${r}px`),()=>{t.overflow=n.overflow,t.paddingRight=n.paddingRight}}}class ii extends HTMLElement{constructor(){super();ne(this,N,{project:null,board:null,theme:"auto",locale:"en",apiBase:vn,label:Dt,view:"feedback"});ne(this,$e,!1);ne(this,ct,!1);ne(this,de,!1);ne(this,qe);ne(this,je);ne(this,ut,null);ne(this,Et,null);ne(this,le,null);ne(this,ge,null);ne(this,be,null);ne(this,oe,null);ne(this,Vt,null);ne(this,dt,new Wo);ne(this,Ve,null);Pt(this,"ensureFrameModule",async()=>{var n,r,i;if(!(g(this,ut)||g(this,ct))){L(this,ct,!0),this.render();try{(n=g(this,Et))!=null||L(this,Et,Promise.resolve().then(()=>_d));const s=await g(this,Et),o=(r=s.WidgetFrame)!=null?r:s.default;if(!o)throw new Error("[SqueletteWidget] Widget app missing export");L(this,ut,o),zt(g(this,qe),(i=s.stylesText)!=null?i:Wr)}catch(s){console.error("[SqueletteWidget] Failed to load widget app",s)}finally{L(this,ct,!1),this.render()}}});Pt(this,"handleFrameLoaded",()=>{L(this,de,!0),L(this,Ve,g(this,qe).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,qe,this.attachShadow({mode:"open"})),L(this,je,document.createElement("div")),Go(g(this,qe)),g(this,qe).appendChild(g(this,je)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var r,i,s;g(this,N).project=this.getAttribute("project"),g(this,N).board=this.getAttribute("board"),g(this,N).theme=ni(this.getAttribute("theme")),g(this,N).locale=ti(this.getAttribute("locale")),g(this,N).token=(r=this.getAttribute("token"))!=null?r:void 0,g(this,N).signature=(i=this.getAttribute("signature"))!=null?i:void 0,g(this,N).label=(s=this.getAttribute("label"))!=null?s:Dt,g(this,N).view=Bt(this.getAttribute("view"));const n=this.getAttribute("api-base");g(this,N).apiBase=n&&n.length>0?n:g(this,N).apiBase,this.applyTheme(g(this,N).theme),kn(this,g(this,N).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,be,o=>{if(!g(this,N).project||!o.data||typeof o.data!="object")return;try{const c=new URL(g(this,N).apiBase).origin;if(o.origin!==c)return}catch{return}const a=o.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&g(this,dt).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",g(this,be)),L(this,ge,o=>{var l;L(this,Vt,(l=o.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",g(this,ge)),this.render()}disconnectedCallback(){g(this,be)&&(window.removeEventListener("message",g(this,be)),L(this,be,null)),g(this,le)&&(g(this,le).call(this),L(this,le,null)),g(this,ge)&&(window.removeEventListener("squelette:identity",g(this,ge)),L(this,ge,null)),g(this,oe)&&(g(this,oe).call(this),L(this,oe,null))}attributeChangedCallback(n,r,i){if(n==="open"){if(g(this,$e)===(i!==null))return;this.setOpen(i!==null,"attribute");return}switch(n){case"project":g(this,N).project=i,L(this,de,!1);break;case"board":g(this,N).board=i,L(this,de,!1);break;case"locale":g(this,N).locale=ti(i),L(this,de,!1);break;case"theme":g(this,N).theme=ni(i),this.applyTheme(g(this,N).theme);break;case"token":g(this,N).token=i!=null?i:void 0,L(this,de,!1);break;case"signature":g(this,N).signature=i!=null?i:void 0,L(this,de,!1);break;case"label":g(this,N).label=i!=null?i:Dt;break;case"view":g(this,N).view=Bt(i),L(this,de,!1),kn(this,g(this,N).view);break;case"api-base":g(this,N).apiBase=i&&i.length>0?i:vn,L(this,de,!1);break}n!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!g(this,$e),"api")}on(n,r){return n==="submit"&&!g(this,N).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),g(this,dt).on(n,r)}async destroy(){Ke(null,g(this,je)),g(this,be)&&(window.removeEventListener("message",g(this,be)),L(this,be,null)),g(this,le)&&(g(this,le).call(this),L(this,le,null)),g(this,ge)&&(window.removeEventListener("squelette:identity",g(this,ge)),L(this,ge,null)),this.parentNode&&this.parentNode.removeChild(this),g(this,oe)&&(g(this,oe).call(this),L(this,oe,null))}render(){const n=ri(g(this,N));Ke(P(zo,{open:g(this,$e),label:g(this,N).label,iframeSrc:n,FrameComponent:g(this,ut),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),g(this,je))}async setOpen(n,r){if(n&&!g(this,N).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(g(this,$e)!==n){if(L(this,$e,n),Ko(this,"open",n),n)g(this,oe)||L(this,oe,Yo()),kn(this,g(this,N).view);else{g(this,oe)&&(g(this,oe).call(this),L(this,oe,null)),L(this,de,!1);const i=ri(g(this,N));i&&g(this,Ve)&&(g(this,Ve).src=i)}this.render(),g(this,dt).emit(n?"open":"close",{source:r})}}applyTheme(n){g(this,le)&&(g(this,le).call(this),L(this,le,null)),L(this,le,Ho(this,n))}postIdentityToFrame(){if(!(!g(this,Ve)||!g(this,Ve).contentWindow))try{const n=new URL(g(this,N).apiBase).origin;g(this,Ve).contentWindow.postMessage({type:"squelette-identify",payload:g(this,Vt)},n)}catch(n){console.warn("[SqueletteWidget] Unable to forward identity payload",n)}}}N=new WeakMap,$e=new WeakMap,ct=new WeakMap,de=new WeakMap,qe=new WeakMap,je=new WeakMap,ut=new WeakMap,Et=new WeakMap,le=new WeakMap,ge=new WeakMap,be=new WeakMap,oe=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Ve=new WeakMap;function Sn(){customElements.get(yn)||customElements.define(yn,ii)}let Wt=null;function si(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function oi(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}Wt=e,si(Wt)}function ai(){Wt=null,si(null)}function li(){return Wt}function Tn(e,t,n){const r=Math.max(t,n);return Math.min(Math.max(e,t),r)}function Xo(e,t){var E,I;const n=[],r=(E=t.position)!=null?E:"top",i=(I=t.overlayBlur)!=null?I:!0,s=12,o=r.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,d=!1,u=null;const h=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},p=()=>{var ye;if(!c||!l)return;const f=l.getBoundingClientRect(),A=window.innerWidth,$=window.innerHeight,R=Bt(e.getAttribute("view")),W=(ye=wn[R])!=null?ye:xn,J=Math.min(W.width,A-s*2),fe=Math.min(W.height,$-s*2),he=Math.max(s,A-J-s),Q=Math.max(s,$-fe-s),Y=f.top-s,w=$-f.bottom-s;let ie=f.bottom+s,ee=f.left+f.width/2-J/2,ae="top";if(r==="left"||r==="right"){let O=r==="right";const G=f.right+s,te=f.left-J-s,ce=G+J<=A-s,z=te>=s;O&&!ce&&z?O=!1:!O&&!z&&ce&&(O=!0),O?(ee=G,ae="left"):(ee=te,ae="right");const ke=f.top+f.height/2-fe/2;ie=Tn(ke,s,Q)}else{let O=r==="bottom";r!=="top"&&r!=="bottom"&&(O=w>=Y);const G=f.bottom+s,te=f.top-fe-s,ce=G+fe<=$-s,z=te>=s;O&&!ce&&z?O=!1:!O&&!z&&ce&&(O=!0),O?(ie=G,ae="top"):(ie=te,ae="bottom"),ee=f.left+f.width/2-J/2}ie=Tn(ie,s,Q),ee=Tn(ee,s,he),e.dataset.anchor="button",e.dataset.anchorOrigin=ae,e.style.setProperty("--sq-offset-top",`${Math.round(ie)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(ee)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},b=()=>{c&&requestAnimationFrame(p)},_=()=>{d||(window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),d=!0)},v=()=>{d&&(window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0),d=!1)},m=()=>{!l||o||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),_(),p(),requestAnimationFrame(p))},y=()=>{c=!1,v()};n.push(()=>{y(),h()}),i||(e.dataset.overlayBlur="off",n.push(()=>{delete e.dataset.overlayBlur}));const M=()=>{var O;if(!o)return;const f=r.match(a);if(!f){console.warn(`[SqueletteWidget] Unsupported position value: ${r}`);return}const[,A,$]=f,R=24,W=Bt(e.getAttribute("view")),J=(O=wn[W])!=null?O:xn,fe=window.innerWidth,he=window.innerHeight,Q=Math.min(J.width,fe-R*2),Y=Math.min(J.height,he-R*2);let w="auto",ie="auto",ee="auto",ae="auto";switch(A){case"top":w=`${R}px`;break;case"bottom":ie=`${R}px`;break;case"center":w=`${Math.max(R,Math.round((he-Y)/2))}px`;break}switch($){case"left":ee=`${R}px`;break;case"right":ae=`${R}px`;break;case"center":ee=`${Math.max(R,Math.round((fe-Q)/2))}px`;break}e.dataset.anchor="fixed";const ye=A==="center"?$==="center"?"bottom":$:A;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=A,e.dataset.fixedHorizontal=$,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",ie),e.style.setProperty("--sq-offset-left",ee),e.style.setProperty("--sq-offset-right",ae)};if(o&&M(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const f=l;e.dataset.launcherHidden="true",n.push(()=>{delete e.dataset.launcherHidden});const A=R=>{R.preventDefault(),R.stopPropagation(),e.toggle()};f.addEventListener("click",A,!1),n.push(()=>f.removeEventListener("click",A,!1));const $=()=>{o?M():requestAnimationFrame(p)};e.addEventListener("squelette:frame-loaded",$),n.push(()=>e.removeEventListener("squelette:frame-loaded",$)),u=R=>{if(!e.hasAttribute("open"))return;const W=R.target;!e.contains(W)&&!f.contains(W)&&e.close()},document.addEventListener("click",u,!0),n.push(()=>{u&&(document.removeEventListener("click",u,!0),u=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const C=e.on("open",()=>{o?M():l&&m()}),S=e.on("close",()=>{y()});if(n.push(C,S),t.onOpenChange){const f=e.on("open",()=>{var $;return($=t.onOpenChange)==null?void 0:$.call(t,!0)}),A=e.on("close",()=>{var $;return($=t.onOpenChange)==null?void 0:$.call(t,!1)});n.push(f,A)}if(t.onLoad){const f=()=>{var A;(A=t.onLoad)==null||A.call(t),e.removeEventListener("squelette:frame-loaded",f)};e.addEventListener("squelette:frame-loaded",f),n.push(()=>e.removeEventListener("squelette:frame-loaded",f))}return n}const ci='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.bg-black\\/60{background-color:#0009}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Zo=Symbol.for("preact-signals");function Ut(){if(Pe>1)Pe--;else{for(var e,t=!1;gt!==void 0;){var n=gt;for(gt=void 0,An++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&hi(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(An=0,Pe--,t)throw e}}function ui(e){if(Pe>0)return e();Pe++;try{return e()}finally{Ut()}}var D=void 0;function di(e){var t=D;D=void 0;try{return e()}finally{D=t}}var gt=void 0,Pe=0,An=0,jt=0;function fi(e){if(D!==void 0){var t=e.n;if(t===void 0||t.t!==D)return t={i:0,S:e,p:D.s,n:void 0,t:D,e:void 0,x:void 0,r:t},D.s!==void 0&&(D.s.n=t),D.s=t,e.n=t,32&D.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=D.s,t.n=void 0,D.s.n=t,D.s=t),t}}function Z(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Z.prototype.brand=Zo,Z.prototype.h=function(){return!0},Z.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:di(function(){var r;(r=t.W)==null||r.call(t)}))},Z.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&di(function(){var i;(i=t.Z)==null||i.call(t)}))}},Z.prototype.subscribe=function(e){var t=this;return Xe(function(){var n=t.value,r=D;D=void 0;try{e(n)}finally{D=r}},{name:"sub"})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+""},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){var e=D;D=void 0;try{return this.value}finally{D=e}},Object.defineProperty(Z.prototype,"value",{get:function(){var e=fi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(An>100)throw new Error("Cycle detected");this.v=e,this.i++,jt++,Pe++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ut()}}}});function Ie(e,t){return new Z(e,t)}function hi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function pi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function mi(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Oe(e,t){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=jt-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Oe.prototype=new Z,Oe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jt))return!0;if(this.g=jt,this.f|=1,this.i>0&&!hi(this))return this.f&=-2,!0;var e=D;try{pi(this),D=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return D=e,mi(this),this.f&=-2,!0},Oe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Z.prototype.S.call(this,e)},Oe.prototype.U=function(e){if(this.t!==void 0&&(Z.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Oe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Oe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function gi(e,t){return new Oe(e,t)}function bi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Pe++;var n=D;D=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Mn(e),r}finally{D=n,Ut()}}}function Mn(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bi(e)}function Jo(e){if(D!==this)throw new Error("Out-of-order effect");mi(this),D=e,this.f&=-2,8&this.f&&Mn(this),Ut()}function Ye(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Ye.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Ye.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,bi(this),pi(this),Pe++;var e=D;return D=this,Jo.bind(this,e)},Ye.prototype.N=function(){2&this.f||(this.f|=2,this.o=gt,gt=this)},Ye.prototype.d=function(){this.f|=8,1&this.f||Mn(this)},Ye.prototype.dispose=function(){this.d()};function Xe(e,t){var n=new Ye(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,En,yi=[],_i=[];Xe(function(){Cn=this.N})();function Ze(e,t){T[e]=t.bind(null,T[e]||function(){})}function Gt(e){En&&En(),En=e&&e.S()}function vi(e){var t=this,n=e.data,r=ea(n);r.value=n;var i=mn(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=gi(function(){var p=r.value.value;return p===0?0:p===!0?"":p||""}),d=gi(function(){return!Array.isArray(c.value)&&!Cr(c.value)}),u=Xe(function(){if(this.N=wi,d.value){var p=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),s=i[0],o=i[1];return s.value?o.peek():o.value}vi.displayName="ReactiveTextNode",Object.defineProperties(Z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:vi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ze("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var s=r[i];s instanceof Z&&(n||(t.__np=n={}),n[i]=s,r[i]=s.peek())}}e(t)}),Ze("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==Ae){Gt();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var s;return Xe(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Gt(n)}e(t)}),Ze("__e",function(e,t,n,r){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt(),e(t,n,r)}),Ze("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var s=n.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else s={},n.U=s;for(var l in r){var c=s[l],d=r[l];c===void 0?(c=Qo(n,l,d,i),s[l]=c):c.o(d,i)}}}e(t)});function Qo(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,s=Ie(n);return{o:function(o,a){s.value=o,r=a},d:Xe(function(){this.N=wi;var o=s.value.value;r[t]!==o&&(r[t]=o,i?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Ze("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var s=r[i];s&&s.d()}}}}else{var o=t.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}e(t)}),Ze("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),_e.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var s=2&this.__$f;if(!(r||s||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function ea(e,t){return Ot(function(){return Ie(e,t)})[0]}var ta=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},na=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ra(){ui(function(){for(var e;e=yi.shift();)Cn.call(e)})}function ia(){yi.push(this)===1&&(T.requestAnimationFrame||ta)(ra)}function sa(){ui(function(){for(var e;e=_i.shift();)Cn.call(e)})}function wi(){_i.push(this)===1&&(T.requestAnimationFrame||na)(sa)}function oa(e,t){var n=se(e);n.current=e,ve(function(){return Xe(function(){return this.N=ia,n.current()},t)},[])}function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Le=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Me={},ki=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function la(e){return typeof e=="object"&&e!==null}const Si=e=>/^0[^.\s]+$/u.test(e);function Pn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,ca=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(ca),Fn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ti{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>xi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=e=>e*1e3,pe=e=>e/1e3;function Ai(e,t){return t?e*(1e3/t):0}const ua=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Mi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,da=1e-7,fa=12;function ha(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Mi(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>da&&++a<fa);return o}function bt(e,t,n,r){if(e===t&&n===r)return Je;const i=s=>ha(s,0,1,e,n);return s=>s===0||s===1?s:Mi(i(s),t,r)}const Ci=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ei=e=>t=>1-e(1-t),Vi=bt(.33,1.53,.69,.99),$n=Ei(Vi),Pi=Ci($n),Ri=e=>(e*=2)<1?.5*$n(e):.5*(2-Math.pow(2,-10*(e-1))),qn=e=>1-Math.sin(Math.acos(e)),pa=Ei(qn),Fi=Ci(qn),ma=bt(.42,0,1,1),ga=bt(0,0,.58,1),$i=bt(.42,0,.58,1),qi=e=>Array.isArray(e)&&typeof e[0]!="number";function Ni(e,t){return qi(e)?e[ua(0,e.length,t)]:e}const Ii=e=>Array.isArray(e)&&typeof e[0]=="number",ba={linear:Je,easeIn:ma,easeInOut:$i,easeOut:ga,circIn:qn,circInOut:Fi,circOut:pa,backIn:$n,backInOut:Pi,backOut:Vi,anticipate:Ri},ya=e=>typeof e=="string",Oi=e=>{if(Ii(e)){Vn(e.length===4);const[t,n,r,i]=e;return bt(t,n,r,i)}else if(ya(e))return ba[e];return e},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _a(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const b=h&&i?n:r;return u&&o.add(d),b.has(d)||b.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const va=40;function Li(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Kt.reduce((M,C)=>(M[C]=_a(s),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:b}=o,_=()=>{const M=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,va),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(_))},v=()=>{n=!0,r=!0,i.isProcessing||e(_)};return{schedule:Kt.reduce((M,C)=>{const S=o[C];return M[C]=(E,I=!1,f=!1)=>(n||v(),S.schedule(E,I,f)),M},{}),cancel:M=>{for(let C=0;C<Kt.length;C++)o[Kt[C]].cancel(M)},state:i,steps:o}}const{schedule:Ce,cancel:Nn,state:Ht}=Li(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Je,!0);let Yt;function wa(){Yt=void 0}const ue={now:()=>(Yt===void 0&&ue.set(Ht.isProcessing||Me.useManualTiming?Ht.timestamp:performance.now()),Yt),set:e=>{Yt=e,queueMicrotask(wa)}},Di=e=>t=>typeof t=="string"&&t.startsWith(e),zi=Di("--"),xa=Di("var(--"),In=e=>xa(e)?ka.test(e.split("/*")[0].trim()):!1,ka=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...Qe,transform:e=>Le(0,1,e)},Xt={...Qe,default:1},_t=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sa(e){return e==null}const Ta=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Ta.test(n)&&n.startsWith(e)||t&&!Sa(n)&&Object.prototype.hasOwnProperty.call(n,t)),Bi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(On);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Aa=e=>Le(0,255,e),Dn={...Qe,transform:e=>Math.round(Aa(e))},De={test:Ln("rgb","red"),parse:Bi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dn.transform(e)+", "+Dn.transform(t)+", "+Dn.transform(n)+", "+_t(yt.transform(r))+")"};function Ma(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zn={test:Ln("#"),parse:Ma,transform:De.transform},vt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Re=vt("deg"),et=vt("%"),V=vt("px"),Ca=vt("vh"),Ea=vt("vw"),Wi={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},tt={test:Ln("hsl","hue"),parse:Bi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+et.transform(_t(t))+", "+et.transform(_t(n))+", "+_t(yt.transform(r))+")"},H={test:e=>De.test(e)||zn.test(e)||tt.test(e),parse:e=>De.test(e)?De.parse(e):tt.test(e)?tt.parse(e):zn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?De.transform(e):tt.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Va=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pa(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(On))==null?void 0:t.length)||0)+(((n=e.match(Va))==null?void 0:n.length)||0)>0}const Ui="number",ji="color",Ra="var",Fa="var(",Gi="${}",$a=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace($a,l=>(H.test(l)?(r.color.push(s),i.push(ji),n.push(H.parse(l))):l.startsWith(Fa)?(r.var.push(s),i.push(Ra),n.push(l)):(r.number.push(s),i.push(Ui),n.push(parseFloat(l))),++s,Gi)).split(Gi);return{values:n,split:a,indexes:r,types:i}}function Ki(e){return wt(e).values}function Hi(e){const{split:t,types:n}=wt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Ui?s+=_t(i[o]):a===ji?s+=H.transform(i[o]):s+=i[o]}return s}}const qa=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e;function Na(e){const t=Ki(e);return Hi(e)(t.map(qa))}const nt={test:Pa,parse:Ki,createTransformer:Hi,getAnimatableNone:Na};function Bn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Ia({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Bn(l,a,e+.3333333333333333),s=Bn(l,a,e),o=Bn(l,a,e-.3333333333333333)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Oa=[zn,De,tt],La=e=>Oa.find(t=>t.test(e));function Yi(e){const t=La(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ia(n)),n}const Xi=(e,t)=>{const n=Yi(e),r=Yi(t);if(!n||!r)return Zt(e,t);const i={...n};return s=>(i.red=Wn(n.red,r.red,s),i.green=Wn(n.green,r.green,s),i.blue=Wn(n.blue,r.blue,s),i.alpha=xt(n.alpha,r.alpha,s),De.transform(i))},Un=new Set(["none","hidden"]);function Da(e,t){return Un.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function za(e,t){return n=>xt(e,t,n)}function jn(e){return typeof e=="number"?za:typeof e=="string"?In(e)?Zt:H.test(e)?Xi:Ua:Array.isArray(e)?Zi:typeof e=="object"?H.test(e)?Xi:Ba:Zt}function Zi(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>jn(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Ba(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=jn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Wa(e,t){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][r[o]],l=(i=e.values[a])!=null?i:0;n[s]=l,r[o]++}return n}const Ua=(e,t)=>{const n=nt.createTransformer(t),r=wt(e),i=wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Un.has(e)&&!i.values.length||Un.has(t)&&!r.values.length?Da(e,t):Rn(Zi(Wa(r,i),i.values),n):Zt(e,t)};function Ji(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):jn(e)(e,t)}const ja=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Nn(t),now:()=>Ht.isProcessing?Ht.timestamp:ue.now()}},Qi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jt=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jt;)t+=n,r=e.next(t);return t>=Jt?1/0:t}function es(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Gn(r),Jt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:pe(i)}}const Ga=5;function ts(e,t,n){const r=Math.max(t-Ga,0);return Ai(n-e(r),t-r)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kn=.001;function Ka({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let i,s,o=1-t;o=Le(j.minDamping,j.maxDamping,o),e=Le(j.minDuration,j.maxDuration,pe(e)),o<1?(i=c=>{const d=c*o,u=d*e,h=d-n,p=Hn(c,o),b=Math.exp(-u);return Kn-h/p*b},s=c=>{const u=c*o*e,h=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,b=Math.exp(-u),_=Hn(Math.pow(c,2),o);return(-i(c)+Kn>0?-1:1)*((h-p)*b)/_}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Kn+d*u},s=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Ya(i,s,a);if(e=we(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ha=12;function Ya(e,t,n){let r=n;for(let i=1;i<Ha;i++)r=r-e(r)/t(r);return r}function Hn(e,t){return e*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function ns(e,t){return t.some(n=>e[n]!==void 0)}function Ja(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!ns(e,Za)&&ns(e,Xa))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Le(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:j.mass,stiffness:i,damping:s}}else{const n=Ka(e);t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Ja({...n,velocity:-pe(n.velocity||0)}),b=h||0,_=c/(2*Math.sqrt(l*d)),v=o-s,m=pe(Math.sqrt(l/d)),y=Math.abs(v)<5;r||(r=y?j.restSpeed.granular:j.restSpeed.default),i||(i=y?j.restDelta.granular:j.restDelta.default);let M;if(_<1){const S=Hn(m,_);M=E=>{const I=Math.exp(-_*m*E);return o-I*((b+_*m*v)/S*Math.sin(S*E)+v*Math.cos(S*E))}}else if(_===1)M=S=>o-Math.exp(-m*S)*(v+(b+m*v)*S);else{const S=m*Math.sqrt(_*_-1);M=E=>{const I=Math.exp(-_*m*E),f=Math.min(S*E,300);return o-I*((b+_*m*v)*Math.sinh(f)+S*v*Math.cosh(f))/S}}const C={calculatedDuration:p&&u||null,next:S=>{const E=M(S);if(p)a.done=S>=u;else{let I=S===0?b:0;_<1&&(I=S===0?we(b):ts(M,S,E));const f=Math.abs(I)<=r,A=Math.abs(o-E)<=i;a.done=f&&A}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(Gn(C),Jt),E=Qi(I=>C.next(S*I).value,S,30);return S+"ms "+E},toTransition:()=>{}};return C}kt.applyToOptions=e=>{const t=es(e,100,kt);return e.ease=t.ease,e.duration=we(t.duration),e.type="keyframes",e};function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=f=>a!==void 0&&f<a||l!==void 0&&f>l,b=f=>a===void 0?l:l===void 0||Math.abs(a-f)<Math.abs(l-f)?a:l;let _=n*t;const v=u+_,m=o===void 0?v:o(v);m!==v&&(_=m-u);const y=f=>-_*Math.exp(-f/r),M=f=>m+y(f),C=f=>{const A=y(f),$=M(f);h.done=Math.abs(A)<=c,h.value=h.done?m:$};let S,E;const I=f=>{p(h.value)&&(S=f,E=kt({keyframes:[h.value,b(h.value)],velocity:ts(M,f,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return I(0),{calculatedDuration:null,next:f=>{let A=!1;return!E&&S===void 0&&(A=!0,C(f),I(f)),S!==void 0&&f>=S?E.next(f-S):(!A&&C(f),h)}}}function Qa(e,t,n){const r=[],i=n||Me.mix||Ji,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Je:t;a=Rn(l,a)}r.push(a)}return r}function el(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Vn(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Qa(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=Fn(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Le(e[0],e[s-1],d)):c}function rs(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fn(0,t,r);e.push(xt(n,1,i))}}function is(e){const t=[0];return rs(t,e.length-1),t}function tl(e,t){return e.map(n=>n*t)}function nl(e,t){return e.map(()=>t||$i).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=qi(r)?r.map(Oi):Oi(r),s={done:!1,value:t[0]},o=tl(n&&n.length===t.length?n:is(t),e),a=el(o,t,{ease:Array.isArray(i)?i:nl(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const rl=e=>e!==null;function Xn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(rl),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const il={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function ss(e){typeof e.type=="string"&&(e.type=il[e.type])}class Zn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const sl=e=>e/100;class Jn extends Zn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ss(t);const{type:n=St,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=Rn(sl,Ji(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:b,onUpdate:_,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,C=r;if(u){const f=Math.min(this.currentTime,i)/a;let A=Math.floor(f),$=f%1;!$&&f>=1&&($=1),$===1&&A--,A=Math.min(A,u+1),!!(A%2)&&(h==="reverse"?($=1-$,p&&($-=p/a)):h==="mirror"&&(C=o)),M=Le(0,1,$)*a}const S=y?{done:!1,value:d[0]}:C.next(M);s&&(S.value=s(S.value));let{done:E}=S;!y&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return I&&b!==Yn&&(S.value=Xn(d,this.options,v,this.speed)),_&&_(S.value),I&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){var n;t=we(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ue.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pe(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=ja,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ol(e){var t;for(let n=1;n<e.length;n++)(t=e[n])!=null||(e[n]=e[n-1])}const ze=e=>e*180/Math.PI,Qn=e=>{const t=ze(Math.atan2(e[1],e[0]));return er(t)},al={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>ze(Math.atan(e[1])),skewY:e=>ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},er=e=>(e=e%360,e<0&&(e+=360),e),os=Qn,as=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ls=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ll={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:as,scaleY:ls,scale:e=>(as(e)+ls(e))/2,rotateX:e=>er(ze(Math.atan2(e[6],e[5]))),rotateY:e=>er(ze(Math.atan2(-e[2],e[0]))),rotateZ:os,rotate:os,skewX:e=>ze(Math.atan(e[4])),skewY:e=>ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tr(e){return e.includes("scale")?1:0}function nr(e,t){if(!e||e==="none")return tr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ll,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=al,i=a}if(!i)return tr(t);const s=r[t],o=i[1].split(",").map(ul);return typeof s=="function"?s(o):o[s]}const cl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nr(n,t)};function ul(e){return parseFloat(e.trim())}const rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(rt),cs=e=>e===Qe||e===V,dl=new Set(["x","y","z"]),fl=rt.filter(e=>!dl.has(e));function hl(e){const t=[];return fl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nr(t,"x"),y:(e,{transform:t})=>nr(t,"y")};Be.translateX=Be.x,Be.translateY=Be.y;const We=new Set;let rr=!1,ir=!1,sr=!1;function us(){if(ir){const e=Array.from(We).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=hl(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ir=!1,rr=!1,We.forEach(e=>e.complete(sr)),We.clear()}function ds(){We.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function pl(){sr=!0,ds(),us(),sr=!1}class or{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(We.add(this),rr||(rr=!0,Ce.read(ds),Ce.resolveKeyframes(us))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}ol(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),We.delete(this)}cancel(){this.state==="scheduled"&&(We.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ml=e=>e.startsWith("--");function gl(e,t,n){ml(t)?e.style.setProperty(t,n):e.style[t]=n}const bl=Pn(()=>window.ScrollTimeline!==void 0),yl={};function _l(e,t){const n=Pn(e);return()=>{var r;return(r=yl[t])!=null?r:n()}}const fs=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function ps(e,t){if(e)return typeof e=="function"?fs()?Qi(e,t):"ease-out":Ii(e)?Tt(e):Array.isArray(e)?e.map(n=>ps(n,t)||hs.easeOut):hs[e]}function vl(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=ps(a,i);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function ar(e){return typeof e=="function"&&"applyToOptions"in e}function wl({type:e,...t}){var n,r;return ar(e)&&fs()?e.applyToOptions(t):((n=t.duration)!=null||(t.duration=300),(r=t.ease)!=null||(t.ease="easeOut"),t)}class xl extends Zn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=wl(t);this.animation=vl(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Xn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):gl(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&bl()?(this.animation.timeline=t,Je):n(this)}}const ms={anticipate:Ri,backInOut:Pi,circInOut:Fi};function kl(e){return e in ms}function Sl(e){typeof e.ease=="string"&&kl(e.ease)&&(e.ease=ms[e.ease])}const gs=10;class Tl extends xl{constructor(t){Sl(t),ss(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var c;const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Jn({...o,autoplay:!1}),l=we((c=this.finishedTime)!=null?c:this.time);n.setWithVelocity(a.sample(l-gs).value,a.sample(l).value,gs),a.stop()}}const bs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function Al(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ml(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=bs(i,t),a=bs(s,t);return!o||!a?!1:Al(e)||(n==="spring"||ar(n))&&r}function lr(e){e.duration=0,e.type="keyframes"}const Cl=new Set(["opacity","clipPath","filter","transform"]),El=Pn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vl(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return El()&&n&&Cl.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Pl=40;class Rl extends Zn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){var b;super(),this.stop=()=>{var _,v;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=ue.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...u},p=(d==null?void 0:d.KeyframeResolver)||or;this.keyframeResolver=new p(a,(_,v,m)=>this.onKeyframesResolved(_,v,h,!m),l,c,d),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ue.now(),Ml(t,s,o,a)||((Me.instantAnimations||!l)&&(d==null||d(Xn(t,r,n))),t[0]=t[t.length-1],lr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Vl(h)?new Tl({...h,element:h.motionValue.owner.current}):new Jn(h);p.finished.then(()=>this.notifyFinished()).catch(Je),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),pl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Fl{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ys(this.animations,"duration")}get iterationDuration(){return ys(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ys(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r][t];i!==null&&i>n&&(n=i)}return n}class $l extends Fl{then(t,n){return this.finished.finally(t).then(()=>{})}}const ql=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nl(e){const t=ql.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function _s(e,t,n=1){const[r,i]=Nl(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return ki(o)?parseFloat(o):o}return In(i)?_s(i,t,n+1):i}function vs(e,t){var n,r;return(r=(n=e==null?void 0:e[t])!=null?n:e==null?void 0:e.default)!=null?r:e}const ws=new Set(["width","height","top","left","right","bottom",...rt]),Il={test:e=>e==="auto",parse:e=>e},xs=e=>t=>t.test(e),ks=[Qe,V,et,Re,Ea,Ca,Il],Ss=e=>ks.find(xs(e));function Ol(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Si(e):!0}const Ll=new Set(["brightness","contrast","saturate","opacity"]);function Dl(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(On)||[];if(!r)return e;const i=n.replace(r,"");let s=Ll.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const zl=/\b([a-z-]*)\(.*?\)/gu,cr={...nt,getAnimatableNone:e=>{const t=e.match(zl);return t?t.map(Dl).join(" "):e}},Ts={...Qe,transform:Math.round},ur={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Re,rotateX:Re,rotateY:Re,rotateZ:Re,scale:Xt,scaleX:Xt,scaleY:Xt,scaleZ:Xt,skew:Re,skewX:Re,skewY:Re,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:yt,originX:Wi,originY:Wi,originZ:V},zIndex:Ts,fillOpacity:yt,strokeOpacity:yt,numOctaves:Ts},Bl={...ur,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:cr,WebkitFilter:cr},As=e=>Bl[e];function Ms(e,t){let n=As(e);return n!==cr&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wl=new Set(["auto","none","0"]);function Ul(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Wl.has(s)&&wt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ms(n,i)}class jl extends or{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),In(c))){const d=_s(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ws.has(r)||t.length!==2)return;const[i,s]=t,o=Ss(i),a=Ss(s);if(o!==a)if(cs(o)&&cs(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else Be[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Ol(t[i]))&&r.push(i);r.length&&Ul(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Be[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Gl(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=n==null?void 0:n[e])!=null?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Cs=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Es=30,Kl=e=>!isNaN(parseFloat(e));class Hl{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ue.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ue.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Kl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ti);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Es);return Ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Hl(e,t)}const{schedule:Yl}=Li(queueMicrotask,!1);function Vs(e){return la(e)&&"ownerSVGElement"in e}function Xl(e){return Vs(e)&&e.tagName==="svg"}const re=e=>!!(e&&e.getVelocity),Zl=[...ks,H,nt],Jl=e=>Zl.find(xs(e));function dr(e){return typeof e=="object"&&!Array.isArray(e)}function Ps(e,t,n,r){return typeof e=="string"&&dr(t)?Gl(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ql(e,t,n){return e*(t+1)}function Rs(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):(i=r.get(t))!=null?i:e}function ec(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];i.at>t&&i.at<n&&(xi(e,i),r--)}}function tc(e,t,n,r,i,s){ec(e,i,s);for(let o=0;o<t.length;o++)e.push({value:t[o],at:xt(i,s,r[o]),easing:Ni(n,o)})}function nc(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function rc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ic="easeInOut";function sc(e,{defaultTransition:t={},...n}={},r,i){const s=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let d=0,u=0,h=0;for(let p=0;p<e.length;p++){const b=e[p];if(typeof b=="string"){c.set(b,u);continue}else if(!Array.isArray(b)){c.set(b.name,Rs(u,b.at,d,c));continue}let[_,v,m={}]=b;m.at!==void 0&&(u=Rs(u,m.at,d,c));let y=0;const M=(C,S,E,I=0,f=0)=>{const A=oc(C),{delay:$=0,times:R=is(A),type:W="keyframes",repeat:J,repeatType:fe,repeatDelay:he=0,...Q}=S;let{ease:Y=t.ease||"easeOut",duration:w}=S;const ie=typeof $=="function"?$(I,f):$,ee=A.length,ae=ar(W)?W:i==null?void 0:i[W||"keyframes"];if(ee<=2&&ae){let te=100;if(ee===2&&cc(A)){const ke=A[1]-A[0];te=Math.abs(ke)}const ce={...Q};w!==void 0&&(ce.duration=we(w));const z=es(ce,te,ae);Y=z.ease,w=z.duration}w!=null||(w=s);const ye=u+ie;R.length===1&&R[0]===0&&(R[1]=1);const O=R.length-A.length;if(O>0&&rs(R,O),A.length===1&&A.unshift(null),J){w=Ql(w,J);const te=[...A],ce=[...R];Y=Array.isArray(Y)?[...Y]:[Y];const z=[...Y];for(let ke=0;ke<J;ke++){A.push(...te);for(let Se=0;Se<te.length;Se++)R.push(ce[Se]+(ke+1)),Y.push(Se===0?"linear":Ni(z,Se-1))}nc(R,J)}const G=ye+w;tc(E,A,Y,R,ye,G),y=Math.max(ie+w,y),h=Math.max(G,h)};if(re(_)){const C=Fs(_,a);M(v,m,$s("default",C))}else{const C=Ps(_,v,r,l),S=C.length;for(let E=0;E<S;E++){v=v,m=m;const I=C[E],f=Fs(I,a);for(const A in v)M(v[A],ac(m,A),$s(A,f),E,S)}}d=u,u+=y}return a.forEach((p,b)=>{for(const _ in p){const v=p[_];v.sort(rc);const m=[],y=[],M=[];for(let S=0;S<v.length;S++){const{at:E,value:I,easing:f}=v[S];m.push(I),y.push(Fn(0,h,E)),M.push(f||"easeOut")}y[0]!==0&&(y.unshift(0),m.unshift(m[0]),M.unshift(ic)),y[y.length-1]!==1&&(y.push(1),m.push(null)),o.has(b)||o.set(b,{keyframes:{},transition:{}});const C=o.get(b);C.keyframes[_]=m,C.transition[_]={...t,duration:h,ease:M,times:y,...n}}}),o}function Fs(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function $s(e,t){return t[e]||(t[e]=[]),t[e]}function oc(e){return Array.isArray(e)?e:[e]}function ac(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const lc=e=>typeof e=="number",cc=e=>e.every(lc),Mt=new WeakMap,uc=e=>Array.isArray(e);function qs(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[i,s]=qs(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=qs(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function dc(e,t,n){const r=e.getProps();return Ns(r,t,r.custom,e)}function fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function hc(e){return uc(e)?e[e.length-1]||0:e}function pc(e,t){const n=dc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=hc(s[o]);fc(e,o,a)}}function mc(e){return!!(re(e)&&e.add)}function gc(e,t){const n=e.getValue("willChange");if(mc(n))return n.add(t);if(!n&&Me.WillChange){const r=new Me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}const fr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bc="data-"+fr("framerAppearId");function yc(e){return e.props[bc]}const _c=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_c),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const wc={type:"spring",stiffness:500,damping:25,restSpeed:10},xc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kc={type:"keyframes",duration:.8},Sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tc=(e,{keyframes:t})=>t.length>2?kc:it.has(e)?e.startsWith("scale")?xc(t[1]):wc:Sc;function Ac({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Is=(e,t,n,r={},i,s)=>o=>{const a=vs(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-we(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ac(a)||Object.assign(d,Tc(e,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(lr(d),d.delay===0&&(u=!0)),(Me.instantAnimations||Me.skipAnimations)&&(u=!0,lr(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!s&&t.get()!==void 0){const h=vc(d.keyframes,a);if(h!==void 0){Ce.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Jn(d):new Rl(d)};function Mc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var d;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u,(d=e.latestValues[u])!=null?d:null),p=a[u];if(p===void 0||c&&Mc(c,u))continue;const b={delay:n,...vs(s||{},u)},_=h.get();if(_!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===_&&!b.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=yc(e);if(y){const M=window.MotionHandoffAnimation(y,u,Ce);M!==null&&(b.startTime=M,v=!0)}}gc(e,u),h.start(Is(u,h,p,e.shouldReduceMotion&&ws.has(u)?{type:!1}:b,e,v));const m=h.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{Ce.update(()=>{o&&pc(e,o)})}),l}function Ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pc(e,t){return Ec(Vc(e.getBoundingClientRect(),t))}const Os={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hr={};for(const e in Os)hr[e]={isEnabled:t=>Os[e].some(n=>!!t[n])};const Ls=()=>({min:0,max:0}),pr=()=>({x:Ls(),y:Ls()}),Rc=typeof window!="undefined",mr={current:null},Ds={current:!1};function Fc(){if(Ds.current=!0,!!Rc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mr.current=e.matches;e.addEventListener("change",t),t()}else mr.current=!1}function $c(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qc(e){return typeof e=="string"||Array.isArray(e)}const Nc=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function zs(e){return $c(e.animate)||Nc.some(t=>qc(e[t]))}function Ic(e){return!!(zs(e)||e.variants)}function Oc(e,t,n){for(const r in t){const i=t[r],s=n[r];if(re(i))e.addValue(r,i);else if(re(s))e.addValue(r,At(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,At(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Bs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ws{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ue.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Ce.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=zs(n),this.isVariantNode=Ic(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const p=u[h];l[h]!==void 0&&re(p)&&p.set(l[h])}}mount(t){var n;this.current=t,Mt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Ds.current||Fc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){var n;this.children.add(t),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=it.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hr){const n=hr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Bs.length;r++){const i=Bs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Oc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ki(r)||Si(r))?r=parseFloat(r):!Jl(r)&&nt.test(n)&&(r=Ms(t,n)),this.setBaseTarget(t,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ns(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!re(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ti),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yl.render(this.render)}}class Us extends Ws{constructor(){super(...arguments),this.KeyframeResolver=jl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Lc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=rt.length;function zc(e,t,n){let r="",i=!0;for(let s=0;s<Dc;s++){const o=rt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Cs(a,ur[o]);if(!l){i=!1;const d=Lc[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function js(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(it.has(l)){o=!0;continue}else if(zi(l)){i[l]=c;continue}else{const d=Cs(c,ur[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=zc(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}function Gs(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}const Bc={};function Wc(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bc[e]||e==="opacity")}function Ks(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(re(r[o])||t.style&&re(t.style[o])||Wc(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Uc(e){return window.getComputedStyle(e)}class jc extends Us{constructor(){super(...arguments),this.type="html",this.renderInstance=Gs}readValueFromInstance(t,n){var r;if(it.has(n))return(r=this.projection)!=null&&r.isProjecting?tr(n):cl(t,n);{const i=Uc(t),s=(zi(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pc(t,n)}build(t,n,r){js(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ks(t,n,r)}}function Gc(e,t){return e in t}class Kc extends Ws{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Gc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return pr()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yc={offset:"strokeDashoffset",array:"strokeDasharray"};function Xc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Hc:Yc;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function Zc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){var p,b;if(js(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=(p=u.transformOrigin)!=null?p:"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(b=d==null?void 0:d.transformBox)!=null?b:"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),i!==void 0&&Xc(u,i,s,o,!1)}const Hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){Gs(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hs.has(i)?i:fr(i),t.attrs[i])}function eu(e,t,n){const r=Ks(e,t,n);for(const i in e)if(re(e[i])||re(t[i])){const s=rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class tu extends Us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const r=As(n);return r&&r.default||0}return n=Hs.has(n)?n:fr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eu(t,n,r)}build(t,n,r){Zc(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Qc(t,n,r,i)}mount(t){this.isSVGTag=Jc(t.tagName),super.mount(t)}}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Vs(e)&&!Xl(e)?new tu(t):new jc(t);n.mount(e),Mt.set(e,n)}function ru(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kc(t);n.mount(e),Mt.set(e,n)}function iu(e,t,n){const r=re(e)?e:At(e);return r.start(Is("",r,t,n)),r.animation}function su(e,t){return re(e)||typeof e=="number"||typeof e=="string"&&!dr(t)}function Ys(e,t,n,r){const i=[];if(su(e,t))i.push(iu(e,dr(t)&&t.default||t,n&&(n.default||n)));else{const s=Ps(e,t,r),o=s.length;for(let a=0;a<o;a++){const l=s[a],c=l instanceof Element?nu:ru;Mt.has(l)||c(l);const d=Mt.get(l),u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(a,o)),i.push(...Cc(d,{...t,transition:u},{}))}}return i}function ou(e,t,n){const r=[];return sc(e,t,n,{spring:kt}).forEach(({keyframes:s,transition:o},a)=>{r.push(...Ys(a,s,o))}),r}function au(e){return Array.isArray(e)&&e.some(Array.isArray)}function lu(e){function t(n,r,i){let s=[],o;if(au(n))s=ou(n,r,e);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),s=Ys(n,r,c,e)}const a=new $l(s);return o&&a.finished.then(o),a}return t}const xe=lu();function Xs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=" "),r+=t);return r}const gr="-",uu=e=>{const t=fu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(gr);return a[0]===""&&a.length!==1&&a.shift(),Zs(a,t)||du(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Zs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Zs(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(gr);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Js=/^\[(.+)\]$/,du=e=>{if(Js.test(e)){const t=Js.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fu=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)br(n[i],r,i,t);return r},br=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Qs(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(hu(i)){br(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{br(o,Qs(t,s),n,r)})})},Qs=(e,t)=>{let n=e;return t.split(gr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hu=e=>e.isThemeGetter,pu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},yr="!",_r=":",mu=_r.length,gu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,c;for(let b=0;b<i.length;b++){let _=i[b];if(o===0&&a===0){if(_===_r){s.push(i.slice(l,b)),l=b+mu;continue}if(_==="/"){c=b;continue}}_==="["?o++:_==="]"?o--:_==="("?a++:_===")"&&a--}const d=s.length===0?i:i.substring(l),u=bu(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+_r,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},bu=e=>e.endsWith(yr)?e.substring(0,e.length-1):e.startsWith(yr)?e.substring(1):e,yu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},_u=e=>({cache:pu(e.cacheSize),parseClassName:gu(e),sortModifiers:yu(e),...uu(e)}),vu=/\s+/,wu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(vu);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:_}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!_,m=r(v?b.substring(0,_):b);if(!m){if(!v){l=d+(l.length>0?" "+l:l);continue}if(m=r(b),!m){l=d+(l.length>0?" "+l:l);continue}v=!1}const y=s(h).join(":"),M=p?y+yr:y,C=M+m;if(o.includes(C))continue;o.push(C);const S=i(m,v);for(let E=0;E<S.length;++E){const I=S[E];o.push(M+I)}l=d+(l.length>0?" "+l:l)}return l};function xu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=eo(t))&&(r&&(r+=" "),r+=n);return r}const eo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=eo(e[r]))&&(n&&(n+=" "),n+=t);return n};function ku(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,u)=>u(d),e());return n=_u(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=wu(l,n);return i(l,d),d}return function(){return s(xu.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},to=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,no=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Su=/^\d+\/\d+$/,Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Au=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,st=e=>Su.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&F(e.slice(0,-1)),Ee=e=>Tu.test(e),Vu=()=>!0,Pu=e=>Au.test(e)&&!Mu.test(e),ro=()=>!1,Ru=e=>Cu.test(e),Fu=e=>Eu.test(e),$u=e=>!x(e)&&!k(e),qu=e=>ot(e,lo,ro),x=e=>to.test(e),Ue=e=>ot(e,co,Pu),wr=e=>ot(e,Du,F),io=e=>ot(e,oo,ro),Nu=e=>ot(e,ao,Fu),Qt=e=>ot(e,uo,Ru),k=e=>no.test(e),Ct=e=>at(e,co),Iu=e=>at(e,zu),so=e=>at(e,oo),Ou=e=>at(e,lo),Lu=e=>at(e,ao),en=e=>at(e,uo,!0),ot=(e,t,n)=>{const r=to.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=no.exec(e);return r?r[1]?t(r[1]):n:!1},oo=e=>e==="position"||e==="percentage",ao=e=>e==="image"||e==="url",lo=e=>e==="length"||e==="size"||e==="bg-size",co=e=>e==="length",Du=e=>e==="number",zu=e=>e==="family-name",uo=e=>e==="shadow",Bu=ku(()=>{const e=X("color"),t=X("font"),n=X("text"),r=X("font-weight"),i=X("tracking"),s=X("leading"),o=X("breakpoint"),a=X("container"),l=X("spacing"),c=X("radius"),d=X("shadow"),u=X("inset-shadow"),h=X("text-shadow"),p=X("drop-shadow"),b=X("blur"),_=X("perspective"),v=X("aspect"),m=X("ease"),y=X("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),k,x],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],f=()=>[k,x,l],A=()=>[st,"full","auto",...f()],$=()=>[Fe,"none","subgrid",k,x],R=()=>["auto",{span:["full",Fe,k,x]},Fe,k,x],W=()=>[Fe,"auto",k,x],J=()=>["auto","min","max","fr",k,x],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...f()],Y=()=>[st,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],w=()=>[e,k,x],ie=()=>[...C(),so,io,{position:[k,x]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",Ou,qu,{size:[k,x]}],ye=()=>[vr,Ct,Ue],O=()=>["","none","full",c,k,x],G=()=>["",F,Ct,Ue],te=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[F,vr,so,io],ke=()=>["","none",b,k,x],Se=()=>["none",F,k,x],sn=()=>["none",F,k,x],Mr=()=>[F,k,x],on=()=>[st,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Vu],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[$u],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",F],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",st,x,k,v]}],container:["container"],columns:[{columns:[F,x,k,a]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",k,x]}],basis:[{basis:[st,"full","auto",a,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,st,"auto","initial","none",x]}],grow:[{grow:["",F,k,x]}],shrink:[{shrink:["",F,k,x]}],order:[{order:[Fe,"first","last","none",k,x]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[a,"screen",...Y()]}],"min-w":[{"min-w":[a,"screen","none",...Y()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Ct,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,x]}],"font-family":[{font:[Iu,x,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,k,x]}],"line-clamp":[{"line-clamp":[F,"none",k,wr]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",k,x]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",k,Ue]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[F,"auto",k,x]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,k,x],radial:["",k,x],conic:[Fe,k,x]},Lu,Nu]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,k,x]}],"outline-w":[{outline:["",F,Ct,Ue]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",d,en,Qt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",u,en,Qt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[F,Ue]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,en,Qt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[F,k,x]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[k,x]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,x]}],filter:[{filter:["","none",k,x]}],blur:[{blur:ke()}],brightness:[{brightness:[F,k,x]}],contrast:[{contrast:[F,k,x]}],"drop-shadow":[{"drop-shadow":["","none",p,en,Qt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",F,k,x]}],"hue-rotate":[{"hue-rotate":[F,k,x]}],invert:[{invert:["",F,k,x]}],saturate:[{saturate:[F,k,x]}],sepia:[{sepia:["",F,k,x]}],"backdrop-filter":[{"backdrop-filter":["","none",k,x]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[F,k,x]}],"backdrop-contrast":[{"backdrop-contrast":[F,k,x]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,k,x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,k,x]}],"backdrop-invert":[{"backdrop-invert":["",F,k,x]}],"backdrop-opacity":[{"backdrop-opacity":[F,k,x]}],"backdrop-saturate":[{"backdrop-saturate":[F,k,x]}],"backdrop-sepia":[{"backdrop-sepia":["",F,k,x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,x]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",k,x]}],ease:[{ease:["linear","initial",m,k,x]}],delay:[{delay:[F,k,x]}],animate:[{animate:["none",y,k,x]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,k,x]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:Mr()}],"skew-x":[{"skew-x":Mr()}],"skew-y":[{"skew-y":Mr()}],transform:[{transform:[k,x,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,x]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,x]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[F,Ct,Ue,wr]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function xr(...e){return Bu(cu(e))}function Wu(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ho(e,t){this.props=e,this.context=t}(ho.prototype=new _e).isPureReactComponent=!0,ho.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var po=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),po&&po(e)};var Uu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Uu(e,t,n,r)};var mo=T.unmount;function go(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Wu({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return go(r,t,n)})),e}function bo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kr(){this.__u=0,this.o=null,this.__b=null}function yo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tn(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),mo&&mo(e)},(kr.prototype=new _e).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=yo(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=bo(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},kr.prototype.componentWillUnmount=function(){this.o=[]},kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=go(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&mt(Ae,null,e.fallback);return i&&(i.__u&=-33),[mt(Ae,null,t.__a?null:e.children),i]};var _o=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ju(e){return this.getChildContext=function(){return e.context},e.children}function Gu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}Ke(mt(ju,{context:t.context},e.__v),t.v)}function Ku(e,t){var n=mt(Gu,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new _e).__a=function(e){var t=this,n=yo(t.__v),r=t.l.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),_o(t,e,r)):i()};n?n(s):s()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=$t(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){_o(e,n,t)})};var Hu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Yu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zu=/[A-Z0-9]/g,Ju=typeof document!="undefined",Qu=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vo=T.event;function ed(){}function td(){return this.cancelBubble}function nd(){return this.defaultPrevented}T.event=function(e){return vo&&(e=vo(e)),e.persist=ed,e.isPropagationStopped=td,e.isDefaultPrevented=nd,e.nativeEvent=e};var rd={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Ju&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qu(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Xu.test(o)&&(o=l):l=o="oninput":s&&Yu.test(o)?o=o.replace(Zu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=$t(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=$t(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Hu,wo&&wo(e)};var xo=T.__r;T.__r=function(e){xo&&xo(e),e.__c};var ko=T.diffed;T.diffed=function(e){ko&&ko(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};const lt=Ie(!1),id=Ie(null);function sd({workspaceSlug:e,theme:t,base:n="https://www.squelette.app"}){const r=se(null),i=se(null),s=se(null),o=se(null),[a,l]=Ot(null),c=se(null),d=se(!1);ve(()=>{const m=document.createElement("div");m.id="squelette-banner-modal-portal",m.style.position="fixed",m.style.inset="0",m.style.zIndex="999999",m.style.pointerEvents="none";const y=m.attachShadow({mode:"open"});return zt(y,ci),document.body.appendChild(m),s.current=m,l(y),()=>{s.current&&(document.body.removeChild(s.current),s.current=null,l(null))}},[]);const u=()=>{var m;if(!(!((m=o.current)!=null&&m.contentWindow)||!c.current))try{const y=new URL(vn).origin;o.current.contentWindow.postMessage({type:"squelette-identify",payload:c.current},y)}catch(y){console.warn("[BannerModal] Failed to send identity to iframe:",y)}};ve(()=>{const m=li();m&&(c.current=m);const y=C=>{var E;const S=C;c.current=(E=S.detail)!=null?E:null,d.current?u():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},M=C=>{var S;((S=C.data)==null?void 0:S.type)==="squelette-iframe-ready"&&(d.current=!0,c.current?u():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",y),window.addEventListener("message",M),()=>{window.removeEventListener("squelette:identity",y),window.removeEventListener("message",M)}},[]);const h=()=>{console.log("[BannerModal] Iframe onLoad event fired")};ve(()=>{if(!(!r.current||!i.current||!a)&<.value){const m=r.current,y=i.current;xe(m,{opacity:1},{duration:.5}),xe(y,{y:0},{type:"spring",mass:.2,damping:20,stiffness:75}),xe(y,{opacity:1},{duration:.2})}},[lt.value,a]);const p=async()=>{if(!r.current||!i.current){lt.value=!1;return}const m=r.current,y=i.current;await Promise.all([xe(m,{opacity:0},{duration:.2}).finished,xe(y,{opacity:0,y:-70},{duration:.2,ease:[.16,1,.3,1]}).finished]),lt.value=!1},b=m=>{m.target===r.current&&p()};if(!a)return null;const _=mn(()=>P("iframe",{ref:o,className:"w-full h-full border-none outline-none border border-red-400",src:`${n}/widget/${e}/changelog/last?theme=${t}`,onLoad:h}),[]),v=P("div",{ref:r,className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center",style:{pointerEvents:lt.value?"auto":"none",opacity:0},onClick:b,children:P("div",{ref:i,className:"bg-white rounded-3xl drop-shadow-xl max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",style:{opacity:0,transform:"translateY(-70px)",height:600},children:_})});return Ku(v,a)}const So=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},od=5*60*1e3,To="squelette_banner_last_ticket",me=Ie(null),nn=Ie(!1),Sr=Ie(!0);function ad({workspaceSlug:e="squelette",theme:t,base:n="https://www.squelette.app"}){const r=se(null),i=se(null);ve(()=>{fd(n,e).then(a=>{if(!a)return;const l=localStorage.getItem(To);(!So()||!l||new Date(a.created_at)>new Date(l))&&(me.value=a,Sr.value=!0)})},[e]),ve(()=>{if(!r.current||!me.value)return;const a=setTimeout(()=>{r.current&&xe(r.current,{y:0,opacity:1},{ease:ud,duration:1,onComplete:()=>{nn.value=!0}})},500);return()=>clearTimeout(a)},[me.value]),ve(()=>{if(!r.current||!i.current)return;let a=null;const l=r.current,c=i.current,d=()=>{if(!c)return null;a=xe(c,{rotate:[0,-15,15,-15,15,0]},{duration:.6,repeat:1/0,repeatType:"reverse"})},u=()=>{a==null||a.stop()};return l.addEventListener("mouseenter",d),l.addEventListener("mouseleave",u),()=>{l.removeEventListener("mouseleave",u),l.removeEventListener("mouseenter",d)}},[me.value]);const s=async()=>{!me.value||!r.current||(nn.value=!1,await new Promise(a=>setTimeout(a,400)),await xe(r.current,{y:"-100%",opacity:0},{duration:.5,ease:[.16,1,.3,1]}).finished,localStorage.setItem(To,me.value.created_at),Sr.value=!1)},o=()=>{me.value&&(id.value=me.value,lt.value=!0,s())};return me.value?P(Ae,{children:[Sr.value&&P("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:P("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:r,onClick:o,children:[P("div",{className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[P("span",{children:"Nouveau"}),P("div",{ref:i,className:"inline",children:P(cd,{className:"size-4"})})]}),P(ld,{onClose:s})]})}),P(sd,{base:n,workspaceSlug:e,theme:t})]}):null}function ld({onClose:e}){const t=se(null),n=se(null);oa(()=>{if(!(!t.current||!n.current))if(nn.value){const i=n.current.scrollWidth;xe(t.current,{width:i+20,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1.2,ease:[.16,1,.3,1]})}else xe(t.current,{width:0,paddingLeft:0,paddingRight:0},{duration:.3,ease:[.16,1,.3,1]})});const r=i=>{i.stopPropagation(),e()};return me.value?P("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0},ref:t,children:P("div",{className:"gap-2 inline-flex items-center",ref:n,children:[P("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:P(hd,{duration:4,gap:16,children:me.value.title})}),P("button",{onClick:r,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:i=>{i.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:i=>{i.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:P(dd,{className:"size-4"})})]})}):null}function cd({className:e}){return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:xr("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[P("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),P("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),P("path",{d:"M8 6v8"})]})}function ud(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}function dd({className:e}){return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:xr("lucide lucide-x-icon lucide-x",e),children:[P("path",{d:"M18 6 6 18"}),P("path",{d:"m6 6 12 12"})]})}async function fd(e,t){var n;try{const r=So();if(r){const a=`squelette_banner_cache_${t}`,l=localStorage.getItem(a);if(l){const{ticket:c,timestamp:d}=JSON.parse(l);if(!(Date.now()-d>od))return c}}const s=await(await fetch(`${e}/api/public/w/${t}/changelog/last`)).json(),o=(n=s==null?void 0:s.ticket)!=null?n:null;if(r&&o){const a=`squelette_banner_cache_${t}`,l={ticket:o,timestamp:Date.now()};localStorage.setItem(a,JSON.stringify(l))}return o}catch(r){return console.error("Error fetching changelog ticket:",r),null}}function hd({children:e,duration:t=50,gap:n=8,className:r,delay:i=.8}){const s=se(null),o=se(null),[a,l]=Ot(0),[c,d]=Ot(0);Oo(()=>{const _=()=>{o.current&&l(Math.ceil(o.current.offsetWidth)),s.current&&d(Math.ceil(s.current.offsetWidth))};_();const v=new ResizeObserver(_),m=new ResizeObserver(_);return o.current&&v.observe(o.current),s.current&&m.observe(s.current),()=>{v.disconnect(),m.disconnect()}},[e,n]);const u=a+n,h=u>0?Math.max(2,Math.ceil((c+u)/u)+1):2,b=u>0?u/50:t;return P(Ae,{children:[P("style",{children:`
|
|
163
|
+
`,ei=new Map,jo=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function zt(e,t){var r;if(!t)return;if(jo){let i=(r=ei.get(t))!=null?r:null;i||(i=new CSSStyleSheet,i.replaceSync(t),ei.set(t,i)),e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return}const n=document.createElement("style");n.textContent=t,e.appendChild(n)}function Go(e){zt(e,Uo)}function Ko(e,t,n){n?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function ti(e){return e?e.toLowerCase():"en"}function ni(e){return e==="light"||e==="dark"?e:"auto"}function Bt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function ri(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const n=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${n}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${n}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Ho(e,t){const n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{e.dataset.theme=i?"dark":"light"};if(t==="auto"){r(n.matches);const i=s=>r(s.matches);return n.addEventListener("change",i),()=>n.removeEventListener("change",i)}return e.dataset.theme=t,()=>{}}const wn={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},xn={width:400,height:540};function kn(e,t){var i;const{width:n,height:r}=(i=wn[t])!=null?i:xn;e.style.setProperty("--sq-panel-width",`${n}px`),e.style.setProperty("--sq-panel-height",`${r}px`)}function Yo(e){const t=document.body.style;{const n={overflow:t.overflow,paddingRight:t.paddingRight},r=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",r>0&&(t.paddingRight=`${r}px`),()=>{t.overflow=n.overflow,t.paddingRight=n.paddingRight}}}class ii extends HTMLElement{constructor(){super();ne(this,N,{project:null,board:null,theme:"auto",locale:"en",apiBase:vn,label:Dt,view:"feedback"});ne(this,qe,!1);ne(this,ct,!1);ne(this,de,!1);ne(this,Fe);ne(this,je);ne(this,ut,null);ne(this,Et,null);ne(this,le,null);ne(this,ge,null);ne(this,be,null);ne(this,oe,null);ne(this,Vt,null);ne(this,dt,new Wo);ne(this,Ve,null);Pt(this,"ensureFrameModule",async()=>{var n,r,i;if(!(g(this,ut)||g(this,ct))){L(this,ct,!0),this.render();try{(n=g(this,Et))!=null||L(this,Et,Promise.resolve().then(()=>_d));const s=await g(this,Et),o=(r=s.WidgetFrame)!=null?r:s.default;if(!o)throw new Error("[SqueletteWidget] Widget app missing export");L(this,ut,o),zt(g(this,Fe),(i=s.stylesText)!=null?i:Wr)}catch(s){console.error("[SqueletteWidget] Failed to load widget app",s)}finally{L(this,ct,!1),this.render()}}});Pt(this,"handleFrameLoaded",()=>{L(this,de,!0),L(this,Ve,g(this,Fe).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,Fe,this.attachShadow({mode:"open"})),L(this,je,document.createElement("div")),Go(g(this,Fe)),g(this,Fe).appendChild(g(this,je)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var r,i,s;g(this,N).project=this.getAttribute("project"),g(this,N).board=this.getAttribute("board"),g(this,N).theme=ni(this.getAttribute("theme")),g(this,N).locale=ti(this.getAttribute("locale")),g(this,N).token=(r=this.getAttribute("token"))!=null?r:void 0,g(this,N).signature=(i=this.getAttribute("signature"))!=null?i:void 0,g(this,N).label=(s=this.getAttribute("label"))!=null?s:Dt,g(this,N).view=Bt(this.getAttribute("view"));const n=this.getAttribute("api-base");g(this,N).apiBase=n&&n.length>0?n:g(this,N).apiBase,this.applyTheme(g(this,N).theme),kn(this,g(this,N).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,be,o=>{if(!g(this,N).project||!o.data||typeof o.data!="object")return;try{const c=new URL(g(this,N).apiBase).origin;if(o.origin!==c)return}catch{return}const a=o.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&g(this,dt).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",g(this,be)),L(this,ge,o=>{var l;L(this,Vt,(l=o.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",g(this,ge)),this.render()}disconnectedCallback(){g(this,be)&&(window.removeEventListener("message",g(this,be)),L(this,be,null)),g(this,le)&&(g(this,le).call(this),L(this,le,null)),g(this,ge)&&(window.removeEventListener("squelette:identity",g(this,ge)),L(this,ge,null)),g(this,oe)&&(g(this,oe).call(this),L(this,oe,null))}attributeChangedCallback(n,r,i){if(n==="open"){if(g(this,qe)===(i!==null))return;this.setOpen(i!==null,"attribute");return}switch(n){case"project":g(this,N).project=i,L(this,de,!1);break;case"board":g(this,N).board=i,L(this,de,!1);break;case"locale":g(this,N).locale=ti(i),L(this,de,!1);break;case"theme":g(this,N).theme=ni(i),this.applyTheme(g(this,N).theme);break;case"token":g(this,N).token=i!=null?i:void 0,L(this,de,!1);break;case"signature":g(this,N).signature=i!=null?i:void 0,L(this,de,!1);break;case"label":g(this,N).label=i!=null?i:Dt;break;case"view":g(this,N).view=Bt(i),L(this,de,!1),kn(this,g(this,N).view);break;case"api-base":g(this,N).apiBase=i&&i.length>0?i:vn,L(this,de,!1);break}n!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!g(this,qe),"api")}on(n,r){return n==="submit"&&!g(this,N).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),g(this,dt).on(n,r)}async destroy(){Ke(null,g(this,je)),g(this,be)&&(window.removeEventListener("message",g(this,be)),L(this,be,null)),g(this,le)&&(g(this,le).call(this),L(this,le,null)),g(this,ge)&&(window.removeEventListener("squelette:identity",g(this,ge)),L(this,ge,null)),this.parentNode&&this.parentNode.removeChild(this),g(this,oe)&&(g(this,oe).call(this),L(this,oe,null))}render(){const n=ri(g(this,N));Ke(P(zo,{open:g(this,qe),label:g(this,N).label,iframeSrc:n,FrameComponent:g(this,ut),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),g(this,je))}async setOpen(n,r){if(n&&!g(this,N).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(g(this,qe)!==n){if(L(this,qe,n),Ko(this,"open",n),n)g(this,oe)||L(this,oe,Yo()),kn(this,g(this,N).view);else{g(this,oe)&&(g(this,oe).call(this),L(this,oe,null)),L(this,de,!1);const i=ri(g(this,N));i&&g(this,Ve)&&(g(this,Ve).src=i)}this.render(),g(this,dt).emit(n?"open":"close",{source:r})}}applyTheme(n){g(this,le)&&(g(this,le).call(this),L(this,le,null)),L(this,le,Ho(this,n))}postIdentityToFrame(){if(!(!g(this,Ve)||!g(this,Ve).contentWindow))try{const n=new URL(g(this,N).apiBase).origin;g(this,Ve).contentWindow.postMessage({type:"squelette-identify",payload:g(this,Vt)},n)}catch(n){console.warn("[SqueletteWidget] Unable to forward identity payload",n)}}}N=new WeakMap,qe=new WeakMap,ct=new WeakMap,de=new WeakMap,Fe=new WeakMap,je=new WeakMap,ut=new WeakMap,Et=new WeakMap,le=new WeakMap,ge=new WeakMap,be=new WeakMap,oe=new WeakMap,Vt=new WeakMap,dt=new WeakMap,Ve=new WeakMap;function Sn(){customElements.get(yn)||customElements.define(yn,ii)}let Wt=null;function si(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function oi(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}Wt=e,si(Wt)}function ai(){Wt=null,si(null)}function li(){return Wt}function Tn(e,t,n){const r=Math.max(t,n);return Math.min(Math.max(e,t),r)}function Xo(e,t){var E,I;const n=[],r=(E=t.position)!=null?E:"top",i=(I=t.overlayBlur)!=null?I:!0,s=12,o=r.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,d=!1,u=null;const h=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},p=()=>{var ye;if(!c||!l)return;const f=l.getBoundingClientRect(),A=window.innerWidth,q=window.innerHeight,R=Bt(e.getAttribute("view")),W=(ye=wn[R])!=null?ye:xn,J=Math.min(W.width,A-s*2),fe=Math.min(W.height,q-s*2),he=Math.max(s,A-J-s),Q=Math.max(s,q-fe-s),Y=f.top-s,w=q-f.bottom-s;let ie=f.bottom+s,ee=f.left+f.width/2-J/2,ae="top";if(r==="left"||r==="right"){let O=r==="right";const G=f.right+s,te=f.left-J-s,ce=G+J<=A-s,z=te>=s;O&&!ce&&z?O=!1:!O&&!z&&ce&&(O=!0),O?(ee=G,ae="left"):(ee=te,ae="right");const ke=f.top+f.height/2-fe/2;ie=Tn(ke,s,Q)}else{let O=r==="bottom";r!=="top"&&r!=="bottom"&&(O=w>=Y);const G=f.bottom+s,te=f.top-fe-s,ce=G+fe<=q-s,z=te>=s;O&&!ce&&z?O=!1:!O&&!z&&ce&&(O=!0),O?(ie=G,ae="top"):(ie=te,ae="bottom"),ee=f.left+f.width/2-J/2}ie=Tn(ie,s,Q),ee=Tn(ee,s,he),e.dataset.anchor="button",e.dataset.anchorOrigin=ae,e.style.setProperty("--sq-offset-top",`${Math.round(ie)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(ee)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},b=()=>{c&&requestAnimationFrame(p)},_=()=>{d||(window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),d=!0)},v=()=>{d&&(window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0),d=!1)},m=()=>{!l||o||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),_(),p(),requestAnimationFrame(p))},y=()=>{c=!1,v()};n.push(()=>{y(),h()}),i||(e.dataset.overlayBlur="off",n.push(()=>{delete e.dataset.overlayBlur}));const M=()=>{var O;if(!o)return;const f=r.match(a);if(!f){console.warn(`[SqueletteWidget] Unsupported position value: ${r}`);return}const[,A,q]=f,R=24,W=Bt(e.getAttribute("view")),J=(O=wn[W])!=null?O:xn,fe=window.innerWidth,he=window.innerHeight,Q=Math.min(J.width,fe-R*2),Y=Math.min(J.height,he-R*2);let w="auto",ie="auto",ee="auto",ae="auto";switch(A){case"top":w=`${R}px`;break;case"bottom":ie=`${R}px`;break;case"center":w=`${Math.max(R,Math.round((he-Y)/2))}px`;break}switch(q){case"left":ee=`${R}px`;break;case"right":ae=`${R}px`;break;case"center":ee=`${Math.max(R,Math.round((fe-Q)/2))}px`;break}e.dataset.anchor="fixed";const ye=A==="center"?q==="center"?"bottom":q:A;e.dataset.anchorOrigin=ye,e.dataset.fixedVertical=A,e.dataset.fixedHorizontal=q,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",ie),e.style.setProperty("--sq-offset-left",ee),e.style.setProperty("--sq-offset-right",ae)};if(o&&M(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const f=l;e.dataset.launcherHidden="true",n.push(()=>{delete e.dataset.launcherHidden});const A=R=>{R.preventDefault(),R.stopPropagation(),e.toggle()};f.addEventListener("click",A,!1),n.push(()=>f.removeEventListener("click",A,!1));const q=()=>{o?M():requestAnimationFrame(p)};e.addEventListener("squelette:frame-loaded",q),n.push(()=>e.removeEventListener("squelette:frame-loaded",q)),u=R=>{if(!e.hasAttribute("open"))return;const W=R.target;!e.contains(W)&&!f.contains(W)&&e.close()},document.addEventListener("click",u,!0),n.push(()=>{u&&(document.removeEventListener("click",u,!0),u=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const C=e.on("open",()=>{o?M():l&&m()}),S=e.on("close",()=>{y()});if(n.push(C,S),t.onOpenChange){const f=e.on("open",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!0)}),A=e.on("close",()=>{var q;return(q=t.onOpenChange)==null?void 0:q.call(t,!1)});n.push(f,A)}if(t.onLoad){const f=()=>{var A;(A=t.onLoad)==null||A.call(t),e.removeEventListener("squelette:frame-loaded",f)};e.addEventListener("squelette:frame-loaded",f),n.push(()=>e.removeEventListener("squelette:frame-loaded",f))}return n}const ci='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.bg-black\\/40{background-color:#0006}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Zo=Symbol.for("preact-signals");function Ut(){if(Pe>1)Pe--;else{for(var e,t=!1;gt!==void 0;){var n=gt;for(gt=void 0,An++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&hi(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(An=0,Pe--,t)throw e}}function ui(e){if(Pe>0)return e();Pe++;try{return e()}finally{Ut()}}var D=void 0;function di(e){var t=D;D=void 0;try{return e()}finally{D=t}}var gt=void 0,Pe=0,An=0,jt=0;function fi(e){if(D!==void 0){var t=e.n;if(t===void 0||t.t!==D)return t={i:0,S:e,p:D.s,n:void 0,t:D,e:void 0,x:void 0,r:t},D.s!==void 0&&(D.s.n=t),D.s=t,e.n=t,32&D.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=D.s,t.n=void 0,D.s.n=t,D.s=t),t}}function Z(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Z.prototype.brand=Zo,Z.prototype.h=function(){return!0},Z.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:di(function(){var r;(r=t.W)==null||r.call(t)}))},Z.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&di(function(){var i;(i=t.Z)==null||i.call(t)}))}},Z.prototype.subscribe=function(e){var t=this;return Xe(function(){var n=t.value,r=D;D=void 0;try{e(n)}finally{D=r}},{name:"sub"})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+""},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){var e=D;D=void 0;try{return this.value}finally{D=e}},Object.defineProperty(Z.prototype,"value",{get:function(){var e=fi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(An>100)throw new Error("Cycle detected");this.v=e,this.i++,jt++,Pe++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ut()}}}});function Ie(e,t){return new Z(e,t)}function hi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function pi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function mi(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Oe(e,t){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=jt-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Oe.prototype=new Z,Oe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jt))return!0;if(this.g=jt,this.f|=1,this.i>0&&!hi(this))return this.f&=-2,!0;var e=D;try{pi(this),D=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return D=e,mi(this),this.f&=-2,!0},Oe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Z.prototype.S.call(this,e)},Oe.prototype.U=function(e){if(this.t!==void 0&&(Z.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Oe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Oe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function gi(e,t){return new Oe(e,t)}function bi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Pe++;var n=D;D=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Mn(e),r}finally{D=n,Ut()}}}function Mn(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bi(e)}function Jo(e){if(D!==this)throw new Error("Out-of-order effect");mi(this),D=e,this.f&=-2,8&this.f&&Mn(this),Ut()}function Ye(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Ye.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Ye.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,bi(this),pi(this),Pe++;var e=D;return D=this,Jo.bind(this,e)},Ye.prototype.N=function(){2&this.f||(this.f|=2,this.o=gt,gt=this)},Ye.prototype.d=function(){this.f|=8,1&this.f||Mn(this)},Ye.prototype.dispose=function(){this.d()};function Xe(e,t){var n=new Ye(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,En,yi=[],_i=[];Xe(function(){Cn=this.N})();function Ze(e,t){T[e]=t.bind(null,T[e]||function(){})}function Gt(e){En&&En(),En=e&&e.S()}function vi(e){var t=this,n=e.data,r=ea(n);r.value=n;var i=mn(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=gi(function(){var p=r.value.value;return p===0?0:p===!0?"":p||""}),d=gi(function(){return!Array.isArray(c.value)&&!Cr(c.value)}),u=Xe(function(){if(this.N=wi,d.value){var p=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),s=i[0],o=i[1];return s.value?o.peek():o.value}vi.displayName="ReactiveTextNode",Object.defineProperties(Z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:vi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Ze("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var s=r[i];s instanceof Z&&(n||(t.__np=n={}),n[i]=s,r[i]=s.peek())}}e(t)}),Ze("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==Ae){Gt();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var s;return Xe(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Gt(n)}e(t)}),Ze("__e",function(e,t,n,r){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt(),e(t,n,r)}),Ze("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Gt();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var s=n.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else s={},n.U=s;for(var l in r){var c=s[l],d=r[l];c===void 0?(c=Qo(n,l,d,i),s[l]=c):c.o(d,i)}}}e(t)});function Qo(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,s=Ie(n);return{o:function(o,a){s.value=o,r=a},d:Xe(function(){this.N=wi;var o=s.value.value;r[t]!==o&&(r[t]=o,i?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Ze("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var s=r[i];s&&s.d()}}}}else{var o=t.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}e(t)}),Ze("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),_e.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var s=2&this.__$f;if(!(r||s||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function ea(e,t){return Ot(function(){return Ie(e,t)})[0]}var ta=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},na=function(e){queueMicrotask(function(){queueMicrotask(e)})};function ra(){ui(function(){for(var e;e=yi.shift();)Cn.call(e)})}function ia(){yi.push(this)===1&&(T.requestAnimationFrame||ta)(ra)}function sa(){ui(function(){for(var e;e=_i.shift();)Cn.call(e)})}function wi(){_i.push(this)===1&&(T.requestAnimationFrame||na)(sa)}function oa(e,t){var n=se(e);n.current=e,ve(function(){return Xe(function(){return this.N=ia,n.current()},t)},[])}function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Le=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Me={},ki=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function la(e){return typeof e=="object"&&e!==null}const Si=e=>/^0[^.\s]+$/u.test(e);function Pn(e){let t;return()=>(t===void 0&&(t=e()),t)}const Je=e=>e,ca=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(ca),$n=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ti{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>xi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=e=>e*1e3,pe=e=>e/1e3;function Ai(e,t){return t?e*(1e3/t):0}const ua=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Mi=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,da=1e-7,fa=12;function ha(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Mi(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>da&&++a<fa);return o}function bt(e,t,n,r){if(e===t&&n===r)return Je;const i=s=>ha(s,0,1,e,n);return s=>s===0||s===1?s:Mi(i(s),t,r)}const Ci=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ei=e=>t=>1-e(1-t),Vi=bt(.33,1.53,.69,.99),qn=Ei(Vi),Pi=Ci(qn),Ri=e=>(e*=2)<1?.5*qn(e):.5*(2-Math.pow(2,-10*(e-1))),Fn=e=>1-Math.sin(Math.acos(e)),pa=Ei(Fn),$i=Ci(Fn),ma=bt(.42,0,1,1),ga=bt(0,0,.58,1),qi=bt(.42,0,.58,1),Fi=e=>Array.isArray(e)&&typeof e[0]!="number";function Ni(e,t){return Fi(e)?e[ua(0,e.length,t)]:e}const Ii=e=>Array.isArray(e)&&typeof e[0]=="number",ba={linear:Je,easeIn:ma,easeInOut:qi,easeOut:ga,circIn:Fn,circInOut:$i,circOut:pa,backIn:qn,backInOut:Pi,backOut:Vi,anticipate:Ri},ya=e=>typeof e=="string",Oi=e=>{if(Ii(e)){Vn(e.length===4);const[t,n,r,i]=e;return bt(t,n,r,i)}else if(ya(e))return ba[e];return e},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _a(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const b=h&&i?n:r;return u&&o.add(d),b.has(d)||b.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const va=40;function Li(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Kt.reduce((M,C)=>(M[C]=_a(s),M),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:b}=o,_=()=>{const M=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,va),1)),i.timestamp=M,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(_))},v=()=>{n=!0,r=!0,i.isProcessing||e(_)};return{schedule:Kt.reduce((M,C)=>{const S=o[C];return M[C]=(E,I=!1,f=!1)=>(n||v(),S.schedule(E,I,f)),M},{}),cancel:M=>{for(let C=0;C<Kt.length;C++)o[Kt[C]].cancel(M)},state:i,steps:o}}const{schedule:Ce,cancel:Nn,state:Ht}=Li(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Je,!0);let Yt;function wa(){Yt=void 0}const ue={now:()=>(Yt===void 0&&ue.set(Ht.isProcessing||Me.useManualTiming?Ht.timestamp:performance.now()),Yt),set:e=>{Yt=e,queueMicrotask(wa)}},Di=e=>t=>typeof t=="string"&&t.startsWith(e),zi=Di("--"),xa=Di("var(--"),In=e=>xa(e)?ka.test(e.split("/*")[0].trim()):!1,ka=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...Qe,transform:e=>Le(0,1,e)},Xt={...Qe,default:1},_t=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sa(e){return e==null}const Ta=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Ta.test(n)&&n.startsWith(e)||t&&!Sa(n)&&Object.prototype.hasOwnProperty.call(n,t)),Bi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(On);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Aa=e=>Le(0,255,e),Dn={...Qe,transform:e=>Math.round(Aa(e))},De={test:Ln("rgb","red"),parse:Bi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dn.transform(e)+", "+Dn.transform(t)+", "+Dn.transform(n)+", "+_t(yt.transform(r))+")"};function Ma(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zn={test:Ln("#"),parse:Ma,transform:De.transform},vt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Re=vt("deg"),et=vt("%"),V=vt("px"),Ca=vt("vh"),Ea=vt("vw"),Wi={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},tt={test:Ln("hsl","hue"),parse:Bi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+et.transform(_t(t))+", "+et.transform(_t(n))+", "+_t(yt.transform(r))+")"},H={test:e=>De.test(e)||zn.test(e)||tt.test(e),parse:e=>De.test(e)?De.parse(e):tt.test(e)?tt.parse(e):zn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?De.transform(e):tt.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Va=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pa(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(On))==null?void 0:t.length)||0)+(((n=e.match(Va))==null?void 0:n.length)||0)>0}const Ui="number",ji="color",Ra="var",$a="var(",Gi="${}",qa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(qa,l=>(H.test(l)?(r.color.push(s),i.push(ji),n.push(H.parse(l))):l.startsWith($a)?(r.var.push(s),i.push(Ra),n.push(l)):(r.number.push(s),i.push(Ui),n.push(parseFloat(l))),++s,Gi)).split(Gi);return{values:n,split:a,indexes:r,types:i}}function Ki(e){return wt(e).values}function Hi(e){const{split:t,types:n}=wt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Ui?s+=_t(i[o]):a===ji?s+=H.transform(i[o]):s+=i[o]}return s}}const Fa=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e;function Na(e){const t=Ki(e);return Hi(e)(t.map(Fa))}const nt={test:Pa,parse:Ki,createTransformer:Hi,getAnimatableNone:Na};function Bn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Ia({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Bn(l,a,e+.3333333333333333),s=Bn(l,a,e),o=Bn(l,a,e-.3333333333333333)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Wn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Oa=[zn,De,tt],La=e=>Oa.find(t=>t.test(e));function Yi(e){const t=La(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ia(n)),n}const Xi=(e,t)=>{const n=Yi(e),r=Yi(t);if(!n||!r)return Zt(e,t);const i={...n};return s=>(i.red=Wn(n.red,r.red,s),i.green=Wn(n.green,r.green,s),i.blue=Wn(n.blue,r.blue,s),i.alpha=xt(n.alpha,r.alpha,s),De.transform(i))},Un=new Set(["none","hidden"]);function Da(e,t){return Un.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function za(e,t){return n=>xt(e,t,n)}function jn(e){return typeof e=="number"?za:typeof e=="string"?In(e)?Zt:H.test(e)?Xi:Ua:Array.isArray(e)?Zi:typeof e=="object"?H.test(e)?Xi:Ba:Zt}function Zi(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>jn(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Ba(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=jn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Wa(e,t){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][r[o]],l=(i=e.values[a])!=null?i:0;n[s]=l,r[o]++}return n}const Ua=(e,t)=>{const n=nt.createTransformer(t),r=wt(e),i=wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Un.has(e)&&!i.values.length||Un.has(t)&&!r.values.length?Da(e,t):Rn(Zi(Wa(r,i),i.values),n):Zt(e,t)};function Ji(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):jn(e)(e,t)}const ja=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Nn(t),now:()=>Ht.isProcessing?Ht.timestamp:ue.now()}},Qi=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Jt=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jt;)t+=n,r=e.next(t);return t>=Jt?1/0:t}function es(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Gn(r),Jt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:pe(i)}}const Ga=5;function ts(e,t,n){const r=Math.max(t-Ga,0);return Ai(n-e(r),t-r)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kn=.001;function Ka({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let i,s,o=1-t;o=Le(j.minDamping,j.maxDamping,o),e=Le(j.minDuration,j.maxDuration,pe(e)),o<1?(i=c=>{const d=c*o,u=d*e,h=d-n,p=Hn(c,o),b=Math.exp(-u);return Kn-h/p*b},s=c=>{const u=c*o*e,h=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,b=Math.exp(-u),_=Hn(Math.pow(c,2),o);return(-i(c)+Kn>0?-1:1)*((h-p)*b)/_}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Kn+d*u},s=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Ya(i,s,a);if(e=we(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ha=12;function Ya(e,t,n){let r=n;for(let i=1;i<Ha;i++)r=r-e(r)/t(r);return r}function Hn(e,t){return e*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function ns(e,t){return t.some(n=>e[n]!==void 0)}function Ja(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!ns(e,Za)&&ns(e,Xa))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Le(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:j.mass,stiffness:i,damping:s}}else{const n=Ka(e);t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:p}=Ja({...n,velocity:-pe(n.velocity||0)}),b=h||0,_=c/(2*Math.sqrt(l*d)),v=o-s,m=pe(Math.sqrt(l/d)),y=Math.abs(v)<5;r||(r=y?j.restSpeed.granular:j.restSpeed.default),i||(i=y?j.restDelta.granular:j.restDelta.default);let M;if(_<1){const S=Hn(m,_);M=E=>{const I=Math.exp(-_*m*E);return o-I*((b+_*m*v)/S*Math.sin(S*E)+v*Math.cos(S*E))}}else if(_===1)M=S=>o-Math.exp(-m*S)*(v+(b+m*v)*S);else{const S=m*Math.sqrt(_*_-1);M=E=>{const I=Math.exp(-_*m*E),f=Math.min(S*E,300);return o-I*((b+_*m*v)*Math.sinh(f)+S*v*Math.cosh(f))/S}}const C={calculatedDuration:p&&u||null,next:S=>{const E=M(S);if(p)a.done=S>=u;else{let I=S===0?b:0;_<1&&(I=S===0?we(b):ts(M,S,E));const f=Math.abs(I)<=r,A=Math.abs(o-E)<=i;a.done=f&&A}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(Gn(C),Jt),E=Qi(I=>C.next(S*I).value,S,30);return S+"ms "+E},toTransition:()=>{}};return C}kt.applyToOptions=e=>{const t=es(e,100,kt);return e.ease=t.ease,e.duration=we(t.duration),e.type="keyframes",e};function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=f=>a!==void 0&&f<a||l!==void 0&&f>l,b=f=>a===void 0?l:l===void 0||Math.abs(a-f)<Math.abs(l-f)?a:l;let _=n*t;const v=u+_,m=o===void 0?v:o(v);m!==v&&(_=m-u);const y=f=>-_*Math.exp(-f/r),M=f=>m+y(f),C=f=>{const A=y(f),q=M(f);h.done=Math.abs(A)<=c,h.value=h.done?m:q};let S,E;const I=f=>{p(h.value)&&(S=f,E=kt({keyframes:[h.value,b(h.value)],velocity:ts(M,f,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return I(0),{calculatedDuration:null,next:f=>{let A=!1;return!E&&S===void 0&&(A=!0,C(f),I(f)),S!==void 0&&f>=S?E.next(f-S):(!A&&C(f),h)}}}function Qa(e,t,n){const r=[],i=n||Me.mix||Ji,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Je:t;a=Rn(l,a)}r.push(a)}return r}function el(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Vn(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Qa(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=$n(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Le(e[0],e[s-1],d)):c}function rs(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=$n(0,t,r);e.push(xt(n,1,i))}}function is(e){const t=[0];return rs(t,e.length-1),t}function tl(e,t){return e.map(n=>n*t)}function nl(e,t){return e.map(()=>t||qi).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Fi(r)?r.map(Oi):Oi(r),s={done:!1,value:t[0]},o=tl(n&&n.length===t.length?n:is(t),e),a=el(o,t,{ease:Array.isArray(i)?i:nl(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const rl=e=>e!==null;function Xn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(rl),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const il={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function ss(e){typeof e.type=="string"&&(e.type=il[e.type])}class Zn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const sl=e=>e/100;class Jn extends Zn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ss(t);const{type:n=St,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=Rn(sl,Ji(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:b,onUpdate:_,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,C=r;if(u){const f=Math.min(this.currentTime,i)/a;let A=Math.floor(f),q=f%1;!q&&f>=1&&(q=1),q===1&&A--,A=Math.min(A,u+1),!!(A%2)&&(h==="reverse"?(q=1-q,p&&(q-=p/a)):h==="mirror"&&(C=o)),M=Le(0,1,q)*a}const S=y?{done:!1,value:d[0]}:C.next(M);s&&(S.value=s(S.value));let{done:E}=S;!y&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return I&&b!==Yn&&(S.value=Xn(d,this.options,v,this.speed)),_&&_(S.value),I&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){var n;t=we(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ue.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pe(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=ja,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ol(e){var t;for(let n=1;n<e.length;n++)(t=e[n])!=null||(e[n]=e[n-1])}const ze=e=>e*180/Math.PI,Qn=e=>{const t=ze(Math.atan2(e[1],e[0]));return er(t)},al={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>ze(Math.atan(e[1])),skewY:e=>ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},er=e=>(e=e%360,e<0&&(e+=360),e),os=Qn,as=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ls=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ll={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:as,scaleY:ls,scale:e=>(as(e)+ls(e))/2,rotateX:e=>er(ze(Math.atan2(e[6],e[5]))),rotateY:e=>er(ze(Math.atan2(-e[2],e[0]))),rotateZ:os,rotate:os,skewX:e=>ze(Math.atan(e[4])),skewY:e=>ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tr(e){return e.includes("scale")?1:0}function nr(e,t){if(!e||e==="none")return tr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ll,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=al,i=a}if(!i)return tr(t);const s=r[t],o=i[1].split(",").map(ul);return typeof s=="function"?s(o):o[s]}const cl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nr(n,t)};function ul(e){return parseFloat(e.trim())}const rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(rt),cs=e=>e===Qe||e===V,dl=new Set(["x","y","z"]),fl=rt.filter(e=>!dl.has(e));function hl(e){const t=[];return fl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nr(t,"x"),y:(e,{transform:t})=>nr(t,"y")};Be.translateX=Be.x,Be.translateY=Be.y;const We=new Set;let rr=!1,ir=!1,sr=!1;function us(){if(ir){const e=Array.from(We).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=hl(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ir=!1,rr=!1,We.forEach(e=>e.complete(sr)),We.clear()}function ds(){We.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ir=!0)})}function pl(){sr=!0,ds(),us(),sr=!1}class or{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(We.add(this),rr||(rr=!0,Ce.read(ds),Ce.resolveKeyframes(us))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}ol(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),We.delete(this)}cancel(){this.state==="scheduled"&&(We.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ml=e=>e.startsWith("--");function gl(e,t,n){ml(t)?e.style.setProperty(t,n):e.style[t]=n}const bl=Pn(()=>window.ScrollTimeline!==void 0),yl={};function _l(e,t){const n=Pn(e);return()=>{var r;return(r=yl[t])!=null?r:n()}}const fs=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function ps(e,t){if(e)return typeof e=="function"?fs()?Qi(e,t):"ease-out":Ii(e)?Tt(e):Array.isArray(e)?e.map(n=>ps(n,t)||hs.easeOut):hs[e]}function vl(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=ps(a,i);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function ar(e){return typeof e=="function"&&"applyToOptions"in e}function wl({type:e,...t}){var n,r;return ar(e)&&fs()?e.applyToOptions(t):((n=t.duration)!=null||(t.duration=300),(r=t.ease)!=null||(t.ease="easeOut"),t)}class xl extends Zn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=wl(t);this.animation=vl(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Xn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):gl(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=we(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&bl()?(this.animation.timeline=t,Je):n(this)}}const ms={anticipate:Ri,backInOut:Pi,circInOut:$i};function kl(e){return e in ms}function Sl(e){typeof e.ease=="string"&&kl(e.ease)&&(e.ease=ms[e.ease])}const gs=10;class Tl extends xl{constructor(t){Sl(t),ss(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var c;const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Jn({...o,autoplay:!1}),l=we((c=this.finishedTime)!=null?c:this.time);n.setWithVelocity(a.sample(l-gs).value,a.sample(l).value,gs),a.stop()}}const bs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function Al(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ml(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=bs(i,t),a=bs(s,t);return!o||!a?!1:Al(e)||(n==="spring"||ar(n))&&r}function lr(e){e.duration=0,e.type="keyframes"}const Cl=new Set(["opacity","clipPath","filter","transform"]),El=Pn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vl(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return El()&&n&&Cl.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Pl=40;class Rl extends Zn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){var b;super(),this.stop=()=>{var _,v;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=ue.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...u},p=(d==null?void 0:d.KeyframeResolver)||or;this.keyframeResolver=new p(a,(_,v,m)=>this.onKeyframesResolved(_,v,h,!m),l,c,d),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ue.now(),Ml(t,s,o,a)||((Me.instantAnimations||!l)&&(d==null||d(Xn(t,r,n))),t[0]=t[t.length-1],lr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&Vl(h)?new Tl({...h,element:h.motionValue.owner.current}):new Jn(h);p.finished.then(()=>this.notifyFinished()).catch(Je),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),pl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class $l{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ys(this.animations,"duration")}get iterationDuration(){return ys(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ys(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r][t];i!==null&&i>n&&(n=i)}return n}class ql extends $l{then(t,n){return this.finished.finally(t).then(()=>{})}}const Fl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nl(e){const t=Fl.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function _s(e,t,n=1){const[r,i]=Nl(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return ki(o)?parseFloat(o):o}return In(i)?_s(i,t,n+1):i}function vs(e,t){var n,r;return(r=(n=e==null?void 0:e[t])!=null?n:e==null?void 0:e.default)!=null?r:e}const ws=new Set(["width","height","top","left","right","bottom",...rt]),Il={test:e=>e==="auto",parse:e=>e},xs=e=>t=>t.test(e),ks=[Qe,V,et,Re,Ea,Ca,Il],Ss=e=>ks.find(xs(e));function Ol(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Si(e):!0}const Ll=new Set(["brightness","contrast","saturate","opacity"]);function Dl(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(On)||[];if(!r)return e;const i=n.replace(r,"");let s=Ll.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const zl=/\b([a-z-]*)\(.*?\)/gu,cr={...nt,getAnimatableNone:e=>{const t=e.match(zl);return t?t.map(Dl).join(" "):e}},Ts={...Qe,transform:Math.round},ur={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Re,rotateX:Re,rotateY:Re,rotateZ:Re,scale:Xt,scaleX:Xt,scaleY:Xt,scaleZ:Xt,skew:Re,skewX:Re,skewY:Re,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:yt,originX:Wi,originY:Wi,originZ:V},zIndex:Ts,fillOpacity:yt,strokeOpacity:yt,numOctaves:Ts},Bl={...ur,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:cr,WebkitFilter:cr},As=e=>Bl[e];function Ms(e,t){let n=As(e);return n!==cr&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wl=new Set(["auto","none","0"]);function Ul(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Wl.has(s)&&wt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ms(n,i)}class jl extends or{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),In(c))){const d=_s(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ws.has(r)||t.length!==2)return;const[i,s]=t,o=Ss(i),a=Ss(s);if(o!==a)if(cs(o)&&cs(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else Be[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Ol(t[i]))&&r.push(i);r.length&&Ul(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Be[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Gl(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=n==null?void 0:n[e])!=null?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Cs=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Es=30,Kl=e=>!isNaN(parseFloat(e));class Hl{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ue.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ue.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Kl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ti);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Es);return Ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Hl(e,t)}const{schedule:Yl}=Li(queueMicrotask,!1);function Vs(e){return la(e)&&"ownerSVGElement"in e}function Xl(e){return Vs(e)&&e.tagName==="svg"}const re=e=>!!(e&&e.getVelocity),Zl=[...ks,H,nt],Jl=e=>Zl.find(xs(e));function dr(e){return typeof e=="object"&&!Array.isArray(e)}function Ps(e,t,n,r){return typeof e=="string"&&dr(t)?Gl(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ql(e,t,n){return e*(t+1)}function Rs(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):(i=r.get(t))!=null?i:e}function ec(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];i.at>t&&i.at<n&&(xi(e,i),r--)}}function tc(e,t,n,r,i,s){ec(e,i,s);for(let o=0;o<t.length;o++)e.push({value:t[o],at:xt(i,s,r[o]),easing:Ni(n,o)})}function nc(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function rc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ic="easeInOut";function sc(e,{defaultTransition:t={},...n}={},r,i){const s=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let d=0,u=0,h=0;for(let p=0;p<e.length;p++){const b=e[p];if(typeof b=="string"){c.set(b,u);continue}else if(!Array.isArray(b)){c.set(b.name,Rs(u,b.at,d,c));continue}let[_,v,m={}]=b;m.at!==void 0&&(u=Rs(u,m.at,d,c));let y=0;const M=(C,S,E,I=0,f=0)=>{const A=oc(C),{delay:q=0,times:R=is(A),type:W="keyframes",repeat:J,repeatType:fe,repeatDelay:he=0,...Q}=S;let{ease:Y=t.ease||"easeOut",duration:w}=S;const ie=typeof q=="function"?q(I,f):q,ee=A.length,ae=ar(W)?W:i==null?void 0:i[W||"keyframes"];if(ee<=2&&ae){let te=100;if(ee===2&&cc(A)){const ke=A[1]-A[0];te=Math.abs(ke)}const ce={...Q};w!==void 0&&(ce.duration=we(w));const z=es(ce,te,ae);Y=z.ease,w=z.duration}w!=null||(w=s);const ye=u+ie;R.length===1&&R[0]===0&&(R[1]=1);const O=R.length-A.length;if(O>0&&rs(R,O),A.length===1&&A.unshift(null),J){w=Ql(w,J);const te=[...A],ce=[...R];Y=Array.isArray(Y)?[...Y]:[Y];const z=[...Y];for(let ke=0;ke<J;ke++){A.push(...te);for(let Se=0;Se<te.length;Se++)R.push(ce[Se]+(ke+1)),Y.push(Se===0?"linear":Ni(z,Se-1))}nc(R,J)}const G=ye+w;tc(E,A,Y,R,ye,G),y=Math.max(ie+w,y),h=Math.max(G,h)};if(re(_)){const C=$s(_,a);M(v,m,qs("default",C))}else{const C=Ps(_,v,r,l),S=C.length;for(let E=0;E<S;E++){v=v,m=m;const I=C[E],f=$s(I,a);for(const A in v)M(v[A],ac(m,A),qs(A,f),E,S)}}d=u,u+=y}return a.forEach((p,b)=>{for(const _ in p){const v=p[_];v.sort(rc);const m=[],y=[],M=[];for(let S=0;S<v.length;S++){const{at:E,value:I,easing:f}=v[S];m.push(I),y.push($n(0,h,E)),M.push(f||"easeOut")}y[0]!==0&&(y.unshift(0),m.unshift(m[0]),M.unshift(ic)),y[y.length-1]!==1&&(y.push(1),m.push(null)),o.has(b)||o.set(b,{keyframes:{},transition:{}});const C=o.get(b);C.keyframes[_]=m,C.transition[_]={...t,duration:h,ease:M,times:y,...n}}}),o}function $s(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qs(e,t){return t[e]||(t[e]=[]),t[e]}function oc(e){return Array.isArray(e)?e:[e]}function ac(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const lc=e=>typeof e=="number",cc=e=>e.every(lc),Mt=new WeakMap,uc=e=>Array.isArray(e);function Fs(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[i,s]=Fs(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Fs(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function dc(e,t,n){const r=e.getProps();return Ns(r,t,r.custom,e)}function fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function hc(e){return uc(e)?e[e.length-1]||0:e}function pc(e,t){const n=dc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=hc(s[o]);fc(e,o,a)}}function mc(e){return!!(re(e)&&e.add)}function gc(e,t){const n=e.getValue("willChange");if(mc(n))return n.add(t);if(!n&&Me.WillChange){const r=new Me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}const fr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bc="data-"+fr("framerAppearId");function yc(e){return e.props[bc]}const _c=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_c),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const wc={type:"spring",stiffness:500,damping:25,restSpeed:10},xc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kc={type:"keyframes",duration:.8},Sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tc=(e,{keyframes:t})=>t.length>2?kc:it.has(e)?e.startsWith("scale")?xc(t[1]):wc:Sc;function Ac({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Is=(e,t,n,r={},i,s)=>o=>{const a=vs(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-we(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ac(a)||Object.assign(d,Tc(e,d)),d.duration&&(d.duration=we(d.duration)),d.repeatDelay&&(d.repeatDelay=we(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(lr(d),d.delay===0&&(u=!0)),(Me.instantAnimations||Me.skipAnimations)&&(u=!0,lr(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!s&&t.get()!==void 0){const h=vc(d.keyframes,a);if(h!==void 0){Ce.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Jn(d):new Rl(d)};function Mc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var d;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u,(d=e.latestValues[u])!=null?d:null),p=a[u];if(p===void 0||c&&Mc(c,u))continue;const b={delay:n,...vs(s||{},u)},_=h.get();if(_!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===_&&!b.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=yc(e);if(y){const M=window.MotionHandoffAnimation(y,u,Ce);M!==null&&(b.startTime=M,v=!0)}}gc(e,u),h.start(Is(u,h,p,e.shouldReduceMotion&&ws.has(u)?{type:!1}:b,e,v));const m=h.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{Ce.update(()=>{o&&pc(e,o)})}),l}function Ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pc(e,t){return Ec(Vc(e.getBoundingClientRect(),t))}const Os={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hr={};for(const e in Os)hr[e]={isEnabled:t=>Os[e].some(n=>!!t[n])};const Ls=()=>({min:0,max:0}),pr=()=>({x:Ls(),y:Ls()}),Rc=typeof window!="undefined",mr={current:null},Ds={current:!1};function $c(){if(Ds.current=!0,!!Rc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mr.current=e.matches;e.addEventListener("change",t),t()}else mr.current=!1}function qc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fc(e){return typeof e=="string"||Array.isArray(e)}const Nc=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function zs(e){return qc(e.animate)||Nc.some(t=>Fc(e[t]))}function Ic(e){return!!(zs(e)||e.variants)}function Oc(e,t,n){for(const r in t){const i=t[r],s=n[r];if(re(i))e.addValue(r,i);else if(re(s))e.addValue(r,At(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,At(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Bs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ws{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ue.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Ce.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=zs(n),this.isVariantNode=Ic(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const p=u[h];l[h]!==void 0&&re(p)&&p.set(l[h])}}mount(t){var n;this.current=t,Mt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Ds.current||$c(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){var n;this.children.add(t),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=it.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hr){const n=hr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Bs.length;r++){const i=Bs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Oc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!=null?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ki(r)||Si(r))?r=parseFloat(r):!Jl(r)&&nt.test(n)&&(r=Ms(t,n)),this.setBaseTarget(t,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ns(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!re(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ti),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yl.render(this.render)}}class Us extends Ws{constructor(){super(...arguments),this.KeyframeResolver=jl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Lc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=rt.length;function zc(e,t,n){let r="",i=!0;for(let s=0;s<Dc;s++){const o=rt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Cs(a,ur[o]);if(!l){i=!1;const d=Lc[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function js(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(it.has(l)){o=!0;continue}else if(zi(l)){i[l]=c;continue}else{const d=Cs(c,ur[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=zc(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}function Gs(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}const Bc={};function Wc(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bc[e]||e==="opacity")}function Ks(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(re(r[o])||t.style&&re(t.style[o])||Wc(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Uc(e){return window.getComputedStyle(e)}class jc extends Us{constructor(){super(...arguments),this.type="html",this.renderInstance=Gs}readValueFromInstance(t,n){var r;if(it.has(n))return(r=this.projection)!=null&&r.isProjecting?tr(n):cl(t,n);{const i=Uc(t),s=(zi(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pc(t,n)}build(t,n,r){js(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ks(t,n,r)}}function Gc(e,t){return e in t}class Kc extends Ws{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Gc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return pr()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yc={offset:"strokeDashoffset",array:"strokeDasharray"};function Xc(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Hc:Yc;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function Zc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){var p,b;if(js(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=(p=u.transformOrigin)!=null?p:"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(b=d==null?void 0:d.transformBox)!=null?b:"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),i!==void 0&&Xc(u,i,s,o,!1)}const Hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qc(e,t,n,r){Gs(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hs.has(i)?i:fr(i),t.attrs[i])}function eu(e,t,n){const r=Ks(e,t,n);for(const i in e)if(re(e[i])||re(t[i])){const s=rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class tu extends Us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const r=As(n);return r&&r.default||0}return n=Hs.has(n)?n:fr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eu(t,n,r)}build(t,n,r){Zc(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Qc(t,n,r,i)}mount(t){this.isSVGTag=Jc(t.tagName),super.mount(t)}}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Vs(e)&&!Xl(e)?new tu(t):new jc(t);n.mount(e),Mt.set(e,n)}function ru(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kc(t);n.mount(e),Mt.set(e,n)}function iu(e,t,n){const r=re(e)?e:At(e);return r.start(Is("",r,t,n)),r.animation}function su(e,t){return re(e)||typeof e=="number"||typeof e=="string"&&!dr(t)}function Ys(e,t,n,r){const i=[];if(su(e,t))i.push(iu(e,dr(t)&&t.default||t,n&&(n.default||n)));else{const s=Ps(e,t,r),o=s.length;for(let a=0;a<o;a++){const l=s[a],c=l instanceof Element?nu:ru;Mt.has(l)||c(l);const d=Mt.get(l),u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(a,o)),i.push(...Cc(d,{...t,transition:u},{}))}}return i}function ou(e,t,n){const r=[];return sc(e,t,n,{spring:kt}).forEach(({keyframes:s,transition:o},a)=>{r.push(...Ys(a,s,o))}),r}function au(e){return Array.isArray(e)&&e.some(Array.isArray)}function lu(e){function t(n,r,i){let s=[],o;if(au(n))s=ou(n,r,e);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(o=l),s=Ys(n,r,c,e)}const a=new ql(s);return o&&a.finished.then(o),a}return t}const xe=lu();function Xs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=" "),r+=t);return r}const gr="-",uu=e=>{const t=fu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(gr);return a[0]===""&&a.length!==1&&a.shift(),Zs(a,t)||du(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Zs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Zs(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(gr);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Js=/^\[(.+)\]$/,du=e=>{if(Js.test(e)){const t=Js.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fu=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)br(n[i],r,i,t);return r},br=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Qs(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(hu(i)){br(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{br(o,Qs(t,s),n,r)})})},Qs=(e,t)=>{let n=e;return t.split(gr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hu=e=>e.isThemeGetter,pu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},yr="!",_r=":",mu=_r.length,gu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,c;for(let b=0;b<i.length;b++){let _=i[b];if(o===0&&a===0){if(_===_r){s.push(i.slice(l,b)),l=b+mu;continue}if(_==="/"){c=b;continue}}_==="["?o++:_==="]"?o--:_==="("?a++:_===")"&&a--}const d=s.length===0?i:i.substring(l),u=bu(d),h=u!==d,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}};if(t){const i=t+_r,s=r;r=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},bu=e=>e.endsWith(yr)?e.substring(0,e.length-1):e.startsWith(yr)?e.substring(1):e,yu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},_u=e=>({cache:pu(e.cacheSize),parseClassName:gu(e),sortModifiers:yu(e),...uu(e)}),vu=/\s+/,wu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(vu);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:_}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let v=!!_,m=r(v?b.substring(0,_):b);if(!m){if(!v){l=d+(l.length>0?" "+l:l);continue}if(m=r(b),!m){l=d+(l.length>0?" "+l:l);continue}v=!1}const y=s(h).join(":"),M=p?y+yr:y,C=M+m;if(o.includes(C))continue;o.push(C);const S=i(m,v);for(let E=0;E<S.length;++E){const I=S[E];o.push(M+I)}l=d+(l.length>0?" "+l:l)}return l};function xu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=eo(t))&&(r&&(r+=" "),r+=n);return r}const eo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=eo(e[r]))&&(n&&(n+=" "),n+=t);return n};function ku(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,u)=>u(d),e());return n=_u(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=wu(l,n);return i(l,d),d}return function(){return s(xu.apply(null,arguments))}}const X=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},to=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,no=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Su=/^\d+\/\d+$/,Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Au=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,st=e=>Su.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&$(e.slice(0,-1)),Ee=e=>Tu.test(e),Vu=()=>!0,Pu=e=>Au.test(e)&&!Mu.test(e),ro=()=>!1,Ru=e=>Cu.test(e),$u=e=>Eu.test(e),qu=e=>!x(e)&&!k(e),Fu=e=>ot(e,lo,ro),x=e=>to.test(e),Ue=e=>ot(e,co,Pu),wr=e=>ot(e,Du,$),io=e=>ot(e,oo,ro),Nu=e=>ot(e,ao,$u),Qt=e=>ot(e,uo,Ru),k=e=>no.test(e),Ct=e=>at(e,co),Iu=e=>at(e,zu),so=e=>at(e,oo),Ou=e=>at(e,lo),Lu=e=>at(e,ao),en=e=>at(e,uo,!0),ot=(e,t,n)=>{const r=to.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=no.exec(e);return r?r[1]?t(r[1]):n:!1},oo=e=>e==="position"||e==="percentage",ao=e=>e==="image"||e==="url",lo=e=>e==="length"||e==="size"||e==="bg-size",co=e=>e==="length",Du=e=>e==="number",zu=e=>e==="family-name",uo=e=>e==="shadow",Bu=ku(()=>{const e=X("color"),t=X("font"),n=X("text"),r=X("font-weight"),i=X("tracking"),s=X("leading"),o=X("breakpoint"),a=X("container"),l=X("spacing"),c=X("radius"),d=X("shadow"),u=X("inset-shadow"),h=X("text-shadow"),p=X("drop-shadow"),b=X("blur"),_=X("perspective"),v=X("aspect"),m=X("ease"),y=X("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),k,x],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],f=()=>[k,x,l],A=()=>[st,"full","auto",...f()],q=()=>[$e,"none","subgrid",k,x],R=()=>["auto",{span:["full",$e,k,x]},$e,k,x],W=()=>[$e,"auto",k,x],J=()=>["auto","min","max","fr",k,x],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...f()],Y=()=>[st,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],w=()=>[e,k,x],ie=()=>[...C(),so,io,{position:[k,x]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",Ou,Fu,{size:[k,x]}],ye=()=>[vr,Ct,Ue],O=()=>["","none","full",c,k,x],G=()=>["",$,Ct,Ue],te=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[$,vr,so,io],ke=()=>["","none",b,k,x],Se=()=>["none",$,k,x],sn=()=>["none",$,k,x],Mr=()=>[$,k,x],on=()=>[st,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Vu],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[qu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",$],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",st,x,k,v]}],container:["container"],columns:[{columns:[$,x,k,a]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",k,x]}],basis:[{basis:[st,"full","auto",a,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,st,"auto","initial","none",x]}],grow:[{grow:["",$,k,x]}],shrink:[{shrink:["",$,k,x]}],order:[{order:[$e,"first","last","none",k,x]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[a,"screen",...Y()]}],"min-w":[{"min-w":[a,"screen","none",...Y()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Ct,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,x]}],"font-family":[{font:[Iu,x,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,k,x]}],"line-clamp":[{"line-clamp":[$,"none",k,wr]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",k,x]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",k,Ue]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[$,"auto",k,x]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,k,x],radial:["",k,x],conic:[$e,k,x]},Lu,Nu]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,k,x]}],"outline-w":[{outline:["",$,Ct,Ue]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",d,en,Qt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",u,en,Qt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[$,Ue]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,en,Qt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[$,k,x]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[k,x]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,x]}],filter:[{filter:["","none",k,x]}],blur:[{blur:ke()}],brightness:[{brightness:[$,k,x]}],contrast:[{contrast:[$,k,x]}],"drop-shadow":[{"drop-shadow":["","none",p,en,Qt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",$,k,x]}],"hue-rotate":[{"hue-rotate":[$,k,x]}],invert:[{invert:["",$,k,x]}],saturate:[{saturate:[$,k,x]}],sepia:[{sepia:["",$,k,x]}],"backdrop-filter":[{"backdrop-filter":["","none",k,x]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[$,k,x]}],"backdrop-contrast":[{"backdrop-contrast":[$,k,x]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,k,x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,k,x]}],"backdrop-invert":[{"backdrop-invert":["",$,k,x]}],"backdrop-opacity":[{"backdrop-opacity":[$,k,x]}],"backdrop-saturate":[{"backdrop-saturate":[$,k,x]}],"backdrop-sepia":[{"backdrop-sepia":["",$,k,x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,x]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",k,x]}],ease:[{ease:["linear","initial",m,k,x]}],delay:[{delay:[$,k,x]}],animate:[{animate:["none",y,k,x]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,k,x]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:sn()}],"scale-x":[{"scale-x":sn()}],"scale-y":[{"scale-y":sn()}],"scale-z":[{"scale-z":sn()}],"scale-3d":["scale-3d"],skew:[{skew:Mr()}],"skew-x":[{"skew-x":Mr()}],"skew-y":[{"skew-y":Mr()}],transform:[{transform:[k,x,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,x]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,x]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[$,Ct,Ue,wr]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function xr(...e){return Bu(cu(e))}function Wu(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ho(e,t){this.props=e,this.context=t}(ho.prototype=new _e).isPureReactComponent=!0,ho.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var po=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),po&&po(e)};var Uu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Uu(e,t,n,r)};var mo=T.unmount;function go(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Wu({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return go(r,t,n)})),e}function bo(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kr(){this.__u=0,this.o=null,this.__b=null}function yo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tn(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),mo&&mo(e)},(kr.prototype=new _e).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=yo(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=bo(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},kr.prototype.componentWillUnmount=function(){this.o=[]},kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=go(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&mt(Ae,null,e.fallback);return i&&(i.__u&=-33),[mt(Ae,null,t.__a?null:e.children),i]};var _o=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ju(e){return this.getChildContext=function(){return e.context},e.children}function Gu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Ke(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}Ke(mt(ju,{context:t.context},e.__v),t.v)}function Ku(e,t){var n=mt(Gu,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new _e).__a=function(e){var t=this,n=yo(t.__v),r=t.l.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),_o(t,e,r)):i()};n?n(s):s()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=qt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){_o(e,n,t)})};var Hu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Yu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zu=/[A-Z0-9]/g,Ju=typeof document!="undefined",Qu=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var vo=T.event;function ed(){}function td(){return this.cancelBubble}function nd(){return this.defaultPrevented}T.event=function(e){return vo&&(e=vo(e)),e.persist=ed,e.isPropagationStopped=td,e.isDefaultPrevented=nd,e.nativeEvent=e};var rd={enumerable:!1,configurable:!0,get:function(){return this.class}},wo=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Ju&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qu(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Xu.test(o)&&(o=l):l=o="oninput":s&&Yu.test(o)?o=o.replace(Zu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=qt(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Hu,wo&&wo(e)};var xo=T.__r;T.__r=function(e){xo&&xo(e),e.__c};var ko=T.diffed;T.diffed=function(e){ko&&ko(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};const lt=Ie(!1),id=Ie(null);function sd({workspaceSlug:e,theme:t,base:n="https://www.squelette.app"}){const r=se(null),i=se(null),s=se(null),o=se(null),[a,l]=Ot(null),c=se(null),d=se(!1);ve(()=>{const m=document.createElement("div");m.id="squelette-banner-modal-portal",m.style.position="fixed",m.style.inset="0",m.style.zIndex="999999",m.style.pointerEvents="none";const y=m.attachShadow({mode:"open"});return zt(y,ci),document.body.appendChild(m),s.current=m,l(y),()=>{s.current&&(document.body.removeChild(s.current),s.current=null,l(null))}},[]);const u=()=>{var m;if(!(!((m=o.current)!=null&&m.contentWindow)||!c.current))try{const y=new URL(vn).origin;o.current.contentWindow.postMessage({type:"squelette-identify",payload:c.current},y)}catch(y){console.warn("[BannerModal] Failed to send identity to iframe:",y)}};ve(()=>{const m=li();m&&(c.current=m);const y=C=>{var E;const S=C;c.current=(E=S.detail)!=null?E:null,d.current?u():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},M=C=>{var S;((S=C.data)==null?void 0:S.type)==="squelette-iframe-ready"&&(d.current=!0,c.current?u():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",y),window.addEventListener("message",M),()=>{window.removeEventListener("squelette:identity",y),window.removeEventListener("message",M)}},[]);const h=()=>{console.log("[BannerModal] Iframe onLoad event fired")};ve(()=>{if(!(!r.current||!i.current||!a)&<.value){const m=r.current,y=i.current;xe(m,{opacity:1},{duration:.5}),xe(y,{y:0},{type:"spring",mass:.2,damping:20,stiffness:75}),xe(y,{opacity:1},{duration:.2})}},[lt.value,a]);const p=async()=>{if(!r.current||!i.current){lt.value=!1;return}const m=r.current,y=i.current;await Promise.all([xe(m,{opacity:0},{duration:.2}).finished,xe(y,{opacity:0,y:-70},{duration:.2,ease:[.16,1,.3,1]}).finished]),lt.value=!1},b=m=>{m.target===r.current&&p()};if(!a)return null;const _=mn(()=>P("iframe",{ref:o,className:"w-full h-full border-none outline-none",src:`${n}/widget/${e}/changelog/last?theme=${t}`,onLoad:h}),[]),v=P("div",{ref:r,className:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center",style:{pointerEvents:lt.value?"auto":"none",opacity:0},onClick:b,children:P("div",{ref:i,className:"rounded-[32px] shadow-lg max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",style:{opacity:0,transform:"translateY(-70px)",height:650},children:_})});return Ku(v,a)}const So=()=>{try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},od=5*60*1e3,To="squelette_banner_last_ticket",me=Ie(null),nn=Ie(!1),Sr=Ie(!0);function ad({workspaceSlug:e="squelette",theme:t,base:n="https://www.squelette.app"}){const r=se(null),i=se(null);ve(()=>{fd(n,e).then(a=>{if(!a)return;const l=localStorage.getItem(To);(!So()||!l||new Date(a.created_at)>new Date(l))&&(me.value=a,Sr.value=!0)})},[e]),ve(()=>{if(!r.current||!me.value)return;const a=setTimeout(()=>{r.current&&xe(r.current,{y:0,opacity:1},{ease:ud,duration:1,onComplete:()=>{nn.value=!0}})},500);return()=>clearTimeout(a)},[me.value]),ve(()=>{if(!r.current||!i.current)return;let a=null;const l=r.current,c=i.current,d=()=>{if(!c)return null;a=xe(c,{rotate:[0,-15,15,-15,15,0]},{duration:.6,repeat:1/0,repeatType:"reverse"})},u=()=>{a==null||a.stop()};return l.addEventListener("mouseenter",d),l.addEventListener("mouseleave",u),()=>{l.removeEventListener("mouseleave",u),l.removeEventListener("mouseenter",d)}},[me.value]);const s=async()=>{!me.value||!r.current||(nn.value=!1,await new Promise(a=>setTimeout(a,400)),await xe(r.current,{y:"-100%",opacity:0},{duration:.5,ease:[.16,1,.3,1]}).finished,localStorage.setItem(To,me.value.created_at),Sr.value=!1)},o=()=>{me.value&&(id.value=me.value,lt.value=!0,s())};return me.value?P(Ae,{children:[Sr.value&&P("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:P("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:r,onClick:o,children:[P("div",{className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[P("span",{children:"Nouveau"}),P("div",{ref:i,className:"inline",children:P(cd,{className:"size-4"})})]}),P(ld,{onClose:s})]})}),P(sd,{base:n,workspaceSlug:e,theme:t})]}):null}function ld({onClose:e}){const t=se(null),n=se(null);oa(()=>{if(!(!t.current||!n.current))if(nn.value){const i=n.current.scrollWidth;xe(t.current,{width:i+20,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1.2,ease:[.16,1,.3,1]})}else xe(t.current,{width:0,paddingLeft:0,paddingRight:0},{duration:.3,ease:[.16,1,.3,1]})});const r=i=>{i.stopPropagation(),e()};return me.value?P("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0},ref:t,children:P("div",{className:"gap-2 inline-flex items-center",ref:n,children:[P("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:P(hd,{duration:4,gap:16,children:me.value.title})}),P("button",{onClick:r,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:i=>{i.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:i=>{i.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:P(dd,{className:"size-4"})})]})}):null}function cd({className:e}){return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:xr("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[P("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),P("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),P("path",{d:"M8 6v8"})]})}function ud(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}function dd({className:e}){return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:xr("lucide lucide-x-icon lucide-x",e),children:[P("path",{d:"M18 6 6 18"}),P("path",{d:"m6 6 12 12"})]})}async function fd(e,t){var n;try{const r=So();if(r){const a=`squelette_banner_cache_${t}`,l=localStorage.getItem(a);if(l){const{ticket:c,timestamp:d}=JSON.parse(l);if(!(Date.now()-d>od))return c}}const s=await(await fetch(`${e}/api/public/w/${t}/changelog/last`)).json(),o=(n=s==null?void 0:s.ticket)!=null?n:null;if(r&&o){const a=`squelette_banner_cache_${t}`,l={ticket:o,timestamp:Date.now()};localStorage.setItem(a,JSON.stringify(l))}return o}catch(r){return console.error("Error fetching changelog ticket:",r),null}}function hd({children:e,duration:t=50,gap:n=8,className:r,delay:i=.8}){const s=se(null),o=se(null),[a,l]=Ot(0),[c,d]=Ot(0);Oo(()=>{const _=()=>{o.current&&l(Math.ceil(o.current.offsetWidth)),s.current&&d(Math.ceil(s.current.offsetWidth))};_();const v=new ResizeObserver(_),m=new ResizeObserver(_);return o.current&&v.observe(o.current),s.current&&m.observe(s.current),()=>{v.disconnect(),m.disconnect()}},[e,n]);const u=a+n,h=u>0?Math.max(2,Math.ceil((c+u)/u)+1):2,b=u>0?u/50:t;return P(Ae,{children:[P("style",{children:`
|
|
164
164
|
@keyframes marquee-banner {
|
|
165
165
|
from { transform: translate3d(0,0,0); }
|
|
166
166
|
to { transform: translate3d(calc(-${u}px),0,0); }
|
|
167
167
|
}
|
|
168
|
-
`}),P("span",{ref:s,className:xr("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",r),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:P("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${n}px`,animation:nn.value&&u>0?`marquee-banner ${b}s linear ${i}s infinite`:"none"},children:Array.from({length:h}).map((_,v)=>P("span",{ref:v===0?o:null,className:"whitespace-nowrap shrink-0",children:e},v))})})]})}class rn extends HTMLElement{constructor(){super();Pt(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),zt(this.shadow,ci),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var s;const n=(s=this.getAttribute("workspace-slug"))!=null?s:"squelette",r=this.getAttribute("theme")||"light",i=this.getAttribute("base")||"https://www.squelette.app";Ke(P(ad,{workspaceSlug:n,theme:r,base:i}),this.shadow)}disconnectedCallback(){Ke(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",rn)));const Ao={init({slug:e,theme:t,contentTheme:n,base:r}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",rn);const i=document.querySelector("squelette-banner");if(i)return t&&this.setTheme(t),i;const s=new rn;return s.setAttribute("workspace-slug",e),s.setAttribute("theme",n!=null?n:"light"),r&&s.setAttribute("base",r),document.body.appendChild(s),t&&this.setTheme(t),s},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))}};function pd(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return Dt}}function Mo(e){var i;Sn();const t=document.createElement(yn);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([s,o])=>t.setAttribute(s,o)),((i=e.appendTo)!=null?i:document.body).appendChild(t);const r=li();return r&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:r})),t}function Tr(e,t,n,r){var s;const i=Mo({project:t,board:n!=null?n:void 0,view:e,theme:r==null?void 0:r.theme,locale:r==null?void 0:r.locale,token:r==null?void 0:r.token,signature:r==null?void 0:r.signature,appendTo:r==null?void 0:r.appendTo,attributes:r==null?void 0:r.attributes,label:(s=r==null?void 0:r.label)!=null?s:pd(e),apiBase:r==null?void 0:r.apiBase});if(r){const o=Xo(i,r);if(o.length>0){const a=i.destroy.bind(i);i.destroy=async()=>{for(const l of o.splice(0,o.length))l();await a()}}}return i}function Ar(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:Mo,createFeedbackWidget:(t,n,r)=>Tr("feedback",t,n,r),createRoadmapWidget:(t,n,r)=>Tr("roadmap",t,n,r),createChangelogWidget:(t,n)=>Tr("changelog",t,null,n),identify:oi,clearIdentity:ai,banner:Ao,version:"0.3.
|
|
168
|
+
`}),P("span",{ref:s,className:xr("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",r),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:P("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${n}px`,animation:nn.value&&u>0?`marquee-banner ${b}s linear ${i}s infinite`:"none"},children:Array.from({length:h}).map((_,v)=>P("span",{ref:v===0?o:null,className:"whitespace-nowrap shrink-0",children:e},v))})})]})}class rn extends HTMLElement{constructor(){super();Pt(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),zt(this.shadow,ci),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var s;const n=(s=this.getAttribute("workspace-slug"))!=null?s:"squelette",r=this.getAttribute("theme")||"light",i=this.getAttribute("base")||"https://www.squelette.app";Ke(P(ad,{workspaceSlug:n,theme:r,base:i}),this.shadow)}disconnectedCallback(){Ke(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",rn)));const Ao={init({slug:e,theme:t,contentTheme:n,base:r}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",rn);const i=document.querySelector("squelette-banner");if(i)return t&&this.setTheme(t),i;const s=new rn;return s.setAttribute("workspace-slug",e),s.setAttribute("theme",n!=null?n:"light"),r&&s.setAttribute("base",r),document.body.appendChild(s),t&&this.setTheme(t),s},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))}};function pd(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return Dt}}function Mo(e){var i;Sn();const t=document.createElement(yn);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([s,o])=>t.setAttribute(s,o)),((i=e.appendTo)!=null?i:document.body).appendChild(t);const r=li();return r&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:r})),t}function Tr(e,t,n,r){var s;const i=Mo({project:t,board:n!=null?n:void 0,view:e,theme:r==null?void 0:r.theme,locale:r==null?void 0:r.locale,token:r==null?void 0:r.token,signature:r==null?void 0:r.signature,appendTo:r==null?void 0:r.appendTo,attributes:r==null?void 0:r.attributes,label:(s=r==null?void 0:r.label)!=null?s:pd(e),apiBase:r==null?void 0:r.apiBase});if(r){const o=Xo(i,r);if(o.length>0){const a=i.destroy.bind(i);i.destroy=async()=>{for(const l of o.splice(0,o.length))l();await a()}}}return i}function Ar(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:Mo,createFeedbackWidget:(t,n,r)=>Tr("feedback",t,n,r),createRoadmapWidget:(t,n,r)=>Tr("roadmap",t,n,r),createChangelogWidget:(t,n)=>Tr("changelog",t,null,n),identify:oi,clearIdentity:ai,banner:Ao,version:"0.3.6",cdn:Bo})}Sn(),Ar(),Ar();function md(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function gd(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function bd(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function yd(...e){return window.SqueletteWidget.create(...e)}function Co({src:e,title:t,onLoaded:n,onClose:r}){const i=se(null);return ve(()=>{const s=i.current;if(!s)return;const o=()=>{s.dataset.ready="true",n==null||n()};return s.addEventListener("load",o),()=>s.removeEventListener("load",o)},[n]),ve(()=>{const s=o=>{o.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),r())};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)},[r]),P("iframe",{ref:i,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const _d=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:Co,default:Co,stylesText:Wr},Symbol.toStringTag,{value:"Module"}));return F.SqueletteBanner=Ao,F.SqueletteBannerElement=rn,F.SqueletteWidgetElement=ii,F.clearIdentity=ai,F.createChangelogWidget=bd,F.createFeedbackWidget=md,F.createRoadmapWidget=gd,F.createWidget=yd,F.ensureGlobalHelper=Ar,F.identify=oi,F.registerSqueletteWidget=Sn,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),F}({});
|
package/package.json
CHANGED
package/dist/app-BOiUBwAx.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { s as n, A as d, y as l, u as c } from "./index-Bk1mDGB8.js";
|
|
2
|
-
function f({
|
|
3
|
-
src: o,
|
|
4
|
-
title: i,
|
|
5
|
-
onLoaded: s,
|
|
6
|
-
onClose: r
|
|
7
|
-
}) {
|
|
8
|
-
const t = d(null);
|
|
9
|
-
return l(() => {
|
|
10
|
-
const e = t.current;
|
|
11
|
-
if (!e) return;
|
|
12
|
-
const a = () => {
|
|
13
|
-
e.dataset.ready = "true", s == null || s();
|
|
14
|
-
};
|
|
15
|
-
return e.addEventListener("load", a), () => e.removeEventListener("load", a);
|
|
16
|
-
}, [s]), l(() => {
|
|
17
|
-
const e = (a) => {
|
|
18
|
-
console.log("WidgetFrame received message:", a.data), a.data.type === "close-feedback-widget" && (console.log("WidgetFrame closing widget as requested"), r());
|
|
19
|
-
};
|
|
20
|
-
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
21
|
-
}, [r]), /* @__PURE__ */ c(
|
|
22
|
-
"iframe",
|
|
23
|
-
{
|
|
24
|
-
ref: t,
|
|
25
|
-
class: "sq-frame",
|
|
26
|
-
part: "frame",
|
|
27
|
-
src: o,
|
|
28
|
-
title: i,
|
|
29
|
-
loading: "eager",
|
|
30
|
-
allow: "clipboard-write; clipboard-read; fullscreen;",
|
|
31
|
-
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
const g = n;
|
|
36
|
-
export {
|
|
37
|
-
f as WidgetFrame,
|
|
38
|
-
f as default,
|
|
39
|
-
g as stylesText
|
|
40
|
-
};
|