@a4ui/core 0.24.1 → 0.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -206,6 +206,16 @@ import { ProductCard, CartSummary } from '@a4ui/core/commerce'
206
206
  import { DonutChart, Sparkline } from '@a4ui/core/charts'
207
207
  ```
208
208
 
209
+ ## Example pages
210
+
211
+ Full-page templates built entirely with the components above — browse the whole
212
+ gallery at **[a4ui.pages.dev/#/examples](https://a4ui.pages.dev/#/examples)**. Each
213
+ one reskins under every theme.
214
+
215
+ [![Boutique — a faceted product catalog with a filter sidebar, three switchable product-card styles, and a cart drawer](https://a4ui.pages.dev/showcase-boutique.png)](https://a4ui.pages.dev/#/examples/boutique)
216
+
217
+ [![Showpiece — a product detail page with a gallery lightbox, price/coupon/financing block, a condition meter, and a spec sheet](https://a4ui.pages.dev/showcase-showpiece.png)](https://a4ui.pages.dev/#/examples/showpiece)
218
+
209
219
  ## Why A4ui
210
220
 
211
221
  | | **A4ui** | Kobalte | shadcn-solid | Hope UI |
@@ -7,10 +7,10 @@ import { NumberField as _ } from "@kobalte/core/number-field";
7
7
  var Z = /* @__PURE__ */ m('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'), ee = /* @__PURE__ */ m("<span>");
8
8
  const te = {
9
9
  neutral: "bg-muted text-muted-foreground ring-border",
10
- success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
11
- warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
12
- danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
13
- info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
10
+ success: "bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",
11
+ warning: "bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",
12
+ danger: "bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",
13
+ info: "bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"
14
14
  }, re = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
15
15
  function Le(e) {
16
16
  const [t, n] = x(e, ["tone", "class", "children", "pulse"]);
package/dist/commerce.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { insert as n, createComponent as c, memo as k, effect as $, className as C, template as v, delegateEvents as A, setAttribute as w, setStyleProperty as j } from "solid-js/web";
2
2
  import { Show as b, For as S, createSignal as B, createMemo as R } from "solid-js";
3
3
  import { c as _ } from "./cn-B6yFEsav.js";
4
- import { B as D, C as O, R as G, a as M, b as z, N as U, c as K } from "./NumberInput-DcJlXNKq.js";
4
+ import { B as D, C as O, R as G, a as M, b as z, N as U, c as K } from "./NumberInput-BQhVucw-.js";
5
5
  import { Minus as Q, Plus as V, Trash2 as X, X as Z, CreditCard as H } from "lucide-solid";
6
6
  var J = /* @__PURE__ */ v('<span class="text-muted-foreground line-through">'), W = /* @__PURE__ */ v("<div><span>");
7
7
  const Y = {
@@ -471,7 +471,7 @@ function ze(e) {
471
471
  })();
472
472
  }
473
473
  A(["click"]);
474
- var Se = /* @__PURE__ */ v('<span class="text-muted-foreground line-through">'), ke = /* @__PURE__ */ v('<span class="inline-flex items-center gap-1 text-sm text-muted-foreground">As low as <!>/mo'), Ae = /* @__PURE__ */ v('<div><div class="flex flex-wrap items-center gap-2"><span>'), Me = /* @__PURE__ */ v('<span class="text-sm text-muted-foreground"> after code '), Pe = /* @__PURE__ */ v('<div class="flex flex-wrap items-center gap-2"><span class="inline-flex items-center gap-1 rounded-md border border-dashed border-primary/50 px-2 py-0.5 text-xs font-mono text-primary"> ');
474
+ var Se = /* @__PURE__ */ v('<span class="text-muted-foreground line-through">'), ke = /* @__PURE__ */ v('<span class="inline-flex items-center gap-1 text-sm text-muted-foreground">As low as <!>/mo'), Ae = /* @__PURE__ */ v('<div><div class="flex flex-wrap items-center gap-2"><span>'), Me = /* @__PURE__ */ v('<span class="text-sm text-muted-foreground"> after code '), Pe = /* @__PURE__ */ v('<div class="flex flex-wrap items-center gap-2"><span class="inline-flex items-center gap-1 rounded-md border border-dashed border-primary/50 px-2 py-0.5 text-xs font-mono text-foreground"> ');
475
475
  const Te = {
476
476
  md: "text-xl",
477
477
  lg: "text-3xl"
package/dist/elements.css CHANGED
@@ -22,7 +22,7 @@
22
22
  --primary: 217 91% 52%;
23
23
  --primary-foreground: 0 0% 100%;
24
24
  --accent: 199 89% 55%;
25
- --accent-foreground: 0 0% 100%;
25
+ --accent-foreground: 199 45% 12%;
26
26
  --ring: 217 91% 52%;
27
27
  --destructive: 0 72% 52%;
28
28
  --destructive-foreground: 0 0% 100%;
@@ -58,7 +58,7 @@
58
58
  --primary: 217 91% 52%;
59
59
  --primary-foreground: 0 0% 100%;
60
60
  --accent: 199 89% 48%;
61
- --accent-foreground: 0 0% 100%;
61
+ --accent-foreground: 199 45% 12%;
62
62
  --ring: 217 91% 52%;
63
63
  --destructive: 0 72% 50%;
64
64
  --destructive-foreground: 0 0% 100%;
@@ -2883,13 +2883,13 @@ html.calm .tile-glass {
2883
2883
  --tw-text-opacity: 1;
2884
2884
  color: hsl(var(--accent-foreground) / var(--tw-text-opacity, 1));
2885
2885
  }
2886
- .text-amber-500 {
2886
+ .text-amber-300 {
2887
2887
  --tw-text-opacity: 1;
2888
- color: rgb(245 158 11 / var(--tw-text-opacity, 1));
2888
+ color: rgb(252 211 77 / var(--tw-text-opacity, 1));
2889
2889
  }
2890
- .text-amber-600 {
2890
+ .text-amber-500 {
2891
2891
  --tw-text-opacity: 1;
2892
- color: rgb(217 119 6 / var(--tw-text-opacity, 1));
2892
+ color: rgb(245 158 11 / var(--tw-text-opacity, 1));
2893
2893
  }
2894
2894
  .text-card-foreground {
2895
2895
  --tw-text-opacity: 1;
@@ -2906,6 +2906,10 @@ html.calm .tile-glass {
2906
2906
  --tw-text-opacity: 1;
2907
2907
  color: hsl(var(--destructive-foreground) / var(--tw-text-opacity, 1));
2908
2908
  }
2909
+ .text-emerald-300 {
2910
+ --tw-text-opacity: 1;
2911
+ color: rgb(110 231 183 / var(--tw-text-opacity, 1));
2912
+ }
2909
2913
  .text-emerald-500 {
2910
2914
  --tw-text-opacity: 1;
2911
2915
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
@@ -2948,6 +2952,10 @@ html.calm .tile-glass {
2948
2952
  --tw-text-opacity: 1;
2949
2953
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
2950
2954
  }
2955
+ .text-rose-300 {
2956
+ --tw-text-opacity: 1;
2957
+ color: rgb(253 164 175 / var(--tw-text-opacity, 1));
2958
+ }
2951
2959
  .text-rose-500 {
2952
2960
  --tw-text-opacity: 1;
2953
2961
  color: rgb(244 63 94 / var(--tw-text-opacity, 1));
@@ -2956,13 +2964,13 @@ html.calm .tile-glass {
2956
2964
  --tw-text-opacity: 1;
2957
2965
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
2958
2966
  }
2959
- .text-sky-500 {
2967
+ .text-sky-300 {
2960
2968
  --tw-text-opacity: 1;
2961
- color: rgb(14 165 233 / var(--tw-text-opacity, 1));
2969
+ color: rgb(125 211 252 / var(--tw-text-opacity, 1));
2962
2970
  }
2963
- .text-sky-600 {
2971
+ .text-sky-500 {
2964
2972
  --tw-text-opacity: 1;
2965
- color: rgb(2 132 199 / var(--tw-text-opacity, 1));
2973
+ color: rgb(14 165 233 / var(--tw-text-opacity, 1));
2966
2974
  }
2967
2975
  .line-through {
2968
2976
  text-decoration-line: line-through;
@@ -3450,6 +3458,10 @@ html.calm .tile-glass {
3450
3458
  --tw-bg-opacity: 1;
3451
3459
  background-color: hsl(var(--primary) / var(--tw-bg-opacity, 1));
3452
3460
  }
3461
+ .data-\[checked\]\:text-primary-foreground[data-checked] {
3462
+ --tw-text-opacity: 1;
3463
+ color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
3464
+ }
3453
3465
  .data-\[pressed\]\:text-primary-foreground[data-pressed] {
3454
3466
  --tw-text-opacity: 1;
3455
3467
  color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
@@ -3458,13 +3470,25 @@ html.calm .tile-glass {
3458
3470
  --tw-text-opacity: 1;
3459
3471
  color: hsl(var(--foreground) / var(--tw-text-opacity, 1));
3460
3472
  }
3461
- .data-\[selected\]\:text-primary-foreground[data-selected] {
3462
- --tw-text-opacity: 1;
3463
- color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
3464
- }
3465
3473
  .data-\[disabled\]\:opacity-50[data-disabled] {
3466
3474
  opacity: 0.5;
3467
3475
  }
3476
+ [data-theme='light'] .light\:text-amber-700 {
3477
+ --tw-text-opacity: 1;
3478
+ color: rgb(180 83 9 / var(--tw-text-opacity, 1));
3479
+ }
3480
+ [data-theme='light'] .light\:text-emerald-700 {
3481
+ --tw-text-opacity: 1;
3482
+ color: rgb(4 120 87 / var(--tw-text-opacity, 1));
3483
+ }
3484
+ [data-theme='light'] .light\:text-rose-700 {
3485
+ --tw-text-opacity: 1;
3486
+ color: rgb(190 18 60 / var(--tw-text-opacity, 1));
3487
+ }
3488
+ [data-theme='light'] .light\:text-sky-700 {
3489
+ --tw-text-opacity: 1;
3490
+ color: rgb(3 105 161 / var(--tw-text-opacity, 1));
3491
+ }
3468
3492
  @media (prefers-reduced-motion: reduce) {
3469
3493
 
3470
3494
  .motion-reduce\:transition-none {
@@ -3,4 +3,4 @@ var A4uiElements=(function(un){"use strict";var vo;const W={context:void 0,regis
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */var pl={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"},Ye=pl,bl=lt({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),yl=D("<svg>"),vl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),wl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),as=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>{const t=wl(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sl=e=>{const[t,n]=le(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=ct(bl);return(()=>{var s=yl();return De(s,L(Ye,{get width(){return t.size??r.size??Ye.width},get height(){return t.size??r.size??Ye.height},get stroke(){return t.color??r.color??Ye.stroke},get"stroke-width"(){return yn(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])},get class(){return xl("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${as(kl(t.name))}`,`lucide-${as(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!vl(n)?"true":void 0}},n),!0,!0),P(s,p(ht,{get each(){return t.iconNode},children:([i,o])=>p(wn,L({component:i},o))})),s})()},Ee=Sl,Tl=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Al=e=>p(Ee,L(e,{iconNode:Tl,name:"check"})),Cl=Al,Ml=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vl=e=>p(Ee,L(e,{iconNode:Ml,name:"circle-check"})),$l=Vl,Pl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],El=e=>p(Ee,L(e,{iconNode:Pl,name:"circle-x"})),Il=El,Rl=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ol=e=>p(Ee,L(e,{iconNode:Rl,name:"copy"})),_l=Ol,Dl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ll=e=>p(Ee,L(e,{iconNode:Dl,name:"info"})),Fl=Ll,Nl=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],zl=e=>p(Ee,L(e,{iconNode:Nl,name:"star"})),ls=zl,Bl=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jl=e=>p(Ee,L(e,{iconNode:Bl,name:"triangle-alert"})),Kl=jl,Gl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wl=e=>p(Ee,L(e,{iconNode:Gl,name:"x"})),Ul=Wl,Yl=D("<p class=font-semibold>"),Xl=D("<div class=flex-1><div class=text-muted-foreground>");const Hl={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:Fl},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:$l},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Kl},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:Il}};function ql(e){const t=()=>Hl[e.tone??"info"];return p(os,{get class(){return B("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[p(wn,{get component(){return t().Icon},get class(){return B("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var n=Xl(),r=n.firstChild;return P(n,p(q,{get when(){return e.title},get children(){var s=Yl();return P(s,()=>e.title),s}}),r),P(r,()=>e.children),n})()]}})}var Zl=D('<a class="underline-offset-2 transition-colors hover:underline motion-reduce:transition-none">'),Jl=D('<button type=button aria-label="Dismiss announcement"class="absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">'),Ql=D("<div role=region aria-label=Announcement>"),ec=D("<span>"),tc=D('<span class="ml-2 inline-flex items-center gap-1 rounded-md bg-black/10 px-2 py-0.5 font-mono"><button type=button class="inline-flex items-center gap-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">');const nc={primary:"bg-primary text-primary-foreground",accent:"bg-accent text-accent-foreground",neutral:"bg-muted text-foreground"};function rc(e){const[t,n]=J(!1),[r,s]=J(!1),i=async()=>{const a=e.couponCode;!a||!navigator.clipboard||(await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),1500))},o=()=>{var a;n(!0),(a=e.onDismiss)==null||a.call(e)};return p(q,{get when(){return!t()},get children(){var a=Ql();return P(a,p(q,{get when(){return e.href},get fallback(){return(()=>{var l=ec();return P(l,()=>e.children),l})()},get children(){var l=Zl();return P(l,()=>e.children),N(()=>E(l,"href",e.href)),l}}),null),P(a,p(q,{get when(){return e.couponCode},children:l=>(()=>{var c=tc(),u=c.firstChild;return P(c,l,u),u.$$click=i,P(u,p(q,{get when(){return r()},get fallback(){return p(_l,{class:"h-3 w-3"})},get children(){return[p(Cl,{class:"h-3 w-3"}),"Copied"]}})),N(()=>E(u,"aria-label",r()?"Coupon code copied":"Copy coupon code")),c})()}),null),P(a,p(q,{get when(){return e.dismissible},get children(){var l=Jl();return l.$$click=o,P(l,p(Ul,{class:"h-4 w-4"})),l}}),null),N(()=>be(a,B("relative w-full rounded-none px-4 py-2 text-center text-sm",nc[e.tone??"primary"],e.dismissible&&"pr-10",e.class))),a}})}mt(["click"]);var sc={};qt(sc,{Fallback:()=>us,Image:()=>Zt,Img:()=>ds,Root:()=>fs,useImageContext:()=>Cn});var cs=lt();function Cn(){const e=ct(cs);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function us(e){const t=Cn(),[n,r]=J(t.fallbackDelay()===void 0);return Me(()=>{const s=t.fallbackDelay();if(s!==void 0){const i=window.setTimeout(()=>r(!0),s);me(()=>window.clearTimeout(i))}}),p(q,{get when(){return yn(()=>!!n())()&&t.imageLoadingStatus()!=="loaded"},get children(){return p(ve,L({as:"span"},e))}})}function ds(e){const t=Cn(),[n,r]=J("idle");return Me(Ao(()=>e.src,s=>{if(!s){r("error");return}let i=!0;const o=new window.Image,a=l=>()=>{i&&r(l)};r("loading"),e.crossOrigin!==void 0&&(o.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(o.referrerPolicy=e.referrerPolicy),o.onload=a("loaded"),o.onerror=a("error"),o.src=s,me(()=>{i=!1})})),Me(()=>{const s=n();s!=="idle"&&t.onImageLoadingStatusChange(s)}),p(q,{get when(){return n()==="loaded"},get children(){return p(ve,L({as:"img"},e))}})}function fs(e){const[t,n]=le(e,["fallbackDelay","onLoadingStatusChange"]),[r,s]=J("idle"),i={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:r,onImageLoadingStatusChange:o=>{var a;s(o),(a=t.onLoadingStatusChange)==null||a.call(t,o)}};return p(cs.Provider,{value:i,get children(){return p(ve,L({as:"span"},n))}})}var Zt=Object.assign(fs,{Fallback:us,Img:ds});function ic(e){return p(Zt,{get class(){return B("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[p(Zt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),p(Zt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var oc=D('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'),ac=D("<span>");const lc={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",warning:"bg-amber-500/15 text-amber-600 ring-amber-500/30",danger:"bg-rose-500/15 text-rose-600 ring-rose-500/30",info:"bg-sky-500/15 text-sky-600 ring-sky-500/30"},cc="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function uc(e){const[t,n]=le(e,["tone","class","children","pulse"]);return(()=>{var r=ac();return De(r,L({get class(){return B(cc,lc[t.tone??"neutral"],t.class)}},n),!1,!0),P(r,p(q,{get when(){return t.pulse},get children(){return oc()}}),null),P(r,()=>t.children,null),r})()}function dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Mn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ie=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Re={},hs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fc=e=>typeof e=="object"&&e!==null,ms=e=>/^0[^.\s]+$/u.test(e);function gs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,$n=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Pn=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ps{constructor(){this.subscriptions=[]}add(t){return dc(this.subscriptions,t),()=>Mn(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const he=e=>e*1e3,ge=e=>e/1e3,bs=(e,t)=>t?e*(1e3/t):0,hc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},ys=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mc=1e-7,gc=12;function pc(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=ys(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>mc&&++a<gc);return o}function yt(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>pc(i,0,1,e,n);return i=>i===0||i===1?i:ys(s(i),t,r)}const vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,En=e=>t=>1-e(1-t),xs=yt(.33,1.53,.69,.99),In=En(xs),ws=vs(In),ks=e=>e>=1?1:(e*=2)<1?.5*In(e):.5*(2-Math.pow(2,-10*(e-1))),Rn=e=>1-Math.sin(Math.acos(e)),bc=En(Rn),Ss=vs(Rn),yc=yt(.42,0,1,1),vc=yt(0,0,.58,1),Ts=yt(.42,0,.58,1),As=e=>Array.isArray(e)&&typeof e[0]!="number";function Cs(e,t){return As(e)?e[hc(0,e.length,t)]:e}const Ms=e=>Array.isArray(e)&&typeof e[0]=="number",xc={linear:Xe,easeIn:yc,easeInOut:Ts,easeOut:vc,circIn:Rn,circInOut:Ss,circOut:bc,backIn:In,backInOut:ws,backOut:xs,anticipate:ks},wc=e=>typeof e=="string",Vs=e=>{if(Ms(e)){Vn(e.length===4);const[t,n,r,s]=e;return yt(t,n,r,s)}else if(wc(e))return xc[e];return e},Jt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kc(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const u=t;t=n,n=u,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const Sc=40;function $s(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Jt.reduce((C,T)=>(C[T]=kc(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:y}=o,m=()=>{const C=Re.useManualTiming,T=C?s.timestamp:performance.now();n=!1,C||(s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,Sc),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Jt.reduce((C,T)=>{const A=o[T];return C[T]=(R,I=!1,g=!1)=>(n||b(),A.schedule(R,I,g)),C},{}),cancel:C=>{for(let T=0;T<Jt.length;T++)o[Jt[T]].cancel(C)},state:s,steps:o}}const{schedule:xe,cancel:On,state:Qt}=$s(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let en;function Tc(){en=void 0}const de={now:()=>(en===void 0&&de.set(Qt.isProcessing||Re.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(Tc)}},Ps=e=>t=>typeof t=="string"&&t.startsWith(e),Es=Ps("--"),Ac=Ps("var(--"),_n=e=>Ac(e)?Cc.test(e.split("/*")[0].trim()):!1,Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Is(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vt={...He,transform:e=>Ie(0,1,e)},tn={...He,default:1},xt=e=>Math.round(e*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mc(e){return e==null}const Vc=/^(?:#[\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"&&Vc.test(n)&&n.startsWith(e)||t&&!Mc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Dn);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$c=e=>Ie(0,255,e),Fn={...He,transform:e=>Math.round($c(e))},ze={test:Ln("rgb","red"),parse:Rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fn.transform(e)+", "+Fn.transform(t)+", "+Fn.transform(n)+", "+xt(vt.transform(r))+")"};function Pc(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Nn={test:Ln("#"),parse:Pc,transform:ze.transform},wt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Te=wt("deg"),qe=wt("%"),S=wt("px"),Ec=wt("vh"),Ic=wt("vw"),Os={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Ln("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qe.transform(xt(t))+", "+qe.transform(xt(n))+", "+xt(vt.transform(r))+")"},H={test:e=>ze.test(e)||Nn.test(e)||Ze.test(e),parse:e=>ze.test(e)?ze.parse(e):Ze.test(e)?Ze.parse(e):Nn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ze.transform(e):Ze.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Rc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dn))==null?void 0:t.length)||0)+(((n=e.match(Rc))==null?void 0:n.length)||0)>0}const _s="number",Ds="color",_c="var",Dc="var(",Ls="${}",Lc=/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 Je(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Lc,l=>(H.test(l)?(r.color.push(i),s.push(Ds),n.push(H.parse(l))):l.startsWith(Dc)?(r.var.push(i),s.push(_c),n.push(l)):(r.number.push(i),s.push(_s),n.push(parseFloat(l))),++i,Ls)).split(Ls);return{values:n,split:a,indexes:r,types:s}}function Fc(e){return Je(e).values}function Fs({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===_s?s+=xt(r[i]):o===Ds?s+=H.transform(r[i]):s+=r[i]}return s}}function Nc(e){return Fs(Je(e))}const zc=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e,Bc=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:zc(e);function jc(e){const t=Je(e);return Fs(t)(t.values.map((r,s)=>Bc(r,t.split[s])))}const pe={test:Oc,parse:Fc,createTransformer:Nc,getAnimatableNone:jc};function zn(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 Kc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=zn(l,a,e+.3333333333333333),i=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function nn(e,t){return n=>n>0?t:e}const Qe=(e,t,n)=>e+(t-e)*n,Bn=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Gc=[Nn,ze,Ze],Wc=e=>Gc.find(t=>t.test(e));function Ns(e){const t=Wc(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=Kc(n)),n}const zs=(e,t)=>{const n=Ns(e),r=Ns(t);if(!n||!r)return nn(e,t);const s={...n};return i=>(s.red=Bn(n.red,r.red,i),s.green=Bn(n.green,r.green,i),s.blue=Bn(n.blue,r.blue,i),s.alpha=Qe(n.alpha,r.alpha,i),ze.transform(s))},jn=new Set(["none","hidden"]);function Uc(e,t){return jn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yc(e,t){return n=>Qe(e,t,n)}function Kn(e){return typeof e=="number"?Yc:typeof e=="string"?_n(e)?nn:H.test(e)?zs:qc:Array.isArray(e)?Bs:typeof e=="object"?H.test(e)?zs:Xc:nn}function Bs(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Kn(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Xc(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Kn(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Hc(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const qc=(e,t)=>{const n=pe.createTransformer(t),r=Je(e),s=Je(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?jn.has(e)&&!s.values.length||jn.has(t)&&!r.values.length?Uc(e,t):$n(Bs(Hc(r,s),s.values),n):nn(e,t)};function js(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Kn(e)(e,t)}const Zc=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xe.update(t,n),stop:()=>On(t),now:()=>Qt.isProcessing?Qt.timestamp:de.now()}},Ks=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rn=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rn;)t+=n,r=e.next(t);return t>=rn?1/0:t}function Gs(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Gn(r),rn);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:ge(s)}}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};function Wn(e,t){return e*Math.sqrt(1-t*t)}const Jc=12;function Qc(e,t,n){let r=n;for(let s=1;s<Jc;s++)r=r-e(r)/t(r);return r}const Un=.001;function eu({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let s,i,o=1-t;o=Ie(j.minDamping,j.maxDamping,o),e=Ie(j.minDuration,j.maxDuration,ge(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,h=Wn(c,o),y=Math.exp(-d);return Un-f/h*y},i=c=>{const d=c*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=Wn(Math.pow(c,2),o);return(-s(c)+Un>0?-1:1)*((f-h)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Un+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Qc(s,i,a);if(e=he(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 tu=["duration","bounce"],nu=["stiffness","damping","mass"];function Ws(e,t){return t.some(n=>e[n]!==void 0)}function ru(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!Ws(e,nu)&&Ws(e,tu))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:j.mass,stiffness:s,damping:i}}else{const n=eu({...e,velocity:0});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:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ru({...n,velocity:-ge(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),b=o-i,v=ge(Math.sqrt(l/u)),x=Math.abs(b)<5;r||(r=x?j.restSpeed.granular:j.restSpeed.default),s||(s=x?j.restDelta.granular:j.restDelta.default);let C,T,A,R,I,g;if(m<1)A=Wn(v,m),R=(y+m*v*b)/A,C=M=>{const _=Math.exp(-m*v*M);return o-_*(R*Math.sin(A*M)+b*Math.cos(A*M))},I=m*v*R+b*A,g=m*v*b-R*A,T=M=>Math.exp(-m*v*M)*(I*Math.sin(A*M)+g*Math.cos(A*M));else if(m===1){C=_=>o-Math.exp(-v*_)*(b+(y+v*b)*_);const M=y+v*b;T=_=>Math.exp(-v*_)*(v*M*_-y)}else{const M=v*Math.sqrt(m*m-1);C=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return o-ae*((y+m*v*b)*Math.sinh(Y)+M*b*Math.cosh(Y))/M};const _=(y+m*v*b)/M,z=m*v*_-b*M,ie=m*v*b-_*M;T=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return ae*(z*Math.sinh(Y)+ie*Math.cosh(Y))}}const V={calculatedDuration:h&&d||null,velocity:M=>he(T(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*v*M),ie=Math.sin(A*M),oe=Math.cos(A*M),ae=o-z*(R*ie+b*oe),Y=he(z*(I*ie+g*oe));return a.done=Math.abs(Y)<=r&&Math.abs(o-ae)<=s,a.value=a.done?o:ae,a}const _=C(M);if(h)a.done=M>=d;else{const z=he(T(M));a.done=Math.abs(z)<=r&&Math.abs(o-_)<=s}return a.value=a.done?o:_,a},toString:()=>{const M=Math.min(Gn(V),rn),_=Ks(z=>V.next(M*z).value,M,30);return M+"ms "+_},toTransition:()=>{}};return V}kt.applyToOptions=e=>{const t=Gs(e,100,kt);return e.ease=t.ease,e.duration=he(t.duration),e.type="keyframes",e};const su=5;function Us(e,t,n){const r=Math.max(t-su,0);return bs(n-e(r),t-r)}function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=g=>a!==void 0&&g<a||l!==void 0&&g>l,y=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let m=n*t;const b=d+m,v=o===void 0?b:o(b);v!==b&&(m=v-d);const x=g=>-m*Math.exp(-g/r),C=g=>v+x(g),T=g=>{const V=x(g),M=C(g);f.done=Math.abs(V)<=c,f.value=f.done?v:M};let A,R;const I=g=>{h(f.value)&&(A=g,R=kt({keyframes:[f.value,y(f.value)],velocity:Us(C,g,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:g=>{let V=!1;return!R&&A===void 0&&(V=!0,T(g),I(g)),A!==void 0&&g>=A?R.next(g-A):(!V&&T(g),f)}}}function iu(e,t,n){const r=[],s=n||Re.mix||js,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=$n(l,a)}r.push(a)}return r}function ou(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Vn(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iu(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Pn(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ie(e[0],e[i-1],u)):c}function Ys(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Pn(0,t,r);e.push(Qe(n,1,s))}}function Xs(e){const t=[0];return Ys(t,e.length-1),t}function au(e,t){return e.map(n=>n*t)}function lu(e,t){return e.map(()=>t||Ts).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=As(r)?r.map(Vs):Vs(r),i={done:!1,value:t[0]},o=au(n&&n.length===t.length?n:Xs(t),e),a=ou(o,t,{ease:Array.isArray(s)?s:lu(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const cu=e=>e!==null;function sn(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(cu),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const uu={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function Hs(e){typeof e.type=="string"&&(e.type=uu[e.type])}class Xn{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 du=e=>e/100;class on extends Xn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hs(t);const{type:n=St,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=$n(du,js(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,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:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:y,onUpdate:m,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let C=this.currentTime,T=r;if(d){const g=Math.min(this.currentTime,s)/a;let V=Math.floor(g),M=g%1;!M&&g>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(f==="reverse"?(M=1-M,h&&(M-=h/a)):f==="mirror"&&(T=o)),C=Ie(0,1,M)*a}let A;x?(this.delayState.value=u[0],A=this.delayState):A=T.next(C),i&&!x&&(A.value=i(A.value));let{done:R}=A;!x&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return I&&y!==Yn&&(A.value=sn(u,this.options,b,this.speed)),m&&m(A.value),I&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return ge(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(this.currentTime)}set time(t){t=he(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Us(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(de.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ge(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Zc,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);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??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(de.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 fu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Be=e=>e*180/Math.PI,Hn=e=>{const t=Be(Math.atan2(e[1],e[0]));return qn(t)},hu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hn,rotateZ:Hn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qn=e=>(e=e%360,e<0&&(e+=360),e),qs=Hn,Zs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Js=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zs,scaleY:Js,scale:e=>(Zs(e)+Js(e))/2,rotateX:e=>qn(Be(Math.atan2(e[6],e[5]))),rotateY:e=>qn(Be(Math.atan2(-e[2],e[0]))),rotateZ:qs,rotate:qs,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return e.includes("scale")?1:0}function Jn(e,t){if(!e||e==="none")return Zn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=mu,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hu,s=a}if(!s)return Zn(t);const i=r[t],o=s[1].split(",").map(pu);return typeof i=="function"?i(o):o[i]}const gu=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jn(n,t)};function pu(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set([...et,"pathRotation"]),Qs=e=>e===He||e===S,bu=new Set(["x","y","z"]),yu=et.filter(e=>!bu.has(e));function vu(e){const t=[];return yu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-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})=>Jn(t,"x"),y:(e,{transform:t})=>Jn(t,"y")};Oe.translateX=Oe.x,Oe.translateY=Oe.y;const je=new Set;let Qn=!1,er=!1,tr=!1;function ei(){if(er){const e=Array.from(je).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=vu(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}er=!1,Qn=!1,je.forEach(e=>e.complete(tr)),je.clear()}function ti(){je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(er=!0)})}function xu(){tr=!0,ti(),ei(),tr=!1}class nr{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(je.add(this),Qn||(Qn=!0,xe.read(ti),xe.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}fu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),je.delete(this)}cancel(){this.state==="scheduled"&&(je.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wu=e=>e.startsWith("--");function ni(e,t,n){wu(t)?e.style.setProperty(t,n):e.style[t]=n}const ku={};function ri(e,t){const n=gs(e);return()=>ku[t]??n()}const Su=ri(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),si=ri(()=>{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})`,ii={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 oi(e,t){if(e)return typeof e=="function"?si()?Ks(e,t):"ease-out":Ms(e)?Tt(e):Array.isArray(e)?e.map(n=>oi(n,t)||ii.easeOut):ii[e]}function Tu(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=oi(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function rr(e){return typeof e=="function"&&"applyToOptions"in e}function Au({type:e,...t}){return rr(e)&&si()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ai extends Xn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=Au(t);this.animation=Tu(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=sn(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ni(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}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 ge(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=he(t),n&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Su()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const li={anticipate:ks,backInOut:ws,circInOut:Ss};function Cu(e){return e in li}function Mu(e){typeof e.ease=="string"&&Cu(e.ease)&&(e.ease=li[e.ease])}const sr=10;class Vu extends ai{constructor(t){Mu(t),Hs(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new on({...o,autoplay:!1}),l=Math.max(sr,de.now()-this.startTime),c=Ie(0,sr,l-sr),u=a.sample(l).value,{name:d}=this.options;i&&d&&ni(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const ci=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function $u(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 Pu(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ci(s,t),a=ci(i,t);return!o||!a?!1:$u(e)||(n==="spring"||rr(n))&&r}function ir(e){e.duration=0,e.type="keyframes"}const ui=new Set(["opacity","clipPath","filter","transform"]),Eu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Iu(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Eu.test(e[t]))return!0;return!1}const Ru=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ou=gs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _u(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ou()&&n&&(ui.has(n)||Ru.has(n)&&Iu(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const Du=40;class Lu extends Xn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=de.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||nr;this.keyframeResolver=new h(a,(m,b,v)=>this.onKeyframesResolved(m,b,f,!v),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var v,x;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=de.now();let d=!0;Pu(t,i,o,a)||(d=!1,(Re.instantAnimations||!l)&&(u==null||u(sn(t,r,n))),t[0]=t[t.length-1],ir(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Du?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&_u(h),m=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current;let b;if(y)try{b=new Vu({...h,element:m})}catch{b=new on(h)}else b=new on(h);b.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),xu()),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 Fu{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,s)=>{r&&r(),this.animations[s].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 di(this.animations,"duration")}get iterationDuration(){return di(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 di(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Nu extends Fu{then(t,n){return this.finished.finally(t).then(()=>{})}}const fi=30,zu=e=>!isNaN(parseFloat(e));class Bu{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=de.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.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=de.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zu(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 ps);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.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=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fi);return bs(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 nt(e,t){return new Bu(e,t)}function hi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function mi(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?hi(n,e):n}const ju={type:"spring",stiffness:500,damping:25,restSpeed:10},Ku=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uu=(e,{keyframes:t})=>t.length>2?Gu:tt.has(e)?e.startsWith("scale")?Ku(t[1]):ju:Wu,Yu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Xu(e){for(const t in e)if(!Yu.has(t))return!0;return!1}const gi=(e,t,n,r={},s,i)=>o=>{const a=mi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-he(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Xu(a)||Object.assign(u,Uu(e,u)),u.duration&&(u.duration=he(u.duration)),u.repeatDelay&&(u.repeatDelay=he(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ir(u),u.delay===0&&(d=!0)),(Re.instantAnimations||Re.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,ir(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=sn(u.keyframes,a);if(f!==void 0){xe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new on(u):new Lu(u)},Hu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qu(e){const t=Hu.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function pi(e,t,n=1){const[r,s]=qu(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return hs(o)?parseFloat(o):o}return _n(s)?pi(s,t,n+1):s}function bi(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Zu(e,t,n){const r=e.getProps();return yi(r,t,r.custom,e)}const vi=new Set(["width","height","top","left","right","bottom",...et]),Ju=e=>Array.isArray(e);function Qu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nt(n))}function ed(e){return Ju(e)?e[e.length-1]||0:e}function td(e,t){const n=Zu(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ed(i[o]);Qu(e,o,a)}}const ce=e=>!!(e&&e.getVelocity);function nd(e){return!!(ce(e)&&e.add)}function rd(e,t){const n=e.getValue("willChange");if(nd(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function or(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sd="data-"+or("framerAppearId");function id(e){return e.props[sd]}function od({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ad(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?hi(i,l):l;const c=i==null?void 0:i.reduceMotion,u=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],f=s&&e.animationState&&e.animationState.getState()[s],h=i==null?void 0:i.path;h&&h.animateVisualElement(e,a,i,n,d);for(const y in a){const m=e.getValue(y,e.latestValues[y]??null),b=a[y];if(b===void 0||f&&od(f,y))continue;const v={delay:n,...mi(i||{},y)};u&&(v.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(b)&&b===x&&!v.velocity){xe.update(()=>m.set(b));continue}let C=!1;if(window.MotionHandoffAnimation){const R=id(e);if(R){const I=window.MotionHandoffAnimation(R,y,xe);I!==null&&(v.startTime=I,C=!0)}}rd(e,y);const T=c??e.shouldReduceMotion;m.start(gi(y,m,b,T&&vi.has(y)?{type:!1}:v,e,C));const A=m.animation;A&&d.push(A)}if(o){const y=()=>xe.update(()=>{o&&td(e,o)});d.length?Promise.all(d).then(y):y()}return d}const ld={test:e=>e==="auto",parse:e=>e},xi=e=>t=>t.test(e),wi=[He,S,qe,Te,Ic,Ec,ld],ki=e=>wi.find(xi(e));function cd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ms(e):!0}const ud=new Set(["brightness","contrast","saturate","opacity"]);function dd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dn)||[];if(!r)return e;const s=n.replace(r,"");let i=ud.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fd=/\b([a-z-]*)\(.*?\)/gu,ar={...pe,getAnimatableNone:e=>{const t=e.match(fd);return t?t.map(dd).join(" "):e}},lr={...pe,getAnimatableNone:e=>{const t=pe.parse(e);return pe.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Si={...He,transform:Math.round},an={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:Te,pathRotation:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:Te,skewX:Te,skewY:Te,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:vt,originX:Os,originY:Os,originZ:S},zIndex:Si,fillOpacity:vt,strokeOpacity:vt,numOctaves:Si},hd={...an,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ar,WebkitFilter:ar,mask:lr,WebkitMask:lr},Ti=e=>hd[e],md=new Set([ar,lr]);function Ai(e,t){let n=Ti(e);return md.has(n)||(n=pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gd=new Set(["auto","none","0"]);function pd(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!gd.has(i)&&Je(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Ai(n,s)}class bd extends nr{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),_n(d))){const f=pi(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vi.has(r)||t.length!==2)return;const[s,i]=t,o=ki(s),a=ki(i),l=Is(s),c=Is(i);if(l!==c&&Oe[r]){this.needsMeasurement=!0;return}if(o!==a)if(Qs(o)&&Qs(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Oe[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||cd(t[s]))&&r.push(s);r.length&&pd(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=Oe[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Oe[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()}}const yd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function vd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const cr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:xd}=$s(queueMicrotask,!1);function Ci(e){return fc(e)&&"ownerSVGElement"in e}function wd(e){return Ci(e)&&e.tagName==="svg"}const kd=[...wi,H,pe],Sd=e=>kd.find(xi(e)),Mi=()=>({min:0,max:0}),ur=()=>({x:Mi(),y:Mi()}),At=new WeakMap;function Td(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ad(e){return typeof e=="string"||Array.isArray(e)}const Cd=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Vi(e){return Td(e.animate)||Cd.some(t=>Ad(e[t]))}function Md(e){return!!(Vi(e)||e.variants)}function Vd(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ce(s))e.addValue(r,s);else if(ce(i))e.addValue(r,nt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,nt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dr={current:null},$i={current:!1},$d=typeof window<"u";function Pd(){if($i.current=!0,!!$d)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dr.current=e.matches;e.addEventListener("change",t),t()}else dr.current=!1}const Pi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ei={};class Ii{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=nr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=de.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,xe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Vi(n),this.isVariantNode=Md(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];c[h]!==void 0&&ce(y)&&y.set(c[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,At.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((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($i.current||Pd(),this.shouldReduceMotion=dr.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),On(this.notifyUpdate),On(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){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ui.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new ai({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:he(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 Ei){const n=Ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ur()}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<Pi.length;r++){const s=Pi[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Vd(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=nt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hs(r)||ms(r))?r=parseFloat(r):!Sd(r)&&pe.test(n)&&(r=Ai(t,n)),this.setBaseTarget(t,ce(r)?r.get():r)),ce(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=yi(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ce(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ps),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xd.render(this.render)}}class Ri extends Ii{constructor(){super(...arguments),this.KeyframeResolver=bd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ed({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Id(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 Rd(e,t){return Ed(Id(e.getBoundingClientRect(),t))}const Od={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_d=et.length;function Dd(e,t,n){let r="",s=!0;for(let o=0;o<_d;o++){const a=et[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=cr(l,an[a]);if(!c){s=!1;const d=Od[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${cr(i,an.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Oi(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(tt.has(l)){o=!0;continue}else if(Es(l)){s[l]=c;continue}else{const u=cr(c,an[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=Dd(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function _i(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Di(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=Di(e,t.target.x),r=Di(e,t.target.y);return`${n}% ${r}%`}},Ld={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=pe.parse(e);if(s.length>5)return r;const i=pe.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Qe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Fd={borderRadius:{...Ct,applyTo:[...yd]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Ld};function Nd(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fd[e]||e==="opacity")}function Li(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ce(r[a])||s&&ce(s[a])||Nd(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function zd(e){return window.getComputedStyle(e)}class Bd extends Ri{constructor(){super(...arguments),this.type="html",this.renderInstance=_i}readValueFromInstance(t,n){var r;if(tt.has(n))return(r=this.projection)!=null&&r.isProjecting?Zn(n):gu(t,n);{const s=zd(t),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rd(t,n)}build(t,n,r){Oi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Li(t,n,r)}}function jd(e,t){return e in t}class Kd extends Ii{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(jd(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 ur()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Gd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wd={offset:"strokeDashoffset",array:"strokeDasharray"};function Ud(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Gd:Wd;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Yd=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xd(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Oi(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of Yd)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ud(d,s,i,o,!1)}const Fi=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"]),Hd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qd(e,t,n,r){_i(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Fi.has(s)?s:or(s),t.attrs[s])}function Zd(e,t,n){const r=Li(e,t,n);for(const s in e)if(ce(e[s])||ce(t[s])){const i=et.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Jd extends Ri{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ur}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const r=Ti(n);return r&&r.default||0}return n=Fi.has(n)?n:or(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zd(t,n,r)}build(t,n,r){Xd(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){qd(t,n,r,s)}mount(t){this.isSVGTag=Hd(t.tagName),super.mount(t)}}function Qd(e,t,n){const r=ce(e)?e:nt(e);return r.start(gi("",r,t,n)),r.animation}function fr(e){return typeof e=="object"&&!Array.isArray(e)}function Ni(e,t,n,r){return e==null?[]:typeof e=="string"&&fr(t)?vd(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function ef(e,t,n){return e*(t+1)+n*t}function zi(e,t,n,r){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))):r.get(t)??e}function tf(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Mn(e,s),r--)}}function nf(e,t,n,r,s,i){tf(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Qe(s,i,r[o]),easing:Cs(n,o)})}function rf(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function sf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const of="easeInOut",af=20;function lf(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let h=0;h<e.length;h++){const y=e[h];if(typeof y=="string"){c.set(y,d);continue}else if(!Array.isArray(y)){c.set(y.name,zi(d,y.at,u,c));continue}let[m,b,v={}]=y;v.at!==void 0&&(d=zi(d,v.at,u,c));let x=0;const C=(T,A,R,I=0,g=0)=>{const V=cf(T),{delay:M=0,times:_=Xs(V),type:z=t.type||"keyframes",repeat:ie,repeatType:oe,repeatDelay:ae=0,...Y}=A;let{ease:Q=t.ease||"easeOut",duration:ue}=A;const st=typeof M=="function"?M(I,g):M,$=V.length,Ot=rr(z)?z:s==null?void 0:s[z||"keyframes"];if($<=2&&Ot){let K=100;if($===2&&ff(V)){const _e=V[1]-V[0];K=Math.abs(_e)}const G={...t,...Y};ue!==void 0&&(G.duration=he(ue));const Ae=Gs(G,K,Ot);Q=Ae.ease,ue=Ae.duration}ue??(ue=i);const _t=d+st;_.length===1&&_[0]===0&&(_[1]=1);const Dt=_.length-V.length;if(Dt>0&&Ys(_,Dt),V.length===1&&V.unshift(null),ie&&ie<af){const K=ue>0?ae/ue:0;ue=ef(ue,ie,ae);const G=[...V],Ae=[..._];Q=Array.isArray(Q)?[...Q]:[Q];const _e=[...Q],X=oe==="reverse"||oe==="mirror";let Lt=G,Ke=_e;X&&(Lt=[...G].reverse(),oe==="reverse"&&(Ke=[..._e].reverse().map(fe=>typeof fe=="function"?En(fe):fe)));for(let fe=0;fe<ie;fe++){const ot=X&&fe%2===0,Ge=ot?Lt:G,Yh=ot?Ke:_e,xo=(fe+1)*(1+K);K>0&&(V.push(V[V.length-1]),_.push(xo),Q.push("linear")),V.push(...Ge);for(let Ft=0;Ft<Ge.length;Ft++)_.push(Ae[Ft]+xo),Q.push(Ft===0?"linear":Cs(Yh,Ft-1))}rf(_,ie,K)}const it=_t+ue;nf(R,V,Q,_,_t,it),x=Math.max(st+ue,x),f=Math.max(it,f)};if(ce(m)){const T=Bi(m,a);C(b,v,ji("default",T))}else{const T=Ni(m,b,r,l),A=T.length;for(let R=0;R<A;R++){b=b,v=v;const I=T[R],g=Bi(I,a);for(const V in b)C(b[V],uf(v,V),ji(V,g),R,A)}}u=d,d+=x}return a.forEach((h,y)=>{for(const m in h){const b=h[m];b.sort(sf);const v=[],x=[],C=[];for(let I=0;I<b.length;I++){const{at:g,value:V,easing:M}=b[I];v.push(V),x.push(Pn(0,f,g)),C.push(M||"easeOut")}x[0]!==0&&(x.unshift(0),v.unshift(v[0]),C.unshift(of)),x[x.length-1]!==1&&(x.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const T=o.get(y);T.keyframes[m]=v;const{type:A,...R}=t;T.transition[m]={...R,duration:f,ease:C,times:x,...n}}}),o}function Bi(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ji(e,t){return t[e]||(t[e]=[]),t[e]}function cf(e){return Array.isArray(e)?e:[e]}function uf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const df=e=>typeof e=="number",ff=e=>e.every(df);function hf(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ci(e)&&!wd(e)?new Jd(t):new Bd(t);n.mount(e),At.set(e,n)}function mf(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kd(t);n.mount(e),At.set(e,n)}function gf(e,t){return ce(e)||typeof e=="number"||typeof e=="string"&&!fr(t)}function Ki(e,t,n,r){const s=[];if(gf(e,t))s.push(Qd(e,fr(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=Ni(e,t,r),o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l instanceof Element?hf:mf;At.has(l)||c(l);const u=At.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...ad(u,{...t,transition:d},{}))}}return s}function pf(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=nt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return lf(s,t,n,{spring:kt}).forEach(({keyframes:o,transition:a},l)=>{r.push(...Ki(l,o,a))}),r}function bf(e){return Array.isArray(e)&&e.some(Array.isArray)}function yf(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),bf(i)){const{onComplete:f,...h}=o||{};typeof f=="function"&&(c=f),l=pf(i,{...u,...h},t)}else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(c=f),l=Ki(i,o,{...u,...h},t)}const d=new Nu(l);return c&&d.finished.then(c),t&&(t.animations.push(d),d.finished.then(()=>{Mn(t.animations,d)})),d}return s}const Gi=yf(),vf="a4ui-effects";function xf(){try{return window.localStorage}catch{return null}}function wf(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=xf())==null?void 0:t.getItem(vf);return e===null?!0:e==="1"}function kf(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const Wi=wf();kf(Wi);const[Sf]=J(Wi);function Tf(){return!Sf()}const Af="(prefers-reduced-motion: reduce)";function Cf(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Af).matches}const Mf="a4ui-motion-forced";function Vf(){try{return window.localStorage}catch{return null}}const[Ui]=J(((vo=Vf())==null?void 0:vo.getItem(Mf))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",ne(Ui));function Mt(){return Tf()||Cf()&&!Ui()}function $f(e,t=600){const[n,r]=J(0);let s;return Me(()=>{const i=e();if(s==null||s.stop(),Mt()){r(i);return}const o=ne(n);o!==i&&(s=Gi(o,i,{duration:t/1e3,ease:"easeOut",onUpdate:a=>r(a)}))}),me(()=>s==null?void 0:s.stop()),n}function Pf(e,t={}){Mt()||Gi(e,{opacity:[0,1],y:[t.y??8,0]},{duration:t.duration??.32,delay:t.delay??0,ease:"easeOut"})}function Ef(e,t,n={}){if(Mt())return;const r=e.getBoundingClientRect(),s=t.clientX-r.left,i=t.clientY-r.top,o=2*Math.max(Math.hypot(s,i),Math.hypot(r.width-s,i),Math.hypot(s,r.height-i),Math.hypot(r.width-s,r.height-i)),a=document.createElement("span");a.setAttribute("aria-hidden","true"),Object.assign(a.style,{position:"absolute",left:`${s}px`,top:`${i}px`,width:`${o}px`,height:`${o}px`,borderRadius:"9999px",background:n.color??"currentColor",pointerEvents:"none",transform:"translate(-50%,-50%) scale(0)"}),e.appendChild(a);const l=a.animate([{transform:"translate(-50%,-50%) scale(0)",opacity:String(n.opacity??.3)},{transform:"translate(-50%,-50%) scale(1)",opacity:"0"}],{duration:600,easing:"ease-out"}),c=()=>a.remove();l.finished.then(c).catch(c)}mt(["pointerdown"]);var If=D("<a>"),Rf=D("<button>");const Of={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},_f="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Df(e){const[t,n]=le(e,["variant","class","type","children","ripple","onPointerDown","href","target","rel"]),r=()=>B(_f,Of[t.variant??"primary"],t.ripple&&"relative overflow-hidden",t.class),s=i=>{t.ripple&&Ef(i.currentTarget,i,{opacity:.35});const o=t.onPointerDown;typeof o=="function"?o(i):o&&o[0](o[1],i)};return p(q,{get when(){return t.href!==void 0},get fallback(){return(()=>{var i=Rf();return i.$$pointerdown=s,De(i,L({get type(){return t.type??"button"},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i})()},get children(){var i=If();return i.$$pointerdown=s,De(i,L({get href(){return t.href},get target(){return t.target},get rel(){return t.rel},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i}})}mt(["pointerdown"]);var Lf=D('<span class="text-base font-normal text-muted-foreground">'),Ff=D('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Nf=D("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),zf=D('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),Bf=D("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const Vt=e=>String(e).padStart(2,"0");function jf(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=s=>{var i;return Number(((i=n.find(o=>o.type===s))==null?void 0:i.value)??0)};return{hours:r("hour")%24,minutes:r("minute"),seconds:r("second")}}function Kf(e){const t=()=>{const{hours:n,minutes:r,seconds:s}=e.parts;let i=n,o="";return e.hour12&&(o=i>=12?"PM":"AM",i=i%12,i===0&&(i=12)),{time:e.seconds?`${Vt(i)}:${Vt(r)}:${Vt(s)}`:`${Vt(i)}:${Vt(r)}`,suffix:o}};return(()=>{var n=Ff(),r=n.firstChild,s=r.firstChild;return P(s,()=>t().time),P(r,p(q,{get when(){return e.hour12},get children(){var i=Lf();return P(i,()=>t().suffix),i}}),null),N(()=>be(n,B("flex flex-col items-center justify-center",e.class))),n})()}function Gf(e){const t=()=>e.size,n=()=>t()/2,r=()=>t()/2,s=()=>t()/2,i=()=>e.parts.hours%12*30+e.parts.minutes*.5,o=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=s()*u;return`${n()},${r()} ${n()},${r()-d}`};return(()=>{var u=zf(),d=u.firstChild,f=d.nextSibling,h=f.nextSibling,y=h.nextSibling;return P(u,p(ht,{each:l,children:m=>{const b=m*30,v=s()-4,x=s()-(m%3===0?14:9),C=n()+v*Math.sin(b*Math.PI/180),T=r()-v*Math.cos(b*Math.PI/180),A=n()+x*Math.sin(b*Math.PI/180),R=r()-x*Math.cos(b*Math.PI/180);return(()=>{var I=Bf();return E(I,"x1",C),E(I,"y1",T),E(I,"x2",A),E(I,"y2",R),E(I,"stroke-width",m%3===0?2:1),I})()}}),f),P(u,p(q,{get when(){return e.seconds},get children(){var m=Nf();return N(b=>{var v=c(.75),x=`rotate(${a()}deg)`;return v!==b.e&&E(m,"points",b.e=v),x!==b.t&&Ve(m,"transform",b.t=x),b},{e:void 0,t:void 0}),m}}),y),N(m=>{var b=t(),v=t(),x=`0 0 ${t()} ${t()}`,C=B("inline-block",e.class),T=n(),A=r(),R=s()-2,I=c(.45),g=`rotate(${i()}deg)`,V=c(.65),M=`rotate(${o()}deg)`,_=n(),z=r();return b!==m.e&&E(u,"width",m.e=b),v!==m.t&&E(u,"height",m.t=v),x!==m.a&&E(u,"viewBox",m.a=x),C!==m.o&&E(u,"class",m.o=C),T!==m.i&&E(d,"cx",m.i=T),A!==m.n&&E(d,"cy",m.n=A),R!==m.s&&E(d,"r",m.s=R),I!==m.h&&E(f,"points",m.h=I),g!==m.r&&Ve(f,"transform",m.r=g),V!==m.d&&E(h,"points",m.d=V),M!==m.l&&Ve(h,"transform",m.l=M),_!==m.u&&E(y,"cx",m.u=_),z!==m.c&&E(y,"cy",m.c=z),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0}),u})()}function Wf(e){const[t,n]=J(new Date);at(()=>{const l=setInterval(()=>n(new Date),1e3);me(()=>clearInterval(l))});const r=()=>e.variant??"digital",s=()=>e.seconds??!0,i=()=>e.hour12??!1,o=()=>e.size??160,a=()=>jf(t(),e.timeZone);return p(q,{get when(){return r()==="analog"},get fallback(){return p(Kf,{get parts(){return a()},get seconds(){return s()},get hour12(){return i()},get class(){return e.class}})},get children(){return p(Gf,{get parts(){return a()},get seconds(){return s()},get size(){return o()},get class(){return e.class}})}})}var Uf=D('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),Yf=D('<span class="block h-[1em] text-center leading-none">'),Xf=D('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),Hf=D("<div>"),qf=D('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const hr=1e3,mr=60*hr,gr=60*mr,Yi=24*gr,Zf=[0,1,2,3,4,5,6,7,8,9],pr=e=>String(e).padStart(2,"0");function Jf(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var n=Uf(),r=n.firstChild;return P(r,p(bn,{each:Zf,children:s=>(()=>{var i=Yf();return P(i,s),i})()})),N(s=>Ve(r,"transform",`translateY(${t()*-10}%)`)),n})()}function Qf(e){const t=()=>e.value.split("");return(()=>{var n=Xf();return P(n,p(bn,{get each(){return t()},children:r=>p(Jf,{get char(){return r()}})})),n})()}function eh(e){const t=te(()=>e.to.getTime()),n=()=>Math.max(0,t()-Date.now()),[r,s]=J(n());let i=!1;const o=f=>{var h;f<=0&&!i&&(i=!0,(h=e.onComplete)==null||h.call(e))};o(r()),at(()=>{const f=setInterval(()=>{const h=n();s(h),o(h)},hr);me(()=>clearInterval(f))});const a=()=>Math.floor(r()/Yi),l=()=>Math.floor(r()%Yi/gr),c=()=>Math.floor(r()%gr/mr),u=()=>Math.floor(r()%mr/hr),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:pr(l())},{label:"Mins",value:pr(c())},{label:"Secs",value:pr(u())}];return(()=>{var f=Hf();return P(f,p(bn,{get each(){return d()},children:h=>(()=>{var y=qf(),m=y.firstChild;return P(y,p(Qf,{get value(){return h().value}}),m),P(m,()=>h().label),y})()})),N(()=>be(f,B("flex gap-4",e.class))),f})()}var th=D("<kbd>");const nh="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function rh(e){return(()=>{var t=th();return P(t,()=>e.children),N(()=>be(t,B(nh,e.class))),t})()}function sh(e){return(...t)=>{for(const n of e)n&&n(...t)}}const ih=e=>typeof e=="function"&&!e.length?e():e,oh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Xi(e){const t={};let n;for(;n=oh.exec(e);)t[n[1]]=n[2];return t}function Hi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Xi(e)}else typeof t=="string"&&(t=Xi(t));return{...e,...t}}function ah(...e){return sh(e)}function lh(e){return Object.prototype.toString.call(e)==="[object String]"}function qi(e){return t=>`${e()}-${t}`}function Zi(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function $t(e,t){return L(e,t)}var Pt=new Map,Ji=new Set;function Qi(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Pt.get(n.target);r||(r=new Set,Pt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Pt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Pt.delete(n.target)),Pt.size===0)){for(const s of Ji)s();Ji.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qi():document.addEventListener("DOMContentLoaded",Qi));let br=new Map,yr=!1;try{yr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ln=!1;try{ln=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eo={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ch{constructor(t,n={}){this.numberFormatter=uh(t,n),this.options=n}format(t){var r;let n="";if(!yr&&this.options.signDisplay!=null?n=dh(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ln){let{unit:s,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!s)return n;let a=(r=eo[s])==null?void 0:r[i];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yr&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ln&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function uh(e,t={}){var i;let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ln){let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!((i=eo[o])!=null&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(br.has(r))return br.get(r);let s=new Intl.NumberFormat(e,t);return br.set(r,s),s}function dh(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),i=e.format(n),o=s.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}var fh=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mh(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return fh.has(n)}const t=e.split("-")[0];return hh.has(t)}function gh(e){return mh(e)?"rtl":"ltr"}function to(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gh(e)}}var vr=to(),Et=new Set;function no(){vr=to();for(const e of Et)e(vr)}function ph(){const[e,t]=J(vr),n=te(()=>e());return at(()=>{Et.size===0&&window.addEventListener("languagechange",no),Et.add(t),me(()=>{Et.delete(t),Et.size===0&&window.removeEventListener("languagechange",no)})}),{locale:()=>n().locale,direction:()=>n().direction}}var bh=lt();function yh(){const e=ph();return ct(bh)||e}function ro(e){const{locale:t}=yh();return te(()=>new ch(t(),ih(e)))}function so(e){return t=>(e(t),()=>e(void 0))}var io=lt();function cn(){const e=ct(io);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function vh(e){const t=cn(),[n,r]=le(e,["style"]);return p(ve,L({as:"div",get style(){return Hi({"--kb-meter-fill-width":t.meterFillWidth()},n.style)}},()=>t.dataset(),r))}function xh(e){const t=cn(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(ve,L({as:"span",get id(){return r.id}},()=>t.dataset(),s))}function wh(e){const t=`meter-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[r,s]=le(n,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=te(()=>({})),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,meterFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(io.Provider,{value:h,get children(){return p(ve,L({as:"div",get role(){return r.role||"meter"},get"aria-valuenow"(){return yn(()=>!!r.indeterminate)()?void 0:l()},get"aria-valuemin"(){return r.minValue},get"aria-valuemax"(){return r.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return i()}},f,s))}})}function kh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e))}function Sh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var we=Object.assign(wh,{Fill:vh,Label:xh,Track:kh,ValueLabel:Sh}),Th=D('<div class="flex items-center justify-between text-sm text-foreground">');function Ah(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(we,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Th();return P(n,p(we.Label,{get children(){return e.label}}),null),P(n,p(we.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(we.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(we.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Ch={};qt(Ch,{Fill:()=>ao,Label:()=>lo,Progress:()=>rt,Root:()=>co,Track:()=>uo,ValueLabel:()=>fo,useProgressContext:()=>It});var oo=lt();function It(){const e=ct(oo);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function ao(e){const t=It(),[n,r]=le(e,["style"]);return p(we.Fill,L({get style(){return Hi({"--kb-progress-fill-width":t.progressFillWidth()},n.style)}},()=>t.dataset(),r))}function lo(e){const t=It(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(we.Label,L({get id(){return r.id}},()=>t.dataset(),s))}function co(e){const t=`progress-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100},e),[r,s]=le(n,["value","minValue","maxValue","indeterminate","getValueLabel"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>r.indeterminate?void 0:`${c()*100}%`,f=te(()=>{let y;return r.indeterminate||(y=c()===1?"complete":"loading"),{"data-progress":y,"data-indeterminate":r.indeterminate?"":void 0}}),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,progressFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(oo.Provider,{value:h,get children(){return p(we,L({role:"progressbar",get indeterminate(){return r.indeterminate||!1}},f,n))}})}function uo(e){const t=It();return p(we.Track,L(()=>t.dataset(),e))}function fo(e){const t=It();return p(we.ValueLabel,L(()=>t.dataset(),e))}var rt=Object.assign(co,{Fill:ao,Label:lo,Track:uo,ValueLabel:fo}),Mh=D('<div class="flex items-center justify-between text-sm text-foreground">');function Vh(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(rt,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Mh();return P(n,p(rt.Label,{get children(){return e.label}}),null),P(n,p(rt.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(rt.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(rt.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var $h=D("<div role=radiogroup>"),Ph=D("<div role=img>"),Eh=D('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function Ih(e){const[t,n]=J(0),r=()=>e.max??5,s=()=>Array.from({length:r()},(l,c)=>c+1),i=()=>t()>0?t():e.value,o=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>B("h-5 w-5 transition-colors",l<=i()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return p(q,{get when(){return!e.readonly},get fallback(){return(()=>{var l=Ph();return P(l,p(ht,{get each(){return s()},children:c=>p(ls,{get class(){return a(c)},"aria-hidden":"true"})})),N(c=>{var u=B("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${r()}`;return u!==c.e&&be(l,c.e=u),d!==c.t&&E(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=$h();return l.addEventListener("mouseleave",()=>n(0)),P(l,p(ht,{get each(){return s()},children:c=>(()=>{var u=Eh();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o(Math.min(e.value+1,r()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o(Math.max(e.value-1,0)))},u.$$click=()=>o(c),u.addEventListener("blur",()=>n(0)),u.addEventListener("focus",()=>n(c)),u.addEventListener("mouseenter",()=>n(c)),P(u,p(ls,{get class(){return a(c)},"aria-hidden":"true"})),N(d=>{var f=e.value===c,h=`Rate ${c} of ${r()}`;return f!==d.e&&E(u,"aria-checked",d.e=f),h!==d.t&&E(u,"aria-label",d.t=h),d},{e:void 0,t:void 0}),u})()})),N(()=>be(l,B("inline-flex items-center gap-1",e.class))),l}})}mt(["click","keydown"]);var Rh=D('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Oh(e){const t=()=>e.size??96,n=()=>e.thickness??8,r=()=>Math.min(100,Math.max(0,e.value)),s=()=>(t()-n())/2,i=()=>2*Math.PI*s(),o=()=>i()*(1-r()/100);return(()=>{var a=Rh(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return P(d,p(q,{get when(){return e.label},get fallback(){return`${Math.round(r())}%`},get children(){return e.label}})),N(f=>{var h=r(),y=B("relative inline-flex items-center justify-center",e.class),m=`${t()}px`,b=`${t()}px`,v=t(),x=t(),C=`0 0 ${t()} ${t()}`,T=t()/2,A=t()/2,R=s(),I=n(),g=t()/2,V=t()/2,M=s(),_=n(),z=String(i()),ie=String(o());return h!==f.e&&E(a,"aria-valuenow",f.e=h),y!==f.t&&be(a,f.t=y),m!==f.a&&Ve(a,"width",f.a=m),b!==f.o&&Ve(a,"height",f.o=b),v!==f.i&&E(l,"width",f.i=v),x!==f.n&&E(l,"height",f.n=x),C!==f.s&&E(l,"viewBox",f.s=C),T!==f.h&&E(c,"cx",f.h=T),A!==f.r&&E(c,"cy",f.r=A),R!==f.d&&E(c,"r",f.d=R),I!==f.l&&E(c,"stroke-width",f.l=I),g!==f.u&&E(u,"cx",f.u=g),V!==f.c&&E(u,"cy",f.c=V),M!==f.w&&E(u,"r",f.w=M),_!==f.m&&E(u,"stroke-width",f.m=_),z!==f.f&&E(u,"stroke-dasharray",f.f=z),ie!==f.y&&E(u,"stroke-dashoffset",f.y=ie),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),a})()}function _h(e,t){const[n,r]=J(ho(t==null?void 0:t()));return Me(()=>{var s;r(((s=e())==null?void 0:s.tagName.toLowerCase())||ho(t==null?void 0:t()))}),n}function ho(e){return lh(e)?e:void 0}var Dh={};qt(Dh,{Root:()=>mo,Separator:()=>go});function mo(e){let t;const n=$t({orientation:"horizontal"},e),[r,s]=le(n,["ref","orientation"]),i=_h(()=>t,()=>"hr");return p(ve,L({as:"hr",ref(o){var a=ah(l=>t=l,r.ref);typeof a=="function"&&a(o)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},s))}var go=mo;function Lh(e){const t=()=>e.orientation??"horizontal";return p(go,{get orientation(){return t()},get class(){return B("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var Fh=D('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Nh(e){return(()=>{var t=Fh();return N(n=>{var r=B("h-5 w-5 animate-spin text-muted-foreground",e.class),s=e.label??"Loading";return r!==n.e&&E(t,"class",n.e=r),s!==n.t&&E(t,"aria-label",n.t=s),n},{e:void 0,t:void 0}),t})()}function zh(e,t={}){if(Mt())return()=>{};const n=document.createElement("span");n.setAttribute("aria-hidden","true"),n.className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300",e.appendChild(n);const r=t.size??180,s=t.color??"hsl(var(--primary))",i=(c,u)=>{n.style.background=`radial-gradient(${r}px circle at ${c}px ${u}px, color-mix(in srgb, ${s} 30%, transparent), transparent 70%)`},o=c=>{const u=e.getBoundingClientRect();i(c.clientX-u.left,c.clientY-u.top)},a=()=>{n.style.opacity="1"},l=()=>{n.style.opacity="0"};return e.addEventListener("pointermove",o),e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointermove",o),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",l),n.remove()}}function Bh(e,t,n={}){if(Mt())return()=>{};t.style.willChange="transform";const r=i=>{const o=e.getBoundingClientRect(),a=(i.clientX-o.left)/o.width-.5,l=(i.clientY-o.top)/o.height-.5,c=n.max??10;t.style.transition="transform 0.15s ease-out",t.style.transform=`perspective(800px) rotateX(${(l*-2*c).toFixed(2)}deg) rotateY(${(a*2*c).toFixed(2)}deg) scale(1.02)`},s=()=>{t.style.transition="transform 0.4s ease",t.style.transform="perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)"};return e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),t.style.transform="",t.style.transition="",t.style.willChange=""}}var po=D("<div>");function jh(e){const[t,n]=le(e,["class","children","glass","glow","tilt","spotlight"]),r=()=>(t.glow??t.glass)===!0;let s;return at(()=>{const i=[t.tilt&&s?Bh(s,s):null,t.spotlight&&s?zh(s):null].filter(o=>o!==null);me(()=>i.forEach(o=>o()))}),(()=>{var i=po(),o=s;return typeof o=="function"?vn(o,i):s=i,De(i,L({get class(){return B(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",r()&&"glow-edge",t.spotlight&&"relative overflow-hidden",t.tilt&&"will-change-transform",t.class)}},n),!1,!0),P(i,()=>t.children),i})()}function Kh(e){const[t,n]=le(e,["class","children"]);return(()=>{var r=po();return De(r,L({get class(){return B("p-6 pt-0",t.class)}},n),!1,!0),P(r,()=>t.children),r})()}var bo=D("<div>"),Gh=D('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const Wh={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function Uh(e){const t=$f(()=>e.value),n=()=>(e.format??(s=>String(Math.round(s))))(t());let r;return at(()=>{r&&Pf(r,{delay:e.delay??0})}),(()=>{var s=bo(),i=r;return typeof i=="function"?vn(i,s):r=s,P(s,p(jh,{glass:!0,glow:!0,get class(){return e.class},get children(){return p(Kh,{class:"flex items-center gap-4 p-5",get children(){return[p(q,{get when(){return e.icon},get children(){var o=bo();return P(o,()=>e.icon),N(()=>be(o,B("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",Wh[e.tone??"neutral"]))),o}}),(()=>{var o=Gh(),a=o.firstChild,l=a.nextSibling;return P(a,()=>e.label),P(l,n),o})()]}})}})),s})()}function Rt(e){return(e.textContent??"").trim()}function yo(){se("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{re();const n=e.label||Rt(t);return p(Df,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:n})}),se("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(re(),p(uc,{get tone(){return e.tone},get children(){return e.label||Rt(t)}}))),se("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(re(),p(ql,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||Rt(t)}}))),se("a4-spinner",{label:"Loading"},e=>(re(),p(Nh,{get label(){return e.label}}))),se("a4-avatar",{src:"",alt:"",fallback:""},e=>(re(),p(ic,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),se("a4-progress",{value:0,max:100,label:""},e=>(re(),p(Vh,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-meter",{value:0,max:100,label:""},e=>(re(),p(Ah,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(re(),p(Oh,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),se("a4-stat",{label:"",value:0,tone:"neutral"},e=>(re(),p(Uh,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),se("a4-kbd",{label:""},(e,{element:t})=>(re(),p(rh,{get children(){return e.label||Rt(t)}}))),se("a4-condition-scale",{value:0,min:1,max:10,showvalue:!0},e=>(re(),p(hl,{get value(){return e.value},get min(){return e.min},get max(){return e.max},get showValue(){return e.showvalue}}))),se("a4-announcement-bar",{tone:"primary",dismissible:!1,coupon:"",href:"",label:""},(e,{element:t})=>(re(),p(rc,{get tone(){return e.tone},get dismissible(){return e.dismissible},get couponCode(){return e.coupon||void 0},get href(){return e.href||void 0},get children(){return e.label||Rt(t)}}))),se("a4-separator",{orientation:"horizontal"},e=>(re(),p(Lh,{get orientation(){return e.orientation}}))),se("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(re(),p(Ih,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:n=>t.dispatchEvent(new CustomEvent("change",{detail:n}))}))),se("a4-countdown",{to:""},e=>{re();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return p(eh,{to:t})}),se("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(re(),p(Wf,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return yo(),un.defineA4uiElements=yo,Object.defineProperty(un,Symbol.toStringTag,{value:"Module"}),un})({});
6
+ */var pl={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"},Ye=pl,bl=lt({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),yl=D("<svg>"),vl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),wl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),as=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>{const t=wl(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sl=e=>{const[t,n]=le(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=ct(bl);return(()=>{var s=yl();return De(s,L(Ye,{get width(){return t.size??r.size??Ye.width},get height(){return t.size??r.size??Ye.height},get stroke(){return t.color??r.color??Ye.stroke},get"stroke-width"(){return yn(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])},get class(){return xl("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${as(kl(t.name))}`,`lucide-${as(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!vl(n)?"true":void 0}},n),!0,!0),P(s,p(ht,{get each(){return t.iconNode},children:([i,o])=>p(wn,L({component:i},o))})),s})()},Ee=Sl,Tl=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Al=e=>p(Ee,L(e,{iconNode:Tl,name:"check"})),Cl=Al,Ml=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vl=e=>p(Ee,L(e,{iconNode:Ml,name:"circle-check"})),$l=Vl,Pl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],El=e=>p(Ee,L(e,{iconNode:Pl,name:"circle-x"})),Il=El,Rl=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ol=e=>p(Ee,L(e,{iconNode:Rl,name:"copy"})),_l=Ol,Dl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ll=e=>p(Ee,L(e,{iconNode:Dl,name:"info"})),Fl=Ll,Nl=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],zl=e=>p(Ee,L(e,{iconNode:Nl,name:"star"})),ls=zl,Bl=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jl=e=>p(Ee,L(e,{iconNode:Bl,name:"triangle-alert"})),Kl=jl,Gl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wl=e=>p(Ee,L(e,{iconNode:Gl,name:"x"})),Ul=Wl,Yl=D("<p class=font-semibold>"),Xl=D("<div class=flex-1><div class=text-muted-foreground>");const Hl={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:Fl},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:$l},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Kl},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:Il}};function ql(e){const t=()=>Hl[e.tone??"info"];return p(os,{get class(){return B("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[p(wn,{get component(){return t().Icon},get class(){return B("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var n=Xl(),r=n.firstChild;return P(n,p(q,{get when(){return e.title},get children(){var s=Yl();return P(s,()=>e.title),s}}),r),P(r,()=>e.children),n})()]}})}var Zl=D('<a class="underline-offset-2 transition-colors hover:underline motion-reduce:transition-none">'),Jl=D('<button type=button aria-label="Dismiss announcement"class="absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">'),Ql=D("<div role=region aria-label=Announcement>"),ec=D("<span>"),tc=D('<span class="ml-2 inline-flex items-center gap-1 rounded-md bg-black/10 px-2 py-0.5 font-mono"><button type=button class="inline-flex items-center gap-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">');const nc={primary:"bg-primary text-primary-foreground",accent:"bg-accent text-accent-foreground",neutral:"bg-muted text-foreground"};function rc(e){const[t,n]=J(!1),[r,s]=J(!1),i=async()=>{const a=e.couponCode;!a||!navigator.clipboard||(await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),1500))},o=()=>{var a;n(!0),(a=e.onDismiss)==null||a.call(e)};return p(q,{get when(){return!t()},get children(){var a=Ql();return P(a,p(q,{get when(){return e.href},get fallback(){return(()=>{var l=ec();return P(l,()=>e.children),l})()},get children(){var l=Zl();return P(l,()=>e.children),N(()=>E(l,"href",e.href)),l}}),null),P(a,p(q,{get when(){return e.couponCode},children:l=>(()=>{var c=tc(),u=c.firstChild;return P(c,l,u),u.$$click=i,P(u,p(q,{get when(){return r()},get fallback(){return p(_l,{class:"h-3 w-3"})},get children(){return[p(Cl,{class:"h-3 w-3"}),"Copied"]}})),N(()=>E(u,"aria-label",r()?"Coupon code copied":"Copy coupon code")),c})()}),null),P(a,p(q,{get when(){return e.dismissible},get children(){var l=Jl();return l.$$click=o,P(l,p(Ul,{class:"h-4 w-4"})),l}}),null),N(()=>be(a,B("relative w-full rounded-none px-4 py-2 text-center text-sm",nc[e.tone??"primary"],e.dismissible&&"pr-10",e.class))),a}})}mt(["click"]);var sc={};qt(sc,{Fallback:()=>us,Image:()=>Zt,Img:()=>ds,Root:()=>fs,useImageContext:()=>Cn});var cs=lt();function Cn(){const e=ct(cs);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function us(e){const t=Cn(),[n,r]=J(t.fallbackDelay()===void 0);return Me(()=>{const s=t.fallbackDelay();if(s!==void 0){const i=window.setTimeout(()=>r(!0),s);me(()=>window.clearTimeout(i))}}),p(q,{get when(){return yn(()=>!!n())()&&t.imageLoadingStatus()!=="loaded"},get children(){return p(ve,L({as:"span"},e))}})}function ds(e){const t=Cn(),[n,r]=J("idle");return Me(Ao(()=>e.src,s=>{if(!s){r("error");return}let i=!0;const o=new window.Image,a=l=>()=>{i&&r(l)};r("loading"),e.crossOrigin!==void 0&&(o.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(o.referrerPolicy=e.referrerPolicy),o.onload=a("loaded"),o.onerror=a("error"),o.src=s,me(()=>{i=!1})})),Me(()=>{const s=n();s!=="idle"&&t.onImageLoadingStatusChange(s)}),p(q,{get when(){return n()==="loaded"},get children(){return p(ve,L({as:"img"},e))}})}function fs(e){const[t,n]=le(e,["fallbackDelay","onLoadingStatusChange"]),[r,s]=J("idle"),i={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:r,onImageLoadingStatusChange:o=>{var a;s(o),(a=t.onLoadingStatusChange)==null||a.call(t,o)}};return p(cs.Provider,{value:i,get children(){return p(ve,L({as:"span"},n))}})}var Zt=Object.assign(fs,{Fallback:us,Img:ds});function ic(e){return p(Zt,{get class(){return B("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[p(Zt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),p(Zt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var oc=D('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'),ac=D("<span>");const lc={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",warning:"bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",danger:"bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",info:"bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"},cc="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function uc(e){const[t,n]=le(e,["tone","class","children","pulse"]);return(()=>{var r=ac();return De(r,L({get class(){return B(cc,lc[t.tone??"neutral"],t.class)}},n),!1,!0),P(r,p(q,{get when(){return t.pulse},get children(){return oc()}}),null),P(r,()=>t.children,null),r})()}function dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Mn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ie=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Re={},hs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fc=e=>typeof e=="object"&&e!==null,ms=e=>/^0[^.\s]+$/u.test(e);function gs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,$n=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Pn=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ps{constructor(){this.subscriptions=[]}add(t){return dc(this.subscriptions,t),()=>Mn(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const he=e=>e*1e3,ge=e=>e/1e3,bs=(e,t)=>t?e*(1e3/t):0,hc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},ys=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mc=1e-7,gc=12;function pc(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=ys(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>mc&&++a<gc);return o}function yt(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>pc(i,0,1,e,n);return i=>i===0||i===1?i:ys(s(i),t,r)}const vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,En=e=>t=>1-e(1-t),xs=yt(.33,1.53,.69,.99),In=En(xs),ws=vs(In),ks=e=>e>=1?1:(e*=2)<1?.5*In(e):.5*(2-Math.pow(2,-10*(e-1))),Rn=e=>1-Math.sin(Math.acos(e)),bc=En(Rn),Ss=vs(Rn),yc=yt(.42,0,1,1),vc=yt(0,0,.58,1),Ts=yt(.42,0,.58,1),As=e=>Array.isArray(e)&&typeof e[0]!="number";function Cs(e,t){return As(e)?e[hc(0,e.length,t)]:e}const Ms=e=>Array.isArray(e)&&typeof e[0]=="number",xc={linear:Xe,easeIn:yc,easeInOut:Ts,easeOut:vc,circIn:Rn,circInOut:Ss,circOut:bc,backIn:In,backInOut:ws,backOut:xs,anticipate:ks},wc=e=>typeof e=="string",Vs=e=>{if(Ms(e)){Vn(e.length===4);const[t,n,r,s]=e;return yt(t,n,r,s)}else if(wc(e))return xc[e];return e},Jt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kc(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const u=t;t=n,n=u,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const Sc=40;function $s(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Jt.reduce((C,T)=>(C[T]=kc(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:y}=o,m=()=>{const C=Re.useManualTiming,T=C?s.timestamp:performance.now();n=!1,C||(s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,Sc),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Jt.reduce((C,T)=>{const A=o[T];return C[T]=(R,I=!1,g=!1)=>(n||b(),A.schedule(R,I,g)),C},{}),cancel:C=>{for(let T=0;T<Jt.length;T++)o[Jt[T]].cancel(C)},state:s,steps:o}}const{schedule:xe,cancel:On,state:Qt}=$s(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let en;function Tc(){en=void 0}const de={now:()=>(en===void 0&&de.set(Qt.isProcessing||Re.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(Tc)}},Ps=e=>t=>typeof t=="string"&&t.startsWith(e),Es=Ps("--"),Ac=Ps("var(--"),_n=e=>Ac(e)?Cc.test(e.split("/*")[0].trim()):!1,Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Is(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vt={...He,transform:e=>Ie(0,1,e)},tn={...He,default:1},xt=e=>Math.round(e*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mc(e){return e==null}const Vc=/^(?:#[\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"&&Vc.test(n)&&n.startsWith(e)||t&&!Mc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Dn);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$c=e=>Ie(0,255,e),Fn={...He,transform:e=>Math.round($c(e))},ze={test:Ln("rgb","red"),parse:Rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fn.transform(e)+", "+Fn.transform(t)+", "+Fn.transform(n)+", "+xt(vt.transform(r))+")"};function Pc(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Nn={test:Ln("#"),parse:Pc,transform:ze.transform},wt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Te=wt("deg"),qe=wt("%"),S=wt("px"),Ec=wt("vh"),Ic=wt("vw"),Os={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Ln("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qe.transform(xt(t))+", "+qe.transform(xt(n))+", "+xt(vt.transform(r))+")"},H={test:e=>ze.test(e)||Nn.test(e)||Ze.test(e),parse:e=>ze.test(e)?ze.parse(e):Ze.test(e)?Ze.parse(e):Nn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ze.transform(e):Ze.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Rc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dn))==null?void 0:t.length)||0)+(((n=e.match(Rc))==null?void 0:n.length)||0)>0}const _s="number",Ds="color",_c="var",Dc="var(",Ls="${}",Lc=/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 Je(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Lc,l=>(H.test(l)?(r.color.push(i),s.push(Ds),n.push(H.parse(l))):l.startsWith(Dc)?(r.var.push(i),s.push(_c),n.push(l)):(r.number.push(i),s.push(_s),n.push(parseFloat(l))),++i,Ls)).split(Ls);return{values:n,split:a,indexes:r,types:s}}function Fc(e){return Je(e).values}function Fs({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===_s?s+=xt(r[i]):o===Ds?s+=H.transform(r[i]):s+=r[i]}return s}}function Nc(e){return Fs(Je(e))}const zc=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e,Bc=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:zc(e);function jc(e){const t=Je(e);return Fs(t)(t.values.map((r,s)=>Bc(r,t.split[s])))}const pe={test:Oc,parse:Fc,createTransformer:Nc,getAnimatableNone:jc};function zn(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 Kc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=zn(l,a,e+.3333333333333333),i=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function nn(e,t){return n=>n>0?t:e}const Qe=(e,t,n)=>e+(t-e)*n,Bn=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Gc=[Nn,ze,Ze],Wc=e=>Gc.find(t=>t.test(e));function Ns(e){const t=Wc(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=Kc(n)),n}const zs=(e,t)=>{const n=Ns(e),r=Ns(t);if(!n||!r)return nn(e,t);const s={...n};return i=>(s.red=Bn(n.red,r.red,i),s.green=Bn(n.green,r.green,i),s.blue=Bn(n.blue,r.blue,i),s.alpha=Qe(n.alpha,r.alpha,i),ze.transform(s))},jn=new Set(["none","hidden"]);function Uc(e,t){return jn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yc(e,t){return n=>Qe(e,t,n)}function Kn(e){return typeof e=="number"?Yc:typeof e=="string"?_n(e)?nn:H.test(e)?zs:qc:Array.isArray(e)?Bs:typeof e=="object"?H.test(e)?zs:Xc:nn}function Bs(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Kn(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Xc(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Kn(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Hc(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const qc=(e,t)=>{const n=pe.createTransformer(t),r=Je(e),s=Je(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?jn.has(e)&&!s.values.length||jn.has(t)&&!r.values.length?Uc(e,t):$n(Bs(Hc(r,s),s.values),n):nn(e,t)};function js(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Kn(e)(e,t)}const Zc=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xe.update(t,n),stop:()=>On(t),now:()=>Qt.isProcessing?Qt.timestamp:de.now()}},Ks=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rn=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rn;)t+=n,r=e.next(t);return t>=rn?1/0:t}function Gs(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Gn(r),rn);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:ge(s)}}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};function Wn(e,t){return e*Math.sqrt(1-t*t)}const Jc=12;function Qc(e,t,n){let r=n;for(let s=1;s<Jc;s++)r=r-e(r)/t(r);return r}const Un=.001;function eu({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let s,i,o=1-t;o=Ie(j.minDamping,j.maxDamping,o),e=Ie(j.minDuration,j.maxDuration,ge(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,h=Wn(c,o),y=Math.exp(-d);return Un-f/h*y},i=c=>{const d=c*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=Wn(Math.pow(c,2),o);return(-s(c)+Un>0?-1:1)*((f-h)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Un+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Qc(s,i,a);if(e=he(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 tu=["duration","bounce"],nu=["stiffness","damping","mass"];function Ws(e,t){return t.some(n=>e[n]!==void 0)}function ru(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!Ws(e,nu)&&Ws(e,tu))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:j.mass,stiffness:s,damping:i}}else{const n=eu({...e,velocity:0});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:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ru({...n,velocity:-ge(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),b=o-i,v=ge(Math.sqrt(l/u)),x=Math.abs(b)<5;r||(r=x?j.restSpeed.granular:j.restSpeed.default),s||(s=x?j.restDelta.granular:j.restDelta.default);let C,T,A,R,I,g;if(m<1)A=Wn(v,m),R=(y+m*v*b)/A,C=M=>{const _=Math.exp(-m*v*M);return o-_*(R*Math.sin(A*M)+b*Math.cos(A*M))},I=m*v*R+b*A,g=m*v*b-R*A,T=M=>Math.exp(-m*v*M)*(I*Math.sin(A*M)+g*Math.cos(A*M));else if(m===1){C=_=>o-Math.exp(-v*_)*(b+(y+v*b)*_);const M=y+v*b;T=_=>Math.exp(-v*_)*(v*M*_-y)}else{const M=v*Math.sqrt(m*m-1);C=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return o-ae*((y+m*v*b)*Math.sinh(Y)+M*b*Math.cosh(Y))/M};const _=(y+m*v*b)/M,z=m*v*_-b*M,ie=m*v*b-_*M;T=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return ae*(z*Math.sinh(Y)+ie*Math.cosh(Y))}}const V={calculatedDuration:h&&d||null,velocity:M=>he(T(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*v*M),ie=Math.sin(A*M),oe=Math.cos(A*M),ae=o-z*(R*ie+b*oe),Y=he(z*(I*ie+g*oe));return a.done=Math.abs(Y)<=r&&Math.abs(o-ae)<=s,a.value=a.done?o:ae,a}const _=C(M);if(h)a.done=M>=d;else{const z=he(T(M));a.done=Math.abs(z)<=r&&Math.abs(o-_)<=s}return a.value=a.done?o:_,a},toString:()=>{const M=Math.min(Gn(V),rn),_=Ks(z=>V.next(M*z).value,M,30);return M+"ms "+_},toTransition:()=>{}};return V}kt.applyToOptions=e=>{const t=Gs(e,100,kt);return e.ease=t.ease,e.duration=he(t.duration),e.type="keyframes",e};const su=5;function Us(e,t,n){const r=Math.max(t-su,0);return bs(n-e(r),t-r)}function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=g=>a!==void 0&&g<a||l!==void 0&&g>l,y=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let m=n*t;const b=d+m,v=o===void 0?b:o(b);v!==b&&(m=v-d);const x=g=>-m*Math.exp(-g/r),C=g=>v+x(g),T=g=>{const V=x(g),M=C(g);f.done=Math.abs(V)<=c,f.value=f.done?v:M};let A,R;const I=g=>{h(f.value)&&(A=g,R=kt({keyframes:[f.value,y(f.value)],velocity:Us(C,g,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:g=>{let V=!1;return!R&&A===void 0&&(V=!0,T(g),I(g)),A!==void 0&&g>=A?R.next(g-A):(!V&&T(g),f)}}}function iu(e,t,n){const r=[],s=n||Re.mix||js,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=$n(l,a)}r.push(a)}return r}function ou(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Vn(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iu(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Pn(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ie(e[0],e[i-1],u)):c}function Ys(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Pn(0,t,r);e.push(Qe(n,1,s))}}function Xs(e){const t=[0];return Ys(t,e.length-1),t}function au(e,t){return e.map(n=>n*t)}function lu(e,t){return e.map(()=>t||Ts).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=As(r)?r.map(Vs):Vs(r),i={done:!1,value:t[0]},o=au(n&&n.length===t.length?n:Xs(t),e),a=ou(o,t,{ease:Array.isArray(s)?s:lu(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const cu=e=>e!==null;function sn(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(cu),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const uu={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function Hs(e){typeof e.type=="string"&&(e.type=uu[e.type])}class Xn{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 du=e=>e/100;class on extends Xn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hs(t);const{type:n=St,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=$n(du,js(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,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:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:y,onUpdate:m,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let C=this.currentTime,T=r;if(d){const g=Math.min(this.currentTime,s)/a;let V=Math.floor(g),M=g%1;!M&&g>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(f==="reverse"?(M=1-M,h&&(M-=h/a)):f==="mirror"&&(T=o)),C=Ie(0,1,M)*a}let A;x?(this.delayState.value=u[0],A=this.delayState):A=T.next(C),i&&!x&&(A.value=i(A.value));let{done:R}=A;!x&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return I&&y!==Yn&&(A.value=sn(u,this.options,b,this.speed)),m&&m(A.value),I&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return ge(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(this.currentTime)}set time(t){t=he(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Us(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(de.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ge(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Zc,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);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??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(de.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 fu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Be=e=>e*180/Math.PI,Hn=e=>{const t=Be(Math.atan2(e[1],e[0]));return qn(t)},hu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hn,rotateZ:Hn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qn=e=>(e=e%360,e<0&&(e+=360),e),qs=Hn,Zs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Js=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zs,scaleY:Js,scale:e=>(Zs(e)+Js(e))/2,rotateX:e=>qn(Be(Math.atan2(e[6],e[5]))),rotateY:e=>qn(Be(Math.atan2(-e[2],e[0]))),rotateZ:qs,rotate:qs,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return e.includes("scale")?1:0}function Jn(e,t){if(!e||e==="none")return Zn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=mu,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hu,s=a}if(!s)return Zn(t);const i=r[t],o=s[1].split(",").map(pu);return typeof i=="function"?i(o):o[i]}const gu=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jn(n,t)};function pu(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set([...et,"pathRotation"]),Qs=e=>e===He||e===S,bu=new Set(["x","y","z"]),yu=et.filter(e=>!bu.has(e));function vu(e){const t=[];return yu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-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})=>Jn(t,"x"),y:(e,{transform:t})=>Jn(t,"y")};Oe.translateX=Oe.x,Oe.translateY=Oe.y;const je=new Set;let Qn=!1,er=!1,tr=!1;function ei(){if(er){const e=Array.from(je).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=vu(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}er=!1,Qn=!1,je.forEach(e=>e.complete(tr)),je.clear()}function ti(){je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(er=!0)})}function xu(){tr=!0,ti(),ei(),tr=!1}class nr{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(je.add(this),Qn||(Qn=!0,xe.read(ti),xe.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}fu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),je.delete(this)}cancel(){this.state==="scheduled"&&(je.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wu=e=>e.startsWith("--");function ni(e,t,n){wu(t)?e.style.setProperty(t,n):e.style[t]=n}const ku={};function ri(e,t){const n=gs(e);return()=>ku[t]??n()}const Su=ri(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),si=ri(()=>{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})`,ii={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 oi(e,t){if(e)return typeof e=="function"?si()?Ks(e,t):"ease-out":Ms(e)?Tt(e):Array.isArray(e)?e.map(n=>oi(n,t)||ii.easeOut):ii[e]}function Tu(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=oi(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function rr(e){return typeof e=="function"&&"applyToOptions"in e}function Au({type:e,...t}){return rr(e)&&si()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ai extends Xn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=Au(t);this.animation=Tu(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=sn(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ni(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}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 ge(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=he(t),n&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Su()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const li={anticipate:ks,backInOut:ws,circInOut:Ss};function Cu(e){return e in li}function Mu(e){typeof e.ease=="string"&&Cu(e.ease)&&(e.ease=li[e.ease])}const sr=10;class Vu extends ai{constructor(t){Mu(t),Hs(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new on({...o,autoplay:!1}),l=Math.max(sr,de.now()-this.startTime),c=Ie(0,sr,l-sr),u=a.sample(l).value,{name:d}=this.options;i&&d&&ni(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const ci=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function $u(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 Pu(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ci(s,t),a=ci(i,t);return!o||!a?!1:$u(e)||(n==="spring"||rr(n))&&r}function ir(e){e.duration=0,e.type="keyframes"}const ui=new Set(["opacity","clipPath","filter","transform"]),Eu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Iu(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Eu.test(e[t]))return!0;return!1}const Ru=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ou=gs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _u(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ou()&&n&&(ui.has(n)||Ru.has(n)&&Iu(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const Du=40;class Lu extends Xn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=de.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||nr;this.keyframeResolver=new h(a,(m,b,v)=>this.onKeyframesResolved(m,b,f,!v),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var v,x;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=de.now();let d=!0;Pu(t,i,o,a)||(d=!1,(Re.instantAnimations||!l)&&(u==null||u(sn(t,r,n))),t[0]=t[t.length-1],ir(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Du?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&_u(h),m=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current;let b;if(y)try{b=new Vu({...h,element:m})}catch{b=new on(h)}else b=new on(h);b.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),xu()),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 Fu{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,s)=>{r&&r(),this.animations[s].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 di(this.animations,"duration")}get iterationDuration(){return di(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 di(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Nu extends Fu{then(t,n){return this.finished.finally(t).then(()=>{})}}const fi=30,zu=e=>!isNaN(parseFloat(e));class Bu{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=de.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.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=de.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zu(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 ps);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.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=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fi);return bs(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 nt(e,t){return new Bu(e,t)}function hi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function mi(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?hi(n,e):n}const ju={type:"spring",stiffness:500,damping:25,restSpeed:10},Ku=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uu=(e,{keyframes:t})=>t.length>2?Gu:tt.has(e)?e.startsWith("scale")?Ku(t[1]):ju:Wu,Yu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Xu(e){for(const t in e)if(!Yu.has(t))return!0;return!1}const gi=(e,t,n,r={},s,i)=>o=>{const a=mi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-he(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Xu(a)||Object.assign(u,Uu(e,u)),u.duration&&(u.duration=he(u.duration)),u.repeatDelay&&(u.repeatDelay=he(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ir(u),u.delay===0&&(d=!0)),(Re.instantAnimations||Re.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,ir(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=sn(u.keyframes,a);if(f!==void 0){xe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new on(u):new Lu(u)},Hu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qu(e){const t=Hu.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function pi(e,t,n=1){const[r,s]=qu(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return hs(o)?parseFloat(o):o}return _n(s)?pi(s,t,n+1):s}function bi(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Zu(e,t,n){const r=e.getProps();return yi(r,t,r.custom,e)}const vi=new Set(["width","height","top","left","right","bottom",...et]),Ju=e=>Array.isArray(e);function Qu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nt(n))}function ed(e){return Ju(e)?e[e.length-1]||0:e}function td(e,t){const n=Zu(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ed(i[o]);Qu(e,o,a)}}const ce=e=>!!(e&&e.getVelocity);function nd(e){return!!(ce(e)&&e.add)}function rd(e,t){const n=e.getValue("willChange");if(nd(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function or(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sd="data-"+or("framerAppearId");function id(e){return e.props[sd]}function od({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ad(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?hi(i,l):l;const c=i==null?void 0:i.reduceMotion,u=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],f=s&&e.animationState&&e.animationState.getState()[s],h=i==null?void 0:i.path;h&&h.animateVisualElement(e,a,i,n,d);for(const y in a){const m=e.getValue(y,e.latestValues[y]??null),b=a[y];if(b===void 0||f&&od(f,y))continue;const v={delay:n,...mi(i||{},y)};u&&(v.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(b)&&b===x&&!v.velocity){xe.update(()=>m.set(b));continue}let C=!1;if(window.MotionHandoffAnimation){const R=id(e);if(R){const I=window.MotionHandoffAnimation(R,y,xe);I!==null&&(v.startTime=I,C=!0)}}rd(e,y);const T=c??e.shouldReduceMotion;m.start(gi(y,m,b,T&&vi.has(y)?{type:!1}:v,e,C));const A=m.animation;A&&d.push(A)}if(o){const y=()=>xe.update(()=>{o&&td(e,o)});d.length?Promise.all(d).then(y):y()}return d}const ld={test:e=>e==="auto",parse:e=>e},xi=e=>t=>t.test(e),wi=[He,S,qe,Te,Ic,Ec,ld],ki=e=>wi.find(xi(e));function cd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ms(e):!0}const ud=new Set(["brightness","contrast","saturate","opacity"]);function dd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dn)||[];if(!r)return e;const s=n.replace(r,"");let i=ud.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fd=/\b([a-z-]*)\(.*?\)/gu,ar={...pe,getAnimatableNone:e=>{const t=e.match(fd);return t?t.map(dd).join(" "):e}},lr={...pe,getAnimatableNone:e=>{const t=pe.parse(e);return pe.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Si={...He,transform:Math.round},an={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:Te,pathRotation:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:Te,skewX:Te,skewY:Te,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:vt,originX:Os,originY:Os,originZ:S},zIndex:Si,fillOpacity:vt,strokeOpacity:vt,numOctaves:Si},hd={...an,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ar,WebkitFilter:ar,mask:lr,WebkitMask:lr},Ti=e=>hd[e],md=new Set([ar,lr]);function Ai(e,t){let n=Ti(e);return md.has(n)||(n=pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gd=new Set(["auto","none","0"]);function pd(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!gd.has(i)&&Je(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Ai(n,s)}class bd extends nr{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),_n(d))){const f=pi(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vi.has(r)||t.length!==2)return;const[s,i]=t,o=ki(s),a=ki(i),l=Is(s),c=Is(i);if(l!==c&&Oe[r]){this.needsMeasurement=!0;return}if(o!==a)if(Qs(o)&&Qs(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Oe[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||cd(t[s]))&&r.push(s);r.length&&pd(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=Oe[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Oe[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()}}const yd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function vd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const cr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:xd}=$s(queueMicrotask,!1);function Ci(e){return fc(e)&&"ownerSVGElement"in e}function wd(e){return Ci(e)&&e.tagName==="svg"}const kd=[...wi,H,pe],Sd=e=>kd.find(xi(e)),Mi=()=>({min:0,max:0}),ur=()=>({x:Mi(),y:Mi()}),At=new WeakMap;function Td(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ad(e){return typeof e=="string"||Array.isArray(e)}const Cd=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Vi(e){return Td(e.animate)||Cd.some(t=>Ad(e[t]))}function Md(e){return!!(Vi(e)||e.variants)}function Vd(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ce(s))e.addValue(r,s);else if(ce(i))e.addValue(r,nt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,nt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dr={current:null},$i={current:!1},$d=typeof window<"u";function Pd(){if($i.current=!0,!!$d)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dr.current=e.matches;e.addEventListener("change",t),t()}else dr.current=!1}const Pi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ei={};class Ii{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=nr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=de.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,xe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Vi(n),this.isVariantNode=Md(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];c[h]!==void 0&&ce(y)&&y.set(c[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,At.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((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($i.current||Pd(),this.shouldReduceMotion=dr.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),On(this.notifyUpdate),On(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){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ui.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new ai({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:he(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 Ei){const n=Ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ur()}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<Pi.length;r++){const s=Pi[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Vd(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=nt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hs(r)||ms(r))?r=parseFloat(r):!Sd(r)&&pe.test(n)&&(r=Ai(t,n)),this.setBaseTarget(t,ce(r)?r.get():r)),ce(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=yi(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ce(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ps),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xd.render(this.render)}}class Ri extends Ii{constructor(){super(...arguments),this.KeyframeResolver=bd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ed({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Id(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 Rd(e,t){return Ed(Id(e.getBoundingClientRect(),t))}const Od={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_d=et.length;function Dd(e,t,n){let r="",s=!0;for(let o=0;o<_d;o++){const a=et[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=cr(l,an[a]);if(!c){s=!1;const d=Od[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${cr(i,an.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Oi(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(tt.has(l)){o=!0;continue}else if(Es(l)){s[l]=c;continue}else{const u=cr(c,an[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=Dd(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function _i(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Di(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=Di(e,t.target.x),r=Di(e,t.target.y);return`${n}% ${r}%`}},Ld={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=pe.parse(e);if(s.length>5)return r;const i=pe.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Qe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Fd={borderRadius:{...Ct,applyTo:[...yd]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Ld};function Nd(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fd[e]||e==="opacity")}function Li(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ce(r[a])||s&&ce(s[a])||Nd(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function zd(e){return window.getComputedStyle(e)}class Bd extends Ri{constructor(){super(...arguments),this.type="html",this.renderInstance=_i}readValueFromInstance(t,n){var r;if(tt.has(n))return(r=this.projection)!=null&&r.isProjecting?Zn(n):gu(t,n);{const s=zd(t),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rd(t,n)}build(t,n,r){Oi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Li(t,n,r)}}function jd(e,t){return e in t}class Kd extends Ii{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(jd(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 ur()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Gd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wd={offset:"strokeDashoffset",array:"strokeDasharray"};function Ud(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Gd:Wd;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Yd=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xd(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Oi(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of Yd)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ud(d,s,i,o,!1)}const Fi=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"]),Hd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qd(e,t,n,r){_i(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Fi.has(s)?s:or(s),t.attrs[s])}function Zd(e,t,n){const r=Li(e,t,n);for(const s in e)if(ce(e[s])||ce(t[s])){const i=et.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Jd extends Ri{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ur}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const r=Ti(n);return r&&r.default||0}return n=Fi.has(n)?n:or(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zd(t,n,r)}build(t,n,r){Xd(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){qd(t,n,r,s)}mount(t){this.isSVGTag=Hd(t.tagName),super.mount(t)}}function Qd(e,t,n){const r=ce(e)?e:nt(e);return r.start(gi("",r,t,n)),r.animation}function fr(e){return typeof e=="object"&&!Array.isArray(e)}function Ni(e,t,n,r){return e==null?[]:typeof e=="string"&&fr(t)?vd(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function ef(e,t,n){return e*(t+1)+n*t}function zi(e,t,n,r){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))):r.get(t)??e}function tf(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Mn(e,s),r--)}}function nf(e,t,n,r,s,i){tf(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Qe(s,i,r[o]),easing:Cs(n,o)})}function rf(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function sf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const of="easeInOut",af=20;function lf(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let h=0;h<e.length;h++){const y=e[h];if(typeof y=="string"){c.set(y,d);continue}else if(!Array.isArray(y)){c.set(y.name,zi(d,y.at,u,c));continue}let[m,b,v={}]=y;v.at!==void 0&&(d=zi(d,v.at,u,c));let x=0;const C=(T,A,R,I=0,g=0)=>{const V=cf(T),{delay:M=0,times:_=Xs(V),type:z=t.type||"keyframes",repeat:ie,repeatType:oe,repeatDelay:ae=0,...Y}=A;let{ease:Q=t.ease||"easeOut",duration:ue}=A;const st=typeof M=="function"?M(I,g):M,$=V.length,Ot=rr(z)?z:s==null?void 0:s[z||"keyframes"];if($<=2&&Ot){let K=100;if($===2&&ff(V)){const _e=V[1]-V[0];K=Math.abs(_e)}const G={...t,...Y};ue!==void 0&&(G.duration=he(ue));const Ae=Gs(G,K,Ot);Q=Ae.ease,ue=Ae.duration}ue??(ue=i);const _t=d+st;_.length===1&&_[0]===0&&(_[1]=1);const Dt=_.length-V.length;if(Dt>0&&Ys(_,Dt),V.length===1&&V.unshift(null),ie&&ie<af){const K=ue>0?ae/ue:0;ue=ef(ue,ie,ae);const G=[...V],Ae=[..._];Q=Array.isArray(Q)?[...Q]:[Q];const _e=[...Q],X=oe==="reverse"||oe==="mirror";let Lt=G,Ke=_e;X&&(Lt=[...G].reverse(),oe==="reverse"&&(Ke=[..._e].reverse().map(fe=>typeof fe=="function"?En(fe):fe)));for(let fe=0;fe<ie;fe++){const ot=X&&fe%2===0,Ge=ot?Lt:G,Yh=ot?Ke:_e,xo=(fe+1)*(1+K);K>0&&(V.push(V[V.length-1]),_.push(xo),Q.push("linear")),V.push(...Ge);for(let Ft=0;Ft<Ge.length;Ft++)_.push(Ae[Ft]+xo),Q.push(Ft===0?"linear":Cs(Yh,Ft-1))}rf(_,ie,K)}const it=_t+ue;nf(R,V,Q,_,_t,it),x=Math.max(st+ue,x),f=Math.max(it,f)};if(ce(m)){const T=Bi(m,a);C(b,v,ji("default",T))}else{const T=Ni(m,b,r,l),A=T.length;for(let R=0;R<A;R++){b=b,v=v;const I=T[R],g=Bi(I,a);for(const V in b)C(b[V],uf(v,V),ji(V,g),R,A)}}u=d,d+=x}return a.forEach((h,y)=>{for(const m in h){const b=h[m];b.sort(sf);const v=[],x=[],C=[];for(let I=0;I<b.length;I++){const{at:g,value:V,easing:M}=b[I];v.push(V),x.push(Pn(0,f,g)),C.push(M||"easeOut")}x[0]!==0&&(x.unshift(0),v.unshift(v[0]),C.unshift(of)),x[x.length-1]!==1&&(x.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const T=o.get(y);T.keyframes[m]=v;const{type:A,...R}=t;T.transition[m]={...R,duration:f,ease:C,times:x,...n}}}),o}function Bi(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ji(e,t){return t[e]||(t[e]=[]),t[e]}function cf(e){return Array.isArray(e)?e:[e]}function uf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const df=e=>typeof e=="number",ff=e=>e.every(df);function hf(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ci(e)&&!wd(e)?new Jd(t):new Bd(t);n.mount(e),At.set(e,n)}function mf(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kd(t);n.mount(e),At.set(e,n)}function gf(e,t){return ce(e)||typeof e=="number"||typeof e=="string"&&!fr(t)}function Ki(e,t,n,r){const s=[];if(gf(e,t))s.push(Qd(e,fr(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=Ni(e,t,r),o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l instanceof Element?hf:mf;At.has(l)||c(l);const u=At.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...ad(u,{...t,transition:d},{}))}}return s}function pf(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=nt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return lf(s,t,n,{spring:kt}).forEach(({keyframes:o,transition:a},l)=>{r.push(...Ki(l,o,a))}),r}function bf(e){return Array.isArray(e)&&e.some(Array.isArray)}function yf(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),bf(i)){const{onComplete:f,...h}=o||{};typeof f=="function"&&(c=f),l=pf(i,{...u,...h},t)}else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(c=f),l=Ki(i,o,{...u,...h},t)}const d=new Nu(l);return c&&d.finished.then(c),t&&(t.animations.push(d),d.finished.then(()=>{Mn(t.animations,d)})),d}return s}const Gi=yf(),vf="a4ui-effects";function xf(){try{return window.localStorage}catch{return null}}function wf(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=xf())==null?void 0:t.getItem(vf);return e===null?!0:e==="1"}function kf(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const Wi=wf();kf(Wi);const[Sf]=J(Wi);function Tf(){return!Sf()}const Af="(prefers-reduced-motion: reduce)";function Cf(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Af).matches}const Mf="a4ui-motion-forced";function Vf(){try{return window.localStorage}catch{return null}}const[Ui]=J(((vo=Vf())==null?void 0:vo.getItem(Mf))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",ne(Ui));function Mt(){return Tf()||Cf()&&!Ui()}function $f(e,t=600){const[n,r]=J(0);let s;return Me(()=>{const i=e();if(s==null||s.stop(),Mt()){r(i);return}const o=ne(n);o!==i&&(s=Gi(o,i,{duration:t/1e3,ease:"easeOut",onUpdate:a=>r(a)}))}),me(()=>s==null?void 0:s.stop()),n}function Pf(e,t={}){Mt()||Gi(e,{opacity:[0,1],y:[t.y??8,0]},{duration:t.duration??.32,delay:t.delay??0,ease:"easeOut"})}function Ef(e,t,n={}){if(Mt())return;const r=e.getBoundingClientRect(),s=t.clientX-r.left,i=t.clientY-r.top,o=2*Math.max(Math.hypot(s,i),Math.hypot(r.width-s,i),Math.hypot(s,r.height-i),Math.hypot(r.width-s,r.height-i)),a=document.createElement("span");a.setAttribute("aria-hidden","true"),Object.assign(a.style,{position:"absolute",left:`${s}px`,top:`${i}px`,width:`${o}px`,height:`${o}px`,borderRadius:"9999px",background:n.color??"currentColor",pointerEvents:"none",transform:"translate(-50%,-50%) scale(0)"}),e.appendChild(a);const l=a.animate([{transform:"translate(-50%,-50%) scale(0)",opacity:String(n.opacity??.3)},{transform:"translate(-50%,-50%) scale(1)",opacity:"0"}],{duration:600,easing:"ease-out"}),c=()=>a.remove();l.finished.then(c).catch(c)}mt(["pointerdown"]);var If=D("<a>"),Rf=D("<button>");const Of={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},_f="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Df(e){const[t,n]=le(e,["variant","class","type","children","ripple","onPointerDown","href","target","rel"]),r=()=>B(_f,Of[t.variant??"primary"],t.ripple&&"relative overflow-hidden",t.class),s=i=>{t.ripple&&Ef(i.currentTarget,i,{opacity:.35});const o=t.onPointerDown;typeof o=="function"?o(i):o&&o[0](o[1],i)};return p(q,{get when(){return t.href!==void 0},get fallback(){return(()=>{var i=Rf();return i.$$pointerdown=s,De(i,L({get type(){return t.type??"button"},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i})()},get children(){var i=If();return i.$$pointerdown=s,De(i,L({get href(){return t.href},get target(){return t.target},get rel(){return t.rel},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i}})}mt(["pointerdown"]);var Lf=D('<span class="text-base font-normal text-muted-foreground">'),Ff=D('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Nf=D("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),zf=D('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),Bf=D("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const Vt=e=>String(e).padStart(2,"0");function jf(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=s=>{var i;return Number(((i=n.find(o=>o.type===s))==null?void 0:i.value)??0)};return{hours:r("hour")%24,minutes:r("minute"),seconds:r("second")}}function Kf(e){const t=()=>{const{hours:n,minutes:r,seconds:s}=e.parts;let i=n,o="";return e.hour12&&(o=i>=12?"PM":"AM",i=i%12,i===0&&(i=12)),{time:e.seconds?`${Vt(i)}:${Vt(r)}:${Vt(s)}`:`${Vt(i)}:${Vt(r)}`,suffix:o}};return(()=>{var n=Ff(),r=n.firstChild,s=r.firstChild;return P(s,()=>t().time),P(r,p(q,{get when(){return e.hour12},get children(){var i=Lf();return P(i,()=>t().suffix),i}}),null),N(()=>be(n,B("flex flex-col items-center justify-center",e.class))),n})()}function Gf(e){const t=()=>e.size,n=()=>t()/2,r=()=>t()/2,s=()=>t()/2,i=()=>e.parts.hours%12*30+e.parts.minutes*.5,o=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=s()*u;return`${n()},${r()} ${n()},${r()-d}`};return(()=>{var u=zf(),d=u.firstChild,f=d.nextSibling,h=f.nextSibling,y=h.nextSibling;return P(u,p(ht,{each:l,children:m=>{const b=m*30,v=s()-4,x=s()-(m%3===0?14:9),C=n()+v*Math.sin(b*Math.PI/180),T=r()-v*Math.cos(b*Math.PI/180),A=n()+x*Math.sin(b*Math.PI/180),R=r()-x*Math.cos(b*Math.PI/180);return(()=>{var I=Bf();return E(I,"x1",C),E(I,"y1",T),E(I,"x2",A),E(I,"y2",R),E(I,"stroke-width",m%3===0?2:1),I})()}}),f),P(u,p(q,{get when(){return e.seconds},get children(){var m=Nf();return N(b=>{var v=c(.75),x=`rotate(${a()}deg)`;return v!==b.e&&E(m,"points",b.e=v),x!==b.t&&Ve(m,"transform",b.t=x),b},{e:void 0,t:void 0}),m}}),y),N(m=>{var b=t(),v=t(),x=`0 0 ${t()} ${t()}`,C=B("inline-block",e.class),T=n(),A=r(),R=s()-2,I=c(.45),g=`rotate(${i()}deg)`,V=c(.65),M=`rotate(${o()}deg)`,_=n(),z=r();return b!==m.e&&E(u,"width",m.e=b),v!==m.t&&E(u,"height",m.t=v),x!==m.a&&E(u,"viewBox",m.a=x),C!==m.o&&E(u,"class",m.o=C),T!==m.i&&E(d,"cx",m.i=T),A!==m.n&&E(d,"cy",m.n=A),R!==m.s&&E(d,"r",m.s=R),I!==m.h&&E(f,"points",m.h=I),g!==m.r&&Ve(f,"transform",m.r=g),V!==m.d&&E(h,"points",m.d=V),M!==m.l&&Ve(h,"transform",m.l=M),_!==m.u&&E(y,"cx",m.u=_),z!==m.c&&E(y,"cy",m.c=z),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0}),u})()}function Wf(e){const[t,n]=J(new Date);at(()=>{const l=setInterval(()=>n(new Date),1e3);me(()=>clearInterval(l))});const r=()=>e.variant??"digital",s=()=>e.seconds??!0,i=()=>e.hour12??!1,o=()=>e.size??160,a=()=>jf(t(),e.timeZone);return p(q,{get when(){return r()==="analog"},get fallback(){return p(Kf,{get parts(){return a()},get seconds(){return s()},get hour12(){return i()},get class(){return e.class}})},get children(){return p(Gf,{get parts(){return a()},get seconds(){return s()},get size(){return o()},get class(){return e.class}})}})}var Uf=D('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),Yf=D('<span class="block h-[1em] text-center leading-none">'),Xf=D('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),Hf=D("<div>"),qf=D('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const hr=1e3,mr=60*hr,gr=60*mr,Yi=24*gr,Zf=[0,1,2,3,4,5,6,7,8,9],pr=e=>String(e).padStart(2,"0");function Jf(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var n=Uf(),r=n.firstChild;return P(r,p(bn,{each:Zf,children:s=>(()=>{var i=Yf();return P(i,s),i})()})),N(s=>Ve(r,"transform",`translateY(${t()*-10}%)`)),n})()}function Qf(e){const t=()=>e.value.split("");return(()=>{var n=Xf();return P(n,p(bn,{get each(){return t()},children:r=>p(Jf,{get char(){return r()}})})),n})()}function eh(e){const t=te(()=>e.to.getTime()),n=()=>Math.max(0,t()-Date.now()),[r,s]=J(n());let i=!1;const o=f=>{var h;f<=0&&!i&&(i=!0,(h=e.onComplete)==null||h.call(e))};o(r()),at(()=>{const f=setInterval(()=>{const h=n();s(h),o(h)},hr);me(()=>clearInterval(f))});const a=()=>Math.floor(r()/Yi),l=()=>Math.floor(r()%Yi/gr),c=()=>Math.floor(r()%gr/mr),u=()=>Math.floor(r()%mr/hr),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:pr(l())},{label:"Mins",value:pr(c())},{label:"Secs",value:pr(u())}];return(()=>{var f=Hf();return P(f,p(bn,{get each(){return d()},children:h=>(()=>{var y=qf(),m=y.firstChild;return P(y,p(Qf,{get value(){return h().value}}),m),P(m,()=>h().label),y})()})),N(()=>be(f,B("flex gap-4",e.class))),f})()}var th=D("<kbd>");const nh="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function rh(e){return(()=>{var t=th();return P(t,()=>e.children),N(()=>be(t,B(nh,e.class))),t})()}function sh(e){return(...t)=>{for(const n of e)n&&n(...t)}}const ih=e=>typeof e=="function"&&!e.length?e():e,oh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Xi(e){const t={};let n;for(;n=oh.exec(e);)t[n[1]]=n[2];return t}function Hi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Xi(e)}else typeof t=="string"&&(t=Xi(t));return{...e,...t}}function ah(...e){return sh(e)}function lh(e){return Object.prototype.toString.call(e)==="[object String]"}function qi(e){return t=>`${e()}-${t}`}function Zi(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function $t(e,t){return L(e,t)}var Pt=new Map,Ji=new Set;function Qi(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Pt.get(n.target);r||(r=new Set,Pt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Pt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Pt.delete(n.target)),Pt.size===0)){for(const s of Ji)s();Ji.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qi():document.addEventListener("DOMContentLoaded",Qi));let br=new Map,yr=!1;try{yr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ln=!1;try{ln=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eo={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ch{constructor(t,n={}){this.numberFormatter=uh(t,n),this.options=n}format(t){var r;let n="";if(!yr&&this.options.signDisplay!=null?n=dh(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ln){let{unit:s,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!s)return n;let a=(r=eo[s])==null?void 0:r[i];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yr&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ln&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function uh(e,t={}){var i;let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ln){let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!((i=eo[o])!=null&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(br.has(r))return br.get(r);let s=new Intl.NumberFormat(e,t);return br.set(r,s),s}function dh(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),i=e.format(n),o=s.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}var fh=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mh(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return fh.has(n)}const t=e.split("-")[0];return hh.has(t)}function gh(e){return mh(e)?"rtl":"ltr"}function to(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gh(e)}}var vr=to(),Et=new Set;function no(){vr=to();for(const e of Et)e(vr)}function ph(){const[e,t]=J(vr),n=te(()=>e());return at(()=>{Et.size===0&&window.addEventListener("languagechange",no),Et.add(t),me(()=>{Et.delete(t),Et.size===0&&window.removeEventListener("languagechange",no)})}),{locale:()=>n().locale,direction:()=>n().direction}}var bh=lt();function yh(){const e=ph();return ct(bh)||e}function ro(e){const{locale:t}=yh();return te(()=>new ch(t(),ih(e)))}function so(e){return t=>(e(t),()=>e(void 0))}var io=lt();function cn(){const e=ct(io);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function vh(e){const t=cn(),[n,r]=le(e,["style"]);return p(ve,L({as:"div",get style(){return Hi({"--kb-meter-fill-width":t.meterFillWidth()},n.style)}},()=>t.dataset(),r))}function xh(e){const t=cn(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(ve,L({as:"span",get id(){return r.id}},()=>t.dataset(),s))}function wh(e){const t=`meter-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[r,s]=le(n,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=te(()=>({})),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,meterFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(io.Provider,{value:h,get children(){return p(ve,L({as:"div",get role(){return r.role||"meter"},get"aria-valuenow"(){return yn(()=>!!r.indeterminate)()?void 0:l()},get"aria-valuemin"(){return r.minValue},get"aria-valuemax"(){return r.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return i()}},f,s))}})}function kh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e))}function Sh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var we=Object.assign(wh,{Fill:vh,Label:xh,Track:kh,ValueLabel:Sh}),Th=D('<div class="flex items-center justify-between text-sm text-foreground">');function Ah(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(we,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Th();return P(n,p(we.Label,{get children(){return e.label}}),null),P(n,p(we.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(we.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(we.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Ch={};qt(Ch,{Fill:()=>ao,Label:()=>lo,Progress:()=>rt,Root:()=>co,Track:()=>uo,ValueLabel:()=>fo,useProgressContext:()=>It});var oo=lt();function It(){const e=ct(oo);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function ao(e){const t=It(),[n,r]=le(e,["style"]);return p(we.Fill,L({get style(){return Hi({"--kb-progress-fill-width":t.progressFillWidth()},n.style)}},()=>t.dataset(),r))}function lo(e){const t=It(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(we.Label,L({get id(){return r.id}},()=>t.dataset(),s))}function co(e){const t=`progress-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100},e),[r,s]=le(n,["value","minValue","maxValue","indeterminate","getValueLabel"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>r.indeterminate?void 0:`${c()*100}%`,f=te(()=>{let y;return r.indeterminate||(y=c()===1?"complete":"loading"),{"data-progress":y,"data-indeterminate":r.indeterminate?"":void 0}}),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,progressFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(oo.Provider,{value:h,get children(){return p(we,L({role:"progressbar",get indeterminate(){return r.indeterminate||!1}},f,n))}})}function uo(e){const t=It();return p(we.Track,L(()=>t.dataset(),e))}function fo(e){const t=It();return p(we.ValueLabel,L(()=>t.dataset(),e))}var rt=Object.assign(co,{Fill:ao,Label:lo,Track:uo,ValueLabel:fo}),Mh=D('<div class="flex items-center justify-between text-sm text-foreground">');function Vh(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(rt,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Mh();return P(n,p(rt.Label,{get children(){return e.label}}),null),P(n,p(rt.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(rt.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(rt.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var $h=D("<div role=radiogroup>"),Ph=D("<div role=img>"),Eh=D('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function Ih(e){const[t,n]=J(0),r=()=>e.max??5,s=()=>Array.from({length:r()},(l,c)=>c+1),i=()=>t()>0?t():e.value,o=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>B("h-5 w-5 transition-colors",l<=i()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return p(q,{get when(){return!e.readonly},get fallback(){return(()=>{var l=Ph();return P(l,p(ht,{get each(){return s()},children:c=>p(ls,{get class(){return a(c)},"aria-hidden":"true"})})),N(c=>{var u=B("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${r()}`;return u!==c.e&&be(l,c.e=u),d!==c.t&&E(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=$h();return l.addEventListener("mouseleave",()=>n(0)),P(l,p(ht,{get each(){return s()},children:c=>(()=>{var u=Eh();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o(Math.min(e.value+1,r()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o(Math.max(e.value-1,0)))},u.$$click=()=>o(c),u.addEventListener("blur",()=>n(0)),u.addEventListener("focus",()=>n(c)),u.addEventListener("mouseenter",()=>n(c)),P(u,p(ls,{get class(){return a(c)},"aria-hidden":"true"})),N(d=>{var f=e.value===c,h=`Rate ${c} of ${r()}`;return f!==d.e&&E(u,"aria-checked",d.e=f),h!==d.t&&E(u,"aria-label",d.t=h),d},{e:void 0,t:void 0}),u})()})),N(()=>be(l,B("inline-flex items-center gap-1",e.class))),l}})}mt(["click","keydown"]);var Rh=D('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Oh(e){const t=()=>e.size??96,n=()=>e.thickness??8,r=()=>Math.min(100,Math.max(0,e.value)),s=()=>(t()-n())/2,i=()=>2*Math.PI*s(),o=()=>i()*(1-r()/100);return(()=>{var a=Rh(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return P(d,p(q,{get when(){return e.label},get fallback(){return`${Math.round(r())}%`},get children(){return e.label}})),N(f=>{var h=r(),y=B("relative inline-flex items-center justify-center",e.class),m=`${t()}px`,b=`${t()}px`,v=t(),x=t(),C=`0 0 ${t()} ${t()}`,T=t()/2,A=t()/2,R=s(),I=n(),g=t()/2,V=t()/2,M=s(),_=n(),z=String(i()),ie=String(o());return h!==f.e&&E(a,"aria-valuenow",f.e=h),y!==f.t&&be(a,f.t=y),m!==f.a&&Ve(a,"width",f.a=m),b!==f.o&&Ve(a,"height",f.o=b),v!==f.i&&E(l,"width",f.i=v),x!==f.n&&E(l,"height",f.n=x),C!==f.s&&E(l,"viewBox",f.s=C),T!==f.h&&E(c,"cx",f.h=T),A!==f.r&&E(c,"cy",f.r=A),R!==f.d&&E(c,"r",f.d=R),I!==f.l&&E(c,"stroke-width",f.l=I),g!==f.u&&E(u,"cx",f.u=g),V!==f.c&&E(u,"cy",f.c=V),M!==f.w&&E(u,"r",f.w=M),_!==f.m&&E(u,"stroke-width",f.m=_),z!==f.f&&E(u,"stroke-dasharray",f.f=z),ie!==f.y&&E(u,"stroke-dashoffset",f.y=ie),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),a})()}function _h(e,t){const[n,r]=J(ho(t==null?void 0:t()));return Me(()=>{var s;r(((s=e())==null?void 0:s.tagName.toLowerCase())||ho(t==null?void 0:t()))}),n}function ho(e){return lh(e)?e:void 0}var Dh={};qt(Dh,{Root:()=>mo,Separator:()=>go});function mo(e){let t;const n=$t({orientation:"horizontal"},e),[r,s]=le(n,["ref","orientation"]),i=_h(()=>t,()=>"hr");return p(ve,L({as:"hr",ref(o){var a=ah(l=>t=l,r.ref);typeof a=="function"&&a(o)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},s))}var go=mo;function Lh(e){const t=()=>e.orientation??"horizontal";return p(go,{get orientation(){return t()},get class(){return B("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var Fh=D('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Nh(e){return(()=>{var t=Fh();return N(n=>{var r=B("h-5 w-5 animate-spin text-muted-foreground",e.class),s=e.label??"Loading";return r!==n.e&&E(t,"class",n.e=r),s!==n.t&&E(t,"aria-label",n.t=s),n},{e:void 0,t:void 0}),t})()}function zh(e,t={}){if(Mt())return()=>{};const n=document.createElement("span");n.setAttribute("aria-hidden","true"),n.className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300",e.appendChild(n);const r=t.size??180,s=t.color??"hsl(var(--primary))",i=(c,u)=>{n.style.background=`radial-gradient(${r}px circle at ${c}px ${u}px, color-mix(in srgb, ${s} 30%, transparent), transparent 70%)`},o=c=>{const u=e.getBoundingClientRect();i(c.clientX-u.left,c.clientY-u.top)},a=()=>{n.style.opacity="1"},l=()=>{n.style.opacity="0"};return e.addEventListener("pointermove",o),e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointermove",o),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",l),n.remove()}}function Bh(e,t,n={}){if(Mt())return()=>{};t.style.willChange="transform";const r=i=>{const o=e.getBoundingClientRect(),a=(i.clientX-o.left)/o.width-.5,l=(i.clientY-o.top)/o.height-.5,c=n.max??10;t.style.transition="transform 0.15s ease-out",t.style.transform=`perspective(800px) rotateX(${(l*-2*c).toFixed(2)}deg) rotateY(${(a*2*c).toFixed(2)}deg) scale(1.02)`},s=()=>{t.style.transition="transform 0.4s ease",t.style.transform="perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)"};return e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),t.style.transform="",t.style.transition="",t.style.willChange=""}}var po=D("<div>");function jh(e){const[t,n]=le(e,["class","children","glass","glow","tilt","spotlight"]),r=()=>(t.glow??t.glass)===!0;let s;return at(()=>{const i=[t.tilt&&s?Bh(s,s):null,t.spotlight&&s?zh(s):null].filter(o=>o!==null);me(()=>i.forEach(o=>o()))}),(()=>{var i=po(),o=s;return typeof o=="function"?vn(o,i):s=i,De(i,L({get class(){return B(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",r()&&"glow-edge",t.spotlight&&"relative overflow-hidden",t.tilt&&"will-change-transform",t.class)}},n),!1,!0),P(i,()=>t.children),i})()}function Kh(e){const[t,n]=le(e,["class","children"]);return(()=>{var r=po();return De(r,L({get class(){return B("p-6 pt-0",t.class)}},n),!1,!0),P(r,()=>t.children),r})()}var bo=D("<div>"),Gh=D('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const Wh={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function Uh(e){const t=$f(()=>e.value),n=()=>(e.format??(s=>String(Math.round(s))))(t());let r;return at(()=>{r&&Pf(r,{delay:e.delay??0})}),(()=>{var s=bo(),i=r;return typeof i=="function"?vn(i,s):r=s,P(s,p(jh,{glass:!0,glow:!0,get class(){return e.class},get children(){return p(Kh,{class:"flex items-center gap-4 p-5",get children(){return[p(q,{get when(){return e.icon},get children(){var o=bo();return P(o,()=>e.icon),N(()=>be(o,B("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",Wh[e.tone??"neutral"]))),o}}),(()=>{var o=Gh(),a=o.firstChild,l=a.nextSibling;return P(a,()=>e.label),P(l,n),o})()]}})}})),s})()}function Rt(e){return(e.textContent??"").trim()}function yo(){se("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{re();const n=e.label||Rt(t);return p(Df,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:n})}),se("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(re(),p(uc,{get tone(){return e.tone},get children(){return e.label||Rt(t)}}))),se("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(re(),p(ql,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||Rt(t)}}))),se("a4-spinner",{label:"Loading"},e=>(re(),p(Nh,{get label(){return e.label}}))),se("a4-avatar",{src:"",alt:"",fallback:""},e=>(re(),p(ic,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),se("a4-progress",{value:0,max:100,label:""},e=>(re(),p(Vh,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-meter",{value:0,max:100,label:""},e=>(re(),p(Ah,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(re(),p(Oh,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),se("a4-stat",{label:"",value:0,tone:"neutral"},e=>(re(),p(Uh,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),se("a4-kbd",{label:""},(e,{element:t})=>(re(),p(rh,{get children(){return e.label||Rt(t)}}))),se("a4-condition-scale",{value:0,min:1,max:10,showvalue:!0},e=>(re(),p(hl,{get value(){return e.value},get min(){return e.min},get max(){return e.max},get showValue(){return e.showvalue}}))),se("a4-announcement-bar",{tone:"primary",dismissible:!1,coupon:"",href:"",label:""},(e,{element:t})=>(re(),p(rc,{get tone(){return e.tone},get dismissible(){return e.dismissible},get couponCode(){return e.coupon||void 0},get href(){return e.href||void 0},get children(){return e.label||Rt(t)}}))),se("a4-separator",{orientation:"horizontal"},e=>(re(),p(Lh,{get orientation(){return e.orientation}}))),se("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(re(),p(Ih,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:n=>t.dispatchEvent(new CustomEvent("change",{detail:n}))}))),se("a4-countdown",{to:""},e=>{re();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return p(eh,{to:t})}),se("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(re(),p(Wf,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return yo(),un.defineA4uiElements=yo,Object.defineProperty(un,Symbol.toStringTag,{value:"Module"}),un})({});
package/dist/elements.js CHANGED
@@ -4753,10 +4753,10 @@ function ic(e) {
4753
4753
  var oc = /* @__PURE__ */ L('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'), ac = /* @__PURE__ */ L("<span>");
4754
4754
  const lc = {
4755
4755
  neutral: "bg-muted text-muted-foreground ring-border",
4756
- success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
4757
- warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
4758
- danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
4759
- info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
4756
+ success: "bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",
4757
+ warning: "bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",
4758
+ danger: "bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",
4759
+ info: "bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"
4760
4760
  }, cc = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
4761
4761
  function uc(e) {
4762
4762
  const [t, n] = ue(e, ["tone", "class", "children", "pulse"]);
package/dist/full.css CHANGED
@@ -22,7 +22,7 @@
22
22
  --primary: 217 91% 52%;
23
23
  --primary-foreground: 0 0% 100%;
24
24
  --accent: 199 89% 55%;
25
- --accent-foreground: 0 0% 100%;
25
+ --accent-foreground: 199 45% 12%;
26
26
  --ring: 217 91% 52%;
27
27
  --destructive: 0 72% 52%;
28
28
  --destructive-foreground: 0 0% 100%;
@@ -58,7 +58,7 @@
58
58
  --primary: 217 91% 52%;
59
59
  --primary-foreground: 0 0% 100%;
60
60
  --accent: 199 89% 48%;
61
- --accent-foreground: 0 0% 100%;
61
+ --accent-foreground: 199 45% 12%;
62
62
  --ring: 217 91% 52%;
63
63
  --destructive: 0 72% 50%;
64
64
  --destructive-foreground: 0 0% 100%;
@@ -2883,13 +2883,13 @@ html.calm .tile-glass {
2883
2883
  --tw-text-opacity: 1;
2884
2884
  color: hsl(var(--accent-foreground) / var(--tw-text-opacity, 1));
2885
2885
  }
2886
- .text-amber-500 {
2886
+ .text-amber-300 {
2887
2887
  --tw-text-opacity: 1;
2888
- color: rgb(245 158 11 / var(--tw-text-opacity, 1));
2888
+ color: rgb(252 211 77 / var(--tw-text-opacity, 1));
2889
2889
  }
2890
- .text-amber-600 {
2890
+ .text-amber-500 {
2891
2891
  --tw-text-opacity: 1;
2892
- color: rgb(217 119 6 / var(--tw-text-opacity, 1));
2892
+ color: rgb(245 158 11 / var(--tw-text-opacity, 1));
2893
2893
  }
2894
2894
  .text-card-foreground {
2895
2895
  --tw-text-opacity: 1;
@@ -2906,6 +2906,10 @@ html.calm .tile-glass {
2906
2906
  --tw-text-opacity: 1;
2907
2907
  color: hsl(var(--destructive-foreground) / var(--tw-text-opacity, 1));
2908
2908
  }
2909
+ .text-emerald-300 {
2910
+ --tw-text-opacity: 1;
2911
+ color: rgb(110 231 183 / var(--tw-text-opacity, 1));
2912
+ }
2909
2913
  .text-emerald-500 {
2910
2914
  --tw-text-opacity: 1;
2911
2915
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
@@ -2948,6 +2952,10 @@ html.calm .tile-glass {
2948
2952
  --tw-text-opacity: 1;
2949
2953
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
2950
2954
  }
2955
+ .text-rose-300 {
2956
+ --tw-text-opacity: 1;
2957
+ color: rgb(253 164 175 / var(--tw-text-opacity, 1));
2958
+ }
2951
2959
  .text-rose-500 {
2952
2960
  --tw-text-opacity: 1;
2953
2961
  color: rgb(244 63 94 / var(--tw-text-opacity, 1));
@@ -2956,13 +2964,13 @@ html.calm .tile-glass {
2956
2964
  --tw-text-opacity: 1;
2957
2965
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
2958
2966
  }
2959
- .text-sky-500 {
2967
+ .text-sky-300 {
2960
2968
  --tw-text-opacity: 1;
2961
- color: rgb(14 165 233 / var(--tw-text-opacity, 1));
2969
+ color: rgb(125 211 252 / var(--tw-text-opacity, 1));
2962
2970
  }
2963
- .text-sky-600 {
2971
+ .text-sky-500 {
2964
2972
  --tw-text-opacity: 1;
2965
- color: rgb(2 132 199 / var(--tw-text-opacity, 1));
2973
+ color: rgb(14 165 233 / var(--tw-text-opacity, 1));
2966
2974
  }
2967
2975
  .line-through {
2968
2976
  text-decoration-line: line-through;
@@ -3450,6 +3458,10 @@ html.calm .tile-glass {
3450
3458
  --tw-bg-opacity: 1;
3451
3459
  background-color: hsl(var(--primary) / var(--tw-bg-opacity, 1));
3452
3460
  }
3461
+ .data-\[checked\]\:text-primary-foreground[data-checked] {
3462
+ --tw-text-opacity: 1;
3463
+ color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
3464
+ }
3453
3465
  .data-\[pressed\]\:text-primary-foreground[data-pressed] {
3454
3466
  --tw-text-opacity: 1;
3455
3467
  color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
@@ -3458,13 +3470,25 @@ html.calm .tile-glass {
3458
3470
  --tw-text-opacity: 1;
3459
3471
  color: hsl(var(--foreground) / var(--tw-text-opacity, 1));
3460
3472
  }
3461
- .data-\[selected\]\:text-primary-foreground[data-selected] {
3462
- --tw-text-opacity: 1;
3463
- color: hsl(var(--primary-foreground) / var(--tw-text-opacity, 1));
3464
- }
3465
3473
  .data-\[disabled\]\:opacity-50[data-disabled] {
3466
3474
  opacity: 0.5;
3467
3475
  }
3476
+ [data-theme='light'] .light\:text-amber-700 {
3477
+ --tw-text-opacity: 1;
3478
+ color: rgb(180 83 9 / var(--tw-text-opacity, 1));
3479
+ }
3480
+ [data-theme='light'] .light\:text-emerald-700 {
3481
+ --tw-text-opacity: 1;
3482
+ color: rgb(4 120 87 / var(--tw-text-opacity, 1));
3483
+ }
3484
+ [data-theme='light'] .light\:text-rose-700 {
3485
+ --tw-text-opacity: 1;
3486
+ color: rgb(190 18 60 / var(--tw-text-opacity, 1));
3487
+ }
3488
+ [data-theme='light'] .light\:text-sky-700 {
3489
+ --tw-text-opacity: 1;
3490
+ color: rgb(3 105 161 / var(--tw-text-opacity, 1));
3491
+ }
3468
3492
  @media (prefers-reduced-motion: reduce) {
3469
3493
 
3470
3494
  .motion-reduce\:transition-none {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const A4UI_VERSION = "0.24.1";
1
+ export declare const A4UI_VERSION = "0.24.3";
2
2
  export { cn } from './lib/cn';
3
3
  export { useTheme, toggleTheme, setTheme, storedTheme, applyTheme, toggled, type Theme } from './lib/theme';
4
4
  export { useEffects, isCalm, setEffects } from './lib/effects';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { c as p } from "./cn-B6yFEsav.js";
2
2
  import { createSignal as z, onCleanup as q, onMount as G, For as A, createMemo as Q, Show as S, createEffect as re, createUniqueId as vr, useContext as br, createContext as xr, splitProps as ie, Index as Re, on as Ht, Switch as $r, Match as We, ErrorBoundary as yr, Suspense as wr } from "solid-js";
3
- import { a as se, d as pr, C as Vt, e as Kt, f as Ut, m as X, B as _r, g as kr, h as Cr, s as Ue, i as Sr, u as Er } from "./NumberInput-DcJlXNKq.js";
4
- import { b as bf, c as xf, N as $f, R as yf, j as wf, S as pf, T as _f, k as kf, l as Cf, n as Sf, p as Ef, r as Mf, o as Tf, q as Lf } from "./NumberInput-DcJlXNKq.js";
3
+ import { a as se, d as pr, C as Vt, e as Kt, f as Ut, m as X, B as _r, g as kr, h as Cr, s as Ue, i as Sr, u as Er } from "./NumberInput-BQhVucw-.js";
4
+ import { b as bf, c as xf, N as $f, R as yf, j as wf, S as pf, T as _f, k as kf, l as Cf, n as Sf, p as Ef, r as Mf, o as Tf, q as Lf } from "./NumberInput-BQhVucw-.js";
5
5
  import { createComponent as o, memo as V, insert as s, template as v, effect as _, setAttribute as T, className as M, delegateEvents as Y, Portal as me, setStyleProperty as O, use as R, classList as qt, spread as ce, mergeProps as de, Dynamic as Gt, addEventListener as Ke, style as ue } from "solid-js/web";
6
6
  import { Accordion as _e } from "@kobalte/core/accordion";
7
7
  import { ChevronsLeft as Mr, ChevronLeft as Oe, ChevronRight as fe, ChevronsRight as Tr, CalendarDays as Wt, Clock as Lr, File as mt, Check as xe, X as ge, ChevronDown as qe, UploadCloud as Dr, CircleX as Jt, TriangleAlert as Zt, CircleCheck as Qt, Info as er, Copy as Ir, ChevronsUpDown as tr, ChevronsLeftRight as Ar, Inbox as Fr, Star as zr, ServerCrash as Pr, Compass as Rr, ArrowUp as Or, Plus as Br, ChevronUp as jr, Bell as Nr, GripVertical as ht, Loader2 as Yr, Satellite as Xr, Moon as Hr, Sun as Vr, Sparkles as Kr } from "lucide-solid";
@@ -2262,7 +2262,7 @@ function Hu(e) {
2262
2262
  get value() {
2263
2263
  return t.value;
2264
2264
  },
2265
- class: "relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[selected]:text-primary-foreground",
2265
+ class: "relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[checked]:text-primary-foreground",
2266
2266
  get children() {
2267
2267
  return [o(Ie.ItemInput, {}), o(Ie.ItemLabel, {
2268
2268
  get children() {
@@ -6918,7 +6918,7 @@ const wd = [
6918
6918
  primary: "217 91% 52%",
6919
6919
  "primary-foreground": "0 0% 100%",
6920
6920
  accent: "199 89% 55%",
6921
- "accent-foreground": "0 0% 100%",
6921
+ "accent-foreground": "199 45% 12%",
6922
6922
  ring: "217 91% 52%",
6923
6923
  destructive: "0 72% 52%",
6924
6924
  "destructive-foreground": "0 0% 100%"
@@ -6935,7 +6935,7 @@ const wd = [
6935
6935
  primary: "217 91% 52%",
6936
6936
  "primary-foreground": "0 0% 100%",
6937
6937
  accent: "199 89% 48%",
6938
- "accent-foreground": "0 0% 100%",
6938
+ "accent-foreground": "199 45% 12%",
6939
6939
  ring: "217 91% 52%",
6940
6940
  destructive: "0 72% 50%",
6941
6941
  "destructive-foreground": "0 0% 100%"
@@ -7222,7 +7222,7 @@ function ff() {
7222
7222
  }
7223
7223
  Id(e && hr(e) || gt);
7224
7224
  }
7225
- const mf = "0.24.1";
7225
+ const mf = "0.24.3";
7226
7226
  export {
7227
7227
  mf as A4UI_VERSION,
7228
7228
  du as Accordion,
package/dist/styles.css CHANGED
@@ -21,7 +21,7 @@
21
21
  --primary: 217 91% 52%;
22
22
  --primary-foreground: 0 0% 100%;
23
23
  --accent: 199 89% 55%;
24
- --accent-foreground: 0 0% 100%;
24
+ --accent-foreground: 199 45% 12%;
25
25
  --ring: 217 91% 52%;
26
26
  --destructive: 0 72% 52%;
27
27
  --destructive-foreground: 0 0% 100%;
@@ -57,7 +57,7 @@
57
57
  --primary: 217 91% 52%;
58
58
  --primary-foreground: 0 0% 100%;
59
59
  --accent: 199 89% 48%;
60
- --accent-foreground: 0 0% 100%;
60
+ --accent-foreground: 199 45% 12%;
61
61
  --ring: 217 91% 52%;
62
62
  --destructive: 0 72% 50%;
63
63
  --destructive-foreground: 0 0% 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4ui/core",
3
- "version": "0.24.1",
3
+ "version": "0.24.3",
4
4
  "description": "A4ui — Spatial Glass design system & component library for SolidJS (Kobalte behavior + Tailwind glass tokens + motion).",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/preset.js CHANGED
@@ -21,7 +21,12 @@ import plugin from 'tailwindcss/plugin.js'
21
21
  // Frosted "space glass" surfaces. addComponents so they tree-shake like any
22
22
  // utility (emitted only when the class is found in scanned content — a4ui's own
23
23
  // components use them, so scanning ./node_modules/@a4ui/core/dist covers it).
24
- const glass = plugin(({ addComponents }) => {
24
+ const glass = plugin(({ addComponents, addVariant }) => {
25
+ // `light:` applies when an ancestor is in the light theme (`[data-theme='light']`),
26
+ // mirroring how dark is the base and light is the override throughout A4ui. Used
27
+ // for theme-aware tints (e.g. Badge tones) that need a lighter foreground on dark
28
+ // and a darker one on light to keep WCAG AA in both.
29
+ addVariant('light', "[data-theme='light'] &")
25
30
  addComponents({
26
31
  // ---- Primary glass surface ----
27
32
  '.card': {
@@ -110,7 +110,7 @@ export function PriceBlock(props: PriceBlockProps): JSX.Element {
110
110
  <Show when={props.coupon}>
111
111
  {(coupon) => (
112
112
  <div class="flex flex-wrap items-center gap-2">
113
- <span class="inline-flex items-center gap-1 rounded-md border border-dashed border-primary/50 px-2 py-0.5 text-xs font-mono text-primary">
113
+ <span class="inline-flex items-center gap-1 rounded-md border border-dashed border-primary/50 px-2 py-0.5 text-xs font-mono text-foreground">
114
114
  {coupon().label ?? 'Coupon'} {coupon().code}
115
115
  </span>
116
116
  <Show when={coupon().amount !== undefined}>
package/src/index.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  // import '@a4ui/core/styles.css'
9
9
  // import { Button, Card, Modal } from '@a4ui/core'
10
10
 
11
- export const A4UI_VERSION = '0.24.1'
11
+ export const A4UI_VERSION = '0.24.3'
12
12
 
13
13
  // Helpers (src/lib) — generic, framework-level utilities.
14
14
  export { cn } from './lib/cn'
@@ -82,7 +82,7 @@ export const space: ThemeDefinition = {
82
82
  primary: '217 91% 52%',
83
83
  'primary-foreground': '0 0% 100%',
84
84
  accent: '199 89% 55%',
85
- 'accent-foreground': '0 0% 100%',
85
+ 'accent-foreground': '199 45% 12%',
86
86
  ring: '217 91% 52%',
87
87
  destructive: '0 72% 52%',
88
88
  'destructive-foreground': '0 0% 100%',
@@ -99,7 +99,7 @@ export const space: ThemeDefinition = {
99
99
  primary: '217 91% 52%',
100
100
  'primary-foreground': '0 0% 100%',
101
101
  accent: '199 89% 48%',
102
- 'accent-foreground': '0 0% 100%',
102
+ 'accent-foreground': '199 45% 12%',
103
103
  ring: '217 91% 52%',
104
104
  destructive: '0 72% 50%',
105
105
  'destructive-foreground': '0 0% 100%',
package/src/ui/Badge.tsx CHANGED
@@ -9,12 +9,15 @@ import { cn } from '../lib/cn'
9
9
  /** Semantic tone of a {@link Badge}; drives its background/text/ring color. */
10
10
  export type BadgeTone = 'neutral' | 'success' | 'warning' | 'danger' | 'info'
11
11
 
12
+ // Tinted tones carry a lighter foreground for the dark (base) theme and a darker
13
+ // one under `[data-theme='light']`, so the text meets WCAG AA over the translucent
14
+ // tint in both — a single fixed shade can't clear 4.5:1 on both backgrounds.
12
15
  const TONE_CLASSES: Record<BadgeTone, string> = {
13
16
  neutral: 'bg-muted text-muted-foreground ring-border',
14
- success: 'bg-emerald-500/15 text-emerald-600 ring-emerald-500/30',
15
- warning: 'bg-amber-500/15 text-amber-600 ring-amber-500/30',
16
- danger: 'bg-rose-500/15 text-rose-600 ring-rose-500/30',
17
- info: 'bg-sky-500/15 text-sky-600 ring-sky-500/30',
17
+ success: 'bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700',
18
+ warning: 'bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700',
19
+ danger: 'bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700',
20
+ info: 'bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700',
18
21
  }
19
22
 
20
23
  const BADGE_BASE =
@@ -49,7 +49,7 @@ export function SegmentedControl(props: SegmentedControlProps): JSX.Element {
49
49
  {(option) => (
50
50
  <KSegmentedControl.Item
51
51
  value={option.value}
52
- class="relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[selected]:text-primary-foreground"
52
+ class="relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[checked]:text-primary-foreground"
53
53
  >
54
54
  <KSegmentedControl.ItemInput />
55
55
  <KSegmentedControl.ItemLabel>{option.label}</KSegmentedControl.ItemLabel>